function CR(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 c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).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 Wi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vb={exports:{}},gd={};/**
 * @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 X_;function g6(){if(X_)return gd;X_=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var c=null;if(o!==void 0&&(c=""+o),a.key!==void 0&&(c=""+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:c,ref:a!==void 0?a:null,props:o}}return gd.Fragment=t,gd.jsx=n,gd.jsxs=n,gd}var Q_;function p6(){return Q_||(Q_=1,Vb.exports=g6()),Vb.exports}var x=p6(),Kb={exports:{}},wn={};/**
 * @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 Z_;function b6(){if(Z_)return wn;Z_=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"),c=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"),v=Symbol.for("react.activity"),g=Symbol.iterator;function b(B){return B===null||typeof B!="object"?null:(B=g&&B[g]||B["@@iterator"],typeof B=="function"?B:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,y={};function w(B,U,K){this.props=B,this.context=U,this.refs=y,this.updater=K||S}w.prototype.isReactComponent={},w.prototype.setState=function(B,U){if(typeof B!="object"&&typeof B!="function"&&B!=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,B,U,"setState")},w.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function $(){}$.prototype=w.prototype;function _(B,U,K){this.props=B,this.context=U,this.refs=y,this.updater=K||S}var O=_.prototype=new $;O.constructor=_,C(O,w.prototype),O.isPureReactComponent=!0;var I=Array.isArray;function j(){}var M={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function N(B,U,K){var Y=K.ref;return{$$typeof:e,type:B,key:U,ref:Y!==void 0?Y:null,props:K}}function P(B,U){return N(B.type,U,B.props)}function A(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function F(B){var U={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(K){return U[K]})}var H=/\/+/g;function k(B,U){return typeof B=="object"&&B!==null&&B.key!=null?F(""+B.key):U.toString(36)}function L(B){switch(B.status){case"fulfilled":return B.value;case"rejected":throw B.reason;default:switch(typeof B.status=="string"?B.then(j,j):(B.status="pending",B.then(function(U){B.status==="pending"&&(B.status="fulfilled",B.value=U)},function(U){B.status==="pending"&&(B.status="rejected",B.reason=U)})),B.status){case"fulfilled":return B.value;case"rejected":throw B.reason}}throw B}function T(B,U,K,Y,Q){var Z=typeof B;(Z==="undefined"||Z==="boolean")&&(B=null);var ae=!1;if(B===null)ae=!0;else switch(Z){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(B.$$typeof){case e:case t:ae=!0;break;case h:return ae=B._init,T(ae(B._payload),U,K,Y,Q)}}if(ae)return Q=Q(B),ae=Y===""?"."+k(B,0):Y,I(Q)?(K="",ae!=null&&(K=ae.replace(H,"$&/")+"/"),T(Q,U,K,"",function(ve){return ve})):Q!=null&&(A(Q)&&(Q=P(Q,K+(Q.key==null||B&&B.key===Q.key?"":(""+Q.key).replace(H,"$&/")+"/")+ae)),U.push(Q)),1;ae=0;var re=Y===""?".":Y+":";if(I(B))for(var ie=0;ie<B.length;ie++)Y=B[ie],Z=re+k(Y,ie),ae+=T(Y,U,K,Z,Q);else if(ie=b(B),typeof ie=="function")for(B=ie.call(B),ie=0;!(Y=B.next()).done;)Y=Y.value,Z=re+k(Y,ie++),ae+=T(Y,U,K,Z,Q);else if(Z==="object"){if(typeof B.then=="function")return T(L(B),U,K,Y,Q);throw U=String(B),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ae}function z(B,U,K){if(B==null)return B;var Y=[],Q=0;return T(B,Y,"","",function(Z){return U.call(K,Z,Q++)}),Y}function V(B){if(B._status===-1){var U=B._result;U=U(),U.then(function(K){(B._status===0||B._status===-1)&&(B._status=1,B._result=K)},function(K){(B._status===0||B._status===-1)&&(B._status=2,B._result=K)}),B._status===-1&&(B._status=0,B._result=U)}if(B._status===1)return B._result.default;throw B._result}var q=typeof reportError=="function"?reportError:function(B){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof B=="object"&&B!==null&&typeof B.message=="string"?String(B.message):String(B),error:B});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",B);return}console.error(B)},G={map:z,forEach:function(B,U,K){z(B,function(){U.apply(this,arguments)},K)},count:function(B){var U=0;return z(B,function(){U++}),U},toArray:function(B){return z(B,function(U){return U})||[]},only:function(B){if(!A(B))throw Error("React.Children.only expected to receive a single React element child.");return B}};return wn.Activity=v,wn.Children=G,wn.Component=w,wn.Fragment=n,wn.Profiler=a,wn.PureComponent=_,wn.StrictMode=r,wn.Suspense=f,wn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,wn.__COMPILER_RUNTIME={__proto__:null,c:function(B){return M.H.useMemoCache(B)}},wn.cache=function(B){return function(){return B.apply(null,arguments)}},wn.cacheSignal=function(){return null},wn.cloneElement=function(B,U,K){if(B==null)throw Error("The argument must be a React element, but you passed "+B+".");var Y=C({},B.props),Q=B.key;if(U!=null)for(Z in U.key!==void 0&&(Q=""+U.key),U)!D.call(U,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&U.ref===void 0||(Y[Z]=U[Z]);var Z=arguments.length-2;if(Z===1)Y.children=K;else if(1<Z){for(var ae=Array(Z),re=0;re<Z;re++)ae[re]=arguments[re+2];Y.children=ae}return N(B.type,Q,Y)},wn.createContext=function(B){return B={$$typeof:c,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null},B.Provider=B,B.Consumer={$$typeof:o,_context:B},B},wn.createElement=function(B,U,K){var Y,Q={},Z=null;if(U!=null)for(Y in U.key!==void 0&&(Z=""+U.key),U)D.call(U,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(Q[Y]=U[Y]);var ae=arguments.length-2;if(ae===1)Q.children=K;else if(1<ae){for(var re=Array(ae),ie=0;ie<ae;ie++)re[ie]=arguments[ie+2];Q.children=re}if(B&&B.defaultProps)for(Y in ae=B.defaultProps,ae)Q[Y]===void 0&&(Q[Y]=ae[Y]);return N(B,Z,Q)},wn.createRef=function(){return{current:null}},wn.forwardRef=function(B){return{$$typeof:u,render:B}},wn.isValidElement=A,wn.lazy=function(B){return{$$typeof:h,_payload:{_status:-1,_result:B},_init:V}},wn.memo=function(B,U){return{$$typeof:d,type:B,compare:U===void 0?null:U}},wn.startTransition=function(B){var U=M.T,K={};M.T=K;try{var Y=B(),Q=M.S;Q!==null&&Q(K,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(j,q)}catch(Z){q(Z)}finally{U!==null&&K.types!==null&&(U.types=K.types),M.T=U}},wn.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},wn.use=function(B){return M.H.use(B)},wn.useActionState=function(B,U,K){return M.H.useActionState(B,U,K)},wn.useCallback=function(B,U){return M.H.useCallback(B,U)},wn.useContext=function(B){return M.H.useContext(B)},wn.useDebugValue=function(){},wn.useDeferredValue=function(B,U){return M.H.useDeferredValue(B,U)},wn.useEffect=function(B,U){return M.H.useEffect(B,U)},wn.useEffectEvent=function(B){return M.H.useEffectEvent(B)},wn.useId=function(){return M.H.useId()},wn.useImperativeHandle=function(B,U,K){return M.H.useImperativeHandle(B,U,K)},wn.useInsertionEffect=function(B,U){return M.H.useInsertionEffect(B,U)},wn.useLayoutEffect=function(B,U){return M.H.useLayoutEffect(B,U)},wn.useMemo=function(B,U){return M.H.useMemo(B,U)},wn.useOptimistic=function(B,U){return M.H.useOptimistic(B,U)},wn.useReducer=function(B,U,K){return M.H.useReducer(B,U,K)},wn.useRef=function(B){return M.H.useRef(B)},wn.useState=function(B){return M.H.useState(B)},wn.useSyncExternalStore=function(B,U,K){return M.H.useSyncExternalStore(B,U,K)},wn.useTransition=function(){return M.H.useTransition()},wn.version="19.2.0",wn}var J_;function sx(){return J_||(J_=1,Kb.exports=b6()),Kb.exports}var s=sx();const xe=Wi(s),Pv=CR({__proto__:null,default:xe},[s]);var Ub={exports:{}},pd={},Wb={exports:{}},qb={};/**
 * @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 eE;function y6(){return eE||(eE=1,(function(e){function t(T,z){var V=T.length;T.push(z);e:for(;0<V;){var q=V-1>>>1,G=T[q];if(0<a(G,z))T[q]=z,T[V]=G,V=q;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var z=T[0],V=T.pop();if(V!==z){T[0]=V;e:for(var q=0,G=T.length,B=G>>>1;q<B;){var U=2*(q+1)-1,K=T[U],Y=U+1,Q=T[Y];if(0>a(K,V))Y<G&&0>a(Q,K)?(T[q]=Q,T[Y]=V,q=Y):(T[q]=K,T[U]=V,q=U);else if(Y<G&&0>a(Q,V))T[q]=Q,T[Y]=V,q=Y;else break e}}return z}function a(T,z){var V=T.sortIndex-z.sortIndex;return V!==0?V:T.id-z.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 c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var f=[],d=[],h=1,v=null,g=3,b=!1,S=!1,C=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function O(T){for(var z=n(d);z!==null;){if(z.callback===null)r(d);else if(z.startTime<=T)r(d),z.sortIndex=z.expirationTime,t(f,z);else break;z=n(d)}}function I(T){if(C=!1,O(T),!S)if(n(f)!==null)S=!0,j||(j=!0,F());else{var z=n(d);z!==null&&L(I,z.startTime-T)}}var j=!1,M=-1,D=5,N=-1;function P(){return y?!0:!(e.unstable_now()-N<D)}function A(){if(y=!1,j){var T=e.unstable_now();N=T;var z=!0;try{e:{S=!1,C&&(C=!1,$(M),M=-1),b=!0;var V=g;try{t:{for(O(T),v=n(f);v!==null&&!(v.expirationTime>T&&P());){var q=v.callback;if(typeof q=="function"){v.callback=null,g=v.priorityLevel;var G=q(v.expirationTime<=T);if(T=e.unstable_now(),typeof G=="function"){v.callback=G,O(T),z=!0;break t}v===n(f)&&r(f),O(T)}else r(f);v=n(f)}if(v!==null)z=!0;else{var B=n(d);B!==null&&L(I,B.startTime-T),z=!1}}break e}finally{v=null,g=V,b=!1}z=void 0}}finally{z?F():j=!1}}}var F;if(typeof _=="function")F=function(){_(A)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,k=H.port2;H.port1.onmessage=A,F=function(){k.postMessage(null)}}else F=function(){w(A,0)};function L(T,z){M=w(function(){T(e.unstable_now())},z)}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(T){T.callback=null},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(T){switch(g){case 1:case 2:case 3:var z=3;break;default:z=g}var V=g;g=z;try{return T()}finally{g=V}},e.unstable_requestPaint=function(){y=!0},e.unstable_runWithPriority=function(T,z){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var V=g;g=T;try{return z()}finally{g=V}},e.unstable_scheduleCallback=function(T,z,V){var q=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?q+V:q):V=q,T){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=V+G,T={id:h++,callback:z,priorityLevel:T,startTime:V,expirationTime:G,sortIndex:-1},V>q?(T.sortIndex=V,t(d,T),n(f)===null&&T===n(d)&&(C?($(M),M=-1):C=!0,L(I,V-q))):(T.sortIndex=G,t(f,T),S||b||(S=!0,j||(j=!0,F()))),T},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(T){var z=g;return function(){var V=g;g=z;try{return T.apply(this,arguments)}finally{g=V}}}})(qb)),qb}var tE;function S6(){return tE||(tE=1,Wb.exports=y6()),Wb.exports}var Yb={exports:{}},Ea={};/**
 * @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 nE;function x6(){if(nE)return Ea;nE=1;var e=sx();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 v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:v==null?null:""+v,children:f,containerInfo:d,implementation:h}}var c=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 Ea.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ea.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)},Ea.flushSync=function(f){var d=c.T,h=r.p;try{if(c.T=null,r.p=2,f)return f()}finally{c.T=d,r.p=h,r.d.f()}},Ea.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))},Ea.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},Ea.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var h=d.as,v=u(h,d.crossOrigin),g=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:v,integrity:g,fetchPriority:b}):h==="script"&&r.d.X(f,{crossOrigin:v,integrity:g,fetchPriority:b,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Ea.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)},Ea.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var h=d.as,v=u(h,d.crossOrigin);r.d.L(f,h,{crossOrigin:v,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})}},Ea.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)},Ea.requestFormReset=function(f){r.d.r(f)},Ea.unstable_batchedUpdates=function(f,d){return f(d)},Ea.useFormState=function(f,d,h){return c.H.useFormState(f,d,h)},Ea.useFormStatus=function(){return c.H.useHostTransitionStatus()},Ea.version="19.2.0",Ea}var rE;function wR(){if(rE)return Yb.exports;rE=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(),Yb.exports=x6(),Yb.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 aE;function C6(){if(aE)return pd;aE=1;var e=S6(),t=sx(),n=wR();function r(i){var l="https://react.dev/errors/"+i;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)l+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+i+"; visit "+l+" 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 l=i,m=i;if(i.alternate)for(;l.return;)l=l.return;else{i=l;do l=i,(l.flags&4098)!==0&&(m=l.return),i=l.return;while(i)}return l.tag===3?m:null}function c(i){if(i.tag===13){var l=i.memoizedState;if(l===null&&(i=i.alternate,i!==null&&(l=i.memoizedState)),l!==null)return l.dehydrated}return null}function u(i){if(i.tag===31){var l=i.memoizedState;if(l===null&&(i=i.alternate,i!==null&&(l=i.memoizedState)),l!==null)return l.dehydrated}return null}function f(i){if(o(i)!==i)throw Error(r(188))}function d(i){var l=i.alternate;if(!l){if(l=o(i),l===null)throw Error(r(188));return l!==i?null:i}for(var m=i,p=l;;){var E=m.return;if(E===null)break;var R=E.alternate;if(R===null){if(p=E.return,p!==null){m=p;continue}break}if(E.child===R.child){for(R=E.child;R;){if(R===m)return f(E),i;if(R===p)return f(E),l;R=R.sibling}throw Error(r(188))}if(m.return!==p.return)m=E,p=R;else{for(var W=!1,ne=E.child;ne;){if(ne===m){W=!0,m=E,p=R;break}if(ne===p){W=!0,p=E,m=R;break}ne=ne.sibling}if(!W){for(ne=R.child;ne;){if(ne===m){W=!0,m=R,p=E;break}if(ne===p){W=!0,p=R,m=E;break}ne=ne.sibling}if(!W)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:l}function h(i){var l=i.tag;if(l===5||l===26||l===27||l===6)return i;for(i=i.child;i!==null;){if(l=h(i),l!==null)return l;i=i.sibling}return null}var v=Object.assign,g=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),_=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),A=Symbol.iterator;function F(i){return i===null||typeof i!="object"?null:(i=A&&i[A]||i["@@iterator"],typeof i=="function"?i:null)}var H=Symbol.for("react.client.reference");function k(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===H?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case C:return"Fragment";case w:return"Profiler";case y:return"StrictMode";case I:return"Suspense";case j:return"SuspenseList";case N:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case S:return"Portal";case _:return i.displayName||"Context";case $:return(i._context.displayName||"Context")+".Consumer";case O:var l=i.render;return i=i.displayName,i||(i=l.displayName||l.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case M:return l=i.displayName||null,l!==null?l:k(i.type)||"Memo";case D:l=i._payload,i=i._init;try{return k(i(l))}catch{}}return null}var L=Array.isArray,T=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},q=[],G=-1;function B(i){return{current:i}}function U(i){0>G||(i.current=q[G],q[G]=null,G--)}function K(i,l){G++,q[G]=i.current,i.current=l}var Y=B(null),Q=B(null),Z=B(null),ae=B(null);function re(i,l){switch(K(Z,l),K(Q,i),K(Y,null),l.nodeType){case 9:case 11:i=(i=l.documentElement)&&(i=i.namespaceURI)?y_(i):0;break;default:if(i=l.tagName,l=l.namespaceURI)l=y_(l),i=S_(l,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}U(Y),K(Y,i)}function ie(){U(Y),U(Q),U(Z)}function ve(i){i.memoizedState!==null&&K(ae,i);var l=Y.current,m=S_(l,i.type);l!==m&&(K(Q,i),K(Y,m))}function ue(i){Q.current===i&&(U(Y),U(Q)),ae.current===i&&(U(ae),fd._currentValue=V)}var oe,he;function de(i){if(oe===void 0)try{throw Error()}catch(m){var l=m.stack.trim().match(/\n( *(at )?)/);oe=l&&l[1]||"",he=-1<m.stack.indexOf(`
    at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
`+oe+i+he}var me=!1;function le(i,l){if(!i||me)return"";me=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(l){var nt=function(){throw Error()};if(Object.defineProperty(nt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(nt,[])}catch(Ve){var Le=Ve}Reflect.construct(i,[],nt)}else{try{nt.call()}catch(Ve){Le=Ve}i.call(nt.prototype)}}else{try{throw Error()}catch(Ve){Le=Ve}(nt=i())&&typeof nt.catch=="function"&&nt.catch(function(){})}}catch(Ve){if(Ve&&Le&&typeof Ve.stack=="string")return[Ve.stack,Le.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var R=p.DetermineComponentFrameRoot(),W=R[0],ne=R[1];if(W&&ne){var Se=W.split(`
`),ze=ne.split(`
`);for(E=p=0;p<Se.length&&!Se[p].includes("DetermineComponentFrameRoot");)p++;for(;E<ze.length&&!ze[E].includes("DetermineComponentFrameRoot");)E++;if(p===Se.length||E===ze.length)for(p=Se.length-1,E=ze.length-1;1<=p&&0<=E&&Se[p]!==ze[E];)E--;for(;1<=p&&0<=E;p--,E--)if(Se[p]!==ze[E]){if(p!==1||E!==1)do if(p--,E--,0>E||Se[p]!==ze[E]){var Xe=`
`+Se[p].replace(" at new "," at ");return i.displayName&&Xe.includes("<anonymous>")&&(Xe=Xe.replace("<anonymous>",i.displayName)),Xe}while(1<=p&&0<=E);break}}}finally{me=!1,Error.prepareStackTrace=m}return(m=i?i.displayName||i.name:"")?de(m):""}function pe(i,l){switch(i.tag){case 26:case 27:case 5:return de(i.type);case 16:return de("Lazy");case 13:return i.child!==l&&l!==null?de("Suspense Fallback"):de("Suspense");case 19:return de("SuspenseList");case 0:case 15:return le(i.type,!1);case 11:return le(i.type.render,!1);case 1:return le(i.type,!0);case 31:return de("Activity");default:return""}}function Ce(i){try{var l="",m=null;do l+=pe(i,m),m=i,i=i.return;while(i);return l}catch(p){return`
Error generating stack: `+p.message+`
`+p.stack}}var De=Object.prototype.hasOwnProperty,je=e.unstable_scheduleCallback,ge=e.unstable_cancelCallback,Ie=e.unstable_shouldYield,_e=e.unstable_requestPaint,we=e.unstable_now,Fe=e.unstable_getCurrentPriorityLevel,He=e.unstable_ImmediatePriority,it=e.unstable_UserBlockingPriority,Ze=e.unstable_NormalPriority,Ye=e.unstable_LowPriority,Je=e.unstable_IdlePriority,Pe=e.log,Oe=e.unstable_setDisableYieldValue,Be=null,$e=null;function Te(i){if(typeof Pe=="function"&&Oe(i),$e&&typeof $e.setStrictMode=="function")try{$e.setStrictMode(Be,i)}catch{}}var be=Math.clz32?Math.clz32:Ge,ye=Math.log,Re=Math.LN2;function Ge(i){return i>>>=0,i===0?32:31-(ye(i)/Re|0)|0}var ft=256,$t=262144,Qe=4194304;function at(i){var l=i&42;if(l!==0)return l;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:return i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;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 mt(i,l,m){var p=i.pendingLanes;if(p===0)return 0;var E=0,R=i.suspendedLanes,W=i.pingedLanes;i=i.warmLanes;var ne=p&134217727;return ne!==0?(p=ne&~R,p!==0?E=at(p):(W&=ne,W!==0?E=at(W):m||(m=ne&~i,m!==0&&(E=at(m))))):(ne=p&~R,ne!==0?E=at(ne):W!==0?E=at(W):m||(m=p&~i,m!==0&&(E=at(m)))),E===0?0:l!==0&&l!==E&&(l&R)===0&&(R=E&-E,m=l&-l,R>=m||R===32&&(m&4194048)!==0)?l:E}function st(i,l){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&l)===0}function pt(i,l){switch(i){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 Wt(){var i=Qe;return Qe<<=1,(Qe&62914560)===0&&(Qe=4194304),i}function Yt(i){for(var l=[],m=0;31>m;m++)l.push(i);return l}function ht(i,l){i.pendingLanes|=l,l!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function It(i,l,m,p,E,R){var W=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 ne=i.entanglements,Se=i.expirationTimes,ze=i.hiddenUpdates;for(m=W&~m;0<m;){var Xe=31-be(m),nt=1<<Xe;ne[Xe]=0,Se[Xe]=-1;var Le=ze[Xe];if(Le!==null)for(ze[Xe]=null,Xe=0;Xe<Le.length;Xe++){var Ve=Le[Xe];Ve!==null&&(Ve.lane&=-536870913)}m&=~nt}p!==0&&_t(i,p,0),R!==0&&E===0&&i.tag!==0&&(i.suspendedLanes|=R&~(W&~l))}function _t(i,l,m){i.pendingLanes|=l,i.suspendedLanes&=~l;var p=31-be(l);i.entangledLanes|=l,i.entanglements[p]=i.entanglements[p]|1073741824|m&261930}function tt(i,l){var m=i.entangledLanes|=l;for(i=i.entanglements;m;){var p=31-be(m),E=1<<p;E&l|i[p]&l&&(i[p]|=l),m&=~E}}function Ue(i,l){var m=l&-l;return m=(m&42)!==0?1:qe(m),(m&(i.suspendedLanes|l))!==0?0:m}function qe(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 ct(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function Tt(){var i=z.p;return i!==0?i:(i=window.event,i===void 0?32:V_(i.type))}function Dt(i,l){var m=z.p;try{return z.p=i,l()}finally{z.p=m}}var Jt=Math.random().toString(36).slice(2),ut="__reactFiber$"+Jt,ot="__reactProps$"+Jt,Lt="__reactContainer$"+Jt,tn="__reactEvents$"+Jt,hn="__reactListeners$"+Jt,cn="__reactHandles$"+Jt,En="__reactResources$"+Jt,rn="__reactMarker$"+Jt;function xn(i){delete i[ut],delete i[ot],delete i[tn],delete i[hn],delete i[cn]}function lt(i){var l=i[ut];if(l)return l;for(var m=i.parentNode;m;){if(l=m[Lt]||m[ut]){if(m=l.alternate,l.child!==null||m!==null&&m.child!==null)for(i=O_(i);i!==null;){if(m=i[ut])return m;i=O_(i)}return l}i=m,m=i.parentNode}return null}function St(i){if(i=i[ut]||i[Lt]){var l=i.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return i}return null}function Bt(i){var l=i.tag;if(l===5||l===26||l===27||l===6)return i.stateNode;throw Error(r(33))}function kt(i){var l=i[En];return l||(l=i[En]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function vt(i){i[rn]=!0}var Et=new Set,Qt={};function on(i,l){bt(i,l),bt(i+"Capture",l)}function bt(i,l){for(Qt[i]=l,i=0;i<l.length;i++)Et.add(l[i])}var Ht=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]*$"),nn={},Xn={};function br(i){return De.call(Xn,i)?!0:De.call(nn,i)?!1:Ht.test(i)?Xn[i]=!0:(nn[i]=!0,!1)}function wr(i,l,m){if(br(l))if(m===null)i.removeAttribute(l);else{switch(typeof m){case"undefined":case"function":case"symbol":i.removeAttribute(l);return;case"boolean":var p=l.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){i.removeAttribute(l);return}}i.setAttribute(l,""+m)}}function $r(i,l,m){if(m===null)i.removeAttribute(l);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(l);return}i.setAttribute(l,""+m)}}function Yn(i,l,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(l,m,""+p)}}function Gn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Dr(i){var l=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Hr(i,l,m){var p=Object.getOwnPropertyDescriptor(i.constructor.prototype,l);if(!i.hasOwnProperty(l)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var E=p.get,R=p.set;return Object.defineProperty(i,l,{configurable:!0,get:function(){return E.call(this)},set:function(W){m=""+W,R.call(this,W)}}),Object.defineProperty(i,l,{enumerable:p.enumerable}),{getValue:function(){return m},setValue:function(W){m=""+W},stopTracking:function(){i._valueTracker=null,delete i[l]}}}}function Nr(i){if(!i._valueTracker){var l=Dr(i)?"checked":"value";i._valueTracker=Hr(i,l,""+i[l])}}function In(i){if(!i)return!1;var l=i._valueTracker;if(!l)return!0;var m=l.getValue(),p="";return i&&(p=Dr(i)?i.checked?"true":"false":i.value),i=p,i!==m?(l.setValue(i),!0):!1}function At(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 un(i){return i.replace(zt,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Nt(i,l,m,p,E,R,W,ne){i.name="",W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"?i.type=W:i.removeAttribute("type"),l!=null?W==="number"?(l===0&&i.value===""||i.value!=l)&&(i.value=""+Gn(l)):i.value!==""+Gn(l)&&(i.value=""+Gn(l)):W!=="submit"&&W!=="reset"||i.removeAttribute("value"),l!=null?yn(i,W,Gn(l)):m!=null?yn(i,W,Gn(m)):p!=null&&i.removeAttribute("value"),E==null&&R!=null&&(i.defaultChecked=!!R),E!=null&&(i.checked=E&&typeof E!="function"&&typeof E!="symbol"),ne!=null&&typeof ne!="function"&&typeof ne!="symbol"&&typeof ne!="boolean"?i.name=""+Gn(ne):i.removeAttribute("name")}function Pt(i,l,m,p,E,R,W,ne){if(R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(i.type=R),l!=null||m!=null){if(!(R!=="submit"&&R!=="reset"||l!=null)){Nr(i);return}m=m!=null?""+Gn(m):"",l=l!=null?""+Gn(l):m,ne||l===i.value||(i.value=l),i.defaultValue=l}p=p??E,p=typeof p!="function"&&typeof p!="symbol"&&!!p,i.checked=ne?i.checked:!!p,i.defaultChecked=!!p,W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"&&(i.name=W),Nr(i)}function yn(i,l,m){l==="number"&&At(i.ownerDocument)===i||i.defaultValue===""+m||(i.defaultValue=""+m)}function Ln(i,l,m,p){if(i=i.options,l){l={};for(var E=0;E<m.length;E++)l["$"+m[E]]=!0;for(m=0;m<i.length;m++)E=l.hasOwnProperty("$"+i[m].value),i[m].selected!==E&&(i[m].selected=E),E&&p&&(i[m].defaultSelected=!0)}else{for(m=""+Gn(m),l=null,E=0;E<i.length;E++){if(i[E].value===m){i[E].selected=!0,p&&(i[E].defaultSelected=!0);return}l!==null||i[E].disabled||(l=i[E])}l!==null&&(l.selected=!0)}}function lr(i,l,m){if(l!=null&&(l=""+Gn(l),l!==i.value&&(i.value=l),m==null)){i.defaultValue!==l&&(i.defaultValue=l);return}i.defaultValue=m!=null?""+Gn(m):""}function Pr(i,l,m,p){if(l==null){if(p!=null){if(m!=null)throw Error(r(92));if(L(p)){if(1<p.length)throw Error(r(93));p=p[0]}m=p}m==null&&(m=""),l=m}m=Gn(l),i.defaultValue=m,p=i.textContent,p===m&&p!==""&&p!==null&&(i.value=p),Nr(i)}function sr(i,l){if(l){var m=i.firstChild;if(m&&m===i.lastChild&&m.nodeType===3){m.nodeValue=l;return}}i.textContent=l}var kr=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 vn(i,l,m){var p=l.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?p?i.setProperty(l,""):l==="float"?i.cssFloat="":i[l]="":p?i.setProperty(l,m):typeof m!="number"||m===0||kr.has(l)?l==="float"?i.cssFloat=m:i[l]=(""+m).trim():i[l]=m+"px"}function dt(i,l,m){if(l!=null&&typeof l!="object")throw Error(r(62));if(i=i.style,m!=null){for(var p in m)!m.hasOwnProperty(p)||l!=null&&l.hasOwnProperty(p)||(p.indexOf("--")===0?i.setProperty(p,""):p==="float"?i.cssFloat="":i[p]="");for(var E in l)p=l[E],l.hasOwnProperty(E)&&m[E]!==p&&vn(i,E,p)}else for(var R in l)l.hasOwnProperty(R)&&vn(i,R,l[R])}function Ot(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 bn=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"]]),Cn=/^[\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 nr(i){return Cn.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function Ar(){}var Br=null;function Yr(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var sa=null,Pa=null;function Ks(i){var l=St(i);if(l&&(i=l.stateNode)){var m=i[ot]||null;e:switch(i=l.stateNode,l.type){case"input":if(Nt(i,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),l=m.name,m.type==="radio"&&l!=null){for(m=i;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+un(""+l)+'"][type="radio"]'),l=0;l<m.length;l++){var p=m[l];if(p!==i&&p.form===i.form){var E=p[ot]||null;if(!E)throw Error(r(90));Nt(p,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name)}}for(l=0;l<m.length;l++)p=m[l],p.form===i.form&&In(p)}break e;case"textarea":lr(i,m.value,m.defaultValue);break e;case"select":l=m.value,l!=null&&Ln(i,!!m.multiple,l,!1)}}}var Yl=!1;function Us(i,l,m){if(Yl)return i(l,m);Yl=!0;try{var p=i(l);return p}finally{if(Yl=!1,(sa!==null||Pa!==null)&&(Am(),sa&&(l=sa,i=Pa,Pa=sa=null,Ks(l),i)))for(l=0;l<i.length;l++)Ks(i[l])}}function Vt(i,l){var m=i.stateNode;if(m===null)return null;var p=m[ot]||null;if(p===null)return null;m=p[l];e:switch(l){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,l,typeof m));return m}var an=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fr=!1;if(an)try{var _r={};Object.defineProperty(_r,"passive",{get:function(){fr=!0}}),window.addEventListener("test",_r,_r),window.removeEventListener("test",_r,_r)}catch{fr=!1}var rr=null,tl=null,nl=null;function Nu(){if(nl)return nl;var i,l=tl,m=l.length,p,E="value"in rr?rr.value:rr.textContent,R=E.length;for(i=0;i<m&&l[i]===E[i];i++);var W=m-i;for(p=1;p<=W&&l[m-p]===E[R-p];p++);return nl=E.slice(i,1<p?1-p:void 0)}function bo(i){var l=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&l===13&&(i=13)):i=l,i===10&&(i=13),32<=i||i===13?i:0}function Jf(){return!0}function x1(){return!1}function La(i){function l(m,p,E,R,W){this._reactName=m,this._targetInst=E,this.type=p,this.nativeEvent=R,this.target=W,this.currentTarget=null;for(var ne in i)i.hasOwnProperty(ne)&&(m=i[ne],this[ne]=m?m(R):R[ne]);return this.isDefaultPrevented=(R.defaultPrevented!=null?R.defaultPrevented:R.returnValue===!1)?Jf:x1,this.isPropagationStopped=x1,this}return v(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=Jf)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=Jf)},persist:function(){},isPersistent:Jf}),l}var Gl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},em=La(Gl),Mu=v({},Gl,{view:0,detail:0}),h4=La(Mu),Ug,Wg,ju,tm=v({},Mu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yg,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!==ju&&(ju&&i.type==="mousemove"?(Ug=i.screenX-ju.screenX,Wg=i.screenY-ju.screenY):Wg=Ug=0,ju=i),Ug)},movementY:function(i){return"movementY"in i?i.movementY:Wg}}),C1=La(tm),v4=v({},tm,{dataTransfer:0}),g4=La(v4),p4=v({},Mu,{relatedTarget:0}),qg=La(p4),b4=v({},Gl,{animationName:0,elapsedTime:0,pseudoElement:0}),y4=La(b4),S4=v({},Gl,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),x4=La(S4),C4=v({},Gl,{data:0}),w1=La(C4),w4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$4={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"},_4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function E4(i){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(i):(i=_4[i])?!!l[i]:!1}function Yg(){return E4}var O4=v({},Mu,{key:function(i){if(i.key){var l=w4[i.key]||i.key;if(l!=="Unidentified")return l}return i.type==="keypress"?(i=bo(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?$4[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yg,charCode:function(i){return i.type==="keypress"?bo(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?bo(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),I4=La(O4),R4=v({},tm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$1=La(R4),N4=v({},Mu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yg}),M4=La(N4),j4=v({},Gl,{propertyName:0,elapsedTime:0,pseudoElement:0}),T4=La(j4),D4=v({},tm,{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}),P4=La(D4),k4=v({},Gl,{newState:0,oldState:0}),A4=La(k4),z4=[9,13,27,32],Gg=an&&"CompositionEvent"in window,Tu=null;an&&"documentMode"in document&&(Tu=document.documentMode);var L4=an&&"TextEvent"in window&&!Tu,_1=an&&(!Gg||Tu&&8<Tu&&11>=Tu),E1=" ",O1=!1;function I1(i,l){switch(i){case"keyup":return z4.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function R1(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ws=!1;function H4(i,l){switch(i){case"compositionend":return R1(l);case"keypress":return l.which!==32?null:(O1=!0,E1);case"textInput":return i=l.data,i===E1&&O1?null:i;default:return null}}function B4(i,l){if(Ws)return i==="compositionend"||!Gg&&I1(i,l)?(i=Nu(),nl=tl=rr=null,Ws=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return _1&&l.locale!=="ko"?null:l.data;default:return null}}var F4={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 N1(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l==="input"?!!F4[i.type]:l==="textarea"}function M1(i,l,m,p){sa?Pa?Pa.push(p):Pa=[p]:sa=p,l=Km(l,"onChange"),0<l.length&&(m=new em("onChange","change",null,m,p),i.push({event:m,listeners:l}))}var Du=null,Pu=null;function V4(i){m_(i,0)}function nm(i){var l=Bt(i);if(In(l))return i}function j1(i,l){if(i==="change")return l}var T1=!1;if(an){var Xg;if(an){var Qg="oninput"in document;if(!Qg){var D1=document.createElement("div");D1.setAttribute("oninput","return;"),Qg=typeof D1.oninput=="function"}Xg=Qg}else Xg=!1;T1=Xg&&(!document.documentMode||9<document.documentMode)}function P1(){Du&&(Du.detachEvent("onpropertychange",k1),Pu=Du=null)}function k1(i){if(i.propertyName==="value"&&nm(Pu)){var l=[];M1(l,Pu,i,Yr(i)),Us(V4,l)}}function K4(i,l,m){i==="focusin"?(P1(),Du=l,Pu=m,Du.attachEvent("onpropertychange",k1)):i==="focusout"&&P1()}function U4(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return nm(Pu)}function W4(i,l){if(i==="click")return nm(l)}function q4(i,l){if(i==="input"||i==="change")return nm(l)}function Y4(i,l){return i===l&&(i!==0||1/i===1/l)||i!==i&&l!==l}var Ya=typeof Object.is=="function"?Object.is:Y4;function ku(i,l){if(Ya(i,l))return!0;if(typeof i!="object"||i===null||typeof l!="object"||l===null)return!1;var m=Object.keys(i),p=Object.keys(l);if(m.length!==p.length)return!1;for(p=0;p<m.length;p++){var E=m[p];if(!De.call(l,E)||!Ya(i[E],l[E]))return!1}return!0}function A1(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function z1(i,l){var m=A1(i);i=0;for(var p;m;){if(m.nodeType===3){if(p=i+m.textContent.length,i<=l&&p>=l)return{node:m,offset:l-i};i=p}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=A1(m)}}function L1(i,l){return i&&l?i===l?!0:i&&i.nodeType===3?!1:l&&l.nodeType===3?L1(i,l.parentNode):"contains"in i?i.contains(l):i.compareDocumentPosition?!!(i.compareDocumentPosition(l)&16):!1:!1}function H1(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var l=At(i.document);l instanceof i.HTMLIFrameElement;){try{var m=typeof l.contentWindow.location.href=="string"}catch{m=!1}if(m)i=l.contentWindow;else break;l=At(i.document)}return l}function Zg(i){var l=i&&i.nodeName&&i.nodeName.toLowerCase();return l&&(l==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||l==="textarea"||i.contentEditable==="true")}var G4=an&&"documentMode"in document&&11>=document.documentMode,qs=null,Jg=null,Au=null,ep=!1;function B1(i,l,m){var p=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;ep||qs==null||qs!==At(p)||(p=qs,"selectionStart"in p&&Zg(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}),Au&&ku(Au,p)||(Au=p,p=Km(Jg,"onSelect"),0<p.length&&(l=new em("onSelect","select",null,l,m),i.push({event:l,listeners:p}),l.target=qs)))}function Xl(i,l){var m={};return m[i.toLowerCase()]=l.toLowerCase(),m["Webkit"+i]="webkit"+l,m["Moz"+i]="moz"+l,m}var Ys={animationend:Xl("Animation","AnimationEnd"),animationiteration:Xl("Animation","AnimationIteration"),animationstart:Xl("Animation","AnimationStart"),transitionrun:Xl("Transition","TransitionRun"),transitionstart:Xl("Transition","TransitionStart"),transitioncancel:Xl("Transition","TransitionCancel"),transitionend:Xl("Transition","TransitionEnd")},tp={},F1={};an&&(F1=document.createElement("div").style,"AnimationEvent"in window||(delete Ys.animationend.animation,delete Ys.animationiteration.animation,delete Ys.animationstart.animation),"TransitionEvent"in window||delete Ys.transitionend.transition);function Ql(i){if(tp[i])return tp[i];if(!Ys[i])return i;var l=Ys[i],m;for(m in l)if(l.hasOwnProperty(m)&&m in F1)return tp[i]=l[m];return i}var V1=Ql("animationend"),K1=Ql("animationiteration"),U1=Ql("animationstart"),X4=Ql("transitionrun"),Q4=Ql("transitionstart"),Z4=Ql("transitioncancel"),W1=Ql("transitionend"),q1=new Map,np="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(" ");np.push("scrollEnd");function Ni(i,l){q1.set(i,l),on(l,[i])}var rm=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=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(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},si=[],Gs=0,rp=0;function am(){for(var i=Gs,l=rp=Gs=0;l<i;){var m=si[l];si[l++]=null;var p=si[l];si[l++]=null;var E=si[l];si[l++]=null;var R=si[l];if(si[l++]=null,p!==null&&E!==null){var W=p.pending;W===null?E.next=E:(E.next=W.next,W.next=E),p.pending=E}R!==0&&Y1(m,E,R)}}function im(i,l,m,p){si[Gs++]=i,si[Gs++]=l,si[Gs++]=m,si[Gs++]=p,rp|=p,i.lanes|=p,i=i.alternate,i!==null&&(i.lanes|=p)}function ap(i,l,m,p){return im(i,l,m,p),om(i)}function Zl(i,l){return im(i,null,null,l),om(i)}function Y1(i,l,m){i.lanes|=m;var p=i.alternate;p!==null&&(p.lanes|=m);for(var E=!1,R=i.return;R!==null;)R.childLanes|=m,p=R.alternate,p!==null&&(p.childLanes|=m),R.tag===22&&(i=R.stateNode,i===null||i._visibility&1||(E=!0)),i=R,R=R.return;return i.tag===3?(R=i.stateNode,E&&l!==null&&(E=31-be(m),i=R.hiddenUpdates,p=i[E],p===null?i[E]=[l]:p.push(l),l.lane=m|536870912),R):null}function om(i){if(50<id)throw id=0,mb=null,Error(r(185));for(var l=i.return;l!==null;)i=l,l=i.return;return i.tag===3?i.stateNode:null}var Xs={};function J4(i,l,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=l,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 Ga(i,l,m,p){return new J4(i,l,m,p)}function ip(i){return i=i.prototype,!(!i||!i.isReactComponent)}function yo(i,l){var m=i.alternate;return m===null?(m=Ga(i.tag,l,i.key,i.mode),m.elementType=i.elementType,m.type=i.type,m.stateNode=i.stateNode,m.alternate=i,i.alternate=m):(m.pendingProps=l,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,l=i.dependencies,m.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},m.sibling=i.sibling,m.index=i.index,m.ref=i.ref,m.refCleanup=i.refCleanup,m}function G1(i,l){i.flags&=65011714;var m=i.alternate;return m===null?(i.childLanes=0,i.lanes=l,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,l=m.dependencies,i.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),i}function lm(i,l,m,p,E,R){var W=0;if(p=i,typeof i=="function")ip(i)&&(W=1);else if(typeof i=="string")W=a6(i,m,Y.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case N:return i=Ga(31,m,l,E),i.elementType=N,i.lanes=R,i;case C:return Jl(m.children,E,R,l);case y:W=8,E|=24;break;case w:return i=Ga(12,m,l,E|2),i.elementType=w,i.lanes=R,i;case I:return i=Ga(13,m,l,E),i.elementType=I,i.lanes=R,i;case j:return i=Ga(19,m,l,E),i.elementType=j,i.lanes=R,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case _:W=10;break e;case $:W=9;break e;case O:W=11;break e;case M:W=14;break e;case D:W=16,p=null;break e}W=29,m=Error(r(130,i===null?"null":typeof i,"")),p=null}return l=Ga(W,m,l,E),l.elementType=i,l.type=p,l.lanes=R,l}function Jl(i,l,m,p){return i=Ga(7,i,p,l),i.lanes=m,i}function op(i,l,m){return i=Ga(6,i,null,l),i.lanes=m,i}function X1(i){var l=Ga(18,null,null,0);return l.stateNode=i,l}function lp(i,l,m){return l=Ga(4,i.children!==null?i.children:[],i.key,l),l.lanes=m,l.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},l}var Q1=new WeakMap;function ci(i,l){if(typeof i=="object"&&i!==null){var m=Q1.get(i);return m!==void 0?m:(l={value:i,source:l,stack:Ce(l)},Q1.set(i,l),l)}return{value:i,source:l,stack:Ce(l)}}var Qs=[],Zs=0,sm=null,zu=0,ui=[],di=0,rl=null,Ji=1,eo="";function So(i,l){Qs[Zs++]=zu,Qs[Zs++]=sm,sm=i,zu=l}function Z1(i,l,m){ui[di++]=Ji,ui[di++]=eo,ui[di++]=rl,rl=i;var p=Ji;i=eo;var E=32-be(p)-1;p&=~(1<<E),m+=1;var R=32-be(l)+E;if(30<R){var W=E-E%5;R=(p&(1<<W)-1).toString(32),p>>=W,E-=W,Ji=1<<32-be(l)+E|m<<E|p,eo=R+i}else Ji=1<<R|m<<E|p,eo=i}function sp(i){i.return!==null&&(So(i,1),Z1(i,1,0))}function cp(i){for(;i===sm;)sm=Qs[--Zs],Qs[Zs]=null,zu=Qs[--Zs],Qs[Zs]=null;for(;i===rl;)rl=ui[--di],ui[di]=null,eo=ui[--di],ui[di]=null,Ji=ui[--di],ui[di]=null}function J1(i,l){ui[di++]=Ji,ui[di++]=eo,ui[di++]=rl,Ji=l.id,eo=l.overflow,rl=i}var ga=null,Er=null,Un=!1,al=null,fi=!1,up=Error(r(519));function il(i){var l=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Lu(ci(l,i)),up}function ew(i){var l=i.stateNode,m=i.type,p=i.memoizedProps;switch(l[ut]=i,l[ot]=p,m){case"dialog":kn("cancel",l),kn("close",l);break;case"iframe":case"object":case"embed":kn("load",l);break;case"video":case"audio":for(m=0;m<ld.length;m++)kn(ld[m],l);break;case"source":kn("error",l);break;case"img":case"image":case"link":kn("error",l),kn("load",l);break;case"details":kn("toggle",l);break;case"input":kn("invalid",l),Pt(l,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":kn("invalid",l);break;case"textarea":kn("invalid",l),Pr(l,p.value,p.defaultValue,p.children)}m=p.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||l.textContent===""+m||p.suppressHydrationWarning===!0||p_(l.textContent,m)?(p.popover!=null&&(kn("beforetoggle",l),kn("toggle",l)),p.onScroll!=null&&kn("scroll",l),p.onScrollEnd!=null&&kn("scrollend",l),p.onClick!=null&&(l.onclick=Ar),l=!0):l=!1,l||il(i,!0)}function tw(i){for(ga=i.return;ga;)switch(ga.tag){case 5:case 31:case 13:fi=!1;return;case 27:case 3:fi=!0;return;default:ga=ga.return}}function Js(i){if(i!==ga)return!1;if(!Un)return tw(i),Un=!0,!1;var l=i.tag,m;if((m=l!==3&&l!==27)&&((m=l===5)&&(m=i.type,m=!(m!=="form"&&m!=="button")||Ib(i.type,i.memoizedProps)),m=!m),m&&Er&&il(i),tw(i),l===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));Er=E_(i)}else if(l===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));Er=E_(i)}else l===27?(l=Er,yl(i.type)?(i=Tb,Tb=null,Er=i):Er=l):Er=ga?hi(i.stateNode.nextSibling):null;return!0}function es(){Er=ga=null,Un=!1}function dp(){var i=al;return i!==null&&(Va===null?Va=i:Va.push.apply(Va,i),al=null),i}function Lu(i){al===null?al=[i]:al.push(i)}var fp=B(null),ts=null,xo=null;function ol(i,l,m){K(fp,l._currentValue),l._currentValue=m}function Co(i){i._currentValue=fp.current,U(fp)}function mp(i,l,m){for(;i!==null;){var p=i.alternate;if((i.childLanes&l)!==l?(i.childLanes|=l,p!==null&&(p.childLanes|=l)):p!==null&&(p.childLanes&l)!==l&&(p.childLanes|=l),i===m)break;i=i.return}}function hp(i,l,m,p){var E=i.child;for(E!==null&&(E.return=i);E!==null;){var R=E.dependencies;if(R!==null){var W=E.child;R=R.firstContext;e:for(;R!==null;){var ne=R;R=E;for(var Se=0;Se<l.length;Se++)if(ne.context===l[Se]){R.lanes|=m,ne=R.alternate,ne!==null&&(ne.lanes|=m),mp(R.return,m,i),p||(W=null);break e}R=ne.next}}else if(E.tag===18){if(W=E.return,W===null)throw Error(r(341));W.lanes|=m,R=W.alternate,R!==null&&(R.lanes|=m),mp(W,m,i),W=null}else W=E.child;if(W!==null)W.return=E;else for(W=E;W!==null;){if(W===i){W=null;break}if(E=W.sibling,E!==null){E.return=W.return,W=E;break}W=W.return}E=W}}function ec(i,l,m,p){i=null;for(var E=l,R=!1;E!==null;){if(!R){if((E.flags&524288)!==0)R=!0;else if((E.flags&262144)!==0)break}if(E.tag===10){var W=E.alternate;if(W===null)throw Error(r(387));if(W=W.memoizedProps,W!==null){var ne=E.type;Ya(E.pendingProps.value,W.value)||(i!==null?i.push(ne):i=[ne])}}else if(E===ae.current){if(W=E.alternate,W===null)throw Error(r(387));W.memoizedState.memoizedState!==E.memoizedState.memoizedState&&(i!==null?i.push(fd):i=[fd])}E=E.return}i!==null&&hp(l,i,m,p),l.flags|=262144}function cm(i){for(i=i.firstContext;i!==null;){if(!Ya(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function ns(i){ts=i,xo=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function pa(i){return nw(ts,i)}function um(i,l){return ts===null&&ns(i),nw(i,l)}function nw(i,l){var m=l._currentValue;if(l={context:l,memoizedValue:m,next:null},xo===null){if(i===null)throw Error(r(308));xo=l,i.dependencies={lanes:0,firstContext:l},i.flags|=524288}else xo=xo.next=l;return m}var e3=typeof AbortController<"u"?AbortController:function(){var i=[],l=this.signal={aborted:!1,addEventListener:function(m,p){i.push(p)}};this.abort=function(){l.aborted=!0,i.forEach(function(m){return m()})}},t3=e.unstable_scheduleCallback,n3=e.unstable_NormalPriority,Gr={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vp(){return{controller:new e3,data:new Map,refCount:0}}function Hu(i){i.refCount--,i.refCount===0&&t3(n3,function(){i.controller.abort()})}var Bu=null,gp=0,tc=0,nc=null;function r3(i,l){if(Bu===null){var m=Bu=[];gp=0,tc=yb(),nc={status:"pending",value:void 0,then:function(p){m.push(p)}}}return gp++,l.then(rw,rw),l}function rw(){if(--gp===0&&Bu!==null){nc!==null&&(nc.status="fulfilled");var i=Bu;Bu=null,tc=0,nc=null;for(var l=0;l<i.length;l++)(0,i[l])()}}function a3(i,l){var m=[],p={status:"pending",value:null,reason:null,then:function(E){m.push(E)}};return i.then(function(){p.status="fulfilled",p.value=l;for(var E=0;E<m.length;E++)(0,m[E])(l)},function(E){for(p.status="rejected",p.reason=E,E=0;E<m.length;E++)(0,m[E])(void 0)}),p}var aw=T.S;T.S=function(i,l){B$=we(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&r3(i,l),aw!==null&&aw(i,l)};var rs=B(null);function pp(){var i=rs.current;return i!==null?i:yr.pooledCache}function dm(i,l){l===null?K(rs,rs.current):K(rs,l.pool)}function iw(){var i=pp();return i===null?null:{parent:Gr._currentValue,pool:i}}var rc=Error(r(460)),bp=Error(r(474)),fm=Error(r(542)),mm={then:function(){}};function ow(i){return i=i.status,i==="fulfilled"||i==="rejected"}function lw(i,l,m){switch(m=i[m],m===void 0?i.push(l):m!==l&&(l.then(Ar,Ar),l=m),l.status){case"fulfilled":return l.value;case"rejected":throw i=l.reason,cw(i),i;default:if(typeof l.status=="string")l.then(Ar,Ar);else{if(i=yr,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=l,i.status="pending",i.then(function(p){if(l.status==="pending"){var E=l;E.status="fulfilled",E.value=p}},function(p){if(l.status==="pending"){var E=l;E.status="rejected",E.reason=p}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw i=l.reason,cw(i),i}throw is=l,rc}}function as(i){try{var l=i._init;return l(i._payload)}catch(m){throw m!==null&&typeof m=="object"&&typeof m.then=="function"?(is=m,rc):m}}var is=null;function sw(){if(is===null)throw Error(r(459));var i=is;return is=null,i}function cw(i){if(i===rc||i===fm)throw Error(r(483))}var ac=null,Fu=0;function hm(i){var l=Fu;return Fu+=1,ac===null&&(ac=[]),lw(ac,i,l)}function Vu(i,l){l=l.props.ref,i.ref=l!==void 0?l:null}function vm(i,l){throw l.$$typeof===g?Error(r(525)):(i=Object.prototype.toString.call(l),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":i)))}function uw(i){function l(Ne,Ee){if(i){var Ae=Ne.deletions;Ae===null?(Ne.deletions=[Ee],Ne.flags|=16):Ae.push(Ee)}}function m(Ne,Ee){if(!i)return null;for(;Ee!==null;)l(Ne,Ee),Ee=Ee.sibling;return null}function p(Ne){for(var Ee=new Map;Ne!==null;)Ne.key!==null?Ee.set(Ne.key,Ne):Ee.set(Ne.index,Ne),Ne=Ne.sibling;return Ee}function E(Ne,Ee){return Ne=yo(Ne,Ee),Ne.index=0,Ne.sibling=null,Ne}function R(Ne,Ee,Ae){return Ne.index=Ae,i?(Ae=Ne.alternate,Ae!==null?(Ae=Ae.index,Ae<Ee?(Ne.flags|=67108866,Ee):Ae):(Ne.flags|=67108866,Ee)):(Ne.flags|=1048576,Ee)}function W(Ne){return i&&Ne.alternate===null&&(Ne.flags|=67108866),Ne}function ne(Ne,Ee,Ae,et){return Ee===null||Ee.tag!==6?(Ee=op(Ae,Ne.mode,et),Ee.return=Ne,Ee):(Ee=E(Ee,Ae),Ee.return=Ne,Ee)}function Se(Ne,Ee,Ae,et){var ln=Ae.type;return ln===C?Xe(Ne,Ee,Ae.props.children,et,Ae.key):Ee!==null&&(Ee.elementType===ln||typeof ln=="object"&&ln!==null&&ln.$$typeof===D&&as(ln)===Ee.type)?(Ee=E(Ee,Ae.props),Vu(Ee,Ae),Ee.return=Ne,Ee):(Ee=lm(Ae.type,Ae.key,Ae.props,null,Ne.mode,et),Vu(Ee,Ae),Ee.return=Ne,Ee)}function ze(Ne,Ee,Ae,et){return Ee===null||Ee.tag!==4||Ee.stateNode.containerInfo!==Ae.containerInfo||Ee.stateNode.implementation!==Ae.implementation?(Ee=lp(Ae,Ne.mode,et),Ee.return=Ne,Ee):(Ee=E(Ee,Ae.children||[]),Ee.return=Ne,Ee)}function Xe(Ne,Ee,Ae,et,ln){return Ee===null||Ee.tag!==7?(Ee=Jl(Ae,Ne.mode,et,ln),Ee.return=Ne,Ee):(Ee=E(Ee,Ae),Ee.return=Ne,Ee)}function nt(Ne,Ee,Ae){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"||typeof Ee=="bigint")return Ee=op(""+Ee,Ne.mode,Ae),Ee.return=Ne,Ee;if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case b:return Ae=lm(Ee.type,Ee.key,Ee.props,null,Ne.mode,Ae),Vu(Ae,Ee),Ae.return=Ne,Ae;case S:return Ee=lp(Ee,Ne.mode,Ae),Ee.return=Ne,Ee;case D:return Ee=as(Ee),nt(Ne,Ee,Ae)}if(L(Ee)||F(Ee))return Ee=Jl(Ee,Ne.mode,Ae,null),Ee.return=Ne,Ee;if(typeof Ee.then=="function")return nt(Ne,hm(Ee),Ae);if(Ee.$$typeof===_)return nt(Ne,um(Ne,Ee),Ae);vm(Ne,Ee)}return null}function Le(Ne,Ee,Ae,et){var ln=Ee!==null?Ee.key:null;if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint")return ln!==null?null:ne(Ne,Ee,""+Ae,et);if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case b:return Ae.key===ln?Se(Ne,Ee,Ae,et):null;case S:return Ae.key===ln?ze(Ne,Ee,Ae,et):null;case D:return Ae=as(Ae),Le(Ne,Ee,Ae,et)}if(L(Ae)||F(Ae))return ln!==null?null:Xe(Ne,Ee,Ae,et,null);if(typeof Ae.then=="function")return Le(Ne,Ee,hm(Ae),et);if(Ae.$$typeof===_)return Le(Ne,Ee,um(Ne,Ae),et);vm(Ne,Ae)}return null}function Ve(Ne,Ee,Ae,et,ln){if(typeof et=="string"&&et!==""||typeof et=="number"||typeof et=="bigint")return Ne=Ne.get(Ae)||null,ne(Ee,Ne,""+et,ln);if(typeof et=="object"&&et!==null){switch(et.$$typeof){case b:return Ne=Ne.get(et.key===null?Ae:et.key)||null,Se(Ee,Ne,et,ln);case S:return Ne=Ne.get(et.key===null?Ae:et.key)||null,ze(Ee,Ne,et,ln);case D:return et=as(et),Ve(Ne,Ee,Ae,et,ln)}if(L(et)||F(et))return Ne=Ne.get(Ae)||null,Xe(Ee,Ne,et,ln,null);if(typeof et.then=="function")return Ve(Ne,Ee,Ae,hm(et),ln);if(et.$$typeof===_)return Ve(Ne,Ee,Ae,um(Ee,et),ln);vm(Ee,et)}return null}function Xt(Ne,Ee,Ae,et){for(var ln=null,Qn=null,en=Ee,Rn=Ee=0,Bn=null;en!==null&&Rn<Ae.length;Rn++){en.index>Rn?(Bn=en,en=null):Bn=en.sibling;var Zn=Le(Ne,en,Ae[Rn],et);if(Zn===null){en===null&&(en=Bn);break}i&&en&&Zn.alternate===null&&l(Ne,en),Ee=R(Zn,Ee,Rn),Qn===null?ln=Zn:Qn.sibling=Zn,Qn=Zn,en=Bn}if(Rn===Ae.length)return m(Ne,en),Un&&So(Ne,Rn),ln;if(en===null){for(;Rn<Ae.length;Rn++)en=nt(Ne,Ae[Rn],et),en!==null&&(Ee=R(en,Ee,Rn),Qn===null?ln=en:Qn.sibling=en,Qn=en);return Un&&So(Ne,Rn),ln}for(en=p(en);Rn<Ae.length;Rn++)Bn=Ve(en,Ne,Rn,Ae[Rn],et),Bn!==null&&(i&&Bn.alternate!==null&&en.delete(Bn.key===null?Rn:Bn.key),Ee=R(Bn,Ee,Rn),Qn===null?ln=Bn:Qn.sibling=Bn,Qn=Bn);return i&&en.forEach(function($l){return l(Ne,$l)}),Un&&So(Ne,Rn),ln}function fn(Ne,Ee,Ae,et){if(Ae==null)throw Error(r(151));for(var ln=null,Qn=null,en=Ee,Rn=Ee=0,Bn=null,Zn=Ae.next();en!==null&&!Zn.done;Rn++,Zn=Ae.next()){en.index>Rn?(Bn=en,en=null):Bn=en.sibling;var $l=Le(Ne,en,Zn.value,et);if($l===null){en===null&&(en=Bn);break}i&&en&&$l.alternate===null&&l(Ne,en),Ee=R($l,Ee,Rn),Qn===null?ln=$l:Qn.sibling=$l,Qn=$l,en=Bn}if(Zn.done)return m(Ne,en),Un&&So(Ne,Rn),ln;if(en===null){for(;!Zn.done;Rn++,Zn=Ae.next())Zn=nt(Ne,Zn.value,et),Zn!==null&&(Ee=R(Zn,Ee,Rn),Qn===null?ln=Zn:Qn.sibling=Zn,Qn=Zn);return Un&&So(Ne,Rn),ln}for(en=p(en);!Zn.done;Rn++,Zn=Ae.next())Zn=Ve(en,Ne,Rn,Zn.value,et),Zn!==null&&(i&&Zn.alternate!==null&&en.delete(Zn.key===null?Rn:Zn.key),Ee=R(Zn,Ee,Rn),Qn===null?ln=Zn:Qn.sibling=Zn,Qn=Zn);return i&&en.forEach(function(v6){return l(Ne,v6)}),Un&&So(Ne,Rn),ln}function vr(Ne,Ee,Ae,et){if(typeof Ae=="object"&&Ae!==null&&Ae.type===C&&Ae.key===null&&(Ae=Ae.props.children),typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case b:e:{for(var ln=Ae.key;Ee!==null;){if(Ee.key===ln){if(ln=Ae.type,ln===C){if(Ee.tag===7){m(Ne,Ee.sibling),et=E(Ee,Ae.props.children),et.return=Ne,Ne=et;break e}}else if(Ee.elementType===ln||typeof ln=="object"&&ln!==null&&ln.$$typeof===D&&as(ln)===Ee.type){m(Ne,Ee.sibling),et=E(Ee,Ae.props),Vu(et,Ae),et.return=Ne,Ne=et;break e}m(Ne,Ee);break}else l(Ne,Ee);Ee=Ee.sibling}Ae.type===C?(et=Jl(Ae.props.children,Ne.mode,et,Ae.key),et.return=Ne,Ne=et):(et=lm(Ae.type,Ae.key,Ae.props,null,Ne.mode,et),Vu(et,Ae),et.return=Ne,Ne=et)}return W(Ne);case S:e:{for(ln=Ae.key;Ee!==null;){if(Ee.key===ln)if(Ee.tag===4&&Ee.stateNode.containerInfo===Ae.containerInfo&&Ee.stateNode.implementation===Ae.implementation){m(Ne,Ee.sibling),et=E(Ee,Ae.children||[]),et.return=Ne,Ne=et;break e}else{m(Ne,Ee);break}else l(Ne,Ee);Ee=Ee.sibling}et=lp(Ae,Ne.mode,et),et.return=Ne,Ne=et}return W(Ne);case D:return Ae=as(Ae),vr(Ne,Ee,Ae,et)}if(L(Ae))return Xt(Ne,Ee,Ae,et);if(F(Ae)){if(ln=F(Ae),typeof ln!="function")throw Error(r(150));return Ae=ln.call(Ae),fn(Ne,Ee,Ae,et)}if(typeof Ae.then=="function")return vr(Ne,Ee,hm(Ae),et);if(Ae.$$typeof===_)return vr(Ne,Ee,um(Ne,Ae),et);vm(Ne,Ae)}return typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint"?(Ae=""+Ae,Ee!==null&&Ee.tag===6?(m(Ne,Ee.sibling),et=E(Ee,Ae),et.return=Ne,Ne=et):(m(Ne,Ee),et=op(Ae,Ne.mode,et),et.return=Ne,Ne=et),W(Ne)):m(Ne,Ee)}return function(Ne,Ee,Ae,et){try{Fu=0;var ln=vr(Ne,Ee,Ae,et);return ac=null,ln}catch(en){if(en===rc||en===fm)throw en;var Qn=Ga(29,en,null,Ne.mode);return Qn.lanes=et,Qn.return=Ne,Qn}finally{}}}var os=uw(!0),dw=uw(!1),ll=!1;function yp(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Sp(i,l){i=i.updateQueue,l.updateQueue===i&&(l.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function sl(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function cl(i,l,m){var p=i.updateQueue;if(p===null)return null;if(p=p.shared,(ar&2)!==0){var E=p.pending;return E===null?l.next=l:(l.next=E.next,E.next=l),p.pending=l,l=om(i),Y1(i,null,m),l}return im(i,p,l,m),om(i)}function Ku(i,l,m){if(l=l.updateQueue,l!==null&&(l=l.shared,(m&4194048)!==0)){var p=l.lanes;p&=i.pendingLanes,m|=p,l.lanes=m,tt(i,m)}}function xp(i,l){var m=i.updateQueue,p=i.alternate;if(p!==null&&(p=p.updateQueue,m===p)){var E=null,R=null;if(m=m.firstBaseUpdate,m!==null){do{var W={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};R===null?E=R=W:R=R.next=W,m=m.next}while(m!==null);R===null?E=R=l:R=R.next=l}else E=R=l;m={baseState:p.baseState,firstBaseUpdate:E,lastBaseUpdate:R,shared:p.shared,callbacks:p.callbacks},i.updateQueue=m;return}i=m.lastBaseUpdate,i===null?m.firstBaseUpdate=l:i.next=l,m.lastBaseUpdate=l}var Cp=!1;function Uu(){if(Cp){var i=nc;if(i!==null)throw i}}function Wu(i,l,m,p){Cp=!1;var E=i.updateQueue;ll=!1;var R=E.firstBaseUpdate,W=E.lastBaseUpdate,ne=E.shared.pending;if(ne!==null){E.shared.pending=null;var Se=ne,ze=Se.next;Se.next=null,W===null?R=ze:W.next=ze,W=Se;var Xe=i.alternate;Xe!==null&&(Xe=Xe.updateQueue,ne=Xe.lastBaseUpdate,ne!==W&&(ne===null?Xe.firstBaseUpdate=ze:ne.next=ze,Xe.lastBaseUpdate=Se))}if(R!==null){var nt=E.baseState;W=0,Xe=ze=Se=null,ne=R;do{var Le=ne.lane&-536870913,Ve=Le!==ne.lane;if(Ve?(Hn&Le)===Le:(p&Le)===Le){Le!==0&&Le===tc&&(Cp=!0),Xe!==null&&(Xe=Xe.next={lane:0,tag:ne.tag,payload:ne.payload,callback:null,next:null});e:{var Xt=i,fn=ne;Le=l;var vr=m;switch(fn.tag){case 1:if(Xt=fn.payload,typeof Xt=="function"){nt=Xt.call(vr,nt,Le);break e}nt=Xt;break e;case 3:Xt.flags=Xt.flags&-65537|128;case 0:if(Xt=fn.payload,Le=typeof Xt=="function"?Xt.call(vr,nt,Le):Xt,Le==null)break e;nt=v({},nt,Le);break e;case 2:ll=!0}}Le=ne.callback,Le!==null&&(i.flags|=64,Ve&&(i.flags|=8192),Ve=E.callbacks,Ve===null?E.callbacks=[Le]:Ve.push(Le))}else Ve={lane:Le,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null},Xe===null?(ze=Xe=Ve,Se=nt):Xe=Xe.next=Ve,W|=Le;if(ne=ne.next,ne===null){if(ne=E.shared.pending,ne===null)break;Ve=ne,ne=Ve.next,Ve.next=null,E.lastBaseUpdate=Ve,E.shared.pending=null}}while(!0);Xe===null&&(Se=nt),E.baseState=Se,E.firstBaseUpdate=ze,E.lastBaseUpdate=Xe,R===null&&(E.shared.lanes=0),hl|=W,i.lanes=W,i.memoizedState=nt}}function fw(i,l){if(typeof i!="function")throw Error(r(191,i));i.call(l)}function mw(i,l){var m=i.callbacks;if(m!==null)for(i.callbacks=null,i=0;i<m.length;i++)fw(m[i],l)}var ic=B(null),gm=B(0);function hw(i,l){i=Mo,K(gm,i),K(ic,l),Mo=i|l.baseLanes}function wp(){K(gm,Mo),K(ic,ic.current)}function $p(){Mo=gm.current,U(ic),U(gm)}var Xa=B(null),mi=null;function ul(i){var l=i.alternate;K(Fr,Fr.current&1),K(Xa,i),mi===null&&(l===null||ic.current!==null||l.memoizedState!==null)&&(mi=i)}function _p(i){K(Fr,Fr.current),K(Xa,i),mi===null&&(mi=i)}function vw(i){i.tag===22?(K(Fr,Fr.current),K(Xa,i),mi===null&&(mi=i)):dl()}function dl(){K(Fr,Fr.current),K(Xa,Xa.current)}function Qa(i){U(Xa),mi===i&&(mi=null),U(Fr)}var Fr=B(0);function pm(i){for(var l=i;l!==null;){if(l.tag===13){var m=l.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||Mb(m)||jb(m)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var wo=0,On=null,mr=null,Xr=null,bm=!1,oc=!1,ls=!1,ym=0,qu=0,lc=null,i3=0;function zr(){throw Error(r(321))}function Ep(i,l){if(l===null)return!1;for(var m=0;m<l.length&&m<i.length;m++)if(!Ya(i[m],l[m]))return!1;return!0}function Op(i,l,m,p,E,R){return wo=R,On=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,T.H=i===null||i.memoizedState===null?Zw:Fp,ls=!1,R=m(p,E),ls=!1,oc&&(R=pw(l,m,p,E)),gw(i),R}function gw(i){T.H=Xu;var l=mr!==null&&mr.next!==null;if(wo=0,Xr=mr=On=null,bm=!1,qu=0,lc=null,l)throw Error(r(300));i===null||Qr||(i=i.dependencies,i!==null&&cm(i)&&(Qr=!0))}function pw(i,l,m,p){On=i;var E=0;do{if(oc&&(lc=null),qu=0,oc=!1,25<=E)throw Error(r(301));if(E+=1,Xr=mr=null,i.updateQueue!=null){var R=i.updateQueue;R.lastEffect=null,R.events=null,R.stores=null,R.memoCache!=null&&(R.memoCache.index=0)}T.H=Jw,R=l(m,p)}while(oc);return R}function o3(){var i=T.H,l=i.useState()[0];return l=typeof l.then=="function"?Yu(l):l,i=i.useState()[0],(mr!==null?mr.memoizedState:null)!==i&&(On.flags|=1024),l}function Ip(){var i=ym!==0;return ym=0,i}function Rp(i,l,m){l.updateQueue=i.updateQueue,l.flags&=-2053,i.lanes&=~m}function Np(i){if(bm){for(i=i.memoizedState;i!==null;){var l=i.queue;l!==null&&(l.pending=null),i=i.next}bm=!1}wo=0,Xr=mr=On=null,oc=!1,qu=ym=0,lc=null}function ka(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xr===null?On.memoizedState=Xr=i:Xr=Xr.next=i,Xr}function Vr(){if(mr===null){var i=On.alternate;i=i!==null?i.memoizedState:null}else i=mr.next;var l=Xr===null?On.memoizedState:Xr.next;if(l!==null)Xr=l,mr=i;else{if(i===null)throw On.alternate===null?Error(r(467)):Error(r(310));mr=i,i={memoizedState:mr.memoizedState,baseState:mr.baseState,baseQueue:mr.baseQueue,queue:mr.queue,next:null},Xr===null?On.memoizedState=Xr=i:Xr=Xr.next=i}return Xr}function Sm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yu(i){var l=qu;return qu+=1,lc===null&&(lc=[]),i=lw(lc,i,l),l=On,(Xr===null?l.memoizedState:Xr.next)===null&&(l=l.alternate,T.H=l===null||l.memoizedState===null?Zw:Fp),i}function xm(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Yu(i);if(i.$$typeof===_)return pa(i)}throw Error(r(438,String(i)))}function Mp(i){var l=null,m=On.updateQueue;if(m!==null&&(l=m.memoCache),l==null){var p=On.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(l={data:p.data.map(function(E){return E.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),m===null&&(m=Sm(),On.updateQueue=m),m.memoCache=l,m=l.data[l.index],m===void 0)for(m=l.data[l.index]=Array(i),p=0;p<i;p++)m[p]=P;return l.index++,m}function $o(i,l){return typeof l=="function"?l(i):l}function Cm(i){var l=Vr();return jp(l,mr,i)}function jp(i,l,m){var p=i.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=m;var E=i.baseQueue,R=p.pending;if(R!==null){if(E!==null){var W=E.next;E.next=R.next,R.next=W}l.baseQueue=E=R,p.pending=null}if(R=i.baseState,E===null)i.memoizedState=R;else{l=E.next;var ne=W=null,Se=null,ze=l,Xe=!1;do{var nt=ze.lane&-536870913;if(nt!==ze.lane?(Hn&nt)===nt:(wo&nt)===nt){var Le=ze.revertLane;if(Le===0)Se!==null&&(Se=Se.next={lane:0,revertLane:0,gesture:null,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null}),nt===tc&&(Xe=!0);else if((wo&Le)===Le){ze=ze.next,Le===tc&&(Xe=!0);continue}else nt={lane:0,revertLane:ze.revertLane,gesture:null,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null},Se===null?(ne=Se=nt,W=R):Se=Se.next=nt,On.lanes|=Le,hl|=Le;nt=ze.action,ls&&m(R,nt),R=ze.hasEagerState?ze.eagerState:m(R,nt)}else Le={lane:nt,revertLane:ze.revertLane,gesture:ze.gesture,action:ze.action,hasEagerState:ze.hasEagerState,eagerState:ze.eagerState,next:null},Se===null?(ne=Se=Le,W=R):Se=Se.next=Le,On.lanes|=nt,hl|=nt;ze=ze.next}while(ze!==null&&ze!==l);if(Se===null?W=R:Se.next=ne,!Ya(R,i.memoizedState)&&(Qr=!0,Xe&&(m=nc,m!==null)))throw m;i.memoizedState=R,i.baseState=W,i.baseQueue=Se,p.lastRenderedState=R}return E===null&&(p.lanes=0),[i.memoizedState,p.dispatch]}function Tp(i){var l=Vr(),m=l.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=i;var p=m.dispatch,E=m.pending,R=l.memoizedState;if(E!==null){m.pending=null;var W=E=E.next;do R=i(R,W.action),W=W.next;while(W!==E);Ya(R,l.memoizedState)||(Qr=!0),l.memoizedState=R,l.baseQueue===null&&(l.baseState=R),m.lastRenderedState=R}return[R,p]}function bw(i,l,m){var p=On,E=Vr(),R=Un;if(R){if(m===void 0)throw Error(r(407));m=m()}else m=l();var W=!Ya((mr||E).memoizedState,m);if(W&&(E.memoizedState=m,Qr=!0),E=E.queue,kp(xw.bind(null,p,E,i),[i]),E.getSnapshot!==l||W||Xr!==null&&Xr.memoizedState.tag&1){if(p.flags|=2048,sc(9,{destroy:void 0},Sw.bind(null,p,E,m,l),null),yr===null)throw Error(r(349));R||(wo&127)!==0||yw(p,l,m)}return m}function yw(i,l,m){i.flags|=16384,i={getSnapshot:l,value:m},l=On.updateQueue,l===null?(l=Sm(),On.updateQueue=l,l.stores=[i]):(m=l.stores,m===null?l.stores=[i]:m.push(i))}function Sw(i,l,m,p){l.value=m,l.getSnapshot=p,Cw(l)&&ww(i)}function xw(i,l,m){return m(function(){Cw(l)&&ww(i)})}function Cw(i){var l=i.getSnapshot;i=i.value;try{var m=l();return!Ya(i,m)}catch{return!0}}function ww(i){var l=Zl(i,2);l!==null&&Ka(l,i,2)}function Dp(i){var l=ka();if(typeof i=="function"){var m=i;if(i=m(),ls){Te(!0);try{m()}finally{Te(!1)}}}return l.memoizedState=l.baseState=i,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:i},l}function $w(i,l,m,p){return i.baseState=m,jp(i,mr,typeof p=="function"?p:$o)}function l3(i,l,m,p,E){if(_m(i))throw Error(r(485));if(i=l.action,i!==null){var R={payload:E,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(W){R.listeners.push(W)}};T.T!==null?m(!0):R.isTransition=!1,p(R),m=l.pending,m===null?(R.next=l.pending=R,_w(l,R)):(R.next=m.next,l.pending=m.next=R)}}function _w(i,l){var m=l.action,p=l.payload,E=i.state;if(l.isTransition){var R=T.T,W={};T.T=W;try{var ne=m(E,p),Se=T.S;Se!==null&&Se(W,ne),Ew(i,l,ne)}catch(ze){Pp(i,l,ze)}finally{R!==null&&W.types!==null&&(R.types=W.types),T.T=R}}else try{R=m(E,p),Ew(i,l,R)}catch(ze){Pp(i,l,ze)}}function Ew(i,l,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(p){Ow(i,l,p)},function(p){return Pp(i,l,p)}):Ow(i,l,m)}function Ow(i,l,m){l.status="fulfilled",l.value=m,Iw(l),i.state=m,l=i.pending,l!==null&&(m=l.next,m===l?i.pending=null:(m=m.next,l.next=m,_w(i,m)))}function Pp(i,l,m){var p=i.pending;if(i.pending=null,p!==null){p=p.next;do l.status="rejected",l.reason=m,Iw(l),l=l.next;while(l!==p)}i.action=null}function Iw(i){i=i.listeners;for(var l=0;l<i.length;l++)(0,i[l])()}function Rw(i,l){return l}function Nw(i,l){if(Un){var m=yr.formState;if(m!==null){e:{var p=On;if(Un){if(Er){t:{for(var E=Er,R=fi;E.nodeType!==8;){if(!R){E=null;break t}if(E=hi(E.nextSibling),E===null){E=null;break t}}R=E.data,E=R==="F!"||R==="F"?E:null}if(E){Er=hi(E.nextSibling),p=E.data==="F!";break e}}il(p)}p=!1}p&&(l=m[0])}}return m=ka(),m.memoizedState=m.baseState=l,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rw,lastRenderedState:l},m.queue=p,m=Gw.bind(null,On,p),p.dispatch=m,p=Dp(!1),R=Bp.bind(null,On,!1,p.queue),p=ka(),E={state:l,dispatch:null,action:i,pending:null},p.queue=E,m=l3.bind(null,On,E,R,m),E.dispatch=m,p.memoizedState=i,[l,m,!1]}function Mw(i){var l=Vr();return jw(l,mr,i)}function jw(i,l,m){if(l=jp(i,l,Rw)[0],i=Cm($o)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var p=Yu(l)}catch(W){throw W===rc?fm:W}else p=l;l=Vr();var E=l.queue,R=E.dispatch;return m!==l.memoizedState&&(On.flags|=2048,sc(9,{destroy:void 0},s3.bind(null,E,m),null)),[p,R,i]}function s3(i,l){i.action=l}function Tw(i){var l=Vr(),m=mr;if(m!==null)return jw(l,m,i);Vr(),l=l.memoizedState,m=Vr();var p=m.queue.dispatch;return m.memoizedState=i,[l,p,!1]}function sc(i,l,m,p){return i={tag:i,create:m,deps:p,inst:l,next:null},l=On.updateQueue,l===null&&(l=Sm(),On.updateQueue=l),m=l.lastEffect,m===null?l.lastEffect=i.next=i:(p=m.next,m.next=i,i.next=p,l.lastEffect=i),i}function Dw(){return Vr().memoizedState}function wm(i,l,m,p){var E=ka();On.flags|=i,E.memoizedState=sc(1|l,{destroy:void 0},m,p===void 0?null:p)}function $m(i,l,m,p){var E=Vr();p=p===void 0?null:p;var R=E.memoizedState.inst;mr!==null&&p!==null&&Ep(p,mr.memoizedState.deps)?E.memoizedState=sc(l,R,m,p):(On.flags|=i,E.memoizedState=sc(1|l,R,m,p))}function Pw(i,l){wm(8390656,8,i,l)}function kp(i,l){$m(2048,8,i,l)}function c3(i){On.flags|=4;var l=On.updateQueue;if(l===null)l=Sm(),On.updateQueue=l,l.events=[i];else{var m=l.events;m===null?l.events=[i]:m.push(i)}}function kw(i){var l=Vr().memoizedState;return c3({ref:l,nextImpl:i}),function(){if((ar&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}function Aw(i,l){return $m(4,2,i,l)}function zw(i,l){return $m(4,4,i,l)}function Lw(i,l){if(typeof l=="function"){i=i();var m=l(i);return function(){typeof m=="function"?m():l(null)}}if(l!=null)return i=i(),l.current=i,function(){l.current=null}}function Hw(i,l,m){m=m!=null?m.concat([i]):null,$m(4,4,Lw.bind(null,l,i),m)}function Ap(){}function Bw(i,l){var m=Vr();l=l===void 0?null:l;var p=m.memoizedState;return l!==null&&Ep(l,p[1])?p[0]:(m.memoizedState=[i,l],i)}function Fw(i,l){var m=Vr();l=l===void 0?null:l;var p=m.memoizedState;if(l!==null&&Ep(l,p[1]))return p[0];if(p=i(),ls){Te(!0);try{i()}finally{Te(!1)}}return m.memoizedState=[p,l],p}function zp(i,l,m){return m===void 0||(wo&1073741824)!==0&&(Hn&261930)===0?i.memoizedState=l:(i.memoizedState=m,i=V$(),On.lanes|=i,hl|=i,m)}function Vw(i,l,m,p){return Ya(m,l)?m:ic.current!==null?(i=zp(i,m,p),Ya(i,l)||(Qr=!0),i):(wo&42)===0||(wo&1073741824)!==0&&(Hn&261930)===0?(Qr=!0,i.memoizedState=m):(i=V$(),On.lanes|=i,hl|=i,l)}function Kw(i,l,m,p,E){var R=z.p;z.p=R!==0&&8>R?R:8;var W=T.T,ne={};T.T=ne,Bp(i,!1,l,m);try{var Se=E(),ze=T.S;if(ze!==null&&ze(ne,Se),Se!==null&&typeof Se=="object"&&typeof Se.then=="function"){var Xe=a3(Se,p);Gu(i,l,Xe,ei(i))}else Gu(i,l,p,ei(i))}catch(nt){Gu(i,l,{then:function(){},status:"rejected",reason:nt},ei())}finally{z.p=R,W!==null&&ne.types!==null&&(W.types=ne.types),T.T=W}}function u3(){}function Lp(i,l,m,p){if(i.tag!==5)throw Error(r(476));var E=Uw(i).queue;Kw(i,E,l,V,m===null?u3:function(){return Ww(i),m(p)})}function Uw(i){var l=i.memoizedState;if(l!==null)return l;l={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:V},next:null};var m={};return l.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:m},next:null},i.memoizedState=l,i=i.alternate,i!==null&&(i.memoizedState=l),l}function Ww(i){var l=Uw(i);l.next===null&&(l=i.alternate.memoizedState),Gu(i,l.next.queue,{},ei())}function Hp(){return pa(fd)}function qw(){return Vr().memoizedState}function Yw(){return Vr().memoizedState}function d3(i){for(var l=i.return;l!==null;){switch(l.tag){case 24:case 3:var m=ei();i=sl(m);var p=cl(l,i,m);p!==null&&(Ka(p,l,m),Ku(p,l,m)),l={cache:vp()},i.payload=l;return}l=l.return}}function f3(i,l,m){var p=ei();m={lane:p,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},_m(i)?Xw(l,m):(m=ap(i,l,m,p),m!==null&&(Ka(m,i,p),Qw(m,l,p)))}function Gw(i,l,m){var p=ei();Gu(i,l,m,p)}function Gu(i,l,m,p){var E={lane:p,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(_m(i))Xw(l,E);else{var R=i.alternate;if(i.lanes===0&&(R===null||R.lanes===0)&&(R=l.lastRenderedReducer,R!==null))try{var W=l.lastRenderedState,ne=R(W,m);if(E.hasEagerState=!0,E.eagerState=ne,Ya(ne,W))return im(i,l,E,0),yr===null&&am(),!1}catch{}finally{}if(m=ap(i,l,E,p),m!==null)return Ka(m,i,p),Qw(m,l,p),!0}return!1}function Bp(i,l,m,p){if(p={lane:2,revertLane:yb(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},_m(i)){if(l)throw Error(r(479))}else l=ap(i,m,p,2),l!==null&&Ka(l,i,2)}function _m(i){var l=i.alternate;return i===On||l!==null&&l===On}function Xw(i,l){oc=bm=!0;var m=i.pending;m===null?l.next=l:(l.next=m.next,m.next=l),i.pending=l}function Qw(i,l,m){if((m&4194048)!==0){var p=l.lanes;p&=i.pendingLanes,m|=p,l.lanes=m,tt(i,m)}}var Xu={readContext:pa,use:xm,useCallback:zr,useContext:zr,useEffect:zr,useImperativeHandle:zr,useLayoutEffect:zr,useInsertionEffect:zr,useMemo:zr,useReducer:zr,useRef:zr,useState:zr,useDebugValue:zr,useDeferredValue:zr,useTransition:zr,useSyncExternalStore:zr,useId:zr,useHostTransitionStatus:zr,useFormState:zr,useActionState:zr,useOptimistic:zr,useMemoCache:zr,useCacheRefresh:zr};Xu.useEffectEvent=zr;var Zw={readContext:pa,use:xm,useCallback:function(i,l){return ka().memoizedState=[i,l===void 0?null:l],i},useContext:pa,useEffect:Pw,useImperativeHandle:function(i,l,m){m=m!=null?m.concat([i]):null,wm(4194308,4,Lw.bind(null,l,i),m)},useLayoutEffect:function(i,l){return wm(4194308,4,i,l)},useInsertionEffect:function(i,l){wm(4,2,i,l)},useMemo:function(i,l){var m=ka();l=l===void 0?null:l;var p=i();if(ls){Te(!0);try{i()}finally{Te(!1)}}return m.memoizedState=[p,l],p},useReducer:function(i,l,m){var p=ka();if(m!==void 0){var E=m(l);if(ls){Te(!0);try{m(l)}finally{Te(!1)}}}else E=l;return p.memoizedState=p.baseState=E,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:E},p.queue=i,i=i.dispatch=f3.bind(null,On,i),[p.memoizedState,i]},useRef:function(i){var l=ka();return i={current:i},l.memoizedState=i},useState:function(i){i=Dp(i);var l=i.queue,m=Gw.bind(null,On,l);return l.dispatch=m,[i.memoizedState,m]},useDebugValue:Ap,useDeferredValue:function(i,l){var m=ka();return zp(m,i,l)},useTransition:function(){var i=Dp(!1);return i=Kw.bind(null,On,i.queue,!0,!1),ka().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,l,m){var p=On,E=ka();if(Un){if(m===void 0)throw Error(r(407));m=m()}else{if(m=l(),yr===null)throw Error(r(349));(Hn&127)!==0||yw(p,l,m)}E.memoizedState=m;var R={value:m,getSnapshot:l};return E.queue=R,Pw(xw.bind(null,p,R,i),[i]),p.flags|=2048,sc(9,{destroy:void 0},Sw.bind(null,p,R,m,l),null),m},useId:function(){var i=ka(),l=yr.identifierPrefix;if(Un){var m=eo,p=Ji;m=(p&~(1<<32-be(p)-1)).toString(32)+m,l="_"+l+"R_"+m,m=ym++,0<m&&(l+="H"+m.toString(32)),l+="_"}else m=i3++,l="_"+l+"r_"+m.toString(32)+"_";return i.memoizedState=l},useHostTransitionStatus:Hp,useFormState:Nw,useActionState:Nw,useOptimistic:function(i){var l=ka();l.memoizedState=l.baseState=i;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=m,l=Bp.bind(null,On,!0,m),m.dispatch=l,[i,l]},useMemoCache:Mp,useCacheRefresh:function(){return ka().memoizedState=d3.bind(null,On)},useEffectEvent:function(i){var l=ka(),m={impl:i};return l.memoizedState=m,function(){if((ar&2)!==0)throw Error(r(440));return m.impl.apply(void 0,arguments)}}},Fp={readContext:pa,use:xm,useCallback:Bw,useContext:pa,useEffect:kp,useImperativeHandle:Hw,useInsertionEffect:Aw,useLayoutEffect:zw,useMemo:Fw,useReducer:Cm,useRef:Dw,useState:function(){return Cm($o)},useDebugValue:Ap,useDeferredValue:function(i,l){var m=Vr();return Vw(m,mr.memoizedState,i,l)},useTransition:function(){var i=Cm($o)[0],l=Vr().memoizedState;return[typeof i=="boolean"?i:Yu(i),l]},useSyncExternalStore:bw,useId:qw,useHostTransitionStatus:Hp,useFormState:Mw,useActionState:Mw,useOptimistic:function(i,l){var m=Vr();return $w(m,mr,i,l)},useMemoCache:Mp,useCacheRefresh:Yw};Fp.useEffectEvent=kw;var Jw={readContext:pa,use:xm,useCallback:Bw,useContext:pa,useEffect:kp,useImperativeHandle:Hw,useInsertionEffect:Aw,useLayoutEffect:zw,useMemo:Fw,useReducer:Tp,useRef:Dw,useState:function(){return Tp($o)},useDebugValue:Ap,useDeferredValue:function(i,l){var m=Vr();return mr===null?zp(m,i,l):Vw(m,mr.memoizedState,i,l)},useTransition:function(){var i=Tp($o)[0],l=Vr().memoizedState;return[typeof i=="boolean"?i:Yu(i),l]},useSyncExternalStore:bw,useId:qw,useHostTransitionStatus:Hp,useFormState:Tw,useActionState:Tw,useOptimistic:function(i,l){var m=Vr();return mr!==null?$w(m,mr,i,l):(m.baseState=i,[i,m.queue.dispatch])},useMemoCache:Mp,useCacheRefresh:Yw};Jw.useEffectEvent=kw;function Vp(i,l,m,p){l=i.memoizedState,m=m(p,l),m=m==null?l:v({},l,m),i.memoizedState=m,i.lanes===0&&(i.updateQueue.baseState=m)}var Kp={enqueueSetState:function(i,l,m){i=i._reactInternals;var p=ei(),E=sl(p);E.payload=l,m!=null&&(E.callback=m),l=cl(i,E,p),l!==null&&(Ka(l,i,p),Ku(l,i,p))},enqueueReplaceState:function(i,l,m){i=i._reactInternals;var p=ei(),E=sl(p);E.tag=1,E.payload=l,m!=null&&(E.callback=m),l=cl(i,E,p),l!==null&&(Ka(l,i,p),Ku(l,i,p))},enqueueForceUpdate:function(i,l){i=i._reactInternals;var m=ei(),p=sl(m);p.tag=2,l!=null&&(p.callback=l),l=cl(i,p,m),l!==null&&(Ka(l,i,m),Ku(l,i,m))}};function e$(i,l,m,p,E,R,W){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(p,R,W):l.prototype&&l.prototype.isPureReactComponent?!ku(m,p)||!ku(E,R):!0}function t$(i,l,m,p){i=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(m,p),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(m,p),l.state!==i&&Kp.enqueueReplaceState(l,l.state,null)}function ss(i,l){var m=l;if("ref"in l){m={};for(var p in l)p!=="ref"&&(m[p]=l[p])}if(i=i.defaultProps){m===l&&(m=v({},m));for(var E in i)m[E]===void 0&&(m[E]=i[E])}return m}function n$(i){rm(i)}function r$(i){console.error(i)}function a$(i){rm(i)}function Em(i,l){try{var m=i.onUncaughtError;m(l.value,{componentStack:l.stack})}catch(p){setTimeout(function(){throw p})}}function i$(i,l,m){try{var p=i.onCaughtError;p(m.value,{componentStack:m.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(E){setTimeout(function(){throw E})}}function Up(i,l,m){return m=sl(m),m.tag=3,m.payload={element:null},m.callback=function(){Em(i,l)},m}function o$(i){return i=sl(i),i.tag=3,i}function l$(i,l,m,p){var E=m.type.getDerivedStateFromError;if(typeof E=="function"){var R=p.value;i.payload=function(){return E(R)},i.callback=function(){i$(l,m,p)}}var W=m.stateNode;W!==null&&typeof W.componentDidCatch=="function"&&(i.callback=function(){i$(l,m,p),typeof E!="function"&&(vl===null?vl=new Set([this]):vl.add(this));var ne=p.stack;this.componentDidCatch(p.value,{componentStack:ne!==null?ne:""})})}function m3(i,l,m,p,E){if(m.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(l=m.alternate,l!==null&&ec(l,m,E,!0),m=Xa.current,m!==null){switch(m.tag){case 31:case 13:return mi===null?zm():m.alternate===null&&Lr===0&&(Lr=3),m.flags&=-257,m.flags|=65536,m.lanes=E,p===mm?m.flags|=16384:(l=m.updateQueue,l===null?m.updateQueue=new Set([p]):l.add(p),gb(i,p,E)),!1;case 22:return m.flags|=65536,p===mm?m.flags|=16384:(l=m.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([p])},m.updateQueue=l):(m=l.retryQueue,m===null?l.retryQueue=new Set([p]):m.add(p)),gb(i,p,E)),!1}throw Error(r(435,m.tag))}return gb(i,p,E),zm(),!1}if(Un)return l=Xa.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=E,p!==up&&(i=Error(r(422),{cause:p}),Lu(ci(i,m)))):(p!==up&&(l=Error(r(423),{cause:p}),Lu(ci(l,m))),i=i.current.alternate,i.flags|=65536,E&=-E,i.lanes|=E,p=ci(p,m),E=Up(i.stateNode,p,E),xp(i,E),Lr!==4&&(Lr=2)),!1;var R=Error(r(520),{cause:p});if(R=ci(R,m),ad===null?ad=[R]:ad.push(R),Lr!==4&&(Lr=2),l===null)return!0;p=ci(p,m),m=l;do{switch(m.tag){case 3:return m.flags|=65536,i=E&-E,m.lanes|=i,i=Up(m.stateNode,p,i),xp(m,i),!1;case 1:if(l=m.type,R=m.stateNode,(m.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(vl===null||!vl.has(R))))return m.flags|=65536,E&=-E,m.lanes|=E,E=o$(E),l$(E,i,m,p),xp(m,E),!1}m=m.return}while(m!==null);return!1}var Wp=Error(r(461)),Qr=!1;function ba(i,l,m,p){l.child=i===null?dw(l,null,m,p):os(l,i.child,m,p)}function s$(i,l,m,p,E){m=m.render;var R=l.ref;if("ref"in p){var W={};for(var ne in p)ne!=="ref"&&(W[ne]=p[ne])}else W=p;return ns(l),p=Op(i,l,m,W,R,E),ne=Ip(),i!==null&&!Qr?(Rp(i,l,E),_o(i,l,E)):(Un&&ne&&sp(l),l.flags|=1,ba(i,l,p,E),l.child)}function c$(i,l,m,p,E){if(i===null){var R=m.type;return typeof R=="function"&&!ip(R)&&R.defaultProps===void 0&&m.compare===null?(l.tag=15,l.type=R,u$(i,l,R,p,E)):(i=lm(m.type,null,p,l,l.mode,E),i.ref=l.ref,i.return=l,l.child=i)}if(R=i.child,!eb(i,E)){var W=R.memoizedProps;if(m=m.compare,m=m!==null?m:ku,m(W,p)&&i.ref===l.ref)return _o(i,l,E)}return l.flags|=1,i=yo(R,p),i.ref=l.ref,i.return=l,l.child=i}function u$(i,l,m,p,E){if(i!==null){var R=i.memoizedProps;if(ku(R,p)&&i.ref===l.ref)if(Qr=!1,l.pendingProps=p=R,eb(i,E))(i.flags&131072)!==0&&(Qr=!0);else return l.lanes=i.lanes,_o(i,l,E)}return qp(i,l,m,p,E)}function d$(i,l,m,p){var E=p.children,R=i!==null?i.memoizedState:null;if(i===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((l.flags&128)!==0){if(R=R!==null?R.baseLanes|m:m,i!==null){for(p=l.child=i.child,E=0;p!==null;)E=E|p.lanes|p.childLanes,p=p.sibling;p=E&~R}else p=0,l.child=null;return f$(i,l,R,m,p)}if((m&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},i!==null&&dm(l,R!==null?R.cachePool:null),R!==null?hw(l,R):wp(),vw(l);else return p=l.lanes=536870912,f$(i,l,R!==null?R.baseLanes|m:m,m,p)}else R!==null?(dm(l,R.cachePool),hw(l,R),dl(),l.memoizedState=null):(i!==null&&dm(l,null),wp(),dl());return ba(i,l,E,m),l.child}function Qu(i,l){return i!==null&&i.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function f$(i,l,m,p,E){var R=pp();return R=R===null?null:{parent:Gr._currentValue,pool:R},l.memoizedState={baseLanes:m,cachePool:R},i!==null&&dm(l,null),wp(),vw(l),i!==null&&ec(i,l,p,!0),l.childLanes=E,null}function Om(i,l){return l=Rm({mode:l.mode,children:l.children},i.mode),l.ref=i.ref,i.child=l,l.return=i,l}function m$(i,l,m){return os(l,i.child,null,m),i=Om(l,l.pendingProps),i.flags|=2,Qa(l),l.memoizedState=null,i}function h3(i,l,m){var p=l.pendingProps,E=(l.flags&128)!==0;if(l.flags&=-129,i===null){if(Un){if(p.mode==="hidden")return i=Om(l,p),l.lanes=536870912,Qu(null,i);if(_p(l),(i=Er)?(i=__(i,fi),i=i!==null&&i.data==="&"?i:null,i!==null&&(l.memoizedState={dehydrated:i,treeContext:rl!==null?{id:Ji,overflow:eo}:null,retryLane:536870912,hydrationErrors:null},m=X1(i),m.return=l,l.child=m,ga=l,Er=null)):i=null,i===null)throw il(l);return l.lanes=536870912,null}return Om(l,p)}var R=i.memoizedState;if(R!==null){var W=R.dehydrated;if(_p(l),E)if(l.flags&256)l.flags&=-257,l=m$(i,l,m);else if(l.memoizedState!==null)l.child=i.child,l.flags|=128,l=null;else throw Error(r(558));else if(Qr||ec(i,l,m,!1),E=(m&i.childLanes)!==0,Qr||E){if(p=yr,p!==null&&(W=Ue(p,m),W!==0&&W!==R.retryLane))throw R.retryLane=W,Zl(i,W),Ka(p,i,W),Wp;zm(),l=m$(i,l,m)}else i=R.treeContext,Er=hi(W.nextSibling),ga=l,Un=!0,al=null,fi=!1,i!==null&&J1(l,i),l=Om(l,p),l.flags|=4096;return l}return i=yo(i.child,{mode:p.mode,children:p.children}),i.ref=l.ref,l.child=i,i.return=l,i}function Im(i,l){var m=l.ref;if(m===null)i!==null&&i.ref!==null&&(l.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(r(284));(i===null||i.ref!==m)&&(l.flags|=4194816)}}function qp(i,l,m,p,E){return ns(l),m=Op(i,l,m,p,void 0,E),p=Ip(),i!==null&&!Qr?(Rp(i,l,E),_o(i,l,E)):(Un&&p&&sp(l),l.flags|=1,ba(i,l,m,E),l.child)}function h$(i,l,m,p,E,R){return ns(l),l.updateQueue=null,m=pw(l,p,m,E),gw(i),p=Ip(),i!==null&&!Qr?(Rp(i,l,R),_o(i,l,R)):(Un&&p&&sp(l),l.flags|=1,ba(i,l,m,R),l.child)}function v$(i,l,m,p,E){if(ns(l),l.stateNode===null){var R=Xs,W=m.contextType;typeof W=="object"&&W!==null&&(R=pa(W)),R=new m(p,R),l.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,R.updater=Kp,l.stateNode=R,R._reactInternals=l,R=l.stateNode,R.props=p,R.state=l.memoizedState,R.refs={},yp(l),W=m.contextType,R.context=typeof W=="object"&&W!==null?pa(W):Xs,R.state=l.memoizedState,W=m.getDerivedStateFromProps,typeof W=="function"&&(Vp(l,m,W,p),R.state=l.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof R.getSnapshotBeforeUpdate=="function"||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(W=R.state,typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount(),W!==R.state&&Kp.enqueueReplaceState(R,R.state,null),Wu(l,p,R,E),Uu(),R.state=l.memoizedState),typeof R.componentDidMount=="function"&&(l.flags|=4194308),p=!0}else if(i===null){R=l.stateNode;var ne=l.memoizedProps,Se=ss(m,ne);R.props=Se;var ze=R.context,Xe=m.contextType;W=Xs,typeof Xe=="object"&&Xe!==null&&(W=pa(Xe));var nt=m.getDerivedStateFromProps;Xe=typeof nt=="function"||typeof R.getSnapshotBeforeUpdate=="function",ne=l.pendingProps!==ne,Xe||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(ne||ze!==W)&&t$(l,R,p,W),ll=!1;var Le=l.memoizedState;R.state=Le,Wu(l,p,R,E),Uu(),ze=l.memoizedState,ne||Le!==ze||ll?(typeof nt=="function"&&(Vp(l,m,nt,p),ze=l.memoizedState),(Se=ll||e$(l,m,Se,p,Le,ze,W))?(Xe||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount()),typeof R.componentDidMount=="function"&&(l.flags|=4194308)):(typeof R.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=p,l.memoizedState=ze),R.props=p,R.state=ze,R.context=W,p=Se):(typeof R.componentDidMount=="function"&&(l.flags|=4194308),p=!1)}else{R=l.stateNode,Sp(i,l),W=l.memoizedProps,Xe=ss(m,W),R.props=Xe,nt=l.pendingProps,Le=R.context,ze=m.contextType,Se=Xs,typeof ze=="object"&&ze!==null&&(Se=pa(ze)),ne=m.getDerivedStateFromProps,(ze=typeof ne=="function"||typeof R.getSnapshotBeforeUpdate=="function")||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(W!==nt||Le!==Se)&&t$(l,R,p,Se),ll=!1,Le=l.memoizedState,R.state=Le,Wu(l,p,R,E),Uu();var Ve=l.memoizedState;W!==nt||Le!==Ve||ll||i!==null&&i.dependencies!==null&&cm(i.dependencies)?(typeof ne=="function"&&(Vp(l,m,ne,p),Ve=l.memoizedState),(Xe=ll||e$(l,m,Xe,p,Le,Ve,Se)||i!==null&&i.dependencies!==null&&cm(i.dependencies))?(ze||typeof R.UNSAFE_componentWillUpdate!="function"&&typeof R.componentWillUpdate!="function"||(typeof R.componentWillUpdate=="function"&&R.componentWillUpdate(p,Ve,Se),typeof R.UNSAFE_componentWillUpdate=="function"&&R.UNSAFE_componentWillUpdate(p,Ve,Se)),typeof R.componentDidUpdate=="function"&&(l.flags|=4),typeof R.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof R.componentDidUpdate!="function"||W===i.memoizedProps&&Le===i.memoizedState||(l.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||W===i.memoizedProps&&Le===i.memoizedState||(l.flags|=1024),l.memoizedProps=p,l.memoizedState=Ve),R.props=p,R.state=Ve,R.context=Se,p=Xe):(typeof R.componentDidUpdate!="function"||W===i.memoizedProps&&Le===i.memoizedState||(l.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||W===i.memoizedProps&&Le===i.memoizedState||(l.flags|=1024),p=!1)}return R=p,Im(i,l),p=(l.flags&128)!==0,R||p?(R=l.stateNode,m=p&&typeof m.getDerivedStateFromError!="function"?null:R.render(),l.flags|=1,i!==null&&p?(l.child=os(l,i.child,null,E),l.child=os(l,null,m,E)):ba(i,l,m,E),l.memoizedState=R.state,i=l.child):i=_o(i,l,E),i}function g$(i,l,m,p){return es(),l.flags|=256,ba(i,l,m,p),l.child}var Yp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gp(i){return{baseLanes:i,cachePool:iw()}}function Xp(i,l,m){return i=i!==null?i.childLanes&~m:0,l&&(i|=Ja),i}function p$(i,l,m){var p=l.pendingProps,E=!1,R=(l.flags&128)!==0,W;if((W=R)||(W=i!==null&&i.memoizedState===null?!1:(Fr.current&2)!==0),W&&(E=!0,l.flags&=-129),W=(l.flags&32)!==0,l.flags&=-33,i===null){if(Un){if(E?ul(l):dl(),(i=Er)?(i=__(i,fi),i=i!==null&&i.data!=="&"?i:null,i!==null&&(l.memoizedState={dehydrated:i,treeContext:rl!==null?{id:Ji,overflow:eo}:null,retryLane:536870912,hydrationErrors:null},m=X1(i),m.return=l,l.child=m,ga=l,Er=null)):i=null,i===null)throw il(l);return jb(i)?l.lanes=32:l.lanes=536870912,null}var ne=p.children;return p=p.fallback,E?(dl(),E=l.mode,ne=Rm({mode:"hidden",children:ne},E),p=Jl(p,E,m,null),ne.return=l,p.return=l,ne.sibling=p,l.child=ne,p=l.child,p.memoizedState=Gp(m),p.childLanes=Xp(i,W,m),l.memoizedState=Yp,Qu(null,p)):(ul(l),Qp(l,ne))}var Se=i.memoizedState;if(Se!==null&&(ne=Se.dehydrated,ne!==null)){if(R)l.flags&256?(ul(l),l.flags&=-257,l=Zp(i,l,m)):l.memoizedState!==null?(dl(),l.child=i.child,l.flags|=128,l=null):(dl(),ne=p.fallback,E=l.mode,p=Rm({mode:"visible",children:p.children},E),ne=Jl(ne,E,m,null),ne.flags|=2,p.return=l,ne.return=l,p.sibling=ne,l.child=p,os(l,i.child,null,m),p=l.child,p.memoizedState=Gp(m),p.childLanes=Xp(i,W,m),l.memoizedState=Yp,l=Qu(null,p));else if(ul(l),jb(ne)){if(W=ne.nextSibling&&ne.nextSibling.dataset,W)var ze=W.dgst;W=ze,p=Error(r(419)),p.stack="",p.digest=W,Lu({value:p,source:null,stack:null}),l=Zp(i,l,m)}else if(Qr||ec(i,l,m,!1),W=(m&i.childLanes)!==0,Qr||W){if(W=yr,W!==null&&(p=Ue(W,m),p!==0&&p!==Se.retryLane))throw Se.retryLane=p,Zl(i,p),Ka(W,i,p),Wp;Mb(ne)||zm(),l=Zp(i,l,m)}else Mb(ne)?(l.flags|=192,l.child=i.child,l=null):(i=Se.treeContext,Er=hi(ne.nextSibling),ga=l,Un=!0,al=null,fi=!1,i!==null&&J1(l,i),l=Qp(l,p.children),l.flags|=4096);return l}return E?(dl(),ne=p.fallback,E=l.mode,Se=i.child,ze=Se.sibling,p=yo(Se,{mode:"hidden",children:p.children}),p.subtreeFlags=Se.subtreeFlags&65011712,ze!==null?ne=yo(ze,ne):(ne=Jl(ne,E,m,null),ne.flags|=2),ne.return=l,p.return=l,p.sibling=ne,l.child=p,Qu(null,p),p=l.child,ne=i.child.memoizedState,ne===null?ne=Gp(m):(E=ne.cachePool,E!==null?(Se=Gr._currentValue,E=E.parent!==Se?{parent:Se,pool:Se}:E):E=iw(),ne={baseLanes:ne.baseLanes|m,cachePool:E}),p.memoizedState=ne,p.childLanes=Xp(i,W,m),l.memoizedState=Yp,Qu(i.child,p)):(ul(l),m=i.child,i=m.sibling,m=yo(m,{mode:"visible",children:p.children}),m.return=l,m.sibling=null,i!==null&&(W=l.deletions,W===null?(l.deletions=[i],l.flags|=16):W.push(i)),l.child=m,l.memoizedState=null,m)}function Qp(i,l){return l=Rm({mode:"visible",children:l},i.mode),l.return=i,i.child=l}function Rm(i,l){return i=Ga(22,i,null,l),i.lanes=0,i}function Zp(i,l,m){return os(l,i.child,null,m),i=Qp(l,l.pendingProps.children),i.flags|=2,l.memoizedState=null,i}function b$(i,l,m){i.lanes|=l;var p=i.alternate;p!==null&&(p.lanes|=l),mp(i.return,l,m)}function Jp(i,l,m,p,E,R){var W=i.memoizedState;W===null?i.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:p,tail:m,tailMode:E,treeForkCount:R}:(W.isBackwards=l,W.rendering=null,W.renderingStartTime=0,W.last=p,W.tail=m,W.tailMode=E,W.treeForkCount=R)}function y$(i,l,m){var p=l.pendingProps,E=p.revealOrder,R=p.tail;p=p.children;var W=Fr.current,ne=(W&2)!==0;if(ne?(W=W&1|2,l.flags|=128):W&=1,K(Fr,W),ba(i,l,p,m),p=Un?zu:0,!ne&&i!==null&&(i.flags&128)!==0)e:for(i=l.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&b$(i,m,l);else if(i.tag===19)b$(i,m,l);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break e;for(;i.sibling===null;){if(i.return===null||i.return===l)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(E){case"forwards":for(m=l.child,E=null;m!==null;)i=m.alternate,i!==null&&pm(i)===null&&(E=m),m=m.sibling;m=E,m===null?(E=l.child,l.child=null):(E=m.sibling,m.sibling=null),Jp(l,!1,E,m,R,p);break;case"backwards":case"unstable_legacy-backwards":for(m=null,E=l.child,l.child=null;E!==null;){if(i=E.alternate,i!==null&&pm(i)===null){l.child=E;break}i=E.sibling,E.sibling=m,m=E,E=i}Jp(l,!0,m,null,R,p);break;case"together":Jp(l,!1,null,null,void 0,p);break;default:l.memoizedState=null}return l.child}function _o(i,l,m){if(i!==null&&(l.dependencies=i.dependencies),hl|=l.lanes,(m&l.childLanes)===0)if(i!==null){if(ec(i,l,m,!1),(m&l.childLanes)===0)return null}else return null;if(i!==null&&l.child!==i.child)throw Error(r(153));if(l.child!==null){for(i=l.child,m=yo(i,i.pendingProps),l.child=m,m.return=l;i.sibling!==null;)i=i.sibling,m=m.sibling=yo(i,i.pendingProps),m.return=l;m.sibling=null}return l.child}function eb(i,l){return(i.lanes&l)!==0?!0:(i=i.dependencies,!!(i!==null&&cm(i)))}function v3(i,l,m){switch(l.tag){case 3:re(l,l.stateNode.containerInfo),ol(l,Gr,i.memoizedState.cache),es();break;case 27:case 5:ve(l);break;case 4:re(l,l.stateNode.containerInfo);break;case 10:ol(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,_p(l),null;break;case 13:var p=l.memoizedState;if(p!==null)return p.dehydrated!==null?(ul(l),l.flags|=128,null):(m&l.child.childLanes)!==0?p$(i,l,m):(ul(l),i=_o(i,l,m),i!==null?i.sibling:null);ul(l);break;case 19:var E=(i.flags&128)!==0;if(p=(m&l.childLanes)!==0,p||(ec(i,l,m,!1),p=(m&l.childLanes)!==0),E){if(p)return y$(i,l,m);l.flags|=128}if(E=l.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),K(Fr,Fr.current),p)break;return null;case 22:return l.lanes=0,d$(i,l,m,l.pendingProps);case 24:ol(l,Gr,i.memoizedState.cache)}return _o(i,l,m)}function S$(i,l,m){if(i!==null)if(i.memoizedProps!==l.pendingProps)Qr=!0;else{if(!eb(i,m)&&(l.flags&128)===0)return Qr=!1,v3(i,l,m);Qr=(i.flags&131072)!==0}else Qr=!1,Un&&(l.flags&1048576)!==0&&Z1(l,zu,l.index);switch(l.lanes=0,l.tag){case 16:e:{var p=l.pendingProps;if(i=as(l.elementType),l.type=i,typeof i=="function")ip(i)?(p=ss(i,p),l.tag=1,l=v$(null,l,i,p,m)):(l.tag=0,l=qp(null,l,i,p,m));else{if(i!=null){var E=i.$$typeof;if(E===O){l.tag=11,l=s$(null,l,i,p,m);break e}else if(E===M){l.tag=14,l=c$(null,l,i,p,m);break e}}throw l=k(i)||i,Error(r(306,l,""))}}return l;case 0:return qp(i,l,l.type,l.pendingProps,m);case 1:return p=l.type,E=ss(p,l.pendingProps),v$(i,l,p,E,m);case 3:e:{if(re(l,l.stateNode.containerInfo),i===null)throw Error(r(387));p=l.pendingProps;var R=l.memoizedState;E=R.element,Sp(i,l),Wu(l,p,null,m);var W=l.memoizedState;if(p=W.cache,ol(l,Gr,p),p!==R.cache&&hp(l,[Gr],m,!0),Uu(),p=W.element,R.isDehydrated)if(R={element:p,isDehydrated:!1,cache:W.cache},l.updateQueue.baseState=R,l.memoizedState=R,l.flags&256){l=g$(i,l,p,m);break e}else if(p!==E){E=ci(Error(r(424)),l),Lu(E),l=g$(i,l,p,m);break e}else{switch(i=l.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Er=hi(i.firstChild),ga=l,Un=!0,al=null,fi=!0,m=dw(l,null,p,m),l.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(es(),p===E){l=_o(i,l,m);break e}ba(i,l,p,m)}l=l.child}return l;case 26:return Im(i,l),i===null?(m=M_(l.type,null,l.pendingProps,null))?l.memoizedState=m:Un||(m=l.type,i=l.pendingProps,p=Um(Z.current).createElement(m),p[ut]=l,p[ot]=i,ya(p,m,i),vt(p),l.stateNode=p):l.memoizedState=M_(l.type,i.memoizedProps,l.pendingProps,i.memoizedState),null;case 27:return ve(l),i===null&&Un&&(p=l.stateNode=I_(l.type,l.pendingProps,Z.current),ga=l,fi=!0,E=Er,yl(l.type)?(Tb=E,Er=hi(p.firstChild)):Er=E),ba(i,l,l.pendingProps.children,m),Im(i,l),i===null&&(l.flags|=4194304),l.child;case 5:return i===null&&Un&&((E=p=Er)&&(p=U3(p,l.type,l.pendingProps,fi),p!==null?(l.stateNode=p,ga=l,Er=hi(p.firstChild),fi=!1,E=!0):E=!1),E||il(l)),ve(l),E=l.type,R=l.pendingProps,W=i!==null?i.memoizedProps:null,p=R.children,Ib(E,R)?p=null:W!==null&&Ib(E,W)&&(l.flags|=32),l.memoizedState!==null&&(E=Op(i,l,o3,null,null,m),fd._currentValue=E),Im(i,l),ba(i,l,p,m),l.child;case 6:return i===null&&Un&&((i=m=Er)&&(m=W3(m,l.pendingProps,fi),m!==null?(l.stateNode=m,ga=l,Er=null,i=!0):i=!1),i||il(l)),null;case 13:return p$(i,l,m);case 4:return re(l,l.stateNode.containerInfo),p=l.pendingProps,i===null?l.child=os(l,null,p,m):ba(i,l,p,m),l.child;case 11:return s$(i,l,l.type,l.pendingProps,m);case 7:return ba(i,l,l.pendingProps,m),l.child;case 8:return ba(i,l,l.pendingProps.children,m),l.child;case 12:return ba(i,l,l.pendingProps.children,m),l.child;case 10:return p=l.pendingProps,ol(l,l.type,p.value),ba(i,l,p.children,m),l.child;case 9:return E=l.type._context,p=l.pendingProps.children,ns(l),E=pa(E),p=p(E),l.flags|=1,ba(i,l,p,m),l.child;case 14:return c$(i,l,l.type,l.pendingProps,m);case 15:return u$(i,l,l.type,l.pendingProps,m);case 19:return y$(i,l,m);case 31:return h3(i,l,m);case 22:return d$(i,l,m,l.pendingProps);case 24:return ns(l),p=pa(Gr),i===null?(E=pp(),E===null&&(E=yr,R=vp(),E.pooledCache=R,R.refCount++,R!==null&&(E.pooledCacheLanes|=m),E=R),l.memoizedState={parent:p,cache:E},yp(l),ol(l,Gr,E)):((i.lanes&m)!==0&&(Sp(i,l),Wu(l,null,null,m),Uu()),E=i.memoizedState,R=l.memoizedState,E.parent!==p?(E={parent:p,cache:p},l.memoizedState=E,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=E),ol(l,Gr,p)):(p=R.cache,ol(l,Gr,p),p!==E.cache&&hp(l,[Gr],m,!0))),ba(i,l,l.pendingProps.children,m),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function Eo(i){i.flags|=4}function tb(i,l,m,p,E){if((l=(i.mode&32)!==0)&&(l=!1),l){if(i.flags|=16777216,(E&335544128)===E)if(i.stateNode.complete)i.flags|=8192;else if(q$())i.flags|=8192;else throw is=mm,bp}else i.flags&=-16777217}function x$(i,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!k_(l))if(q$())i.flags|=8192;else throw is=mm,bp}function Nm(i,l){l!==null&&(i.flags|=4),i.flags&16384&&(l=i.tag!==22?Wt():536870912,i.lanes|=l,fc|=l)}function Zu(i,l){if(!Un)switch(i.tailMode){case"hidden":l=i.tail;for(var m=null;l!==null;)l.alternate!==null&&(m=l),l=l.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?l||i.tail===null?i.tail=null:i.tail.sibling=null:p.sibling=null}}function Or(i){var l=i.alternate!==null&&i.alternate.child===i.child,m=0,p=0;if(l)for(var E=i.child;E!==null;)m|=E.lanes|E.childLanes,p|=E.subtreeFlags&65011712,p|=E.flags&65011712,E.return=i,E=E.sibling;else for(E=i.child;E!==null;)m|=E.lanes|E.childLanes,p|=E.subtreeFlags,p|=E.flags,E.return=i,E=E.sibling;return i.subtreeFlags|=p,i.childLanes=m,l}function g3(i,l,m){var p=l.pendingProps;switch(cp(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Or(l),null;case 1:return Or(l),null;case 3:return m=l.stateNode,p=null,i!==null&&(p=i.memoizedState.cache),l.memoizedState.cache!==p&&(l.flags|=2048),Co(Gr),ie(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(i===null||i.child===null)&&(Js(l)?Eo(l):i===null||i.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,dp())),Or(l),null;case 26:var E=l.type,R=l.memoizedState;return i===null?(Eo(l),R!==null?(Or(l),x$(l,R)):(Or(l),tb(l,E,null,p,m))):R?R!==i.memoizedState?(Eo(l),Or(l),x$(l,R)):(Or(l),l.flags&=-16777217):(i=i.memoizedProps,i!==p&&Eo(l),Or(l),tb(l,E,i,p,m)),null;case 27:if(ue(l),m=Z.current,E=l.type,i!==null&&l.stateNode!=null)i.memoizedProps!==p&&Eo(l);else{if(!p){if(l.stateNode===null)throw Error(r(166));return Or(l),null}i=Y.current,Js(l)?ew(l):(i=I_(E,p,m),l.stateNode=i,Eo(l))}return Or(l),null;case 5:if(ue(l),E=l.type,i!==null&&l.stateNode!=null)i.memoizedProps!==p&&Eo(l);else{if(!p){if(l.stateNode===null)throw Error(r(166));return Or(l),null}if(R=Y.current,Js(l))ew(l);else{var W=Um(Z.current);switch(R){case 1:R=W.createElementNS("http://www.w3.org/2000/svg",E);break;case 2:R=W.createElementNS("http://www.w3.org/1998/Math/MathML",E);break;default:switch(E){case"svg":R=W.createElementNS("http://www.w3.org/2000/svg",E);break;case"math":R=W.createElementNS("http://www.w3.org/1998/Math/MathML",E);break;case"script":R=W.createElement("div"),R.innerHTML="<script><\/script>",R=R.removeChild(R.firstChild);break;case"select":R=typeof p.is=="string"?W.createElement("select",{is:p.is}):W.createElement("select"),p.multiple?R.multiple=!0:p.size&&(R.size=p.size);break;default:R=typeof p.is=="string"?W.createElement(E,{is:p.is}):W.createElement(E)}}R[ut]=l,R[ot]=p;e:for(W=l.child;W!==null;){if(W.tag===5||W.tag===6)R.appendChild(W.stateNode);else if(W.tag!==4&&W.tag!==27&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===l)break e;for(;W.sibling===null;){if(W.return===null||W.return===l)break e;W=W.return}W.sibling.return=W.return,W=W.sibling}l.stateNode=R;e:switch(ya(R,E,p),E){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&Eo(l)}}return Or(l),tb(l,l.type,i===null?null:i.memoizedProps,l.pendingProps,m),null;case 6:if(i&&l.stateNode!=null)i.memoizedProps!==p&&Eo(l);else{if(typeof p!="string"&&l.stateNode===null)throw Error(r(166));if(i=Z.current,Js(l)){if(i=l.stateNode,m=l.memoizedProps,p=null,E=ga,E!==null)switch(E.tag){case 27:case 5:p=E.memoizedProps}i[ut]=l,i=!!(i.nodeValue===m||p!==null&&p.suppressHydrationWarning===!0||p_(i.nodeValue,m)),i||il(l,!0)}else i=Um(i).createTextNode(p),i[ut]=l,l.stateNode=i}return Or(l),null;case 31:if(m=l.memoizedState,i===null||i.memoizedState!==null){if(p=Js(l),m!==null){if(i===null){if(!p)throw Error(r(318));if(i=l.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[ut]=l}else es(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Or(l),i=!1}else m=dp(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=m),i=!0;if(!i)return l.flags&256?(Qa(l),l):(Qa(l),null);if((l.flags&128)!==0)throw Error(r(558))}return Or(l),null;case 13:if(p=l.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(E=Js(l),p!==null&&p.dehydrated!==null){if(i===null){if(!E)throw Error(r(318));if(E=l.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(r(317));E[ut]=l}else es(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Or(l),E=!1}else E=dp(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=E),E=!0;if(!E)return l.flags&256?(Qa(l),l):(Qa(l),null)}return Qa(l),(l.flags&128)!==0?(l.lanes=m,l):(m=p!==null,i=i!==null&&i.memoizedState!==null,m&&(p=l.child,E=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(E=p.alternate.memoizedState.cachePool.pool),R=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(R=p.memoizedState.cachePool.pool),R!==E&&(p.flags|=2048)),m!==i&&m&&(l.child.flags|=8192),Nm(l,l.updateQueue),Or(l),null);case 4:return ie(),i===null&&wb(l.stateNode.containerInfo),Or(l),null;case 10:return Co(l.type),Or(l),null;case 19:if(U(Fr),p=l.memoizedState,p===null)return Or(l),null;if(E=(l.flags&128)!==0,R=p.rendering,R===null)if(E)Zu(p,!1);else{if(Lr!==0||i!==null&&(i.flags&128)!==0)for(i=l.child;i!==null;){if(R=pm(i),R!==null){for(l.flags|=128,Zu(p,!1),i=R.updateQueue,l.updateQueue=i,Nm(l,i),l.subtreeFlags=0,i=m,m=l.child;m!==null;)G1(m,i),m=m.sibling;return K(Fr,Fr.current&1|2),Un&&So(l,p.treeForkCount),l.child}i=i.sibling}p.tail!==null&&we()>Pm&&(l.flags|=128,E=!0,Zu(p,!1),l.lanes=4194304)}else{if(!E)if(i=pm(R),i!==null){if(l.flags|=128,E=!0,i=i.updateQueue,l.updateQueue=i,Nm(l,i),Zu(p,!0),p.tail===null&&p.tailMode==="hidden"&&!R.alternate&&!Un)return Or(l),null}else 2*we()-p.renderingStartTime>Pm&&m!==536870912&&(l.flags|=128,E=!0,Zu(p,!1),l.lanes=4194304);p.isBackwards?(R.sibling=l.child,l.child=R):(i=p.last,i!==null?i.sibling=R:l.child=R,p.last=R)}return p.tail!==null?(i=p.tail,p.rendering=i,p.tail=i.sibling,p.renderingStartTime=we(),i.sibling=null,m=Fr.current,K(Fr,E?m&1|2:m&1),Un&&So(l,p.treeForkCount),i):(Or(l),null);case 22:case 23:return Qa(l),$p(),p=l.memoizedState!==null,i!==null?i.memoizedState!==null!==p&&(l.flags|=8192):p&&(l.flags|=8192),p?(m&536870912)!==0&&(l.flags&128)===0&&(Or(l),l.subtreeFlags&6&&(l.flags|=8192)):Or(l),m=l.updateQueue,m!==null&&Nm(l,m.retryQueue),m=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(m=i.memoizedState.cachePool.pool),p=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(p=l.memoizedState.cachePool.pool),p!==m&&(l.flags|=2048),i!==null&&U(rs),null;case 24:return m=null,i!==null&&(m=i.memoizedState.cache),l.memoizedState.cache!==m&&(l.flags|=2048),Co(Gr),Or(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function p3(i,l){switch(cp(l),l.tag){case 1:return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 3:return Co(Gr),ie(),i=l.flags,(i&65536)!==0&&(i&128)===0?(l.flags=i&-65537|128,l):null;case 26:case 27:case 5:return ue(l),null;case 31:if(l.memoizedState!==null){if(Qa(l),l.alternate===null)throw Error(r(340));es()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 13:if(Qa(l),i=l.memoizedState,i!==null&&i.dehydrated!==null){if(l.alternate===null)throw Error(r(340));es()}return i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 19:return U(Fr),null;case 4:return ie(),null;case 10:return Co(l.type),null;case 22:case 23:return Qa(l),$p(),i!==null&&U(rs),i=l.flags,i&65536?(l.flags=i&-65537|128,l):null;case 24:return Co(Gr),null;case 25:return null;default:return null}}function C$(i,l){switch(cp(l),l.tag){case 3:Co(Gr),ie();break;case 26:case 27:case 5:ue(l);break;case 4:ie();break;case 31:l.memoizedState!==null&&Qa(l);break;case 13:Qa(l);break;case 19:U(Fr);break;case 10:Co(l.type);break;case 22:case 23:Qa(l),$p(),i!==null&&U(rs);break;case 24:Co(Gr)}}function Ju(i,l){try{var m=l.updateQueue,p=m!==null?m.lastEffect:null;if(p!==null){var E=p.next;m=E;do{if((m.tag&i)===i){p=void 0;var R=m.create,W=m.inst;p=R(),W.destroy=p}m=m.next}while(m!==E)}}catch(ne){ur(l,l.return,ne)}}function fl(i,l,m){try{var p=l.updateQueue,E=p!==null?p.lastEffect:null;if(E!==null){var R=E.next;p=R;do{if((p.tag&i)===i){var W=p.inst,ne=W.destroy;if(ne!==void 0){W.destroy=void 0,E=l;var Se=m,ze=ne;try{ze()}catch(Xe){ur(E,Se,Xe)}}}p=p.next}while(p!==R)}}catch(Xe){ur(l,l.return,Xe)}}function w$(i){var l=i.updateQueue;if(l!==null){var m=i.stateNode;try{mw(l,m)}catch(p){ur(i,i.return,p)}}}function $$(i,l,m){m.props=ss(i.type,i.memoizedProps),m.state=i.memoizedState;try{m.componentWillUnmount()}catch(p){ur(i,l,p)}}function ed(i,l){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(E){ur(i,l,E)}}function to(i,l){var m=i.ref,p=i.refCleanup;if(m!==null)if(typeof p=="function")try{p()}catch(E){ur(i,l,E)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(E){ur(i,l,E)}else m.current=null}function _$(i){var l=i.type,m=i.memoizedProps,p=i.stateNode;try{e:switch(l){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(E){ur(i,i.return,E)}}function nb(i,l,m){try{var p=i.stateNode;L3(p,i.type,m,l),p[ot]=l}catch(E){ur(i,i.return,E)}}function E$(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&yl(i.type)||i.tag===4}function rb(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||E$(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&&yl(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 ab(i,l,m){var p=i.tag;if(p===5||p===6)i=i.stateNode,l?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(i,l):(l=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,l.appendChild(i),m=m._reactRootContainer,m!=null||l.onclick!==null||(l.onclick=Ar));else if(p!==4&&(p===27&&yl(i.type)&&(m=i.stateNode,l=null),i=i.child,i!==null))for(ab(i,l,m),i=i.sibling;i!==null;)ab(i,l,m),i=i.sibling}function Mm(i,l,m){var p=i.tag;if(p===5||p===6)i=i.stateNode,l?m.insertBefore(i,l):m.appendChild(i);else if(p!==4&&(p===27&&yl(i.type)&&(m=i.stateNode),i=i.child,i!==null))for(Mm(i,l,m),i=i.sibling;i!==null;)Mm(i,l,m),i=i.sibling}function O$(i){var l=i.stateNode,m=i.memoizedProps;try{for(var p=i.type,E=l.attributes;E.length;)l.removeAttributeNode(E[0]);ya(l,p,m),l[ut]=i,l[ot]=m}catch(R){ur(i,i.return,R)}}var Oo=!1,Zr=!1,ib=!1,I$=typeof WeakSet=="function"?WeakSet:Set,ca=null;function b3(i,l){if(i=i.containerInfo,Eb=Zm,i=H1(i),Zg(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 E=p.anchorOffset,R=p.focusNode;p=p.focusOffset;try{m.nodeType,R.nodeType}catch{m=null;break e}var W=0,ne=-1,Se=-1,ze=0,Xe=0,nt=i,Le=null;t:for(;;){for(var Ve;nt!==m||E!==0&&nt.nodeType!==3||(ne=W+E),nt!==R||p!==0&&nt.nodeType!==3||(Se=W+p),nt.nodeType===3&&(W+=nt.nodeValue.length),(Ve=nt.firstChild)!==null;)Le=nt,nt=Ve;for(;;){if(nt===i)break t;if(Le===m&&++ze===E&&(ne=W),Le===R&&++Xe===p&&(Se=W),(Ve=nt.nextSibling)!==null)break;nt=Le,Le=nt.parentNode}nt=Ve}m=ne===-1||Se===-1?null:{start:ne,end:Se}}else m=null}m=m||{start:0,end:0}}else m=null;for(Ob={focusedElem:i,selectionRange:m},Zm=!1,ca=l;ca!==null;)if(l=ca,i=l.child,(l.subtreeFlags&1028)!==0&&i!==null)i.return=l,ca=i;else for(;ca!==null;){switch(l=ca,R=l.alternate,i=l.flags,l.tag){case 0:if((i&4)!==0&&(i=l.updateQueue,i=i!==null?i.events:null,i!==null))for(m=0;m<i.length;m++)E=i[m],E.ref.impl=E.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&R!==null){i=void 0,m=l,E=R.memoizedProps,R=R.memoizedState,p=m.stateNode;try{var Xt=ss(m.type,E);i=p.getSnapshotBeforeUpdate(Xt,R),p.__reactInternalSnapshotBeforeUpdate=i}catch(fn){ur(m,m.return,fn)}}break;case 3:if((i&1024)!==0){if(i=l.stateNode.containerInfo,m=i.nodeType,m===9)Nb(i);else if(m===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Nb(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=l.sibling,i!==null){i.return=l.return,ca=i;break}ca=l.return}}function R$(i,l,m){var p=m.flags;switch(m.tag){case 0:case 11:case 15:Ro(i,m),p&4&&Ju(5,m);break;case 1:if(Ro(i,m),p&4)if(i=m.stateNode,l===null)try{i.componentDidMount()}catch(W){ur(m,m.return,W)}else{var E=ss(m.type,l.memoizedProps);l=l.memoizedState;try{i.componentDidUpdate(E,l,i.__reactInternalSnapshotBeforeUpdate)}catch(W){ur(m,m.return,W)}}p&64&&w$(m),p&512&&ed(m,m.return);break;case 3:if(Ro(i,m),p&64&&(i=m.updateQueue,i!==null)){if(l=null,m.child!==null)switch(m.child.tag){case 27:case 5:l=m.child.stateNode;break;case 1:l=m.child.stateNode}try{mw(i,l)}catch(W){ur(m,m.return,W)}}break;case 27:l===null&&p&4&&O$(m);case 26:case 5:Ro(i,m),l===null&&p&4&&_$(m),p&512&&ed(m,m.return);break;case 12:Ro(i,m);break;case 31:Ro(i,m),p&4&&j$(i,m);break;case 13:Ro(i,m),p&4&&T$(i,m),p&64&&(i=m.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(m=O3.bind(null,m),q3(i,m))));break;case 22:if(p=m.memoizedState!==null||Oo,!p){l=l!==null&&l.memoizedState!==null||Zr,E=Oo;var R=Zr;Oo=p,(Zr=l)&&!R?No(i,m,(m.subtreeFlags&8772)!==0):Ro(i,m),Oo=E,Zr=R}break;case 30:break;default:Ro(i,m)}}function N$(i){var l=i.alternate;l!==null&&(i.alternate=null,N$(l)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(l=i.stateNode,l!==null&&xn(l)),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 Mr=null,Ha=!1;function Io(i,l,m){for(m=m.child;m!==null;)M$(i,l,m),m=m.sibling}function M$(i,l,m){if($e&&typeof $e.onCommitFiberUnmount=="function")try{$e.onCommitFiberUnmount(Be,m)}catch{}switch(m.tag){case 26:Zr||to(m,l),Io(i,l,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:Zr||to(m,l);var p=Mr,E=Ha;yl(m.type)&&(Mr=m.stateNode,Ha=!1),Io(i,l,m),cd(m.stateNode),Mr=p,Ha=E;break;case 5:Zr||to(m,l);case 6:if(p=Mr,E=Ha,Mr=null,Io(i,l,m),Mr=p,Ha=E,Mr!==null)if(Ha)try{(Mr.nodeType===9?Mr.body:Mr.nodeName==="HTML"?Mr.ownerDocument.body:Mr).removeChild(m.stateNode)}catch(R){ur(m,l,R)}else try{Mr.removeChild(m.stateNode)}catch(R){ur(m,l,R)}break;case 18:Mr!==null&&(Ha?(i=Mr,w_(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,m.stateNode),Sc(i)):w_(Mr,m.stateNode));break;case 4:p=Mr,E=Ha,Mr=m.stateNode.containerInfo,Ha=!0,Io(i,l,m),Mr=p,Ha=E;break;case 0:case 11:case 14:case 15:fl(2,m,l),Zr||fl(4,m,l),Io(i,l,m);break;case 1:Zr||(to(m,l),p=m.stateNode,typeof p.componentWillUnmount=="function"&&$$(m,l,p)),Io(i,l,m);break;case 21:Io(i,l,m);break;case 22:Zr=(p=Zr)||m.memoizedState!==null,Io(i,l,m),Zr=p;break;default:Io(i,l,m)}}function j$(i,l){if(l.memoizedState===null&&(i=l.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{Sc(i)}catch(m){ur(l,l.return,m)}}}function T$(i,l){if(l.memoizedState===null&&(i=l.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Sc(i)}catch(m){ur(l,l.return,m)}}function y3(i){switch(i.tag){case 31:case 13:case 19:var l=i.stateNode;return l===null&&(l=i.stateNode=new I$),l;case 22:return i=i.stateNode,l=i._retryCache,l===null&&(l=i._retryCache=new I$),l;default:throw Error(r(435,i.tag))}}function jm(i,l){var m=y3(i);l.forEach(function(p){if(!m.has(p)){m.add(p);var E=I3.bind(null,i,p);p.then(E,E)}})}function Ba(i,l){var m=l.deletions;if(m!==null)for(var p=0;p<m.length;p++){var E=m[p],R=i,W=l,ne=W;e:for(;ne!==null;){switch(ne.tag){case 27:if(yl(ne.type)){Mr=ne.stateNode,Ha=!1;break e}break;case 5:Mr=ne.stateNode,Ha=!1;break e;case 3:case 4:Mr=ne.stateNode.containerInfo,Ha=!0;break e}ne=ne.return}if(Mr===null)throw Error(r(160));M$(R,W,E),Mr=null,Ha=!1,R=E.alternate,R!==null&&(R.return=null),E.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)D$(l,i),l=l.sibling}var Mi=null;function D$(i,l){var m=i.alternate,p=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Ba(l,i),Fa(i),p&4&&(fl(3,i,i.return),Ju(3,i),fl(5,i,i.return));break;case 1:Ba(l,i),Fa(i),p&512&&(Zr||m===null||to(m,m.return)),p&64&&Oo&&(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 E=Mi;if(Ba(l,i),Fa(i),p&512&&(Zr||m===null||to(m,m.return)),p&4){var R=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,E=E.ownerDocument||E;t:switch(p){case"title":R=E.getElementsByTagName("title")[0],(!R||R[rn]||R[ut]||R.namespaceURI==="http://www.w3.org/2000/svg"||R.hasAttribute("itemprop"))&&(R=E.createElement(p),E.head.insertBefore(R,E.querySelector("head > title"))),ya(R,p,m),R[ut]=i,vt(R),p=R;break e;case"link":var W=D_("link","href",E).get(p+(m.href||""));if(W){for(var ne=0;ne<W.length;ne++)if(R=W[ne],R.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&R.getAttribute("rel")===(m.rel==null?null:m.rel)&&R.getAttribute("title")===(m.title==null?null:m.title)&&R.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){W.splice(ne,1);break t}}R=E.createElement(p),ya(R,p,m),E.head.appendChild(R);break;case"meta":if(W=D_("meta","content",E).get(p+(m.content||""))){for(ne=0;ne<W.length;ne++)if(R=W[ne],R.getAttribute("content")===(m.content==null?null:""+m.content)&&R.getAttribute("name")===(m.name==null?null:m.name)&&R.getAttribute("property")===(m.property==null?null:m.property)&&R.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&R.getAttribute("charset")===(m.charSet==null?null:m.charSet)){W.splice(ne,1);break t}}R=E.createElement(p),ya(R,p,m),E.head.appendChild(R);break;default:throw Error(r(468,p))}R[ut]=i,vt(R),p=R}i.stateNode=p}else P_(E,i.type,i.stateNode);else i.stateNode=T_(E,p,i.memoizedProps);else R!==p?(R===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):R.count--,p===null?P_(E,i.type,i.stateNode):T_(E,p,i.memoizedProps)):p===null&&i.stateNode!==null&&nb(i,i.memoizedProps,m.memoizedProps)}break;case 27:Ba(l,i),Fa(i),p&512&&(Zr||m===null||to(m,m.return)),m!==null&&p&4&&nb(i,i.memoizedProps,m.memoizedProps);break;case 5:if(Ba(l,i),Fa(i),p&512&&(Zr||m===null||to(m,m.return)),i.flags&32){E=i.stateNode;try{sr(E,"")}catch(Xt){ur(i,i.return,Xt)}}p&4&&i.stateNode!=null&&(E=i.memoizedProps,nb(i,E,m!==null?m.memoizedProps:E)),p&1024&&(ib=!0);break;case 6:if(Ba(l,i),Fa(i),p&4){if(i.stateNode===null)throw Error(r(162));p=i.memoizedProps,m=i.stateNode;try{m.nodeValue=p}catch(Xt){ur(i,i.return,Xt)}}break;case 3:if(Ym=null,E=Mi,Mi=Wm(l.containerInfo),Ba(l,i),Mi=E,Fa(i),p&4&&m!==null&&m.memoizedState.isDehydrated)try{Sc(l.containerInfo)}catch(Xt){ur(i,i.return,Xt)}ib&&(ib=!1,P$(i));break;case 4:p=Mi,Mi=Wm(i.stateNode.containerInfo),Ba(l,i),Fa(i),Mi=p;break;case 12:Ba(l,i),Fa(i);break;case 31:Ba(l,i),Fa(i),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,jm(i,p)));break;case 13:Ba(l,i),Fa(i),i.child.flags&8192&&i.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(Dm=we()),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,jm(i,p)));break;case 22:E=i.memoizedState!==null;var Se=m!==null&&m.memoizedState!==null,ze=Oo,Xe=Zr;if(Oo=ze||E,Zr=Xe||Se,Ba(l,i),Zr=Xe,Oo=ze,Fa(i),p&8192)e:for(l=i.stateNode,l._visibility=E?l._visibility&-2:l._visibility|1,E&&(m===null||Se||Oo||Zr||cs(i)),m=null,l=i;;){if(l.tag===5||l.tag===26){if(m===null){Se=m=l;try{if(R=Se.stateNode,E)W=R.style,typeof W.setProperty=="function"?W.setProperty("display","none","important"):W.display="none";else{ne=Se.stateNode;var nt=Se.memoizedProps.style,Le=nt!=null&&nt.hasOwnProperty("display")?nt.display:null;ne.style.display=Le==null||typeof Le=="boolean"?"":(""+Le).trim()}}catch(Xt){ur(Se,Se.return,Xt)}}}else if(l.tag===6){if(m===null){Se=l;try{Se.stateNode.nodeValue=E?"":Se.memoizedProps}catch(Xt){ur(Se,Se.return,Xt)}}}else if(l.tag===18){if(m===null){Se=l;try{var Ve=Se.stateNode;E?$_(Ve,!0):$_(Se.stateNode,!1)}catch(Xt){ur(Se,Se.return,Xt)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===i)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break e;for(;l.sibling===null;){if(l.return===null||l.return===i)break e;m===l&&(m=null),l=l.return}m===l&&(m=null),l.sibling.return=l.return,l=l.sibling}p&4&&(p=i.updateQueue,p!==null&&(m=p.retryQueue,m!==null&&(p.retryQueue=null,jm(i,m))));break;case 19:Ba(l,i),Fa(i),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,jm(i,p)));break;case 30:break;case 21:break;default:Ba(l,i),Fa(i)}}function Fa(i){var l=i.flags;if(l&2){try{for(var m,p=i.return;p!==null;){if(E$(p)){m=p;break}p=p.return}if(m==null)throw Error(r(160));switch(m.tag){case 27:var E=m.stateNode,R=rb(i);Mm(i,R,E);break;case 5:var W=m.stateNode;m.flags&32&&(sr(W,""),m.flags&=-33);var ne=rb(i);Mm(i,ne,W);break;case 3:case 4:var Se=m.stateNode.containerInfo,ze=rb(i);ab(i,ze,Se);break;default:throw Error(r(161))}}catch(Xe){ur(i,i.return,Xe)}i.flags&=-3}l&4096&&(i.flags&=-4097)}function P$(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var l=i;P$(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),i=i.sibling}}function Ro(i,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)R$(i,l.alternate,l),l=l.sibling}function cs(i){for(i=i.child;i!==null;){var l=i;switch(l.tag){case 0:case 11:case 14:case 15:fl(4,l,l.return),cs(l);break;case 1:to(l,l.return);var m=l.stateNode;typeof m.componentWillUnmount=="function"&&$$(l,l.return,m),cs(l);break;case 27:cd(l.stateNode);case 26:case 5:to(l,l.return),cs(l);break;case 22:l.memoizedState===null&&cs(l);break;case 30:cs(l);break;default:cs(l)}i=i.sibling}}function No(i,l,m){for(m=m&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var p=l.alternate,E=i,R=l,W=R.flags;switch(R.tag){case 0:case 11:case 15:No(E,R,m),Ju(4,R);break;case 1:if(No(E,R,m),p=R,E=p.stateNode,typeof E.componentDidMount=="function")try{E.componentDidMount()}catch(ze){ur(p,p.return,ze)}if(p=R,E=p.updateQueue,E!==null){var ne=p.stateNode;try{var Se=E.shared.hiddenCallbacks;if(Se!==null)for(E.shared.hiddenCallbacks=null,E=0;E<Se.length;E++)fw(Se[E],ne)}catch(ze){ur(p,p.return,ze)}}m&&W&64&&w$(R),ed(R,R.return);break;case 27:O$(R);case 26:case 5:No(E,R,m),m&&p===null&&W&4&&_$(R),ed(R,R.return);break;case 12:No(E,R,m);break;case 31:No(E,R,m),m&&W&4&&j$(E,R);break;case 13:No(E,R,m),m&&W&4&&T$(E,R);break;case 22:R.memoizedState===null&&No(E,R,m),ed(R,R.return);break;case 30:break;default:No(E,R,m)}l=l.sibling}}function ob(i,l){var m=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(m=i.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==m&&(i!=null&&i.refCount++,m!=null&&Hu(m))}function lb(i,l){i=null,l.alternate!==null&&(i=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==i&&(l.refCount++,i!=null&&Hu(i))}function ji(i,l,m,p){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)k$(i,l,m,p),l=l.sibling}function k$(i,l,m,p){var E=l.flags;switch(l.tag){case 0:case 11:case 15:ji(i,l,m,p),E&2048&&Ju(9,l);break;case 1:ji(i,l,m,p);break;case 3:ji(i,l,m,p),E&2048&&(i=null,l.alternate!==null&&(i=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==i&&(l.refCount++,i!=null&&Hu(i)));break;case 12:if(E&2048){ji(i,l,m,p),i=l.stateNode;try{var R=l.memoizedProps,W=R.id,ne=R.onPostCommit;typeof ne=="function"&&ne(W,l.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(Se){ur(l,l.return,Se)}}else ji(i,l,m,p);break;case 31:ji(i,l,m,p);break;case 13:ji(i,l,m,p);break;case 23:break;case 22:R=l.stateNode,W=l.alternate,l.memoizedState!==null?R._visibility&2?ji(i,l,m,p):td(i,l):R._visibility&2?ji(i,l,m,p):(R._visibility|=2,cc(i,l,m,p,(l.subtreeFlags&10256)!==0||!1)),E&2048&&ob(W,l);break;case 24:ji(i,l,m,p),E&2048&&lb(l.alternate,l);break;default:ji(i,l,m,p)}}function cc(i,l,m,p,E){for(E=E&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var R=i,W=l,ne=m,Se=p,ze=W.flags;switch(W.tag){case 0:case 11:case 15:cc(R,W,ne,Se,E),Ju(8,W);break;case 23:break;case 22:var Xe=W.stateNode;W.memoizedState!==null?Xe._visibility&2?cc(R,W,ne,Se,E):td(R,W):(Xe._visibility|=2,cc(R,W,ne,Se,E)),E&&ze&2048&&ob(W.alternate,W);break;case 24:cc(R,W,ne,Se,E),E&&ze&2048&&lb(W.alternate,W);break;default:cc(R,W,ne,Se,E)}l=l.sibling}}function td(i,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var m=i,p=l,E=p.flags;switch(p.tag){case 22:td(m,p),E&2048&&ob(p.alternate,p);break;case 24:td(m,p),E&2048&&lb(p.alternate,p);break;default:td(m,p)}l=l.sibling}}var nd=8192;function uc(i,l,m){if(i.subtreeFlags&nd)for(i=i.child;i!==null;)A$(i,l,m),i=i.sibling}function A$(i,l,m){switch(i.tag){case 26:uc(i,l,m),i.flags&nd&&i.memoizedState!==null&&i6(m,Mi,i.memoizedState,i.memoizedProps);break;case 5:uc(i,l,m);break;case 3:case 4:var p=Mi;Mi=Wm(i.stateNode.containerInfo),uc(i,l,m),Mi=p;break;case 22:i.memoizedState===null&&(p=i.alternate,p!==null&&p.memoizedState!==null?(p=nd,nd=16777216,uc(i,l,m),nd=p):uc(i,l,m));break;default:uc(i,l,m)}}function z$(i){var l=i.alternate;if(l!==null&&(i=l.child,i!==null)){l.child=null;do l=i.sibling,i.sibling=null,i=l;while(i!==null)}}function rd(i){var l=i.deletions;if((i.flags&16)!==0){if(l!==null)for(var m=0;m<l.length;m++){var p=l[m];ca=p,H$(p,i)}z$(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)L$(i),i=i.sibling}function L$(i){switch(i.tag){case 0:case 11:case 15:rd(i),i.flags&2048&&fl(9,i,i.return);break;case 3:rd(i);break;case 12:rd(i);break;case 22:var l=i.stateNode;i.memoizedState!==null&&l._visibility&2&&(i.return===null||i.return.tag!==13)?(l._visibility&=-3,Tm(i)):rd(i);break;default:rd(i)}}function Tm(i){var l=i.deletions;if((i.flags&16)!==0){if(l!==null)for(var m=0;m<l.length;m++){var p=l[m];ca=p,H$(p,i)}z$(i)}for(i=i.child;i!==null;){switch(l=i,l.tag){case 0:case 11:case 15:fl(8,l,l.return),Tm(l);break;case 22:m=l.stateNode,m._visibility&2&&(m._visibility&=-3,Tm(l));break;default:Tm(l)}i=i.sibling}}function H$(i,l){for(;ca!==null;){var m=ca;switch(m.tag){case 0:case 11:case 15:fl(8,m,l);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:Hu(m.memoizedState.cache)}if(p=m.child,p!==null)p.return=m,ca=p;else e:for(m=i;ca!==null;){p=ca;var E=p.sibling,R=p.return;if(N$(p),p===m){ca=null;break e}if(E!==null){E.return=R,ca=E;break e}ca=R}}}var S3={getCacheForType:function(i){var l=pa(Gr),m=l.data.get(i);return m===void 0&&(m=i(),l.data.set(i,m)),m},cacheSignal:function(){return pa(Gr).controller.signal}},x3=typeof WeakMap=="function"?WeakMap:Map,ar=0,yr=null,Pn=null,Hn=0,cr=0,Za=null,ml=!1,dc=!1,sb=!1,Mo=0,Lr=0,hl=0,us=0,cb=0,Ja=0,fc=0,ad=null,Va=null,ub=!1,Dm=0,B$=0,Pm=1/0,km=null,vl=null,ta=0,gl=null,mc=null,jo=0,db=0,fb=null,F$=null,id=0,mb=null;function ei(){return(ar&2)!==0&&Hn!==0?Hn&-Hn:T.T!==null?yb():Tt()}function V$(){if(Ja===0)if((Hn&536870912)===0||Un){var i=$t;$t<<=1,($t&3932160)===0&&($t=262144),Ja=i}else Ja=536870912;return i=Xa.current,i!==null&&(i.flags|=32),Ja}function Ka(i,l,m){(i===yr&&(cr===2||cr===9)||i.cancelPendingCommit!==null)&&(hc(i,0),pl(i,Hn,Ja,!1)),ht(i,m),((ar&2)===0||i!==yr)&&(i===yr&&((ar&2)===0&&(us|=m),Lr===4&&pl(i,Hn,Ja,!1)),no(i))}function K$(i,l,m){if((ar&6)!==0)throw Error(r(327));var p=!m&&(l&127)===0&&(l&i.expiredLanes)===0||st(i,l),E=p?$3(i,l):vb(i,l,!0),R=p;do{if(E===0){dc&&!p&&pl(i,l,0,!1);break}else{if(m=i.current.alternate,R&&!C3(m)){E=vb(i,l,!1),R=!1;continue}if(E===2){if(R=l,i.errorRecoveryDisabledLanes&R)var W=0;else W=i.pendingLanes&-536870913,W=W!==0?W:W&536870912?536870912:0;if(W!==0){l=W;e:{var ne=i;E=ad;var Se=ne.current.memoizedState.isDehydrated;if(Se&&(hc(ne,W).flags|=256),W=vb(ne,W,!1),W!==2){if(sb&&!Se){ne.errorRecoveryDisabledLanes|=R,us|=R,E=4;break e}R=Va,Va=E,R!==null&&(Va===null?Va=R:Va.push.apply(Va,R))}E=W}if(R=!1,E!==2)continue}}if(E===1){hc(i,0),pl(i,l,0,!0);break}e:{switch(p=i,R=E,R){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:pl(p,l,Ja,!ml);break e;case 2:Va=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(E=Dm+300-we(),10<E)){if(pl(p,l,Ja,!ml),mt(p,0,!0)!==0)break e;jo=l,p.timeoutHandle=x_(U$.bind(null,p,m,Va,km,ub,l,Ja,us,fc,ml,R,"Throttled",-0,0),E);break e}U$(p,m,Va,km,ub,l,Ja,us,fc,ml,R,null,-0,0)}}break}while(!0);no(i)}function U$(i,l,m,p,E,R,W,ne,Se,ze,Xe,nt,Le,Ve){if(i.timeoutHandle=-1,nt=l.subtreeFlags,nt&8192||(nt&16785408)===16785408){nt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ar},A$(l,R,nt);var Xt=(R&62914560)===R?Dm-we():(R&4194048)===R?B$-we():0;if(Xt=o6(nt,Xt),Xt!==null){jo=R,i.cancelPendingCommit=Xt(J$.bind(null,i,l,R,m,p,E,W,ne,Se,Xe,nt,null,Le,Ve)),pl(i,R,W,!ze);return}}J$(i,l,R,m,p,E,W,ne,Se)}function C3(i){for(var l=i;;){var m=l.tag;if((m===0||m===11||m===15)&&l.flags&16384&&(m=l.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var p=0;p<m.length;p++){var E=m[p],R=E.getSnapshot;E=E.value;try{if(!Ya(R(),E))return!1}catch{return!1}}if(m=l.child,l.subtreeFlags&16384&&m!==null)m.return=l,l=m;else{if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function pl(i,l,m,p){l&=~cb,l&=~us,i.suspendedLanes|=l,i.pingedLanes&=~l,p&&(i.warmLanes|=l),p=i.expirationTimes;for(var E=l;0<E;){var R=31-be(E),W=1<<R;p[R]=-1,E&=~W}m!==0&&_t(i,m,l)}function Am(){return(ar&6)===0?(od(0),!1):!0}function hb(){if(Pn!==null){if(cr===0)var i=Pn.return;else i=Pn,xo=ts=null,Np(i),ac=null,Fu=0,i=Pn;for(;i!==null;)C$(i.alternate,i),i=i.return;Pn=null}}function hc(i,l){var m=i.timeoutHandle;m!==-1&&(i.timeoutHandle=-1,F3(m)),m=i.cancelPendingCommit,m!==null&&(i.cancelPendingCommit=null,m()),jo=0,hb(),yr=i,Pn=m=yo(i.current,null),Hn=l,cr=0,Za=null,ml=!1,dc=st(i,l),sb=!1,fc=Ja=cb=us=hl=Lr=0,Va=ad=null,ub=!1,(l&8)!==0&&(l|=l&32);var p=i.entangledLanes;if(p!==0)for(i=i.entanglements,p&=l;0<p;){var E=31-be(p),R=1<<E;l|=i[E],p&=~R}return Mo=l,am(),m}function W$(i,l){On=null,T.H=Xu,l===rc||l===fm?(l=sw(),cr=3):l===bp?(l=sw(),cr=4):cr=l===Wp?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Za=l,Pn===null&&(Lr=1,Em(i,ci(l,i.current)))}function q$(){var i=Xa.current;return i===null?!0:(Hn&4194048)===Hn?mi===null:(Hn&62914560)===Hn||(Hn&536870912)!==0?i===mi:!1}function Y$(){var i=T.H;return T.H=Xu,i===null?Xu:i}function G$(){var i=T.A;return T.A=S3,i}function zm(){Lr=4,ml||(Hn&4194048)!==Hn&&Xa.current!==null||(dc=!0),(hl&134217727)===0&&(us&134217727)===0||yr===null||pl(yr,Hn,Ja,!1)}function vb(i,l,m){var p=ar;ar|=2;var E=Y$(),R=G$();(yr!==i||Hn!==l)&&(km=null,hc(i,l)),l=!1;var W=Lr;e:do try{if(cr!==0&&Pn!==null){var ne=Pn,Se=Za;switch(cr){case 8:hb(),W=6;break e;case 3:case 2:case 9:case 6:Xa.current===null&&(l=!0);var ze=cr;if(cr=0,Za=null,vc(i,ne,Se,ze),m&&dc){W=0;break e}break;default:ze=cr,cr=0,Za=null,vc(i,ne,Se,ze)}}w3(),W=Lr;break}catch(Xe){W$(i,Xe)}while(!0);return l&&i.shellSuspendCounter++,xo=ts=null,ar=p,T.H=E,T.A=R,Pn===null&&(yr=null,Hn=0,am()),W}function w3(){for(;Pn!==null;)X$(Pn)}function $3(i,l){var m=ar;ar|=2;var p=Y$(),E=G$();yr!==i||Hn!==l?(km=null,Pm=we()+500,hc(i,l)):dc=st(i,l);e:do try{if(cr!==0&&Pn!==null){l=Pn;var R=Za;t:switch(cr){case 1:cr=0,Za=null,vc(i,l,R,1);break;case 2:case 9:if(ow(R)){cr=0,Za=null,Q$(l);break}l=function(){cr!==2&&cr!==9||yr!==i||(cr=7),no(i)},R.then(l,l);break e;case 3:cr=7;break e;case 4:cr=5;break e;case 7:ow(R)?(cr=0,Za=null,Q$(l)):(cr=0,Za=null,vc(i,l,R,7));break;case 5:var W=null;switch(Pn.tag){case 26:W=Pn.memoizedState;case 5:case 27:var ne=Pn;if(W?k_(W):ne.stateNode.complete){cr=0,Za=null;var Se=ne.sibling;if(Se!==null)Pn=Se;else{var ze=ne.return;ze!==null?(Pn=ze,Lm(ze)):Pn=null}break t}}cr=0,Za=null,vc(i,l,R,5);break;case 6:cr=0,Za=null,vc(i,l,R,6);break;case 8:hb(),Lr=6;break e;default:throw Error(r(462))}}_3();break}catch(Xe){W$(i,Xe)}while(!0);return xo=ts=null,T.H=p,T.A=E,ar=m,Pn!==null?0:(yr=null,Hn=0,am(),Lr)}function _3(){for(;Pn!==null&&!Ie();)X$(Pn)}function X$(i){var l=S$(i.alternate,i,Mo);i.memoizedProps=i.pendingProps,l===null?Lm(i):Pn=l}function Q$(i){var l=i,m=l.alternate;switch(l.tag){case 15:case 0:l=h$(m,l,l.pendingProps,l.type,void 0,Hn);break;case 11:l=h$(m,l,l.pendingProps,l.type.render,l.ref,Hn);break;case 5:Np(l);default:C$(m,l),l=Pn=G1(l,Mo),l=S$(m,l,Mo)}i.memoizedProps=i.pendingProps,l===null?Lm(i):Pn=l}function vc(i,l,m,p){xo=ts=null,Np(l),ac=null,Fu=0;var E=l.return;try{if(m3(i,E,l,m,Hn)){Lr=1,Em(i,ci(m,i.current)),Pn=null;return}}catch(R){if(E!==null)throw Pn=E,R;Lr=1,Em(i,ci(m,i.current)),Pn=null;return}l.flags&32768?(Un||p===1?i=!0:dc||(Hn&536870912)!==0?i=!1:(ml=i=!0,(p===2||p===9||p===3||p===6)&&(p=Xa.current,p!==null&&p.tag===13&&(p.flags|=16384))),Z$(l,i)):Lm(l)}function Lm(i){var l=i;do{if((l.flags&32768)!==0){Z$(l,ml);return}i=l.return;var m=g3(l.alternate,l,Mo);if(m!==null){Pn=m;return}if(l=l.sibling,l!==null){Pn=l;return}Pn=l=i}while(l!==null);Lr===0&&(Lr=5)}function Z$(i,l){do{var m=p3(i.alternate,i);if(m!==null){m.flags&=32767,Pn=m;return}if(m=i.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!l&&(i=i.sibling,i!==null)){Pn=i;return}Pn=i=m}while(i!==null);Lr=6,Pn=null}function J$(i,l,m,p,E,R,W,ne,Se){i.cancelPendingCommit=null;do Hm();while(ta!==0);if((ar&6)!==0)throw Error(r(327));if(l!==null){if(l===i.current)throw Error(r(177));if(R=l.lanes|l.childLanes,R|=rp,It(i,m,R,W,ne,Se),i===yr&&(Pn=yr=null,Hn=0),mc=l,gl=i,jo=m,db=R,fb=E,F$=p,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,R3(Ze,function(){return a_(),null})):(i.callbackNode=null,i.callbackPriority=0),p=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||p){p=T.T,T.T=null,E=z.p,z.p=2,W=ar,ar|=4;try{b3(i,l,m)}finally{ar=W,z.p=E,T.T=p}}ta=1,e_(),t_(),n_()}}function e_(){if(ta===1){ta=0;var i=gl,l=mc,m=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||m){m=T.T,T.T=null;var p=z.p;z.p=2;var E=ar;ar|=4;try{D$(l,i);var R=Ob,W=H1(i.containerInfo),ne=R.focusedElem,Se=R.selectionRange;if(W!==ne&&ne&&ne.ownerDocument&&L1(ne.ownerDocument.documentElement,ne)){if(Se!==null&&Zg(ne)){var ze=Se.start,Xe=Se.end;if(Xe===void 0&&(Xe=ze),"selectionStart"in ne)ne.selectionStart=ze,ne.selectionEnd=Math.min(Xe,ne.value.length);else{var nt=ne.ownerDocument||document,Le=nt&&nt.defaultView||window;if(Le.getSelection){var Ve=Le.getSelection(),Xt=ne.textContent.length,fn=Math.min(Se.start,Xt),vr=Se.end===void 0?fn:Math.min(Se.end,Xt);!Ve.extend&&fn>vr&&(W=vr,vr=fn,fn=W);var Ne=z1(ne,fn),Ee=z1(ne,vr);if(Ne&&Ee&&(Ve.rangeCount!==1||Ve.anchorNode!==Ne.node||Ve.anchorOffset!==Ne.offset||Ve.focusNode!==Ee.node||Ve.focusOffset!==Ee.offset)){var Ae=nt.createRange();Ae.setStart(Ne.node,Ne.offset),Ve.removeAllRanges(),fn>vr?(Ve.addRange(Ae),Ve.extend(Ee.node,Ee.offset)):(Ae.setEnd(Ee.node,Ee.offset),Ve.addRange(Ae))}}}}for(nt=[],Ve=ne;Ve=Ve.parentNode;)Ve.nodeType===1&&nt.push({element:Ve,left:Ve.scrollLeft,top:Ve.scrollTop});for(typeof ne.focus=="function"&&ne.focus(),ne=0;ne<nt.length;ne++){var et=nt[ne];et.element.scrollLeft=et.left,et.element.scrollTop=et.top}}Zm=!!Eb,Ob=Eb=null}finally{ar=E,z.p=p,T.T=m}}i.current=l,ta=2}}function t_(){if(ta===2){ta=0;var i=gl,l=mc,m=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||m){m=T.T,T.T=null;var p=z.p;z.p=2;var E=ar;ar|=4;try{R$(i,l.alternate,l)}finally{ar=E,z.p=p,T.T=m}}ta=3}}function n_(){if(ta===4||ta===3){ta=0,_e();var i=gl,l=mc,m=jo,p=F$;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?ta=5:(ta=0,mc=gl=null,r_(i,i.pendingLanes));var E=i.pendingLanes;if(E===0&&(vl=null),ct(m),l=l.stateNode,$e&&typeof $e.onCommitFiberRoot=="function")try{$e.onCommitFiberRoot(Be,l,void 0,(l.current.flags&128)===128)}catch{}if(p!==null){l=T.T,E=z.p,z.p=2,T.T=null;try{for(var R=i.onRecoverableError,W=0;W<p.length;W++){var ne=p[W];R(ne.value,{componentStack:ne.stack})}}finally{T.T=l,z.p=E}}(jo&3)!==0&&Hm(),no(i),E=i.pendingLanes,(m&261930)!==0&&(E&42)!==0?i===mb?id++:(id=0,mb=i):id=0,od(0)}}function r_(i,l){(i.pooledCacheLanes&=l)===0&&(l=i.pooledCache,l!=null&&(i.pooledCache=null,Hu(l)))}function Hm(){return e_(),t_(),n_(),a_()}function a_(){if(ta!==5)return!1;var i=gl,l=db;db=0;var m=ct(jo),p=T.T,E=z.p;try{z.p=32>m?32:m,T.T=null,m=fb,fb=null;var R=gl,W=jo;if(ta=0,mc=gl=null,jo=0,(ar&6)!==0)throw Error(r(331));var ne=ar;if(ar|=4,L$(R.current),k$(R,R.current,W,m),ar=ne,od(0,!1),$e&&typeof $e.onPostCommitFiberRoot=="function")try{$e.onPostCommitFiberRoot(Be,R)}catch{}return!0}finally{z.p=E,T.T=p,r_(i,l)}}function i_(i,l,m){l=ci(m,l),l=Up(i.stateNode,l,2),i=cl(i,l,2),i!==null&&(ht(i,2),no(i))}function ur(i,l,m){if(i.tag===3)i_(i,i,m);else for(;l!==null;){if(l.tag===3){i_(l,i,m);break}else if(l.tag===1){var p=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(vl===null||!vl.has(p))){i=ci(m,i),m=o$(2),p=cl(l,m,2),p!==null&&(l$(m,p,l,i),ht(p,2),no(p));break}}l=l.return}}function gb(i,l,m){var p=i.pingCache;if(p===null){p=i.pingCache=new x3;var E=new Set;p.set(l,E)}else E=p.get(l),E===void 0&&(E=new Set,p.set(l,E));E.has(m)||(sb=!0,E.add(m),i=E3.bind(null,i,l,m),l.then(i,i))}function E3(i,l,m){var p=i.pingCache;p!==null&&p.delete(l),i.pingedLanes|=i.suspendedLanes&m,i.warmLanes&=~m,yr===i&&(Hn&m)===m&&(Lr===4||Lr===3&&(Hn&62914560)===Hn&&300>we()-Dm?(ar&2)===0&&hc(i,0):cb|=m,fc===Hn&&(fc=0)),no(i)}function o_(i,l){l===0&&(l=Wt()),i=Zl(i,l),i!==null&&(ht(i,l),no(i))}function O3(i){var l=i.memoizedState,m=0;l!==null&&(m=l.retryLane),o_(i,m)}function I3(i,l){var m=0;switch(i.tag){case 31:case 13:var p=i.stateNode,E=i.memoizedState;E!==null&&(m=E.retryLane);break;case 19:p=i.stateNode;break;case 22:p=i.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(l),o_(i,m)}function R3(i,l){return je(i,l)}var Bm=null,gc=null,pb=!1,Fm=!1,bb=!1,bl=0;function no(i){i!==gc&&i.next===null&&(gc===null?Bm=gc=i:gc=gc.next=i),Fm=!0,pb||(pb=!0,M3())}function od(i,l){if(!bb&&Fm){bb=!0;do for(var m=!1,p=Bm;p!==null;){if(i!==0){var E=p.pendingLanes;if(E===0)var R=0;else{var W=p.suspendedLanes,ne=p.pingedLanes;R=(1<<31-be(42|i)+1)-1,R&=E&~(W&~ne),R=R&201326741?R&201326741|1:R?R|2:0}R!==0&&(m=!0,u_(p,R))}else R=Hn,R=mt(p,p===yr?R:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(R&3)===0||st(p,R)||(m=!0,u_(p,R));p=p.next}while(m);bb=!1}}function N3(){l_()}function l_(){Fm=pb=!1;var i=0;bl!==0&&B3()&&(i=bl);for(var l=we(),m=null,p=Bm;p!==null;){var E=p.next,R=s_(p,l);R===0?(p.next=null,m===null?Bm=E:m.next=E,E===null&&(gc=m)):(m=p,(i!==0||(R&3)!==0)&&(Fm=!0)),p=E}ta!==0&&ta!==5||od(i),bl!==0&&(bl=0)}function s_(i,l){for(var m=i.suspendedLanes,p=i.pingedLanes,E=i.expirationTimes,R=i.pendingLanes&-62914561;0<R;){var W=31-be(R),ne=1<<W,Se=E[W];Se===-1?((ne&m)===0||(ne&p)!==0)&&(E[W]=pt(ne,l)):Se<=l&&(i.expiredLanes|=ne),R&=~ne}if(l=yr,m=Hn,m=mt(i,i===l?m:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),p=i.callbackNode,m===0||i===l&&(cr===2||cr===9)||i.cancelPendingCommit!==null)return p!==null&&p!==null&&ge(p),i.callbackNode=null,i.callbackPriority=0;if((m&3)===0||st(i,m)){if(l=m&-m,l===i.callbackPriority)return l;switch(p!==null&&ge(p),ct(m)){case 2:case 8:m=it;break;case 32:m=Ze;break;case 268435456:m=Je;break;default:m=Ze}return p=c_.bind(null,i),m=je(m,p),i.callbackPriority=l,i.callbackNode=m,l}return p!==null&&p!==null&&ge(p),i.callbackPriority=2,i.callbackNode=null,2}function c_(i,l){if(ta!==0&&ta!==5)return i.callbackNode=null,i.callbackPriority=0,null;var m=i.callbackNode;if(Hm()&&i.callbackNode!==m)return null;var p=Hn;return p=mt(i,i===yr?p:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),p===0?null:(K$(i,p,l),s_(i,we()),i.callbackNode!=null&&i.callbackNode===m?c_.bind(null,i):null)}function u_(i,l){if(Hm())return null;K$(i,l,!0)}function M3(){V3(function(){(ar&6)!==0?je(He,N3):l_()})}function yb(){if(bl===0){var i=tc;i===0&&(i=ft,ft<<=1,(ft&261888)===0&&(ft=256)),bl=i}return bl}function d_(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:nr(""+i)}function f_(i,l){var m=l.ownerDocument.createElement("input");return m.name=l.name,m.value=l.value,i.id&&m.setAttribute("form",i.id),l.parentNode.insertBefore(m,l),i=new FormData(i),m.parentNode.removeChild(m),i}function j3(i,l,m,p,E){if(l==="submit"&&m&&m.stateNode===E){var R=d_((E[ot]||null).action),W=p.submitter;W&&(l=(l=W[ot]||null)?d_(l.formAction):W.getAttribute("formAction"),l!==null&&(R=l,W=null));var ne=new em("action","action",null,p,E);i.push({event:ne,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(bl!==0){var Se=W?f_(E,W):new FormData(E);Lp(m,{pending:!0,data:Se,method:E.method,action:R},null,Se)}}else typeof R=="function"&&(ne.preventDefault(),Se=W?f_(E,W):new FormData(E),Lp(m,{pending:!0,data:Se,method:E.method,action:R},R,Se))},currentTarget:E}]})}}for(var Sb=0;Sb<np.length;Sb++){var xb=np[Sb],T3=xb.toLowerCase(),D3=xb[0].toUpperCase()+xb.slice(1);Ni(T3,"on"+D3)}Ni(V1,"onAnimationEnd"),Ni(K1,"onAnimationIteration"),Ni(U1,"onAnimationStart"),Ni("dblclick","onDoubleClick"),Ni("focusin","onFocus"),Ni("focusout","onBlur"),Ni(X4,"onTransitionRun"),Ni(Q4,"onTransitionStart"),Ni(Z4,"onTransitionCancel"),Ni(W1,"onTransitionEnd"),bt("onMouseEnter",["mouseout","mouseover"]),bt("onMouseLeave",["mouseout","mouseover"]),bt("onPointerEnter",["pointerout","pointerover"]),bt("onPointerLeave",["pointerout","pointerover"]),on("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),on("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),on("onBeforeInput",["compositionend","keypress","textInput","paste"]),on("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),on("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),on("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ld="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(" "),P3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ld));function m_(i,l){l=(l&4)!==0;for(var m=0;m<i.length;m++){var p=i[m],E=p.event;p=p.listeners;e:{var R=void 0;if(l)for(var W=p.length-1;0<=W;W--){var ne=p[W],Se=ne.instance,ze=ne.currentTarget;if(ne=ne.listener,Se!==R&&E.isPropagationStopped())break e;R=ne,E.currentTarget=ze;try{R(E)}catch(Xe){rm(Xe)}E.currentTarget=null,R=Se}else for(W=0;W<p.length;W++){if(ne=p[W],Se=ne.instance,ze=ne.currentTarget,ne=ne.listener,Se!==R&&E.isPropagationStopped())break e;R=ne,E.currentTarget=ze;try{R(E)}catch(Xe){rm(Xe)}E.currentTarget=null,R=Se}}}}function kn(i,l){var m=l[tn];m===void 0&&(m=l[tn]=new Set);var p=i+"__bubble";m.has(p)||(h_(l,i,2,!1),m.add(p))}function Cb(i,l,m){var p=0;l&&(p|=4),h_(m,i,p,l)}var Vm="_reactListening"+Math.random().toString(36).slice(2);function wb(i){if(!i[Vm]){i[Vm]=!0,Et.forEach(function(m){m!=="selectionchange"&&(P3.has(m)||Cb(m,!1,i),Cb(m,!0,i))});var l=i.nodeType===9?i:i.ownerDocument;l===null||l[Vm]||(l[Vm]=!0,Cb("selectionchange",!1,l))}}function h_(i,l,m,p){switch(V_(l)){case 2:var E=c6;break;case 8:E=u6;break;default:E=zb}m=E.bind(null,l,m,i),E=void 0,!fr||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(E=!0),p?E!==void 0?i.addEventListener(l,m,{capture:!0,passive:E}):i.addEventListener(l,m,!0):E!==void 0?i.addEventListener(l,m,{passive:E}):i.addEventListener(l,m,!1)}function $b(i,l,m,p,E){var R=p;if((l&1)===0&&(l&2)===0&&p!==null)e:for(;;){if(p===null)return;var W=p.tag;if(W===3||W===4){var ne=p.stateNode.containerInfo;if(ne===E)break;if(W===4)for(W=p.return;W!==null;){var Se=W.tag;if((Se===3||Se===4)&&W.stateNode.containerInfo===E)return;W=W.return}for(;ne!==null;){if(W=lt(ne),W===null)return;if(Se=W.tag,Se===5||Se===6||Se===26||Se===27){p=R=W;continue e}ne=ne.parentNode}}p=p.return}Us(function(){var ze=R,Xe=Yr(m),nt=[];e:{var Le=q1.get(i);if(Le!==void 0){var Ve=em,Xt=i;switch(i){case"keypress":if(bo(m)===0)break e;case"keydown":case"keyup":Ve=I4;break;case"focusin":Xt="focus",Ve=qg;break;case"focusout":Xt="blur",Ve=qg;break;case"beforeblur":case"afterblur":Ve=qg;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=C1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ve=g4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ve=M4;break;case V1:case K1:case U1:Ve=y4;break;case W1:Ve=T4;break;case"scroll":case"scrollend":Ve=h4;break;case"wheel":Ve=P4;break;case"copy":case"cut":case"paste":Ve=x4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ve=$1;break;case"toggle":case"beforetoggle":Ve=A4}var fn=(l&4)!==0,vr=!fn&&(i==="scroll"||i==="scrollend"),Ne=fn?Le!==null?Le+"Capture":null:Le;fn=[];for(var Ee=ze,Ae;Ee!==null;){var et=Ee;if(Ae=et.stateNode,et=et.tag,et!==5&&et!==26&&et!==27||Ae===null||Ne===null||(et=Vt(Ee,Ne),et!=null&&fn.push(sd(Ee,et,Ae))),vr)break;Ee=Ee.return}0<fn.length&&(Le=new Ve(Le,Xt,null,m,Xe),nt.push({event:Le,listeners:fn}))}}if((l&7)===0){e:{if(Le=i==="mouseover"||i==="pointerover",Ve=i==="mouseout"||i==="pointerout",Le&&m!==Br&&(Xt=m.relatedTarget||m.fromElement)&&(lt(Xt)||Xt[Lt]))break e;if((Ve||Le)&&(Le=Xe.window===Xe?Xe:(Le=Xe.ownerDocument)?Le.defaultView||Le.parentWindow:window,Ve?(Xt=m.relatedTarget||m.toElement,Ve=ze,Xt=Xt?lt(Xt):null,Xt!==null&&(vr=o(Xt),fn=Xt.tag,Xt!==vr||fn!==5&&fn!==27&&fn!==6)&&(Xt=null)):(Ve=null,Xt=ze),Ve!==Xt)){if(fn=C1,et="onMouseLeave",Ne="onMouseEnter",Ee="mouse",(i==="pointerout"||i==="pointerover")&&(fn=$1,et="onPointerLeave",Ne="onPointerEnter",Ee="pointer"),vr=Ve==null?Le:Bt(Ve),Ae=Xt==null?Le:Bt(Xt),Le=new fn(et,Ee+"leave",Ve,m,Xe),Le.target=vr,Le.relatedTarget=Ae,et=null,lt(Xe)===ze&&(fn=new fn(Ne,Ee+"enter",Xt,m,Xe),fn.target=Ae,fn.relatedTarget=vr,et=fn),vr=et,Ve&&Xt)t:{for(fn=k3,Ne=Ve,Ee=Xt,Ae=0,et=Ne;et;et=fn(et))Ae++;et=0;for(var ln=Ee;ln;ln=fn(ln))et++;for(;0<Ae-et;)Ne=fn(Ne),Ae--;for(;0<et-Ae;)Ee=fn(Ee),et--;for(;Ae--;){if(Ne===Ee||Ee!==null&&Ne===Ee.alternate){fn=Ne;break t}Ne=fn(Ne),Ee=fn(Ee)}fn=null}else fn=null;Ve!==null&&v_(nt,Le,Ve,fn,!1),Xt!==null&&vr!==null&&v_(nt,vr,Xt,fn,!0)}}e:{if(Le=ze?Bt(ze):window,Ve=Le.nodeName&&Le.nodeName.toLowerCase(),Ve==="select"||Ve==="input"&&Le.type==="file")var Qn=j1;else if(N1(Le))if(T1)Qn=q4;else{Qn=U4;var en=K4}else Ve=Le.nodeName,!Ve||Ve.toLowerCase()!=="input"||Le.type!=="checkbox"&&Le.type!=="radio"?ze&&Ot(ze.elementType)&&(Qn=j1):Qn=W4;if(Qn&&(Qn=Qn(i,ze))){M1(nt,Qn,m,Xe);break e}en&&en(i,Le,ze),i==="focusout"&&ze&&Le.type==="number"&&ze.memoizedProps.value!=null&&yn(Le,"number",Le.value)}switch(en=ze?Bt(ze):window,i){case"focusin":(N1(en)||en.contentEditable==="true")&&(qs=en,Jg=ze,Au=null);break;case"focusout":Au=Jg=qs=null;break;case"mousedown":ep=!0;break;case"contextmenu":case"mouseup":case"dragend":ep=!1,B1(nt,m,Xe);break;case"selectionchange":if(G4)break;case"keydown":case"keyup":B1(nt,m,Xe)}var Rn;if(Gg)e:{switch(i){case"compositionstart":var Bn="onCompositionStart";break e;case"compositionend":Bn="onCompositionEnd";break e;case"compositionupdate":Bn="onCompositionUpdate";break e}Bn=void 0}else Ws?I1(i,m)&&(Bn="onCompositionEnd"):i==="keydown"&&m.keyCode===229&&(Bn="onCompositionStart");Bn&&(_1&&m.locale!=="ko"&&(Ws||Bn!=="onCompositionStart"?Bn==="onCompositionEnd"&&Ws&&(Rn=Nu()):(rr=Xe,tl="value"in rr?rr.value:rr.textContent,Ws=!0)),en=Km(ze,Bn),0<en.length&&(Bn=new w1(Bn,i,null,m,Xe),nt.push({event:Bn,listeners:en}),Rn?Bn.data=Rn:(Rn=R1(m),Rn!==null&&(Bn.data=Rn)))),(Rn=L4?H4(i,m):B4(i,m))&&(Bn=Km(ze,"onBeforeInput"),0<Bn.length&&(en=new w1("onBeforeInput","beforeinput",null,m,Xe),nt.push({event:en,listeners:Bn}),en.data=Rn)),j3(nt,i,ze,m,Xe)}m_(nt,l)})}function sd(i,l,m){return{instance:i,listener:l,currentTarget:m}}function Km(i,l){for(var m=l+"Capture",p=[];i!==null;){var E=i,R=E.stateNode;if(E=E.tag,E!==5&&E!==26&&E!==27||R===null||(E=Vt(i,m),E!=null&&p.unshift(sd(i,E,R)),E=Vt(i,l),E!=null&&p.push(sd(i,E,R))),i.tag===3)return p;i=i.return}return[]}function k3(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function v_(i,l,m,p,E){for(var R=l._reactName,W=[];m!==null&&m!==p;){var ne=m,Se=ne.alternate,ze=ne.stateNode;if(ne=ne.tag,Se!==null&&Se===p)break;ne!==5&&ne!==26&&ne!==27||ze===null||(Se=ze,E?(ze=Vt(m,R),ze!=null&&W.unshift(sd(m,ze,Se))):E||(ze=Vt(m,R),ze!=null&&W.push(sd(m,ze,Se)))),m=m.return}W.length!==0&&i.push({event:l,listeners:W})}var A3=/\r\n?/g,z3=/\u0000|\uFFFD/g;function g_(i){return(typeof i=="string"?i:""+i).replace(A3,`
`).replace(z3,"")}function p_(i,l){return l=g_(l),g_(i)===l}function hr(i,l,m,p,E,R){switch(m){case"children":typeof p=="string"?l==="body"||l==="textarea"&&p===""||sr(i,p):(typeof p=="number"||typeof p=="bigint")&&l!=="body"&&sr(i,""+p);break;case"className":$r(i,"class",p);break;case"tabIndex":$r(i,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":$r(i,m,p);break;case"style":dt(i,p,R);break;case"data":if(l!=="object"){$r(i,"data",p);break}case"src":case"href":if(p===""&&(l!=="a"||m!=="href")){i.removeAttribute(m);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(m);break}p=nr(""+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 R=="function"&&(m==="formAction"?(l!=="input"&&hr(i,l,"name",E.name,E,null),hr(i,l,"formEncType",E.formEncType,E,null),hr(i,l,"formMethod",E.formMethod,E,null),hr(i,l,"formTarget",E.formTarget,E,null)):(hr(i,l,"encType",E.encType,E,null),hr(i,l,"method",E.method,E,null),hr(i,l,"target",E.target,E,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(m);break}p=nr(""+p),i.setAttribute(m,p);break;case"onClick":p!=null&&(i.onclick=Ar);break;case"onScroll":p!=null&&kn("scroll",i);break;case"onScrollEnd":p!=null&&kn("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(E.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=nr(""+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":kn("beforetoggle",i),kn("toggle",i),wr(i,"popover",p);break;case"xlinkActuate":Yn(i,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":Yn(i,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":Yn(i,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":Yn(i,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":Yn(i,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":Yn(i,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":Yn(i,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":Yn(i,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":Yn(i,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":wr(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=bn.get(m)||m,wr(i,m,p))}}function _b(i,l,m,p,E,R){switch(m){case"style":dt(i,p,R);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(m=p.__html,m!=null){if(E.children!=null)throw Error(r(60));i.innerHTML=m}}break;case"children":typeof p=="string"?sr(i,p):(typeof p=="number"||typeof p=="bigint")&&sr(i,""+p);break;case"onScroll":p!=null&&kn("scroll",i);break;case"onScrollEnd":p!=null&&kn("scrollend",i);break;case"onClick":p!=null&&(i.onclick=Ar);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qt.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(E=m.endsWith("Capture"),l=m.slice(2,E?m.length-7:void 0),R=i[ot]||null,R=R!=null?R[m]:null,typeof R=="function"&&i.removeEventListener(l,R,E),typeof p=="function")){typeof R!="function"&&R!==null&&(m in i?i[m]=null:i.hasAttribute(m)&&i.removeAttribute(m)),i.addEventListener(l,p,E);break e}m in i?i[m]=p:p===!0?i.setAttribute(m,""):wr(i,m,p)}}}function ya(i,l,m){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":kn("error",i),kn("load",i);var p=!1,E=!1,R;for(R in m)if(m.hasOwnProperty(R)){var W=m[R];if(W!=null)switch(R){case"src":p=!0;break;case"srcSet":E=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:hr(i,l,R,W,m,null)}}E&&hr(i,l,"srcSet",m.srcSet,m,null),p&&hr(i,l,"src",m.src,m,null);return;case"input":kn("invalid",i);var ne=R=W=E=null,Se=null,ze=null;for(p in m)if(m.hasOwnProperty(p)){var Xe=m[p];if(Xe!=null)switch(p){case"name":E=Xe;break;case"type":W=Xe;break;case"checked":Se=Xe;break;case"defaultChecked":ze=Xe;break;case"value":R=Xe;break;case"defaultValue":ne=Xe;break;case"children":case"dangerouslySetInnerHTML":if(Xe!=null)throw Error(r(137,l));break;default:hr(i,l,p,Xe,m,null)}}Pt(i,R,ne,Se,ze,W,E,!1);return;case"select":kn("invalid",i),p=W=R=null;for(E in m)if(m.hasOwnProperty(E)&&(ne=m[E],ne!=null))switch(E){case"value":R=ne;break;case"defaultValue":W=ne;break;case"multiple":p=ne;default:hr(i,l,E,ne,m,null)}l=R,m=W,i.multiple=!!p,l!=null?Ln(i,!!p,l,!1):m!=null&&Ln(i,!!p,m,!0);return;case"textarea":kn("invalid",i),R=E=p=null;for(W in m)if(m.hasOwnProperty(W)&&(ne=m[W],ne!=null))switch(W){case"value":p=ne;break;case"defaultValue":E=ne;break;case"children":R=ne;break;case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(91));break;default:hr(i,l,W,ne,m,null)}Pr(i,p,E,R);return;case"option":for(Se in m)if(m.hasOwnProperty(Se)&&(p=m[Se],p!=null))switch(Se){case"selected":i.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:hr(i,l,Se,p,m,null)}return;case"dialog":kn("beforetoggle",i),kn("toggle",i),kn("cancel",i),kn("close",i);break;case"iframe":case"object":kn("load",i);break;case"video":case"audio":for(p=0;p<ld.length;p++)kn(ld[p],i);break;case"image":kn("error",i),kn("load",i);break;case"details":kn("toggle",i);break;case"embed":case"source":case"link":kn("error",i),kn("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(ze in m)if(m.hasOwnProperty(ze)&&(p=m[ze],p!=null))switch(ze){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:hr(i,l,ze,p,m,null)}return;default:if(Ot(l)){for(Xe in m)m.hasOwnProperty(Xe)&&(p=m[Xe],p!==void 0&&_b(i,l,Xe,p,m,void 0));return}}for(ne in m)m.hasOwnProperty(ne)&&(p=m[ne],p!=null&&hr(i,l,ne,p,m,null))}function L3(i,l,m,p){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var E=null,R=null,W=null,ne=null,Se=null,ze=null,Xe=null;for(Ve in m){var nt=m[Ve];if(m.hasOwnProperty(Ve)&&nt!=null)switch(Ve){case"checked":break;case"value":break;case"defaultValue":Se=nt;default:p.hasOwnProperty(Ve)||hr(i,l,Ve,null,p,nt)}}for(var Le in p){var Ve=p[Le];if(nt=m[Le],p.hasOwnProperty(Le)&&(Ve!=null||nt!=null))switch(Le){case"type":R=Ve;break;case"name":E=Ve;break;case"checked":ze=Ve;break;case"defaultChecked":Xe=Ve;break;case"value":W=Ve;break;case"defaultValue":ne=Ve;break;case"children":case"dangerouslySetInnerHTML":if(Ve!=null)throw Error(r(137,l));break;default:Ve!==nt&&hr(i,l,Le,Ve,p,nt)}}Nt(i,W,ne,Se,ze,Xe,R,E);return;case"select":Ve=W=ne=Le=null;for(R in m)if(Se=m[R],m.hasOwnProperty(R)&&Se!=null)switch(R){case"value":break;case"multiple":Ve=Se;default:p.hasOwnProperty(R)||hr(i,l,R,null,p,Se)}for(E in p)if(R=p[E],Se=m[E],p.hasOwnProperty(E)&&(R!=null||Se!=null))switch(E){case"value":Le=R;break;case"defaultValue":ne=R;break;case"multiple":W=R;default:R!==Se&&hr(i,l,E,R,p,Se)}l=ne,m=W,p=Ve,Le!=null?Ln(i,!!m,Le,!1):!!p!=!!m&&(l!=null?Ln(i,!!m,l,!0):Ln(i,!!m,m?[]:"",!1));return;case"textarea":Ve=Le=null;for(ne in m)if(E=m[ne],m.hasOwnProperty(ne)&&E!=null&&!p.hasOwnProperty(ne))switch(ne){case"value":break;case"children":break;default:hr(i,l,ne,null,p,E)}for(W in p)if(E=p[W],R=m[W],p.hasOwnProperty(W)&&(E!=null||R!=null))switch(W){case"value":Le=E;break;case"defaultValue":Ve=E;break;case"children":break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:E!==R&&hr(i,l,W,E,p,R)}lr(i,Le,Ve);return;case"option":for(var Xt in m)if(Le=m[Xt],m.hasOwnProperty(Xt)&&Le!=null&&!p.hasOwnProperty(Xt))switch(Xt){case"selected":i.selected=!1;break;default:hr(i,l,Xt,null,p,Le)}for(Se in p)if(Le=p[Se],Ve=m[Se],p.hasOwnProperty(Se)&&Le!==Ve&&(Le!=null||Ve!=null))switch(Se){case"selected":i.selected=Le&&typeof Le!="function"&&typeof Le!="symbol";break;default:hr(i,l,Se,Le,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 fn in m)Le=m[fn],m.hasOwnProperty(fn)&&Le!=null&&!p.hasOwnProperty(fn)&&hr(i,l,fn,null,p,Le);for(ze in p)if(Le=p[ze],Ve=m[ze],p.hasOwnProperty(ze)&&Le!==Ve&&(Le!=null||Ve!=null))switch(ze){case"children":case"dangerouslySetInnerHTML":if(Le!=null)throw Error(r(137,l));break;default:hr(i,l,ze,Le,p,Ve)}return;default:if(Ot(l)){for(var vr in m)Le=m[vr],m.hasOwnProperty(vr)&&Le!==void 0&&!p.hasOwnProperty(vr)&&_b(i,l,vr,void 0,p,Le);for(Xe in p)Le=p[Xe],Ve=m[Xe],!p.hasOwnProperty(Xe)||Le===Ve||Le===void 0&&Ve===void 0||_b(i,l,Xe,Le,p,Ve);return}}for(var Ne in m)Le=m[Ne],m.hasOwnProperty(Ne)&&Le!=null&&!p.hasOwnProperty(Ne)&&hr(i,l,Ne,null,p,Le);for(nt in p)Le=p[nt],Ve=m[nt],!p.hasOwnProperty(nt)||Le===Ve||Le==null&&Ve==null||hr(i,l,nt,Le,p,Ve)}function b_(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function H3(){if(typeof performance.getEntriesByType=="function"){for(var i=0,l=0,m=performance.getEntriesByType("resource"),p=0;p<m.length;p++){var E=m[p],R=E.transferSize,W=E.initiatorType,ne=E.duration;if(R&&ne&&b_(W)){for(W=0,ne=E.responseEnd,p+=1;p<m.length;p++){var Se=m[p],ze=Se.startTime;if(ze>ne)break;var Xe=Se.transferSize,nt=Se.initiatorType;Xe&&b_(nt)&&(Se=Se.responseEnd,W+=Xe*(Se<ne?1:(ne-ze)/(Se-ze)))}if(--p,l+=8*(R+W)/(E.duration/1e3),i++,10<i)break}}if(0<i)return l/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var Eb=null,Ob=null;function Um(i){return i.nodeType===9?i:i.ownerDocument}function y_(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 S_(i,l){if(i===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&l==="foreignObject"?0:i}function Ib(i,l){return i==="textarea"||i==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Rb=null;function B3(){var i=window.event;return i&&i.type==="popstate"?i===Rb?!1:(Rb=i,!0):(Rb=null,!1)}var x_=typeof setTimeout=="function"?setTimeout:void 0,F3=typeof clearTimeout=="function"?clearTimeout:void 0,C_=typeof Promise=="function"?Promise:void 0,V3=typeof queueMicrotask=="function"?queueMicrotask:typeof C_<"u"?function(i){return C_.resolve(null).then(i).catch(K3)}:x_;function K3(i){setTimeout(function(){throw i})}function yl(i){return i==="head"}function w_(i,l){var m=l,p=0;do{var E=m.nextSibling;if(i.removeChild(m),E&&E.nodeType===8)if(m=E.data,m==="/$"||m==="/&"){if(p===0){i.removeChild(E),Sc(l);return}p--}else if(m==="$"||m==="$?"||m==="$~"||m==="$!"||m==="&")p++;else if(m==="html")cd(i.ownerDocument.documentElement);else if(m==="head"){m=i.ownerDocument.head,cd(m);for(var R=m.firstChild;R;){var W=R.nextSibling,ne=R.nodeName;R[rn]||ne==="SCRIPT"||ne==="STYLE"||ne==="LINK"&&R.rel.toLowerCase()==="stylesheet"||m.removeChild(R),R=W}}else m==="body"&&cd(i.ownerDocument.body);m=E}while(m);Sc(l)}function $_(i,l){var m=i;i=0;do{var p=m.nextSibling;if(m.nodeType===1?l?(m._stashedDisplay=m.style.display,m.style.display="none"):(m.style.display=m._stashedDisplay||"",m.getAttribute("style")===""&&m.removeAttribute("style")):m.nodeType===3&&(l?(m._stashedText=m.nodeValue,m.nodeValue=""):m.nodeValue=m._stashedText||""),p&&p.nodeType===8)if(m=p.data,m==="/$"){if(i===0)break;i--}else m!=="$"&&m!=="$?"&&m!=="$~"&&m!=="$!"||i++;m=p}while(m)}function Nb(i){var l=i.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var m=l;switch(l=l.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":Nb(m),xn(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}i.removeChild(m)}}function U3(i,l,m,p){for(;i.nodeType===1;){var E=m;if(i.nodeName.toLowerCase()!==l.toLowerCase()){if(!p&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(p){if(!i[rn])switch(l){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(R=i.getAttribute("rel"),R==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(R!==E.rel||i.getAttribute("href")!==(E.href==null||E.href===""?null:E.href)||i.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin)||i.getAttribute("title")!==(E.title==null?null:E.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(R=i.getAttribute("src"),(R!==(E.src==null?null:E.src)||i.getAttribute("type")!==(E.type==null?null:E.type)||i.getAttribute("crossorigin")!==(E.crossOrigin==null?null:E.crossOrigin))&&R&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(l==="input"&&i.type==="hidden"){var R=E.name==null?null:""+E.name;if(E.type==="hidden"&&i.getAttribute("name")===R)return i}else return i;if(i=hi(i.nextSibling),i===null)break}return null}function W3(i,l,m){if(l==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!m||(i=hi(i.nextSibling),i===null))return null;return i}function __(i,l){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!l||(i=hi(i.nextSibling),i===null))return null;return i}function Mb(i){return i.data==="$?"||i.data==="$~"}function jb(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function q3(i,l){var m=i.ownerDocument;if(i.data==="$~")i._reactRetry=l;else if(i.data!=="$?"||m.readyState!=="loading")l();else{var p=function(){l(),m.removeEventListener("DOMContentLoaded",p)};m.addEventListener("DOMContentLoaded",p),i._reactRetry=p}}function hi(i){for(;i!=null;i=i.nextSibling){var l=i.nodeType;if(l===1||l===3)break;if(l===8){if(l=i.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return i}var Tb=null;function E_(i){i=i.nextSibling;for(var l=0;i;){if(i.nodeType===8){var m=i.data;if(m==="/$"||m==="/&"){if(l===0)return hi(i.nextSibling);l--}else m!=="$"&&m!=="$!"&&m!=="$?"&&m!=="$~"&&m!=="&"||l++}i=i.nextSibling}return null}function O_(i){i=i.previousSibling;for(var l=0;i;){if(i.nodeType===8){var m=i.data;if(m==="$"||m==="$!"||m==="$?"||m==="$~"||m==="&"){if(l===0)return i;l--}else m!=="/$"&&m!=="/&"||l++}i=i.previousSibling}return null}function I_(i,l,m){switch(l=Um(m),i){case"html":if(i=l.documentElement,!i)throw Error(r(452));return i;case"head":if(i=l.head,!i)throw Error(r(453));return i;case"body":if(i=l.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function cd(i){for(var l=i.attributes;l.length;)i.removeAttributeNode(l[0]);xn(i)}var vi=new Map,R_=new Set;function Wm(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var To=z.d;z.d={f:Y3,r:G3,D:X3,C:Q3,L:Z3,m:J3,X:t6,S:e6,M:n6};function Y3(){var i=To.f(),l=Am();return i||l}function G3(i){var l=St(i);l!==null&&l.tag===5&&l.type==="form"?Ww(l):To.r(i)}var pc=typeof document>"u"?null:document;function N_(i,l,m){var p=pc;if(p&&typeof l=="string"&&l){var E=un(l);E='link[rel="'+i+'"][href="'+E+'"]',typeof m=="string"&&(E+='[crossorigin="'+m+'"]'),R_.has(E)||(R_.add(E),i={rel:i,crossOrigin:m,href:l},p.querySelector(E)===null&&(l=p.createElement("link"),ya(l,"link",i),vt(l),p.head.appendChild(l)))}}function X3(i){To.D(i),N_("dns-prefetch",i,null)}function Q3(i,l){To.C(i,l),N_("preconnect",i,l)}function Z3(i,l,m){To.L(i,l,m);var p=pc;if(p&&i&&l){var E='link[rel="preload"][as="'+un(l)+'"]';l==="image"&&m&&m.imageSrcSet?(E+='[imagesrcset="'+un(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(E+='[imagesizes="'+un(m.imageSizes)+'"]')):E+='[href="'+un(i)+'"]';var R=E;switch(l){case"style":R=bc(i);break;case"script":R=yc(i)}vi.has(R)||(i=v({rel:"preload",href:l==="image"&&m&&m.imageSrcSet?void 0:i,as:l},m),vi.set(R,i),p.querySelector(E)!==null||l==="style"&&p.querySelector(ud(R))||l==="script"&&p.querySelector(dd(R))||(l=p.createElement("link"),ya(l,"link",i),vt(l),p.head.appendChild(l)))}}function J3(i,l){To.m(i,l);var m=pc;if(m&&i){var p=l&&typeof l.as=="string"?l.as:"script",E='link[rel="modulepreload"][as="'+un(p)+'"][href="'+un(i)+'"]',R=E;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":R=yc(i)}if(!vi.has(R)&&(i=v({rel:"modulepreload",href:i},l),vi.set(R,i),m.querySelector(E)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(dd(R)))return}p=m.createElement("link"),ya(p,"link",i),vt(p),m.head.appendChild(p)}}}function e6(i,l,m){To.S(i,l,m);var p=pc;if(p&&i){var E=kt(p).hoistableStyles,R=bc(i);l=l||"default";var W=E.get(R);if(!W){var ne={loading:0,preload:null};if(W=p.querySelector(ud(R)))ne.loading=5;else{i=v({rel:"stylesheet",href:i,"data-precedence":l},m),(m=vi.get(R))&&Db(i,m);var Se=W=p.createElement("link");vt(Se),ya(Se,"link",i),Se._p=new Promise(function(ze,Xe){Se.onload=ze,Se.onerror=Xe}),Se.addEventListener("load",function(){ne.loading|=1}),Se.addEventListener("error",function(){ne.loading|=2}),ne.loading|=4,qm(W,l,p)}W={type:"stylesheet",instance:W,count:1,state:ne},E.set(R,W)}}}function t6(i,l){To.X(i,l);var m=pc;if(m&&i){var p=kt(m).hoistableScripts,E=yc(i),R=p.get(E);R||(R=m.querySelector(dd(E)),R||(i=v({src:i,async:!0},l),(l=vi.get(E))&&Pb(i,l),R=m.createElement("script"),vt(R),ya(R,"link",i),m.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},p.set(E,R))}}function n6(i,l){To.M(i,l);var m=pc;if(m&&i){var p=kt(m).hoistableScripts,E=yc(i),R=p.get(E);R||(R=m.querySelector(dd(E)),R||(i=v({src:i,async:!0,type:"module"},l),(l=vi.get(E))&&Pb(i,l),R=m.createElement("script"),vt(R),ya(R,"link",i),m.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},p.set(E,R))}}function M_(i,l,m,p){var E=(E=Z.current)?Wm(E):null;if(!E)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(l=bc(m.href),m=kt(E).hoistableStyles,p=m.get(l),p||(p={type:"style",instance:null,count:0,state:null},m.set(l,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=bc(m.href);var R=kt(E).hoistableStyles,W=R.get(i);if(W||(E=E.ownerDocument||E,W={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},R.set(i,W),(R=E.querySelector(ud(i)))&&!R._p&&(W.instance=R,W.state.loading=5),vi.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},vi.set(i,m),R||r6(E,i,m,W.state))),l&&p===null)throw Error(r(528,""));return W}if(l&&p!==null)throw Error(r(529,""));return null;case"script":return l=m.async,m=m.src,typeof m=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=yc(m),m=kt(E).hoistableScripts,p=m.get(l),p||(p={type:"script",instance:null,count:0,state:null},m.set(l,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function bc(i){return'href="'+un(i)+'"'}function ud(i){return'link[rel="stylesheet"]['+i+"]"}function j_(i){return v({},i,{"data-precedence":i.precedence,precedence:null})}function r6(i,l,m,p){i.querySelector('link[rel="preload"][as="style"]['+l+"]")?p.loading=1:(l=i.createElement("link"),p.preload=l,l.addEventListener("load",function(){return p.loading|=1}),l.addEventListener("error",function(){return p.loading|=2}),ya(l,"link",m),vt(l),i.head.appendChild(l))}function yc(i){return'[src="'+un(i)+'"]'}function dd(i){return"script[async]"+i}function T_(i,l,m){if(l.count++,l.instance===null)switch(l.type){case"style":var p=i.querySelector('style[data-href~="'+un(m.href)+'"]');if(p)return l.instance=p,vt(p),p;var E=v({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return p=(i.ownerDocument||i).createElement("style"),vt(p),ya(p,"style",E),qm(p,m.precedence,i),l.instance=p;case"stylesheet":E=bc(m.href);var R=i.querySelector(ud(E));if(R)return l.state.loading|=4,l.instance=R,vt(R),R;p=j_(m),(E=vi.get(E))&&Db(p,E),R=(i.ownerDocument||i).createElement("link"),vt(R);var W=R;return W._p=new Promise(function(ne,Se){W.onload=ne,W.onerror=Se}),ya(R,"link",p),l.state.loading|=4,qm(R,m.precedence,i),l.instance=R;case"script":return R=yc(m.src),(E=i.querySelector(dd(R)))?(l.instance=E,vt(E),E):(p=m,(E=vi.get(R))&&(p=v({},m),Pb(p,E)),i=i.ownerDocument||i,E=i.createElement("script"),vt(E),ya(E,"link",p),i.head.appendChild(E),l.instance=E);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(p=l.instance,l.state.loading|=4,qm(p,m.precedence,i));return l.instance}function qm(i,l,m){for(var p=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),E=p.length?p[p.length-1]:null,R=E,W=0;W<p.length;W++){var ne=p[W];if(ne.dataset.precedence===l)R=ne;else if(R!==E)break}R?R.parentNode.insertBefore(i,R.nextSibling):(l=m.nodeType===9?m.head:m,l.insertBefore(i,l.firstChild))}function Db(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.title==null&&(i.title=l.title)}function Pb(i,l){i.crossOrigin==null&&(i.crossOrigin=l.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=l.referrerPolicy),i.integrity==null&&(i.integrity=l.integrity)}var Ym=null;function D_(i,l,m){if(Ym===null){var p=new Map,E=Ym=new Map;E.set(m,p)}else E=Ym,p=E.get(m),p||(p=new Map,E.set(m,p));if(p.has(i))return p;for(p.set(i,null),m=m.getElementsByTagName(i),E=0;E<m.length;E++){var R=m[E];if(!(R[rn]||R[ut]||i==="link"&&R.getAttribute("rel")==="stylesheet")&&R.namespaceURI!=="http://www.w3.org/2000/svg"){var W=R.getAttribute(l)||"";W=i+W;var ne=p.get(W);ne?ne.push(R):p.set(W,[R])}}return p}function P_(i,l,m){i=i.ownerDocument||i,i.head.insertBefore(m,l==="title"?i.querySelector("head > title"):null)}function a6(i,l,m){if(m===1||l.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return i=l.disabled,typeof l.precedence=="string"&&i==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function k_(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function i6(i,l,m,p){if(m.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(m.state.loading&4)===0){if(m.instance===null){var E=bc(p.href),R=l.querySelector(ud(E));if(R){l=R._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(i.count++,i=Gm.bind(i),l.then(i,i)),m.state.loading|=4,m.instance=R,vt(R);return}R=l.ownerDocument||l,p=j_(p),(E=vi.get(E))&&Db(p,E),R=R.createElement("link"),vt(R);var W=R;W._p=new Promise(function(ne,Se){W.onload=ne,W.onerror=Se}),ya(R,"link",p),m.instance=R}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(m,l),(l=m.state.preload)&&(m.state.loading&3)===0&&(i.count++,m=Gm.bind(i),l.addEventListener("load",m),l.addEventListener("error",m))}}var kb=0;function o6(i,l){return i.stylesheets&&i.count===0&&Qm(i,i.stylesheets),0<i.count||0<i.imgCount?function(m){var p=setTimeout(function(){if(i.stylesheets&&Qm(i,i.stylesheets),i.unsuspend){var R=i.unsuspend;i.unsuspend=null,R()}},6e4+l);0<i.imgBytes&&kb===0&&(kb=62500*H3());var E=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&Qm(i,i.stylesheets),i.unsuspend)){var R=i.unsuspend;i.unsuspend=null,R()}},(i.imgBytes>kb?50:800)+l);return i.unsuspend=m,function(){i.unsuspend=null,clearTimeout(p),clearTimeout(E)}}:null}function Gm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qm(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Xm=null;function Qm(i,l){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Xm=new Map,l.forEach(l6,i),Xm=null,Gm.call(i))}function l6(i,l){if(!(l.state.loading&4)){var m=Xm.get(i);if(m)var p=m.get(null);else{m=new Map,Xm.set(i,m);for(var E=i.querySelectorAll("link[data-precedence],style[data-precedence]"),R=0;R<E.length;R++){var W=E[R];(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")&&(m.set(W.dataset.precedence,W),p=W)}p&&m.set(null,p)}E=l.instance,W=E.getAttribute("data-precedence"),R=m.get(W)||p,R===p&&m.set(null,E),m.set(W,E),this.count++,p=Gm.bind(this),E.addEventListener("load",p),E.addEventListener("error",p),R?R.parentNode.insertBefore(E,R.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(E,i.firstChild)),l.state.loading|=4}}var fd={$$typeof:_,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function s6(i,l,m,p,E,R,W,ne,Se){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=Yt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yt(0),this.hiddenUpdates=Yt(null),this.identifierPrefix=p,this.onUncaughtError=E,this.onCaughtError=R,this.onRecoverableError=W,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Se,this.incompleteTransitions=new Map}function A_(i,l,m,p,E,R,W,ne,Se,ze,Xe,nt){return i=new s6(i,l,m,W,Se,ze,Xe,nt,ne),l=1,R===!0&&(l|=24),R=Ga(3,null,null,l),i.current=R,R.stateNode=i,l=vp(),l.refCount++,i.pooledCache=l,l.refCount++,R.memoizedState={element:p,isDehydrated:m,cache:l},yp(R),i}function z_(i){return i?(i=Xs,i):Xs}function L_(i,l,m,p,E,R){E=z_(E),p.context===null?p.context=E:p.pendingContext=E,p=sl(l),p.payload={element:m},R=R===void 0?null:R,R!==null&&(p.callback=R),m=cl(i,p,l),m!==null&&(Ka(m,i,l),Ku(m,i,l))}function H_(i,l){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var m=i.retryLane;i.retryLane=m!==0&&m<l?m:l}}function Ab(i,l){H_(i,l),(i=i.alternate)&&H_(i,l)}function B_(i){if(i.tag===13||i.tag===31){var l=Zl(i,67108864);l!==null&&Ka(l,i,67108864),Ab(i,67108864)}}function F_(i){if(i.tag===13||i.tag===31){var l=ei();l=qe(l);var m=Zl(i,l);m!==null&&Ka(m,i,l),Ab(i,l)}}var Zm=!0;function c6(i,l,m,p){var E=T.T;T.T=null;var R=z.p;try{z.p=2,zb(i,l,m,p)}finally{z.p=R,T.T=E}}function u6(i,l,m,p){var E=T.T;T.T=null;var R=z.p;try{z.p=8,zb(i,l,m,p)}finally{z.p=R,T.T=E}}function zb(i,l,m,p){if(Zm){var E=Lb(p);if(E===null)$b(i,l,p,Jm,m),K_(i,p);else if(f6(E,i,l,m,p))p.stopPropagation();else if(K_(i,p),l&4&&-1<d6.indexOf(i)){for(;E!==null;){var R=St(E);if(R!==null)switch(R.tag){case 3:if(R=R.stateNode,R.current.memoizedState.isDehydrated){var W=at(R.pendingLanes);if(W!==0){var ne=R;for(ne.pendingLanes|=2,ne.entangledLanes|=2;W;){var Se=1<<31-be(W);ne.entanglements[1]|=Se,W&=~Se}no(R),(ar&6)===0&&(Pm=we()+500,od(0))}}break;case 31:case 13:ne=Zl(R,2),ne!==null&&Ka(ne,R,2),Am(),Ab(R,2)}if(R=Lb(p),R===null&&$b(i,l,p,Jm,m),R===E)break;E=R}E!==null&&p.stopPropagation()}else $b(i,l,p,null,m)}}function Lb(i){return i=Yr(i),Hb(i)}var Jm=null;function Hb(i){if(Jm=null,i=lt(i),i!==null){var l=o(i);if(l===null)i=null;else{var m=l.tag;if(m===13){if(i=c(l),i!==null)return i;i=null}else if(m===31){if(i=u(l),i!==null)return i;i=null}else if(m===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;i=null}else l!==i&&(i=null)}}return Jm=i,null}function V_(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(Fe()){case He:return 2;case it:return 8;case Ze:case Ye:return 32;case Je:return 268435456;default:return 32}default:return 32}}var Bb=!1,Sl=null,xl=null,Cl=null,md=new Map,hd=new Map,wl=[],d6="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function K_(i,l){switch(i){case"focusin":case"focusout":Sl=null;break;case"dragenter":case"dragleave":xl=null;break;case"mouseover":case"mouseout":Cl=null;break;case"pointerover":case"pointerout":md.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":hd.delete(l.pointerId)}}function vd(i,l,m,p,E,R){return i===null||i.nativeEvent!==R?(i={blockedOn:l,domEventName:m,eventSystemFlags:p,nativeEvent:R,targetContainers:[E]},l!==null&&(l=St(l),l!==null&&B_(l)),i):(i.eventSystemFlags|=p,l=i.targetContainers,E!==null&&l.indexOf(E)===-1&&l.push(E),i)}function f6(i,l,m,p,E){switch(l){case"focusin":return Sl=vd(Sl,i,l,m,p,E),!0;case"dragenter":return xl=vd(xl,i,l,m,p,E),!0;case"mouseover":return Cl=vd(Cl,i,l,m,p,E),!0;case"pointerover":var R=E.pointerId;return md.set(R,vd(md.get(R)||null,i,l,m,p,E)),!0;case"gotpointercapture":return R=E.pointerId,hd.set(R,vd(hd.get(R)||null,i,l,m,p,E)),!0}return!1}function U_(i){var l=lt(i.target);if(l!==null){var m=o(l);if(m!==null){if(l=m.tag,l===13){if(l=c(m),l!==null){i.blockedOn=l,Dt(i.priority,function(){F_(m)});return}}else if(l===31){if(l=u(m),l!==null){i.blockedOn=l,Dt(i.priority,function(){F_(m)});return}}else if(l===3&&m.stateNode.current.memoizedState.isDehydrated){i.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}i.blockedOn=null}function eh(i){if(i.blockedOn!==null)return!1;for(var l=i.targetContainers;0<l.length;){var m=Lb(i.nativeEvent);if(m===null){m=i.nativeEvent;var p=new m.constructor(m.type,m);Br=p,m.target.dispatchEvent(p),Br=null}else return l=St(m),l!==null&&B_(l),i.blockedOn=m,!1;l.shift()}return!0}function W_(i,l,m){eh(i)&&m.delete(l)}function m6(){Bb=!1,Sl!==null&&eh(Sl)&&(Sl=null),xl!==null&&eh(xl)&&(xl=null),Cl!==null&&eh(Cl)&&(Cl=null),md.forEach(W_),hd.forEach(W_)}function th(i,l){i.blockedOn===l&&(i.blockedOn=null,Bb||(Bb=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,m6)))}var nh=null;function q_(i){nh!==i&&(nh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){nh===i&&(nh=null);for(var l=0;l<i.length;l+=3){var m=i[l],p=i[l+1],E=i[l+2];if(typeof p!="function"){if(Hb(p||m)===null)continue;break}var R=St(m);R!==null&&(i.splice(l,3),l-=3,Lp(R,{pending:!0,data:E,method:m.method,action:p},p,E))}}))}function Sc(i){function l(Se){return th(Se,i)}Sl!==null&&th(Sl,i),xl!==null&&th(xl,i),Cl!==null&&th(Cl,i),md.forEach(l),hd.forEach(l);for(var m=0;m<wl.length;m++){var p=wl[m];p.blockedOn===i&&(p.blockedOn=null)}for(;0<wl.length&&(m=wl[0],m.blockedOn===null);)U_(m),m.blockedOn===null&&wl.shift();if(m=(i.ownerDocument||i).$$reactFormReplay,m!=null)for(p=0;p<m.length;p+=3){var E=m[p],R=m[p+1],W=E[ot]||null;if(typeof R=="function")W||q_(m);else if(W){var ne=null;if(R&&R.hasAttribute("formAction")){if(E=R,W=R[ot]||null)ne=W.formAction;else if(Hb(E)!==null)continue}else ne=W.action;typeof ne=="function"?m[p+1]=ne:(m.splice(p,3),p-=3),q_(m)}}}function Y_(){function i(R){R.canIntercept&&R.info==="react-transition"&&R.intercept({handler:function(){return new Promise(function(W){return E=W})},focusReset:"manual",scroll:"manual"})}function l(){E!==null&&(E(),E=null),p||setTimeout(m,20)}function m(){if(!p&&!navigation.transition){var R=navigation.currentEntry;R&&R.url!=null&&navigation.navigate(R.url,{state:R.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,E=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(m,100),function(){p=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),E!==null&&(E(),E=null)}}}function Fb(i){this._internalRoot=i}rh.prototype.render=Fb.prototype.render=function(i){var l=this._internalRoot;if(l===null)throw Error(r(409));var m=l.current,p=ei();L_(m,p,i,l,null,null)},rh.prototype.unmount=Fb.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var l=i.containerInfo;L_(i.current,2,null,i,null,null),Am(),l[Lt]=null}};function rh(i){this._internalRoot=i}rh.prototype.unstable_scheduleHydration=function(i){if(i){var l=Tt();i={blockedOn:null,target:i,priority:l};for(var m=0;m<wl.length&&l!==0&&l<wl[m].priority;m++);wl.splice(m,0,i),m===0&&U_(i)}};var G_=t.version;if(G_!=="19.2.0")throw Error(r(527,G_,"19.2.0"));z.findDOMNode=function(i){var l=i._reactInternals;if(l===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(l),i=i!==null?h(i):null,i=i===null?null:i.stateNode,i};var h6={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ah=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ah.isDisabled&&ah.supportsFiber)try{Be=ah.inject(h6),$e=ah}catch{}}return pd.createRoot=function(i,l){if(!a(i))throw Error(r(299));var m=!1,p="",E=n$,R=r$,W=a$;return l!=null&&(l.unstable_strictMode===!0&&(m=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onUncaughtError!==void 0&&(E=l.onUncaughtError),l.onCaughtError!==void 0&&(R=l.onCaughtError),l.onRecoverableError!==void 0&&(W=l.onRecoverableError)),l=A_(i,1,!1,null,null,m,p,null,E,R,W,Y_),i[Lt]=l.current,wb(i),new Fb(l)},pd.hydrateRoot=function(i,l,m){if(!a(i))throw Error(r(299));var p=!1,E="",R=n$,W=r$,ne=a$,Se=null;return m!=null&&(m.unstable_strictMode===!0&&(p=!0),m.identifierPrefix!==void 0&&(E=m.identifierPrefix),m.onUncaughtError!==void 0&&(R=m.onUncaughtError),m.onCaughtError!==void 0&&(W=m.onCaughtError),m.onRecoverableError!==void 0&&(ne=m.onRecoverableError),m.formState!==void 0&&(Se=m.formState)),l=A_(i,1,!0,l,m??null,p,E,Se,R,W,ne,Y_),l.context=z_(null),m=l.current,p=ei(),p=qe(p),E=sl(p),E.callback=null,cl(m,E,p),m=p,l.current.lanes=m,ht(l,m),no(l),i[Lt]=l.current,wb(i),new rh(l)},pd.version="19.2.0",pd}var iE;function w6(){if(iE)return Ub.exports;iE=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(),Ub.exports=C6(),Ub.exports}var $6=w6(),Gb={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var oE;function _6(){return oE||(oE=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",c=0;c<arguments.length;c++){var u=arguments[c];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 c="";for(var u in o)t.call(o,u)&&o[u]&&(c=a(c,u));return c}function a(o,c){return c?o?o+" "+c:o+c:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Gb)),Gb.exports}var E6=_6();const se=Wi(E6);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 jt(e){"@babel/helpers - typeof";return jt=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},jt(e)}var O6=Symbol.for("react.element"),I6=Symbol.for("react.transitional.element"),R6=Symbol.for("react.fragment");function $R(e){return e&&jt(e)==="object"&&(e.$$typeof===O6||e.$$typeof===I6)&&e.type===R6}function Ma(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return xe.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Ma(r)):$R(r)&&r.props?n=n.concat(Ma(r.props.children,t)):n.push(r))}),n}var hy={},N6=function(t){};function M6(e,t){}function j6(e,t){}function T6(){hy={}}function _R(e,t,n){!t&&!hy[n]&&(e(!1,n),hy[n]=!0)}function Sr(e,t){_R(M6,e,t)}function D6(e,t){_R(j6,e,t)}Sr.preMessage=N6;Sr.resetWarned=T6;Sr.noteOnce=D6;function P6(e,t){if(jt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ER(e){var t=P6(e,"string");return jt(t)=="symbol"?t:t+""}function X(e,t,n){return(t=ER(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lE(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 ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lE(Object(n),!0).forEach(function(r){X(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Li=wR();const Jd=Wi(Li),k6=CR({__proto__:null,default:Jd},[Li]);function ef(e){return e instanceof HTMLElement||e instanceof SVGElement}function Of(e){return e&&jt(e)==="object"&&ef(e.nativeElement)?e.nativeElement:ef(e)?e:null}function Ph(e){var t=Of(e);if(t)return t;if(e instanceof xe.Component){var n;return(n=Jd.findDOMNode)===null||n===void 0?void 0:n.call(Jd,e)}return null}var Xb={exports:{}},ir={};/**
 * @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 sE;function A6(){if(sE)return ir;sE=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"),c=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"),v=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),S;S=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 c:case f:case g:case v:case o:return y;default:return w}}case t:return w}}}return ir.ContextConsumer=c,ir.ContextProvider=o,ir.Element=e,ir.ForwardRef=f,ir.Fragment=n,ir.Lazy=g,ir.Memo=v,ir.Portal=t,ir.Profiler=a,ir.StrictMode=r,ir.Suspense=d,ir.SuspenseList=h,ir.isAsyncMode=function(){return!1},ir.isConcurrentMode=function(){return!1},ir.isContextConsumer=function(y){return C(y)===c},ir.isContextProvider=function(y){return C(y)===o},ir.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},ir.isForwardRef=function(y){return C(y)===f},ir.isFragment=function(y){return C(y)===n},ir.isLazy=function(y){return C(y)===g},ir.isMemo=function(y){return C(y)===v},ir.isPortal=function(y){return C(y)===t},ir.isProfiler=function(y){return C(y)===a},ir.isStrictMode=function(y){return C(y)===r},ir.isSuspense=function(y){return C(y)===d},ir.isSuspenseList=function(y){return C(y)===h},ir.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===g||y.$$typeof===v||y.$$typeof===o||y.$$typeof===c||y.$$typeof===f||y.$$typeof===S||y.getModuleId!==void 0)},ir.typeOf=C,ir}var cE;function z6(){return cE||(cE=1,Xb.exports=A6()),Xb.exports}var Qb=z6();function Ts(e,t,n){var r=s.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var L6=Number(s.version.split(".")[0]),tf=function(t,n){typeof t=="function"?t(n):jt(t)==="object"&&t&&"current"in t&&(t.current=n)},_a=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(c){tf(c,o)})}},Fl=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ts(function(){return _a.apply(void 0,n)},n,function(a,o){return a.length!==o.length||a.every(function(c,u){return c!==o[u]})})},Hi=function(t){var n,r;if(!t)return!1;if(cx(t)&&L6>=19)return!0;var a=Qb.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==Qb.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Qb.ForwardRef)};function cx(e){return s.isValidElement(e)&&!$R(e)}var H6=function(t){return cx(t)&&Hi(t)},Vl=function(t){if(t&&cx(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},vy=s.createContext(null);function B6(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),a=s.useRef([]),o=s.useContext(vy),c=s.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?.(a.current),a.current=[])}),o?.(u,f,d)},[n,o]);return s.createElement(vy.Provider,{value:c},t)}var OR=(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 c=o[a];n.call(r,c[1],c[0])}},t})()})(),gy=typeof window<"u"&&typeof document<"u"&&window.document===document,sv=(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")()})(),F6=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(sv):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),V6=2;function K6(e,t){var n=!1,r=!1,a=0;function o(){n&&(n=!1,e()),r&&u()}function c(){F6(o)}function u(){var f=Date.now();if(n){if(f-a<V6)return;r=!0}else n=!0,r=!1,setTimeout(c,t);a=f}return u}var U6=20,W6=["top","right","bottom","left","width","height","size","weight"],q6=typeof MutationObserver<"u",Y6=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=K6(this.refresh.bind(this),U6)}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(){!gy||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),q6?(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(){!gy||!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=W6.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})(),IR=(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}),Qc=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||sv}),RR=kv(0,0,0,0);function cv(e){return parseFloat(e)||0}function uE(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+cv(o)},0)}function G6(e){for(var t=["top","right","bottom","left"],n={},r=0,a=t;r<a.length;r++){var o=a[r],c=e["padding-"+o];n[o]=cv(c)}return n}function X6(e){var t=e.getBBox();return kv(0,0,t.width,t.height)}function Q6(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return RR;var r=Qc(e).getComputedStyle(e),a=G6(r),o=a.left+a.right,c=a.top+a.bottom,u=cv(r.width),f=cv(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+o)!==t&&(u-=uE(r,"left","right")+o),Math.round(f+c)!==n&&(f-=uE(r,"top","bottom")+c)),!J6(e)){var d=Math.round(u+o)-t,h=Math.round(f+c)-n;Math.abs(d)!==1&&(u-=d),Math.abs(h)!==1&&(f-=h)}return kv(a.left,a.top,u,f)}var Z6=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Qc(e).SVGGraphicsElement}:function(e){return e instanceof Qc(e).SVGElement&&typeof e.getBBox=="function"}})();function J6(e){return e===Qc(e).document.documentElement}function ek(e){return gy?Z6(e)?X6(e):Q6(e):RR}function tk(e){var t=e.x,n=e.y,r=e.width,a=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,c=Object.create(o.prototype);return IR(c,{x:t,y:n,width:r,height:a,top:n,right:t+r,bottom:a+n,left:t}),c}function kv(e,t,n,r){return{x:e,y:t,width:n,height:r}}var nk=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=kv(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=ek(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})(),rk=(function(){function e(t,n){var r=tk(n);IR(this,{target:t,contentRect:r})}return e})(),ak=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new OR,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 Qc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new nk(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Qc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var 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 rk(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})(),NR=typeof WeakMap<"u"?new WeakMap:new OR,MR=(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=Y6.getInstance(),r=new ak(t,n,this);NR.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){MR.prototype[e]=function(){var t;return(t=NR.get(this))[e].apply(t,arguments)}});var ik=(function(){return typeof sv.ResizeObserver<"u"?sv.ResizeObserver:MR})(),jl=new Map;function ok(e){e.forEach(function(t){var n,r=t.target;(n=jl.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var jR=new ik(ok);function lk(e,t){jl.has(e)||(jl.set(e,new Set),jR.observe(e)),jl.get(e).add(t)}function sk(e,t){jl.has(e)&&(jl.get(e).delete(t),jl.get(e).size||(jR.unobserve(e),jl.delete(e)))}function xr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dE(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,ER(r.key),r)}}function Cr(e,t,n){return t&&dE(e.prototype,t),n&&dE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nf(e,t){return nf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},nf(e,t)}function oi(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&&nf(e,t)}function Es(e){return Es=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Es(e)}function Av(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Av=function(){return!!e})()}function xt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TR(e,t){if(t&&(jt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xt(e)}function Ei(e){var t=Av();return function(){var n,r=Es(e);if(t){var a=Es(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return TR(this,n)}}var ck=(function(e){oi(n,e);var t=Ei(n);function n(){return xr(this,n),t.apply(this,arguments)}return Cr(n,[{key:"render",value:function(){return this.props.children}}]),n})(s.Component);function uk(e,t){var n=e.children,r=e.disabled,a=s.useRef(null),o=s.useRef(null),c=s.useContext(vy),u=typeof n=="function",f=u?n(a):n,d=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!u&&s.isValidElement(f)&&Hi(f),v=h?Vl(f):null,g=Fl(v,a),b=function(){var w;return Ph(a.current)||(a.current&&jt(a.current)==="object"?Ph((w=a.current)===null||w===void 0?void 0:w.nativeElement):null)||Ph(o.current)};s.useImperativeHandle(t,function(){return b()});var S=s.useRef(e);S.current=e;var C=s.useCallback(function(y){var w=S.current,$=w.onResize,_=w.data,O=y.getBoundingClientRect(),I=O.width,j=O.height,M=y.offsetWidth,D=y.offsetHeight,N=Math.floor(I),P=Math.floor(j);if(d.current.width!==N||d.current.height!==P||d.current.offsetWidth!==M||d.current.offsetHeight!==D){var A={width:N,height:P,offsetWidth:M,offsetHeight:D};d.current=A;var F=M===Math.round(I)?I:M,H=D===Math.round(j)?j:D,k=ee(ee({},A),{},{offsetWidth:F,offsetHeight:H});c?.(k,y,_),$&&Promise.resolve().then(function(){$(k,y)})}},[]);return s.useEffect(function(){var y=b();return y&&!r&&lk(y,C),function(){return sk(y,C)}},[a.current,r]),s.createElement(ck,{ref:o},h?s.cloneElement(f,{ref:g}):f)}var dk=s.forwardRef(uk),fk="rc-observer-key";function mk(e,t){var n=e.children,r=typeof n=="function"?[n]:Ma(n);return r.map(function(a,o){var c=a?.key||"".concat(fk,"-").concat(o);return s.createElement(dk,Me({},e,{key:c,ref:o===0?t:void 0}),a)})}var xa=s.forwardRef(mk);xa.Collection=B6;function py(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 hk(e){if(Array.isArray(e))return py(e)}function DR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ux(e,t){if(e){if(typeof e=="string")return py(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)?py(e,t):void 0}}function vk(){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 ke(e){return hk(e)||DR(e)||ux(e)||vk()}var PR=function(t){return+setTimeout(t,16)},kR=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(PR=function(t){return window.requestAnimationFrame(t)},kR=function(t){return window.cancelAnimationFrame(t)});var fE=0,dx=new Map;function AR(e){dx.delete(e)}var mn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;fE+=1;var r=fE;function a(o){if(o===0)AR(r),t();else{var c=PR(function(){a(o-1)});dx.set(r,c)}}return a(n),r};mn.cancel=function(e){var t=dx.get(e);return AR(e),kR(t)};function zR(e){if(Array.isArray(e))return e}function gk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,c,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&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw a}}return u}}function LR(){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 ce(e,t){return zR(e)||gk(e,t)||ux(e,t)||LR()}function rf(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 Ca(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function pk(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 mE="data-rc-order",hE="data-rc-priority",bk="rc-util-key",by=new Map;function HR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):bk}function zv(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function yk(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function fx(e){return Array.from((by.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function BR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ca())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,c=yk(r),u=c==="prependQueue",f=document.createElement("style");f.setAttribute(mE,c),u&&o&&f.setAttribute(hE,"".concat(o)),n!=null&&n.nonce&&(f.nonce=n?.nonce),f.innerHTML=e;var d=zv(t),h=d.firstChild;if(r){if(u){var v=(t.styles||fx(d)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(mE)))return!1;var b=Number(g.getAttribute(hE)||0);return o>=b});if(v.length)return d.insertBefore(f,v[v.length-1].nextSibling),f}d.insertBefore(f,h)}else d.appendChild(f);return f}function FR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=zv(t);return(t.styles||fx(n)).find(function(r){return r.getAttribute(HR(t))===e})}function af(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=FR(e,t);if(n){var r=zv(t);r.removeChild(n)}}function Sk(e,t){var n=by.get(e);if(!n||!pk(document,n)){var r=BR("",t),a=r.parentNode;by.set(e,a),e.removeChild(r)}}function Bo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=zv(n),a=fx(r),o=ee(ee({},n),{},{styles:a});Sk(r,o);var c=FR(t,o);if(c){var u,f;if((u=o.csp)!==null&&u!==void 0&&u.nonce&&c.nonce!==((f=o.csp)===null||f===void 0?void 0:f.nonce)){var d;c.nonce=(d=o.csp)===null||d===void 0?void 0:d.nonce}return c.innerHTML!==e&&(c.innerHTML=e),c}var h=BR(e,o);return h.setAttribute(HR(o),t),h}function xk(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 Kt(e,t){if(e==null)return{};var n,r,a=xk(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 oo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(o,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=r.has(o);if(Sr(!f,"Warning: There may be circular references"),f)return!1;if(o===c)return!0;if(n&&u>1)return!1;r.add(o);var d=u+1;if(Array.isArray(o)){if(!Array.isArray(c)||o.length!==c.length)return!1;for(var h=0;h<o.length;h++)if(!a(o[h],c[h],d))return!1;return!0}if(o&&c&&jt(o)==="object"&&jt(c)==="object"){var v=Object.keys(o);return v.length!==Object.keys(c).length?!1:v.every(function(g){return a(o[g],c[g],d)})}return!1}return a(e,t)}var Ck="%";function yy(e){return e.join(Ck)}var wk=(function(){function e(t){xr(this,e),X(this,"instanceId",void 0),X(this,"cache",new Map),X(this,"extracted",new Set),this.instanceId=t}return Cr(e,[{key:"get",value:function(n){return this.opGet(yy(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(yy(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})(),Zc="data-token-hash",ki="data-css-hash",Tl="__cssinjs_instance__";function $k(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(ki,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(a){a[Tl]=a[Tl]||e,a[Tl]===e&&document.head.insertBefore(a,n)});var r={};Array.from(document.querySelectorAll("style[".concat(ki,"]"))).forEach(function(a){var o=a.getAttribute(ki);if(r[o]){if(a[Tl]===e){var c;(c=a.parentNode)===null||c===void 0||c.removeChild(a)}}else r[o]=!0})}return new wk(e)}var If=s.createContext({hashPriority:"low",cache:$k(),defaultCache:!0});function _k(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 mx=(function(){function e(){xr(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 Cr(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,c={map:this.cache};return n.forEach(function(u){if(!c)c=void 0;else{var f;c=(f=c)===null||f===void 0||(f=f.map)===null||f===void 0?void 0:f.get(u)}}),(r=c)!==null&&r!==void 0&&r.value&&o&&(c.value[1]=this.cacheCallTimes++),(a=c)===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 v=ce(d,2),g=v[1];return a.internalGet(h)[1]<g?[h,a.internalGet(h)[1]]:d},[this.keys[0],this.cacheCallTimes]),c=ce(o,1),u=c[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 v=f.get(d);v?v.map||(v.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 c=this.deleteByPath(a.map,r.slice(1));return(!a.map||a.map.size===0)&&!a.value&&n.delete(r[0]),c}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!_k(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();X(mx,"MAX_CACHE_SIZE",20);X(mx,"MAX_CACHE_OFFSET",5);var vE=0,VR=(function(){function e(t){xr(this,e),X(this,"derivatives",void 0),X(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=vE,t.length===0&&(t.length>0,void 0),vE+=1}return Cr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e})(),Zb=new mx;function Sy(e){var t=Array.isArray(e)?e:[e];return Zb.has(t)||Zb.set(t,new VR(t)),Zb.get(t)}var Ek=new WeakMap,Jb={};function Ok(e,t){for(var n=Ek,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(Jb)||n.set(Jb,e()),n.get(Jb)}var gE=new WeakMap;function Fd(e){var t=gE.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof VR?t+=r.id:r&&jt(r)==="object"?t+=Fd(r):t+=r}),t=rf(t),gE.set(e,t)),t}function pE(e,t){return rf("".concat(t,"_").concat(Fd(e)))}var xy=Ca();function te(e){return typeof e=="number"?"".concat(e,"px"):e}function uv(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=ee(ee({},r),{},X(X({},Zc,t),ki,n)),c=Object.keys(o).map(function(u){var f=o[u];return f?"".concat(u,'="').concat(f,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(c,">").concat(e,"</style>")}var kh=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()},Ik=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=ce(a,2),c=o[0],u=o[1];return"".concat(c,":").concat(u,";")}).join(""),"}"):""},KR=function(t,n,r){var a={},o={};return Object.entries(t).forEach(function(c){var u,f,d=ce(c,2),h=d[0],v=d[1];if(r!=null&&(u=r.preserve)!==null&&u!==void 0&&u[h])o[h]=v;else if((typeof v=="string"||typeof v=="number")&&!(r!=null&&(f=r.ignore)!==null&&f!==void 0&&f[h])){var g,b=kh(h,r?.prefix);a[b]=typeof v=="number"&&!(r!=null&&(g=r.unitless)!==null&&g!==void 0&&g[h])?"".concat(v,"px"):String(v),o[h]="var(".concat(b,")")}}),[o,Ik(a,n,{scope:r?.scope})]},bE=Ca()?s.useLayoutEffect:s.useEffect,dn=function(t,n){var r=s.useRef(!0);bE(function(){return t(r.current)},n),bE(function(){return r.current=!1,function(){r.current=!0}},[])},Cs=function(t,n){dn(function(r){if(!r)return t()},n)},Rk=ee({},Pv),yE=Rk.useInsertionEffect,Nk=function(t,n,r){s.useMemo(t,r),dn(function(){return n(!0)},r)},Mk=yE?function(e,t,n){return yE(function(){return e(),t()},n)}:Nk,jk=ee({},Pv),Tk=jk.useInsertionEffect,Dk=function(t){var n=[],r=!1;function a(o){r||n.push(o)}return s.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),a},Pk=function(){return function(t){t()}},kk=typeof Tk<"u"?Dk:Pk;function hx(e,t,n,r,a){var o=s.useContext(If),c=o.cache,u=[e].concat(ke(t)),f=yy(u),d=kk([f]),h=function(S){c.opUpdate(f,function(C){var y=C||[void 0,void 0],w=ce(y,2),$=w[0],_=$===void 0?0:$,O=w[1],I=O,j=I||n(),M=[_,j];return S?S(M):M})};s.useMemo(function(){h()},[f]);var v=c.opGet(f),g=v[1];return Mk(function(){a?.(g)},function(b){return h(function(S){var C=ce(S,2),y=C[0],w=C[1];return b&&y===0&&a?.(g),[y+1,w]}),function(){c.opUpdate(f,function(S){var C=S||[],y=ce(C,2),w=y[0],$=w===void 0?0:w,_=y[1],O=$-1;return O===0?(d(function(){(b||!c.opGet(f))&&r?.(_,!1)}),null):[$-1,_]})}},[f]),g}var Ak={},zk="css",gs=new Map;function Lk(e){gs.set(e,(gs.get(e)||0)+1)}function Hk(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Zc,'="').concat(e,'"]'));n.forEach(function(r){if(r[Tl]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var Bk=0;function Fk(e,t){gs.set(e,(gs.get(e)||0)-1);var n=new Set;gs.forEach(function(r,a){r<=0&&n.add(a)}),gs.size-n.size>Bk&&n.forEach(function(r){Hk(r,t),gs.delete(r)})}var Vk=function(t,n,r,a){var o=r.getDerivativeToken(t),c=ee(ee({},o),n);return a&&(c=a(c)),c},UR="token";function Kk(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=s.useContext(If),a=r.cache.instanceId,o=r.container,c=n.salt,u=c===void 0?"":c,f=n.override,d=f===void 0?Ak:f,h=n.formatToken,v=n.getComputedToken,g=n.cssVar,b=Ok(function(){return Object.assign.apply(Object,[{}].concat(ke(t)))},t),S=Fd(b),C=Fd(d),y=g?Fd(g):"",w=hx(UR,[u,e.id,S,C,y],function(){var $,_=v?v(b,d,e):Vk(b,d,e,h),O=ee({},_),I="";if(g){var j=KR(_,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),M=ce(j,2);_=M[0],I=M[1]}var D=pE(_,u);_._tokenKey=D,O._tokenKey=pE(O,u);var N=($=g?.key)!==null&&$!==void 0?$:D;_._themeKey=N,Lk(N);var P="".concat(zk,"-").concat(rf(D));return _._hashId=P,[_,P,O,I,g?.key||""]},function($){Fk($[0]._themeKey,a)},function($){var _=ce($,4),O=_[0],I=_[3];if(g&&I){var j=Bo(I,rf("css-variables-".concat(O._themeKey)),{mark:ki,prepend:"queue",attachTo:o,priority:-999});j[Tl]=a,j.setAttribute(Zc,O._themeKey)}});return w}var Uk=function(t,n,r){var a=ce(t,5),o=a[2],c=a[3],u=a[4],f=r||{},d=f.plain;if(!c)return null;var h=o._tokenKey,v=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)},b=uv(c,u,h,g,d);return[v,h,b]},Wk={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},WR="comm",qR="rule",YR="decl",qk="@import",Yk="@namespace",Gk="@keyframes",Xk="@layer",GR=Math.abs,vx=String.fromCharCode;function XR(e){return e.trim()}function Ah(e,t,n){return e.replace(t,n)}function Qk(e,t,n){return e.indexOf(t,n)}function Fc(e,t){return e.charCodeAt(t)|0}function Jc(e,t,n){return e.slice(t,n)}function ao(e){return e.length}function Zk(e){return e.length}function ih(e,t){return t.push(e),e}var Lv=1,eu=1,QR=0,$i=0,ea=0,iu="";function gx(e,t,n,r,a,o,c,u){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:Lv,column:eu,length:c,return:"",siblings:u}}function Jk(){return ea}function eA(){return ea=$i>0?Fc(iu,--$i):0,eu--,ea===10&&(eu=1,Lv--),ea}function Ai(){return ea=$i<QR?Fc(iu,$i++):0,eu++,ea===10&&(eu=1,Lv++),ea}function Dl(){return Fc(iu,$i)}function zh(){return $i}function Hv(e,t){return Jc(iu,e,t)}function of(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 tA(e){return Lv=eu=1,QR=ao(iu=e),$i=0,[]}function nA(e){return iu="",e}function e0(e){return XR(Hv($i-1,Cy(e===91?e+2:e===40?e+1:e)))}function rA(e){for(;(ea=Dl())&&ea<33;)Ai();return of(e)>2||of(ea)>3?"":" "}function aA(e,t){for(;--t&&Ai()&&!(ea<48||ea>102||ea>57&&ea<65||ea>70&&ea<97););return Hv(e,zh()+(t<6&&Dl()==32&&Ai()==32))}function Cy(e){for(;Ai();)switch(ea){case e:return $i;case 34:case 39:e!==34&&e!==39&&Cy(ea);break;case 40:e===41&&Cy(e);break;case 92:Ai();break}return $i}function iA(e,t){for(;Ai()&&e+ea!==57;)if(e+ea===84&&Dl()===47)break;return"/*"+Hv(t,$i-1)+"*"+vx(e===47?e:Ai())}function oA(e){for(;!of(Dl());)Ai();return Hv(e,$i)}function lA(e){return nA(Lh("",null,null,null,[""],e=tA(e),0,[0],e))}function Lh(e,t,n,r,a,o,c,u,f){for(var d=0,h=0,v=c,g=0,b=0,S=0,C=1,y=1,w=1,$=0,_="",O=a,I=o,j=r,M=_;y;)switch(S=$,$=Ai()){case 40:if(S!=108&&Fc(M,v-1)==58){Qk(M+=Ah(e0($),"&","&\f"),"&\f",GR(d?u[d-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:M+=e0($);break;case 9:case 10:case 13:case 32:M+=rA(S);break;case 92:M+=aA(zh()-1,7);continue;case 47:switch(Dl()){case 42:case 47:ih(sA(iA(Ai(),zh()),t,n,f),f),(of(S||1)==5||of(Dl()||1)==5)&&ao(M)&&Jc(M,-1,void 0)!==" "&&(M+=" ");break;default:M+="/"}break;case 123*C:u[d++]=ao(M)*w;case 125*C:case 59:case 0:switch($){case 0:case 125:y=0;case 59+h:w==-1&&(M=Ah(M,/\f/g,"")),b>0&&(ao(M)-v||C===0&&S===47)&&ih(b>32?xE(M+";",r,n,v-1,f):xE(Ah(M," ","")+";",r,n,v-2,f),f);break;case 59:M+=";";default:if(ih(j=SE(M,t,n,d,h,a,u,_,O=[],I=[],v,o),o),$===123)if(h===0)Lh(M,t,j,j,O,o,v,u,I);else{switch(g){case 99:if(Fc(M,3)===110)break;case 108:if(Fc(M,2)===97)break;default:h=0;case 100:case 109:case 115:}h?Lh(e,j,j,r&&ih(SE(e,j,j,0,0,a,u,_,a,O=[],v,I),I),a,I,v,u,r?O:I):Lh(M,j,j,j,[""],I,0,u,I)}}d=h=b=0,C=w=1,_=M="",v=c;break;case 58:v=1+ao(M),b=S;default:if(C<1){if($==123)--C;else if($==125&&C++==0&&eA()==125)continue}switch(M+=vx($),$*C){case 38:w=h>0?1:(M+="\f",-1);break;case 44:u[d++]=(ao(M)-1)*w,w=1;break;case 64:Dl()===45&&(M+=e0(Ai())),g=Dl(),h=v=ao(_=M+=oA(zh())),$++;break;case 45:S===45&&ao(M)==2&&(C=0)}}return o}function SE(e,t,n,r,a,o,c,u,f,d,h,v){for(var g=a-1,b=a===0?o:[""],S=Zk(b),C=0,y=0,w=0;C<r;++C)for(var $=0,_=Jc(e,g+1,g=GR(y=c[C])),O=e;$<S;++$)(O=XR(y>0?b[$]+" "+_:Ah(_,/&\f/g,b[$])))&&(f[w++]=O);return gx(e,t,n,a===0?qR:u,f,d,h,v)}function sA(e,t,n,r){return gx(e,t,n,WR,vx(Jk()),Jc(e,2,-2),0,r)}function xE(e,t,n,r,a){return gx(e,t,n,YR,Jc(e,0,r),Jc(e,r+1,-1),r,a)}function wy(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function cA(e,t,n,r){switch(e.type){case Xk:if(e.children.length)break;case qk:case Yk:case YR:return e.return=e.return||e.value;case WR:return"";case Gk:return e.return=e.value+"{"+wy(e.children,r)+"}";case qR:if(!ao(e.value=e.props.join(",")))return""}return ao(n=wy(e.children,r))?e.return=e.value+"{"+n+"}":""}var CE="data-ant-cssinjs-cache-path",ZR="_FILE_STYLE__",ws,JR=!0;function uA(){if(!ws&&(ws={},Ca())){var e=document.createElement("div");e.className=CE,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(":"),c=ce(o,2),u=c[0],f=c[1];ws[u]=f});var n=document.querySelector("style[".concat(CE,"]"));if(n){var r;JR=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function dA(e){return uA(),!!ws[e]}function fA(e){var t=ws[e],n=null;if(t&&Ca())if(JR)n=ZR;else{var r=document.querySelector("style[".concat(ki,'="').concat(ws[e],'"]'));r?n=r.innerHTML:delete ws[e]}return[n,t]}var mA="_skip_check_",eN="_multi_value_";function Hh(e){var t=wy(lA(e),cA);return t.replace(/\{%%%\:[^;];}/g,";")}function hA(e){return jt(e)==="object"&&e&&(mA in e||eN in e)}function wE(e,t,n){if(!t)return e;var r=".".concat(t),a=n==="low"?":where(".concat(r,")"):r,o=e.split(",").map(function(c){var u,f=c.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(ke(f.slice(1))).join(" ")});return o.join(",")}var vA=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,c=r.parentSelectors,u=n.hashId,f=n.layer;n.path;var d=n.hashPriority,h=n.transformers,v=h===void 0?[]:h;n.linters;var g="",b={};function S(w){var $=w.getName(u);if(!b[$]){var _=e(w.style,n,{root:!1,parentSelectors:c}),O=ce(_,1),I=O[0];b[$]="@keyframes ".concat(w.getName(u)).concat(I)}}function C(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return w.forEach(function(_){Array.isArray(_)?C(_,$):_&&$.push(_)}),$}var y=C(Array.isArray(t)?t:[t]);return y.forEach(function(w){var $=typeof w=="string"&&!a?{}:w;if(typeof $=="string")g+="".concat($,`
`);else if($._keyframe)S($);else{var _=v.reduce(function(O,I){var j;return(I==null||(j=I.visit)===null||j===void 0?void 0:j.call(I,O))||O},$);Object.keys(_).forEach(function(O){var I=_[O];if(jt(I)==="object"&&I&&(O!=="animationName"||!I._keyframe)&&!hA(I)){var j=!1,M=O.trim(),D=!1;(a||o)&&u?M.startsWith("@")?j=!0:M==="&"?M=wE("",u,d):M=wE(O,u,d):a&&!u&&(M==="&"||M==="")&&(M="",D=!0);var N=e(I,n,{root:D,injectHash:j,parentSelectors:[].concat(ke(c),[M])}),P=ce(N,2),A=P[0],F=P[1];b=ee(ee({},b),F),g+="".concat(M).concat(A)}else{let L=function(T,z){var V=T.replace(/[A-Z]/g,function(G){return"-".concat(G.toLowerCase())}),q=z;!Wk[T]&&typeof q=="number"&&q!==0&&(q="".concat(q,"px")),T==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(S(z),q=z.getName(u)),g+="".concat(V,":").concat(q,";")};var H,k=(H=I?.value)!==null&&H!==void 0?H:I;jt(I)==="object"&&I!==null&&I!==void 0&&I[eN]&&Array.isArray(k)?k.forEach(function(T){L(O,T)}):L(O,k)}})}}),a?f&&(g&&(g="@layer ".concat(f.name," {").concat(g,"}")),f.dependencies&&(b["@layer ".concat(f.name)]=f.dependencies.map(function(w){return"@layer ".concat(w,", ").concat(f.name,";")}).join(`
`))):g="{".concat(g,"}"),[g,b]};function tN(e,t){return rf("".concat(e.join("%")).concat(t))}function gA(){return null}var nN="style";function $y(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,c=e.nonce,u=e.clientOnly,f=e.order,d=f===void 0?0:f,h=s.useContext(If),v=h.autoClear;h.mock;var g=h.defaultCache,b=h.hashPriority,S=h.container,C=h.ssrInline,y=h.transformers,w=h.linters,$=h.cache,_=h.layer,O=n._tokenKey,I=[O];_&&I.push("layer"),I.push.apply(I,ke(r));var j=xy,M=hx(nN,I,function(){var F=I.join("|");if(dA(F)){var H=fA(F),k=ce(H,2),L=k[0],T=k[1];if(L)return[L,O,T,{},u,d]}var z=t(),V=vA(z,{hashId:a,hashPriority:b,layer:_?o:void 0,path:r.join("-"),transformers:y,linters:w}),q=ce(V,2),G=q[0],B=q[1],U=Hh(G),K=tN(I,U);return[U,O,K,B,u,d]},function(F,H){var k=ce(F,3),L=k[2];(H||v)&&xy&&af(L,{mark:ki,attachTo:S})},function(F){var H=ce(F,4),k=H[0];H[1];var L=H[2],T=H[3];if(j&&k!==ZR){var z={mark:ki,prepend:_?!1:"queue",attachTo:S,priority:d},V=typeof c=="function"?c():c;V&&(z.csp={nonce:V});var q=[],G=[];Object.keys(T).forEach(function(U){U.startsWith("@layer")?q.push(U):G.push(U)}),q.forEach(function(U){Bo(Hh(T[U]),"_layer-".concat(U),ee(ee({},z),{},{prepend:!0}))});var B=Bo(k,L,z);B[Tl]=$.instanceId,B.setAttribute(Zc,O),G.forEach(function(U){Bo(Hh(T[U]),"_effect-".concat(U),z)})}}),D=ce(M,3),N=D[0],P=D[1],A=D[2];return function(F){var H;return!C||j||!g?H=s.createElement(gA,null):H=s.createElement("style",Me({},X(X({},Zc,P),ki,A),{dangerouslySetInnerHTML:{__html:N}})),s.createElement(s.Fragment,null,H,F)}}var pA=function(t,n,r){var a=ce(t,6),o=a[0],c=a[1],u=a[2],f=a[3],d=a[4],h=a[5],v=r||{},g=v.plain;if(d)return null;var b=o,S={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)};return b=uv(o,c,u,S,g),f&&Object.keys(f).forEach(function(C){if(!n[C]){n[C]=!0;var y=Hh(f[C]),w=uv(y,c,"_effect-".concat(C),S,g);C.startsWith("@layer")?b=w+b:b+=w}}),[h,u,b]},rN="cssVar",bA=function(t,n){var r=t.key,a=t.prefix,o=t.unitless,c=t.ignore,u=t.token,f=t.scope,d=f===void 0?"":f,h=s.useContext(If),v=h.cache.instanceId,g=h.container,b=u._tokenKey,S=[].concat(ke(t.path),[r,d,b]),C=hx(rN,S,function(){var y=n(),w=KR(y,r,{prefix:a,unitless:o,ignore:c,scope:d}),$=ce(w,2),_=$[0],O=$[1],I=tN(S,O);return[_,O,I,r]},function(y){var w=ce(y,3),$=w[2];xy&&af($,{mark:ki,attachTo:g})},function(y){var w=ce(y,3),$=w[1],_=w[2];if($){var O=Bo($,_,{mark:ki,prepend:"queue",attachTo:g,priority:-999});O[Tl]=v,O.setAttribute(Zc,r)}});return C},yA=function(t,n,r){var a=ce(t,4),o=a[1],c=a[2],u=a[3],f=r||{},d=f.plain;if(!o)return null;var h=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)},g=uv(o,u,c,v,d);return[h,c,g]};X(X(X({},nN,pA),UR,Uk),rN,yA);var jn=(function(){function e(t,n){xr(this,e),X(this,"name",void 0),X(this,"style",void 0),X(this,"_keyframe",!0),this.name=t,this.style=n}return Cr(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 xc(e){return e.notSplit=!0,e}xc(["borderTop","borderBottom"]),xc(["borderTop"]),xc(["borderBottom"]),xc(["borderLeft","borderRight"]),xc(["borderLeft"]),xc(["borderRight"]);var px=s.createContext({});function aN(e){return zR(e)||DR(e)||ux(e)||LR()}function Aa(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function iN(e,t,n,r){if(!t.length)return n;var a=aN(t),o=a[0],c=a.slice(1),u;return!e&&typeof o=="number"?u=[]:Array.isArray(e)?u=ke(e):u=ee({},e),r&&n===void 0&&c.length===1?delete u[o][c[0]]:u[o]=iN(u[o],c,n,r),u}function Si(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Aa(e,t.slice(0,-1))?e:iN(e,t,n,r)}function SA(e){return jt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function $E(e){return Array.isArray(e)?[]:{}}var xA=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function kc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=$E(t[0]);return t.forEach(function(a){function o(c,u){var f=new Set(u),d=Aa(a,c),h=Array.isArray(d);if(h||SA(d)){if(!f.has(d)){f.add(d);var v=Aa(r,c);h?r=Si(r,c,[]):(!v||jt(v)!=="object")&&(r=Si(r,c,$E(d))),xA(d).forEach(function(g){o([].concat(ke(c),[g]),f)})}}else r=Si(r,c,d)}o([])}),r}function CA(){}const wA=s.createContext({}),Kl=()=>{const e=()=>{};return e.deprecated=CA,e},oN=s.createContext(void 0);var lN={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"},$A={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},_A=ee(ee({},$A),{},{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 sN={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},dv={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"]},_A),timePickerLocale:Object.assign({},sN)},ti="${label} is not a valid ${type}",lo={locale:"en",Pagination:lN,DatePicker:dv,TimePicker:sN,Calendar:dv,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:ti,method:ti,array:ti,object:ti,number:ti,date:ti,boolean:ti,integer:ti,float:ti,regexp:ti,email:ti,url:ti,hex:ti},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({},lo.Modal);let Bh=[];const _E=()=>Bh.reduce((e,t)=>Object.assign(Object.assign({},e),t),lo.Modal);function EA(e){if(e){const t=Object.assign({},e);return Bh.push(t),_E(),()=>{Bh=Bh.filter(n=>n!==t),_E()}}Object.assign({},lo.Modal)}const bx=s.createContext(void 0),ho=(e,t)=>{const n=s.useContext(bx),r=s.useMemo(()=>{var o;const c=t||lo[e],u=(o=n?.[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof c=="function"?c():c),u||{})},[e,t,n]),a=s.useMemo(()=>{const o=n?.locale;return n?.exist&&!o?lo.locale:o},[n]);return[r,a]},OA="internalMark",IA=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;s.useEffect(()=>EA(t?.Modal),[t]);const a=s.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return s.createElement(bx.Provider,{value:a},n)},cN={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"},lf=Object.assign(Object.assign({},cN),{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}),ua=Math.round;function t0(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 EE=(e,t,n)=>n===0?e:e/100;function bd(e,t){const n=t||255;return e>n?n:e<0?0:e}let Tn=class uN{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 uN)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=bd(t.r),this.g=bd(t.g),this.b=bd(t.b),this.a=typeof t.a=="number"?bd(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 c=o/255;return c<=.03928?c/12.92:Math.pow((c+.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=ua(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],c={r:ua(o("r")),g:ua(o("g")),b:ua(o("b")),a:ua(o("a")*100)/100};return this._c(c)}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=>ua((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=ua(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=ua(this.getSaturation()*100),r=ua(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]=bd(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 g=ua(r*255);this.r=g,this.g=g,this.b=g}let o=0,c=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,c=h):f>=1&&f<2?(o=h,c=d):f>=2&&f<3?(c=d,u=h):f>=3&&f<4?(c=h,u=d):f>=4&&f<5?(o=h,u=d):f>=5&&f<6&&(o=d,u=h);const v=r-d/2;this.r=ua((o+v)*255),this.g=ua((c+v)*255),this.b=ua((u+v)*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=ua(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const c=t/60,u=Math.floor(c),f=c-u,d=ua(r*(1-n)*255),h=ua(r*(1-n*f)*255),v=ua(r*(1-n*(1-f))*255);switch(u){case 0:this.g=v,this.b=d;break;case 1:this.r=h,this.b=d;break;case 2:this.r=d,this.b=v;break;case 3:this.r=d,this.g=h;break;case 4:this.r=v,this.g=d;break;case 5:default:this.g=d,this.b=h;break}}fromHsvString(t){const n=t0(t,EE);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=t0(t,EE);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=t0(t,(r,a)=>a.includes("%")?ua(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}};var oh=2,OE=.16,RA=.05,NA=.05,MA=.15,dN=5,fN=4,jA=[{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 IE(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-oh*t:Math.round(e.h)+oh*t:r=n?Math.round(e.h)+oh*t:Math.round(e.h)-oh*t,r<0?r+=360:r>=360&&(r-=360),r}function RE(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-OE*t:t===fN?r=e.s+OE:r=e.s+RA*t,r>1&&(r=1),n&&t===dN&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function NE(e,t,n){var r;return n?r=e.v+NA*t:r=e.v-MA*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function sf(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Tn(e),a=r.toHsv(),o=dN;o>0;o-=1){var c=new Tn({h:IE(a,o,!0),s:RE(a,o,!0),v:NE(a,o,!0)});n.push(c)}n.push(r);for(var u=1;u<=fN;u+=1){var f=new Tn({h:IE(a,u),s:RE(a,u),v:NE(a,u)});n.push(f)}return t.theme==="dark"?jA.map(function(d){var h=d.index,v=d.amount;return new Tn(t.backgroundColor||"#141414").mix(n[h],v).toHexString()}):n.map(function(d){return d.toHexString()})}var Vc={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"},_y=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];_y.primary=_y[5];var Ey=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Ey.primary=Ey[5];var Oy=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Oy.primary=Oy[5];var fv=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];fv.primary=fv[5];var Iy=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Iy.primary=Iy[5];var Ry=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ry.primary=Ry[5];var Ny=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ny.primary=Ny[5];var My=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];My.primary=My[5];var tu=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];tu.primary=tu[5];var jy=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];jy.primary=jy[5];var Ty=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ty.primary=Ty[5];var Dy=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Dy.primary=Dy[5];var Py=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Py.primary=Py[5];var n0={red:_y,volcano:Ey,orange:Oy,gold:fv,yellow:Iy,lime:Ry,green:Ny,cyan:My,blue:tu,geekblue:jy,purple:Ty,magenta:Dy,grey:Py};function TA(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:o,colorInfo:c,colorPrimary:u,colorBgBase:f,colorTextBase:d}=e,h=t(u),v=t(r),g=t(a),b=t(o),S=t(c),C=n(f,d),y=e.colorLink||e.colorInfo,w=t(y),$=new Tn(b[1]).mix(new Tn(b[3]),50).toHexString();return Object.assign(Object.assign({},C),{colorPrimaryBg:h[1],colorPrimaryBgHover:h[2],colorPrimaryBorder:h[3],colorPrimaryBorderHover:h[4],colorPrimaryHover:h[5],colorPrimary:h[6],colorPrimaryActive:h[7],colorPrimaryTextHover:h[8],colorPrimaryText:h[9],colorPrimaryTextActive:h[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:b[1],colorErrorBgHover:b[2],colorErrorBgFilledHover:$,colorErrorBgActive:b[3],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:S[1],colorInfoBgHover:S[2],colorInfoBorder:S[3],colorInfoBorderHover:S[4],colorInfoHover:S[4],colorInfo:S[6],colorInfoActive:S[7],colorInfoTextHover:S[8],colorInfoText:S[9],colorInfoTextActive:S[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new Tn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const DA=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 PA(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},DA(r))}const kA=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Fh(e){return(e+8)/e}function AA(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,o=e*Math.pow(Math.E,a/5),c=r>1?Math.floor(o):Math.ceil(o);return Math.floor(c/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Fh(n)}))}const zA=e=>{const t=AA(e),n=t.map(h=>h.size),r=t.map(h=>h.lineHeight),a=n[1],o=n[0],c=n[2],u=r[1],f=r[0],d=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:c,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*c),fontHeightSM:Math.round(f*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function LA(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 gi=(e,t)=>new Tn(e).setA(t).toRgbString(),yd=(e,t)=>new Tn(e).darken(t).toHexString(),HA=e=>{const t=sf(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]}},BA=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:gi(r,.88),colorTextSecondary:gi(r,.65),colorTextTertiary:gi(r,.45),colorTextQuaternary:gi(r,.25),colorFill:gi(r,.15),colorFillSecondary:gi(r,.06),colorFillTertiary:gi(r,.04),colorFillQuaternary:gi(r,.02),colorBgSolid:gi(r,1),colorBgSolidHover:gi(r,.75),colorBgSolidActive:gi(r,.95),colorBgLayout:yd(n,4),colorBgContainer:yd(n,0),colorBgElevated:yd(n,0),colorBgSpotlight:gi(r,.85),colorBgBlur:"transparent",colorBorder:yd(n,15),colorBorderSecondary:yd(n,6)}};function FA(e){Vc.pink=Vc.magenta,n0.pink=n0.magenta;const t=Object.keys(cN).map(n=>{const r=e[n]===Vc[n]?n0[n]:sf(e[n]);return Array.from({length:10},()=>1).reduce((a,o,c)=>(a[`${n}-${c+1}`]=r[c],a[`${n}${c+1}`]=r[c],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),TA(e,{generateColorPalettes:HA,generateNeutralColorPalettes:BA})),zA(e.fontSize)),LA(e)),kA(e)),PA(e))}const mN=Sy(FA),cf={token:lf,override:{override:lf},hashed:!0},hN=xe.createContext(cf),uf="ant",Bv="anticon",VA=["outlined","borderless","filled","underlined"],KA=(e,t)=>t||(e?`${uf}-${e}`:uf),Ut=s.createContext({getPrefixCls:KA,iconPrefixCls:Bv}),{Consumer:Mue}=Ut,ME={};function va(e){const t=s.useContext(Ut),{getPrefixCls:n,direction:r,getPopupContainer:a}=t,o=t[e];return Object.assign(Object.assign({classNames:ME,styles:ME},o),{getPrefixCls:n,direction:r,getPopupContainer:a})}const UA=`-ant-${Date.now()}-${Math.random()}`;function WA(e,t){const n={},r=(c,u)=>{let f=c.clone();return f=u?.(f)||f,f.toRgbString()},a=(c,u)=>{const f=new Tn(c),d=sf(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 c=new Tn(t.primaryColor),u=sf(c.toRgbString());u.forEach((d,h)=>{n[`primary-${h+1}`]=d}),n["primary-color-deprecated-l-35"]=r(c,d=>d.lighten(35)),n["primary-color-deprecated-l-20"]=r(c,d=>d.lighten(20)),n["primary-color-deprecated-t-20"]=r(c,d=>d.tint(20)),n["primary-color-deprecated-t-50"]=r(c,d=>d.tint(50)),n["primary-color-deprecated-f-12"]=r(c,d=>d.setA(d.a*.12));const f=new Tn(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(c=>`--${e}-${c}: ${n[c]};`).join(`
`)}
  }
  `.trim()}function qA(e,t){const n=WA(e,t);Ca()&&Bo(n,`${UA}-dynamic-theme`)}const ja=s.createContext(!1),vN=({children:e,disabled:t})=>{const n=s.useContext(ja);return s.createElement(ja.Provider,{value:t??n},e)},Os=s.createContext(void 0),YA=({children:e,size:t})=>{const n=s.useContext(Os);return s.createElement(Os.Provider,{value:t||n},e)};function GA(){const e=s.useContext(ja),t=s.useContext(Os);return{componentDisabled:e,componentSize:t}}var gN=Cr(function e(){xr(this,e)}),pN="CALC_UNIT",XA=new RegExp(pN,"g");function r0(e){return typeof e=="number"?"".concat(e).concat(pN):e}var QA=(function(e){oi(n,e);var t=Ei(n);function n(r,a){var o;xr(this,n),o=t.call(this),X(xt(o),"result",""),X(xt(o),"unitlessCssVar",void 0),X(xt(o),"lowPriority",void 0);var c=jt(r);return o.unitlessCssVar=a,r instanceof n?o.result="(".concat(r.result,")"):c==="number"?o.result=r0(r):c==="string"&&(o.result=r),o}return Cr(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(r0(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(r0(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,c=a||{},u=c.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(XA,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(gN),ZA=(function(e){oi(n,e);var t=Ei(n);function n(r){var a;return xr(this,n),a=t.call(this),X(xt(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return Cr(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})(gN),JA=function(t,n){var r=t==="css"?QA:ZA;return function(a){return new r(a,n)}},jE=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=s.useRef();t.current=e;var n=s.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),c=0;c<a;c++)o[c]=arguments[c];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return n}function nu(e){var t=s.useRef(!1),n=s.useState(e),r=ce(n,2),a=r[0],o=r[1];s.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function c(u,f){f&&t.current||o(u)}return[a,c]}function a0(e){return e!==void 0}function Wn(e,t){var n=t||{},r=n.defaultValue,a=n.value,o=n.onChange,c=n.postState,u=nu(function(){return a0(a)?a:a0(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),f=ce(u,2),d=f[0],h=f[1],v=a!==void 0?a:d,g=c?c(v):v,b=pn(o),S=nu([v]),C=ce(S,2),y=C[0],w=C[1];Cs(function(){var _=y[0];d!==_&&b(d,_)},[y]),Cs(function(){a0(a)||h(a)},[a]);var $=pn(function(_,O){h(_,O),w([v],O)});return[g,$]}function TE(e,t,n,r){var a=ee({},t[e]);if(r!=null&&r.deprecatedTokens){var o=r.deprecatedTokens;o.forEach(function(u){var f=ce(u,2),d=f[0],h=f[1];if(a!=null&&a[d]||a!=null&&a[h]){var v;(v=a[h])!==null&&v!==void 0||(a[h]=a?.[d])}})}var c=ee(ee({},n),a);return Object.keys(c).forEach(function(u){c[u]===t[u]&&delete c[u]}),c}var bN=typeof CSSINJS_STATISTIC<"u",ky=!0;function Sn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!bN)return Object.assign.apply(Object,[{}].concat(t));ky=!1;var r={};return t.forEach(function(a){if(jt(a)==="object"){var o=Object.keys(a);o.forEach(function(c){Object.defineProperty(r,c,{configurable:!0,enumerable:!0,get:function(){return a[c]}})})}}),ky=!0,r}var DE={};function ez(){}var tz=function(t){var n,r=t,a=ez;return bN&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(c,u){if(ky){var f;(f=n)===null||f===void 0||f.add(u)}return c[u]}}),a=function(c,u){var f;DE[c]={global:Array.from(n),component:ee(ee({},(f=DE[c])===null||f===void 0?void 0:f.component),u)}}),{token:r,keys:n,flush:a}};function PE(e,t,n){if(typeof n=="function"){var r;return n(Sn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function nz(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 te(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 te(o)}).join(","),")")}}}var rz=1e3*60*10,az=(function(){function e(){xr(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 Cr(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&&jt(o)==="object"?"obj_".concat(r.getObjectID(o)):"".concat(jt(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>rz&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),kE=new az;function iz(e,t){return xe.useMemo(function(){var n=kE.get(t);if(n)return n;var r=e();return kE.set(t,r),r},t)}var oz=function(){return{}};function lz(e){var t=e.useCSP,n=t===void 0?oz:t,r=e.useToken,a=e.usePrefix,o=e.getResetStyles,c=e.getCommonStyle,u=e.getCompUnitless;function f(g,b,S,C){var y=Array.isArray(g)?g[0]:g;function w(D){return"".concat(String(y)).concat(D.slice(0,1).toUpperCase()).concat(D.slice(1))}var $=C?.unitless||{},_=typeof u=="function"?u(g):{},O=ee(ee({},_),{},X({},w("zIndexPopup"),!0));Object.keys($).forEach(function(D){O[w(D)]=$[D]});var I=ee(ee({},C),{},{unitless:O,prefixToken:w}),j=h(g,b,S,I),M=d(y,S,I);return function(D){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D,P=j(D,N),A=ce(P,2),F=A[1],H=M(N),k=ce(H,2),L=k[0],T=k[1];return[L,F,T]}}function d(g,b,S){var C=S.unitless,y=S.injectStyle,w=y===void 0?!0:y,$=S.prefixToken,_=S.ignore,O=function(M){var D=M.rootCls,N=M.cssVar,P=N===void 0?{}:N,A=r(),F=A.realToken;return bA({path:[g],prefix:P.prefix,key:P.key,unitless:C,ignore:_,token:F,scope:D},function(){var H=PE(g,F,b),k=TE(g,F,H,{deprecatedTokens:S?.deprecatedTokens});return Object.keys(H).forEach(function(L){k[$(L)]=k[L],delete k[L]}),k}),null},I=function(M){var D=r(),N=D.cssVar;return[function(P){return w&&N?xe.createElement(xe.Fragment,null,xe.createElement(O,{rootCls:M,cssVar:N,component:g}),P):P},N?.key]};return I}function h(g,b,S){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(g)?g:[g,g],w=ce(y,1),$=w[0],_=y.join("-"),O=e.layer||{name:"antd"};return function(I){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,M=r(),D=M.theme,N=M.realToken,P=M.hashId,A=M.token,F=M.cssVar,H=a(),k=H.rootPrefixCls,L=H.iconPrefixCls,T=n(),z=F?"css":"js",V=iz(function(){var Y=new Set;return F&&Object.keys(C.unitless||{}).forEach(function(Q){Y.add(kh(Q,F.prefix)),Y.add(kh(Q,jE($,F.prefix)))}),JA(z,Y)},[z,$,F?.prefix]),q=nz(z),G=q.max,B=q.min,U={theme:D,token:A,hashId:P,nonce:function(){return T.nonce},clientOnly:C.clientOnly,layer:O,order:C.order||-999};typeof o=="function"&&$y(ee(ee({},U),{},{clientOnly:!1,path:["Shared",k]}),function(){return o(A,{prefix:{rootPrefixCls:k,iconPrefixCls:L},csp:T})});var K=$y(ee(ee({},U),{},{path:[_,I,L]}),function(){if(C.injectStyle===!1)return[];var Y=tz(A),Q=Y.token,Z=Y.flush,ae=PE($,N,S),re=".".concat(I),ie=TE($,N,ae,{deprecatedTokens:C.deprecatedTokens});F&&ae&&jt(ae)==="object"&&Object.keys(ae).forEach(function(he){ae[he]="var(".concat(kh(he,jE($,F.prefix)),")")});var ve=Sn(Q,{componentCls:re,prefixCls:I,iconCls:".".concat(L),antCls:".".concat(k),calc:V,max:G,min:B},F?ae:ie),ue=b(ve,{hashId:P,prefixCls:I,rootPrefixCls:k,iconPrefixCls:L});Z($,ie);var oe=typeof c=="function"?c(ve,I,j,C.resetFont):null;return[C.resetStyle===!1?null:oe,ue]});return[K,P]}}function v(g,b,S){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=h(g,b,S,ee({resetStyle:!1,order:-998},C)),w=function(_){var O=_.prefixCls,I=_.rootCls,j=I===void 0?O:I;return y(O,j),null};return w}return{genStyleHooks:f,genSubStyleComponent:v,genComponentStyleHook:h}}const Is=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],sz="5.27.6";function i0(e){return e>=0&&e<=255}function Dd(e,t){const{r:n,g:r,b:a,a:o}=new Tn(e).toRgb();if(o<1)return e;const{r:c,g:u,b:f}=new Tn(t).toRgb();for(let d=.01;d<=1;d+=.01){const h=Math.round((n-c*(1-d))/d),v=Math.round((r-u*(1-d))/d),g=Math.round((a-f*(1-d))/d);if(i0(h)&&i0(v)&&i0(g))return new Tn({r:h,g:v,b:g,a:Math.round(d*100)/100}).toRgbString()}return new Tn({r:n,g:r,b:a,a:1}).toRgbString()}var cz=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 yN(e){const{override:t}=e,n=cz(e,["override"]),r=Object.assign({},t);Object.keys(lf).forEach(g=>{delete r[g]});const a=Object.assign(Object.assign({},n),r),o=480,c=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:Dd(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:Dd(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Dd(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:Dd(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:c-1,screenSM:c,screenSMMin:c,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 Tn("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new Tn("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new Tn("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 AE=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 SN={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},uz={motionBase:!0,motionUnit:!0},dz={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},xN=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a}=t,o=AE(t,["override"]);let c=Object.assign(Object.assign({},r),{override:a});return c=yN(c),o&&Object.entries(o).forEach(([u,f])=>{const{theme:d}=f,h=AE(f,["theme"]);let v=h;d&&(v=xN(Object.assign(Object.assign({},c),h),{override:h},d)),c[u]=v}),c};function Ta(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=xe.useContext(hN),o=`${sz}-${t||""}`,c=n||mN,[u,f,d]=Kk(c,[lf,e],{salt:o,override:r,getComputedToken:xN,formatToken:yN,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:SN,ignore:uz,preserve:dz}});return[c,d,t?f:"",u,a]}const Bi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},An=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),ou=()=>({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"}}),Uo=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),fz=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"}}}),mz=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,c={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),c),{[a]:c})}},so=(e,t)=>({outline:`${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Wo=(e,t)=>({"&:focus-visible":so(e,t)}),CN=e=>({[`.${e}`]:Object.assign(Object.assign({},ou()),{[`.${e} .${e}-icon`]:{display:"block"}})}),yx=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"},Wo(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Kn,genComponentStyleHook:hz,genSubStyleComponent:Rf}=lz({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=s.useContext(Ut);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=Ta();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=s.useContext(Ut);return e??{}},getResetStyles:(e,t)=>{var n;const r=fz(e);return[r,{"&":r},CN((n=t?.prefix.iconPrefixCls)!==null&&n!==void 0?n:Bv)]},getCommonStyle:mz,getCompUnitless:()=>SN});function wN(e,t){return Is.reduce((n,r)=>{const a=e[`${r}1`],o=e[`${r}3`],c=e[`${r}6`],u=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:o,darkColor:c,textColor:u}))},{})}const vz=(e,t)=>{const[n,r]=Ta();return $y({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>CN(e))},gz=Object.assign({},Pv),{useId:zE}=gz,pz=()=>"",bz=typeof zE>"u"?pz:zE;function yz(e,t,n){var r;Kl();const a=e||{},o=a.inherit===!1||!t?Object.assign(Object.assign({},cf),{hashed:(r=t?.hashed)!==null&&r!==void 0?r:cf.hashed,cssVar:t?.cssVar}):t,c=bz();return Ts(()=>{var u,f;if(!e)return t;const d=Object.assign({},o.components);Object.keys(e.components||{}).forEach(g=>{d[g]=Object.assign(Object.assign({},d[g]),e.components[g])});const h=`css-var-${c.replace(/:/g,"")}`,v=((u=a.cssVar)!==null&&u!==void 0?u:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix: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:v})},[a,o],(u,f)=>u.some((d,h)=>{const v=f[h];return!oo(d,v,!0)}))}var Sz=["children"],$N=s.createContext({});function xz(e){var t=e.children,n=Kt(e,Sz);return s.createElement($N.Provider,{value:n},t)}var Cz=(function(e){oi(n,e);var t=Ei(n);function n(){return xr(this,n),t.apply(this,arguments)}return Cr(n,[{key:"render",value:function(){return this.props.children}}]),n})(s.Component);function wz(e){var t=s.useReducer(function(u){return u+1},0),n=ce(t,2),r=n[1],a=s.useRef(e),o=pn(function(){return a.current}),c=pn(function(u){a.current=typeof u=="function"?u(a.current):u,r()});return[o,c]}var Il="none",lh="appear",sh="enter",ch="leave",LE="none",Di="prepare",Ac="start",zc="active",Sx="end",_N="prepared";function HE(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 $z(e,t){var n={animationend:HE("Animation","AnimationEnd"),transitionend:HE("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var _z=$z(Ca(),typeof window<"u"?window:{}),EN={};if(Ca()){var Ez=document.createElement("div");EN=Ez.style}var uh={};function ON(e){if(uh[e])return uh[e];var t=_z[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 EN)return uh[e]=t[o],uh[e]}return""}var IN=ON("animationend"),RN=ON("transitionend"),NN=!!(IN&&RN),BE=IN||"animationend",FE=RN||"transitionend";function VE(e,t){if(!e)return null;if(jt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const Oz=(function(e){var t=s.useRef();function n(a){a&&(a.removeEventListener(FE,e),a.removeEventListener(BE,e))}function r(a){t.current&&t.current!==a&&n(t.current),a&&a!==t.current&&(a.addEventListener(FE,e),a.addEventListener(BE,e),t.current=a)}return s.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var MN=Ca()?s.useLayoutEffect:s.useEffect;const Iz=(function(){var e=s.useRef(null);function t(){mn.cancel(e.current)}function n(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=mn(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return s.useEffect(function(){return function(){t()}},[]),[n,t]});var Rz=[Di,Ac,zc,Sx],Nz=[Di,_N],jN=!1,Mz=!0;function TN(e){return e===zc||e===Sx}const jz=(function(e,t,n){var r=nu(LE),a=ce(r,2),o=a[0],c=a[1],u=Iz(),f=ce(u,2),d=f[0],h=f[1];function v(){c(Di,!0)}var g=t?Nz:Rz;return MN(function(){if(o!==LE&&o!==Sx){var b=g.indexOf(o),S=g[b+1],C=n(o);C===jN?c(S,!0):S&&d(function(y){function w(){y.isCanceled()||c(S,!0)}C===!0?w():Promise.resolve(C).then(w)})}},[e,o]),s.useEffect(function(){return function(){h()}},[]),[v,o]});function Tz(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,c=r.motionAppear,u=c===void 0?!0:c,f=r.motionLeave,d=f===void 0?!0:f,h=r.motionDeadline,v=r.motionLeaveImmediately,g=r.onAppearPrepare,b=r.onEnterPrepare,S=r.onLeavePrepare,C=r.onAppearStart,y=r.onEnterStart,w=r.onLeaveStart,$=r.onAppearActive,_=r.onEnterActive,O=r.onLeaveActive,I=r.onAppearEnd,j=r.onEnterEnd,M=r.onLeaveEnd,D=r.onVisibleChanged,N=nu(),P=ce(N,2),A=P[0],F=P[1],H=wz(Il),k=ce(H,2),L=k[0],T=k[1],z=nu(null),V=ce(z,2),q=V[0],G=V[1],B=L(),U=s.useRef(!1),K=s.useRef(null);function Y(){return n()}var Q=s.useRef(!1);function Z(){T(Il),G(null,!0)}var ae=pn(function(ge){var Ie=L();if(Ie!==Il){var _e=Y();if(!(ge&&!ge.deadline&&ge.target!==_e)){var we=Q.current,Fe;Ie===lh&&we?Fe=I?.(_e,ge):Ie===sh&&we?Fe=j?.(_e,ge):Ie===ch&&we&&(Fe=M?.(_e,ge)),we&&Fe!==!1&&Z()}}}),re=Oz(ae),ie=ce(re,1),ve=ie[0],ue=function(Ie){switch(Ie){case lh:return X(X(X({},Di,g),Ac,C),zc,$);case sh:return X(X(X({},Di,b),Ac,y),zc,_);case ch:return X(X(X({},Di,S),Ac,w),zc,O);default:return{}}},oe=s.useMemo(function(){return ue(B)},[B]),he=jz(B,!e,function(ge){if(ge===Di){var Ie=oe[Di];return Ie?Ie(Y()):jN}if(le in oe){var _e;G(((_e=oe[le])===null||_e===void 0?void 0:_e.call(oe,Y(),null))||null)}return le===zc&&B!==Il&&(ve(Y()),h>0&&(clearTimeout(K.current),K.current=setTimeout(function(){ae({deadline:!0})},h))),le===_N&&Z(),Mz}),de=ce(he,2),me=de[0],le=de[1],pe=TN(le);Q.current=pe;var Ce=s.useRef(null);MN(function(){if(!(U.current&&Ce.current===t)){F(t);var ge=U.current;U.current=!0;var Ie;!ge&&t&&u&&(Ie=lh),ge&&t&&o&&(Ie=sh),(ge&&!t&&d||!ge&&v&&!t&&d)&&(Ie=ch);var _e=ue(Ie);Ie&&(e||_e[Di])?(T(Ie),me()):T(Il),Ce.current=t}},[t]),s.useEffect(function(){(B===lh&&!u||B===sh&&!o||B===ch&&!d)&&T(Il)},[u,o,d]),s.useEffect(function(){return function(){U.current=!1,clearTimeout(K.current)}},[]);var De=s.useRef(!1);s.useEffect(function(){A&&(De.current=!0),A!==void 0&&B===Il&&((De.current||A)&&D?.(A),De.current=!0)},[A,B]);var je=q;return oe[Di]&&le===Ac&&(je=ee({transition:"none"},je)),[B,le,je,A??t]}function Dz(e){var t=e;jt(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=s.forwardRef(function(a,o){var c=a.visible,u=c===void 0?!0:c,f=a.removeOnLeave,d=f===void 0?!0:f,h=a.forceRender,v=a.children,g=a.motionName,b=a.leavedClassName,S=a.eventProps,C=s.useContext($N),y=C.motion,w=n(a,y),$=s.useRef(),_=s.useRef();function O(){try{return $.current instanceof HTMLElement?$.current:Ph(_.current)}catch{return null}}var I=Tz(w,u,O,a),j=ce(I,4),M=j[0],D=j[1],N=j[2],P=j[3],A=s.useRef(P);P&&(A.current=!0);var F=s.useCallback(function(V){$.current=V,tf(o,V)},[o]),H,k=ee(ee({},S),{},{visible:u});if(!v)H=null;else if(M===Il)P?H=v(ee({},k),F):!d&&A.current&&b?H=v(ee(ee({},k),{},{className:b}),F):h||!d&&!b?H=v(ee(ee({},k),{},{style:{display:"none"}}),F):H=null;else{var L;D===Di?L="prepare":TN(D)?L="active":D===Ac&&(L="start");var T=VE(g,"".concat(M,"-").concat(L));H=v(ee(ee({},k),{},{className:se(VE(g,M),X(X({},T,T&&L),g,typeof g=="string")),style:N}),F)}if(s.isValidElement(H)&&Hi(H)){var z=Vl(H);z||(H=s.cloneElement(H,{ref:F}))}return s.createElement(Cz,{ref:_},H)});return r.displayName="CSSMotion",r}const Oi=Dz(NN);var Ay="add",zy="keep",Ly="remove",o0="removed";function Pz(e){var t;return e&&jt(e)==="object"&&"key"in e?t=e:t={key:e},ee(ee({},t),{},{key:String(t.key)})}function Hy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Pz)}function kz(){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=Hy(e),c=Hy(t);o.forEach(function(d){for(var h=!1,v=r;v<a;v+=1){var g=c[v];if(g.key===d.key){r<v&&(n=n.concat(c.slice(r,v).map(function(b){return ee(ee({},b),{},{status:Ay})})),r=v),n.push(ee(ee({},g),{},{status:zy})),r+=1,h=!0;break}}h||n.push(ee(ee({},d),{},{status:Ly}))}),r<a&&(n=n.concat(c.slice(r).map(function(d){return ee(ee({},d),{},{status:Ay})})));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 v=h.key,g=h.status;return v!==d||g!==Ly}),n.forEach(function(h){h.key===d&&(h.status=zy)})}),n}var Az=["component","children","onVisibleChanged","onAllRemoved"],zz=["status"],Lz=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Hz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oi,n=(function(r){oi(o,r);var a=Ei(o);function o(){var c;xr(this,o);for(var u=arguments.length,f=new Array(u),d=0;d<u;d++)f[d]=arguments[d];return c=a.call.apply(a,[this].concat(f)),X(xt(c),"state",{keyEntities:[]}),X(xt(c),"removeKey",function(h){c.setState(function(v){var g=v.keyEntities.map(function(b){return b.key!==h?b:ee(ee({},b),{},{status:o0})});return{keyEntities:g}},function(){var v=c.state.keyEntities,g=v.filter(function(b){var S=b.status;return S!==o0}).length;g===0&&c.props.onAllRemoved&&c.props.onAllRemoved()})}),c}return Cr(o,[{key:"render",value:function(){var u=this,f=this.state.keyEntities,d=this.props,h=d.component,v=d.children,g=d.onVisibleChanged;d.onAllRemoved;var b=Kt(d,Az),S=h||s.Fragment,C={};return Lz.forEach(function(y){C[y]=b[y],delete b[y]}),delete b.keys,s.createElement(S,b,f.map(function(y,w){var $=y.status,_=Kt(y,zz),O=$===Ay||$===zy;return s.createElement(t,Me({},C,{key:_.key,visible:O,eventProps:_,onVisibleChanged:function(j){g?.(j,{key:_.key}),j||u.removeKey(_.key)}}),function(I,j){return v(ee(ee({},I),{},{index:w}),j)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,f){var d=u.keys,h=f.keyEntities,v=Hy(d),g=kz(h,v);return{keyEntities:g.filter(function(b){var S=h.find(function(C){var y=C.key;return b.key===y});return!(S&&S.status===o0&&b.status===Ly)})}}}]),o})(s.Component);return X(n,"defaultProps",{component:"div"}),n}const xx=Hz(NN),KE=s.createContext(!0);function Bz(e){const t=s.useContext(KE),{children:n}=e,[,r]=Ta(),{motion:a}=r,o=s.useRef(!1);return o.current||(o.current=t!==a),o.current?s.createElement(KE.Provider,{value:a},s.createElement(xz,{motion:a},n)):n}const Fz=()=>null;var Vz=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 Kz=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let mv,DN,PN,kN;function Vh(){return mv||uf}function Uz(){return DN||Bv}function Wz(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const qz=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(mv=t),n!==void 0&&(DN=n),"holderRender"in e&&(kN=a),r&&(Wz(r)?qA(Vh(),r):PN=r)},Yz=()=>({getPrefixCls:(e,t)=>t||(e?`${Vh()}-${e}`:Vh()),getIconPrefixCls:Uz,getRootPrefixCls:()=>mv||Vh(),getTheme:()=>PN,holderRender:kN}),Gz=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:c,locale:u,componentSize:f,direction:d,space:h,splitter:v,virtual:g,dropdownMatchSelectWidth:b,popupMatchSelectWidth:S,popupOverflow:C,legacyLocale:y,parentContext:w,iconPrefixCls:$,theme:_,componentDisabled:O,segmented:I,statistic:j,spin:M,calendar:D,carousel:N,cascader:P,collapse:A,typography:F,checkbox:H,descriptions:k,divider:L,drawer:T,skeleton:z,steps:V,image:q,layout:G,list:B,mentions:U,modal:K,progress:Y,result:Q,slider:Z,breadcrumb:ae,menu:re,pagination:ie,input:ve,textArea:ue,empty:oe,badge:he,radio:de,rate:me,switch:le,transfer:pe,avatar:Ce,message:De,tag:je,table:ge,card:Ie,tabs:_e,timeline:we,timePicker:Fe,upload:He,notification:it,tree:Ze,colorPicker:Ye,datePicker:Je,rangePicker:Pe,flex:Oe,wave:Be,dropdown:$e,warning:Te,tour:be,tooltip:ye,popover:Re,popconfirm:Ge,floatButton:ft,floatButtonGroup:$t,variant:Qe,inputNumber:at,treeSelect:mt}=e,st=s.useCallback((Dt,Jt)=>{const{prefixCls:ut}=e;if(Jt)return Jt;const ot=ut||w.getPrefixCls("");return Dt?`${ot}-${Dt}`:ot},[w.getPrefixCls,e.prefixCls]),pt=$||w.iconPrefixCls||Bv,Wt=n||w.csp;vz(pt,Wt);const Yt=yz(_,w.theme,{prefixCls:st("")}),ht={csp:Wt,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:u||y,direction:d,space:h,splitter:v,virtual:g,popupMatchSelectWidth:S??b,popupOverflow:C,getPrefixCls:st,iconPrefixCls:pt,theme:Yt,segmented:I,statistic:j,spin:M,calendar:D,carousel:N,cascader:P,collapse:A,typography:F,checkbox:H,descriptions:k,divider:L,drawer:T,skeleton:z,steps:V,image:q,input:ve,textArea:ue,layout:G,list:B,mentions:U,modal:K,progress:Y,result:Q,slider:Z,breadcrumb:ae,menu:re,pagination:ie,empty:oe,badge:he,radio:de,rate:me,switch:le,transfer:pe,avatar:Ce,message:De,tag:je,table:ge,card:Ie,tabs:_e,timeline:we,timePicker:Fe,upload:He,notification:it,tree:Ze,colorPicker:Ye,datePicker:Je,rangePicker:Pe,flex:Oe,wave:Be,dropdown:$e,warning:Te,tour:be,tooltip:ye,popover:Re,popconfirm:Ge,floatButton:ft,floatButtonGroup:$t,variant:Qe,inputNumber:at,treeSelect:mt},It=Object.assign({},w);Object.keys(ht).forEach(Dt=>{ht[Dt]!==void 0&&(It[Dt]=ht[Dt])}),Kz.forEach(Dt=>{const Jt=e[Dt];Jt&&(It[Dt]=Jt)}),typeof r<"u"&&(It.button=Object.assign({autoInsertSpace:r},It.button));const _t=Ts(()=>It,It,(Dt,Jt)=>{const ut=Object.keys(Dt),ot=Object.keys(Jt);return ut.length!==ot.length||ut.some(Lt=>Dt[Lt]!==Jt[Lt])}),{layer:tt}=s.useContext(If),Ue=s.useMemo(()=>({prefixCls:pt,csp:Wt,layer:tt?"antd":void 0}),[pt,Wt,tt]);let qe=s.createElement(s.Fragment,null,s.createElement(Fz,{dropdownMatchSelectWidth:b}),t);const ct=s.useMemo(()=>{var Dt,Jt,ut,ot;return kc(((Dt=lo.Form)===null||Dt===void 0?void 0:Dt.defaultValidateMessages)||{},((ut=(Jt=_t.locale)===null||Jt===void 0?void 0:Jt.Form)===null||ut===void 0?void 0:ut.defaultValidateMessages)||{},((ot=_t.form)===null||ot===void 0?void 0:ot.validateMessages)||{},c?.validateMessages||{})},[_t,c?.validateMessages]);Object.keys(ct).length>0&&(qe=s.createElement(oN.Provider,{value:ct},qe)),u&&(qe=s.createElement(IA,{locale:u,_ANT_MARK__:OA},qe)),qe=s.createElement(px.Provider,{value:Ue},qe),f&&(qe=s.createElement(YA,{size:f},qe)),qe=s.createElement(Bz,null,qe);const Tt=s.useMemo(()=>{const Dt=Yt||{},{algorithm:Jt,token:ut,components:ot,cssVar:Lt}=Dt,tn=Vz(Dt,["algorithm","token","components","cssVar"]),hn=Jt&&(!Array.isArray(Jt)||Jt.length>0)?Sy(Jt):mN,cn={};Object.entries(ot||{}).forEach(([rn,xn])=>{const lt=Object.assign({},xn);"algorithm"in lt&&(lt.algorithm===!0?lt.theme=hn:(Array.isArray(lt.algorithm)||typeof lt.algorithm=="function")&&(lt.theme=Sy(lt.algorithm)),delete lt.algorithm),cn[rn]=lt});const En=Object.assign(Object.assign({},lf),ut);return Object.assign(Object.assign({},tn),{theme:hn,token:En,components:cn,override:Object.assign({override:En},cn),cssVar:Lt})},[Yt]);return _&&(qe=s.createElement(hN.Provider,{value:Tt},qe)),_t.warning&&(qe=s.createElement(wA.Provider,{value:_t.warning},qe)),O!==void 0&&(qe=s.createElement(vN,{disabled:O},qe)),s.createElement(Ut.Provider,{value:_t},qe)},vo=e=>{const t=s.useContext(Ut),n=s.useContext(bx);return s.createElement(Gz,Object.assign({parentContext:t,legacyLocale:n},e))};vo.ConfigContext=Ut;vo.SizeContext=Os;vo.config=qz;vo.useConfig=GA;Object.defineProperty(vo,"SizeContext",{get:()=>Os});var Xz={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 AN(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Qz(e){return AN(e)instanceof ShadowRoot}function hv(e){return Qz(e)?AN(e):null}function Zz(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function Jz(e,t){Sr(e,"[@ant-design/icons] ".concat(t))}function UE(e){return jt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(jt(e.icon)==="object"||typeof e.icon=="function")}function WE(){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[Zz(n)]=r}return t},{})}function By(e,t,n){return n?xe.createElement(e.tag,ee(ee({key:t},WE(e.attrs)),n),(e.children||[]).map(function(r,a){return By(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):xe.createElement(e.tag,ee({key:t},WE(e.attrs)),(e.children||[]).map(function(r,a){return By(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function zN(e){return sf(e)[0]}function LN(e){return e?Array.isArray(e)?e:[e]:[]}var e5=`
.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);
  }
}
`,t5=function(t){var n=s.useContext(px),r=n.csp,a=n.prefixCls,o=n.layer,c=e5;a&&(c=c.replace(/anticon/g,a)),o&&(c="@layer ".concat(o,` {
`).concat(c,`
}`)),s.useEffect(function(){var u=t.current,f=hv(u);Bo(c,"@ant-design-icons",{prepend:!o,csp:r,attachTo:f})},[])},n5=["icon","className","onClick","style","primaryColor","secondaryColor"],Vd={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function r5(e){var t=e.primaryColor,n=e.secondaryColor;Vd.primaryColor=t,Vd.secondaryColor=n||zN(t),Vd.calculated=!!n}function a5(){return ee({},Vd)}var lu=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,c=t.primaryColor,u=t.secondaryColor,f=Kt(t,n5),d=s.useRef(),h=Vd;if(c&&(h={primaryColor:c,secondaryColor:u||zN(c)}),t5(d),Jz(UE(n),"icon should be icon definiton, but got ".concat(n)),!UE(n))return null;var v=n;return v&&typeof v.icon=="function"&&(v=ee(ee({},v),{},{icon:v.icon(h.primaryColor,h.secondaryColor)})),By(v.icon,"svg-".concat(v.name),ee(ee({className:r,onClick:a,style:o,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:d}))};lu.displayName="IconReact";lu.getTwoToneColors=a5;lu.setTwoToneColors=r5;function HN(e){var t=LN(e),n=ce(t,2),r=n[0],a=n[1];return lu.setTwoToneColors({primaryColor:r,secondaryColor:a})}function i5(){var e=lu.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var o5=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];HN(tu.primary);var _n=s.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,c=e.tabIndex,u=e.onClick,f=e.twoToneColor,d=Kt(e,o5),h=s.useContext(px),v=h.prefixCls,g=v===void 0?"anticon":v,b=h.rootClassName,S=se(b,g,X(X({},"".concat(g,"-").concat(r.name),!!r.name),"".concat(g,"-spin"),!!a||r.name==="loading"),n),C=c;C===void 0&&u&&(C=-1);var y=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,w=LN(f),$=ce(w,2),_=$[0],O=$[1];return s.createElement("span",Me({role:"img","aria-label":r.name},d,{ref:t,tabIndex:C,onClick:u,className:S}),s.createElement(lu,{icon:r,primaryColor:_,secondaryColor:O,style:y}))});_n.displayName="AntdIcon";_n.getTwoToneColor=i5;_n.setTwoToneColor=HN;var l5=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:Xz}))},Fv=s.forwardRef(l5),s5={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"},c5=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:s5}))},su=s.forwardRef(c5),u5={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"},d5=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:u5}))},cu=s.forwardRef(d5),f5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 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"},m5=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:f5}))},Cx=s.forwardRef(m5),h5={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"},v5=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:h5}))},BN=s.forwardRef(v5),g5=`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`,p5=`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`,b5="".concat(g5," ").concat(p5).split(/[\s\n]+/),y5="aria-",S5="data-";function qE(e,t){return e.indexOf(t)===0}function ma(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=ee({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||qE(a,y5))||n.data&&qE(a,S5)||n.attr&&b5.includes(a))&&(r[a]=e[a])}),r}function FN(e){return e&&xe.isValidElement(e)&&e.type===xe.Fragment}const wx=(e,t,n)=>xe.isValidElement(e)?xe.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function wa(e,t){return wx(e,e,t)}const dh=(e,t,n,r,a)=>({background:e,border:`${te(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),x5=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:o,fontSizeLG:c,lineHeight:u,borderRadiusLG:f,motionEaseInOutCirc:d,withDescriptionIconSize:h,colorText:v,colorTextHeading:g,withDescriptionPadding:b,defaultPadding:S}=e;return{[t]:Object.assign(Object.assign({},An(e)),{position:"relative",display:"flex",alignItems:"center",padding:S,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:g},[`&${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:g,fontSize:c},[`${t}-description`]:{display:"block",color:v}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},C5=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:o,colorWarningBorder:c,colorWarningBg:u,colorError:f,colorErrorBorder:d,colorErrorBg:h,colorInfo:v,colorInfoBorder:g,colorInfoBg:b}=e;return{[t]:{"&-success":dh(a,r,n,e,t),"&-info":dh(b,g,v,e,t),"&-warning":dh(u,c,o,e,t),"&-error":Object.assign(Object.assign({},dh(h,d,f,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},w5=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:o,colorIcon:c,colorIconHover:u}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:o,lineHeight:te(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:c,transition:`color ${r}`,"&:hover":{color:u}}},"&-close-text":{color:c,transition:`color ${r}`,"&:hover":{color:u}}}}},$5=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),_5=Kn("Alert",e=>[x5(e),C5(e),w5(e)],$5);var YE=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 E5={success:Fv,info:BN,error:su,warning:Cx},O5=e=>{const{icon:t,prefixCls:n,type:r}=e,a=E5[r]||null;return t?wx(t,s.createElement("span",{className:`${n}-icon`},t),()=>({className:se(`${n}-icon`,t.props.className)})):s.createElement(a,{className:`${n}-icon`})},I5=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:o}=e,c=r===!0||r===void 0?s.createElement(cu,null):r;return t?s.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},o),c):null},VN=s.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:o,className:c,rootClassName:u,style:f,onMouseEnter:d,onMouseLeave:h,onClick:v,afterClose:g,showIcon:b,closable:S,closeText:C,closeIcon:y,action:w,id:$}=e,_=YE(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[O,I]=s.useState(!1),j=s.useRef(null);s.useImperativeHandle(t,()=>({nativeElement:j.current}));const{getPrefixCls:M,direction:D,closable:N,closeIcon:P,className:A,style:F}=va("alert"),H=M("alert",r),[k,L,T]=_5(H),z=Q=>{var Z;I(!0),(Z=e.onClose)===null||Z===void 0||Z.call(e,Q)},V=s.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),q=s.useMemo(()=>typeof S=="object"&&S.closeIcon||C?!0:typeof S=="boolean"?S:y!==!1&&y!==null&&y!==void 0?!0:!!N,[C,y,S,N]),G=o&&b===void 0?!0:b,B=se(H,`${H}-${V}`,{[`${H}-with-description`]:!!n,[`${H}-no-icon`]:!G,[`${H}-banner`]:!!o,[`${H}-rtl`]:D==="rtl"},A,c,u,T,L),U=ma(_,{aria:!0,data:!0}),K=s.useMemo(()=>typeof S=="object"&&S.closeIcon?S.closeIcon:C||(y!==void 0?y:typeof N=="object"&&N.closeIcon?N.closeIcon:P),[y,S,C,P]),Y=s.useMemo(()=>{const Q=S??N;if(typeof Q=="object"){const{closeIcon:Z}=Q;return YE(Q,["closeIcon"])}return{}},[S,N]);return k(s.createElement(Oi,{visible:!O,motionName:`${H}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:Q=>({maxHeight:Q.offsetHeight}),onLeaveEnd:g},({className:Q,style:Z},ae)=>s.createElement("div",Object.assign({id:$,ref:_a(j,ae),"data-show":!O,className:se(B,Q),style:Object.assign(Object.assign(Object.assign({},F),f),Z),onMouseEnter:d,onMouseLeave:h,onClick:v,role:"alert"},U),G?s.createElement(O5,{description:n,icon:e.icon,prefixCls:H,type:V}):null,s.createElement("div",{className:`${H}-content`},a?s.createElement("div",{className:`${H}-message`},a):null,n?s.createElement("div",{className:`${H}-description`},n):null),w?s.createElement("div",{className:`${H}-action`},w):null,s.createElement(I5,{isClosable:q,prefixCls:H,closeIcon:K,handleClose:z,ariaProps:Y}))))});function R5(e,t,n){return t=Es(t),TR(e,Av()?Reflect.construct(t,n||[],Es(e).constructor):t.apply(e,n))}let N5=(function(e){function t(){var n;return xr(this,t),n=R5(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return oi(t,e),Cr(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:c}=this.props,{error:u,info:f}=this.state,d=f?.componentStack||null,h=typeof r>"u"?(u||"").toString():r,v=typeof a>"u"?d:a;return u?s.createElement(VN,{id:o,type:"error",message:h,description:s.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},v)}):c}}])})(s.Component);const KN=VN;KN.ErrorBoundary=N5;const GE=e=>typeof e=="object"&&e!=null&&e.nodeType===1,XE=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",fh=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return XE(n.overflowY,t)||XE(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},mh=(e,t,n,r,a,o,c,u)=>o<e&&c>t||o>e&&c<t?0:o<=e&&u<=n||c>=t&&u>=n?o-e-r:c>t&&u<n||o<e&&u>n?c-t+a:0,M5=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},QE=(e,t)=>{var n,r,a,o;if(typeof document>"u")return[];const{scrollMode:c,block:u,inline:f,boundary:d,skipOverflowHiddenElements:h}=t,v=typeof d=="function"?d:T=>T!==d;if(!GE(e))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,b=[];let S=e;for(;GE(S)&&v(S);){if(S=M5(S),S===g){b.push(S);break}S!=null&&S===document.body&&fh(S)&&!fh(document.documentElement)||S!=null&&fh(S,h)&&b.push(S)}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:_,width:O,top:I,right:j,bottom:M,left:D}=e.getBoundingClientRect(),{top:N,right:P,bottom:A,left:F}=(T=>{const z=window.getComputedStyle(T);return{top:parseFloat(z.scrollMarginTop)||0,right:parseFloat(z.scrollMarginRight)||0,bottom:parseFloat(z.scrollMarginBottom)||0,left:parseFloat(z.scrollMarginLeft)||0}})(e);let H=u==="start"||u==="nearest"?I-N:u==="end"?M+A:I+_/2-N+A,k=f==="center"?D+O/2-F+P:f==="end"?j+P:D-F;const L=[];for(let T=0;T<b.length;T++){const z=b[T],{height:V,width:q,top:G,right:B,bottom:U,left:K}=z.getBoundingClientRect();if(c==="if-needed"&&I>=0&&D>=0&&M<=y&&j<=C&&(z===g&&!fh(z)||I>=G&&M<=U&&D>=K&&j<=B))return L;const Y=getComputedStyle(z),Q=parseInt(Y.borderLeftWidth,10),Z=parseInt(Y.borderTopWidth,10),ae=parseInt(Y.borderRightWidth,10),re=parseInt(Y.borderBottomWidth,10);let ie=0,ve=0;const ue="offsetWidth"in z?z.offsetWidth-z.clientWidth-Q-ae:0,oe="offsetHeight"in z?z.offsetHeight-z.clientHeight-Z-re:0,he="offsetWidth"in z?z.offsetWidth===0?0:q/z.offsetWidth:0,de="offsetHeight"in z?z.offsetHeight===0?0:V/z.offsetHeight:0;if(g===z)ie=u==="start"?H:u==="end"?H-y:u==="nearest"?mh($,$+y,y,Z,re,$+H,$+H+_,_):H-y/2,ve=f==="start"?k:f==="center"?k-C/2:f==="end"?k-C:mh(w,w+C,C,Q,ae,w+k,w+k+O,O),ie=Math.max(0,ie+$),ve=Math.max(0,ve+w);else{ie=u==="start"?H-G-Z:u==="end"?H-U+re+oe:u==="nearest"?mh(G,U,V,Z,re+oe,H,H+_,_):H-(G+V/2)+oe/2,ve=f==="start"?k-K-Q:f==="center"?k-(K+q/2)+ue/2:f==="end"?k-B+ae+ue:mh(K,B,q,Q,ae+ue,k,k+O,O);const{scrollLeft:me,scrollTop:le}=z;ie=de===0?0:Math.max(0,Math.min(le+ie/de,z.scrollHeight-V/de+oe)),ve=he===0?0:Math.max(0,Math.min(me+ve/he,z.scrollWidth-q/he+ue)),H+=le-ie,k+=me-ve}L.push({el:z,top:ie,left:ve})}return L},j5=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function T5(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(QE(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:o,left:c}of QE(e,j5(t))){const u=o-n.top+n.bottom,f=c-n.left+n.right;a.scroll({top:u,left:f,behavior:r})}}function Fy(e){return e!=null&&e===e.window}const D5=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return Fy(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!Fy(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 P5(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 k5(e,t={}){const{getContainer:n=()=>window,callback:r,duration:a=450}=t,o=n(),c=D5(o),u=Date.now(),f=()=>{const h=Date.now()-u,v=P5(h>a?a:h,c,e,a);Fy(o)?o.scrollTo(window.pageXOffset,v):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=v:o.scrollTop=v,h<a?mn(f):typeof r=="function"&&r()};mn(f)}const oa=e=>{const[,,,,t]=Ta();return t?`${e}-css-var`:""};var Mt={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},UN=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,o=e.duration,c=o===void 0?4.5:o,u=e.showProgress,f=e.pauseOnHover,d=f===void 0?!0:f,h=e.eventKey,v=e.content,g=e.closable,b=e.closeIcon,S=b===void 0?"x":b,C=e.props,y=e.onClick,w=e.onNoticeClose,$=e.times,_=e.hovering,O=s.useState(!1),I=ce(O,2),j=I[0],M=I[1],D=s.useState(0),N=ce(D,2),P=N[0],A=N[1],F=s.useState(0),H=ce(F,2),k=H[0],L=H[1],T=_||j,z=c>0&&u,V=function(){w(h)},q=function(Q){(Q.key==="Enter"||Q.code==="Enter"||Q.keyCode===Mt.ENTER)&&V()};s.useEffect(function(){if(!T&&c>0){var Y=Date.now()-k,Q=setTimeout(function(){V()},c*1e3-k);return function(){d&&clearTimeout(Q),L(Date.now()-Y)}}},[c,T,$]),s.useEffect(function(){if(!T&&z&&(d||k===0)){var Y=performance.now(),Q,Z=function ae(){cancelAnimationFrame(Q),Q=requestAnimationFrame(function(re){var ie=re+k-Y,ve=Math.min(ie/(c*1e3),1);A(ve*100),ve<1&&ae()})};return Z(),function(){d&&cancelAnimationFrame(Q)}}},[c,k,T,z,$]);var G=s.useMemo(function(){return jt(g)==="object"&&g!==null?g:g?{closeIcon:S}:{}},[g,S]),B=ma(G,!0),U=100-(!P||P<0?0:P>100?100:P),K="".concat(n,"-notice");return s.createElement("div",Me({},C,{ref:t,className:se(K,a,X({},"".concat(K,"-closable"),g)),style:r,onMouseEnter:function(Q){var Z;M(!0),C==null||(Z=C.onMouseEnter)===null||Z===void 0||Z.call(C,Q)},onMouseLeave:function(Q){var Z;M(!1),C==null||(Z=C.onMouseLeave)===null||Z===void 0||Z.call(C,Q)},onClick:y}),s.createElement("div",{className:"".concat(K,"-content")},v),g&&s.createElement("a",Me({tabIndex:0,className:"".concat(K,"-close"),onKeyDown:q,"aria-label":"Close"},B,{onClick:function(Q){Q.preventDefault(),Q.stopPropagation(),V()}}),G.closeIcon),z&&s.createElement("progress",{className:"".concat(K,"-progress"),max:"100",value:U},U+"%"))}),WN=xe.createContext({}),A5=function(t){var n=t.children,r=t.classNames;return xe.createElement(WN.Provider,{value:{classNames:r}},n)},ZE=8,JE=3,e2=16,z5=function(t){var n={offset:ZE,threshold:JE,gap:e2};if(t&&jt(t)==="object"){var r,a,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:ZE,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:JE,n.gap=(o=t.gap)!==null&&o!==void 0?o:e2}return[!!t,n]},L5=["className","style","classNames","styles"],H5=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,o=t.className,c=t.style,u=t.motion,f=t.onAllNoticeRemoved,d=t.onNoticeClose,h=t.stack,v=s.useContext(WN),g=v.classNames,b=s.useRef({}),S=s.useState(null),C=ce(S,2),y=C[0],w=C[1],$=s.useState([]),_=ce($,2),O=_[0],I=_[1],j=n.map(function(T){return{config:T,key:String(T.key)}}),M=z5(h),D=ce(M,2),N=D[0],P=D[1],A=P.offset,F=P.threshold,H=P.gap,k=N&&(O.length>0||j.length<=F),L=typeof u=="function"?u(r):u;return s.useEffect(function(){N&&O.length>1&&I(function(T){return T.filter(function(z){return j.some(function(V){var q=V.key;return z===q})})})},[O,j,N]),s.useEffect(function(){var T;if(N&&b.current[(T=j[j.length-1])===null||T===void 0?void 0:T.key]){var z;w(b.current[(z=j[j.length-1])===null||z===void 0?void 0:z.key])}},[j,N]),xe.createElement(xx,Me({key:r,className:se(a,"".concat(a,"-").concat(r),g?.list,o,X(X({},"".concat(a,"-stack"),!!N),"".concat(a,"-stack-expanded"),k)),style:c,keys:j,motionAppear:!0},L,{onAllRemoved:function(){f(r)}}),function(T,z){var V=T.config,q=T.className,G=T.style,B=T.index,U=V,K=U.key,Y=U.times,Q=String(K),Z=V,ae=Z.className,re=Z.style,ie=Z.classNames,ve=Z.styles,ue=Kt(Z,L5),oe=j.findIndex(function(we){return we.key===Q}),he={};if(N){var de=j.length-1-(oe>-1?oe:B-1),me=r==="top"||r==="bottom"?"-50%":"0";if(de>0){var le,pe,Ce;he.height=k?(le=b.current[Q])===null||le===void 0?void 0:le.offsetHeight:y?.offsetHeight;for(var De=0,je=0;je<de;je++){var ge;De+=((ge=b.current[j[j.length-1-je].key])===null||ge===void 0?void 0:ge.offsetHeight)+H}var Ie=(k?De:de*A)*(r.startsWith("top")?1:-1),_e=!k&&y!==null&&y!==void 0&&y.offsetWidth&&(pe=b.current[Q])!==null&&pe!==void 0&&pe.offsetWidth?(y?.offsetWidth-A*2*(de<3?de:3))/((Ce=b.current[Q])===null||Ce===void 0?void 0:Ce.offsetWidth):1;he.transform="translate3d(".concat(me,", ").concat(Ie,"px, 0) scaleX(").concat(_e,")")}else he.transform="translate3d(".concat(me,", 0, 0)")}return xe.createElement("div",{ref:z,className:se("".concat(a,"-notice-wrapper"),q,ie?.wrapper),style:ee(ee(ee({},G),he),ve?.wrapper),onMouseEnter:function(){return I(function(Fe){return Fe.includes(Q)?Fe:[].concat(ke(Fe),[Q])})},onMouseLeave:function(){return I(function(Fe){return Fe.filter(function(He){return He!==Q})})}},xe.createElement(UN,Me({},ue,{ref:function(Fe){oe>-1?b.current[Q]=Fe:delete b.current[Q]},prefixCls:a,classNames:ie,styles:ve,className:se(ae,g?.notice),style:re,times:Y,key:K,eventKey:K,onNoticeClose:d,hovering:N&&O.length>0})))})},B5=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,o=e.motion,c=e.maxCount,u=e.className,f=e.style,d=e.onAllRemoved,h=e.stack,v=e.renderNotifications,g=s.useState([]),b=ce(g,2),S=b[0],C=b[1],y=function(N){var P,A=S.find(function(F){return F.key===N});A==null||(P=A.onClose)===null||P===void 0||P.call(A),C(function(F){return F.filter(function(H){return H.key!==N})})};s.useImperativeHandle(t,function(){return{open:function(N){C(function(P){var A=ke(P),F=A.findIndex(function(L){return L.key===N.key}),H=ee({},N);if(F>=0){var k;H.times=(((k=P[F])===null||k===void 0?void 0:k.times)||0)+1,A[F]=H}else H.times=0,A.push(H);return c>0&&A.length>c&&(A=A.slice(-c)),A})},close:function(N){y(N)},destroy:function(){C([])}}});var w=s.useState({}),$=ce(w,2),_=$[0],O=$[1];s.useEffect(function(){var D={};S.forEach(function(N){var P=N.placement,A=P===void 0?"topRight":P;A&&(D[A]=D[A]||[],D[A].push(N))}),Object.keys(_).forEach(function(N){D[N]=D[N]||[]}),O(D)},[S]);var I=function(N){O(function(P){var A=ee({},P),F=A[N]||[];return F.length||delete A[N],A})},j=s.useRef(!1);if(s.useEffect(function(){Object.keys(_).length>0?j.current=!0:j.current&&(d?.(),j.current=!1)},[_]),!a)return null;var M=Object.keys(_);return Li.createPortal(s.createElement(s.Fragment,null,M.map(function(D){var N=_[D],P=s.createElement(H5,{key:D,configList:N,placement:D,prefixCls:r,className:u?.(D),style:f?.(D),motion:o,onNoticeClose:y,onAllNoticeRemoved:I,stack:h});return v?v(P,{prefixCls:r,key:D}):P})),a)}),F5=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],V5=function(){return document.body},t2=0;function K5(){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 c=a[o];c!==void 0&&(e[o]=c)})}),e}function U5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?V5:t,r=e.motion,a=e.prefixCls,o=e.maxCount,c=e.className,u=e.style,f=e.onAllRemoved,d=e.stack,h=e.renderNotifications,v=Kt(e,F5),g=s.useState(),b=ce(g,2),S=b[0],C=b[1],y=s.useRef(),w=s.createElement(B5,{container:S,ref:y,prefixCls:a,motion:r,maxCount:o,className:c,style:u,onAllRemoved:f,stack:d,renderNotifications:h}),$=s.useState([]),_=ce($,2),O=_[0],I=_[1],j=pn(function(D){var N=K5(v,D);(N.key===null||N.key===void 0)&&(N.key="rc-notification-".concat(t2),t2+=1),I(function(P){return[].concat(ke(P),[{type:"open",config:N}])})}),M=s.useMemo(function(){return{open:j,close:function(N){I(function(P){return[].concat(ke(P),[{type:"close",key:N}])})},destroy:function(){I(function(N){return[].concat(ke(N),[{type:"destroy"}])})}}},[]);return s.useEffect(function(){C(n())}),s.useEffect(function(){if(y.current&&O.length){O.forEach(function(P){switch(P.type){case"open":y.current.open(P.config);break;case"close":y.current.close(P.key);break;case"destroy":y.current.destroy();break}});var D,N;I(function(P){return(D!==P||!N)&&(D=P,N=P.filter(function(A){return!O.includes(A)})),N})}},[O]),[M,w]}var W5={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"},q5=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:W5}))},qo=s.forwardRef(q5);const $x=xe.createContext(void 0),Rl=100,Y5=10,G5=Rl*Y5,qN={Modal:Rl,Drawer:Rl,Popover:Rl,Popconfirm:Rl,Tooltip:Rl,Tour:Rl,FloatButton:Rl},X5={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Q5(e){return e in qN}const uu=(e,t)=>{const[,n]=Ta(),r=xe.useContext($x),a=Q5(e);let o;if(t!==void 0)o=[t,t];else{let c=r??0;a?c+=(r?0:n.zIndexPopupBase)+qN[e]:c+=X5[e],o=[r===void 0?t:c,c]}return o},Z5=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:o,colorError:c,colorWarning:u,colorInfo:f,fontSizeLG:d,motionEaseInOutCirc:h,motionDurationSlow:v,marginXS:g,paddingXS:b,borderRadiusLG:S,zIndexPopup:C,contentPadding:y,contentBg:w}=e,$=`${t}-notice`,_=new jn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:b,transform:"translateY(0)",opacity:1}}),O=new jn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:b,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),I={padding:b,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:g,fontSize:d},[`${$}-content`]:{display:"inline-block",padding:y,background:w,borderRadius:S,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:c},[`${t}-warning > ${n}`]:{color:u},[`${t}-info > ${n},
      ${t}-loading > ${n}`]:{color:f}};return[{[t]:Object.assign(Object.assign({},An(e)),{color:a,position:"fixed",top:g,width:"100%",pointerEvents:"none",zIndex:C,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
        ${t}-move-up-appear,
        ${t}-move-up-enter
      `]:{animationName:_,animationDuration:v,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:O,animationDuration:v,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({},I)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},I),{padding:0,textAlign:"start"})}]},J5=e=>({zIndexPopup:e.zIndexPopupBase+G5+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),YN=Kn("Message",e=>{const t=Sn(e,{height:150});return Z5(t)},J5);var e8=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 t8={info:s.createElement(BN,null),success:s.createElement(Fv,null),error:s.createElement(su,null),warning:s.createElement(Cx,null),loading:s.createElement(qo,null)},GN=({prefixCls:e,type:t,icon:n,children:r})=>s.createElement("div",{className:se(`${e}-custom-content`,`${e}-${t}`)},n||t8[t],s.createElement("span",null,r)),n8=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:o}=e,c=e8(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:u}=s.useContext(Ut),f=t||u("message"),d=oa(f),[h,v,g]=YN(f,d);return h(s.createElement(UN,Object.assign({},c,{prefixCls:f,className:se(n,v,`${f}-notice-pure-panel`,g,d),eventKey:"pure",duration:null,content:s.createElement(GN,{prefixCls:f,type:r,icon:a},o)})))};function r8(e,t){return{motionName:t??`${e}-move-up`}}function _x(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t?.()};return r.then=(a,o)=>n.then(a,o),r.promise=n,r}var a8=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,o8=3,l8=({children:e,prefixCls:t})=>{const n=oa(t),[r,a,o]=YN(t,n);return r(s.createElement(A5,{classNames:{list:se(a,o,n)}},e))},s8=(e,{prefixCls:t,key:n})=>s.createElement(l8,{prefixCls:t,key:n},e),c8=s.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:o,duration:c=o8,rtl:u,transitionName:f,onAllRemoved:d}=e,{getPrefixCls:h,getPopupContainer:v,message:g,direction:b}=s.useContext(Ut),S=r||h("message"),C=()=>({left:"50%",transform:"translateX(-50%)",top:n??i8}),y=()=>se({[`${S}-rtl`]:u??b==="rtl"}),w=()=>r8(S,f),$=s.createElement("span",{className:`${S}-close-x`},s.createElement(cu,{className:`${S}-close-icon`})),[_,O]=U5({prefixCls:S,style:C,className:y,motion:w,closable:!1,closeIcon:$,duration:c,getContainer:()=>a?.()||v?.()||document.body,maxCount:o,onAllRemoved:d,renderNotifications:s8});return s.useImperativeHandle(t,()=>Object.assign(Object.assign({},_),{prefixCls:S,message:g})),O});let n2=0;function XN(e){const t=s.useRef(null);return Kl(),[s.useMemo(()=>{const r=f=>{var d;(d=t.current)===null||d===void 0||d.close(f)},a=f=>{if(!t.current){const j=()=>{};return j.then=()=>{},j}const{open:d,prefixCls:h,message:v}=t.current,g=`${h}-notice`,{content:b,icon:S,type:C,key:y,className:w,style:$,onClose:_}=f,O=a8(f,["content","icon","type","key","className","style","onClose"]);let I=y;return I==null&&(n2+=1,I=`antd-message-${n2}`),_x(j=>(d(Object.assign(Object.assign({},O),{key:I,content:s.createElement(GN,{prefixCls:h,type:C,icon:S},b),placement:"top",className:se(C&&`${g}-${C}`,w,v?.className),style:Object.assign(Object.assign({},v?.style),$),onClose:()=>{_?.(),j()}})),()=>{r(I)}))},c={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,v,g)=>{let b;h&&typeof h=="object"&&"content"in h?b=h:b={content:h};let S,C;typeof v=="function"?C=v:(S=v,C=g);const y=Object.assign(Object.assign({onClose:C,duration:S},b),{type:f});return a(y)};c[f]=d}),c},[]),s.createElement(c8,Object.assign({key:"message-holder"},e,{ref:t}))]}function u8(e){return XN(e)}function QN(e,t){this.v=e,this.k=t}function Oa(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}Oa=function(c,u,f,d){function h(v,g){Oa(c,v,function(b){return this._invoke(v,g,b)})}u?a?a(c,u,{value:f,enumerable:!d,configurable:!d,writable:!d}):c[u]=f:(h("next",0),h("throw",1),h("return",2))},Oa(e,t,n,r)}function Ex(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function o(b,S,C,y){var w=S&&S.prototype instanceof u?S:u,$=Object.create(w.prototype);return Oa($,"_invoke",(function(_,O,I){var j,M,D,N=0,P=I||[],A=!1,F={p:0,n:0,v:e,a:H,f:H.bind(e,4),d:function(L,T){return j=L,M=0,D=e,F.n=T,c}};function H(k,L){for(M=k,D=L,t=0;!A&&N&&!T&&t<P.length;t++){var T,z=P[t],V=F.p,q=z[2];k>3?(T=q===L)&&(D=z[(M=z[4])?5:(M=3,3)],z[4]=z[5]=e):z[0]<=V&&((T=k<2&&V<z[1])?(M=0,F.v=L,F.n=z[1]):V<q&&(T=k<3||z[0]>L||L>q)&&(z[4]=k,z[5]=L,F.n=q,M=0))}if(T||k>1)return c;throw A=!0,L}return function(k,L,T){if(N>1)throw TypeError("Generator is already running");for(A&&L===1&&H(L,T),M=L,D=T;(t=M<2?e:D)||!A;){j||(M?M<3?(M>1&&(F.n=-1),H(M,D)):F.n=D:F.v=D);try{if(N=2,j){if(M||(k="next"),t=j[k]){if(!(t=t.call(j,D)))throw TypeError("iterator result is not an object");if(!t.done)return t;D=t.value,M<2&&(M=0)}else M===1&&(t=j.return)&&t.call(j),M<2&&(D=TypeError("The iterator does not provide a '"+k+"' method"),M=1);j=e}else if((t=(A=F.n<0)?D:_.call(O,F))!==c)break}catch(z){j=e,M=1,D=z}finally{N=1}}return{value:t,done:A}}})(b,C,y),!0),$}var c={};function u(){}function f(){}function d(){}t=Object.getPrototypeOf;var h=[][r]?t(t([][r]())):(Oa(t={},r,function(){return this}),t),v=d.prototype=u.prototype=Object.create(h);function g(b){return Object.setPrototypeOf?Object.setPrototypeOf(b,d):(b.__proto__=d,Oa(b,a,"GeneratorFunction")),b.prototype=Object.create(v),b}return f.prototype=d,Oa(v,"constructor",d),Oa(d,"constructor",f),f.displayName="GeneratorFunction",Oa(d,a,"GeneratorFunction"),Oa(v),Oa(v,a,"Generator"),Oa(v,r,function(){return this}),Oa(v,"toString",function(){return"[object Generator]"}),(Ex=function(){return{w:o,m:g}})()}function vv(e,t){function n(a,o,c,u){try{var f=e[a](o),d=f.value;return d instanceof QN?t.resolve(d.v).then(function(h){n("next",h,c,u)},function(h){n("throw",h,c,u)}):t.resolve(d).then(function(h){f.value=h,c(f)},function(h){return n("throw",h,c,u)})}catch(h){u(h)}}var r;this.next||(Oa(vv.prototype),Oa(vv.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Oa(this,"_invoke",function(a,o,c){function u(){return new t(function(f,d){n(a,c,f,d)})}return r=r?r.then(u,u):u()},!0)}function ZN(e,t,n,r,a){return new vv(Ex().w(e,t,n,r),a||Promise)}function d8(e,t,n,r,a){var o=ZN(e,t,n,r,a);return o.next().then(function(c){return c.done?c.value:o.next()})}function f8(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function a(){for(;n.length;)if((r=n.pop())in t)return a.value=r,a.done=!1,a;return a.done=!0,a}}function r2(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(jt(e)+" is not iterable")}function Jn(){var e=Ex(),t=e.m(Jn),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(c){var u=typeof c=="function"&&c.constructor;return!!u&&(u===n||(u.displayName||u.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function o(c){var u,f;return function(d){u||(u={stop:function(){return f(d.a,2)},catch:function(){return d.v},abrupt:function(v,g){return f(d.a,a[v],g)},delegateYield:function(v,g,b){return u.resultName=g,f(d.d,r2(v),b)},finish:function(v){return f(d.f,v)}},f=function(v,g,b){d.p=u.prev,d.n=u.next;try{return v(g,b)}finally{u.next=d.n}}),u.resultName&&(u[u.resultName]=d.v,u.resultName=void 0),u.sent=d.v,u.next=d.n;try{return c.call(this,u)}finally{d.p=u.prev,d.n=u.next}}}return(Jn=function(){return{wrap:function(f,d,h,v){return e.w(o(f),d,h,v&&v.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(f,d){return new QN(f,d)},AsyncIterator:vv,async:function(f,d,h,v,g){return(r(d)?ZN:d8)(o(f),d,h,v,g)},keys:f8,values:r2}})()}function a2(e,t,n,r,a,o,c){try{var u=e[o](c),f=u.value}catch(d){return void n(d)}u.done?t(f):Promise.resolve(f).then(r,a)}function za(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function c(f){a2(o,r,a,c,u,"next",f)}function u(f){a2(o,r,a,c,u,"throw",f)}c(void 0)})}}var Nf=ee({},k6),m8=Nf.version,l0=Nf.render,h8=Nf.unmountComponentAtNode,Vv;try{var v8=Number((m8||"").split(".")[0]);v8>=18&&(Vv=Nf.createRoot)}catch{}function i2(e){var t=Nf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&jt(t)==="object"&&(t.usingClientEntryPoint=e)}var gv="__rc_react_root__";function g8(e,t){i2(!0);var n=t[gv]||Vv(t);i2(!1),n.render(e),t[gv]=n}function p8(e,t){l0?.(e,t)}function b8(e,t){if(Vv){g8(e,t);return}p8(e,t)}function y8(e){return Vy.apply(this,arguments)}function Vy(){return Vy=za(Jn().mark(function e(t){return Jn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[gv])===null||a===void 0||a.unmount(),delete t[gv]}));case 1:case"end":return r.stop()}},e)})),Vy.apply(this,arguments)}function S8(e){h8(e)}function x8(e){return Ky.apply(this,arguments)}function Ky(){return Ky=za(Jn().mark(function e(t){return Jn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Vv===void 0){r.next=2;break}return r.abrupt("return",y8(t));case 2:S8(t);case 3:case"end":return r.stop()}},e)})),Ky.apply(this,arguments)}const C8=(e,t)=>(b8(e,t),()=>x8(t));let w8=C8;function JN(e){return w8}const s0=()=>({height:0,opacity:0}),o2=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},$8=e=>({height:e?e.offsetHeight:0}),c0=(e,t)=>t?.deadline===!0||t.propertyName==="height",df=(e=uf)=>({motionName:`${e}-motion-collapse`,onAppearStart:s0,onEnterStart:s0,onAppearActive:o2,onEnterActive:o2,onLeaveStart:$8,onLeaveActive:s0,onAppearEnd:c0,onEnterEnd:c0,onLeaveEnd:c0,motionDeadline:500}),Ox=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function or(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const du=(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,c=a.height;if(o||c)return!0}}return!1}),_8=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(",")}}}}},E8=hz("Wave",_8),Kv=`${uf}-wave-target`;function O8(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function I8(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:a}=getComputedStyle(e);return(t=[n,r,a].find(O8))!==null&&t!==void 0?t:null}function u0(e){return Number.isNaN(e)?0:e}const R8=e=>{const{className:t,target:n,component:r,registerUnmount:a}=e,o=s.useRef(null),c=s.useRef(null);s.useEffect(()=>{c.current=a()},[]);const[u,f]=s.useState(null),[d,h]=s.useState([]),[v,g]=s.useState(0),[b,S]=s.useState(0),[C,y]=s.useState(0),[w,$]=s.useState(0),[_,O]=s.useState(!1),I={left:v,top:b,width:C,height:w,borderRadius:d.map(D=>`${D}px`).join(" ")};u&&(I["--wave-color"]=u);function j(){const D=getComputedStyle(n);f(I8(n));const N=D.position==="static",{borderLeftWidth:P,borderTopWidth:A}=D;g(N?n.offsetLeft:u0(-Number.parseFloat(P))),S(N?n.offsetTop:u0(-Number.parseFloat(A))),y(n.offsetWidth),$(n.offsetHeight);const{borderTopLeftRadius:F,borderTopRightRadius:H,borderBottomLeftRadius:k,borderBottomRightRadius:L}=D;h([F,H,L,k].map(T=>u0(Number.parseFloat(T))))}if(s.useEffect(()=>{if(n){const D=mn(()=>{j(),O(!0)});let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(j),N.observe(n)),()=>{mn.cancel(D),N?.disconnect()}}},[n]),!_)return null;const M=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(Kv);return s.createElement(Oi,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(D,N)=>{var P,A;if(N.deadline||N.propertyName==="opacity"){const F=(P=o.current)===null||P===void 0?void 0:P.parentElement;(A=c.current)===null||A===void 0||A.call(c).then(()=>{F?.remove()})}return!1}},({className:D},N)=>s.createElement("div",{ref:_a(o,N),className:se(t,D,{"wave-quick":M}),style:I}))},N8=(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?.insertBefore(a,e?.firstChild);const o=JN();let c=null;function u(){return c}c=o(s.createElement(R8,Object.assign({},t,{target:e,registerUnmount:u})),a)},M8=(e,t,n)=>{const{wave:r}=s.useContext(Ut),[,a,o]=Ta(),c=pn(d=>{const h=e.current;if(r?.disabled||!h)return;const v=h.querySelector(`.${Kv}`)||h,{showEffect:g}=r||{};(g||N8)(v,{className:t,token:a,component:n,event:d,hashId:o})}),u=s.useRef(null);return d=>{mn.cancel(u.current),u.current=mn(()=>{c(d)})}},Mf=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=s.useContext(Ut),o=s.useRef(null),c=a("wave"),[,u]=E8(c),f=M8(o,se(c,u),r);if(xe.useEffect(()=>{const h=o.current;if(!h||h.nodeType!==window.Node.ELEMENT_NODE||n)return;const v=g=>{!du(g.target)||!h.getAttribute||h.getAttribute("disabled")||h.disabled||h.className.includes("disabled")&&!h.className.includes("disabled:")||h.getAttribute("aria-disabled")==="true"||h.className.includes("-leave")||f(g)};return h.addEventListener("click",v,!0),()=>{h.removeEventListener("click",v,!0)}},[n]),!xe.isValidElement(t))return t??null;const d=Hi(t)?_a(Vl(t),o):o;return wa(t,{ref:d})},la=e=>{const t=xe.useContext(Os);return xe.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},j8=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},T8=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"}}}},D8=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}}}},eM=Kn("Space",e=>{const t=Sn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[T8(t),D8(t),j8(t)]},()=>({}),{resetStyle:!1});var tM=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 Uv=s.createContext(null),Zo=(e,t)=>{const n=s.useContext(Uv),r=s.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:o,isLastItem:c}=n,u=a==="vertical"?"-vertical-":"-";return se(`${e}-compact${u}item`,{[`${e}-compact${u}first-item`]:o,[`${e}-compact${u}last-item`]:c,[`${e}-compact${u}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},P8=e=>{const{children:t}=e;return s.createElement(Uv.Provider,{value:null},t)},k8=e=>{const{children:t}=e,n=tM(e,["children"]);return s.createElement(Uv.Provider,{value:s.useMemo(()=>n,[n])},t)},A8=e=>{const{getPrefixCls:t,direction:n}=s.useContext(Ut),{size:r,direction:a,block:o,prefixCls:c,className:u,rootClassName:f,children:d}=e,h=tM(e,["size","direction","block","prefixCls","className","rootClassName","children"]),v=la(_=>r??_),g=t("space-compact",c),[b,S]=eM(g),C=se(g,S,{[`${g}-rtl`]:n==="rtl",[`${g}-block`]:o,[`${g}-vertical`]:a==="vertical"},u,f),y=s.useContext(Uv),w=Ma(d),$=s.useMemo(()=>w.map((_,O)=>{const I=_?.key||`${g}-item-${O}`;return s.createElement(k8,{key:I,compactSize:v,compactDirection:a,isFirstItem:O===0&&(!y||y?.isFirstItem),isLastItem:O===w.length-1&&(!y||y?.isLastItem)},_)}),[r,w,y]);return w.length===0?null:b(s.createElement("div",Object.assign({className:C},h),$))};var z8=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 nM=s.createContext(void 0),L8=e=>{const{getPrefixCls:t,direction:n}=s.useContext(Ut),{prefixCls:r,size:a,className:o}=e,c=z8(e,["prefixCls","size","className"]),u=t("btn-group",r),[,,f]=Ta(),d=s.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),h=se(u,{[`${u}-${d}`]:d,[`${u}-rtl`]:n==="rtl"},o,f);return s.createElement(nM.Provider,{value:a},s.createElement("div",Object.assign({},c,{className:h})))},l2=/^[\u4E00-\u9FA5]{2}$/,Uy=l2.test.bind(l2);function s2(e){return typeof e=="string"}function d0(e){return e==="text"||e==="link"}function H8(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&s2(e.type)&&Uy(e.props.children)?wa(e,{children:e.props.children.split("").join(n)}):s2(e)?Uy(e)?xe.createElement("span",null,e.split("").join(n)):xe.createElement("span",null,e):FN(e)?xe.createElement("span",null,e):e}function B8(e,t){let n=!1;const r=[];return xe.Children.forEach(e,a=>{const o=typeof a,c=o==="string"||o==="number";if(n&&c){const u=r.length-1,f=r[u];r[u]=`${f}${a}`}else r.push(a);n=c}),xe.Children.map(r,a=>H8(a,t))}["default","primary","danger"].concat(ke(Is));const Wy=s.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:o}=e,c=se(`${o}-icon`,n);return xe.createElement("span",{ref:t,className:c,style:r},a)}),c2=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:o}=e,c=se(`${n}-loading-icon`,r);return xe.createElement(Wy,{prefixCls:n,className:c,style:a,ref:t},xe.createElement(qo,{className:o}))}),f0=()=>({width:0,opacity:0,transform:"scale(0)"}),m0=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),F8=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:o,mount:c}=e,u=!!n;return r?xe.createElement(c2,{prefixCls:t,className:a,style:o}):xe.createElement(Oi,{visible:u,motionName:`${t}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:f0,onAppearActive:m0,onEnterStart:f0,onEnterActive:m0,onLeaveStart:m0,onLeaveActive:f0},({className:f,style:d},h)=>{const v=Object.assign(Object.assign({},o),d);return xe.createElement(c2,{prefixCls:t,className:se(a,f),style:v,ref:h})})},u2=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),V8=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}},u2(`${t}-primary`,a),u2(`${t}-danger`,o)]}},da=Math.round;function h0(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 d2=(e,t,n)=>n===0?e:e/100;function Sd(e,t){const n=t||255;return e>n?n:e<0?0:e}let rM=class aM{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 aM)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=Sd(t.r),this.g=Sd(t.g),this.b=Sd(t.b),this.a=typeof t.a=="number"?Sd(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 c=o/255;return c<=.03928?c/12.92:Math.pow((c+.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=da(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],c={r:da(o("r")),g:da(o("g")),b:da(o("b")),a:da(o("a")*100)/100};return this._c(c)}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=>da((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=da(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=da(this.getSaturation()*100),r=da(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]=Sd(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 g=da(r*255);this.r=g,this.g=g,this.b=g}let o=0,c=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,c=h):f>=1&&f<2?(o=h,c=d):f>=2&&f<3?(c=d,u=h):f>=3&&f<4?(c=h,u=d):f>=4&&f<5?(o=h,u=d):f>=5&&f<6&&(o=d,u=h);const v=r-d/2;this.r=da((o+v)*255),this.g=da((c+v)*255),this.b=da((u+v)*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=da(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const c=t/60,u=Math.floor(c),f=c-u,d=da(r*(1-n)*255),h=da(r*(1-n*f)*255),v=da(r*(1-n*(1-f))*255);switch(u){case 0:this.g=v,this.b=d;break;case 1:this.r=h,this.b=d;break;case 2:this.r=d,this.b=v;break;case 3:this.r=d,this.g=h;break;case 4:this.r=v,this.g=d;break;case 5:default:this.g=d,this.b=h;break}}fromHsvString(t){const n=h0(t,d2);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=h0(t,d2);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=h0(t,(r,a)=>a.includes("%")?da(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}};var K8=["b"],U8=["v"],v0=function(t){return Math.round(Number(t||0))},W8=function(t){if(t instanceof rM)return t;if(t&&jt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=Kt(n,K8);return ee(ee({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},ff=(function(e){oi(n,e);var t=Ei(n);function n(r){return xr(this,n),t.call(this,W8(r))}return Cr(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),o=v0(a.s*100),c=v0(a.b*100),u=v0(a.h),f=a.a,d="hsb(".concat(u,", ").concat(o,"%, ").concat(c,"%)"),h="hsba(".concat(u,", ").concat(o,"%, ").concat(c,"%, ").concat(f.toFixed(f===0?0:2),")");return f===1?d:h}},{key:"toHsb",value:function(){var a=this.toHsv(),o=a.v,c=Kt(a,U8);return ee(ee({},c),{},{b:o,a:this.a})}}]),n})(rM),q8=function(t){return t instanceof ff?t:new ff(t)};q8("#1677ff");const Y8=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",G8=(e,t)=>e?Y8(e,t):"";let qy=(function(){function e(t){xr(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(({color:a,percent:o})=>({color:new e(a),percent:o})),this.metaColor=new ff(this.colors[0].color.metaColor)):this.metaColor=new ff(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Cr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return G8(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 X8={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"},Q8=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:X8}))},mf=s.forwardRef(Q8);const Wv=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`}}}),Z8=e=>({animationDuration:e,animationFillMode:"both"}),J8=e=>({animationDuration:e,animationFillMode:"both"}),qv=(e,t,n,r,a=!1)=>{const o=a?"&":"";return{[`
      ${o}${e}-enter,
      ${o}${e}-appear
    `]:Object.assign(Object.assign({},Z8(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},J8(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"}}},eL=new jn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),tL=new jn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),nL=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[qv(r,eL,tL,e.motionDurationMid,t),{[`
        ${a}${r}-enter,
        ${a}${r}-appear
      `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},rL=new jn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),aL=new jn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),iL=new jn("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 jn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),lL=new jn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),sL=new jn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),cL=new jn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),uL=new jn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),dL={"move-up":{inKeyframes:cL,outKeyframes:uL},"move-down":{inKeyframes:rL,outKeyframes:aL},"move-left":{inKeyframes:iL,outKeyframes:oL},"move-right":{inKeyframes:lL,outKeyframes:sL}},ru=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=dL[t];return[qv(r,a,o,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Yv=new jn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Gv=new jn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Xv=new jn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Qv=new jn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),fL=new jn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),mL=new jn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),hL=new jn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),vL=new jn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),gL={"slide-up":{inKeyframes:Yv,outKeyframes:Gv},"slide-down":{inKeyframes:Xv,outKeyframes:Qv},"slide-left":{inKeyframes:fL,outKeyframes:mL},"slide-right":{inKeyframes:hL,outKeyframes:vL}},co=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=gL[t];return[qv(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}}]},Ix=new jn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),pL=new jn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),f2=new jn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),m2=new jn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),bL=new jn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),yL=new jn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),SL=new jn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),xL=new jn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),CL=new jn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),wL=new jn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),$L=new jn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),_L=new jn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),EL={zoom:{inKeyframes:Ix,outKeyframes:pL},"zoom-big":{inKeyframes:f2,outKeyframes:m2},"zoom-big-fast":{inKeyframes:f2,outKeyframes:m2},"zoom-left":{inKeyframes:SL,outKeyframes:xL},"zoom-right":{inKeyframes:CL,outKeyframes:wL},"zoom-up":{inKeyframes:bL,outKeyframes:yL},"zoom-down":{inKeyframes:$L,outKeyframes:_L}},Rx=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=EL[t];return[qv(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}}]},OL=e=>e instanceof qy?e:new qy(e),IL=(e,t)=>{const{r:n,g:r,b:a,a:o}=e.toRgb(),c=new ff(e.toRgbString()).onBackground(t).toHsv();return o<=.5?c.v>.5:n*.299+r*.587+a*.114>192},iM=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Sn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},oM=e=>{var t,n,r,a,o,c;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:Fh(u),v=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:Fh(f),g=(c=e.contentLineHeightLG)!==null&&c!==void 0?c:Fh(d),b=IL(new qy(e.colorBgSolid),"#fff")?"#000":"#fff",S=Is.reduce((C,y)=>Object.assign(Object.assign({},C),{[`${y}ShadowColor`]:`0 ${te(e.controlOutlineWidth)} 0 ${Dd(e[`${y}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},S),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:b,contentFontSize:u,contentFontSizeSM:f,contentFontSizeLG:d,contentLineHeight:h,contentLineHeightSM:v,contentLineHeightLG:g,paddingBlock:Math.max((e.controlHeight-u*h)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-f*v)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-d*g)/2-e.lineWidth,0)})},RL=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,motionDurationSlow:o,motionEaseInOut:c,iconGap:u,calc:f}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:u,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${te(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:ou(),"> a":{color:"currentColor"},"&:not(:disabled)":Wo(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:a,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(d=>`${d} ${o} ${c}`).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()}}}}}},lM=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),NL=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),ML=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Zv=(e,t,n,r,a,o,c,u)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},lM(e,Object.assign({background:t},c),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({},ML(e))}),TL=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Jv=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?TL:jL;return Object.assign(Object.assign({},o(e)),lM(e.componentCls,t,n))},eg=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Jv(e,r,a))}),tg=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Jv(e,r,a))}),ng=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),rg=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Jv(e,n,r))}),uo=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Jv(e,r,a,n))}),DL=e=>{const{componentCls:t}=e;return Is.reduce((n,r)=>{const a=e[`${r}6`],o=e[`${r}1`],c=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`]},eg(e,e.colorTextLightSolid,a,{background:c},{background:d})),tg(e,a,e.colorBgContainer,{color:c,borderColor:c,background:e.colorBgContainer},{color:d,borderColor:d,background:e.colorBgContainer})),ng(e)),rg(e,o,{color:a,background:u},{color:a,background:f})),uo(e,a,"link",{color:c},{color:d})),uo(e,a,"text",{color:c,background:o},{color:d,background:f}))})},{})},PL=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},eg(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),ng(e)),rg(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Zv(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),uo(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),kL=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},tg(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),ng(e)),rg(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),uo(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),uo(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Zv(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),AL=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},eg(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),tg(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ng(e)),rg(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),uo(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),uo(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Zv(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),zL=e=>Object.assign(Object.assign({},uo(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Zv(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),LL=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:PL(e),[`${t}-color-primary`]:kL(e),[`${t}-color-dangerous`]:AL(e),[`${t}-color-link`]:zL(e)},DL(e))},HL=e=>Object.assign(Object.assign(Object.assign(Object.assign({},tg(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),uo(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),eg(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),uo(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Nx=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:o,buttonPaddingHorizontal:c,iconCls:u,buttonPaddingVertical:f,buttonIconOnlyFontSize:d}=e;return[{[t]:{fontSize:a,height:r,padding:`${te(f)} ${te(c)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[u]:{fontSize:d}}}},{[`${n}${n}-circle${t}`]:NL(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},BL=e=>{const t=Sn(e,{fontSize:e.contentFontSize});return Nx(t,e.componentCls)},FL=e=>{const t=Sn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Nx(t,`${e.componentCls}-sm`)},VL=e=>{const t=Sn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Nx(t,`${e.componentCls}-lg`)},KL=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},UL=Kn("Button",e=>{const t=iM(e);return[RL(t),BL(t),FL(t),VL(t),KL(t),LL(t),HL(t),V8(t)]},oM,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function WL(e,t,n,r){const{focusElCls:a,focus:o,borderElCls:c}=n,u=c?"> *":"",f=["hover",o?"focus":null,"active"].filter(Boolean).map(d=>`&:${d} ${u}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[f]:{zIndex:3}},a?{[`&${a}`]:{zIndex:3}}:{}),{[`&[disabled] ${u}`]:{zIndex:0}})}}function qL(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 jf(e,t={focus:!0}){const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},WL(e,r,t,n)),qL(n,r,t))}}function YL(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function GL(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 XL(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},YL(e,t,e.componentCls)),GL(e.componentCls,t))}}const QL=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:a}=e,o=a(r).mul(-1).equal(),c=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({},c()),c(!0))},ZL=Rf(["Button","compact"],e=>{const t=iM(e);return[jf(t),XL(t),QL(t)]},oM);var JL=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 eH(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const tH={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},nH=xe.forwardRef((e,t)=>{var n,r;const{loading:a=!1,prefixCls:o,color:c,variant:u,type:f,danger:d=!1,shape:h,size:v,styles:g,disabled:b,className:S,rootClassName:C,children:y,icon:w,iconPosition:$="start",ghost:_=!1,block:O=!1,htmlType:I="button",classNames:j,style:M={},autoInsertSpace:D,autoFocus:N}=e,P=JL(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),A=f||"default",{button:F}=xe.useContext(Ut),H=h||F?.shape||"default",[k,L]=s.useMemo(()=>{if(c&&u)return[c,u];if(f||d){const ye=tH[A]||[];return d?["danger",ye[1]]:ye}return F?.color&&F?.variant?[F.color,F.variant]:["default","outlined"]},[f,c,u,d,F?.variant,F?.color]),z=k==="danger"?"dangerous":k,{getPrefixCls:V,direction:q,autoInsertSpace:G,className:B,style:U,classNames:K,styles:Y}=va("button"),Q=(n=D??G)!==null&&n!==void 0?n:!0,Z=V("btn",o),[ae,re,ie]=UL(Z),ve=s.useContext(ja),ue=b??ve,oe=s.useContext(nM),he=s.useMemo(()=>eH(a),[a]),[de,me]=s.useState(he.loading),[le,pe]=s.useState(!1),Ce=s.useRef(null),De=Fl(t,Ce),je=s.Children.count(y)===1&&!w&&!d0(L),ge=s.useRef(!0);xe.useEffect(()=>(ge.current=!1,()=>{ge.current=!0}),[]),dn(()=>{let ye=null;he.delay>0?ye=setTimeout(()=>{ye=null,me(!0)},he.delay):me(he.loading);function Re(){ye&&(clearTimeout(ye),ye=null)}return Re},[he.delay,he.loading]),s.useEffect(()=>{if(!Ce.current||!Q)return;const ye=Ce.current.textContent||"";je&&Uy(ye)?le||pe(!0):le&&pe(!1)}),s.useEffect(()=>{N&&Ce.current&&Ce.current.focus()},[]);const Ie=xe.useCallback(ye=>{var Re;if(de||ue){ye.preventDefault();return}(Re=e.onClick)===null||Re===void 0||Re.call(e,("href"in e,ye))},[e.onClick,de,ue]),{compactSize:_e,compactItemClassnames:we}=Zo(Z,q),Fe={large:"lg",small:"sm",middle:void 0},He=la(ye=>{var Re,Ge;return(Ge=(Re=v??_e)!==null&&Re!==void 0?Re:oe)!==null&&Ge!==void 0?Ge:ye}),it=He&&(r=Fe[He])!==null&&r!==void 0?r:"",Ze=de?"loading":w,Ye=or(P,["navigate"]),Je=se(Z,re,ie,{[`${Z}-${H}`]:H!=="default"&&H,[`${Z}-${A}`]:A,[`${Z}-dangerous`]:d,[`${Z}-color-${z}`]:z,[`${Z}-variant-${L}`]:L,[`${Z}-${it}`]:it,[`${Z}-icon-only`]:!y&&y!==0&&!!Ze,[`${Z}-background-ghost`]:_&&!d0(L),[`${Z}-loading`]:de,[`${Z}-two-chinese-chars`]:le&&Q&&!de,[`${Z}-block`]:O,[`${Z}-rtl`]:q==="rtl",[`${Z}-icon-end`]:$==="end"},we,S,C,B),Pe=Object.assign(Object.assign({},U),M),Oe=se(j?.icon,K.icon),Be=Object.assign(Object.assign({},g?.icon||{}),Y.icon||{}),$e=w&&!de?xe.createElement(Wy,{prefixCls:Z,className:Oe,style:Be},w):a&&typeof a=="object"&&a.icon?xe.createElement(Wy,{prefixCls:Z,className:Oe,style:Be},a.icon):xe.createElement(F8,{existIcon:!!w,prefixCls:Z,loading:de,mount:ge.current}),Te=y||y===0?B8(y,je&&Q):null;if(Ye.href!==void 0)return ae(xe.createElement("a",Object.assign({},Ye,{className:se(Je,{[`${Z}-disabled`]:ue}),href:ue?void 0:Ye.href,style:Pe,onClick:Ie,ref:De,tabIndex:ue?-1:0,"aria-disabled":ue}),$e,Te));let be=xe.createElement("button",Object.assign({},P,{type:I,className:Je,style:Pe,onClick:Ie,disabled:ue,ref:De}),$e,Te,we&&xe.createElement(ZL,{prefixCls:Z}));return d0(L)||(be=xe.createElement(Mf,{component:"Button",disabled:de},be)),ae(be)}),gn=nH;gn.Group=L8;gn.__ANT_BUTTON=!0;var sM=s.createContext(null),h2=[];function rH(e,t){var n=s.useState(function(){if(!Ca())return null;var S=document.createElement("div");return S}),r=ce(n,1),a=r[0],o=s.useRef(!1),c=s.useContext(sM),u=s.useState(h2),f=ce(u,2),d=f[0],h=f[1],v=c||(o.current?void 0:function(S){h(function(C){var y=[S].concat(ke(C));return y})});function g(){a.parentElement||document.body.appendChild(a),o.current=!0}function b(){var S;(S=a.parentElement)===null||S===void 0||S.removeChild(a),o.current=!1}return dn(function(){return e?c?c(g):g():b(),b},[e]),dn(function(){d.length&&(d.forEach(function(S){return S()}),h(h2))},[d]),[a,v]}var g0;function cM(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 c=getComputedStyle(e);r.scrollbarColor=c.scrollbarColor,r.scrollbarWidth=c.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,";"):"",v=d?"height: ".concat(u.height,";"):"";Bo(`
#`.concat(t,`::-webkit-scrollbar {
`).concat(h,`
`).concat(v,`
}`),t)}catch(S){console.error(S),a=f,o=d}}document.body.appendChild(n);var g=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,b=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),af(t),{width:g,height:b}}function v2(e){return typeof document>"u"?0:(g0===void 0&&(g0=cM()),g0.width)}function Yy(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:cM(e)}function aH(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var iH="rc-util-locker-".concat(Date.now()),g2=0;function oH(e){var t=!!e,n=s.useState(function(){return g2+=1,"".concat(iH,"_").concat(g2)}),r=ce(n,1),a=r[0];dn(function(){if(t){var o=Yy(document.body).width,c=aH();Bo(`
html body {
  overflow-y: hidden;
  `.concat(c?"width: calc(100% - ".concat(o,"px);"):"",`
}`),a)}else af(a);return function(){af(a)}},[t,a])}var lH=!1;function sH(e){return lH}var p2=function(t){return t===!1?!1:!Ca()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},uM=s.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,c=o===void 0?!0:o,u=e.children,f=s.useState(n),d=ce(f,2),h=d[0],v=d[1],g=h||n;s.useEffect(function(){(c||n)&&v(n)},[n,c]);var b=s.useState(function(){return p2(a)}),S=ce(b,2),C=S[0],y=S[1];s.useEffect(function(){var A=p2(a);y(A??null)});var w=rH(g&&!C),$=ce(w,2),_=$[0],O=$[1],I=C??_;oH(r&&n&&Ca()&&(I===_||I===document.body));var j=null;if(u&&Hi(u)&&t){var M=u;j=M.ref}var D=Fl(j,t);if(!g||!Ca()||C===void 0)return null;var N=I===!1||sH(),P=u;return t&&(P=s.cloneElement(u,{ref:D})),s.createElement(sM.Provider,{value:O},N?P:Li.createPortal(P,I))});function cH(){var e=ee({},Pv);return e.useId}var b2=0,y2=cH();const Mx=y2?(function(t){var n=y2();return t||n}):(function(t){var n=s.useState("ssr-id"),r=ce(n,2),a=r[0],o=r[1];return s.useEffect(function(){var c=b2;b2+=1,o("rc_unique_".concat(c))},[]),t||a});var bs="RC_FORM_INTERNAL_HOOKS",gr=function(){Sr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Rs=s.createContext({getFieldValue:gr,getFieldsValue:gr,getFieldError:gr,getFieldWarning:gr,getFieldsError:gr,isFieldsTouched:gr,isFieldTouched:gr,isFieldValidating:gr,isFieldsValidating:gr,resetFields:gr,setFields:gr,setFieldValue:gr,setFieldsValue:gr,validateFields:gr,submit:gr,getInternalHooks:function(){return gr(),{dispatch:gr,initEntityValue:gr,registerField:gr,useSubscribe:gr,setInitialValues:gr,destroyForm:gr,setCallbacks:gr,registerWatch:gr,getFields:gr,setValidateMessages:gr,setPreserve:gr,getInitialValue:gr}}}),hf=s.createContext(null);function Gy(e){return e==null?[]:Array.isArray(e)?e:[e]}function uH(e){return e&&!!e._init}function Xy(){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 Qy=Xy();function dH(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function fH(e,t,n){if(Av())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&nf(a,n.prototype),a}function Zy(e){var t=typeof Map=="function"?new Map:void 0;return Zy=function(r){if(r===null||!dH(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 fH(r,arguments,Es(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),nf(a,r)},Zy(e)}var mH=/%[sdj%]/g,hH=function(){};function Jy(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 ai(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 c=e.replace(mH,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 c}return e}function vH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function aa(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||vH(t)&&typeof e=="string"&&!e)}function gH(e,t,n){var r=[],a=0,o=e.length;function c(u){r.push.apply(r,ke(u||[])),a++,a===o&&n(r)}e.forEach(function(u){t(u,c)})}function S2(e,t,n){var r=0,a=e.length;function o(c){if(c&&c.length){n(c);return}var u=r;r=r+1,u<a?t(e[u],o):n([])}o([])}function pH(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,ke(e[n]||[]))}),t}var x2=(function(e){oi(n,e);var t=Ei(n);function n(r,a){var o;return xr(this,n),o=t.call(this,"Async Validation Error"),X(xt(o),"errors",void 0),X(xt(o),"fields",void 0),o.errors=r,o.fields=a,o}return Cr(n)})(Zy(Error));function bH(e,t,n,r,a){if(t.first){var o=new Promise(function(g,b){var S=function(w){return r(w),w.length?b(new x2(w,Jy(w))):g(a)},C=pH(e);S2(C,n,S)});return o.catch(function(g){return g}),o}var c=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),f=u.length,d=0,h=[],v=new Promise(function(g,b){var S=function(y){if(h.push.apply(h,y),d++,d===f)return r(h),h.length?b(new x2(h,Jy(h))):g(a)};u.length||(r(h),g(a)),u.forEach(function(C){var y=e[C];c.indexOf(C)!==-1?S2(y,n,S):gH(y,n,S)})});return v.catch(function(g){return g}),v}function yH(e){return!!(e&&e.message!==void 0)}function SH(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function C2(e,t){return function(n){var r;return e.fullFields?r=SH(t,e.fullFields):r=t[n.field||e.fullField],yH(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 w2(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];jt(r)==="object"&&jt(e[n])==="object"?e[n]=ee(ee({},e[n]),r):e[n]=r}}return e}var Cc="enum",xH=function(t,n,r,a,o){t[Cc]=Array.isArray(t[Cc])?t[Cc]:[],t[Cc].indexOf(n)===-1&&a.push(ai(o.messages[Cc],t.fullField,t[Cc].join(", ")))},CH=function(t,n,r,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(ai(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var c=new RegExp(t.pattern);c.test(n)||a.push(ai(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},wH=function(t,n,r,a,o){var c=typeof t.len=="number",u=typeof t.min=="number",f=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=n,v=null,g=typeof n=="number",b=typeof n=="string",S=Array.isArray(n);if(g?v="number":b?v="string":S&&(v="array"),!v)return!1;S&&(h=n.length),b&&(h=n.replace(d,"_").length),c?h!==t.len&&a.push(ai(o.messages[v].len,t.fullField,t.len)):u&&!f&&h<t.min?a.push(ai(o.messages[v].min,t.fullField,t.min)):f&&!u&&h>t.max?a.push(ai(o.messages[v].max,t.fullField,t.max)):u&&f&&(h<t.min||h>t.max)&&a.push(ai(o.messages[v].range,t.fullField,t.min,t.max))},dM=function(t,n,r,a,o,c){t.required&&(!r.hasOwnProperty(t.field)||aa(n,c||t.type))&&a.push(ai(o.messages.required,t.fullField))},hh;const $H=(function(){if(hh)return hh;var e="[a-fA-F\\d:]",t=function(j){return j&&j.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,})?",c="(?:".concat(a.join("|"),")").concat(o),u=new RegExp("(?:^".concat(n,"$)|(?:^").concat(c,"$)")),f=new RegExp("^".concat(n,"$")),d=new RegExp("^".concat(c,"$")),h=function(j){return j&&j.exact?u:new RegExp("(?:".concat(t(j)).concat(n).concat(t(j),")|(?:").concat(t(j)).concat(c).concat(t(j),")"),"g")};h.v4=function(I){return I&&I.exact?f:new RegExp("".concat(t(I)).concat(n).concat(t(I)),"g")},h.v6=function(I){return I&&I.exact?d:new RegExp("".concat(t(I)).concat(c).concat(t(I)),"g")};var v="(?:(?:[a-z]+:)?//)",g="(?:\\S+(?::\\S*)?@)?",b=h.v4().source,S=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})?",_='(?:[/?#][^\\s"]*)?',O="(?:".concat(v,"|www\\.)").concat(g,"(?:localhost|").concat(b,"|").concat(S,"|").concat(C).concat(y).concat(w,")").concat($).concat(_);return hh=new RegExp("(?:^".concat(O,"$)"),"i"),hh});var $2={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},Pd={integer:function(t){return Pd.number(t)&&parseInt(t,10)===t},float:function(t){return Pd.number(t)&&!Pd.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 jt(t)==="object"&&!Pd.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match($2.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match($H())},hex:function(t){return typeof t=="string"&&!!t.match($2.hex)}},_H=function(t,n,r,a,o){if(t.required&&n===void 0){dM(t,n,r,a,o);return}var c=["integer","float","array","regexp","object","method","email","number","date","url","hex"],u=t.type;c.indexOf(u)>-1?Pd[u](n)||a.push(ai(o.messages.types[u],t.fullField,t.type)):u&&jt(n)!==t.type&&a.push(ai(o.messages.types[u],t.fullField,t.type))},EH=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(ai(o.messages.whitespace,t.fullField))};const Fn={required:dM,whitespace:EH,type:_H,range:wH,enum:xH,pattern:CH};var OH=function(t,n,r,a,o){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(aa(n)&&!t.required)return r();Fn.required(t,n,a,c,o)}r(c)},IH=function(t,n,r,a,o){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(n==null&&!t.required)return r();Fn.required(t,n,a,c,o,"array"),n!=null&&(Fn.type(t,n,a,c,o),Fn.range(t,n,a,c,o))}r(c)},RH=function(t,n,r,a,o){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(aa(n)&&!t.required)return r();Fn.required(t,n,a,c,o),n!==void 0&&Fn.type(t,n,a,c,o)}r(c)},NH=function(t,n,r,a,o){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(aa(n,"date")&&!t.required)return r();if(Fn.required(t,n,a,c,o),!aa(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),Fn.type(t,f,a,c,o),f&&Fn.range(t,f.getTime(),a,c,o)}}r(c)},MH="enum",jH=function(t,n,r,a,o){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(aa(n)&&!t.required)return r();Fn.required(t,n,a,c,o),n!==void 0&&Fn[MH](t,n,a,c,o)}r(c)},TH=function(t,n,r,a,o){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(aa(n)&&!t.required)return r();Fn.required(t,n,a,c,o),n!==void 0&&(Fn.type(t,n,a,c,o),Fn.range(t,n,a,c,o))}r(c)},DH=function(t,n,r,a,o){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(aa(n)&&!t.required)return r();Fn.required(t,n,a,c,o),n!==void 0&&(Fn.type(t,n,a,c,o),Fn.range(t,n,a,c,o))}r(c)},PH=function(t,n,r,a,o){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(aa(n)&&!t.required)return r();Fn.required(t,n,a,c,o),n!==void 0&&Fn.type(t,n,a,c,o)}r(c)},kH=function(t,n,r,a,o){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(n===""&&(n=void 0),aa(n)&&!t.required)return r();Fn.required(t,n,a,c,o),n!==void 0&&(Fn.type(t,n,a,c,o),Fn.range(t,n,a,c,o))}r(c)},AH=function(t,n,r,a,o){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(aa(n)&&!t.required)return r();Fn.required(t,n,a,c,o),n!==void 0&&Fn.type(t,n,a,c,o)}r(c)},zH=function(t,n,r,a,o){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(aa(n,"string")&&!t.required)return r();Fn.required(t,n,a,c,o),aa(n,"string")||Fn.pattern(t,n,a,c,o)}r(c)},LH=function(t,n,r,a,o){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(aa(n)&&!t.required)return r();Fn.required(t,n,a,c,o),aa(n)||Fn.type(t,n,a,c,o)}r(c)},HH=function(t,n,r,a,o){var c=[],u=Array.isArray(n)?"array":jt(n);Fn.required(t,n,a,c,o,u),r(c)},BH=function(t,n,r,a,o){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(aa(n,"string")&&!t.required)return r();Fn.required(t,n,a,c,o,"string"),aa(n,"string")||(Fn.type(t,n,a,c,o),Fn.range(t,n,a,c,o),Fn.pattern(t,n,a,c,o),t.whitespace===!0&&Fn.whitespace(t,n,a,c,o))}r(c)},p0=function(t,n,r,a,o){var c=t.type,u=[],f=t.required||!t.required&&a.hasOwnProperty(t.field);if(f){if(aa(n,c)&&!t.required)return r();Fn.required(t,n,a,u,o,c),aa(n,c)||Fn.type(t,n,a,u,o)}r(u)};const Kd={string:BH,method:PH,number:kH,boolean:RH,regexp:LH,integer:DH,float:TH,array:IH,object:AH,enum:jH,pattern:zH,date:NH,url:p0,hex:p0,email:p0,required:HH,any:OH};var Tf=(function(){function e(t){xr(this,e),X(this,"rules",null),X(this,"_messages",Qy),this.define(t)}return Cr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(jt(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=w2(Xy(),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(){},c=n,u=a,f=o;if(typeof u=="function"&&(f=u,u={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,c),Promise.resolve(c);function d(S){var C=[],y={};function w(_){if(Array.isArray(_)){var O;C=(O=C).concat.apply(O,ke(_))}else C.push(_)}for(var $=0;$<S.length;$++)w(S[$]);C.length?(y=Jy(C),f(C,y)):f(null,c)}if(u.messages){var h=this.messages();h===Qy&&(h=Xy()),w2(h,u.messages),u.messages=h}else u.messages=this.messages();var v={},g=u.keys||Object.keys(this.rules);g.forEach(function(S){var C=r.rules[S],y=c[S];C.forEach(function(w){var $=w;typeof $.transform=="function"&&(c===n&&(c=ee({},c)),y=c[S]=$.transform(y),y!=null&&($.type=$.type||(Array.isArray(y)?"array":jt(y)))),typeof $=="function"?$={validator:$}:$=ee({},$),$.validator=r.getValidationMethod($),$.validator&&($.field=S,$.fullField=$.fullField||S,$.type=r.getType($),v[S]=v[S]||[],v[S].push({rule:$,value:y,source:c,field:S}))})});var b={};return bH(v,u,function(S,C){var y=S.rule,w=(y.type==="object"||y.type==="array")&&(jt(y.fields)==="object"||jt(y.defaultField)==="object");w=w&&(y.required||!y.required&&S.value),y.field=S.field;function $(M,D){return ee(ee({},D),{},{fullField:"".concat(y.fullField,".").concat(M),fullFields:y.fullFields?[].concat(ke(y.fullFields),[M]):[M]})}function _(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=Array.isArray(M)?M:[M];!u.suppressWarning&&D.length&&e.warning("async-validator:",D),D.length&&y.message!==void 0&&(D=[].concat(y.message));var N=D.map(C2(y,c));if(u.first&&N.length)return b[y.field]=1,C(N);if(!w)C(N);else{if(y.required&&!S.value)return y.message!==void 0?N=[].concat(y.message).map(C2(y,c)):u.error&&(N=[u.error(y,ai(u.messages.required,y.field))]),C(N);var P={};y.defaultField&&Object.keys(S.value).map(function(H){P[H]=y.defaultField}),P=ee(ee({},P),S.rule.fields);var A={};Object.keys(P).forEach(function(H){var k=P[H],L=Array.isArray(k)?k:[k];A[H]=L.map($.bind(null,H))});var F=new e(A);F.messages(u.messages),S.rule.options&&(S.rule.options.messages=u.messages,S.rule.options.error=u.error),F.validate(S.value,S.rule.options||u,function(H){var k=[];N&&N.length&&k.push.apply(k,ke(N)),H&&H.length&&k.push.apply(k,ke(H)),C(k.length?k:null)})}}var O;if(y.asyncValidator)O=y.asyncValidator(y,S.value,_,S.source,u);else if(y.validator){try{O=y.validator(y,S.value,_,S.source,u)}catch(M){var I,j;(I=(j=console).error)===null||I===void 0||I.call(j,M),u.suppressValidatorError||setTimeout(function(){throw M},0),_(M.message)}O===!0?_():O===!1?_(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):O instanceof Array?_(O):O instanceof Error&&_(O.message)}O&&O.then&&O.then(function(){return _()},function(M){return _(M)})},function(S){d(S)},c)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Kd.hasOwnProperty(n.type))throw new Error(ai("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"?Kd.required:Kd[this.getType(n)]||void 0}}]),e})();X(Tf,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Kd[t]=n});X(Tf,"warning",hH);X(Tf,"messages",Qy);X(Tf,"validators",Kd);var ni="'${name}' is not a valid ${type}",fM={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:ni,method:ni,array:ni,object:ni,number:ni,date:ni,boolean:ni,integer:ni,float:ni,regexp:ni,email:ni,url:ni,hex:ni},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}"}},_2=Tf;function FH(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 eS(e,t,n,r,a){return tS.apply(this,arguments)}function tS(){return tS=za(Jn().mark(function e(t,n,r,a,o){var c,u,f,d,h,v,g,b,S;return Jn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return c=ee({},r),delete c.ruleIndex,_2.warning=function(){},c.validator&&(u=c.validator,c.validator=function(){try{return u.apply(void 0,arguments)}catch(w){return console.error(w),Promise.reject(E2)}}),f=null,c&&c.type==="array"&&c.defaultField&&(f=c.defaultField,delete c.defaultField),d=new _2(X({},t,[c])),h=kc(fM,a.validateMessages),d.messages(h),v=[],y.prev=10,y.next=13,Promise.resolve(d.validate(X({},t,n),ee({},a)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(v=y.t0.errors.map(function(w,$){var _=w.message,O=_===E2?h.default:_;return s.isValidElement(O)?s.cloneElement(O,{key:"error_".concat($)}):O}));case 18:if(!(!v.length&&f)){y.next=23;break}return y.next=21,Promise.all(n.map(function(w,$){return eS("".concat(t,".").concat($),w,f,a,o)}));case 21:return g=y.sent,y.abrupt("return",g.reduce(function(w,$){return[].concat(ke(w),ke($))},[]));case 23:return b=ee(ee({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),S=v.map(function(w){return typeof w=="string"?FH(w,b):w}),y.abrupt("return",S);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),tS.apply(this,arguments)}function VH(e,t,n,r,a,o){var c=e.join("."),u=n.map(function(h,v){var g=h.validator,b=ee(ee({},h),{},{ruleIndex:v});return g&&(b.validator=function(S,C,y){var w=!1,$=function(){for(var I=arguments.length,j=new Array(I),M=0;M<I;M++)j[M]=arguments[M];Promise.resolve().then(function(){Sr(!w,"Your validator function has already return a promise. `callback` will be ignored."),w||y.apply(void 0,j)})},_=g(S,C,$);w=_&&typeof _.then=="function"&&typeof _.catch=="function",Sr(w,"`callback` is deprecated. Please return a promise instead."),w&&_.then(function(){y()}).catch(function(O){y(O||" ")})}),b}).sort(function(h,v){var g=h.warningOnly,b=h.ruleIndex,S=v.warningOnly,C=v.ruleIndex;return!!g==!!S?b-C:g?1:-1}),f;if(a===!0)f=new Promise((function(){var h=za(Jn().mark(function v(g,b){var S,C,y;return Jn().wrap(function($){for(;;)switch($.prev=$.next){case 0:S=0;case 1:if(!(S<u.length)){$.next=12;break}return C=u[S],$.next=5,eS(c,t,C,r,o);case 5:if(y=$.sent,!y.length){$.next=9;break}return b([{errors:y,rule:C}]),$.abrupt("return");case 9:S+=1,$.next=1;break;case 12:g([]);case 13:case"end":return $.stop()}},v)}));return function(v,g){return h.apply(this,arguments)}})());else{var d=u.map(function(h){return eS(c,t,h,r,o).then(function(v){return{errors:v,rule:h}})});f=(a?UH(d):KH(d)).then(function(h){return Promise.reject(h)})}return f.catch(function(h){return h}),f}function KH(e){return nS.apply(this,arguments)}function nS(){return nS=za(Jn().mark(function e(t){return Jn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(a){var o,c=(o=[]).concat.apply(o,ke(a));return c}));case 1:case"end":return r.stop()}},e)})),nS.apply(this,arguments)}function UH(e){return rS.apply(this,arguments)}function rS(){return rS=za(Jn().mark(function e(t){var n;return Jn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n=0,a.abrupt("return",new Promise(function(o){t.forEach(function(c){c.then(function(u){u.errors.length&&o([u]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return a.stop()}},e)})),rS.apply(this,arguments)}function Kr(e){return Gy(e)}function O2(e,t){var n={};return t.forEach(function(r){var a=Aa(e,r);n=Si(n,r,a)}),n}function Kc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return mM(t,r,n)})}function mM(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 WH(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||jt(e)!=="object"||jt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return ke(a).every(function(o){var c=e[o],u=t[o];return typeof c=="function"&&typeof u=="function"?!0:c===u})}function qH(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&jt(t.target)==="object"&&e in t.target?t.target[e]:t}function I2(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(ke(e.slice(0,n)),[a],ke(e.slice(n,t)),ke(e.slice(t+1,r))):o<0?[].concat(ke(e.slice(0,t)),ke(e.slice(t+1,n+1)),[a],ke(e.slice(n+1,r))):e}var YH=["name"],pi=[];function b0(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var jx=(function(e){oi(n,e);var t=Ei(n);function n(r){var a;if(xr(this,n),a=t.call(this,r),X(xt(a),"state",{resetCount:0}),X(xt(a),"cancelRegisterFunc",null),X(xt(a),"mounted",!1),X(xt(a),"touched",!1),X(xt(a),"dirty",!1),X(xt(a),"validatePromise",void 0),X(xt(a),"prevValidating",void 0),X(xt(a),"errors",pi),X(xt(a),"warnings",pi),X(xt(a),"cancelRegister",function(){var f=a.props,d=f.preserve,h=f.isListField,v=f.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(h,d,Kr(v)),a.cancelRegisterFunc=null}),X(xt(a),"getNamePath",function(){var f=a.props,d=f.name,h=f.fieldContext,v=h.prefixName,g=v===void 0?[]:v;return d!==void 0?[].concat(ke(g),ke(d)):[]}),X(xt(a),"getRules",function(){var f=a.props,d=f.rules,h=d===void 0?[]:d,v=f.fieldContext;return h.map(function(g){return typeof g=="function"?g(v):g})}),X(xt(a),"refresh",function(){a.mounted&&a.setState(function(f){var d=f.resetCount;return{resetCount:d+1}})}),X(xt(a),"metaCache",null),X(xt(a),"triggerMetaEvent",function(f){var d=a.props.onMetaChange;if(d){var h=ee(ee({},a.getMeta()),{},{destroy:f});oo(a.metaCache,h)||d(h),a.metaCache=h}else a.metaCache=null}),X(xt(a),"onStoreChange",function(f,d,h){var v=a.props,g=v.shouldUpdate,b=v.dependencies,S=b===void 0?[]:b,C=v.onReset,y=h.store,w=a.getNamePath(),$=a.getValue(f),_=a.getValue(y),O=d&&Kc(d,w);switch(h.type==="valueUpdate"&&h.source==="external"&&!oo($,_)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=pi,a.warnings=pi,a.triggerMetaEvent()),h.type){case"reset":if(!d||O){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=pi,a.warnings=pi,a.triggerMetaEvent(),C?.(),a.refresh();return}break;case"remove":{if(g&&b0(g,f,y,$,_,h)){a.reRender();return}break}case"setField":{var I=h.data;if(O){"touched"in I&&(a.touched=I.touched),"validating"in I&&!("originRCField"in I)&&(a.validatePromise=I.validating?Promise.resolve([]):null),"errors"in I&&(a.errors=I.errors||pi),"warnings"in I&&(a.warnings=I.warnings||pi),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in I&&Kc(d,w,!0)){a.reRender();return}if(g&&!w.length&&b0(g,f,y,$,_,h)){a.reRender();return}break}case"dependenciesUpdate":{var j=S.map(Kr);if(j.some(function(M){return Kc(h.relatedFields,M)})){a.reRender();return}break}default:if(O||(!S.length||w.length||g)&&b0(g,f,y,$,_,h)){a.reRender();return}break}g===!0&&a.reRender()}),X(xt(a),"validateRules",function(f){var d=a.getNamePath(),h=a.getValue(),v=f||{},g=v.triggerName,b=v.validateOnly,S=b===void 0?!1:b,C=Promise.resolve().then(za(Jn().mark(function y(){var w,$,_,O,I,j,M;return Jn().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,_=$===void 0?!1:$,O=w.messageVariables,I=w.validateDebounce,j=a.getRules(),g&&(j=j.filter(function(P){return P}).filter(function(P){var A=P.validateTrigger;if(!A)return!0;var F=Gy(A);return F.includes(g)})),!(I&&g)){N.next=10;break}return N.next=8,new Promise(function(P){setTimeout(P,I)});case 8:if(a.validatePromise===C){N.next=10;break}return N.abrupt("return",[]);case 10:return M=VH(d,h,j,f,_,O),M.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pi;if(a.validatePromise===C){var A;a.validatePromise=null;var F=[],H=[];(A=P.forEach)===null||A===void 0||A.call(P,function(k){var L=k.rule.warningOnly,T=k.errors,z=T===void 0?pi:T;L?H.push.apply(H,ke(z)):F.push.apply(F,ke(z))}),a.errors=F,a.warnings=H,a.triggerMetaEvent(),a.reRender()}}),N.abrupt("return",M);case 13:case"end":return N.stop()}},y)})));return S||(a.validatePromise=C,a.dirty=!0,a.errors=pi,a.warnings=pi,a.triggerMetaEvent(),a.reRender()),C}),X(xt(a),"isFieldValidating",function(){return!!a.validatePromise}),X(xt(a),"isFieldTouched",function(){return a.touched}),X(xt(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var f=a.props.fieldContext,d=f.getInternalHooks(bs),h=d.getInitialValue;return h(a.getNamePath())!==void 0}),X(xt(a),"getErrors",function(){return a.errors}),X(xt(a),"getWarnings",function(){return a.warnings}),X(xt(a),"isListField",function(){return a.props.isListField}),X(xt(a),"isList",function(){return a.props.isList}),X(xt(a),"isPreserve",function(){return a.props.preserve}),X(xt(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(xt(a),"getOnlyChild",function(f){if(typeof f=="function"){var d=a.getMeta();return ee(ee({},a.getOnlyChild(f(a.getControlled(),d,a.props.fieldContext))),{},{isFunction:!0})}var h=Ma(f);return h.length!==1||!s.isValidElement(h[0])?{child:h,isFunction:!1}:{child:h[0],isFunction:!1}}),X(xt(a),"getValue",function(f){var d=a.props.fieldContext.getFieldsValue,h=a.getNamePath();return Aa(f||d(!0),h)}),X(xt(a),"getControlled",function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=a.props,h=d.name,v=d.trigger,g=d.validateTrigger,b=d.getValueFromEvent,S=d.normalize,C=d.valuePropName,y=d.getValueProps,w=d.fieldContext,$=g!==void 0?g:w.validateTrigger,_=a.getNamePath(),O=w.getInternalHooks,I=w.getFieldsValue,j=O(bs),M=j.dispatch,D=a.getValue(),N=y||function(k){return X({},C,k)},P=f[v],A=h!==void 0?N(D):{},F=ee(ee({},f),A);F[v]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var k,L=arguments.length,T=new Array(L),z=0;z<L;z++)T[z]=arguments[z];b?k=b.apply(void 0,T):k=qH.apply(void 0,[C].concat(T)),S&&(k=S(k,D,I(!0))),k!==D&&M({type:"updateValue",namePath:_,value:k}),P&&P.apply(void 0,T)};var H=Gy($||[]);return H.forEach(function(k){var L=F[k];F[k]=function(){L&&L.apply(void 0,arguments);var T=a.props.rules;T&&T.length&&M({type:"validateField",namePath:_,triggerName:k})}}),F}),r.fieldContext){var o=r.fieldContext.getInternalHooks,c=o(bs),u=c.initEntityValue;u(xt(a))}return a}return Cr(n,[{key:"componentDidMount",value:function(){var a=this.props,o=a.shouldUpdate,c=a.fieldContext;if(this.mounted=!0,c){var u=c.getInternalHooks,f=u(bs),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,c=this.getOnlyChild(o),u=c.child,f=c.isFunction,d;return f?d=u:s.isValidElement(u)?d=s.cloneElement(u,this.getControlled(u.props)):(Sr(!u,"`children` of Field is not validate ReactElement."),d=u),s.createElement(s.Fragment,{key:a},d)}}]),n})(s.Component);X(jx,"contextType",Rs);X(jx,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Tx(e){var t,n=e.name,r=Kt(e,YH),a=s.useContext(Rs),o=s.useContext(hf),c=n!==void 0?Kr(n):void 0,u=(t=r.isListField)!==null&&t!==void 0?t:!!o,f="keep";return u||(f="_".concat((c||[]).join("_"))),s.createElement(jx,Me({key:f,name:c,isListField:u},r,{fieldContext:a}))}function hM(e){var t=e.name,n=e.initialValue,r=e.children,a=e.rules,o=e.validateTrigger,c=e.isListField,u=s.useContext(Rs),f=s.useContext(hf),d=s.useRef({keys:[],id:0}),h=d.current,v=s.useMemo(function(){var C=Kr(u.prefixName)||[];return[].concat(ke(C),ke(Kr(t)))},[u.prefixName,t]),g=s.useMemo(function(){return ee(ee({},u),{},{prefixName:v})},[u,v]),b=s.useMemo(function(){return{getKey:function(y){var w=v.length,$=y[w];return[h.keys[$],y.slice(w+1)]}}},[v]);if(typeof r!="function")return Sr(!1,"Form.List only accepts function as children."),null;var S=function(y,w,$){var _=$.source;return _==="internal"?!1:y!==w};return s.createElement(hf.Provider,{value:b},s.createElement(Rs.Provider,{value:g},s.createElement(Tx,{name:[],shouldUpdate:S,rules:a,validateTrigger:o,initialValue:n,isList:!0,isListField:c??!!f},function(C,y){var w=C.value,$=w===void 0?[]:w,_=C.onChange,O=u.getFieldValue,I=function(){var N=O(v||[]);return N||[]},j={add:function(N,P){var A=I();P>=0&&P<=A.length?(h.keys=[].concat(ke(h.keys.slice(0,P)),[h.id],ke(h.keys.slice(P))),_([].concat(ke(A.slice(0,P)),[N],ke(A.slice(P))))):(h.keys=[].concat(ke(h.keys),[h.id]),_([].concat(ke(A),[N]))),h.id+=1},remove:function(N){var P=I(),A=new Set(Array.isArray(N)?N:[N]);A.size<=0||(h.keys=h.keys.filter(function(F,H){return!A.has(H)}),_(P.filter(function(F,H){return!A.has(H)})))},move:function(N,P){if(N!==P){var A=I();N<0||N>=A.length||P<0||P>=A.length||(h.keys=I2(h.keys,N,P),_(I2(A,N,P)))}}},M=$||[];return Array.isArray(M)||(M=[]),r(M.map(function(D,N){var P=h.keys[N];return P===void 0&&(h.keys[N]=h.id,P=h.keys[N],h.id+=1),{name:N,key:P,isListField:!0}}),j,y)})))}function GH(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(c,u){c.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 vM="__@field_split__";function y0(e){return e.map(function(t){return"".concat(jt(t),":").concat(t)}).join(vM)}var wc=(function(){function e(){xr(this,e),X(this,"kvs",new Map)}return Cr(e,[{key:"set",value:function(n,r){this.kvs.set(y0(n),r)}},{key:"get",value:function(n){return this.kvs.get(y0(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(y0(n))}},{key:"map",value:function(n){return ke(this.kvs.entries()).map(function(r){var a=ce(r,2),o=a[0],c=a[1],u=o.split(vM);return n({key:u.map(function(f){var d=f.match(/^([^:]*):(.*)$/),h=ce(d,3),v=h[1],g=h[2];return v==="number"?Number(g):g}),value:c})})}},{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})(),XH=["name"],QH=Cr(function e(t){var n=this;xr(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===bs?(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}):(Sr(!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,c=kc(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(u){var f=u.key;c=Si(c,f,Aa(r,f))}),n.prevWithoutPreserves=null,n.updateStore(c)}}),X(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new wc;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=Aa(n.initialValues,r);return r.length?kc(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(c){c(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 wc;return n.getFieldEntities(r).forEach(function(o){var c=o.getNamePath();a.set(c,o)}),a}),X(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var c=Kr(o);return a.get(c)||{INVALIDATE_NAME_PATH:Kr(o)}})}),X(this,"getFieldsValue",function(r,a){n.warningUnhooked();var o,c,u;if(r===!0||Array.isArray(r)?(o=r,c=a):r&&jt(r)==="object"&&(u=r.strict,c=r.filter),o===!0&&!c)return n.store;var f=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),d=[];return f.forEach(function(h){var v,g,b="INVALIDATE_NAME_PATH"in h?h.INVALIDATE_NAME_PATH:h.getNamePath();if(u){var S,C;if((S=(C=h).isList)!==null&&S!==void 0&&S.call(C))return}else if(!o&&(v=(g=h).isListField)!==null&&v!==void 0&&v.call(g))return;if(!c)d.push(b);else{var y="getMeta"in h?h.getMeta():null;c(y)&&d.push(b)}}),O2(n.store,d.map(Kr))}),X(this,"getFieldValue",function(r){n.warningUnhooked();var a=Kr(r);return Aa(n.store,a)}),X(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,c){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Kr(r[c]),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 c=a[0],u=a[1],f,d=!1;a.length===0?f=null:a.length===1?Array.isArray(c)?(f=c.map(Kr),d=!1):(f=null,d=c):(f=c.map(Kr),d=u);var h=n.getFieldEntities(!0),v=function(y){return y.isFieldTouched()};if(!f)return d?h.every(function(C){return v(C)||C.isList()}):h.some(v);var g=new wc;f.forEach(function(C){g.set(C,[])}),h.forEach(function(C){var y=C.getNamePath();f.forEach(function(w){w.every(function($,_){return y[_]===$})&&g.update(w,function($){return[].concat(ke($),[C])})})});var b=function(y){return y.some(v)},S=g.map(function(C){var y=C.value;return y});return d?S.every(b):S.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(c){return c.isFieldValidating()});var o=r.map(Kr);return a.some(function(c){var u=c.getNamePath();return Kc(o,u)&&c.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 wc,o=n.getFieldEntities(!0);o.forEach(function(f){var d=f.props.initialValue,h=f.getNamePath();if(d!==void 0){var v=a.get(h)||new Set;v.add({entity:f,value:d}),a.set(h,v)}});var c=function(d){d.forEach(function(h){var v=h.props.initialValue;if(v!==void 0){var g=h.getNamePath(),b=n.getInitialValue(g);if(b!==void 0)Sr(!1,"Form already set 'initialValues' with path '".concat(g.join("."),"'. Field can not overwrite it."));else{var S=a.get(g);if(S&&S.size>1)Sr(!1,"Multiple Field with path '".concat(g.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(S){var C=n.getFieldValue(g),y=h.isListField();!y&&(!r.skipExist||C===void 0)&&n.updateStore(Si(n.store,g,ke(S)[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,ke(ke(d).map(function(v){return v.entity})))}})):u=o,c(u)}),X(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(kc(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(Kr);o.forEach(function(c){var u=n.getInitialValue(c);n.updateStore(Si(n.store,c,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(c){var u=c.name,f=Kt(c,XH),d=Kr(u);o.push(d),"value"in f&&n.updateStore(Si(n.store,d,f.value)),n.notifyObservers(a,[d],{type:"setField",data:c})}),n.notifyWatch(o)}),X(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var c=o.getNamePath(),u=o.getMeta(),f=ee(ee({},u),{},{name:c,value:n.getFieldValue(c)});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(),c=Aa(n.store,o);c===void 0&&n.updateStore(Si(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(c,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(v){return v!==r}),!n.isMergedPreserve(u)&&(!c||f.length>1)){var d=c?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==d&&n.fieldEntities.every(function(v){return!mM(v.getNamePath(),a)})){var h=n.store;n.updateStore(Si(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 c=r.namePath,u=r.triggerName;n.validateFields([c],{triggerName:u});break}}}),X(this,"notifyObservers",function(r,a,o){if(n.subscribable){var c=ee(ee({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(u){var f=u.onStoreChange;f(r,a,c)})}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(ke(o))}),o}),X(this,"updateValue",function(r,a){var o=Kr(r),c=n.store;n.updateStore(Si(n.store,o,a)),n.notifyObservers(c,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var u=n.triggerDependenciesUpdate(c,o),f=n.callbacks.onValuesChange;if(f){var d=O2(n.store,[o]);f(d,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(ke(u)))}),X(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var o=kc(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=[],c=new wc;n.getFieldEntities().forEach(function(f){var d=f.props.dependencies;(d||[]).forEach(function(h){var v=Kr(h);c.update(v,function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return g.add(f),g})})});var u=function f(d){var h=c.get(d)||new Set;h.forEach(function(v){if(!a.has(v)){a.add(v);var g=v.getNamePath();v.isFieldDirty()&&g.length&&(o.push(g),f(g))}})};return u(r),o}),X(this,"triggerOnFieldsChange",function(r,a){var o=n.callbacks.onFieldsChange;if(o){var c=n.getFields();if(a){var u=new wc;a.forEach(function(d){var h=d.name,v=d.errors;u.set(h,v)}),c.forEach(function(d){d.errors=u.get(d.name)||d.errors})}var f=c.filter(function(d){var h=d.name;return Kc(r,h)});f.length&&o(f,c)}}),X(this,"validateFields",function(r,a){n.warningUnhooked();var o,c;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,c=a):c=r;var u=!!o,f=u?o.map(Kr):[],d=[],h=String(Date.now()),v=new Set,g=c||{},b=g.recursive,S=g.dirty;n.getFieldEntities(!0).forEach(function($){if(u||f.push($.getNamePath()),!(!$.props.rules||!$.props.rules.length)&&!(S&&!$.isFieldDirty())){var _=$.getNamePath();if(v.add(_.join(h)),!u||Kc(f,_,b)){var O=$.validateRules(ee({validateMessages:ee(ee({},fM),n.validateMessages)},c));d.push(O.then(function(){return{name:_,errors:[],warnings:[]}}).catch(function(I){var j,M=[],D=[];return(j=I.forEach)===null||j===void 0||j.call(I,function(N){var P=N.rule.warningOnly,A=N.errors;P?D.push.apply(D,ke(A)):M.push.apply(M,ke(A))}),M.length?Promise.reject({name:_,errors:M,warnings:D}):{name:_,errors:M,warnings:D}}))}}});var C=GH(d);n.lastValidatePromise=C,C.catch(function($){return $}).then(function($){var _=$.map(function(O){var I=O.name;return I});n.notifyObservers(n.store,_,{type:"validateFinish"}),n.triggerOnFieldsChange(_,$)});var y=C.then(function(){return n.lastValidatePromise===C?Promise.resolve(n.getFieldsValue(f)):Promise.reject([])}).catch(function($){var _=$.filter(function(O){return O&&O.errors.length});return Promise.reject({values:n.getFieldsValue(f),errorFields:_,outOfDate:n.lastValidatePromise!==C})});y.catch(function($){return $});var w=f.filter(function($){return v.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 Dx(e){var t=s.useRef(),n=s.useState({}),r=ce(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},c=new QH(o);t.current=c.getForm()}return[t.current]}var aS=s.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),gM=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,o=t.children,c=s.useContext(aS),u=s.useRef({});return s.createElement(aS.Provider,{value:ee(ee({},c),{},{validateMessages:ee(ee({},c.validateMessages),n),triggerFormChange:function(d,h){r&&r(d,{changedFields:h,forms:u.current}),c.triggerFormChange(d,h)},triggerFormFinish:function(d,h){a&&a(d,{values:h,forms:u.current}),c.triggerFormFinish(d,h)},registerForm:function(d,h){d&&(u.current=ee(ee({},u.current),{},X({},d,h))),c.registerForm(d,h)},unregisterForm:function(d){var h=ee({},u.current);delete h[d],u.current=h,c.unregisterForm(d)}})},o)},ZH=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],JH=function(t,n){var r=t.name,a=t.initialValues,o=t.fields,c=t.form,u=t.preserve,f=t.children,d=t.component,h=d===void 0?"form":d,v=t.validateMessages,g=t.validateTrigger,b=g===void 0?"onChange":g,S=t.onValuesChange,C=t.onFieldsChange,y=t.onFinish,w=t.onFinishFailed,$=t.clearOnDestroy,_=Kt(t,ZH),O=s.useRef(null),I=s.useContext(aS),j=Dx(c),M=ce(j,1),D=M[0],N=D.getInternalHooks(bs),P=N.useSubscribe,A=N.setInitialValues,F=N.setCallbacks,H=N.setValidateMessages,k=N.setPreserve,L=N.destroyForm;s.useImperativeHandle(n,function(){return ee(ee({},D),{},{nativeElement:O.current})}),s.useEffect(function(){return I.registerForm(r,D),function(){I.unregisterForm(r)}},[I,D,r]),H(ee(ee({},I.validateMessages),v)),F({onValuesChange:S,onFieldsChange:function(Y){if(I.triggerFormChange(r,Y),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,[Y].concat(Z))}},onFinish:function(Y){I.triggerFormFinish(r,Y),y&&y(Y)},onFinishFailed:w}),k(u);var T=s.useRef(null);A(a,!T.current),T.current||(T.current=!0),s.useEffect(function(){return function(){return L($)}},[]);var z,V=typeof f=="function";if(V){var q=D.getFieldsValue(!0);z=f(q,D)}else z=f;P(!V);var G=s.useRef();s.useEffect(function(){WH(G.current||[],o||[])||D.setFields(o||[]),G.current=o},[o,D]);var B=s.useMemo(function(){return ee(ee({},D),{},{validateTrigger:b})},[D,b]),U=s.createElement(hf.Provider,{value:null},s.createElement(Rs.Provider,{value:B},z));return h===!1?U:s.createElement(h,Me({},_,{ref:O,onSubmit:function(Y){Y.preventDefault(),Y.stopPropagation(),D.submit()},onReset:function(Y){var Q;Y.preventDefault(),D.resetFields(),(Q=_.onReset)===null||Q===void 0||Q.call(_,Y)}}),U)};function R2(e){try{return JSON.stringify(e)}catch{return Math.random()}}function pM(){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,c=uH(o)?{form:o}:o,u=c.form,f=s.useState(),d=ce(f,2),h=d[0],v=d[1],g=s.useMemo(function(){return R2(h)},[h]),b=s.useRef(g);b.current=g;var S=s.useContext(Rs),C=u||S,y=C&&C._init,w=Kr(r),$=s.useRef(w);return $.current=w,s.useEffect(function(){if(y){var _=C.getFieldsValue,O=C.getInternalHooks,I=O(bs),j=I.registerWatch,M=function(A,F){var H=c.preserve?F:A;return typeof r=="function"?r(H):Aa(H,$.current)},D=j(function(P,A){var F=M(P,A),H=R2(F);b.current!==H&&(b.current=H,v(F))}),N=M(_(),_(!0));return h!==N&&v(N),D}},[y]),h}var eB=s.forwardRef(JH),fu=eB;fu.FormProvider=gM;fu.Field=Tx;fu.List=hM;fu.useForm=Dx;fu.useWatch=pM;const Yo=s.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),bM=s.createContext(null),yM=e=>{const t=or(e,["prefixCls"]);return s.createElement(gM,Object.assign({},t))},Px=s.createContext({prefixCls:""}),ia=s.createContext({}),SM=({children:e,status:t,override:n})=>{const r=s.useContext(ia),a=s.useMemo(()=>{const o=Object.assign({},r);return n&&delete o.isFormItemInput,t&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[t,n,r]);return s.createElement(ia.Provider,{value:a},e)},xM=s.createContext(void 0),Go=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=xe.createElement(SM,{override:!0,status:!0},a)),t&&(a=xe.createElement(P8,null,a)),a};function vf(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function N2(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function M2(e){const{closable:t,closeIcon:n}=e||{};return xe.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])}const tB={};function nB(e,t,n=tB){const r=M2(e),a=M2(t),[o]=ho("global",lo.global),c=typeof r!="boolean"?!!r?.disabled:!1,u=xe.useMemo(()=>Object.assign({closeIcon:xe.createElement(cu,null)},n),[n]),f=xe.useMemo(()=>r===!1?!1:r?vf(u,a,r):a===!1?!1:a?vf(u,a):u.closable?u:!1,[r,a,u]);return xe.useMemo(()=>{var d,h;if(f===!1)return[!1,null,c,{}];const{closeIconRender:v}=u,{closeIcon:g}=f;let b=g;const S=ma(f,!0);return b!=null&&(v&&(b=v(g)),b=xe.isValidElement(b)?xe.cloneElement(b,Object.assign(Object.assign(Object.assign({},b.props),{"aria-label":(h=(d=b.props)===null||d===void 0?void 0:d["aria-label"])!==null&&h!==void 0?h:o.close}),S)):xe.createElement("span",Object.assign({"aria-label":o.close},S),b)),[!0,b,c,S]},[c,o.close,f,u])}var CM=function(t){if(Ca()&&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},rB=function(t,n){if(!CM(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function iS(e,t){return!Array.isArray(e)&&t!==void 0?rB(e,t):CM(e)}const ag=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:o}=e,c=se({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),u=se({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),f=s.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return s.createElement("span",{className:se(t,c,u,n),style:Object.assign(Object.assign({},f),r)})},aB=new jn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ig=e=>({height:e,lineHeight:te(e)}),Uc=e=>Object.assign({width:e},ig(e)),iB=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:aB,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),S0=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},ig(e)),oB=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Uc(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Uc(a)),[`${t}${t}-sm`]:Object.assign({},Uc(o))}},lB=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:c,calc:u}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},S0(t,u)),[`${r}-lg`]:Object.assign({},S0(a,u)),[`${r}-sm`]:Object.assign({},S0(o,u))}},j2=e=>Object.assign({width:e},ig(e)),sB=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},j2(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},j2(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%"}}},x0=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},C0=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},ig(e)),cB=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:c,calc:u}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:u(r).mul(2).equal(),minWidth:u(r).mul(2).equal()},C0(r,u))},x0(e,r,n)),{[`${n}-lg`]:Object.assign({},C0(a,u))}),x0(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},C0(o,u))}),x0(e,o,`${n}-sm`))},uB=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:c,skeletonImageCls:u,controlHeight:f,controlHeightLG:d,controlHeightSM:h,gradientFromColor:v,padding:g,marginSM:b,borderRadius:S,titleHeight:C,blockRadius:y,paragraphLiHeight:w,controlHeightXS:$,paragraphMarginTop:_}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:g,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:v},Uc(f)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Uc(d)),[`${n}-sm`]:Object.assign({},Uc(h))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:C,background:v,borderRadius:y,[`+ ${a}`]:{marginBlockStart:h}},[a]:{padding:0,"> li":{width:"100%",height:w,listStyle:"none",background:v,borderRadius:y,"+ li":{marginBlockStart:$}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:S}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:b,[`+ ${a}`]:{marginBlockStart:_}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},cB(e)),oB(e)),lB(e)),sB(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[c]:{width:"100%"}},[`${t}${t}-active`]:{[`
        ${r},
        ${a} > li,
        ${n},
        ${o},
        ${c},
        ${u}
      `]:Object.assign({},iB(e))}}},dB=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}},mu=Kn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Sn(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 uB(r)},dB,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),fB=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:o="circle",size:c="default"}=e,{getPrefixCls:u}=s.useContext(Ut),f=u("skeleton",t),[d,h,v]=mu(f),g=or(e,["prefixCls","className"]),b=se(f,`${f}-element`,{[`${f}-active`]:a},n,r,h,v);return d(s.createElement("div",{className:b},s.createElement(ag,Object.assign({prefixCls:`${f}-avatar`,shape:o,size:c},g))))},mB=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o=!1,size:c="default"}=e,{getPrefixCls:u}=s.useContext(Ut),f=u("skeleton",t),[d,h,v]=mu(f),g=or(e,["prefixCls"]),b=se(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:o},n,r,h,v);return d(s.createElement("div",{className:b},s.createElement(ag,Object.assign({prefixCls:`${f}-button`,size:c},g))))},hB="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",vB=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o}=e,{getPrefixCls:c}=s.useContext(Ut),u=c("skeleton",t),[f,d,h]=mu(u),v=se(u,`${u}-element`,{[`${u}-active`]:o},n,r,d,h);return f(s.createElement("div",{className:v},s.createElement("div",{className:se(`${u}-image`,n),style:a},s.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${u}-image-svg`},s.createElement("title",null,"Image placeholder"),s.createElement("path",{d:hB,className:`${u}-image-path`})))))},gB=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o,size:c="default"}=e,{getPrefixCls:u}=s.useContext(Ut),f=u("skeleton",t),[d,h,v]=mu(f),g=or(e,["prefixCls"]),b=se(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:o},n,r,h,v);return d(s.createElement("div",{className:b},s.createElement(ag,Object.assign({prefixCls:`${f}-input`,size:c},g))))},pB=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o,children:c}=e,{getPrefixCls:u}=s.useContext(Ut),f=u("skeleton",t),[d,h,v]=mu(f),g=se(f,`${f}-element`,{[`${f}-active`]:o},h,n,r,v);return d(s.createElement("div",{className:g},s.createElement("div",{className:se(`${f}-image`,n),style:a},c)))},bB=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},yB=e=>{const{prefixCls:t,className:n,style:r,rows:a=0}=e,o=Array.from({length:a}).map((c,u)=>s.createElement("li",{key:u,style:{width:bB(u,e)}}));return s.createElement("ul",{className:se(t,n),style:r},o)},SB=({prefixCls:e,className:t,width:n,style:r})=>s.createElement("h3",{className:se(e,t),style:Object.assign({width:n},r)});function w0(e){return e&&typeof e=="object"?e:{}}function xB(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function CB(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function wB(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const hu=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:o,children:c,avatar:u=!1,title:f=!0,paragraph:d=!0,active:h,round:v}=e,{getPrefixCls:g,direction:b,className:S,style:C}=va("skeleton"),y=g("skeleton",t),[w,$,_]=mu(y);if(n||!("loading"in e)){const O=!!u,I=!!f,j=!!d;let M;if(O){const P=Object.assign(Object.assign({prefixCls:`${y}-avatar`},xB(I,j)),w0(u));M=s.createElement("div",{className:`${y}-header`},s.createElement(ag,Object.assign({},P)))}let D;if(I||j){let P;if(I){const F=Object.assign(Object.assign({prefixCls:`${y}-title`},CB(O,j)),w0(f));P=s.createElement(SB,Object.assign({},F))}let A;if(j){const F=Object.assign(Object.assign({prefixCls:`${y}-paragraph`},wB(O,I)),w0(d));A=s.createElement(yB,Object.assign({},F))}D=s.createElement("div",{className:`${y}-content`},P,A)}const N=se(y,{[`${y}-with-avatar`]:O,[`${y}-active`]:h,[`${y}-rtl`]:b==="rtl",[`${y}-round`]:v},S,r,a,$,_);return w(s.createElement("div",{className:N,style:Object.assign(Object.assign({},C),o)},M,D))}return c??null};hu.Button=mB;hu.Avatar=fB;hu.Input=gB;hu.Image=vB;hu.Node=pB;const $B=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"}}}},_B=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},EB=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,o={};for(let c=a;c>=0;c--)c===0?(o[`${r}${t}-${c}`]={display:"none"},o[`${r}-push-${c}`]={insetInlineStart:"auto"},o[`${r}-pull-${c}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${c}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${c}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${c}`]={marginInlineStart:0},o[`${r}${t}-order-${c}`]={order:0}):(o[`${r}${t}-${c}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${c/a*100}%`,maxWidth:`${c/a*100}%`}],o[`${r}${t}-push-${c}`]={insetInlineStart:`${c/a*100}%`},o[`${r}${t}-pull-${c}`]={insetInlineEnd:`${c/a*100}%`},o[`${r}${t}-offset-${c}`]={marginInlineStart:`${c/a*100}%`},o[`${r}${t}-order-${c}`]={order:c});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},oS=(e,t)=>EB(e,t),OB=(e,t,n)=>({[`@media (min-width: ${te(t)})`]:Object.assign({},oS(e,n))}),IB=()=>({}),RB=()=>({}),NB=Kn("Grid",$B,IB),MB=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),jB=Kn("Grid",e=>{const t=Sn(e,{gridColumns:24}),n=MB(t);return delete n.xs,[_B(t),oS(t,""),oS(t,"-xs"),Object.keys(n).map(r=>OB(t,n[r],`-${r}`)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},RB),TB=xe.createContext({});function DB(e){return t=>s.createElement(vo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},s.createElement(e,Object.assign({},t)))}const og=(e,t,n,r,a)=>DB(c=>{const{prefixCls:u,style:f}=c,d=s.useRef(null),[h,v]=s.useState(0),[g,b]=s.useState(0),[S,C]=Wn(!1,{value:c.open}),{getPrefixCls:y}=s.useContext(Ut),w=y(r||"select",u);s.useEffect(()=>{if(C(!0),typeof ResizeObserver<"u"){const O=new ResizeObserver(j=>{const M=j[0].target;v(M.offsetHeight+8),b(M.offsetWidth)}),I=setInterval(()=>{var j;const M=a?`.${a(w)}`:`.${w}-dropdown`,D=(j=d.current)===null||j===void 0?void 0:j.querySelector(M);D&&(clearInterval(I),O.observe(D))},10);return()=>{clearInterval(I),O.disconnect()}}},[]);let $=Object.assign(Object.assign({},c),{style:Object.assign(Object.assign({},f),{margin:0}),open:S,visible:S,getPopupContainer:()=>d.current});t&&Object.assign($,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const _={paddingBottom:h,position:"relative",minWidth:g};return s.createElement("div",{ref:d,style:_},s.createElement(e,Object.assign({},$)))}),lg=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))});var sg=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,o=t.children,c=t.onMouseDown,u=t.onClick,f=typeof r=="function"?r(a):r;return s.createElement("span",{className:n,onMouseDown:function(h){h.preventDefault(),c?.(h)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},f!==void 0?f:s.createElement("span",{className:se(n.split(/\s+/).map(function(d){return"".concat(d,"-icon")}))},o))},PB=function(t,n,r,a,o){var c=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=xe.useMemo(function(){if(jt(a)==="object")return a.clearIcon;if(o)return o},[a,o]),h=xe.useMemo(function(){return!!(!c&&a&&(r.length||u)&&!(f==="combobox"&&u===""))},[a,c,r.length,u,f]);return{allowClear:h,clearIcon:xe.createElement(sg,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:d},"×")}},wM=s.createContext(null);function kB(){return s.useContext(wM)}function AB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=s.useState(!1),n=ce(t,2),r=n[0],a=n[1],o=s.useRef(null),c=function(){window.clearTimeout(o.current)};s.useEffect(function(){return c},[]);var u=function(d,h){c(),o.current=window.setTimeout(function(){a(d),h&&h()},e)};return[r,u,c]}function $M(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=s.useRef(null),n=s.useRef(null);s.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 zB(e,t,n,r){var a=s.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},s.useEffect(function(){function o(c){var u;if(!((u=a.current)!==null&&u!==void 0&&u.customizedTrigger)){var f=c.target;f.shadowRoot&&c.composed&&(f=c.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&&![Mt.ESC,Mt.SHIFT,Mt.BACKSPACE,Mt.TAB,Mt.WIN_KEY,Mt.ALT,Mt.META,Mt.WIN_KEY_RIGHT,Mt.CTRL,Mt.SEMICOLON,Mt.EQUALS,Mt.CAPS_LOCK,Mt.CONTEXT_MENU,Mt.F1,Mt.F2,Mt.F3,Mt.F4,Mt.F5,Mt.F6,Mt.F7,Mt.F8,Mt.F9,Mt.F10,Mt.F11,Mt.F12].includes(e)}var HB=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$c=void 0;function BB(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,o=e.renderItem,c=e.responsive,u=e.responsiveDisabled,f=e.registerSize,d=e.itemKey,h=e.className,v=e.style,g=e.children,b=e.display,S=e.order,C=e.component,y=C===void 0?"div":C,w=Kt(e,HB),$=c&&!b;function _(D){f(d,D)}s.useEffect(function(){return function(){_(null)}},[]);var O=o&&a!==$c?o(a,{index:S}):g,I;r||(I={opacity:$?0:1,height:$?0:$c,overflowY:$?"hidden":$c,order:c?S:$c,pointerEvents:$?"none":$c,position:$?"absolute":$c});var j={};$&&(j["aria-hidden"]=!0);var M=s.createElement(y,Me({className:se(!r&&n,h),style:ee(ee({},I),v)},j,w,{ref:t}),O);return c&&(M=s.createElement(xa,{onResize:function(N){var P=N.offsetWidth;_(P)},disabled:u},M)),M}var Lc=s.forwardRef(BB);Lc.displayName="Item";function FB(e){if(typeof MessageChannel>"u")mn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function VB(){var e=s.useRef(null),t=function(r){e.current||(e.current=[],FB(function(){Li.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function _c(e,t){var n=s.useState(t),r=ce(n,2),a=r[0],o=r[1],c=pn(function(u){e(function(){o(u)})});return[a,c]}var pv=xe.createContext(null),KB=["component"],UB=["className"],WB=["className"],qB=function(t,n){var r=s.useContext(pv);if(!r){var a=t.component,o=a===void 0?"div":a,c=Kt(t,KB);return s.createElement(o,Me({},c,{ref:n}))}var u=r.className,f=Kt(r,UB),d=t.className,h=Kt(t,WB);return s.createElement(pv.Provider,{value:null},s.createElement(Lc,Me({ref:n,className:se(u,d)},f,h)))},_M=s.forwardRef(qB);_M.displayName="RawItem";var YB=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],EM="responsive",OM="invalidate";function GB(e){return"+ ".concat(e.length," ...")}function XB(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,o=a===void 0?[]:a,c=e.renderItem,u=e.renderRawItem,f=e.itemKey,d=e.itemWidth,h=d===void 0?10:d,v=e.ssr,g=e.style,b=e.className,S=e.maxCount,C=e.renderRest,y=e.renderRawRest,w=e.prefix,$=e.suffix,_=e.component,O=_===void 0?"div":_,I=e.itemComponent,j=e.onVisibleChange,M=Kt(e,YB),D=v==="full",N=VB(),P=_c(N,null),A=ce(P,2),F=A[0],H=A[1],k=F||0,L=_c(N,new Map),T=ce(L,2),z=T[0],V=T[1],q=_c(N,0),G=ce(q,2),B=G[0],U=G[1],K=_c(N,0),Y=ce(K,2),Q=Y[0],Z=Y[1],ae=_c(N,0),re=ce(ae,2),ie=re[0],ve=re[1],ue=_c(N,0),oe=ce(ue,2),he=oe[0],de=oe[1],me=s.useState(null),le=ce(me,2),pe=le[0],Ce=le[1],De=s.useState(null),je=ce(De,2),ge=je[0],Ie=je[1],_e=s.useMemo(function(){return ge===null&&D?Number.MAX_SAFE_INTEGER:ge||0},[ge,F]),we=s.useState(!1),Fe=ce(we,2),He=Fe[0],it=Fe[1],Ze="".concat(r,"-item"),Ye=Math.max(B,Q),Je=S===EM,Pe=o.length&&Je,Oe=S===OM,Be=Pe||typeof S=="number"&&o.length>S,$e=s.useMemo(function(){var Ue=o;return Pe?F===null&&D?Ue=o:Ue=o.slice(0,Math.min(o.length,k/h)):typeof S=="number"&&(Ue=o.slice(0,S)),Ue},[o,h,F,S,Pe]),Te=s.useMemo(function(){return Pe?o.slice(_e+1):o.slice($e.length)},[o,$e,Pe,_e]),be=s.useCallback(function(Ue,qe){var ct;return typeof f=="function"?f(Ue):(ct=f&&Ue?.[f])!==null&&ct!==void 0?ct:qe},[f]),ye=s.useCallback(c||function(Ue){return Ue},[c]);function Re(Ue,qe,ct){ge===Ue&&(qe===void 0||qe===pe)||(Ie(Ue),ct||(it(Ue<o.length-1),j?.(Ue)),qe!==void 0&&Ce(qe))}function Ge(Ue,qe){H(qe.clientWidth)}function ft(Ue,qe){V(function(ct){var Tt=new Map(ct);return qe===null?Tt.delete(Ue):Tt.set(Ue,qe),Tt})}function $t(Ue,qe){Z(qe),U(Q)}function Qe(Ue,qe){ve(qe)}function at(Ue,qe){de(qe)}function mt(Ue){return z.get(be($e[Ue],Ue))}dn(function(){if(k&&typeof Ye=="number"&&$e){var Ue=ie+he,qe=$e.length,ct=qe-1;if(!qe){Re(0,null);return}for(var Tt=0;Tt<qe;Tt+=1){var Dt=mt(Tt);if(D&&(Dt=Dt||0),Dt===void 0){Re(Tt-1,void 0,!0);break}if(Ue+=Dt,ct===0&&Ue<=k||Tt===ct-1&&Ue+mt(ct)<=k){Re(ct,null);break}else if(Ue+Ye>k){Re(Tt-1,Ue-Dt-he+Q);break}}$&&mt(0)+he>k&&Ce(null)}},[k,z,Q,ie,he,be,$e]);var st=He&&!!Te.length,pt={};pe!==null&&Pe&&(pt={position:"absolute",left:pe,top:0});var Wt={prefixCls:Ze,responsive:Pe,component:I,invalidate:Oe},Yt=u?function(Ue,qe){var ct=be(Ue,qe);return s.createElement(pv.Provider,{key:ct,value:ee(ee({},Wt),{},{order:qe,item:Ue,itemKey:ct,registerSize:ft,display:qe<=_e})},u(Ue,qe))}:function(Ue,qe){var ct=be(Ue,qe);return s.createElement(Lc,Me({},Wt,{order:qe,key:ct,item:Ue,renderItem:ye,itemKey:ct,registerSize:ft,display:qe<=_e}))},ht={order:st?_e:Number.MAX_SAFE_INTEGER,className:"".concat(Ze,"-rest"),registerSize:$t,display:st},It=C||GB,_t=y?s.createElement(pv.Provider,{value:ee(ee({},Wt),ht)},y(Te)):s.createElement(Lc,Me({},Wt,ht),typeof It=="function"?It(Te):It),tt=s.createElement(O,Me({className:se(!Oe&&r,b),style:g,ref:t},M),w&&s.createElement(Lc,Me({},Wt,{responsive:Je,responsiveDisabled:!Pe,order:-1,className:"".concat(Ze,"-prefix"),registerSize:Qe,display:!0}),w),$e.map(Yt),Be?_t:null,$&&s.createElement(Lc,Me({},Wt,{responsive:Je,responsiveDisabled:!Pe,order:_e,className:"".concat(Ze,"-suffix"),registerSize:at,display:!0,style:pt}),$));return Je?s.createElement(xa,{onResize:Ge,disabled:!Pe},tt):tt}var zi=s.forwardRef(XB);zi.displayName="Overflow";zi.Item=_M;zi.RESPONSIVE=EM;zi.INVALIDATE=OM;function QB(e,t,n){var r=ee(ee({},e),t);return Object.keys(t).forEach(function(a){var o=t[a];typeof o=="function"&&(r[a]=function(){for(var c,u=arguments.length,f=new Array(u),d=0;d<u;d++)f[d]=arguments[d];return o.apply(void 0,f),(c=e[a])===null||c===void 0?void 0:c.call.apply(c,[e].concat(f))})}),r}var ZB=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],JB=function(t,n){var r=t.prefixCls,a=t.id,o=t.inputElement,c=t.autoFocus,u=t.autoComplete,f=t.editable,d=t.activeDescendantId,h=t.value,v=t.open,g=t.attrs,b=Kt(t,ZB),S=o||s.createElement("input",null),C=S,y=C.ref,w=C.props;return"maxLength"in S.props,S=s.cloneElement(S,ee(ee(ee({type:"search"},QB(b,w)),{},{id:a,ref:_a(n,y),autoComplete:u||"off",autoFocus:c,className:se("".concat(r,"-selection-search-input"),w?.className),role:"combobox","aria-expanded":v||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":v?d:void 0},g),{},{value:f?h:"",readOnly:!f,unselectable:f?null:"on",style:ee(ee({},w.style),{},{opacity:f?null:0})})),S},IM=s.forwardRef(JB);function RM(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var eF=typeof window<"u"&&window.document&&window.document.documentElement,tF=eF;function nF(e){return e!=null}function rF(e){return!e&&e!==0}function T2(e){return["string","number"].includes(jt(e))}function NM(e){var t=void 0;return e&&(T2(e.title)?t=e.title.toString():T2(e.label)&&(t=e.label.toString())),t}function aF(e,t){tF?s.useLayoutEffect(e,t):s.useEffect(e,t)}function iF(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var D2=function(t){t.preventDefault(),t.stopPropagation()},oF=function(t){var n=t.id,r=t.prefixCls,a=t.values,o=t.open,c=t.searchValue,u=t.autoClearSearchValue,f=t.inputRef,d=t.placeholder,h=t.disabled,v=t.mode,g=t.showSearch,b=t.autoFocus,S=t.autoComplete,C=t.activeDescendantId,y=t.tabIndex,w=t.removeIcon,$=t.maxTagCount,_=t.maxTagTextLength,O=t.maxTagPlaceholder,I=O===void 0?function(de){return"+ ".concat(de.length," ...")}:O,j=t.tagRender,M=t.onToggleOpen,D=t.onRemove,N=t.onInputChange,P=t.onInputPaste,A=t.onInputKeyDown,F=t.onInputMouseDown,H=t.onInputCompositionStart,k=t.onInputCompositionEnd,L=t.onInputBlur,T=s.useRef(null),z=s.useState(0),V=ce(z,2),q=V[0],G=V[1],B=s.useState(!1),U=ce(B,2),K=U[0],Y=U[1],Q="".concat(r,"-selection"),Z=o||v==="multiple"&&u===!1||v==="tags"?c:"",ae=v==="tags"||v==="multiple"&&u===!1||g&&(o||K);aF(function(){G(T.current.scrollWidth)},[Z]);var re=function(me,le,pe,Ce,De){return s.createElement("span",{title:NM(me),className:se("".concat(Q,"-item"),X({},"".concat(Q,"-item-disabled"),pe))},s.createElement("span",{className:"".concat(Q,"-item-content")},le),Ce&&s.createElement(sg,{className:"".concat(Q,"-item-remove"),onMouseDown:D2,onClick:De,customizeIcon:w},"×"))},ie=function(me,le,pe,Ce,De,je){var ge=function(_e){D2(_e),M(!o)};return s.createElement("span",{onMouseDown:ge},j({label:le,value:me,disabled:pe,closable:Ce,onClose:De,isMaxTag:!!je}))},ve=function(me){var le=me.disabled,pe=me.label,Ce=me.value,De=!h&&!le,je=pe;if(typeof _=="number"&&(typeof pe=="string"||typeof pe=="number")){var ge=String(je);ge.length>_&&(je="".concat(ge.slice(0,_),"..."))}var Ie=function(we){we&&we.stopPropagation(),D(me)};return typeof j=="function"?ie(Ce,je,le,De,Ie):re(me,je,le,De,Ie)},ue=function(me){if(!a.length)return null;var le=typeof I=="function"?I(me):I;return typeof j=="function"?ie(void 0,le,!1,!1,void 0,!0):re({title:le},le,!1)},oe=s.createElement("div",{className:"".concat(Q,"-search"),style:{width:q},onFocus:function(){Y(!0)},onBlur:function(){Y(!1)}},s.createElement(IM,{ref:f,open:o,prefixCls:r,id:n,inputElement:null,disabled:h,autoFocus:b,autoComplete:S,editable:ae,activeDescendantId:C,value:Z,onKeyDown:A,onMouseDown:F,onChange:N,onPaste:P,onCompositionStart:H,onCompositionEnd:k,onBlur:L,tabIndex:y,attrs:ma(t,!0)}),s.createElement("span",{ref:T,className:"".concat(Q,"-search-mirror"),"aria-hidden":!0},Z," ")),he=s.createElement(zi,{prefixCls:"".concat(Q,"-overflow"),data:a,renderItem:ve,renderRest:ue,suffix:oe,itemKey:iF,maxCount:$});return s.createElement("span",{className:"".concat(Q,"-wrap")},he,!a.length&&!Z&&s.createElement("span",{className:"".concat(Q,"-placeholder")},d))},lF=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,o=t.inputRef,c=t.disabled,u=t.autoFocus,f=t.autoComplete,d=t.activeDescendantId,h=t.mode,v=t.open,g=t.values,b=t.placeholder,S=t.tabIndex,C=t.showSearch,y=t.searchValue,w=t.activeValue,$=t.maxLength,_=t.onInputKeyDown,O=t.onInputMouseDown,I=t.onInputChange,j=t.onInputPaste,M=t.onInputCompositionStart,D=t.onInputCompositionEnd,N=t.onInputBlur,P=t.title,A=s.useState(!1),F=ce(A,2),H=F[0],k=F[1],L=h==="combobox",T=L||C,z=g[0],V=y||"";L&&w&&!H&&(V=w),s.useEffect(function(){L&&k(!1)},[L,w]);var q=h!=="combobox"&&!v&&!C?!1:!!V,G=P===void 0?NM(z):P,B=s.useMemo(function(){return z?null:s.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:q?{visibility:"hidden"}:void 0},b)},[z,q,b,r]);return s.createElement("span",{className:"".concat(r,"-selection-wrap")},s.createElement("span",{className:"".concat(r,"-selection-search")},s.createElement(IM,{ref:o,prefixCls:r,id:a,open:v,inputElement:n,disabled:c,autoFocus:u,autoComplete:f,editable:T,activeDescendantId:d,value:V,onKeyDown:_,onMouseDown:O,onChange:function(K){k(!0),I(K)},onPaste:j,onCompositionStart:M,onCompositionEnd:D,onBlur:N,tabIndex:S,attrs:ma(t,!0),maxLength:L?$:void 0})),!L&&z?s.createElement("span",{className:"".concat(r,"-selection-item"),title:G,style:q?{visibility:"hidden"}:void 0},z.label):null,B)},sF=function(t,n){var r=s.useRef(null),a=s.useRef(!1),o=t.prefixCls,c=t.open,u=t.mode,f=t.showSearch,d=t.tokenWithEnter,h=t.disabled,v=t.prefix,g=t.autoClearSearchValue,b=t.onSearch,S=t.onSearchSubmit,C=t.onToggleOpen,y=t.onInputKeyDown,w=t.onInputBlur,$=t.domRef;s.useImperativeHandle(n,function(){return{focus:function(G){r.current.focus(G)},blur:function(){r.current.blur()}}});var _=$M(0),O=ce(_,2),I=O[0],j=O[1],M=function(G){var B=G.which,U=r.current instanceof HTMLTextAreaElement;!U&&c&&(B===Mt.UP||B===Mt.DOWN)&&G.preventDefault(),y&&y(G),B===Mt.ENTER&&u==="tags"&&!a.current&&!c&&S?.(G.target.value),!(U&&!c&&~[Mt.UP,Mt.DOWN,Mt.LEFT,Mt.RIGHT].indexOf(B))&&LB(B)&&C(!0)},D=function(){j(!0)},N=s.useRef(null),P=function(G){b(G,!0,a.current)!==!1&&C(!0)},A=function(){a.current=!0},F=function(G){a.current=!1,u!=="combobox"&&P(G.target.value)},H=function(G){var B=G.target.value;if(d&&N.current&&/[\r\n]/.test(N.current)){var U=N.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");B=B.replace(U,N.current)}N.current=null,P(B)},k=function(G){var B=G.clipboardData,U=B?.getData("text");N.current=U||""},L=function(G){var B=G.target;if(B!==r.current){var U=document.body.style.msTouchAction!==void 0;U?setTimeout(function(){r.current.focus()}):r.current.focus()}},T=function(G){var B=I();G.target!==r.current&&!B&&!(u==="combobox"&&h)&&G.preventDefault(),(u!=="combobox"&&(!f||!B)||!c)&&(c&&g!==!1&&b("",!0,!1),C())},z={inputRef:r,onInputKeyDown:M,onInputMouseDown:D,onInputChange:H,onInputPaste:k,onInputCompositionStart:A,onInputCompositionEnd:F,onInputBlur:w},V=u==="multiple"||u==="tags"?s.createElement(oF,Me({},t,z)):s.createElement(lF,Me({},t,z));return s.createElement("div",{ref:$,className:"".concat(o,"-selector"),onClick:L,onMouseDown:T},v&&s.createElement("div",{className:"".concat(o,"-prefix")},v),V)},cF=s.forwardRef(sF);function uF(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},c=o.className,u=o.content,f=a.x,d=f===void 0?0:f,h=a.y,v=h===void 0?0:h,g=s.useRef();if(!n||!n.points)return null;var b={position:"absolute"};if(n.autoArrow!==!1){var S=n.points[0],C=n.points[1],y=S[0],w=S[1],$=C[0],_=C[1];y===$||!["t","b"].includes(y)?b.top=v:y==="t"?b.top=0:b.bottom=0,w===_||!["l","r"].includes(w)?b.left=d:w==="l"?b.left=0:b.right=0}return s.createElement("div",{ref:g,className:se("".concat(t,"-arrow"),c),style:b},u)}function dF(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?s.createElement(Oi,Me({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(c){var u=c.className;return s.createElement("div",{style:{zIndex:r},className:se("".concat(t,"-mask"),u)})}):null}var fF=s.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),mF=s.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,c=e.target,u=e.onVisibleChanged,f=e.open,d=e.keepDom,h=e.fresh,v=e.onClick,g=e.mask,b=e.arrow,S=e.arrowPos,C=e.align,y=e.motion,w=e.maskMotion,$=e.forceRender,_=e.getPopupContainer,O=e.autoDestroy,I=e.portal,j=e.zIndex,M=e.onMouseEnter,D=e.onMouseLeave,N=e.onPointerEnter,P=e.onPointerDownCapture,A=e.ready,F=e.offsetX,H=e.offsetY,k=e.offsetR,L=e.offsetB,T=e.onAlign,z=e.onPrepare,V=e.stretch,q=e.targetWidth,G=e.targetHeight,B=typeof n=="function"?n():n,U=f||d,K=_?.length>0,Y=s.useState(!_||!K),Q=ce(Y,2),Z=Q[0],ae=Q[1];if(dn(function(){!Z&&K&&c&&ae(!0)},[Z,K,c]),!Z)return null;var re="auto",ie={left:"-1000vw",top:"-1000vh",right:re,bottom:re};if(A||!f){var ve,ue=C.points,oe=C.dynamicInset||((ve=C._experimental)===null||ve===void 0?void 0:ve.dynamicInset),he=oe&&ue[0][1]==="r",de=oe&&ue[0][0]==="b";he?(ie.right=k,ie.left=re):(ie.left=F,ie.right=re),de?(ie.bottom=L,ie.top=re):(ie.top=H,ie.bottom=re)}var me={};return V&&(V.includes("height")&&G?me.height=G:V.includes("minHeight")&&G&&(me.minHeight=G),V.includes("width")&&q?me.width=q:V.includes("minWidth")&&q&&(me.minWidth=q)),f||(me.pointerEvents="none"),s.createElement(I,{open:$||U,getContainer:_&&function(){return _(c)},autoDestroy:O},s.createElement(dF,{prefixCls:a,open:f,zIndex:j,mask:g,motion:w}),s.createElement(xa,{onResize:T,disabled:!f},function(le){return s.createElement(Oi,Me({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:$,leavedClassName:"".concat(a,"-hidden")},y,{onAppearPrepare:z,onEnterPrepare:z,visible:f,onVisibleChanged:function(Ce){var De;y==null||(De=y.onVisibleChanged)===null||De===void 0||De.call(y,Ce),u(Ce)}}),function(pe,Ce){var De=pe.className,je=pe.style,ge=se(a,De,r);return s.createElement("div",{ref:_a(le,t,Ce),className:ge,style:ee(ee(ee(ee({"--arrow-x":"".concat(S.x||0,"px"),"--arrow-y":"".concat(S.y||0,"px")},ie),me),je),{},{boxSizing:"border-box",zIndex:j},o),onMouseEnter:M,onMouseLeave:D,onPointerEnter:N,onClick:v,onPointerDownCapture:P},b&&s.createElement(uF,{prefixCls:a,arrow:b,arrowPos:S,align:C}),s.createElement(fF,{cache:!f&&!h},B))})}))}),hF=s.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=Hi(n),o=s.useCallback(function(u){tf(t,r?r(u):u)},[r]),c=Fl(o,Vl(n));return a?s.cloneElement(n,{ref:c}):n}),P2=s.createContext(null);function k2(e){return e?Array.isArray(e)?e:[e]:[]}function vF(e,t,n,r){return s.useMemo(function(){var a=k2(n??t),o=k2(r??t),c=new Set(a),u=new Set(o);return e&&(c.has("hover")&&(c.delete("hover"),c.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[c,u]},[e,t,n,r])}function gF(){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 pF(e,t,n,r){for(var a=n.points,o=Object.keys(e),c=0;c<o.length;c+=1){var u,f=o[c];if(gF((u=e[f])===null||u===void 0?void 0:u.points,a,r))return"".concat(t,"-placement-").concat(f)}return""}function A2(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Df(e){return e.ownerDocument.defaultView}function lS(e){for(var t=[],n=e?.parentElement,r=["hidden","scroll","clip","auto"];n;){var a=Df(n).getComputedStyle(n),o=a.overflowX,c=a.overflowY,u=a.overflow;[o,c,u].some(function(f){return r.includes(f)})&&t.push(n),n=n.parentElement}return t}function gf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function xd(e){return gf(parseFloat(e),0)}function z2(e,t){var n=ee({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=Df(r).getComputedStyle(r),o=a.overflow,c=a.overflowClipMargin,u=a.borderTopWidth,f=a.borderBottomWidth,d=a.borderLeftWidth,h=a.borderRightWidth,v=r.getBoundingClientRect(),g=r.offsetHeight,b=r.clientHeight,S=r.offsetWidth,C=r.clientWidth,y=xd(u),w=xd(f),$=xd(d),_=xd(h),O=gf(Math.round(v.width/S*1e3)/1e3),I=gf(Math.round(v.height/g*1e3)/1e3),j=(S-C-$-_)*O,M=(g-b-y-w)*I,D=y*I,N=w*I,P=$*O,A=_*O,F=0,H=0;if(o==="clip"){var k=xd(c);F=k*O,H=k*I}var L=v.x+P-F,T=v.y+D-H,z=L+v.width+2*F-P-A-j,V=T+v.height+2*H-D-N-M;n.left=Math.max(n.left,L),n.top=Math.max(n.top,T),n.right=Math.min(n.right,z),n.bottom=Math.min(n.bottom,V)}}),n}function L2(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 H2(e,t){var n=t||[],r=ce(n,2),a=r[0],o=r[1];return[L2(e.width,a),L2(e.height,o)]}function B2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ec(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 _l(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 bF(e,t,n,r,a,o,c){var u=s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),f=ce(u,2),d=f[0],h=f[1],v=s.useRef(0),g=s.useMemo(function(){return t?lS(t):[]},[t]),b=s.useRef({}),S=function(){b.current={}};e||S();var C=pn(function(){if(t&&n&&e){let Cn=function(Ar,Br){var Yr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fe,sa=U.x+Ar,Pa=U.y+Br,Ks=sa+de,Yl=Pa+he,Us=Math.max(sa,Yr.left),Vt=Math.max(Pa,Yr.top),an=Math.min(Ks,Yr.right),fr=Math.min(Yl,Yr.bottom);return Math.max(0,(an-Us)*(fr-Vt))},nr=function(){hn=U.y+It,cn=hn+he,En=U.x+ht,rn=En+de};var $,_,O,I,j=t,M=j.ownerDocument,D=Df(j),N=D.getComputedStyle(j),P=N.position,A=j.style.left,F=j.style.top,H=j.style.right,k=j.style.bottom,L=j.style.overflow,T=ee(ee({},a[r]),o),z=M.createElement("div");($=j.parentElement)===null||$===void 0||$.appendChild(z),z.style.left="".concat(j.offsetLeft,"px"),z.style.top="".concat(j.offsetTop,"px"),z.style.position=P,z.style.height="".concat(j.offsetHeight,"px"),z.style.width="".concat(j.offsetWidth,"px"),j.style.left="0",j.style.top="0",j.style.right="auto",j.style.bottom="auto",j.style.overflow="hidden";var V;if(Array.isArray(n))V={x:n[0],y:n[1],width:0,height:0};else{var q,G,B=n.getBoundingClientRect();B.x=(q=B.x)!==null&&q!==void 0?q:B.left,B.y=(G=B.y)!==null&&G!==void 0?G:B.top,V={x:B.x,y:B.y,width:B.width,height:B.height}}var U=j.getBoundingClientRect(),K=D.getComputedStyle(j),Y=K.height,Q=K.width;U.x=(_=U.x)!==null&&_!==void 0?_:U.left,U.y=(O=U.y)!==null&&O!==void 0?O:U.top;var Z=M.documentElement,ae=Z.clientWidth,re=Z.clientHeight,ie=Z.scrollWidth,ve=Z.scrollHeight,ue=Z.scrollTop,oe=Z.scrollLeft,he=U.height,de=U.width,me=V.height,le=V.width,pe={left:0,top:0,right:ae,bottom:re},Ce={left:-oe,top:-ue,right:ie-oe,bottom:ve-ue},De=T.htmlRegion,je="visible",ge="visibleFirst";De!=="scroll"&&De!==ge&&(De=je);var Ie=De===ge,_e=z2(Ce,g),we=z2(pe,g),Fe=De===je?we:_e,He=Ie?we:Fe;j.style.left="auto",j.style.top="auto",j.style.right="0",j.style.bottom="0";var it=j.getBoundingClientRect();j.style.left=A,j.style.top=F,j.style.right=H,j.style.bottom=k,j.style.overflow=L,(I=j.parentElement)===null||I===void 0||I.removeChild(z);var Ze=gf(Math.round(de/parseFloat(Q)*1e3)/1e3),Ye=gf(Math.round(he/parseFloat(Y)*1e3)/1e3);if(Ze===0||Ye===0||ef(n)&&!du(n))return;var Je=T.offset,Pe=T.targetOffset,Oe=H2(U,Je),Be=ce(Oe,2),$e=Be[0],Te=Be[1],be=H2(V,Pe),ye=ce(be,2),Re=ye[0],Ge=ye[1];V.x-=Re,V.y-=Ge;var ft=T.points||[],$t=ce(ft,2),Qe=$t[0],at=$t[1],mt=B2(at),st=B2(Qe),pt=Ec(V,mt),Wt=Ec(U,st),Yt=ee({},T),ht=pt.x-Wt.x+$e,It=pt.y-Wt.y+Te,_t=Cn(ht,It),tt=Cn(ht,It,we),Ue=Ec(V,["t","l"]),qe=Ec(U,["t","l"]),ct=Ec(V,["b","r"]),Tt=Ec(U,["b","r"]),Dt=T.overflow||{},Jt=Dt.adjustX,ut=Dt.adjustY,ot=Dt.shiftX,Lt=Dt.shiftY,tn=function(Br){return typeof Br=="boolean"?Br:Br>=0},hn,cn,En,rn;nr();var xn=tn(ut),lt=st[0]===mt[0];if(xn&&st[0]==="t"&&(cn>He.bottom||b.current.bt)){var St=It;lt?St-=he-me:St=Ue.y-Tt.y-Te;var Bt=Cn(ht,St),kt=Cn(ht,St,we);Bt>_t||Bt===_t&&(!Ie||kt>=tt)?(b.current.bt=!0,It=St,Te=-Te,Yt.points=[_l(st,0),_l(mt,0)]):b.current.bt=!1}if(xn&&st[0]==="b"&&(hn<He.top||b.current.tb)){var vt=It;lt?vt+=he-me:vt=ct.y-qe.y-Te;var Et=Cn(ht,vt),Qt=Cn(ht,vt,we);Et>_t||Et===_t&&(!Ie||Qt>=tt)?(b.current.tb=!0,It=vt,Te=-Te,Yt.points=[_l(st,0),_l(mt,0)]):b.current.tb=!1}var on=tn(Jt),bt=st[1]===mt[1];if(on&&st[1]==="l"&&(rn>He.right||b.current.rl)){var Ht=ht;bt?Ht-=de-le:Ht=Ue.x-Tt.x-$e;var nn=Cn(Ht,It),Xn=Cn(Ht,It,we);nn>_t||nn===_t&&(!Ie||Xn>=tt)?(b.current.rl=!0,ht=Ht,$e=-$e,Yt.points=[_l(st,1),_l(mt,1)]):b.current.rl=!1}if(on&&st[1]==="r"&&(En<He.left||b.current.lr)){var br=ht;bt?br+=de-le:br=ct.x-qe.x-$e;var wr=Cn(br,It),$r=Cn(br,It,we);wr>_t||wr===_t&&(!Ie||$r>=tt)?(b.current.lr=!0,ht=br,$e=-$e,Yt.points=[_l(st,1),_l(mt,1)]):b.current.lr=!1}nr();var Yn=ot===!0?0:ot;typeof Yn=="number"&&(En<we.left&&(ht-=En-we.left-$e,V.x+le<we.left+Yn&&(ht+=V.x-we.left+le-Yn)),rn>we.right&&(ht-=rn-we.right-$e,V.x>we.right-Yn&&(ht+=V.x-we.right+Yn)));var Gn=Lt===!0?0:Lt;typeof Gn=="number"&&(hn<we.top&&(It-=hn-we.top-Te,V.y+me<we.top+Gn&&(It+=V.y-we.top+me-Gn)),cn>we.bottom&&(It-=cn-we.bottom-Te,V.y>we.bottom-Gn&&(It+=V.y-we.bottom+Gn)));var Dr=U.x+ht,Hr=Dr+de,Nr=U.y+It,In=Nr+he,At=V.x,zt=At+le,un=V.y,Nt=un+me,Pt=Math.max(Dr,At),yn=Math.min(Hr,zt),Ln=(Pt+yn)/2,lr=Ln-Dr,Pr=Math.max(Nr,un),sr=Math.min(In,Nt),kr=(Pr+sr)/2,vn=kr-Nr;c?.(t,Yt);var dt=it.right-U.x-(ht+U.width),Ot=it.bottom-U.y-(It+U.height);Ze===1&&(ht=Math.round(ht),dt=Math.round(dt)),Ye===1&&(It=Math.round(It),Ot=Math.round(Ot));var bn={ready:!0,offsetX:ht/Ze,offsetY:It/Ye,offsetR:dt/Ze,offsetB:Ot/Ye,arrowX:lr/Ze,arrowY:vn/Ye,scaleX:Ze,scaleY:Ye,align:Yt};h(bn)}}),y=function(){v.current+=1;var _=v.current;Promise.resolve().then(function(){v.current===_&&C()})},w=function(){h(function(_){return ee(ee({},_),{},{ready:!1})})};return dn(w,[r]),dn(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 yF(e,t,n,r,a){dn(function(){if(e&&t&&n){let v=function(){r(),a()};var o=t,c=n,u=lS(o),f=lS(c),d=Df(c),h=new Set([d].concat(ke(u),ke(f)));return h.forEach(function(g){g.addEventListener("scroll",v,{passive:!0})}),d.addEventListener("resize",v,{passive:!0}),r(),function(){h.forEach(function(g){g.removeEventListener("scroll",v),d.removeEventListener("resize",v)})}}},[e,t,n])}function SF(e,t,n,r,a,o,c,u){var f=s.useRef(e);f.current=e;var d=s.useRef(!1);s.useEffect(function(){if(t&&r&&(!a||o)){var v=function(){d.current=!1},g=function(y){var w;f.current&&!c(((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=Df(r);b.addEventListener("pointerdown",v,!0),b.addEventListener("mousedown",g,!0),b.addEventListener("contextmenu",g,!0);var S=hv(n);return S&&(S.addEventListener("mousedown",g,!0),S.addEventListener("contextmenu",g,!0)),function(){b.removeEventListener("pointerdown",v,!0),b.removeEventListener("mousedown",g,!0),b.removeEventListener("contextmenu",g,!0),S&&(S.removeEventListener("mousedown",g,!0),S.removeEventListener("contextmenu",g,!0))}}},[t,n,r,a,o]);function h(){d.current=!0}return h}var xF=["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 CF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uM,t=s.forwardRef(function(n,r){var a=n.prefixCls,o=a===void 0?"rc-trigger-popup":a,c=n.children,u=n.action,f=u===void 0?"hover":u,d=n.showAction,h=n.hideAction,v=n.popupVisible,g=n.defaultPopupVisible,b=n.onPopupVisibleChange,S=n.afterPopupVisibleChange,C=n.mouseEnterDelay,y=n.mouseLeaveDelay,w=y===void 0?.1:y,$=n.focusDelay,_=n.blurDelay,O=n.mask,I=n.maskClosable,j=I===void 0?!0:I,M=n.getPopupContainer,D=n.forceRender,N=n.autoDestroy,P=n.destroyPopupOnHide,A=n.popup,F=n.popupClassName,H=n.popupStyle,k=n.popupPlacement,L=n.builtinPlacements,T=L===void 0?{}:L,z=n.popupAlign,V=n.zIndex,q=n.stretch,G=n.getPopupClassNameFromAlign,B=n.fresh,U=n.alignPoint,K=n.onPopupClick,Y=n.onPopupAlign,Q=n.arrow,Z=n.popupMotion,ae=n.maskMotion,re=n.popupTransitionName,ie=n.popupAnimation,ve=n.maskTransitionName,ue=n.maskAnimation,oe=n.className,he=n.getTriggerDOMNode,de=Kt(n,xF),me=N||P||!1,le=s.useState(!1),pe=ce(le,2),Ce=pe[0],De=pe[1];dn(function(){De(lg())},[]);var je=s.useRef({}),ge=s.useContext(P2),Ie=s.useMemo(function(){return{registerSubPopup:function(an,fr){je.current[an]=fr,ge?.registerSubPopup(an,fr)}}},[ge]),_e=Mx(),we=s.useState(null),Fe=ce(we,2),He=Fe[0],it=Fe[1],Ze=s.useRef(null),Ye=pn(function(Vt){Ze.current=Vt,ef(Vt)&&He!==Vt&&it(Vt),ge?.registerSubPopup(_e,Vt)}),Je=s.useState(null),Pe=ce(Je,2),Oe=Pe[0],Be=Pe[1],$e=s.useRef(null),Te=pn(function(Vt){ef(Vt)&&Oe!==Vt&&(Be(Vt),$e.current=Vt)}),be=s.Children.only(c),ye=be?.props||{},Re={},Ge=pn(function(Vt){var an,fr,_r=Oe;return _r?.contains(Vt)||((an=hv(_r))===null||an===void 0?void 0:an.host)===Vt||Vt===_r||He?.contains(Vt)||((fr=hv(He))===null||fr===void 0?void 0:fr.host)===Vt||Vt===He||Object.values(je.current).some(function(rr){return rr?.contains(Vt)||Vt===rr})}),ft=A2(o,Z,ie,re),$t=A2(o,ae,ue,ve),Qe=s.useState(g||!1),at=ce(Qe,2),mt=at[0],st=at[1],pt=v??mt,Wt=pn(function(Vt){v===void 0&&st(Vt)});dn(function(){st(v||!1)},[v]);var Yt=s.useRef(pt);Yt.current=pt;var ht=s.useRef([]);ht.current=[];var It=pn(function(Vt){var an;Wt(Vt),((an=ht.current[ht.current.length-1])!==null&&an!==void 0?an:pt)!==Vt&&(ht.current.push(Vt),b?.(Vt))}),_t=s.useRef(),tt=function(){clearTimeout(_t.current)},Ue=function(an){var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;tt(),fr===0?It(an):_t.current=setTimeout(function(){It(an)},fr*1e3)};s.useEffect(function(){return tt},[]);var qe=s.useState(!1),ct=ce(qe,2),Tt=ct[0],Dt=ct[1];dn(function(Vt){(!Vt||pt)&&Dt(!0)},[pt]);var Jt=s.useState(null),ut=ce(Jt,2),ot=ut[0],Lt=ut[1],tn=s.useState(null),hn=ce(tn,2),cn=hn[0],En=hn[1],rn=function(an){En([an.clientX,an.clientY])},xn=bF(pt,He,U&&cn!==null?cn:Oe,k,T,z,Y),lt=ce(xn,11),St=lt[0],Bt=lt[1],kt=lt[2],vt=lt[3],Et=lt[4],Qt=lt[5],on=lt[6],bt=lt[7],Ht=lt[8],nn=lt[9],Xn=lt[10],br=vF(Ce,f,d,h),wr=ce(br,2),$r=wr[0],Yn=wr[1],Gn=$r.has("click"),Dr=Yn.has("click")||Yn.has("contextMenu"),Hr=pn(function(){Tt||Xn()}),Nr=function(){Yt.current&&U&&Dr&&Ue(!1)};yF(pt,Oe,He,Hr,Nr),dn(function(){Hr()},[cn,k]),dn(function(){pt&&!(T!=null&&T[k])&&Hr()},[JSON.stringify(z)]);var In=s.useMemo(function(){var Vt=pF(T,o,nn,U);return se(Vt,G?.(nn))},[nn,G,T,o,U]);s.useImperativeHandle(r,function(){return{nativeElement:$e.current,popupElement:Ze.current,forceAlign:Hr}});var At=s.useState(0),zt=ce(At,2),un=zt[0],Nt=zt[1],Pt=s.useState(0),yn=ce(Pt,2),Ln=yn[0],lr=yn[1],Pr=function(){if(q&&Oe){var an=Oe.getBoundingClientRect();Nt(an.width),lr(an.height)}},sr=function(){Pr(),Hr()},kr=function(an){Dt(!1),Xn(),S?.(an)},vn=function(){return new Promise(function(an){Pr(),Lt(function(){return an})})};dn(function(){ot&&(Xn(),ot(),Lt(null))},[ot]);function dt(Vt,an,fr,_r){Re[Vt]=function(rr){var tl;_r?.(rr),Ue(an,fr);for(var nl=arguments.length,Nu=new Array(nl>1?nl-1:0),bo=1;bo<nl;bo++)Nu[bo-1]=arguments[bo];(tl=ye[Vt])===null||tl===void 0||tl.call.apply(tl,[ye,rr].concat(Nu))}}(Gn||Dr)&&(Re.onClick=function(Vt){var an;Yt.current&&Dr?Ue(!1):!Yt.current&&Gn&&(rn(Vt),Ue(!0));for(var fr=arguments.length,_r=new Array(fr>1?fr-1:0),rr=1;rr<fr;rr++)_r[rr-1]=arguments[rr];(an=ye.onClick)===null||an===void 0||an.call.apply(an,[ye,Vt].concat(_r))});var Ot=SF(pt,Dr,Oe,He,O,j,Ge,Ue),bn=$r.has("hover"),Cn=Yn.has("hover"),nr,Ar;bn&&(dt("onMouseEnter",!0,C,function(Vt){rn(Vt)}),dt("onPointerEnter",!0,C,function(Vt){rn(Vt)}),nr=function(an){(pt||Tt)&&He!==null&&He!==void 0&&He.contains(an.target)&&Ue(!0,C)},U&&(Re.onMouseMove=function(Vt){var an;(an=ye.onMouseMove)===null||an===void 0||an.call(ye,Vt)})),Cn&&(dt("onMouseLeave",!1,w),dt("onPointerLeave",!1,w),Ar=function(){Ue(!1,w)}),$r.has("focus")&&dt("onFocus",!0,$),Yn.has("focus")&&dt("onBlur",!1,_),$r.has("contextMenu")&&(Re.onContextMenu=function(Vt){var an;Yt.current&&Yn.has("contextMenu")?Ue(!1):(rn(Vt),Ue(!0)),Vt.preventDefault();for(var fr=arguments.length,_r=new Array(fr>1?fr-1:0),rr=1;rr<fr;rr++)_r[rr-1]=arguments[rr];(an=ye.onContextMenu)===null||an===void 0||an.call.apply(an,[ye,Vt].concat(_r))}),oe&&(Re.className=se(ye.className,oe));var Br=s.useRef(!1);Br.current||(Br.current=D||pt||Tt);var Yr=ee(ee({},ye),Re),sa={},Pa=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Pa.forEach(function(Vt){de[Vt]&&(sa[Vt]=function(){for(var an,fr=arguments.length,_r=new Array(fr),rr=0;rr<fr;rr++)_r[rr]=arguments[rr];(an=Yr[Vt])===null||an===void 0||an.call.apply(an,[Yr].concat(_r)),de[Vt].apply(de,_r)})});var Ks=s.cloneElement(be,ee(ee({},Yr),sa)),Yl={x:Qt,y:on},Us=Q?ee({},Q!==!0?Q:{}):null;return s.createElement(s.Fragment,null,s.createElement(xa,{disabled:!pt,ref:Te,onResize:sr},s.createElement(hF,{getTriggerDOMNode:he},Ks)),Br.current&&s.createElement(P2.Provider,{value:Ie},s.createElement(mF,{portal:e,ref:Ye,prefixCls:o,popup:A,className:se(F,In),style:H,target:Oe,onMouseEnter:nr,onMouseLeave:Ar,onPointerEnter:nr,zIndex:V,open:pt,keepDom:Tt,fresh:B,onClick:K,onPointerDownCapture:Ot,mask:O,motion:ft,maskMotion:$t,onVisibleChanged:kr,onPrepare:vn,forceRender:D,autoDestroy:me,getPopupContainer:M,align:nn,arrow:Us,arrowPos:Yl,ready:St,offsetX:Bt,offsetY:kt,offsetR:vt,offsetB:Et,onAlign:Hr,stretch:q,targetWidth:un/bt,targetHeight:Ln/Ht})))});return t}const Pf=CF(uM);var wF=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],$F=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"}}},_F=function(t,n){var r=t.prefixCls;t.disabled;var a=t.visible,o=t.children,c=t.popupElement,u=t.animation,f=t.transitionName,d=t.dropdownStyle,h=t.dropdownClassName,v=t.direction,g=v===void 0?"ltr":v,b=t.placement,S=t.builtinPlacements,C=t.dropdownMatchSelectWidth,y=t.dropdownRender,w=t.dropdownAlign,$=t.getPopupContainer,_=t.empty,O=t.getTriggerDOMNode,I=t.onPopupVisibleChange,j=t.onPopupMouseEnter,M=Kt(t,wF),D="".concat(r,"-dropdown"),N=c;y&&(N=y(c));var P=s.useMemo(function(){return S||$F(C)},[S,C]),A=u?"".concat(D,"-").concat(u):f,F=typeof C=="number",H=s.useMemo(function(){return F?null:C===!1?"minWidth":"width"},[C,F]),k=d;F&&(k=ee(ee({},k),{},{width:C}));var L=s.useRef(null);return s.useImperativeHandle(n,function(){return{getPopupElement:function(){var z;return(z=L.current)===null||z===void 0?void 0:z.popupElement}}}),s.createElement(Pf,Me({},M,{showAction:I?["click"]:[],hideAction:I?["click"]:[],popupPlacement:b||(g==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:D,popupTransitionName:A,popup:s.createElement("div",{onMouseEnter:j},N),ref:L,stretch:H,popupAlign:w,popupVisible:a,getPopupContainer:$,popupClassName:se(h,X({},"".concat(D,"-empty"),_)),popupStyle:k,getTriggerDOMNode:O,onPopupVisibleChange:I}),o)},EF=s.forwardRef(_F);function F2(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 sS(e){return typeof e<"u"&&!Number.isNaN(e)}function MM(e,t){var n=e||{},r=n.label,a=n.value,o=n.options,c=n.groupLabel,u=r||(t?"children":"label");return{label:u,value:a||"value",options:o||"options",groupLabel:c||u}}function OF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=MM(n,!1),c=o.label,u=o.value,f=o.options,d=o.groupLabel;function h(v,g){Array.isArray(v)&&v.forEach(function(b){if(g||!(f in b)){var S=b[u];a.push({key:F2(b,a.length),groupOption:g,data:b,label:b[c],value:S})}else{var C=b[d];C===void 0&&r&&(C=b.label),a.push({key:F2(b,a.length),group:!0,data:b,label:C}),h(b[f],!0)}})}return h(e,!1),a}function cS(e){var t=ee({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Sr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var IF=function(t,n,r){if(!n||!n.length)return null;var a=!1,o=function u(f,d){var h=aN(d),v=h[0],g=h.slice(1);if(!v)return[f];var b=f.split(v);return a=a||b.length>1,b.reduce(function(S,C){return[].concat(ke(S),ke(u(C,g)))},[]).filter(Boolean)},c=o(t,n);return a?typeof r<"u"?c.slice(0,r):c:null},kx=s.createContext(null);function RF(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return s.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,c=a.value;return["number","string"].includes(jt(o))?o:c}).join(", ")),n.length>r?", ...":null)}var NF=["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"],MF=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],uS=function(t){return t==="tags"||t==="multiple"},jF=s.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,o=e.className,c=e.showSearch,u=e.tagRender,f=e.direction,d=e.omitDomProps,h=e.displayValues,v=e.onDisplayValuesChange,g=e.emptyOptions,b=e.notFoundContent,S=b===void 0?"Not Found":b,C=e.onClear,y=e.mode,w=e.disabled,$=e.loading,_=e.getInputElement,O=e.getRawInputElement,I=e.open,j=e.defaultOpen,M=e.onDropdownVisibleChange,D=e.activeValue,N=e.onActiveValueChange,P=e.activeDescendantId,A=e.searchValue,F=e.autoClearSearchValue,H=e.onSearch,k=e.onSearchSplit,L=e.tokenSeparators,T=e.allowClear,z=e.prefix,V=e.suffixIcon,q=e.clearIcon,G=e.OptionList,B=e.animation,U=e.transitionName,K=e.dropdownStyle,Y=e.dropdownClassName,Q=e.dropdownMatchSelectWidth,Z=e.dropdownRender,ae=e.dropdownAlign,re=e.placement,ie=e.builtinPlacements,ve=e.getPopupContainer,ue=e.showAction,oe=ue===void 0?[]:ue,he=e.onFocus,de=e.onBlur,me=e.onKeyUp,le=e.onKeyDown,pe=e.onMouseDown,Ce=Kt(e,NF),De=uS(y),je=(c!==void 0?c:De)||y==="combobox",ge=ee({},Ce);MF.forEach(function(At){delete ge[At]}),d?.forEach(function(At){delete ge[At]});var Ie=s.useState(!1),_e=ce(Ie,2),we=_e[0],Fe=_e[1];s.useEffect(function(){Fe(lg())},[]);var He=s.useRef(null),it=s.useRef(null),Ze=s.useRef(null),Ye=s.useRef(null),Je=s.useRef(null),Pe=s.useRef(!1),Oe=AB(),Be=ce(Oe,3),$e=Be[0],Te=Be[1],be=Be[2];s.useImperativeHandle(t,function(){var At,zt;return{focus:(At=Ye.current)===null||At===void 0?void 0:At.focus,blur:(zt=Ye.current)===null||zt===void 0?void 0:zt.blur,scrollTo:function(Nt){var Pt;return(Pt=Je.current)===null||Pt===void 0?void 0:Pt.scrollTo(Nt)},nativeElement:He.current||it.current}});var ye=s.useMemo(function(){var At;if(y!=="combobox")return A;var zt=(At=h[0])===null||At===void 0?void 0:At.value;return typeof zt=="string"||typeof zt=="number"?String(zt):""},[A,y,h]),Re=y==="combobox"&&typeof _=="function"&&_()||null,Ge=typeof O=="function"&&O(),ft=Fl(it,Ge==null||(n=Ge.props)===null||n===void 0?void 0:n.ref),$t=s.useState(!1),Qe=ce($t,2),at=Qe[0],mt=Qe[1];dn(function(){mt(!0)},[]);var st=Wn(!1,{defaultValue:j,value:I}),pt=ce(st,2),Wt=pt[0],Yt=pt[1],ht=at?Wt:!1,It=!S&&g;(w||It&&ht&&y==="combobox")&&(ht=!1);var _t=It?!1:ht,tt=s.useCallback(function(At){var zt=At!==void 0?At:!ht;w||(Yt(zt),ht!==zt&&M?.(zt))},[w,ht,Yt,M]),Ue=s.useMemo(function(){return(L||[]).some(function(At){return[`
`,`\r
`].includes(At)})},[L]),qe=s.useContext(kx)||{},ct=qe.maxCount,Tt=qe.rawValues,Dt=function(zt,un,Nt){if(!(De&&sS(ct)&&Tt?.size>=ct)){var Pt=!0,yn=zt;N?.(null);var Ln=IF(zt,L,sS(ct)?ct-Tt.size:void 0),lr=Nt?null:Ln;return y!=="combobox"&&lr&&(yn="",k?.(lr),tt(!1),Pt=!1),H&&ye!==yn&&H(yn,{source:un?"typing":"effect"}),Pt}},Jt=function(zt){!zt||!zt.trim()||H(zt,{source:"submit"})};s.useEffect(function(){!ht&&!De&&y!=="combobox"&&Dt("",!1,!1)},[ht]),s.useEffect(function(){Wt&&w&&Yt(!1),w&&!Pe.current&&Te(!1)},[w]);var ut=$M(),ot=ce(ut,2),Lt=ot[0],tn=ot[1],hn=s.useRef(!1),cn=function(zt){var un=Lt(),Nt=zt.key,Pt=Nt==="Enter";if(Pt&&(y!=="combobox"&&zt.preventDefault(),ht||tt(!0)),tn(!!ye),Nt==="Backspace"&&!un&&De&&!ye&&h.length){for(var yn=ke(h),Ln=null,lr=yn.length-1;lr>=0;lr-=1){var Pr=yn[lr];if(!Pr.disabled){yn.splice(lr,1),Ln=Pr;break}}Ln&&v(yn,{type:"remove",values:[Ln]})}for(var sr=arguments.length,kr=new Array(sr>1?sr-1:0),vn=1;vn<sr;vn++)kr[vn-1]=arguments[vn];if(ht&&(!Pt||!hn.current)){var dt;Pt&&(hn.current=!0),(dt=Je.current)===null||dt===void 0||dt.onKeyDown.apply(dt,[zt].concat(kr))}le?.apply(void 0,[zt].concat(kr))},En=function(zt){for(var un=arguments.length,Nt=new Array(un>1?un-1:0),Pt=1;Pt<un;Pt++)Nt[Pt-1]=arguments[Pt];if(ht){var yn;(yn=Je.current)===null||yn===void 0||yn.onKeyUp.apply(yn,[zt].concat(Nt))}zt.key==="Enter"&&(hn.current=!1),me?.apply(void 0,[zt].concat(Nt))},rn=function(zt){var un=h.filter(function(Nt){return Nt!==zt});v(un,{type:"remove",values:[zt]})},xn=function(){hn.current=!1},lt=s.useRef(!1),St=function(){Te(!0),w||(he&&!lt.current&&he.apply(void 0,arguments),oe.includes("focus")&&tt(!0)),lt.current=!0},Bt=function(){Pe.current=!0,Te(!1,function(){lt.current=!1,Pe.current=!1,tt(!1)}),!w&&(ye&&(y==="tags"?H(ye,{source:"submit"}):y==="multiple"&&H("",{source:"blur"})),de&&de.apply(void 0,arguments))},kt=[];s.useEffect(function(){return function(){kt.forEach(function(At){return clearTimeout(At)}),kt.splice(0,kt.length)}},[]);var vt=function(zt){var un,Nt=zt.target,Pt=(un=Ze.current)===null||un===void 0?void 0:un.getPopupElement();if(Pt&&Pt.contains(Nt)){var yn=setTimeout(function(){var sr=kt.indexOf(yn);if(sr!==-1&&kt.splice(sr,1),be(),!we&&!Pt.contains(document.activeElement)){var kr;(kr=Ye.current)===null||kr===void 0||kr.focus()}});kt.push(yn)}for(var Ln=arguments.length,lr=new Array(Ln>1?Ln-1:0),Pr=1;Pr<Ln;Pr++)lr[Pr-1]=arguments[Pr];pe?.apply(void 0,[zt].concat(lr))},Et=s.useState({}),Qt=ce(Et,2),on=Qt[1];function bt(){on({})}var Ht;Ge&&(Ht=function(zt){tt(zt)}),zB(function(){var At;return[He.current,(At=Ze.current)===null||At===void 0?void 0:At.getPopupElement()]},_t,tt,!!Ge);var nn=s.useMemo(function(){return ee(ee({},e),{},{notFoundContent:S,open:ht,triggerOpen:_t,id:r,showSearch:je,multiple:De,toggleOpen:tt})},[e,S,_t,ht,r,je,De,tt]),Xn=!!V||$,br;Xn&&(br=s.createElement(sg,{className:se("".concat(a,"-arrow"),X({},"".concat(a,"-arrow-loading"),$)),customizeIcon:V,customizeIconProps:{loading:$,searchValue:ye,open:ht,focused:$e,showSearch:je}}));var wr=function(){var zt;C?.(),(zt=Ye.current)===null||zt===void 0||zt.focus(),v([],{type:"clear",values:h}),Dt("",!1,!1)},$r=PB(a,wr,h,T,q,w,ye,y),Yn=$r.allowClear,Gn=$r.clearIcon,Dr=s.createElement(G,{ref:Je}),Hr=se(a,o,X(X(X(X(X(X(X(X(X(X({},"".concat(a,"-focused"),$e),"".concat(a,"-multiple"),De),"".concat(a,"-single"),!De),"".concat(a,"-allow-clear"),T),"".concat(a,"-show-arrow"),Xn),"".concat(a,"-disabled"),w),"".concat(a,"-loading"),$),"".concat(a,"-open"),ht),"".concat(a,"-customize-input"),Re),"".concat(a,"-show-search"),je)),Nr=s.createElement(EF,{ref:Ze,disabled:w,prefixCls:a,visible:_t,popupElement:Dr,animation:B,transitionName:U,dropdownStyle:K,dropdownClassName:Y,direction:f,dropdownMatchSelectWidth:Q,dropdownRender:Z,dropdownAlign:ae,placement:re,builtinPlacements:ie,getPopupContainer:ve,empty:g,getTriggerDOMNode:function(zt){return it.current||zt},onPopupVisibleChange:Ht,onPopupMouseEnter:bt},Ge?s.cloneElement(Ge,{ref:ft}):s.createElement(cF,Me({},e,{domRef:it,prefixCls:a,inputElement:Re,ref:Ye,id:r,prefix:z,showSearch:je,autoClearSearchValue:F,mode:y,activeDescendantId:P,tagRender:u,values:h,open:ht,onToggleOpen:tt,activeValue:D,searchValue:ye,onSearch:Dt,onSearchSubmit:Jt,onRemove:rn,tokenWithEnter:Ue,onInputBlur:xn}))),In;return Ge?In=Nr:In=s.createElement("div",Me({className:Hr},ge,{ref:He,onMouseDown:vt,onKeyDown:cn,onKeyUp:En,onFocus:St,onBlur:Bt}),s.createElement(RF,{visible:$e&&!ht,values:h}),Nr,br,Yn&&Gn),s.createElement(wM.Provider,{value:nn},In)}),Ax=function(){return null};Ax.isSelectOptGroup=!0;var zx=function(){return null};zx.isSelectOption=!0;var jM=s.forwardRef(function(e,t){var n=e.height,r=e.offsetY,a=e.offsetX,o=e.children,c=e.prefixCls,u=e.onInnerResize,f=e.innerProps,d=e.rtl,h=e.extra,v={},g={display:"flex",flexDirection:"column"};return r!==void 0&&(v={height:n,position:"relative",overflow:"hidden"},g=ee(ee({},g),{},X(X(X(X(X({transform:"translateY(".concat(r,"px)")},d?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),s.createElement("div",{style:v},s.createElement(xa,{onResize:function(S){var C=S.offsetHeight;C&&u&&u()}},s.createElement("div",Me({style:g,className:se(X({},"".concat(c,"-holder-inner"),c)),ref:t},f),o,h)))});jM.displayName="Filler";function TF(e){var t=e.children,n=e.setRef,r=s.useCallback(function(a){n(a)},[]);return s.cloneElement(t,{ref:r})}function DF(e,t,n,r,a,o,c,u){var f=u.getKey;return e.slice(t,n+1).map(function(d,h){var v=t+h,g=c(d,v,{style:{width:r},offsetX:a}),b=f(d);return s.createElement(TF,{key:b,setRef:function(C){return o(d,C)}},g)})}function PF(e,t,n){var r=e.length,a=t.length,o,c;if(r===0&&a===0)return null;r<a?(o=e,c=t):(o=t,c=e);var u={__EMPTY_ITEM__:!0};function f(S){return S!==void 0?n(S):u}for(var d=null,h=Math.abs(r-a)!==1,v=0;v<c.length;v+=1){var g=f(o[v]),b=f(c[v]);if(g!==b){d=v,h=h||g!==f(c[v+1]);break}}return d===null?null:{index:d,multiple:h}}function kF(e,t,n){var r=s.useState(e),a=ce(r,2),o=a[0],c=a[1],u=s.useState(null),f=ce(u,2),d=f[0],h=f[1];return s.useEffect(function(){var v=PF(o||[],e||[],t);v?.index!==void 0&&h(e[v.index]),c(e)},[e]),[d]}var V2=(typeof navigator>"u"?"undefined":jt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const TM=(function(e,t,n,r){var a=s.useRef(!1),o=s.useRef(null);function c(){clearTimeout(o.current),a.current=!0,o.current=setTimeout(function(){a.current=!1},50)}var u=s.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,v=f?d<0&&u.current.left||d>0&&u.current.right:d<0&&u.current.top||d>0&&u.current.bottom;return h&&v?(clearTimeout(o.current),a.current=!1):(!v||a.current)&&c(),!a.current&&v}});function AF(e,t,n,r,a,o,c){var u=s.useRef(0),f=s.useRef(null),d=s.useRef(null),h=s.useRef(!1),v=TM(t,n,r,a);function g($,_){if(mn.cancel(f.current),!v(!1,_)){var O=$;if(!O._virtualHandled)O._virtualHandled=!0;else return;u.current+=_,d.current=_,V2||O.preventDefault(),f.current=mn(function(){var I=h.current?10:1;c(u.current*I,!1),u.current=0})}}function b($,_){c(_,!0),V2||$.preventDefault()}var S=s.useRef(null),C=s.useRef(null);function y($){if(e){mn.cancel(C.current),C.current=mn(function(){S.current=null},2);var _=$.deltaX,O=$.deltaY,I=$.shiftKey,j=_,M=O;(S.current==="sx"||!S.current&&I&&O&&!_)&&(j=O,M=0,S.current="sx");var D=Math.abs(j),N=Math.abs(M);S.current===null&&(S.current=o&&D>N?"x":"y"),S.current==="y"?g($,M):b($,j)}}function w($){e&&(h.current=$.detail===d.current)}return[y,w]}function zF(e,t,n,r){var a=s.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=ce(a,2),c=o[0],u=o[1],f=function(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h,g=c.get(h),b=c.get(v);if(g===void 0||b===void 0)for(var S=e.length,C=u.length;C<S;C+=1){var y,w=e[C],$=t(w);c.set($,C);var _=(y=n.get($))!==null&&y!==void 0?y:r;if(u[C]=(u[C-1]||0)+_,$===h&&(g=C),$===v&&(b=C),g!==void 0&&b!==void 0)break}return{top:u[g-1]||0,bottom:u[b]}};return f}var LF=(function(){function e(){xr(this,e),X(this,"maps",void 0),X(this,"id",0),X(this,"diffRecords",new Map),this.maps=Object.create(null)}return Cr(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function K2(e){var t=parseFloat(e);return isNaN(t)?0:t}function HF(e,t,n){var r=s.useState(0),a=ce(r,2),o=a[0],c=a[1],u=s.useRef(new Map),f=s.useRef(new LF),d=s.useRef(0);function h(){d.current+=1}function v(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;h();var S=function(){var w=!1;u.current.forEach(function($,_){if($&&$.offsetParent){var O=$.offsetHeight,I=getComputedStyle($),j=I.marginTop,M=I.marginBottom,D=K2(j),N=K2(M),P=O+D+N;f.current.get(_)!==P&&(f.current.set(_,P),w=!0)}}),w&&c(function($){return $+1})};if(b)S();else{d.current+=1;var C=d.current;Promise.resolve().then(function(){C===d.current&&S()})}}function g(b,S){var C=e(b);u.current.get(C),S?(u.current.set(C,S),v()):u.current.delete(C)}return s.useEffect(function(){return h},[]),[g,v,f.current,o]}var U2=14/15;function BF(e,t,n){var r=s.useRef(!1),a=s.useRef(0),o=s.useRef(0),c=s.useRef(null),u=s.useRef(null),f,d=function(b){if(r.current){var S=Math.ceil(b.touches[0].pageX),C=Math.ceil(b.touches[0].pageY),y=a.current-S,w=o.current-C,$=Math.abs(y)>Math.abs(w);$?a.current=S:o.current=C;var _=n($,$?y:w,!1,b);_&&b.preventDefault(),clearInterval(u.current),_&&(u.current=setInterval(function(){$?y*=U2:w*=U2;var O=Math.floor($?y:w);(!n($,O,!0)||Math.abs(O)<=.1)&&clearInterval(u.current)},16))}},h=function(){r.current=!1,f()},v=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),c.current=b.target,c.current.addEventListener("touchmove",d,{passive:!1}),c.current.addEventListener("touchend",h,{passive:!0}))};f=function(){c.current&&(c.current.removeEventListener("touchmove",d),c.current.removeEventListener("touchend",h))},dn(function(){return e&&t.current.addEventListener("touchstart",v,{passive:!0}),function(){var g;(g=t.current)===null||g===void 0||g.removeEventListener("touchstart",v),f(),clearInterval(u.current)}},[e])}function W2(e){return Math.floor(Math.pow(e,.5))}function dS(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function FF(e,t,n){s.useEffect(function(){var r=t.current;if(e&&r){var a=!1,o,c,u=function(){mn.cancel(o)},f=function g(){u(),o=mn(function(){n(c),g()})},d=function(){a=!1,u()},h=function(b){if(!(b.target.draggable||b.button!==0)){var S=b;S._virtualHandled||(S._virtualHandled=!0,a=!0)}},v=function(b){if(a){var S=dS(b,!1),C=r.getBoundingClientRect(),y=C.top,w=C.bottom;if(S<=y){var $=y-S;c=-W2($),f()}else if(S>=w){var _=S-w;c=W2(_),f()}else u()}};return r.addEventListener("mousedown",h),r.ownerDocument.addEventListener("mouseup",d),r.ownerDocument.addEventListener("mousemove",v),r.ownerDocument.addEventListener("dragend",d),function(){r.removeEventListener("mousedown",h),r.ownerDocument.removeEventListener("mouseup",d),r.ownerDocument.removeEventListener("mousemove",v),r.ownerDocument.removeEventListener("dragend",d),u()}}},[e])}var VF=10;function KF(e,t,n,r,a,o,c,u){var f=s.useRef(),d=s.useState(null),h=ce(d,2),v=h[0],g=h[1];return dn(function(){if(v&&v.times<VF){if(!e.current){g(function(q){return ee({},q)});return}o();var b=v.targetAlign,S=v.originAlign,C=v.index,y=v.offset,w=e.current.clientHeight,$=!1,_=b,O=null;if(w){for(var I=b||S,j=0,M=0,D=0,N=Math.min(t.length-1,C),P=0;P<=N;P+=1){var A=a(t[P]);M=j;var F=n.get(A);D=M+(F===void 0?r:F),j=D}for(var H=I==="top"?y:w-y,k=N;k>=0;k-=1){var L=a(t[k]),T=n.get(L);if(T===void 0){$=!0;break}if(H-=T,H<=0)break}switch(I){case"top":O=M-y;break;case"bottom":O=D-w+y;break;default:{var z=e.current.scrollTop,V=z+w;M<z?_="top":D>V&&(_="bottom")}}O!==null&&c(O),O!==v.lastTop&&($=!0)}$&&g(ee(ee({},v),{},{times:v.times+1,targetAlign:_,lastTop:O}))}},[v,e.current]),function(b){if(b==null){u();return}if(mn.cancel(f.current),typeof b=="number")c(b);else if(b&&jt(b)==="object"){var S,C=b.align;"index"in b?S=b.index:S=t.findIndex(function($){return a($)===b.key});var y=b.offset,w=y===void 0?0:y;g({times:0,index:S,offset:w,originAlign:C})}}}var q2=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,o=e.scrollRange,c=e.onStartMove,u=e.onStopMove,f=e.onScroll,d=e.horizontal,h=e.spinSize,v=e.containerSize,g=e.style,b=e.thumbStyle,S=e.showScrollBar,C=s.useState(!1),y=ce(C,2),w=y[0],$=y[1],_=s.useState(null),O=ce(_,2),I=O[0],j=O[1],M=s.useState(null),D=ce(M,2),N=D[0],P=D[1],A=!r,F=s.useRef(),H=s.useRef(),k=s.useState(S),L=ce(k,2),T=L[0],z=L[1],V=s.useRef(),q=function(){S===!0||S===!1||(clearTimeout(V.current),z(!0),V.current=setTimeout(function(){z(!1)},3e3))},G=o-v||0,B=v-h||0,U=s.useMemo(function(){if(a===0||G===0)return 0;var ue=a/G;return ue*B},[a,G,B]),K=function(oe){oe.stopPropagation(),oe.preventDefault()},Y=s.useRef({top:U,dragging:w,pageY:I,startTop:N});Y.current={top:U,dragging:w,pageY:I,startTop:N};var Q=function(oe){$(!0),j(dS(oe,d)),P(Y.current.top),c(),oe.stopPropagation(),oe.preventDefault()};s.useEffect(function(){var ue=function(me){me.preventDefault()},oe=F.current,he=H.current;return oe.addEventListener("touchstart",ue,{passive:!1}),he.addEventListener("touchstart",Q,{passive:!1}),function(){oe.removeEventListener("touchstart",ue),he.removeEventListener("touchstart",Q)}},[]);var Z=s.useRef();Z.current=G;var ae=s.useRef();ae.current=B,s.useEffect(function(){if(w){var ue,oe=function(me){var le=Y.current,pe=le.dragging,Ce=le.pageY,De=le.startTop;mn.cancel(ue);var je=F.current.getBoundingClientRect(),ge=v/(d?je.width:je.height);if(pe){var Ie=(dS(me,d)-Ce)*ge,_e=De;!A&&d?_e-=Ie:_e+=Ie;var we=Z.current,Fe=ae.current,He=Fe?_e/Fe:0,it=Math.ceil(He*we);it=Math.max(it,0),it=Math.min(it,we),ue=mn(function(){f(it,d)})}},he=function(){$(!1),u()};return window.addEventListener("mousemove",oe,{passive:!0}),window.addEventListener("touchmove",oe,{passive:!0}),window.addEventListener("mouseup",he,{passive:!0}),window.addEventListener("touchend",he,{passive:!0}),function(){window.removeEventListener("mousemove",oe),window.removeEventListener("touchmove",oe),window.removeEventListener("mouseup",he),window.removeEventListener("touchend",he),mn.cancel(ue)}}},[w]),s.useEffect(function(){return q(),function(){clearTimeout(V.current)}},[a]),s.useImperativeHandle(t,function(){return{delayHidden:q}});var re="".concat(n,"-scrollbar"),ie={position:"absolute",visibility:T?null:"hidden"},ve={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return d?(Object.assign(ie,{height:8,left:0,right:0,bottom:0}),Object.assign(ve,X({height:"100%",width:h},A?"left":"right",U))):(Object.assign(ie,X({width:8,top:0,bottom:0},A?"right":"left",0)),Object.assign(ve,{width:"100%",height:h,top:U})),s.createElement("div",{ref:F,className:se(re,X(X(X({},"".concat(re,"-horizontal"),d),"".concat(re,"-vertical"),!d),"".concat(re,"-visible"),T)),style:ee(ee({},ie),g),onMouseDown:K,onMouseMove:q},s.createElement("div",{ref:H,className:se("".concat(re,"-thumb"),X({},"".concat(re,"-thumb-moving"),w)),style:ee(ee({},ve),b),onMouseDown:Q}))}),UF=20;function Y2(){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,UF),Math.floor(n)}var WF=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],qF=[],YF={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,c=e.itemHeight,u=e.fullHeight,f=u===void 0?!0:u,d=e.style,h=e.data,v=e.children,g=e.itemKey,b=e.virtual,S=e.direction,C=e.scrollWidth,y=e.component,w=y===void 0?"div":y,$=e.onScroll,_=e.onVirtualScroll,O=e.onVisibleChange,I=e.innerProps,j=e.extraRender,M=e.styles,D=e.showScrollBar,N=D===void 0?"optional":D,P=Kt(e,WF),A=s.useCallback(function(lt){return typeof g=="function"?g(lt):lt?.[g]},[g]),F=HF(A),H=ce(F,4),k=H[0],L=H[1],T=H[2],z=H[3],V=!!(b!==!1&&o&&c),q=s.useMemo(function(){return Object.values(T.maps).reduce(function(lt,St){return lt+St},0)},[T.id,T.maps]),G=V&&h&&(Math.max(c*h.length,q)>o||!!C),B=S==="rtl",U=se(r,X({},"".concat(r,"-rtl"),B),a),K=h||qF,Y=s.useRef(),Q=s.useRef(),Z=s.useRef(),ae=s.useState(0),re=ce(ae,2),ie=re[0],ve=re[1],ue=s.useState(0),oe=ce(ue,2),he=oe[0],de=oe[1],me=s.useState(!1),le=ce(me,2),pe=le[0],Ce=le[1],De=function(){Ce(!0)},je=function(){Ce(!1)},ge={getKey:A};function Ie(lt){ve(function(St){var Bt;typeof lt=="function"?Bt=lt(St):Bt=lt;var kt=mt(Bt);return Y.current.scrollTop=kt,kt})}var _e=s.useRef({start:0,end:K.length}),we=s.useRef(),Fe=kF(K,A),He=ce(Fe,1),it=He[0];we.current=it;var Ze=s.useMemo(function(){if(!V)return{scrollHeight:void 0,start:0,end:K.length-1,offset:void 0};if(!G){var lt;return{scrollHeight:((lt=Q.current)===null||lt===void 0?void 0:lt.offsetHeight)||0,start:0,end:K.length-1,offset:void 0}}for(var St=0,Bt,kt,vt,Et=K.length,Qt=0;Qt<Et;Qt+=1){var on=K[Qt],bt=A(on),Ht=T.get(bt),nn=St+(Ht===void 0?c:Ht);nn>=ie&&Bt===void 0&&(Bt=Qt,kt=St),nn>ie+o&&vt===void 0&&(vt=Qt),St=nn}return Bt===void 0&&(Bt=0,kt=0,vt=Math.ceil(o/c)),vt===void 0&&(vt=K.length-1),vt=Math.min(vt+1,K.length-1),{scrollHeight:St,start:Bt,end:vt,offset:kt}},[G,V,ie,K,z,o]),Ye=Ze.scrollHeight,Je=Ze.start,Pe=Ze.end,Oe=Ze.offset;_e.current.start=Je,_e.current.end=Pe,s.useLayoutEffect(function(){var lt=T.getRecord();if(lt.size===1){var St=Array.from(lt.keys())[0],Bt=lt.get(St),kt=K[Je];if(kt&&Bt===void 0){var vt=A(kt);if(vt===St){var Et=T.get(St),Qt=Et-c;Ie(function(on){return on+Qt})}}}T.resetRecord()},[Ye]);var Be=s.useState({width:0,height:o}),$e=ce(Be,2),Te=$e[0],be=$e[1],ye=function(St){be({width:St.offsetWidth,height:St.offsetHeight})},Re=s.useRef(),Ge=s.useRef(),ft=s.useMemo(function(){return Y2(Te.width,C)},[Te.width,C]),$t=s.useMemo(function(){return Y2(Te.height,Ye)},[Te.height,Ye]),Qe=Ye-o,at=s.useRef(Qe);at.current=Qe;function mt(lt){var St=lt;return Number.isNaN(at.current)||(St=Math.min(St,at.current)),St=Math.max(St,0),St}var st=ie<=0,pt=ie>=Qe,Wt=he<=0,Yt=he>=C,ht=TM(st,pt,Wt,Yt),It=function(){return{x:B?-he:he,y:ie}},_t=s.useRef(It()),tt=pn(function(lt){if(_){var St=ee(ee({},It()),lt);(_t.current.x!==St.x||_t.current.y!==St.y)&&(_(St),_t.current=St)}});function Ue(lt,St){var Bt=lt;St?(Li.flushSync(function(){de(Bt)}),tt()):Ie(Bt)}function qe(lt){var St=lt.currentTarget.scrollTop;St!==ie&&Ie(St),$?.(lt),tt()}var ct=function(St){var Bt=St,kt=C?C-Te.width:0;return Bt=Math.max(Bt,0),Bt=Math.min(Bt,kt),Bt},Tt=pn(function(lt,St){St?(Li.flushSync(function(){de(function(Bt){var kt=Bt+(B?-lt:lt);return ct(kt)})}),tt()):Ie(function(Bt){var kt=Bt+lt;return kt})}),Dt=AF(V,st,pt,Wt,Yt,!!C,Tt),Jt=ce(Dt,2),ut=Jt[0],ot=Jt[1];BF(V,Y,function(lt,St,Bt,kt){var vt=kt;return ht(lt,St,Bt)?!1:!vt||!vt._virtualHandled?(vt&&(vt._virtualHandled=!0),ut({preventDefault:function(){},deltaX:lt?St:0,deltaY:lt?0:St}),!0):!1}),FF(G,Y,function(lt){Ie(function(St){return St+lt})}),dn(function(){function lt(Bt){var kt=st&&Bt.detail<0,vt=pt&&Bt.detail>0;V&&!kt&&!vt&&Bt.preventDefault()}var St=Y.current;return St.addEventListener("wheel",ut,{passive:!1}),St.addEventListener("DOMMouseScroll",ot,{passive:!0}),St.addEventListener("MozMousePixelScroll",lt,{passive:!1}),function(){St.removeEventListener("wheel",ut),St.removeEventListener("DOMMouseScroll",ot),St.removeEventListener("MozMousePixelScroll",lt)}},[V,st,pt]),dn(function(){if(C){var lt=ct(he);de(lt),tt({x:lt})}},[Te.width,C]);var Lt=function(){var St,Bt;(St=Re.current)===null||St===void 0||St.delayHidden(),(Bt=Ge.current)===null||Bt===void 0||Bt.delayHidden()},tn=KF(Y,K,T,c,A,function(){return L(!0)},Ie,Lt);s.useImperativeHandle(t,function(){return{nativeElement:Z.current,getScrollInfo:It,scrollTo:function(St){function Bt(kt){return kt&&jt(kt)==="object"&&("left"in kt||"top"in kt)}Bt(St)?(St.left!==void 0&&de(ct(St.left)),tn(St.top)):tn(St)}}}),dn(function(){if(O){var lt=K.slice(Je,Pe+1);O(lt,K)}},[Je,Pe,K]);var hn=zF(K,A,T,c),cn=j?.({start:Je,end:Pe,virtual:G,offsetX:he,offsetY:Oe,rtl:B,getSize:hn}),En=DF(K,Je,Pe,C,he,k,v,ge),rn=null;o&&(rn=ee(X({},f?"height":"maxHeight",o),YF),V&&(rn.overflowY="hidden",C&&(rn.overflowX="hidden"),pe&&(rn.pointerEvents="none")));var xn={};return B&&(xn.dir="rtl"),s.createElement("div",Me({ref:Z,style:ee(ee({},d),{},{position:"relative"}),className:U},xn,P),s.createElement(xa,{onResize:ye},s.createElement(w,{className:"".concat(r,"-holder"),style:rn,ref:Y,onScroll:qe,onMouseEnter:Lt},s.createElement(jM,{prefixCls:r,height:Ye,offsetX:he,offsetY:Oe,scrollWidth:C,onInnerResize:L,ref:Q,innerProps:I,rtl:B,extra:cn},En))),G&&Ye>o&&s.createElement(q2,{ref:Re,prefixCls:r,scrollOffset:ie,scrollRange:Ye,rtl:B,onScroll:Ue,onStartMove:De,onStopMove:je,spinSize:$t,containerSize:Te.height,style:M?.verticalScrollBar,thumbStyle:M?.verticalScrollBarThumb,showScrollBar:N}),G&&C>Te.width&&s.createElement(q2,{ref:Ge,prefixCls:r,scrollOffset:he,scrollRange:C,rtl:B,onScroll:Ue,onStartMove:De,onStopMove:je,spinSize:ft,containerSize:Te.width,horizontal:!0,style:M?.horizontalScrollBar,thumbStyle:M?.horizontalScrollBarThumb,showScrollBar:N}))}var cg=s.forwardRef(GF);cg.displayName="List";function XF(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var QF=["disabled","title","children","style","className"];function G2(e){return typeof e=="string"||typeof e=="number"}var ZF=function(t,n){var r=kB(),a=r.prefixCls,o=r.id,c=r.open,u=r.multiple,f=r.mode,d=r.searchValue,h=r.toggleOpen,v=r.notFoundContent,g=r.onPopupScroll,b=s.useContext(kx),S=b.maxCount,C=b.flattenOptions,y=b.onActiveValue,w=b.defaultActiveFirstOption,$=b.onSelect,_=b.menuItemSelectedIcon,O=b.rawValues,I=b.fieldNames,j=b.virtual,M=b.direction,D=b.listHeight,N=b.listItemHeight,P=b.optionRender,A="".concat(a,"-item"),F=Ts(function(){return C},[c,C],function(ue,oe){return oe[0]&&ue[1]!==oe[1]}),H=s.useRef(null),k=s.useMemo(function(){return u&&sS(S)&&O?.size>=S},[u,S,O?.size]),L=function(oe){oe.preventDefault()},T=function(oe){var he;(he=H.current)===null||he===void 0||he.scrollTo(typeof oe=="number"?{index:oe}:oe)},z=s.useCallback(function(ue){return f==="combobox"?!1:O.has(ue)},[f,ke(O).toString(),O.size]),V=function(oe){for(var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,de=F.length,me=0;me<de;me+=1){var le=(oe+me*he+de)%de,pe=F[le]||{},Ce=pe.group,De=pe.data;if(!Ce&&!(De!=null&&De.disabled)&&(z(De.value)||!k))return le}return-1},q=s.useState(function(){return V(0)}),G=ce(q,2),B=G[0],U=G[1],K=function(oe){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;U(oe);var de={source:he?"keyboard":"mouse"},me=F[oe];if(!me){y(null,-1,de);return}y(me.value,oe,de)};s.useEffect(function(){K(w!==!1?V(0):-1)},[F.length,d]);var Y=s.useCallback(function(ue){return f==="combobox"?String(ue).toLowerCase()===d.toLowerCase():O.has(ue)},[f,d,ke(O).toString(),O.size]);s.useEffect(function(){var ue=setTimeout(function(){if(!u&&c&&O.size===1){var he=Array.from(O)[0],de=F.findIndex(function(me){var le=me.data;return d?String(le.value).startsWith(d):le.value===he});de!==-1&&(K(de),T(de))}});if(c){var oe;(oe=H.current)===null||oe===void 0||oe.scrollTo(void 0)}return function(){return clearTimeout(ue)}},[c,d]);var Q=function(oe){oe!==void 0&&$(oe,{selected:!O.has(oe)}),u||h(!1)};if(s.useImperativeHandle(n,function(){return{onKeyDown:function(oe){var he=oe.which,de=oe.ctrlKey;switch(he){case Mt.N:case Mt.P:case Mt.UP:case Mt.DOWN:{var me=0;if(he===Mt.UP?me=-1:he===Mt.DOWN?me=1:XF()&&de&&(he===Mt.N?me=1:he===Mt.P&&(me=-1)),me!==0){var le=V(B+me,me);T(le),K(le,!0)}break}case Mt.TAB:case Mt.ENTER:{var pe,Ce=F[B];Ce&&!(Ce!=null&&(pe=Ce.data)!==null&&pe!==void 0&&pe.disabled)&&!k?Q(Ce.value):Q(void 0),c&&oe.preventDefault();break}case Mt.ESC:h(!1),c&&oe.stopPropagation()}},onKeyUp:function(){},scrollTo:function(oe){T(oe)}}}),F.length===0)return s.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(A,"-empty"),onMouseDown:L},v);var Z=Object.keys(I).map(function(ue){return I[ue]}),ae=function(oe){return oe.label};function re(ue,oe){var he=ue.group;return{role:he?"presentation":"option",id:"".concat(o,"_list_").concat(oe)}}var ie=function(oe){var he=F[oe];if(!he)return null;var de=he.data||{},me=de.value,le=he.group,pe=ma(de,!0),Ce=ae(he);return he?s.createElement("div",Me({"aria-label":typeof Ce=="string"&&!le?Ce:null},pe,{key:oe},re(he,oe),{"aria-selected":Y(me)}),me):null},ve={role:"listbox",id:"".concat(o,"_list")};return s.createElement(s.Fragment,null,j&&s.createElement("div",Me({},ve,{style:{height:0,width:0,overflow:"hidden"}}),ie(B-1),ie(B),ie(B+1)),s.createElement(cg,{itemKey:"key",ref:H,data:F,height:D,itemHeight:N,fullHeight:!1,onMouseDown:L,onScroll:g,virtual:j,direction:M,innerProps:j?null:ve},function(ue,oe){var he=ue.group,de=ue.groupOption,me=ue.data,le=ue.label,pe=ue.value,Ce=me.key;if(he){var De,je=(De=me.title)!==null&&De!==void 0?De:G2(le)?le.toString():void 0;return s.createElement("div",{className:se(A,"".concat(A,"-group"),me.className),title:je},le!==void 0?le:Ce)}var ge=me.disabled,Ie=me.title;me.children;var _e=me.style,we=me.className,Fe=Kt(me,QF),He=or(Fe,Z),it=z(pe),Ze=ge||!it&&k,Ye="".concat(A,"-option"),Je=se(A,Ye,we,X(X(X(X({},"".concat(Ye,"-grouped"),de),"".concat(Ye,"-active"),B===oe&&!Ze),"".concat(Ye,"-disabled"),Ze),"".concat(Ye,"-selected"),it)),Pe=ae(ue),Oe=!_||typeof _=="function"||it,Be=typeof Pe=="number"?Pe:Pe||pe,$e=G2(Be)?Be.toString():void 0;return Ie!==void 0&&($e=Ie),s.createElement("div",Me({},ma(He),j?{}:re(ue,oe),{"aria-selected":Y(pe),className:Je,title:$e,onMouseMove:function(){B===oe||Ze||K(oe)},onClick:function(){Ze||Q(pe)},style:_e}),s.createElement("div",{className:"".concat(Ye,"-content")},typeof P=="function"?P(ue,{index:oe}):Be),s.isValidElement(_)||it,Oe&&s.createElement(sg,{className:"".concat(A,"-option-state"),customizeIcon:_,customizeIconProps:{value:pe,disabled:Ze,isSelected:it}},it?"✓":null))}))},JF=s.forwardRef(ZF);const e7=(function(e,t){var n=s.useRef({values:new Map,options:new Map}),r=s.useMemo(function(){var o=n.current,c=o.values,u=o.options,f=e.map(function(v){if(v.label===void 0){var g;return ee(ee({},v),{},{label:(g=c.get(v.value))===null||g===void 0?void 0:g.label})}return v}),d=new Map,h=new Map;return f.forEach(function(v){d.set(v.value,v),h.set(v.value,t.get(v.value)||u.get(v.value))}),n.current.values=d,n.current.options=h,f},[e,t]),a=s.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,a]});function $0(e,t){return RM(e).join("").toUpperCase().includes(t)}const t7=(function(e,t,n,r,a){return s.useMemo(function(){if(!n||r===!1)return e;var o=t.options,c=t.label,u=t.value,f=[],d=typeof r=="function",h=n.toUpperCase(),v=d?r:function(b,S){return a?$0(S[a],h):S[o]?$0(S[c!=="children"?c:"label"],h):$0(S[u],h)},g=d?function(b){return cS(b)}:function(b){return b};return e.forEach(function(b){if(b[o]){var S=v(n,g(b));if(S)f.push(b);else{var C=b[o].filter(function(y){return v(n,g(y))});C.length&&f.push(ee(ee({},b),{},X({},o,C)))}return}v(n,g(b))&&f.push(b)}),f},[e,r,a,n,t])});var X2=0,n7=Ca();function r7(){var e;return n7?(e=X2,X2+=1):e="TEST_OR_SSR",e}function a7(e){var t=s.useState(),n=ce(t,2),r=n[0],a=n[1];return s.useEffect(function(){a("rc_select_".concat(r7()))},[]),e||r}var i7=["children","value"],o7=["children"];function l7(e){var t=e,n=t.key,r=t.props,a=r.children,o=r.value,c=Kt(r,i7);return ee({key:n,value:o!==void 0?o:n,children:a},c)}function DM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ma(e).map(function(n,r){if(!s.isValidElement(n)||!n.type)return null;var a=n,o=a.type.isSelectOptGroup,c=a.key,u=a.props,f=u.children,d=Kt(u,o7);return t||!o?l7(n):ee(ee({key:"__RC_SELECT_GRP__".concat(c===null?r:c,"__"),label:c},d),{},{options:DM(f)})}).filter(function(n){return n})}var s7=function(t,n,r,a,o){return s.useMemo(function(){var c=t,u=!t;u&&(c=DM(n));var f=new Map,d=new Map,h=function(b,S,C){C&&typeof C=="string"&&b.set(S[C],S)},v=function g(b){for(var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=0;C<b.length;C+=1){var y=b[C];!y[r.options]||S?(f.set(y[r.value],y),h(d,y,r.label),h(d,y,a),h(d,y,o)):g(y[r.options],!0)}};return v(c),{options:c,valueOptions:f,labelOptions:d}},[t,n,r,a,o])};function Q2(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var c7=["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"],u7=["inputValue"];function d7(e){return!e||jt(e)!=="object"}var f7=s.forwardRef(function(e,t){var n=e.id,r=e.mode,a=e.prefixCls,o=a===void 0?"rc-select":a,c=e.backfill,u=e.fieldNames,f=e.inputValue,d=e.searchValue,h=e.onSearch,v=e.autoClearSearchValue,g=v===void 0?!0:v,b=e.onSelect,S=e.onDeselect,C=e.dropdownMatchSelectWidth,y=C===void 0?!0:C,w=e.filterOption,$=e.filterSort,_=e.optionFilterProp,O=e.optionLabelProp,I=e.options,j=e.optionRender,M=e.children,D=e.defaultActiveFirstOption,N=e.menuItemSelectedIcon,P=e.virtual,A=e.direction,F=e.listHeight,H=F===void 0?200:F,k=e.listItemHeight,L=k===void 0?20:k,T=e.labelRender,z=e.value,V=e.defaultValue,q=e.labelInValue,G=e.onChange,B=e.maxCount,U=Kt(e,c7),K=a7(n),Y=uS(r),Q=!!(!I&&M),Z=s.useMemo(function(){return w===void 0&&r==="combobox"?!1:w},[w,r]),ae=s.useMemo(function(){return MM(u,Q)},[JSON.stringify(u),Q]),re=Wn("",{value:d!==void 0?d:f,postState:function(Ue){return Ue||""}}),ie=ce(re,2),ve=ie[0],ue=ie[1],oe=s7(I,M,ae,_,O),he=oe.valueOptions,de=oe.labelOptions,me=oe.options,le=s.useCallback(function(tt){var Ue=RM(tt);return Ue.map(function(qe){var ct,Tt,Dt,Jt,ut;if(d7(qe))ct=qe;else{var ot;Dt=qe.key,Tt=qe.label,ct=(ot=qe.value)!==null&&ot!==void 0?ot:Dt}var Lt=he.get(ct);if(Lt){var tn;Tt===void 0&&(Tt=Lt?.[O||ae.label]),Dt===void 0&&(Dt=(tn=Lt?.key)!==null&&tn!==void 0?tn:ct),Jt=Lt?.disabled,ut=Lt?.title}return{label:Tt,value:ct,key:Dt,disabled:Jt,title:ut}})},[ae,O,he]),pe=Wn(V,{value:z}),Ce=ce(pe,2),De=Ce[0],je=Ce[1],ge=s.useMemo(function(){var tt,Ue=Y&&De===null?[]:De,qe=le(Ue);return r==="combobox"&&rF((tt=qe[0])===null||tt===void 0?void 0:tt.value)?[]:qe},[De,le,r,Y]),Ie=e7(ge,he),_e=ce(Ie,2),we=_e[0],Fe=_e[1],He=s.useMemo(function(){if(!r&&we.length===1){var tt=we[0];if(tt.value===null&&(tt.label===null||tt.label===void 0))return[]}return we.map(function(Ue){var qe;return ee(ee({},Ue),{},{label:(qe=typeof T=="function"?T(Ue):Ue.label)!==null&&qe!==void 0?qe:Ue.value})})},[r,we,T]),it=s.useMemo(function(){return new Set(we.map(function(tt){return tt.value}))},[we]);s.useEffect(function(){if(r==="combobox"){var tt,Ue=(tt=we[0])===null||tt===void 0?void 0:tt.value;ue(nF(Ue)?String(Ue):"")}},[we]);var Ze=Q2(function(tt,Ue){var qe=Ue??tt;return X(X({},ae.value,tt),ae.label,qe)}),Ye=s.useMemo(function(){if(r!=="tags")return me;var tt=ke(me),Ue=function(ct){return he.has(ct)};return ke(we).sort(function(qe,ct){return qe.value<ct.value?-1:1}).forEach(function(qe){var ct=qe.value;Ue(ct)||tt.push(Ze(ct,qe.label))}),tt},[Ze,me,he,we,r]),Je=t7(Ye,ae,ve,Z,_),Pe=s.useMemo(function(){return r!=="tags"||!ve||Je.some(function(tt){return tt[_||"value"]===ve})||Je.some(function(tt){return tt[ae.value]===ve})?Je:[Ze(ve)].concat(ke(Je))},[Ze,_,r,Je,ve,ae]),Oe=function tt(Ue){var qe=ke(Ue).sort(function(ct,Tt){return $(ct,Tt,{searchValue:ve})});return qe.map(function(ct){return Array.isArray(ct.options)?ee(ee({},ct),{},{options:ct.options.length>0?tt(ct.options):ct.options}):ct})},Be=s.useMemo(function(){return $?Oe(Pe):Pe},[Pe,$,ve]),$e=s.useMemo(function(){return OF(Be,{fieldNames:ae,childrenAsData:Q})},[Be,ae,Q]),Te=function(Ue){var qe=le(Ue);if(je(qe),G&&(qe.length!==we.length||qe.some(function(Dt,Jt){var ut;return((ut=we[Jt])===null||ut===void 0?void 0:ut.value)!==Dt?.value}))){var ct=q?qe:qe.map(function(Dt){return Dt.value}),Tt=qe.map(function(Dt){return cS(Fe(Dt.value))});G(Y?ct:ct[0],Y?Tt:Tt[0])}},be=s.useState(null),ye=ce(be,2),Re=ye[0],Ge=ye[1],ft=s.useState(0),$t=ce(ft,2),Qe=$t[0],at=$t[1],mt=D!==void 0?D:r!=="combobox",st=s.useCallback(function(tt,Ue){var qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ct=qe.source,Tt=ct===void 0?"keyboard":ct;at(Ue),c&&r==="combobox"&&tt!==null&&Tt==="keyboard"&&Ge(String(tt))},[c,r]),pt=function(Ue,qe,ct){var Tt=function(){var rn,xn=Fe(Ue);return[q?{label:xn?.[ae.label],value:Ue,key:(rn=xn?.key)!==null&&rn!==void 0?rn:Ue}:Ue,cS(xn)]};if(qe&&b){var Dt=Tt(),Jt=ce(Dt,2),ut=Jt[0],ot=Jt[1];b(ut,ot)}else if(!qe&&S&&ct!=="clear"){var Lt=Tt(),tn=ce(Lt,2),hn=tn[0],cn=tn[1];S(hn,cn)}},Wt=Q2(function(tt,Ue){var qe,ct=Y?Ue.selected:!0;ct?qe=Y?[].concat(ke(we),[tt]):[tt]:qe=we.filter(function(Tt){return Tt.value!==tt}),Te(qe),pt(tt,ct),r==="combobox"?Ge(""):(!uS||g)&&(ue(""),Ge(""))}),Yt=function(Ue,qe){Te(Ue);var ct=qe.type,Tt=qe.values;(ct==="remove"||ct==="clear")&&Tt.forEach(function(Dt){pt(Dt.value,!1,ct)})},ht=function(Ue,qe){if(ue(Ue),Ge(null),qe.source==="submit"){var ct=(Ue||"").trim();if(ct){var Tt=Array.from(new Set([].concat(ke(it),[ct])));Te(Tt),pt(ct,!0),ue("")}return}qe.source!=="blur"&&(r==="combobox"&&Te(Ue),h?.(Ue))},It=function(Ue){var qe=Ue;r!=="tags"&&(qe=Ue.map(function(Tt){var Dt=de.get(Tt);return Dt?.value}).filter(function(Tt){return Tt!==void 0}));var ct=Array.from(new Set([].concat(ke(it),ke(qe))));Te(ct),ct.forEach(function(Tt){pt(Tt,!0)})},_t=s.useMemo(function(){var tt=P!==!1&&y!==!1;return ee(ee({},oe),{},{flattenOptions:$e,onActiveValue:st,defaultActiveFirstOption:mt,onSelect:Wt,menuItemSelectedIcon:N,rawValues:it,fieldNames:ae,virtual:tt,direction:A,listHeight:H,listItemHeight:L,childrenAsData:Q,maxCount:B,optionRender:j})},[B,oe,$e,st,mt,Wt,N,it,ae,P,y,A,H,L,Q,j]);return s.createElement(kx.Provider,{value:_t},s.createElement(jF,Me({},U,{id:K,prefixCls:o,ref:t,omitDomProps:u7,mode:r,displayValues:He,onDisplayValuesChange:Yt,direction:A,searchValue:ve,onSearch:ht,autoClearSearchValue:g,onSearchSplit:It,dropdownMatchSelectWidth:y,OptionList:JF,emptyOptions:!$e.length,activeValue:Re,activeDescendantId:"".concat(K,"_list_").concat(Qe)})))}),Lx=f7;Lx.Option=zx;Lx.OptGroup=Ax;function Hl(e,t,n){return se({[`${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 Ds=(e,t)=>t||e,m7=()=>{const[,e]=Ta(),[t]=ho("Empty"),r=new Tn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return s.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,t?.description||"Empty"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("g",{transform:"translate(24 31.67)"},s.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),s.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"}),s.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)"}),s.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"}),s.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"})),s.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"}),s.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},s.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),s.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},h7=()=>{const[,e]=Ta(),[t]=ho("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:o}=e,{borderColor:c,shadowColor:u,contentColor:f}=s.useMemo(()=>({borderColor:new Tn(n).onBackground(o).toHexString(),shadowColor:new Tn(r).onBackground(o).toHexString(),contentColor:new Tn(a).onBackground(o).toHexString()}),[n,r,a,o]);return s.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,t?.description||"Empty"),s.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},s.createElement("ellipse",{fill:u,cx:"32",cy:"33",rx:"32",ry:"7"}),s.createElement("g",{fillRule:"nonzero",stroke:c},s.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"}),s.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}))))},v7=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:o,lineHeight:c}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:c,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}}}}},g7=Kn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=Sn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return v7(a)});var p7=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 PM=s.createElement(m7,null),kM=s.createElement(h7,null),Ao=e=>{var t;const{className:n,rootClassName:r,prefixCls:a,image:o,description:c,children:u,imageStyle:f,style:d,classNames:h,styles:v}=e,g=p7(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:b,direction:S,className:C,style:y,classNames:w,styles:$,image:_}=va("empty"),O=b("empty",a),[I,j,M]=g7(O),[D]=ho("Empty"),N=typeof c<"u"?c:D?.description,P=typeof N=="string"?N:"empty",A=(t=o??_)!==null&&t!==void 0?t:PM;let F=null;return typeof A=="string"?F=s.createElement("img",{draggable:!1,alt:P,src:A}):F=A,I(s.createElement("div",Object.assign({className:se(j,M,O,C,{[`${O}-normal`]:A===kM,[`${O}-rtl`]:S==="rtl"},n,r,w.root,h?.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),y),v?.root),d)},g),s.createElement("div",{className:se(`${O}-image`,w.image,h?.image),style:Object.assign(Object.assign(Object.assign({},f),$.image),v?.image)},F),N&&s.createElement("div",{className:se(`${O}-description`,w.description,h?.description),style:Object.assign(Object.assign({},$.description),v?.description)},N),u&&s.createElement("div",{className:se(`${O}-footer`,w.footer,h?.footer),style:Object.assign(Object.assign({},$.footer),v?.footer)},u)))};Ao.PRESENTED_IMAGE_DEFAULT=PM;Ao.PRESENTED_IMAGE_SIMPLE=kM;const Hx=e=>{const{componentName:t}=e,{getPrefixCls:n}=s.useContext(Ut),r=n("empty");switch(t){case"Table":case"List":return xe.createElement(Ao,{image:Ao.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return xe.createElement(Ao,{image:Ao.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return xe.createElement(Ao,null)}},Ps=(e,t,n=void 0)=>{var r,a;const{variant:o,[e]:c}=s.useContext(Ut),u=s.useContext(xM),f=c?.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=VA.includes(d);return[d,h]},b7=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 y7(e,t){return e||b7(t)}const Z2=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"}},S7=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`,c=`&${t}-slide-up-leave${t}-slide-up-leave-active`,u=`${n}-dropdown-placement-`,f=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},An(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:Yv},[`
          ${a}${u}topLeft,
          ${o}${u}topLeft,
          ${a}${u}topRight,
          ${o}${u}topRight
        `]:{animationName:Xv},[`${c}${u}bottomLeft`]:{animationName:Gv},[`
          ${c}${u}topLeft,
          ${c}${u}topRight
        `]:{animationName:Qv},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},Z2(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"},Bi),"&-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({},Z2(e)),{color:e.colorTextDisabled})}),[`${f}:has(+ ${f})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},co(e,"slide-up"),co(e,"slide-down"),ru(e,"move-up"),ru(e,"move-down")]},AM=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,o=e.max(e.calc(n).sub(r).equal(),0),c=e.max(e.calc(o).sub(a).equal(),0);return{basePadding:o,containerPadding:c,itemHeight:te(t),itemLineHeight:te(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},x7=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},zM=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:o,multipleItemColorDisabled:c,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:"calc(100% - 4px)",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:c,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({},ou()),{display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:d}})}}}},C7=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,c=x7(e),u=t?`${n}-${t}`:"",f=AM(e);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},zM(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:`${te(r)} 0`,lineHeight:te(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:f.itemHeight,lineHeight:te(f.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:te(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(c).equal(),"\n          &-input,\n          &-mirror\n        ":{height:o,fontFamily:e.fontFamily,lineHeight:te(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 _0(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[C7(e,t),a]}const w7=e=>{const{componentCls:t}=e,n=Sn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Sn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[_0(e),_0(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},_0(r,"lg")]};function E0(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),c=t?`${n}-${t}`:"";return{[`${n}-single${c}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},An(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:te(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:te(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 ${te(r)}`,[`${n}-selection-search-input`]:{height:o,fontSize:e.fontSize},"&:after":{lineHeight:te(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 ${te(r)}`,"&:after":{display:"none"}}}}}}}function $7(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[E0(e),E0(Sn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${te(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()}}}},E0(Sn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const _7=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:o,controlHeightLG:c,paddingXXS:u,controlPaddingHorizontal:f,zIndexPopupBase:d,colorText:h,fontWeightStrong:v,controlItemBgActive:g,controlItemBgHover:b,colorBgContainer:S,colorFillSecondary:C,colorBgContainerDisabled:y,colorTextDisabled:w,colorPrimaryHover:$,colorPrimary:_,controlOutline:O}=e,I=u*2,j=r*2,M=Math.min(a-I,a-j),D=Math.min(o-I,o-j),N=Math.min(c-I,c-j);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(u/2),zIndexPopup:d+50,optionSelectedColor:h,optionSelectedFontWeight:v,optionSelectedBg:g,optionActiveBg:b,optionPadding:`${(a-t*n)/2}px ${f}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:S,clearBg:S,singleItemHeightLG:c,multipleItemBg:C,multipleItemBorderColor:"transparent",multipleItemHeight:M,multipleItemHeightSM:D,multipleItemHeightLG:N,multipleSelectorBgDisabled:y,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:$,activeBorderColor:_,activeOutlineColor:O,selectAffixPadding:u}},LM=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${te(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 ${te(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},J2=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},LM(e,t))}),E7=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},LM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),J2(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),J2(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),HM=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${te(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}}}},eO=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},HM(e,t))}),O7=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},HM(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),eO(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),eO(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),I7=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${te(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),BM=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${te(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}}}},tO=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},BM(e,t))}),R7=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},BM(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),tO(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),tO(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),N7=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},E7(e)),O7(e)),I7(e)),R7(e))}),M7=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"}}}},j7=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"}}}},T7=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({},An(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},M7(e)),j7(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Bi),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Bi),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},ou()),{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",transform:"translateZ(0)","&: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()}}}}}},D7=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},T7(e),$7(e),w7(e),S7(e),{[`${t}-rtl`]:{direction:"rtl"}},jf(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},P7=Kn("Select",(e,{rootPrefixCls:t})=>{const n=Sn(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[D7(n),N7(n)]},_7,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var k7={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"},A7=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:k7}))},Bx=s.forwardRef(A7),z7={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"},L7=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:z7}))},Fx=s.forwardRef(L7),FM={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"},H7=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:FM}))},Vx=s.forwardRef(H7);function VM({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:a,multiple:o,hasFeedback:c,prefixCls:u,showSuffixIcon:f,feedbackIcon:d,showArrow:h,componentName:v}){const g=t??s.createElement(su,null),b=w=>e===null&&!c&&!h?null:s.createElement(s.Fragment,null,f!==!1&&w,c&&d);let S=null;if(e!==void 0)S=b(e);else if(a)S=b(s.createElement(qo,{spin:!0}));else{const w=`${u}-suffix`;S=({open:$,showSearch:_})=>b($&&_?s.createElement(Vx,{className:w}):s.createElement(Fx,{className:w}))}let C=null;n!==void 0?C=n:o?C=s.createElement(Bx,null):C=null;let y=null;return r!==void 0?y=r:y=s.createElement(cu,null),{clearIcon:g,suffixIcon:S,itemIcon:C,removeIcon:y}}function B7(e){return xe.useMemo(()=>{if(e)return(...t)=>xe.createElement(Go,{space:!0},e.apply(void 0,t))},[e])}function F7(e,t){return t!==void 0?t:e!==null}var V7=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 KM="SECRET_COMBOBOX_MODE_DO_NOT_USE",K7=(e,t)=>{var n,r,a,o,c;const{prefixCls:u,bordered:f,className:d,rootClassName:h,getPopupContainer:v,popupClassName:g,dropdownClassName:b,listHeight:S=256,placement:C,listItemHeight:y,size:w,disabled:$,notFoundContent:_,status:O,builtinPlacements:I,dropdownMatchSelectWidth:j,popupMatchSelectWidth:M,direction:D,style:N,allowClear:P,variant:A,dropdownStyle:F,transitionName:H,tagRender:k,maxCount:L,prefix:T,dropdownRender:z,popupRender:V,onDropdownVisibleChange:q,onOpenChange:G,styles:B,classNames:U}=e,K=V7(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:Y,getPrefixCls:Q,renderEmpty:Z,direction:ae,virtual:re,popupMatchSelectWidth:ie,popupOverflow:ve}=s.useContext(Ut),{showSearch:ue,style:oe,styles:he,className:de,classNames:me}=va("select"),[,le]=Ta(),pe=y??le?.controlHeight,Ce=Q("select",u),De=Q(),je=D??ae,{compactSize:ge,compactItemClassnames:Ie}=Zo(Ce,je),[_e,we]=Ps("select",A,f),Fe=oa(Ce),[He,it,Ze]=P7(Ce,Fe),Ye=s.useMemo(()=>{const{mode:ct}=e;if(ct!=="combobox")return ct===KM?"combobox":ct},[e.mode]),Je=Ye==="multiple"||Ye==="tags",Pe=F7(e.suffixIcon,e.showArrow),Oe=(n=M??j)!==null&&n!==void 0?n:ie,Be=((r=B?.popup)===null||r===void 0?void 0:r.root)||((a=he.popup)===null||a===void 0?void 0:a.root)||F,$e=B7(V||z),Te=G||q,{status:be,hasFeedback:ye,isFormItemInput:Re,feedbackIcon:Ge}=s.useContext(ia),ft=Ds(be,O);let $t;_!==void 0?$t=_:Ye==="combobox"?$t=null:$t=Z?.("Select")||s.createElement(Hx,{componentName:"Select"});const{suffixIcon:Qe,itemIcon:at,removeIcon:mt,clearIcon:st}=VM(Object.assign(Object.assign({},K),{multiple:Je,hasFeedback:ye,feedbackIcon:Ge,showSuffixIcon:Pe,prefixCls:Ce,componentName:"Select"})),pt=P===!0?{clearIcon:st}:P,Wt=or(K,["suffixIcon","itemIcon"]),Yt=se(((o=U?.popup)===null||o===void 0?void 0:o.root)||((c=me?.popup)===null||c===void 0?void 0:c.root)||g||b,{[`${Ce}-dropdown-${je}`]:je==="rtl"},h,me.root,U?.root,Ze,Fe,it),ht=la(ct=>{var Tt;return(Tt=w??ge)!==null&&Tt!==void 0?Tt:ct}),It=s.useContext(ja),_t=$??It,tt=se({[`${Ce}-lg`]:ht==="large",[`${Ce}-sm`]:ht==="small",[`${Ce}-rtl`]:je==="rtl",[`${Ce}-${_e}`]:we,[`${Ce}-in-form-item`]:Re},Hl(Ce,ft,ye),Ie,de,d,me.root,U?.root,h,Ze,Fe,it),Ue=s.useMemo(()=>C!==void 0?C:je==="rtl"?"bottomRight":"bottomLeft",[C,je]),[qe]=uu("SelectLike",Be?.zIndex);return He(s.createElement(Lx,Object.assign({ref:t,virtual:re,showSearch:ue},Wt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},he.root),B?.root),oe),N),dropdownMatchSelectWidth:Oe,transitionName:Ox(De,"slide-up",H),builtinPlacements:y7(I,ve),listHeight:S,listItemHeight:pe,mode:Ye,prefixCls:Ce,placement:Ue,direction:je,prefix:T,suffixIcon:Qe,menuItemSelectedIcon:at,removeIcon:mt,allowClear:pt,notFoundContent:$t,className:tt,getPopupContainer:v||Y,dropdownClassName:Yt,disabled:_t,dropdownStyle:Object.assign(Object.assign({},Be),{zIndex:qe}),maxCount:Je?L:void 0,tagRender:Je?k:void 0,dropdownRender:$e,onDropdownVisibleChange:Te})))},Rt=s.forwardRef(K7),U7=og(Rt,"dropdownAlign");Rt.SECRET_COMBOBOX_MODE_DO_NOT_USE=KM;Rt.Option=zx;Rt.OptGroup=Ax;Rt._InternalPanelDoNotUseOrYouWillBeFired=U7;const UM=(e,t)=>{typeof e?.addEventListener<"u"?e.addEventListener("change",t):typeof e?.addListener<"u"&&e.addListener(t)},WM=(e,t)=>{typeof e?.removeEventListener<"u"?e.removeEventListener("change",t):typeof e?.removeListener<"u"&&e.removeListener(t)},Ns=["xxl","xl","lg","md","sm","xs"],W7=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)`}),q7=e=>{const t=e,n=[].concat(Ns).reverse();return n.forEach((r,a)=>{const o=r.toUpperCase(),c=`screen${o}Min`,u=`screen${o}`;if(!(t[c]<=t[u]))throw new Error(`${c}<=${u} fails : !(${t[c]}<=${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},Y7=()=>{const[,e]=Ta(),t=W7(q7(e));return xe.useMemo(()=>{const n=new Map;let r=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(o){return a=o,n.forEach(c=>c(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.entries(t).forEach(([o,c])=>{const u=({matches:d})=>{this.dispatch(Object.assign(Object.assign({},a),{[o]:d}))},f=window.matchMedia(c);UM(f,u),this.matchHandlers[c]={mql:f,listener:u},u(f)})},unregister(){Object.values(t).forEach(o=>{const c=this.matchHandlers[o];WM(c?.mql,c?.listener)}),n.clear()}}},[e])};function Kx(){const[,e]=s.useReducer(t=>t+1,0);return e}function ug(e=!0,t={}){const n=s.useRef(t),r=Kx(),a=Y7();return dn(()=>{const o=a.subscribe(c=>{n.current=c,e&&r()});return()=>a.unsubscribe(o)},[]),n.current}function qM(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,o=e.bodyClassName,c=e.className,u=e.style;return s.createElement("div",{className:se("".concat(n,"-content"),c),style:u},s.createElement("div",{className:se("".concat(n,"-inner"),o),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var Oc={shiftX:64,adjustY:1},Ic={adjustX:1,shiftY:!0},bi=[0,0],G7={left:{points:["cr","cl"],overflow:Ic,offset:[-4,0],targetOffset:bi},right:{points:["cl","cr"],overflow:Ic,offset:[4,0],targetOffset:bi},top:{points:["bc","tc"],overflow:Oc,offset:[0,-4],targetOffset:bi},bottom:{points:["tc","bc"],overflow:Oc,offset:[0,4],targetOffset:bi},topLeft:{points:["bl","tl"],overflow:Oc,offset:[0,-4],targetOffset:bi},leftTop:{points:["tr","tl"],overflow:Ic,offset:[-4,0],targetOffset:bi},topRight:{points:["br","tr"],overflow:Oc,offset:[0,-4],targetOffset:bi},rightTop:{points:["tl","tr"],overflow:Ic,offset:[4,0],targetOffset:bi},bottomRight:{points:["tr","br"],overflow:Oc,offset:[0,4],targetOffset:bi},rightBottom:{points:["bl","br"],overflow:Ic,offset:[4,0],targetOffset:bi},bottomLeft:{points:["tl","bl"],overflow:Oc,offset:[0,4],targetOffset:bi},leftBottom:{points:["br","bl"],overflow:Ic,offset:[-4,0],targetOffset:bi}},X7=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Q7=function(t,n){var r=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,c=t.mouseEnterDelay,u=c===void 0?0:c,f=t.mouseLeaveDelay,d=f===void 0?.1:f,h=t.overlayStyle,v=t.prefixCls,g=v===void 0?"rc-tooltip":v,b=t.children,S=t.onVisibleChange,C=t.afterVisibleChange,y=t.transitionName,w=t.animation,$=t.motion,_=t.placement,O=_===void 0?"right":_,I=t.align,j=I===void 0?{}:I,M=t.destroyTooltipOnHide,D=M===void 0?!1:M,N=t.defaultVisible,P=t.getTooltipContainer,A=t.overlayInnerStyle;t.arrowContent;var F=t.overlay,H=t.id,k=t.showArrow,L=k===void 0?!0:k,T=t.classNames,z=t.styles,V=Kt(t,X7),q=Mx(H),G=s.useRef(null);s.useImperativeHandle(n,function(){return G.current});var B=ee({},V);"visible"in t&&(B.popupVisible=t.visible);var U=function(){return s.createElement(qM,{key:"content",prefixCls:g,id:q,bodyClassName:T?.body,overlayInnerStyle:ee(ee({},A),z?.body)},F)},K=function(){var Q=s.Children.only(b),Z=Q?.props||{},ae=ee(ee({},Z),{},{"aria-describedby":F?q:null});return s.cloneElement(b,ae)};return s.createElement(Pf,Me({popupClassName:se(r,T?.root),prefixCls:g,popup:U,action:o,builtinPlacements:G7,popupPlacement:O,ref:G,popupAlign:j,getPopupContainer:P,onPopupVisibleChange:S,afterPopupVisibleChange:C,popupTransitionName:y,popupAnimation:w,popupMotion:$,defaultPopupVisible:N,autoDestroy:D,mouseLeaveDelay:d,popupStyle:ee(ee({},h),z?.root),mouseEnterDelay:u,arrow:L},B),K())};const Z7=s.forwardRef(Q7);function Ux(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,o=0,c=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)),v=2*a-d,g=h,b=2*a-u,S=f,C=2*a-o,y=c,w=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),$=r*(Math.sqrt(2)-1),_=`polygon(${$}px 100%, 50% ${$}px, ${2*a-$}px 100%, ${$}px 100%)`,O=`path('M ${o} ${c} A ${r} ${r} 0 0 0 ${u} ${f} L ${d} ${h} A ${n} ${n} 0 0 1 ${v} ${g} L ${b} ${S} A ${r} ${r} 0 0 0 ${C} ${y} Z')`;return{arrowShadowWidth:w,arrowPath:O,arrowPolygon:_}}const YM=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:o,arrowShadowWidth:c,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:c,height:c,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${te(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},GM=8;function Wx(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?GM:r}}function vh(e,t){return e?t:{}}function XM(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:c}=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"},YM(e,t,a)),{"&:before":{background:t}})]},vh(!!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":c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${te(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),vh(!!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":c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${te(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),vh(!!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}})),vh(!!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 J7(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 c=Object.assign(Object.assign({},o),a);return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const nO={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"]}},e9={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"]}},t9=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function QM(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:o,visibleFirst:c}=e,u=t/2,f={},d=Wx({contentRadius:o,limitVerticalRadius:!0});return Object.keys(nO).forEach(h=>{const v=r&&e9[h]||nO[h],g=Object.assign(Object.assign({},v),{offset:[0,0],dynamicInset:!0});switch(f[h]=g,t9.has(h)&&(g.autoArrow=!1),h){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}if(r)switch(h){case"topLeft":case"bottomLeft":g.offset[0]=-d.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":g.offset[0]=d.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":g.offset[1]=-d.arrowOffsetHorizontal*2+u;break;case"leftBottom":case"rightBottom":g.offset[1]=d.arrowOffsetHorizontal*2-u;break}g.overflow=J7(h,d,t,n),c&&(g.htmlRegion="visibleFirst")}),f}const n9=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:a,tooltipBg:o,tooltipBorderRadius:c,zIndexPopup:u,controlHeight:f,boxShadowSecondary:d,paddingSM:h,paddingXS:v,arrowOffsetHorizontal:g,sizePopupArrow:b}=e,S=t(c).add(b).add(g).equal(),C=t(c).mul(2).add(b).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},An(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:`${te(e.calc(h).div(2).equal())} ${te(v)}`,color:`var(--ant-tooltip-color, ${a})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:c,boxShadow:d,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:S},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(c,GM)}},[`${n}-content`]:{position:"relative"}}),wN(e,(y,{darkColor:w})=>({[`&${n}-${y}`]:{[`${n}-inner`]:{backgroundColor:w},[`${n}-arrow`]:{"--antd-arrow-background-color":w}}}))),{"&-rtl":{direction:"rtl"}})},XM(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},r9=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Wx({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Ux(Sn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),ZM=(e,t=!0)=>Kn("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:c}=r,u=Sn(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:c});return[n9(u),Rx(r,"zoom-big-fast")]},r9,{resetStyle:!1,injectStyle:t})(e),a9=Is.map(e=>`${e}-inverse`),i9=["success","processing","error","default","warning"];function JM(e,t=!0){return t?[].concat(ke(a9),ke(Is)).includes(e):Is.includes(e)}function o9(e){return i9.includes(e)}function ej(e,t){const n=JM(t),r=se({[`${e}-${t}`]:t&&n}),a={},o={},c=OL(t).toRgb(),f=(.299*c.r+.587*c.g+.114*c.b)/255<.5?"#FFF":"#000";return t&&!n&&(a.background=t,a["--ant-tooltip-color"]=f,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:o}}const l9=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:o,overlayInnerStyle:c}=e,{getPrefixCls:u}=s.useContext(Ut),f=u("tooltip",t),[d,h,v]=ZM(f),g=ej(f,o),b=g.arrowStyle,S=Object.assign(Object.assign({},c),g.overlayStyle),C=se(h,v,f,`${f}-pure`,`${f}-placement-${r}`,n,g.className);return d(s.createElement("div",{className:C,style:b},s.createElement("div",{className:`${f}-arrow`}),s.createElement(qM,Object.assign({},e,{className:h,prefixCls:f,overlayInnerStyle:S}),a)))};var s9=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 c9=s.forwardRef((e,t)=>{var n,r;const{prefixCls:a,openClassName:o,getTooltipContainer:c,color:u,overlayInnerStyle:f,children:d,afterOpenChange:h,afterVisibleChange:v,destroyTooltipOnHide:g,destroyOnHidden:b,arrow:S=!0,title:C,overlay:y,builtinPlacements:w,arrowPointAtCenter:$=!1,autoAdjustOverflow:_=!0,motion:O,getPopupContainer:I,placement:j="top",mouseEnterDelay:M=.1,mouseLeaveDelay:D=.1,overlayStyle:N,rootClassName:P,overlayClassName:A,styles:F,classNames:H}=e,k=s9(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),L=!!S,[,T]=Ta(),{getPopupContainer:z,getPrefixCls:V,direction:q,className:G,style:B,classNames:U,styles:K}=va("tooltip"),Y=Kl(),Q=s.useRef(null),Z=()=>{var Pe;(Pe=Q.current)===null||Pe===void 0||Pe.forceAlign()};s.useImperativeHandle(t,()=>{var Pe,Oe;return{forceAlign:Z,forcePopupAlign:()=>{Y.deprecated(!1,"forcePopupAlign","forceAlign"),Z()},nativeElement:(Pe=Q.current)===null||Pe===void 0?void 0:Pe.nativeElement,popupElement:(Oe=Q.current)===null||Oe===void 0?void 0:Oe.popupElement}});const[ae,re]=Wn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ie=!C&&!y&&C!==0,ve=Pe=>{var Oe,Be;re(ie?!1:Pe),ie||((Oe=e.onOpenChange)===null||Oe===void 0||Oe.call(e,Pe),(Be=e.onVisibleChange)===null||Be===void 0||Be.call(e,Pe))},ue=s.useMemo(()=>{var Pe,Oe;let Be=$;return typeof S=="object"&&(Be=(Oe=(Pe=S.pointAtCenter)!==null&&Pe!==void 0?Pe:S.arrowPointAtCenter)!==null&&Oe!==void 0?Oe:$),w||QM({arrowPointAtCenter:Be,autoAdjustOverflow:_,arrowWidth:L?T.sizePopupArrow:0,borderRadius:T.borderRadius,offset:T.marginXXS,visibleFirst:!0})},[$,S,w,T]),oe=s.useMemo(()=>C===0?C:y||C||"",[y,C]),he=s.createElement(Go,{space:!0},typeof oe=="function"?oe():oe),de=V("tooltip",a),me=V(),le=e["data-popover-inject"];let pe=ae;!("open"in e)&&!("visible"in e)&&ie&&(pe=!1);const Ce=s.isValidElement(d)&&!FN(d)?d:s.createElement("span",null,d),De=Ce.props,je=!De.className||typeof De.className=="string"?se(De.className,o||`${de}-open`):De.className,[ge,Ie,_e]=ZM(de,!le),we=ej(de,u),Fe=we.arrowStyle,He=se(A,{[`${de}-rtl`]:q==="rtl"},we.className,P,Ie,_e,G,U.root,H?.root),it=se(U.body,H?.body),[Ze,Ye]=uu("Tooltip",k.zIndex),Je=s.createElement(Z7,Object.assign({},k,{zIndex:Ze,showArrow:L,placement:j,mouseEnterDelay:M,mouseLeaveDelay:D,prefixCls:de,classNames:{root:He,body:it},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fe),K.root),B),N),F?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},K.body),f),F?.body),we.overlayStyle)},getTooltipContainer:I||c||z,ref:Q,builtinPlacements:ue,overlay:he,visible:pe,onVisibleChange:ve,afterVisibleChange:h??v,arrowContent:s.createElement("span",{className:`${de}-arrow-content`}),motion:{motionName:Ox(me,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:b??!!g}),pe?wa(Ce,{className:je}):Ce);return ge(s.createElement($x.Provider,{value:Ye},Je))}),_i=c9;_i._InternalPanelDoNotUseOrYouWillBeFired=l9;var u9={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"},d9=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:u9}))},pf=s.forwardRef(d9),f9=Mt.ESC,m9=Mt.TAB;function h9(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,c=s.useRef(!1),u=function(){if(t){var v,g;(v=n.current)===null||v===void 0||(g=v.focus)===null||g===void 0||g.call(v),r?.(!1)}},f=function(){var v;return(v=o.current)!==null&&v!==void 0&&v.focus?(o.current.focus(),c.current=!0,!0):!1},d=function(v){switch(v.keyCode){case f9:u();break;case m9:{var g=!1;c.current||(g=f()),g?v.preventDefault():u();break}}};s.useEffect(function(){return t?(window.addEventListener("keydown",d),a&&mn(f,3),function(){window.removeEventListener("keydown",d),c.current=!1}):function(){c.current=!1}},[t])}var v9=s.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,o=s.useMemo(function(){var u;return typeof n=="function"?u=n():u=n,u},[n]),c=_a(t,Vl(o));return xe.createElement(xe.Fragment,null,r&&xe.createElement("div",{className:"".concat(a,"-arrow")}),xe.cloneElement(o,{ref:Hi(o)?c:void 0}))}),Rc={adjustX:1,adjustY:1},Nc=[0,0],g9={topLeft:{points:["bl","tl"],overflow:Rc,offset:[0,-4],targetOffset:Nc},top:{points:["bc","tc"],overflow:Rc,offset:[0,-4],targetOffset:Nc},topRight:{points:["br","tr"],overflow:Rc,offset:[0,-4],targetOffset:Nc},bottomLeft:{points:["tl","bl"],overflow:Rc,offset:[0,4],targetOffset:Nc},bottom:{points:["tc","bc"],overflow:Rc,offset:[0,4],targetOffset:Nc},bottomRight:{points:["tr","br"],overflow:Rc,offset:[0,4],targetOffset:Nc}},p9=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function b9(e,t){var n,r=e.arrow,a=r===void 0?!1:r,o=e.prefixCls,c=o===void 0?"rc-dropdown":o,u=e.transitionName,f=e.animation,d=e.align,h=e.placement,v=h===void 0?"bottomLeft":h,g=e.placements,b=g===void 0?g9:g,S=e.getPopupContainer,C=e.showAction,y=e.hideAction,w=e.overlayClassName,$=e.overlayStyle,_=e.visible,O=e.trigger,I=O===void 0?["hover"]:O,j=e.autoFocus,M=e.overlay,D=e.children,N=e.onVisibleChange,P=Kt(e,p9),A=xe.useState(),F=ce(A,2),H=F[0],k=F[1],L="visible"in e?_:H,T=xe.useRef(null),z=xe.useRef(null),V=xe.useRef(null);xe.useImperativeHandle(t,function(){return T.current});var q=function(re){k(re),N?.(re)};h9({visible:L,triggerRef:V,onVisibleChange:q,autoFocus:j,overlayRef:z});var G=function(re){var ie=e.onOverlayClick;k(!1),ie&&ie(re)},B=function(){return xe.createElement(v9,{ref:z,overlay:M,prefixCls:c,arrow:a})},U=function(){return typeof M=="function"?B:B()},K=function(){var re=e.minOverlayWidthMatchTrigger,ie=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?re:!ie},Y=function(){var re=e.openClassName;return re!==void 0?re:"".concat(c,"-open")},Q=xe.cloneElement(D,{className:se((n=D.props)===null||n===void 0?void 0:n.className,L&&Y()),ref:Hi(D)?_a(V,Vl(D)):void 0}),Z=y;return!Z&&I.indexOf("contextMenu")!==-1&&(Z=["click"]),xe.createElement(Pf,Me({builtinPlacements:b},P,{prefixCls:c,ref:T,popupClassName:se(w,X({},"".concat(c,"-show-arrow"),a)),popupStyle:$,action:I,showAction:C,hideAction:Z,popupPlacement:v,popupAlign:d,popupTransitionName:u,popupAnimation:f,popupVisible:L,stretch:K()?"minWidth":"",popup:U(),onPopupVisibleChange:q,onPopupClick:G,getPopupContainer:S}),Q)}const tj=xe.forwardRef(b9),y9=e=>typeof e!="object"&&typeof e!="function"||e===null;var nj=s.createContext(null);function rj(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function aj(e){var t=s.useContext(nj);return rj(t,e)}var S9=["children","locked"],Fi=s.createContext(null);function x9(e,t){var n=ee({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function bf(e){var t=e.children,n=e.locked,r=Kt(e,S9),a=s.useContext(Fi),o=Ts(function(){return x9(a,r)},[a,r],function(c,u){return!n&&(c[0]!==u[0]||!oo(c[1],u[1],!0))});return s.createElement(Fi.Provider,{value:o},t)}var C9=[],ij=s.createContext(null);function dg(){return s.useContext(ij)}var oj=s.createContext(C9);function vu(e){var t=s.useContext(oj);return s.useMemo(function(){return e!==void 0?[].concat(ke(t),[e]):t},[t,e])}var lj=s.createContext(null),qx=s.createContext({});function rO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(du(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),c=null;return a&&!Number.isNaN(o)?c=o:r&&c===null&&(c=0),r&&e.disabled&&(c=null),c!==null&&(c>=0||t&&c<0)}return!1}function w9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ke(e.querySelectorAll("*")).filter(function(r){return rO(r,t)});return rO(e,t)&&n.unshift(e),n}var fS=Mt.LEFT,mS=Mt.RIGHT,hS=Mt.UP,Kh=Mt.DOWN,Uh=Mt.ENTER,sj=Mt.ESC,Cd=Mt.HOME,wd=Mt.END,aO=[hS,Kh,fS,mS];function $9(e,t,n,r){var a,o="prev",c="next",u="children",f="parent";if(e==="inline"&&r===Uh)return{inlineTrigger:!0};var d=X(X({},hS,o),Kh,c),h=X(X(X(X({},fS,n?c:o),mS,n?o:c),Kh,u),Uh,u),v=X(X(X(X(X(X({},hS,o),Kh,c),Uh,u),sj,f),fS,n?u:f),mS,n?f:u),g={inline:d,horizontal:h,vertical:v,inlineSub:d,horizontalSub:v,verticalSub:v},b=(a=g["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(b){case o:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function _9(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function E9(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Yx(e,t){var n=w9(e,!0);return n.filter(function(r){return t.has(r)})}function iO(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=Yx(e,t),o=a.length,c=a.findIndex(function(u){return n===u});return r<0?c===-1?c=o-1:c-=1:r>0&&(c+=1),c=(c+o)%o,a[c]}var vS=function(t,n){var r=new Set,a=new Map,o=new Map;return t.forEach(function(c){var u=document.querySelector("[data-menu-id='".concat(rj(n,c),"']"));u&&(r.add(u),o.set(u,c),a.set(c,u))}),{elements:r,key2element:a,element2key:o}};function O9(e,t,n,r,a,o,c,u,f,d){var h=s.useRef(),v=s.useRef();v.current=t;var g=function(){mn.cancel(h.current)};return s.useEffect(function(){return function(){g()}},[]),function(b){var S=b.which;if([].concat(aO,[Uh,sj,Cd,wd]).includes(S)){var C=o(),y=vS(C,r),w=y,$=w.elements,_=w.key2element,O=w.element2key,I=_.get(t),j=E9(I,$),M=O.get(j),D=$9(e,c(M,!0).length===1,n,S);if(!D&&S!==Cd&&S!==wd)return;(aO.includes(S)||[Cd,wd].includes(S))&&b.preventDefault();var N=function(z){if(z){var V=z,q=z.querySelector("a");q!=null&&q.getAttribute("href")&&(V=q);var G=O.get(z);u(G),g(),h.current=mn(function(){v.current===G&&V.focus()})}};if([Cd,wd].includes(S)||D.sibling||!j){var P;!j||e==="inline"?P=a.current:P=_9(j);var A,F=Yx(P,$);S===Cd?A=F[0]:S===wd?A=F[F.length-1]:A=iO(P,$,j,D.offset),N(A)}else if(D.inlineTrigger)f(M);else if(D.offset>0)f(M,!0),g(),h.current=mn(function(){y=vS(C,r);var T=j.getAttribute("aria-controls"),z=document.getElementById(T),V=iO(z,y.elements);N(V)},5);else if(D.offset<0){var H=c(M,!0),k=H[H.length-2],L=_.get(k);f(k,!1),N(L)}}d?.(b)}}function I9(e){Promise.resolve().then(e)}var Gx="__RC_UTIL_PATH_SPLIT__",oO=function(t){return t.join(Gx)},R9=function(t){return t.split(Gx)},gS="rc-menu-more";function N9(){var e=s.useState({}),t=ce(e,2),n=t[1],r=s.useRef(new Map),a=s.useRef(new Map),o=s.useState([]),c=ce(o,2),u=c[0],f=c[1],d=s.useRef(0),h=s.useRef(!1),v=function(){h.current||n({})},g=s.useCallback(function(_,O){var I=oO(O);a.current.set(I,_),r.current.set(_,I),d.current+=1;var j=d.current;I9(function(){j===d.current&&v()})},[]),b=s.useCallback(function(_,O){var I=oO(O);a.current.delete(I),r.current.delete(_)},[]),S=s.useCallback(function(_){f(_)},[]),C=s.useCallback(function(_,O){var I=r.current.get(_)||"",j=R9(I);return O&&u.includes(j[0])&&j.unshift(gS),j},[u]),y=s.useCallback(function(_,O){return _.filter(function(I){return I!==void 0}).some(function(I){var j=C(I,!0);return j.includes(O)})},[C]),w=function(){var O=ke(r.current.keys());return u.length&&O.push(gS),O},$=s.useCallback(function(_){var O="".concat(r.current.get(_)).concat(Gx),I=new Set;return ke(a.current.keys()).forEach(function(j){j.startsWith(O)&&I.add(a.current.get(j))}),I},[]);return s.useEffect(function(){return function(){h.current=!0}},[]),{registerPath:g,unregisterPath:b,refreshOverflowKeys:S,isSubPathKey:y,getKeyPath:C,getKeys:w,getSubPathKeys:$}}function kd(e){var t=s.useRef(e);t.current=e;var n=s.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),c=0;c<a;c++)o[c]=arguments[c];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return e?n:void 0}var M9=Math.random().toFixed(5).toString().slice(2),lO=0;function j9(e){var t=Wn(e,{value:e}),n=ce(t,2),r=n[0],a=n[1];return s.useEffect(function(){lO+=1;var o="".concat(M9,"-").concat(lO);a("rc-menu-uuid-".concat(o))},[]),r}function cj(e,t,n,r){var a=s.useContext(Fi),o=a.activeKey,c=a.onActive,u=a.onInactive,f={active:o===e};return t||(f.onMouseEnter=function(d){n?.({key:e,domEvent:d}),c(e)},f.onMouseLeave=function(d){r?.({key:e,domEvent:d}),u(e)}),f}function uj(e){var t=s.useContext(Fi),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 dj(e){var t=e.icon,n=e.props,r=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=s.createElement(t,ee({},n)):typeof t!="boolean"&&(a=t),a||r||null)}var T9=["item"];function bv(e){var t=e.item,n=Kt(e,T9);return Object.defineProperty(n,"item",{get:function(){return Sr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var D9=["title","attribute","elementRef"],P9=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],k9=["active"],A9=(function(e){oi(n,e);var t=Ei(n);function n(){return xr(this,n),t.apply(this,arguments)}return Cr(n,[{key:"render",value:function(){var a=this.props,o=a.title,c=a.attribute,u=a.elementRef,f=Kt(a,D9),d=or(f,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Sr(!c,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),s.createElement(zi.Item,Me({},c,{title:typeof o=="string"?o:void 0},d,{ref:u}))}}]),n})(s.Component),z9=s.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.eventKey;e.warnKey;var o=e.disabled,c=e.itemIcon,u=e.children,f=e.role,d=e.onMouseEnter,h=e.onMouseLeave,v=e.onClick,g=e.onKeyDown,b=e.onFocus,S=Kt(e,P9),C=aj(a),y=s.useContext(Fi),w=y.prefixCls,$=y.onItemClick,_=y.disabled,O=y.overflowDisabled,I=y.itemIcon,j=y.selectedKeys,M=y.onActive,D=s.useContext(qx),N=D._internalRenderMenuItem,P="".concat(w,"-item"),A=s.useRef(),F=s.useRef(),H=_||o,k=Fl(t,F),L=vu(a),T=function(ie){return{key:a,keyPath:ke(L).reverse(),item:A.current,domEvent:ie}},z=c||I,V=cj(a,H,d,h),q=V.active,G=Kt(V,k9),B=j.includes(a),U=uj(L.length),K=function(ie){if(!H){var ve=T(ie);v?.(bv(ve)),$(ve)}},Y=function(ie){if(g?.(ie),ie.which===Mt.ENTER){var ve=T(ie);v?.(bv(ve)),$(ve)}},Q=function(ie){M(a),b?.(ie)},Z={};e.role==="option"&&(Z["aria-selected"]=B);var ae=s.createElement(A9,Me({ref:A,elementRef:k,role:f===null?"none":f||"menuitem",tabIndex:o?null:-1,"data-menu-id":O&&C?null:C},or(S,["extra"]),G,Z,{component:"li","aria-disabled":o,style:ee(ee({},U),n),className:se(P,X(X(X({},"".concat(P,"-active"),q),"".concat(P,"-selected"),B),"".concat(P,"-disabled"),H),r),onClick:K,onKeyDown:Y,onFocus:Q}),u,s.createElement(dj,{props:ee(ee({},e),{},{isSelected:B}),icon:z}));return N&&(ae=N(ae,e,{selected:B})),ae});function L9(e,t){var n=e.eventKey,r=dg(),a=vu(n);return s.useEffect(function(){if(r)return r.registerPath(n,a),function(){r.unregisterPath(n,a)}},[a]),r?null:s.createElement(z9,Me({},e,{ref:t}))}const kf=s.forwardRef(L9);var H9=["className","children"],B9=function(t,n){var r=t.className,a=t.children,o=Kt(t,H9),c=s.useContext(Fi),u=c.prefixCls,f=c.mode,d=c.rtl;return s.createElement("ul",Me({className:se(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)},Xx=s.forwardRef(B9);Xx.displayName="SubMenuList";function Qx(e,t){return Ma(e).map(function(n,r){if(s.isValidElement(n)){var a,o,c=n.key,u=(a=(o=n.props)===null||o===void 0?void 0:o.eventKey)!==null&&a!==void 0?a:c,f=u==null;f&&(u="tmp_key-".concat([].concat(ke(t),[r]).join("-")));var d={key:u,eventKey:u};return s.cloneElement(n,d)}return n})}var Ia={adjustX:1,adjustY:1},F9={topLeft:{points:["bl","tl"],overflow:Ia},topRight:{points:["br","tr"],overflow:Ia},bottomLeft:{points:["tl","bl"],overflow:Ia},bottomRight:{points:["tr","br"],overflow:Ia},leftTop:{points:["tr","tl"],overflow:Ia},leftBottom:{points:["br","bl"],overflow:Ia},rightTop:{points:["tl","tr"],overflow:Ia},rightBottom:{points:["bl","br"],overflow:Ia}},V9={topLeft:{points:["bl","tl"],overflow:Ia},topRight:{points:["br","tr"],overflow:Ia},bottomLeft:{points:["tl","bl"],overflow:Ia},bottomRight:{points:["tr","br"],overflow:Ia},rightTop:{points:["tr","tl"],overflow:Ia},rightBottom:{points:["br","bl"],overflow:Ia},leftTop:{points:["tl","tr"],overflow:Ia},leftBottom:{points:["bl","br"],overflow:Ia}};function fj(e,t,n){if(t)return t;if(n)return n[e]||n.other}var K9={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,c=e.popupClassName,u=e.popupOffset,f=e.disabled,d=e.mode,h=e.onVisibleChange,v=s.useContext(Fi),g=v.getPopupContainer,b=v.rtl,S=v.subMenuOpenDelay,C=v.subMenuCloseDelay,y=v.builtinPlacements,w=v.triggerSubMenuAction,$=v.forceSubMenuRender,_=v.rootClassName,O=v.motion,I=v.defaultMotions,j=s.useState(!1),M=ce(j,2),D=M[0],N=M[1],P=ee(b?ee({},V9):ee({},F9),y),A=K9[d],F=fj(d,O,I),H=s.useRef(F);d!=="inline"&&(H.current=F);var k=ee(ee({},H.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),L=s.useRef();return s.useEffect(function(){return L.current=mn(function(){N(n)}),function(){mn.cancel(L.current)}},[n]),s.createElement(Pf,{prefixCls:t,popupClassName:se("".concat(t,"-popup"),X({},"".concat(t,"-rtl"),b),c,_),stretch:d==="horizontal"?"minWidth":null,getPopupContainer:g,builtinPlacements:P,popupPlacement:A,popupVisible:D,popup:a,popupStyle:o,popupAlign:u&&{offset:u},action:f?[]:[w],mouseEnterDelay:S,mouseLeaveDelay:C,onPopupVisibleChange:h,forceRender:$,popupMotion:k,fresh:!0},r)}function W9(e){var t=e.id,n=e.open,r=e.keyPath,a=e.children,o="inline",c=s.useContext(Fi),u=c.prefixCls,f=c.forceSubMenuRender,d=c.motion,h=c.defaultMotions,v=c.mode,g=s.useRef(!1);g.current=v===o;var b=s.useState(!g.current),S=ce(b,2),C=S[0],y=S[1],w=g.current?n:!1;s.useEffect(function(){g.current&&y(!1)},[v]);var $=ee({},fj(o,d,h));r.length>1&&($.motionAppear=!1);var _=$.onVisibleChanged;return $.onVisibleChanged=function(O){return!g.current&&!O&&y(!0),_?.(O)},C?null:s.createElement(bf,{mode:o,locked:!g.current},s.createElement(Oi,Me({visible:w},$,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(O){var I=O.className,j=O.style;return s.createElement(Xx,{id:t,className:I,style:j},a)}))}var q9=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Y9=["active"],G9=s.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.title,o=e.eventKey;e.warnKey;var c=e.disabled,u=e.internalPopupClose,f=e.children,d=e.itemIcon,h=e.expandIcon,v=e.popupClassName,g=e.popupOffset,b=e.popupStyle,S=e.onClick,C=e.onMouseEnter,y=e.onMouseLeave,w=e.onTitleClick,$=e.onTitleMouseEnter,_=e.onTitleMouseLeave,O=Kt(e,q9),I=aj(o),j=s.useContext(Fi),M=j.prefixCls,D=j.mode,N=j.openKeys,P=j.disabled,A=j.overflowDisabled,F=j.activeKey,H=j.selectedKeys,k=j.itemIcon,L=j.expandIcon,T=j.onItemClick,z=j.onOpenChange,V=j.onActive,q=s.useContext(qx),G=q._internalRenderSubMenuItem,B=s.useContext(lj),U=B.isSubPathKey,K=vu(),Y="".concat(M,"-submenu"),Q=P||c,Z=s.useRef(),ae=s.useRef(),re=d??k,ie=h??L,ve=N.includes(o),ue=!A&&ve,oe=U(H,o),he=cj(o,Q,$,_),de=he.active,me=Kt(he,Y9),le=s.useState(!1),pe=ce(le,2),Ce=pe[0],De=pe[1],je=function(be){Q||De(be)},ge=function(be){je(!0),C?.({key:o,domEvent:be})},Ie=function(be){je(!1),y?.({key:o,domEvent:be})},_e=s.useMemo(function(){return de||(D!=="inline"?Ce||U([F],o):!1)},[D,de,F,Ce,o,U]),we=uj(K.length),Fe=function(be){Q||(w?.({key:o,domEvent:be}),D==="inline"&&z(o,!ve))},He=kd(function(Te){S?.(bv(Te)),T(Te)}),it=function(be){D!=="inline"&&z(o,be)},Ze=function(){V(o)},Ye=I&&"".concat(I,"-popup"),Je=s.useMemo(function(){return s.createElement(dj,{icon:D!=="horizontal"?ie:void 0,props:ee(ee({},e),{},{isOpen:ue,isSubMenu:!0})},s.createElement("i",{className:"".concat(Y,"-arrow")}))},[D,ie,e,ue,Y]),Pe=s.createElement("div",Me({role:"menuitem",style:we,className:"".concat(Y,"-title"),tabIndex:Q?null:-1,ref:Z,title:typeof a=="string"?a:null,"data-menu-id":A&&I?null:I,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":Ye,"aria-disabled":Q,onClick:Fe,onFocus:Ze},me),a,Je),Oe=s.useRef(D);if(D!=="inline"&&K.length>1?Oe.current="vertical":Oe.current=D,!A){var Be=Oe.current;Pe=s.createElement(U9,{mode:Be,prefixCls:Y,visible:!u&&ue&&D!=="inline",popupClassName:v,popupOffset:g,popupStyle:b,popup:s.createElement(bf,{mode:Be==="horizontal"?"vertical":Be},s.createElement(Xx,{id:Ye,ref:ae},f)),disabled:Q,onVisibleChange:it},Pe)}var $e=s.createElement(zi.Item,Me({ref:t,role:"none"},O,{component:"li",style:n,className:se(Y,"".concat(Y,"-").concat(D),r,X(X(X(X({},"".concat(Y,"-open"),ue),"".concat(Y,"-active"),_e),"".concat(Y,"-selected"),oe),"".concat(Y,"-disabled"),Q)),onMouseEnter:ge,onMouseLeave:Ie}),Pe,!A&&s.createElement(W9,{id:Ye,open:ue,keyPath:K},f));return G&&($e=G($e,e,{selected:oe,active:_e,open:ue,disabled:Q})),s.createElement(bf,{onItemClick:He,mode:D==="horizontal"?"vertical":D,itemIcon:re,expandIcon:ie},$e)}),fg=s.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=vu(n),o=Qx(r,a),c=dg();s.useEffect(function(){if(c)return c.registerPath(n,a),function(){c.unregisterPath(n,a)}},[a]);var u;return c?u=o:u=s.createElement(G9,Me({ref:t},e),o),s.createElement(oj.Provider,{value:a},u)});function Zx(e){var t=e.className,n=e.style,r=s.useContext(Fi),a=r.prefixCls,o=dg();return o?null:s.createElement("li",{role:"separator",className:se("".concat(a,"-item-divider"),t),style:n})}var X9=["className","title","eventKey","children"],Q9=s.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,o=Kt(e,X9),c=s.useContext(Fi),u=c.prefixCls,f="".concat(u,"-item-group");return s.createElement("li",Me({ref:t,role:"presentation"},o,{onClick:function(h){return h.stopPropagation()},className:se(f,n)}),s.createElement("div",{role:"presentation",className:"".concat(f,"-title"),title:typeof r=="string"?r:void 0},r),s.createElement("ul",{role:"group",className:"".concat(f,"-list")},a))}),Jx=s.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=vu(n),o=Qx(r,a),c=dg();return c?o:s.createElement(Q9,Me({ref:t},or(e,["warnKey"])),o)}),Z9=["label","children","key","type","extra"];function pS(e,t,n){var r=t.item,a=t.group,o=t.submenu,c=t.divider;return(e||[]).map(function(u,f){if(u&&jt(u)==="object"){var d=u,h=d.label,v=d.children,g=d.key,b=d.type,S=d.extra,C=Kt(d,Z9),y=g??"tmp-".concat(f);return v||b==="group"?b==="group"?s.createElement(a,Me({key:y},C,{title:h}),pS(v,t,n)):s.createElement(o,Me({key:y},C,{title:h}),pS(v,t,n)):b==="divider"?s.createElement(c,Me({key:y},C)):s.createElement(r,Me({key:y},C,{extra:S}),h,(!!S||S===0)&&s.createElement("span",{className:"".concat(n,"-item-extra")},S))}return null}).filter(function(u){return u})}function sO(e,t,n,r,a){var o=e,c=ee({divider:Zx,item:kf,group:Jx,submenu:fg},r);return t&&(o=pS(t,c,a)),Qx(o,n)}var J9=["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"],ds=[],eV=s.forwardRef(function(e,t){var n,r=e,a=r.prefixCls,o=a===void 0?"rc-menu":a,c=r.rootClassName,u=r.style,f=r.className,d=r.tabIndex,h=d===void 0?0:d,v=r.items,g=r.children,b=r.direction,S=r.id,C=r.mode,y=C===void 0?"vertical":C,w=r.inlineCollapsed,$=r.disabled,_=r.disabledOverflow,O=r.subMenuOpenDelay,I=O===void 0?.1:O,j=r.subMenuCloseDelay,M=j===void 0?.1:j,D=r.forceSubMenuRender,N=r.defaultOpenKeys,P=r.openKeys,A=r.activeKey,F=r.defaultActiveFirst,H=r.selectable,k=H===void 0?!0:H,L=r.multiple,T=L===void 0?!1:L,z=r.defaultSelectedKeys,V=r.selectedKeys,q=r.onSelect,G=r.onDeselect,B=r.inlineIndent,U=B===void 0?24:B,K=r.motion,Y=r.defaultMotions,Q=r.triggerSubMenuAction,Z=Q===void 0?"hover":Q,ae=r.builtinPlacements,re=r.itemIcon,ie=r.expandIcon,ve=r.overflowedIndicator,ue=ve===void 0?"...":ve,oe=r.overflowedIndicatorPopupClassName,he=r.getPopupContainer,de=r.onClick,me=r.onOpenChange,le=r.onKeyDown;r.openAnimation,r.openTransitionName;var pe=r._internalRenderMenuItem,Ce=r._internalRenderSubMenuItem,De=r._internalComponents,je=Kt(r,J9),ge=s.useMemo(function(){return[sO(g,v,ds,De,o),sO(g,v,ds,{},o)]},[g,v,De]),Ie=ce(ge,2),_e=Ie[0],we=Ie[1],Fe=s.useState(!1),He=ce(Fe,2),it=He[0],Ze=He[1],Ye=s.useRef(),Je=j9(S),Pe=b==="rtl",Oe=Wn(N,{value:P,postState:function(At){return At||ds}}),Be=ce(Oe,2),$e=Be[0],Te=Be[1],be=function(At){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function un(){Te(At),me?.(At)}zt?Li.flushSync(un):un()},ye=s.useState($e),Re=ce(ye,2),Ge=Re[0],ft=Re[1],$t=s.useRef(!1),Qe=s.useMemo(function(){return(y==="inline"||y==="vertical")&&w?["vertical",w]:[y,!1]},[y,w]),at=ce(Qe,2),mt=at[0],st=at[1],pt=mt==="inline",Wt=s.useState(mt),Yt=ce(Wt,2),ht=Yt[0],It=Yt[1],_t=s.useState(st),tt=ce(_t,2),Ue=tt[0],qe=tt[1];s.useEffect(function(){It(mt),qe(st),$t.current&&(pt?Te(Ge):be(ds))},[mt,st]);var ct=s.useState(0),Tt=ce(ct,2),Dt=Tt[0],Jt=Tt[1],ut=Dt>=_e.length-1||ht!=="horizontal"||_;s.useEffect(function(){pt&&ft($e)},[$e]),s.useEffect(function(){return $t.current=!0,function(){$t.current=!1}},[]);var ot=N9(),Lt=ot.registerPath,tn=ot.unregisterPath,hn=ot.refreshOverflowKeys,cn=ot.isSubPathKey,En=ot.getKeyPath,rn=ot.getKeys,xn=ot.getSubPathKeys,lt=s.useMemo(function(){return{registerPath:Lt,unregisterPath:tn}},[Lt,tn]),St=s.useMemo(function(){return{isSubPathKey:cn}},[cn]);s.useEffect(function(){hn(ut?ds:_e.slice(Dt+1).map(function(In){return In.key}))},[Dt,ut]);var Bt=Wn(A||F&&((n=_e[0])===null||n===void 0?void 0:n.key),{value:A}),kt=ce(Bt,2),vt=kt[0],Et=kt[1],Qt=kd(function(In){Et(In)}),on=kd(function(){Et(void 0)});s.useImperativeHandle(t,function(){return{list:Ye.current,focus:function(At){var zt,un=rn(),Nt=vS(un,Je),Pt=Nt.elements,yn=Nt.key2element,Ln=Nt.element2key,lr=Yx(Ye.current,Pt),Pr=vt??(lr[0]?Ln.get(lr[0]):(zt=_e.find(function(vn){return!vn.props.disabled}))===null||zt===void 0?void 0:zt.key),sr=yn.get(Pr);if(Pr&&sr){var kr;sr==null||(kr=sr.focus)===null||kr===void 0||kr.call(sr,At)}}}});var bt=Wn(z||[],{value:V,postState:function(At){return Array.isArray(At)?At:At==null?ds:[At]}}),Ht=ce(bt,2),nn=Ht[0],Xn=Ht[1],br=function(At){if(k){var zt=At.key,un=nn.includes(zt),Nt;T?un?Nt=nn.filter(function(yn){return yn!==zt}):Nt=[].concat(ke(nn),[zt]):Nt=[zt],Xn(Nt);var Pt=ee(ee({},At),{},{selectedKeys:Nt});un?G?.(Pt):q?.(Pt)}!T&&$e.length&&ht!=="inline"&&be(ds)},wr=kd(function(In){de?.(bv(In)),br(In)}),$r=kd(function(In,At){var zt=$e.filter(function(Nt){return Nt!==In});if(At)zt.push(In);else if(ht!=="inline"){var un=xn(In);zt=zt.filter(function(Nt){return!un.has(Nt)})}oo($e,zt,!0)||be(zt,!0)}),Yn=function(At,zt){var un=zt??!$e.includes(At);$r(At,un)},Gn=O9(ht,vt,Pe,Je,Ye,rn,En,Et,Yn,le);s.useEffect(function(){Ze(!0)},[]);var Dr=s.useMemo(function(){return{_internalRenderMenuItem:pe,_internalRenderSubMenuItem:Ce}},[pe,Ce]),Hr=ht!=="horizontal"||_?_e:_e.map(function(In,At){return s.createElement(bf,{key:In.key,overflowDisabled:At>Dt},In)}),Nr=s.createElement(zi,Me({id:S,ref:Ye,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:kf,className:se(o,"".concat(o,"-root"),"".concat(o,"-").concat(ht),f,X(X({},"".concat(o,"-inline-collapsed"),Ue),"".concat(o,"-rtl"),Pe),c),dir:b,style:u,role:"menu",tabIndex:h,data:Hr,renderRawItem:function(At){return At},renderRawRest:function(At){var zt=At.length,un=zt?_e.slice(-zt):null;return s.createElement(fg,{eventKey:gS,title:ue,disabled:ut,internalPopupClose:zt===0,popupClassName:oe},un)},maxCount:ht!=="horizontal"||_?zi.INVALIDATE:zi.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(At){Jt(At)},onKeyDown:Gn},je));return s.createElement(qx.Provider,{value:Dr},s.createElement(nj.Provider,{value:Je},s.createElement(bf,{prefixCls:o,rootClassName:c,mode:ht,openKeys:$e,rtl:Pe,disabled:$,motion:it?K:null,defaultMotions:it?Y:null,activeKey:vt,onActive:Qt,onInactive:on,selectedKeys:nn,inlineIndent:U,subMenuOpenDelay:I,subMenuCloseDelay:M,forceSubMenuRender:D,builtinPlacements:ae,triggerSubMenuAction:Z,getPopupContainer:he,itemIcon:re,expandIcon:ie,onItemClick:wr,onOpenChange:$r},s.createElement(lj.Provider,{value:St},Nr),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement(ij.Provider,{value:lt},we)))))}),gu=eV;gu.Item=kf;gu.SubMenu=fg;gu.ItemGroup=Jx;gu.Divider=Zx;var tV={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"},nV=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:tV}))},rV=s.forwardRef(nV);const mj=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),aV=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:a,headerHeight:o,headerPadding:c,headerColor:u,footerPadding:f,fontSize:d,bodyBg:h,headerBg:v}=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:c,color:u,lineHeight:te(o),background:v,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:f,color:r,fontSize:d,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},hj=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:o,marginXXS:c,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+c*2,triggerBg:"#002140",triggerColor:u,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:f,lightTriggerBg:f,lightTriggerColor:a}},vj=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],gj=Kn("Layout",aV,hj,{deprecatedTokens:vj}),iV=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:a,antCls:o,triggerHeight:c,triggerColor:u,triggerBg:f,headerHeight:d,zeroTriggerWidth:h,zeroTriggerHeight:v,borderRadiusLG:g,lightSiderBg:b,lightTriggerColor:S,lightTriggerBg:C,bodyBg:y}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:c},"&-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:c,color:u,lineHeight:te(c),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:v,color:u,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${te(g)} ${te(g)} 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:`${te(g)} 0 0 ${te(g)}`}},"&-light":{background:b,[`${t}-trigger`]:{color:S,background:C},[`${t}-zero-width-trigger`]:{color:S,background:C,border:`1px solid ${y}`,borderInlineStart:0}}}}},oV=Kn(["Layout","Sider"],iV,hj,{deprecatedTokens:vj});var lV=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 cO={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},sV=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),mg=s.createContext({}),cV=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),pj=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:o,defaultCollapsed:c=!1,theme:u="dark",style:f={},collapsible:d=!1,reverseArrow:h=!1,width:v=200,collapsedWidth:g=80,zeroWidthTriggerStyle:b,breakpoint:S,onCollapse:C,onBreakpoint:y}=e,w=lV(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:$}=s.useContext(mj),[_,O]=s.useState("collapsed"in e?e.collapsed:c),[I,j]=s.useState(!1);s.useEffect(()=>{"collapsed"in e&&O(e.collapsed)},[e.collapsed]);const M=(re,ie)=>{"collapsed"in e||O(re),C?.(re,ie)},{getPrefixCls:D,direction:N}=s.useContext(Ut),P=D("layout-sider",n),[A,F,H]=oV(P),k=s.useRef(null);k.current=re=>{j(re.matches),y?.(re.matches),_!==re.matches&&M(re.matches,"responsive")},s.useEffect(()=>{function re(ve){var ue;return(ue=k.current)===null||ue===void 0?void 0:ue.call(k,ve)}let ie;return typeof window?.matchMedia<"u"&&S&&S in cO&&(ie=window.matchMedia(`screen and (max-width: ${cO[S]})`),UM(ie,re),re(ie)),()=>{WM(ie,re)}},[S]),s.useEffect(()=>{const re=cV("ant-sider-");return $.addSider(re),()=>$.removeSider(re)},[]);const L=()=>{M(!_,"clickTrigger")},T=or(w,["collapsed"]),z=_?g:v,V=sV(z)?`${z}px`:String(z),q=Number.parseFloat(String(g||0))===0?s.createElement("span",{onClick:L,className:se(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${h?"right":"left"}`),style:b},a||s.createElement(rV,null)):null,G=N==="rtl"==!h,K={expanded:G?s.createElement(mf,null):s.createElement(pf,null),collapsed:G?s.createElement(pf,null):s.createElement(mf,null)}[_?"collapsed":"expanded"],Y=a!==null?q||s.createElement("div",{className:`${P}-trigger`,onClick:L,style:{width:V}},a||K):null,Q=Object.assign(Object.assign({},f),{flex:`0 0 ${V}`,maxWidth:V,minWidth:V,width:V}),Z=se(P,`${P}-${u}`,{[`${P}-collapsed`]:!!_,[`${P}-has-trigger`]:d&&a!==null&&!q,[`${P}-below`]:!!I,[`${P}-zero-width`]:Number.parseFloat(V)===0},r,F,H),ae=s.useMemo(()=>({siderCollapsed:_}),[_]);return A(s.createElement(mg.Provider,{value:ae},s.createElement("aside",Object.assign({className:Z},T,{style:Q,ref:t}),s.createElement("div",{className:`${P}-children`},o),d||I&&q?Y:null)))});var uV={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"},dV=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:uV}))},eC=s.forwardRef(dV);const yv=s.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var fV=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 bj=e=>{const{prefixCls:t,className:n,dashed:r}=e,a=fV(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=s.useContext(Ut),c=o("menu",t),u=se({[`${c}-item-divider-dashed`]:!!r},n);return s.createElement(Zx,Object.assign({className:u},a))},yj=e=>{var t;const{className:n,children:r,icon:a,title:o,danger:c,extra:u}=e,{prefixCls:f,firstLevel:d,direction:h,disableMenuItemTitleTooltip:v,inlineCollapsed:g}=s.useContext(yv),b=_=>{const O=r?.[0],I=s.createElement("span",{className:se(`${f}-title-content`,{[`${f}-title-content-with-extra`]:!!u||u===0})},r);return(!a||s.isValidElement(r)&&r.type==="span")&&r&&_&&d&&typeof O=="string"?s.createElement("div",{className:`${f}-inline-collapsed-noicon`},O.charAt(0)):I},{siderCollapsed:S}=s.useContext(mg);let C=o;typeof o>"u"?C=d?r:"":o===!1&&(C="");const y={title:C};!S&&!g&&(y.title=null,y.open=!1);const w=Ma(r).length;let $=s.createElement(kf,Object.assign({},or(e,["title","icon","danger"]),{className:se({[`${f}-item-danger`]:c,[`${f}-item-only-child`]:(a?w+1:w)===1},n),title:typeof o=="string"?o:void 0}),wa(a,{className:se(s.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:void 0,`${f}-item-icon`)}),b(g));return v||($=s.createElement(_i,Object.assign({},y,{placement:h==="rtl"?"left":"right",classNames:{root:`${f}-inline-collapsed-tooltip`}}),$)),$};var mV=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 Sv=s.createContext(null),Sj=s.forwardRef((e,t)=>{const{children:n}=e,r=mV(e,["children"]),a=s.useContext(Sv),o=s.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),c=H6(n),u=Fl(t,c?Vl(n):null);return s.createElement(Sv.Provider,{value:o},s.createElement(Go,{space:!0},c?s.cloneElement(n,{ref:u}):n))}),hV=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:o,lineType:c,itemPaddingInline:u}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${te(o)} ${c} ${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"}}}},vV=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
    ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${te(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${te(t)})`}}}}),uO=e=>so(e),dO=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,subMenuItemSelectedColor:o,groupTitleColor:c,itemBg:u,subMenuItemBg:f,itemSelectedBg:d,activeBarHeight:h,activeBarWidth:v,activeBarBorderWidth:g,motionDurationSlow:b,motionEaseInOut:S,motionEaseOut:C,itemPaddingInline:y,motionDurationMid:w,itemHoverColor:$,lineType:_,colorSplit:O,itemDisabledColor:I,dangerItemColor:j,dangerItemHoverColor:M,dangerItemSelectedColor:D,dangerItemActiveBg:N,dangerItemSelectedBg:P,popupBg:A,itemHoverBg:F,itemActiveBg:H,menuSubMenuBg:k,horizontalItemSelectedColor:L,horizontalItemSelectedBg:T,horizontalItemBorderRadius:z,horizontalItemHoverBg:V}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:u,[`&${n}-root:focus-visible`]:Object.assign({},uO(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:c}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},uO(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${I} !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:F},"&:active":{backgroundColor:H}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:F},"&:active":{backgroundColor:H}}},[`${n}-item-danger`]:{color:j,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:M}},[`&${n}-item:active`]:{background:N}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:D},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:d,[`&${n}-item-danger`]:{backgroundColor:P}},[`&${n}-submenu > ${n}`]:{backgroundColor:k},[`&${n}-popup > ${n}`]:{backgroundColor:A},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:A},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:g,marginTop:e.calc(g).mul(-1).equal(),marginBottom:0,borderRadius:z,"&::after":{position:"absolute",insetInline:y,bottom:0,borderBottom:`${te(h)} solid transparent`,transition:`border-color ${b} ${S}`,content:'""'},"&:hover, &-active, &-open":{background:V,"&::after":{borderBottomWidth:h,borderBottomColor:L}},"&-selected":{color:L,backgroundColor:T,"&:hover":{backgroundColor:T},"&::after":{borderBottomWidth:h,borderBottomColor:L}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${te(g)} ${_} ${O}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:f},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${te(v)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${w} ${C}`,`opacity ${w} ${C}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:D}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${w} ${S}`,`opacity ${w} ${S}`].join(",")}}}}}},fO=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:o,marginXS:c,itemMarginBlock:u,itemWidth:f,itemPaddingInline:d}=e,h=e.calc(o).add(a).add(c).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:te(n),paddingInline:d,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:u,width:f},[`> ${t}-item,
            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:te(n)},[`${t}-item-group-list ${t}-submenu-title,
            ${t}-submenu-title`]:{paddingInlineEnd:h}}},gV=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:o,controlHeightLG:c,motionEaseOut:u,paddingXL:f,itemMarginInline:d,fontSizeLG:h,motionDurationFast:v,motionDurationSlow:g,paddingXS:b,boxShadowSecondary:S,collapsedWidth:C,collapsedIconSize:y}=e,w={height:r,lineHeight:te(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},fO(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},fO(e)),{boxShadow:S})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${te(e.calc(c).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 ${g}`,`background ${g}`,`padding ${v} ${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% - ${te(e.calc(y).div(2).equal())} - ${te(d)})`,textOverflow:"clip",[`
            ${t}-submenu-arrow,
            ${t}-submenu-expand-icon
          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:y,lineHeight:te(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({},Bi),{paddingInline:b})}}]},mO=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:o,iconCls:c,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, ${c}`]:{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({},ou()),[`&${t}-item-only-child`]:{[`> ${c}, > ${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"}}}},hO=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:o,menuArrowOffset:c}=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(${te(e.calc(c).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${te(c)})`}}}}},pV=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:c,paddingXS:u,padding:f,colorSplit:d,lineWidth:h,zIndexPopup:v,borderRadiusLG:g,subMenuItemBorderRadius:b,menuArrowSize:S,menuArrowOffset:C,lineType:y,groupTitleLineHeight:w,groupTitleFontSize:$}=e;return[{"":{[n]:Object.assign(Object.assign({},Uo()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},An(e)),Uo()),{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:`${te(u)} ${te(f)}`,fontSize:$,lineHeight:w,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${c}`,`background ${a} ${c}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${c}`,`background ${a} ${c}`,`padding ${o} ${c}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${c}`,`padding ${a} ${c}`].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"}}}),mO(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${te(e.calc(r).mul(2).equal())} ${te(f)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:v,borderRadius:g,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:g},mO(e)),hO(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:b},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${c}`}})},"\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}}}),hO(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${te(C)})`},"&::after":{transform:`rotate(45deg) translateX(${te(e.calc(C).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${te(e.calc(S).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${te(e.calc(C).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${te(C)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},bV=e=>{var t,n,r;const{colorPrimary:a,colorError:o,colorTextDisabled:c,colorErrorBg:u,colorText:f,colorTextDescription:d,colorBgContainer:h,colorFillAlter:v,colorFillContent:g,lineWidth:b,lineWidthBold:S,controlItemBgActive:C,colorBgTextHover:y,controlHeightLG:w,lineHeight:$,colorBgElevated:_,marginXXS:O,padding:I,fontSize:j,controlHeightSM:M,fontSizeLG:D,colorTextLightSolid:N,colorErrorHover:P}=e,A=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,F=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:b,H=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,k=new Tn(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:g,itemActiveBg:C,colorSubItemBg:v,subMenuItemBg:v,colorItemBgSelected:C,itemSelectedBg:C,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:A,colorActiveBarHeight:S,activeBarHeight:S,colorActiveBarBorderSize:b,activeBarBorderWidth:F,colorItemTextDisabled:c,itemDisabledColor:c,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:u,dangerItemActiveBg:u,colorDangerItemBgSelected:u,dangerItemSelectedBg:u,itemMarginInline:H,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:w,groupTitleLineHeight:$,collapsedWidth:w*2,popupBg:_,itemMarginBlock:O,itemPaddingInline:I,horizontalLineHeight:`${w*1.15}px`,iconSize:j,iconMarginInlineEnd:M-j,collapsedIconSize:D,groupTitleFontSize:j,darkItemDisabledColor:new Tn(N).setA(.25).toRgbString(),darkItemColor:k,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:N,darkItemSelectedBg:a,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:k,darkItemHoverColor:N,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:o,itemWidth:A?`calc(100% + ${F}px)`:`calc(100% - ${H*2}px)`}},yV=(e,t=e,n=!0)=>Kn("Menu",a=>{const{colorBgElevated:o,controlHeightLG:c,fontSize:u,darkItemColor:f,darkDangerItemColor:d,darkItemBg:h,darkSubMenuItemBg:v,darkItemSelectedColor:g,darkItemSelectedBg:b,darkDangerItemSelectedBg:S,darkItemHoverBg:C,darkGroupTitleColor:y,darkItemHoverColor:w,darkItemDisabledColor:$,darkDangerItemHoverColor:_,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:I,popupBg:j,darkPopupBg:M}=a,D=a.calc(u).div(7).mul(5).equal(),N=Sn(a,{menuArrowSize:D,menuHorizontalHeight:a.calc(c).mul(1.15).equal(),menuArrowOffset:a.calc(D).mul(.25).equal(),menuSubMenuBg:o,calc:a.calc,popupBg:j}),P=Sn(N,{itemColor:f,itemHoverColor:w,groupTitleColor:y,itemSelectedColor:g,subMenuItemSelectedColor:g,itemBg:h,popupBg:M,subMenuItemBg:v,itemActiveBg:"transparent",itemSelectedBg:b,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:C,itemDisabledColor:$,dangerItemColor:d,dangerItemHoverColor:_,dangerItemSelectedColor:O,dangerItemActiveBg:I,dangerItemSelectedBg:S,menuSubMenuBg:v,horizontalItemSelectedColor:g,horizontalItemSelectedBg:b});return[pV(N),hV(N),gV(N),dO(N,"light"),dO(P,"dark"),vV(N),Wv(N),co(N,"slide-up"),co(N,"slide-down"),Rx(N,"zoom-big")]},bV,{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),xj=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:o}=e,c=s.useContext(yv),{prefixCls:u,inlineCollapsed:f,theme:d}=c,h=vu();let v;if(!r)v=f&&!h.length&&a&&typeof a=="string"?s.createElement("div",{className:`${u}-inline-collapsed-noicon`},a.charAt(0)):s.createElement("span",{className:`${u}-title-content`},a);else{const S=s.isValidElement(a)&&a.type==="span";v=s.createElement(s.Fragment,null,wa(r,{className:se(s.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${u}-item-icon`)}),S?a:s.createElement("span",{className:`${u}-title-content`},a))}const g=s.useMemo(()=>Object.assign(Object.assign({},c),{firstLevel:!1}),[c]),[b]=uu("Menu");return s.createElement(yv.Provider,{value:g},s.createElement(fg,Object.assign({},or(e,["icon"]),{title:v,popupClassName:se(u,n,`${u}-${o||d}`),popupStyle:Object.assign({zIndex:b},e.popupStyle)})))};var SV=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 O0(e){return e===null||e===!1}const xV={item:yj,submenu:xj,divider:bj},CV=s.forwardRef((e,t)=>{var n;const r=s.useContext(Sv),a=r||{},{getPrefixCls:o,getPopupContainer:c,direction:u,menu:f}=s.useContext(Ut),d=o(),{prefixCls:h,className:v,style:g,theme:b="light",expandIcon:S,_internalDisableMenuItemTitleTooltip:C,inlineCollapsed:y,siderCollapsed:w,rootClassName:$,mode:_,selectable:O,onClick:I,overflowedIndicatorPopupClassName:j}=e,M=SV(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),D=or(M,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:_});const N=pn((...U)=>{var K;I?.apply(void 0,U),(K=a.onClick)===null||K===void 0||K.call(a)}),P=a.mode||_,A=O??a.selectable,F=y??w,H={horizontal:{motionName:`${d}-slide-up`},inline:df(d),other:{motionName:`${d}-zoom-big`}},k=o("menu",h||a.prefixCls),L=oa(k),[T,z,V]=yV(k,L,!r),q=se(`${k}-${b}`,f?.className,v),G=s.useMemo(()=>{var U,K;if(typeof S=="function"||O0(S))return S||null;if(typeof a.expandIcon=="function"||O0(a.expandIcon))return a.expandIcon||null;if(typeof f?.expandIcon=="function"||O0(f?.expandIcon))return f?.expandIcon||null;const Y=(U=S??a?.expandIcon)!==null&&U!==void 0?U:f?.expandIcon;return wa(Y,{className:se(`${k}-submenu-expand-icon`,s.isValidElement(Y)?(K=Y.props)===null||K===void 0?void 0:K.className:void 0)})},[S,a?.expandIcon,f?.expandIcon,k]),B=s.useMemo(()=>({prefixCls:k,inlineCollapsed:F||!1,direction:u,firstLevel:!0,theme:b,mode:P,disableMenuItemTitleTooltip:C}),[k,F,u,C,b]);return T(s.createElement(Sv.Provider,{value:null},s.createElement(yv.Provider,{value:B},s.createElement(gu,Object.assign({getPopupContainer:c,overflowedIndicator:s.createElement(eC,null),overflowedIndicatorPopupClassName:se(k,`${k}-${b}`,j),mode:P,selectable:A,onClick:N},D,{inlineCollapsed:F,style:Object.assign(Object.assign({},f?.style),g),className:q,prefixCls:k,direction:u,defaultMotions:H,expandIcon:G,ref:t,rootClassName:se($,z,a.rootClassName,V,L),_internalComponents:xV})))))}),ks=s.forwardRef((e,t)=>{const n=s.useRef(null),r=s.useContext(mg);return s.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var o;(o=n.current)===null||o===void 0||o.focus(a)}})),s.createElement(CV,Object.assign({ref:n},e,r))});ks.Item=yj;ks.SubMenu=xj;ks.Divider=bj;ks.ItemGroup=Jx;const wV=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}}}}}},$V=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:o,antCls:c,iconCls:u,motionDurationMid:f,paddingBlock:d,fontSize:h,dropdownEdgeChildPadding:v,colorTextDisabled:g,fontSizeIcon:b,controlPaddingHorizontal:S,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${c}-btn`]:{[`& > ${u}-down, & > ${c}-btn-icon > ${u}-down`]:{fontSize:b}},[`${t}-wrap`]:{position:"relative",[`${c}-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"},[`&${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottomLeft,
          &${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomLeft,
          &${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottom,
          &${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottom,
          &${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottomRight,
          &${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Yv},[`&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topLeft,
          &${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topLeft,
          &${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-top,
          &${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-top,
          &${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topRight,
          &${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Xv},[`&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomLeft,
          &${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottom,
          &${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Gv},[`&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topLeft,
          &${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-top,
          &${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Qv}}},XM(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({},An(e)),{[n]:Object.assign(Object.assign({padding:v,listStyleType:"none",backgroundColor:C,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Wo(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${te(d)} ${te(S)}`,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:`${te(d)} ${te(S)}`,color:e.colorText,fontWeight:"normal",fontSize:h,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${f}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Wo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:C,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${te(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 ${te(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(S).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:g,backgroundColor:C,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[co(e,"slide-up"),co(e,"slide-down"),ru(e,"move-up"),ru(e,"move-down"),Rx(e,"zoom-big")]]},_V=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Wx({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Ux(e)),EV=Kn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,o=Sn(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[$V(o),wV(o)]},_V,{resetStyle:!1}),hg=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:o,trigger:c,disabled:u,dropdownRender:f,popupRender:d,getPopupContainer:h,overlayClassName:v,rootClassName:g,overlayStyle:b,open:S,onOpenChange:C,visible:y,onVisibleChange:w,mouseEnterDelay:$=.15,mouseLeaveDelay:_=.1,autoAdjustOverflow:O=!0,placement:I="",overlay:j,transitionName:M,destroyOnHidden:D,destroyPopupOnHide:N}=e,{getPopupContainer:P,getPrefixCls:A,direction:F,dropdown:H}=s.useContext(Ut),k=d||f;Kl();const L=s.useMemo(()=>{const pe=A();return M!==void 0?M:I.includes("top")?`${pe}-slide-down`:`${pe}-slide-up`},[A,I,M]),T=s.useMemo(()=>I?I.includes("Center")?I.slice(0,I.indexOf("Center")):I:F==="rtl"?"bottomRight":"bottomLeft",[I,F]),z=A("dropdown",a),V=oa(z),[q,G,B]=EV(z,V),[,U]=Ta(),K=s.Children.only(y9(o)?s.createElement("span",null,o):o),Y=wa(K,{className:se(`${z}-trigger`,{[`${z}-rtl`]:F==="rtl"},K.props.className),disabled:(t=K.props.disabled)!==null&&t!==void 0?t:u}),Q=u?[]:c,Z=!!Q?.includes("contextMenu"),[ae,re]=Wn(!1,{value:S??y}),ie=pn(pe=>{C?.(pe,{source:"trigger"}),w?.(pe),re(pe)}),ve=se(v,g,G,B,V,H?.className,{[`${z}-rtl`]:F==="rtl"}),ue=QM({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:O,offset:U.marginXXS,arrowWidth:r?U.sizePopupArrow:0,borderRadius:U.borderRadius}),oe=pn(()=>{n?.selectable&&n?.multiple||(C?.(!1,{source:"menu"}),re(!1))}),he=()=>{let pe;return n?.items?pe=s.createElement(ks,Object.assign({},n)):typeof j=="function"?pe=j():pe=j,k&&(pe=k(pe)),pe=s.Children.only(typeof pe=="string"?s.createElement("span",null,pe):pe),s.createElement(Sj,{prefixCls:`${z}-menu`,rootClassName:se(B,V),expandIcon:s.createElement("span",{className:`${z}-menu-submenu-arrow`},F==="rtl"?s.createElement(pf,{className:`${z}-menu-submenu-arrow-icon`}):s.createElement(mf,{className:`${z}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:oe,validator:({mode:Ce})=>{}},pe)},[de,me]=uu("Dropdown",b?.zIndex);let le=s.createElement(tj,Object.assign({alignPoint:Z},or(e,["rootClassName"]),{mouseEnterDelay:$,mouseLeaveDelay:_,visible:ae,builtinPlacements:ue,arrow:!!r,overlayClassName:ve,prefixCls:z,getPopupContainer:h||P,transitionName:L,trigger:Q,overlay:he,placement:T,onVisibleChange:ie,overlayStyle:Object.assign(Object.assign(Object.assign({},H?.style),b),{zIndex:de}),autoDestroy:D??N}),Y);return de&&(le=s.createElement($x.Provider,{value:me},le)),q(le)},OV=og(hg,"align",void 0,"dropdown",e=>e),IV=e=>s.createElement(OV,Object.assign({},e),s.createElement("span",null));hg._InternalPanelDoNotUseOrYouWillBeFired=IV;var Wh={exports:{}},RV=Wh.exports,vO;function NV(){return vO||(vO=1,(function(e,t){(function(n,r){e.exports=r()})(RV,(function(){var n=1e3,r=6e4,a=36e5,o="millisecond",c="second",u="minute",f="hour",d="day",h="week",v="month",g="quarter",b="year",S="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(k){var L=["th","st","nd","rd"],T=k%100;return"["+k+(L[(T-20)%10]||L[T]||L[0])+"]"}},_=function(k,L,T){var z=String(k);return!z||z.length>=L?k:""+Array(L+1-z.length).join(T)+k},O={s:_,z:function(k){var L=-k.utcOffset(),T=Math.abs(L),z=Math.floor(T/60),V=T%60;return(L<=0?"+":"-")+_(z,2,"0")+":"+_(V,2,"0")},m:function k(L,T){if(L.date()<T.date())return-k(T,L);var z=12*(T.year()-L.year())+(T.month()-L.month()),V=L.clone().add(z,v),q=T-V<0,G=L.clone().add(z+(q?-1:1),v);return+(-(z+(T-V)/(q?V-G:G-V))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:v,y:b,w:h,d,D:S,h:f,m:u,s:c,ms:o,Q:g}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},I="en",j={};j[I]=$;var M="$isDayjsObject",D=function(k){return k instanceof F||!(!k||!k[M])},N=function k(L,T,z){var V;if(!L)return I;if(typeof L=="string"){var q=L.toLowerCase();j[q]&&(V=q),T&&(j[q]=T,V=q);var G=L.split("-");if(!V&&G.length>1)return k(G[0])}else{var B=L.name;j[B]=L,V=B}return!z&&V&&(I=V),V||!z&&I},P=function(k,L){if(D(k))return k.clone();var T=typeof L=="object"?L:{};return T.date=k,T.args=arguments,new F(T)},A=O;A.l=N,A.i=D,A.w=function(k,L){return P(k,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var F=(function(){function k(T){this.$L=N(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[M]=!0}var L=k.prototype;return L.parse=function(T){this.$d=(function(z){var V=z.date,q=z.utc;if(V===null)return new Date(NaN);if(A.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var G=V.match(y);if(G){var B=G[2]-1||0,U=(G[7]||"0").substring(0,3);return q?new Date(Date.UTC(G[1],B,G[3]||1,G[4]||0,G[5]||0,G[6]||0,U)):new Date(G[1],B,G[3]||1,G[4]||0,G[5]||0,G[6]||0,U)}}return new Date(V)})(T),this.init()},L.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},L.$utils=function(){return A},L.isValid=function(){return this.$d.toString()!==C},L.isSame=function(T,z){var V=P(T);return this.startOf(z)<=V&&V<=this.endOf(z)},L.isAfter=function(T,z){return P(T)<this.startOf(z)},L.isBefore=function(T,z){return this.endOf(z)<P(T)},L.$g=function(T,z,V){return A.u(T)?this[z]:this.set(V,T)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(T,z){var V=this,q=!!A.u(z)||z,G=A.p(T),B=function(ie,ve){var ue=A.w(V.$u?Date.UTC(V.$y,ve,ie):new Date(V.$y,ve,ie),V);return q?ue:ue.endOf(d)},U=function(ie,ve){return A.w(V.toDate()[ie].apply(V.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(ve)),V)},K=this.$W,Y=this.$M,Q=this.$D,Z="set"+(this.$u?"UTC":"");switch(G){case b:return q?B(1,0):B(31,11);case v:return q?B(1,Y):B(0,Y+1);case h:var ae=this.$locale().weekStart||0,re=(K<ae?K+7:K)-ae;return B(q?Q-re:Q+(6-re),Y);case d:case S:return U(Z+"Hours",0);case f:return U(Z+"Minutes",1);case u:return U(Z+"Seconds",2);case c:return U(Z+"Milliseconds",3);default:return this.clone()}},L.endOf=function(T){return this.startOf(T,!1)},L.$set=function(T,z){var V,q=A.p(T),G="set"+(this.$u?"UTC":""),B=(V={},V[d]=G+"Date",V[S]=G+"Date",V[v]=G+"Month",V[b]=G+"FullYear",V[f]=G+"Hours",V[u]=G+"Minutes",V[c]=G+"Seconds",V[o]=G+"Milliseconds",V)[q],U=q===d?this.$D+(z-this.$W):z;if(q===v||q===b){var K=this.clone().set(S,1);K.$d[B](U),K.init(),this.$d=K.set(S,Math.min(this.$D,K.daysInMonth())).$d}else B&&this.$d[B](U);return this.init(),this},L.set=function(T,z){return this.clone().$set(T,z)},L.get=function(T){return this[A.p(T)]()},L.add=function(T,z){var V,q=this;T=Number(T);var G=A.p(z),B=function(Y){var Q=P(q);return A.w(Q.date(Q.date()+Math.round(Y*T)),q)};if(G===v)return this.set(v,this.$M+T);if(G===b)return this.set(b,this.$y+T);if(G===d)return B(1);if(G===h)return B(7);var U=(V={},V[u]=r,V[f]=a,V[c]=n,V)[G]||1,K=this.$d.getTime()+T*U;return A.w(K,this)},L.subtract=function(T,z){return this.add(-1*T,z)},L.format=function(T){var z=this,V=this.$locale();if(!this.isValid())return V.invalidDate||C;var q=T||"YYYY-MM-DDTHH:mm:ssZ",G=A.z(this),B=this.$H,U=this.$m,K=this.$M,Y=V.weekdays,Q=V.months,Z=V.meridiem,ae=function(ve,ue,oe,he){return ve&&(ve[ue]||ve(z,q))||oe[ue].slice(0,he)},re=function(ve){return A.s(B%12||12,ve,"0")},ie=Z||function(ve,ue,oe){var he=ve<12?"AM":"PM";return oe?he.toLowerCase():he};return q.replace(w,(function(ve,ue){return ue||(function(oe){switch(oe){case"YY":return String(z.$y).slice(-2);case"YYYY":return A.s(z.$y,4,"0");case"M":return K+1;case"MM":return A.s(K+1,2,"0");case"MMM":return ae(V.monthsShort,K,Q,3);case"MMMM":return ae(Q,K);case"D":return z.$D;case"DD":return A.s(z.$D,2,"0");case"d":return String(z.$W);case"dd":return ae(V.weekdaysMin,z.$W,Y,2);case"ddd":return ae(V.weekdaysShort,z.$W,Y,3);case"dddd":return Y[z.$W];case"H":return String(B);case"HH":return A.s(B,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return ie(B,U,!0);case"A":return ie(B,U,!1);case"m":return String(U);case"mm":return A.s(U,2,"0");case"s":return String(z.$s);case"ss":return A.s(z.$s,2,"0");case"SSS":return A.s(z.$ms,3,"0");case"Z":return G}return null})(ve)||G.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(T,z,V){var q,G=this,B=A.p(z),U=P(T),K=(U.utcOffset()-this.utcOffset())*r,Y=this-U,Q=function(){return A.m(G,U)};switch(B){case b:q=Q()/12;break;case v:q=Q();break;case g:q=Q()/3;break;case h:q=(Y-K)/6048e5;break;case d:q=(Y-K)/864e5;break;case f:q=Y/a;break;case u:q=Y/r;break;case c:q=Y/n;break;default:q=Y}return V?q:A.a(q)},L.daysInMonth=function(){return this.endOf(v).$D},L.$locale=function(){return j[this.$L]},L.locale=function(T,z){if(!T)return this.$L;var V=this.clone(),q=N(T,z,!0);return q&&(V.$L=q),V},L.clone=function(){return A.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},k})(),H=F.prototype;return P.prototype=H,[["$ms",o],["$s",c],["$m",u],["$H",f],["$W",d],["$M",v],["$y",b],["$D",S]].forEach((function(k){H[k[1]]=function(L){return this.$g(L,k[0],k[1])}})),P.extend=function(k,L){return k.$i||(k(L,F,P),k.$i=!0),P},P.locale=N,P.isDayjs=D,P.unix=function(k){return P(1e3*k)},P.en=j[I],P.Ls=j,P.p={},P}))})(Wh)),Wh.exports}var MV=NV();const Wa=Wi(MV);var qh={exports:{}},jV=qh.exports,gO;function TV(){return gO||(gO=1,(function(e,t){(function(n,r){e.exports=r()})(jV,(function(){return function(n,r){r.prototype.weekday=function(a){var o=this.$locale().weekStart||0,c=this.$W,u=(c<o?c+7:c)-o;return this.$utils().u(a)?u:this.subtract(u,"day").add(a,"day")}}}))})(qh)),qh.exports}var DV=TV();const PV=Wi(DV);var Yh={exports:{}},kV=Yh.exports,pO;function AV(){return pO||(pO=1,(function(e,t){(function(n,r){e.exports=r()})(kV,(function(){return function(n,r,a){var o=r.prototype,c=function(v){return v&&(v.indexOf?v:v.s)},u=function(v,g,b,S,C){var y=v.name?v:v.$locale(),w=c(y[g]),$=c(y[b]),_=w||$.map((function(I){return I.slice(0,S)}));if(!C)return _;var O=y.weekStart;return _.map((function(I,j){return _[(j+(O||0))%7]}))},f=function(){return a.Ls[a.locale()]},d=function(v,g){return v.formats[g]||(function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,C,y){return C||y.slice(1)}))})(v.formats[g.toUpperCase()])},h=function(){var v=this;return{months:function(g){return g?g.format("MMMM"):u(v,"months")},monthsShort:function(g){return g?g.format("MMM"):u(v,"monthsShort","months",3)},firstDayOfWeek:function(){return v.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):u(v,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):u(v,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):u(v,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return d(v.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return h.bind(this)()},a.localeData=function(){var v=f();return{firstDayOfWeek:function(){return v.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(g){return d(v,g)},meridiem:v.meridiem,ordinal:v.ordinal}},a.months=function(){return u(f(),"months")},a.monthsShort=function(){return u(f(),"monthsShort","months",3)},a.weekdays=function(v){return u(f(),"weekdays",null,null,v)},a.weekdaysShort=function(v){return u(f(),"weekdaysShort","weekdays",3,v)},a.weekdaysMin=function(v){return u(f(),"weekdaysMin","weekdays",2,v)}}}))})(Yh)),Yh.exports}var zV=AV();const LV=Wi(zV);var Gh={exports:{}},HV=Gh.exports,bO;function BV(){return bO||(bO=1,(function(e,t){(function(n,r){e.exports=r()})(HV,(function(){var n="week",r="year";return function(a,o,c){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=c(this).startOf(r).add(1,r).date(d),v=c(this).endOf(n);if(h.isBefore(v))return 1}var g=c(this).startOf(r).date(d).startOf(n).subtract(1,"millisecond"),b=this.diff(g,n,!0);return b<0?c(this).startOf("week").week():Math.ceil(b)},u.weeks=function(f){return f===void 0&&(f=null),this.week(f)}}}))})(Gh)),Gh.exports}var FV=BV();const VV=Wi(FV);var Xh={exports:{}},KV=Xh.exports,yO;function UV(){return yO||(yO=1,(function(e,t){(function(n,r){e.exports=r()})(KV,(function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),c=this.year();return o===1&&a===11?c+1:a===0&&o>=52?c-1:c}}}))})(Xh)),Xh.exports}var WV=UV();const qV=Wi(WV);var Qh={exports:{}},YV=Qh.exports,SO;function GV(){return SO||(SO=1,(function(e,t){(function(n,r){e.exports=r()})(YV,(function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(c){var u=this,f=this.$locale();if(!this.isValid())return o.bind(this)(c);var d=this.$utils(),h=(c||"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(v){switch(v){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(),v==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),v==="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 v}}));return o.bind(this)(h)}}}))})(Qh)),Qh.exports}var XV=GV();const QV=Wi(XV);var Zh={exports:{}},ZV=Zh.exports,xO;function JV(){return xO||(xO=1,(function(e,t){(function(n,r){e.exports=r()})(ZV,(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/,c=/\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}},v=[/[+-]\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),_=60*$[1]+(+$[2]||0);return _===0?0:$[0]==="+"?-_:_})(y)}],g=function(y){var w=f[y];return w&&(w.indexOf?w:w.s.concat(w.f))},b=function(y,w){var $,_=f.meridiem;if(_){for(var O=1;O<=24;O+=1)if(y.indexOf(_(O,0,w))>-1){$=O>12;break}}else $=y===(w?"pm":"PM");return $},S={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:[c,h("seconds")],ss:[c,h("seconds")],m:[c,h("minutes")],mm:[c,h("minutes")],H:[c,h("hours")],h:[c,h("hours")],HH:[c,h("hours")],hh:[c,h("hours")],D:[c,h("day")],DD:[o,h("day")],Do:[u,function(y){var w=f.ordinal,$=y.match(/\d+/);if(this.day=$[0],w)for(var _=1;_<=31;_+=1)w(_).replace(/\[|\]/g,"")===y&&(this.day=_)}],w:[c,h("week")],ww:[o,h("week")],M:[c,h("month")],MM:[o,h("month")],MMM:[u,function(y){var w=g("months"),$=(g("monthsShort")||w.map((function(_){return _.slice(0,3)}))).indexOf(y)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[u,function(y){var w=g("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:v,ZZ:v};function C(y){var w,$;w=y,$=f&&f.formats;for(var _=(y=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(P,A,F){var H=F&&F.toUpperCase();return A||$[F]||n[F]||$[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(k,L,T){return L||T.slice(1)}))}))).match(r),O=_.length,I=0;I<O;I+=1){var j=_[I],M=S[j],D=M&&M[0],N=M&&M[1];_[I]=N?{regex:D,parser:N}:j.replace(/^\[|\]$/g,"")}return function(P){for(var A={},F=0,H=0;F<O;F+=1){var k=_[F];if(typeof k=="string")H+=k.length;else{var L=k.regex,T=k.parser,z=P.slice(H),V=L.exec(z)[0];T.call(A,V),P=P.replace(V,"")}}return(function(q){var G=q.afternoon;if(G!==void 0){var B=q.hours;G?B<12&&(q.hours+=12):B===12&&(q.hours=0),delete q.afternoon}})(A),A}}return function(y,w,$){$.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(d=y.parseTwoDigitYear);var _=w.prototype,O=_.parse;_.parse=function(I){var j=I.date,M=I.utc,D=I.args;this.$u=M;var N=D[1];if(typeof N=="string"){var P=D[2]===!0,A=D[3]===!0,F=P||A,H=D[2];A&&(H=D[2]),f=this.$locale(),!P&&H&&(f=$.Ls[H]),this.$d=(function(z,V,q,G){try{if(["x","X"].indexOf(V)>-1)return new Date((V==="X"?1e3:1)*z);var B=C(V)(z),U=B.year,K=B.month,Y=B.day,Q=B.hours,Z=B.minutes,ae=B.seconds,re=B.milliseconds,ie=B.zone,ve=B.week,ue=new Date,oe=Y||(U||K?1:ue.getDate()),he=U||ue.getFullYear(),de=0;U&&!K||(de=K>0?K-1:ue.getMonth());var me,le=Q||0,pe=Z||0,Ce=ae||0,De=re||0;return ie?new Date(Date.UTC(he,de,oe,le,pe,Ce,De+60*ie.offset*1e3)):q?new Date(Date.UTC(he,de,oe,le,pe,Ce,De)):(me=new Date(he,de,oe,le,pe,Ce,De),ve&&(me=G(me).week(ve).toDate()),me)}catch{return new Date("")}})(j,N,M,$),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),F&&j!=this.format(N)&&(this.$d=new Date("")),f={}}else if(N instanceof Array)for(var k=N.length,L=1;L<=k;L+=1){D[1]=N[L-1];var T=$.apply(this,D);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}L===k&&(this.$d=new Date(""))}else O.call(this,I)}}}))})(Zh)),Zh.exports}var eK=JV();const tK=Wi(eK);Wa.extend(tK);Wa.extend(QV);Wa.extend(PV);Wa.extend(LV);Wa.extend(VV);Wa.extend(qV);Wa.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var c=(o||"").replace("Wo","wo");return r.bind(this)(c)}});var nK={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"},fs=function(t){var n=nK[t];return n||t.split("_")[0]},rK={getNow:function(){var t=Wa();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Wa(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 Wa().locale(fs(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(fs(t)).weekday(0)},getWeek:function(t,n){return n.locale(fs(t)).week()},getShortWeekDays:function(t){return Wa().locale(fs(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Wa().locale(fs(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(fs(t)).format(r)},parse:function(t,n,r){for(var a=fs(t),o=0;o<r.length;o+=1){var c=r[o],u=n;if(c.includes("wo")||c.includes("Wo")){for(var f=u.split("-")[0],d=u.split("-")[1],h=Wa(f,"YYYY").startOf("year").locale(a),v=0;v<=52;v+=1){var g=h.add(v,"week");if(g.format("Wo")===d)return g}return null}var b=Wa(u,c,!0).locale(a);if(b.isValid())return b}return null}}};function aK(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var qi=s.createContext(null),iK={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 Cj(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,a=e.popupAlign,o=e.transitionName,c=e.getPopupContainer,u=e.children,f=e.range,d=e.placement,h=e.builtinPlacements,v=h===void 0?iK:h,g=e.direction,b=e.visible,S=e.onClose,C=s.useContext(qi),y=C.prefixCls,w="".concat(y,"-dropdown"),$=aK(d,g==="rtl");return s.createElement(Pf,{showAction:[],hideAction:["click"],popupPlacement:$,builtinPlacements:v,prefixCls:w,popupTransitionName:o,popup:t,popupAlign:a,popupVisible:b,popupClassName:se(r,X(X({},"".concat(w,"-range"),f),"".concat(w,"-rtl"),g==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:c,onPopupVisibleChange:function(O){O||S()}},u)}function tC(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 As(e){return e==null?[]:Array.isArray(e)?e:[e]}function Ud(e,t,n){var r=ke(e);return r[t]=n,r}function vg(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(a){e[a]!==void 0&&(n[a]=e[a])}),n}function wj(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 $j(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 _j(e){return vg(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function nC(e,t,n,r){var a=s.useMemo(function(){return e||function(c,u){var f=c;return t&&u.type==="date"?t(f,u.today):n&&u.type==="month"?n(f,u.locale):u.originNode}},[e,n,t]),o=s.useCallback(function(c,u){return a(c,ee(ee({},u),{},{range:r}))},[a,r]);return o}function Ej(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=s.useState([!1,!1]),a=ce(r,2),o=a[0],c=a[1],u=function(h,v){c(function(g){return Ud(g,v,h)})},f=s.useMemo(function(){return o.map(function(d,h){if(d)return!0;var v=e[h];return v?!!(!n[h]&&!v||v&&t(v,{activeIndex:h})):!1})},[e,o,t,n]);return[f,u]}function Oj(e,t,n,r,a){var o="",c=[];return e&&c.push(a?"hh":"HH"),t&&c.push("mm"),n&&c.push("ss"),o=c.join(":"),r&&(o+=".SSS"),a&&(o+=" A"),o}function oK(e,t,n,r,a,o){var c=e.fieldDateTimeFormat,u=e.fieldDateFormat,f=e.fieldTimeFormat,d=e.fieldMonthFormat,h=e.fieldYearFormat,v=e.fieldWeekFormat,g=e.fieldQuarterFormat,b=e.yearFormat,S=e.cellYearFormat,C=e.cellQuarterFormat,y=e.dayFormat,w=e.cellDateFormat,$=Oj(t,n,r,a,o);return ee(ee({},e),{},{fieldDateTimeFormat:c||"YYYY-MM-DD ".concat($),fieldDateFormat:u||"YYYY-MM-DD",fieldTimeFormat:f||$,fieldMonthFormat:d||"YYYY-MM",fieldYearFormat:h||"YYYY",fieldWeekFormat:v||"gggg-wo",fieldQuarterFormat:g||"YYYY-[Q]Q",yearFormat:b||"YYYY",cellYearFormat:S||"YYYY",cellQuarterFormat:C||"[Q]Q",cellDateFormat:w||y||"D"})}function Ij(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,o=t.showMillisecond,c=t.use12Hours;return xe.useMemo(function(){return oK(e,n,r,a,o,c)},[e,n,r,a,o,c])}function $d(e,t,n){return n??t.some(function(r){return e.includes(r)})}var lK=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function sK(e){var t=vg(e,lK),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=jt(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function cK(e){return e&&typeof e=="string"}function Rj(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function Nj(e,t,n,r,a){var o=t,c=n,u=r;if(!e&&!o&&!c&&!u&&!a)o=!0,c=!0,u=!0;else if(e){var f,d,h,v=[o,c,u].some(function(S){return S===!1}),g=[o,c,u].some(function(S){return S===!0}),b=v?!0:!g;o=(f=o)!==null&&f!==void 0?f:b,c=(d=c)!==null&&d!==void 0?d:b,u=(h=u)!==null&&h!==void 0?h:b}return[o,c,u,a]}function Mj(e){var t=e.showTime,n=sK(e),r=ce(n,2),a=r[0],o=r[1],c=t&&jt(t)==="object"?t:{},u=ee(ee({defaultOpenValue:c.defaultOpenValue||c.defaultValue},a),c),f=u.showMillisecond,d=u.showHour,h=u.showMinute,v=u.showSecond,g=Rj(d,h,v,f),b=Nj(g,d,h,v,f),S=ce(b,3);return d=S[0],h=S[1],v=S[2],[u,ee(ee({},u),{},{showHour:d,showMinute:h,showSecond:v,showMillisecond:f}),u.format,o]}function jj(e,t,n,r,a){var o=e==="time";if(e==="datetime"||o){for(var c=r,u=wj(e,a,null),f=u,d=[t,n],h=0;h<d.length;h+=1){var v=As(d[h])[0];if(cK(v)){f=v;break}}var g=c.showHour,b=c.showMinute,S=c.showSecond,C=c.showMillisecond,y=c.use12Hours,w=$d(f,["a","A","LT","LLL","LTS"],y),$=Rj(g,b,S,C);$||(g=$d(f,["H","h","k","LT","LLL"]),b=$d(f,["m","LT","LLL"]),S=$d(f,["s","LTS"]),C=$d(f,["SSS"]));var _=Nj($,g,b,S,C),O=ce(_,3);g=O[0],b=O[1],S=O[2];var I=t||Oj(g,b,S,C,w);return ee(ee({},c),{},{format:I,showHour:g,showMinute:b,showSecond:S,showMillisecond:C,use12Hours:w})}return null}function uK(e,t,n){if(t===!1)return null;var r=t&&jt(t)==="object"?t:{};return r.clearIcon||n||s.createElement("span",{className:"".concat(e,"-clear-btn")})}var I0=7;function Ul(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function bS(e,t,n){return Ul(t,n,function(){var r=Math.floor(e.getYear(t)/10),a=Math.floor(e.getYear(n)/10);return r===a})}function Ms(e,t,n){return Ul(t,n,function(){return e.getYear(t)===e.getYear(n)})}function CO(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function dK(e,t,n){return Ul(t,n,function(){return Ms(e,t,n)&&CO(e,t)===CO(e,n)})}function rC(e,t,n){return Ul(t,n,function(){return Ms(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function aC(e,t,n){return Ul(t,n,function(){return Ms(e,t,n)&&rC(e,t,n)&&e.getDate(t)===e.getDate(n)})}function Tj(e,t,n){return Ul(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function Dj(e,t,n){return Ul(t,n,function(){return aC(e,t,n)&&Tj(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Ad(e,t,n,r){return Ul(n,r,function(){var a=e.locale.getWeekFirstDate(t,n),o=e.locale.getWeekFirstDate(t,r);return Ms(e,a,o)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Ra(e,t,n,r,a){switch(a){case"date":return aC(e,n,r);case"week":return Ad(e,t.locale,n,r);case"month":return rC(e,n,r);case"quarter":return dK(e,n,r);case"year":return Ms(e,n,r);case"decade":return bS(e,n,r);case"time":return Tj(e,n,r);default:return Dj(e,n,r)}}function gg(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function gh(e,t,n,r,a){return Ra(e,t,n,r,a)?!0:e.isAfter(n,r)}function fK(e,t,n){var r=t.locale.getWeekFirstDay(e),a=t.setDate(n,1),o=t.getWeekDay(a),c=t.addDate(a,r-o);return t.getMonth(c)===t.getMonth(n)&&t.getDate(c)>1&&(c=t.addDate(c,-7)),c}function na(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 xv(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(c,u){n?r=e[c](r,e[a[u]](n)):r=e[c](r,0)}),r}function mK(e,t,n,r,a){var o=pn(function(c,u){return!!(n&&n(c,u)||r&&e.isAfter(r,c)&&!Ra(e,t,r,c,u.type)||a&&e.isAfter(c,a)&&!Ra(e,t,a,c,u.type))});return o}function hK(e,t,n){return s.useMemo(function(){var r=wj(e,t,n),a=As(r),o=a[0],c=jt(o)==="object"&&o.type==="mask"?o.format:null;return[a.map(function(u){return typeof u=="string"||typeof u=="function"?u:u.format}),c]},[e,t,n])}function vK(e,t,n){return typeof e[0]=="function"||n?!0:t}function gK(e,t,n,r){var a=pn(function(o,c){var u=ee({type:t},c);if(delete u.activeIndex,!e.isValidate(o)||n&&n(o,u))return!0;if((t==="date"||t==="time")&&r){var f,d=c&&c.activeIndex===1?"end":"start",h=((f=r.disabledTime)===null||f===void 0?void 0:f.call(r,o,d,{from:u.from}))||{},v=h.disabledHours,g=h.disabledMinutes,b=h.disabledSeconds,S=h.disabledMilliseconds,C=r.disabledHours,y=r.disabledMinutes,w=r.disabledSeconds,$=v||C,_=g||y,O=b||w,I=e.getHour(o),j=e.getMinute(o),M=e.getSecond(o),D=e.getMillisecond(o);if($&&$().includes(I)||_&&_(I).includes(j)||O&&O(I,j).includes(M)||S&&S(I,j,M).includes(D))return!0}return!1});return a}function ph(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=s.useMemo(function(){var r=e&&As(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function Pj(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,o=a===void 0?"date":a,c=e.prefixCls,u=c===void 0?"rc-picker":c,f=e.styles,d=f===void 0?{}:f,h=e.classNames,v=h===void 0?{}:h,g=e.order,b=g===void 0?!0:g,S=e.components,C=S===void 0?{}:S,y=e.inputRender,w=e.allowClear,$=e.clearIcon,_=e.needConfirm,O=e.multiple,I=e.format,j=e.inputReadOnly,M=e.disabledDate,D=e.minDate,N=e.maxDate,P=e.showTime,A=e.value,F=e.defaultValue,H=e.pickerValue,k=e.defaultPickerValue,L=ph(A),T=ph(F),z=ph(H),V=ph(k),q=o==="date"&&P?"datetime":o,G=q==="time"||q==="datetime",B=G||O,U=_??G,K=Mj(e),Y=ce(K,4),Q=Y[0],Z=Y[1],ae=Y[2],re=Y[3],ie=Ij(r,Z),ve=s.useMemo(function(){return jj(q,ae,re,Q,ie)},[q,ae,re,Q,ie]),ue=s.useMemo(function(){return ee(ee({},e),{},{prefixCls:u,locale:ie,picker:o,styles:d,classNames:v,order:b,components:ee({input:y},C),clearIcon:uK(u,w,$),showTime:ve,value:L,defaultValue:T,pickerValue:z,defaultPickerValue:V},t?.())},[e]),oe=hK(q,ie,I),he=ce(oe,2),de=he[0],me=he[1],le=vK(de,j,O),pe=mK(n,r,M,D,N),Ce=gK(n,o,pe,ve),De=s.useMemo(function(){return ee(ee({},ue),{},{needConfirm:U,inputReadOnly:le,disabledDate:pe})},[ue,U,le,pe]);return[De,q,B,de,me,Ce]}function pK(e,t,n){var r=Wn(t,{value:e}),a=ce(r,2),o=a[0],c=a[1],u=xe.useRef(e),f=xe.useRef(),d=function(){mn.cancel(f.current)},h=pn(function(){c(u.current),n&&o!==u.current&&n(u.current)}),v=pn(function(g,b){d(),u.current=g,g||b?h():f.current=mn(h)});return xe.useEffect(function(){return d},[]),[o,v]}function kj(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=pK(a,t||!1,r),c=ce(o,2),u=c[0],f=c[1];function d(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!v.inherit||u)&&f(h,v.force)}return[u,d]}function Aj(e){var t=s.useRef();return s.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 zj(e,t){return s.useMemo(function(){return e||(t?(Sr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=ce(n,2),a=r[0],o=r[1];return{label:a,value:o}})):[])},[e,t])}function iC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=s.useRef(t);r.current=t,Cs(function(){if(e)r.current(e);else{var a=mn(function(){r.current(e)},n);return function(){mn.cancel(a)}}},[e])}function Lj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=s.useState(0),a=ce(r,2),o=a[0],c=a[1],u=s.useState(!1),f=ce(u,2),d=f[0],h=f[1],v=s.useRef([]),g=s.useRef(null),b=s.useRef(null),S=function(O){g.current=O},C=function(O){return g.current===O},y=function(O){h(O)},w=function(O){return O&&(b.current=O),b.current},$=function(O){var I=v.current,j=new Set(I.filter(function(D){return O[D]||t[D]})),M=I[I.length-1]===0?1:0;return j.size>=2||e[M]?null:M};return iC(d||n,function(){d||(v.current=[],S(null))}),s.useEffect(function(){d&&v.current.push(o)},[d,o]),[d,y,w,o,c,$,v.current,S,C]}function bK(e,t,n,r,a,o){var c=n[n.length-1],u=function(d,h){var v=ce(e,2),g=v[0],b=v[1],S=ee(ee({},h),{},{from:$j(e,n)});return c===1&&t[0]&&g&&!Ra(r,a,g,d,S.type)&&r.isAfter(g,d)||c===0&&t[1]&&b&&!Ra(r,a,b,d,S.type)&&r.isAfter(d,b)?!0:o?.(d,S)};return u}function zd(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 R0=[];function Hj(e,t,n,r,a,o,c,u){var f=arguments.length>8&&arguments[8]!==void 0?arguments[8]:R0,d=arguments.length>9&&arguments[9]!==void 0?arguments[9]:R0,h=arguments.length>10&&arguments[10]!==void 0?arguments[10]:R0,v=arguments.length>11?arguments[11]:void 0,g=arguments.length>12?arguments[12]:void 0,b=arguments.length>13?arguments[13]:void 0,S=c==="time",C=o||0,y=function(z){var V=e.getNow();return S&&(V=xv(e,V)),f[z]||n[z]||V},w=ce(d,2),$=w[0],_=w[1],O=Wn(function(){return y(0)},{value:$}),I=ce(O,2),j=I[0],M=I[1],D=Wn(function(){return y(1)},{value:_}),N=ce(D,2),P=N[0],A=N[1],F=s.useMemo(function(){var T=[j,P][C];return S?T:xv(e,T,h[C])},[S,j,P,C,e,h]),H=function(z){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",q=[M,A][C];q(z);var G=[j,P];G[C]=z,v&&(!Ra(e,t,j,G[0],c)||!Ra(e,t,P,G[1],c))&&v(G,{source:V,range:C===1?"end":"start",mode:r})},k=function(z,V){if(u){var q={date:"month",week:"month",month:"year",quarter:"year"},G=q[c];if(G&&!Ra(e,t,z,V,G))return zd(e,c,V,-1);if(c==="year"&&z){var B=Math.floor(e.getYear(z)/10),U=Math.floor(e.getYear(V)/10);if(B!==U)return zd(e,c,V,-1)}}return V},L=s.useRef(null);return dn(function(){if(a&&!f[C]){var T=S?null:e.getNow();if(L.current!==null&&L.current!==C?T=[j,P][C^1]:n[C]?T=C===0?n[0]:k(n[0],n[1]):n[C^1]&&(T=n[C^1]),T){g&&e.isAfter(g,T)&&(T=g);var z=u?zd(e,c,T,1):T;b&&e.isAfter(z,b)&&(T=u?zd(e,c,b,-1):b),H(T,"reset")}}},[a,C,n[C]]),s.useEffect(function(){a?L.current=C:L.current=null},[a,C]),dn(function(){a&&f&&f[C]&&H(f[C],"reset")},[a,C]),[F,H]}function Bj(e,t){var n=s.useRef(e),r=s.useState({}),a=ce(r,2),o=a[1],c=function(d){return d&&t!==void 0?t:n.current},u=function(d){n.current=d,o({})};return[c,u,c(!0)]}var yK=[];function Fj(e,t,n){var r=function(c){return c.map(function(u){return na(u,{generateConfig:e,locale:t,format:n[0]})})},a=function(c,u){for(var f=Math.max(c.length,u.length),d=-1,h=0;h<f;h+=1){var v=c[h]||null,g=u[h]||null;if(v!==g&&!Dj(e,v,g)){d=h;break}}return[d<0,d!==0]};return[r,a]}function Vj(e,t){return ke(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function SK(e){var t=Bj(e),n=ce(t,2),r=n[0],a=n[1],o=pn(function(){a(e)});return s.useEffect(function(){o()},[e]),[r,a]}function Kj(e,t,n,r,a,o,c,u,f){var d=Wn(o,{value:c}),h=ce(d,2),v=h[0],g=h[1],b=v||yK,S=SK(b),C=ce(S,2),y=C[0],w=C[1],$=Fj(e,t,n),_=ce($,2),O=_[0],I=_[1],j=pn(function(D){var N=ke(D);if(r)for(var P=0;P<2;P+=1)N[P]=N[P]||null;else a&&(N=Vj(N.filter(function(T){return T}),e));var A=I(y(),N),F=ce(A,2),H=F[0],k=F[1];if(!H&&(w(N),u)){var L=O(N);u(N,L,{range:k?"end":"start"})}}),M=function(){f&&f(y())};return[b,g,y,j,M]}function Uj(e,t,n,r,a,o,c,u,f,d){var h=e.generateConfig,v=e.locale,g=e.picker,b=e.onChange,S=e.allowEmpty,C=e.order,y=o.some(function(H){return H})?!1:C,w=Fj(h,v,c),$=ce(w,2),_=$[0],O=$[1],I=Bj(t),j=ce(I,2),M=j[0],D=j[1],N=pn(function(){D(t)});s.useEffect(function(){N()},[t]);var P=pn(function(H){var k=H===null,L=ke(H||M());if(k)for(var T=Math.max(o.length,L.length),z=0;z<T;z+=1)o[z]||(L[z]=null);y&&L[0]&&L[1]&&(L=Vj(L,h)),a(L);var V=L,q=ce(V,2),G=q[0],B=q[1],U=!G,K=!B,Y=S?(!U||S[0])&&(!K||S[1]):!0,Q=!C||U||K||Ra(h,v,G,B,g)||h.isAfter(B,G),Z=(o[0]||!G||!d(G,{activeIndex:0}))&&(o[1]||!B||!d(B,{from:G,activeIndex:1})),ae=k||Y&&Q&&Z;if(ae){n(L);var re=O(L,t),ie=ce(re,1),ve=ie[0];b&&!ve&&b(k&&L.every(function(ue){return!ue})?null:L,_(L))}return ae}),A=pn(function(H,k){var L=Ud(M(),H,r()[H]);D(L),k&&P()}),F=!u&&!f;return iC(!F,function(){F&&(P(),a(t),N())},2),[A,P]}function Wj(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 xK(e,t,n,r,a,o){var c=e;function u(v,g,b){var S=o[v](c),C=b.find(function(_){return _.value===S});if(!C||C.disabled){var y=b.filter(function(_){return!_.disabled}),w=ke(y).reverse(),$=w.find(function(_){return _.value<=S})||y[0];$&&(S=$.value,c=o[g](c,S))}return S}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)),c}function bh(){return[]}function yh(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,c=[],u=n>=1?n|0:1,f=e;f<=t;f+=u){var d=a.includes(f);(!d||!r)&&c.push({label:tC(f,o),value:f,disabled:d})}return c}function oC(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,c=o===void 0?1:o,u=r.minuteStep,f=u===void 0?1:u,d=r.secondStep,h=d===void 0?1:d,v=r.millisecondStep,g=v===void 0?100:v,b=r.hideDisabledOptions,S=r.disabledTime,C=r.disabledHours,y=r.disabledMinutes,w=r.disabledSeconds,$=s.useMemo(function(){return n||e.getNow()},[n,e]),_=s.useCallback(function(V){var q=S?.(V)||{};return[q.disabledHours||C||bh,q.disabledMinutes||y||bh,q.disabledSeconds||w||bh,q.disabledMilliseconds||bh]},[S,C,y,w]),O=s.useMemo(function(){return _($)},[$,_]),I=ce(O,4),j=I[0],M=I[1],D=I[2],N=I[3],P=s.useCallback(function(V,q,G,B){var U=yh(0,23,c,b,V()),K=a?U.map(function(ae){return ee(ee({},ae),{},{label:tC(ae.value%12||12,2)})}):U,Y=function(re){return yh(0,59,f,b,q(re))},Q=function(re,ie){return yh(0,59,h,b,G(re,ie))},Z=function(re,ie,ve){return yh(0,999,g,b,B(re,ie,ve),3)};return[K,Y,Q,Z]},[b,c,a,g,f,h]),A=s.useMemo(function(){return P(j,M,D,N)},[P,j,M,D,N]),F=ce(A,4),H=F[0],k=F[1],L=F[2],T=F[3],z=function(q,G){var B=function(){return H},U=k,K=L,Y=T;if(G){var Q=_(G),Z=ce(Q,4),ae=Z[0],re=Z[1],ie=Z[2],ve=Z[3],ue=P(ae,re,ie,ve),oe=ce(ue,4),he=oe[0],de=oe[1],me=oe[2],le=oe[3];B=function(){return he},U=de,K=me,Y=le}var pe=xK(q,B,U,K,Y,e);return pe};return[z,H,k,L,T]}function CK(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,o=e.showTime,c=e.onSubmit,u=e.onNow,f=e.invalid,d=e.needConfirm,h=e.generateConfig,v=e.disabledDate,g=s.useContext(qi),b=g.prefixCls,S=g.locale,C=g.button,y=C===void 0?"button":C,w=h.getNow(),$=oC(h,o,w),_=ce($,1),O=_[0],I=r?.(t),j=v(w,{type:t}),M=function(){if(!j){var k=O(w);u(k)}},D="".concat(b,"-now"),N="".concat(D,"-btn"),P=a&&s.createElement("li",{className:D},s.createElement("a",{className:se(N,j&&"".concat(N,"-disabled")),"aria-disabled":j,onClick:M},n==="date"?S.today:S.now)),A=d&&s.createElement("li",{className:"".concat(b,"-ok")},s.createElement(y,{disabled:f,onClick:c},S.ok)),F=(P||A)&&s.createElement("ul",{className:"".concat(b,"-ranges")},P,A);return!I&&!F?null:s.createElement("div",{className:"".concat(b,"-footer")},I&&s.createElement("div",{className:"".concat(b,"-footer-extra")},I),F)}function qj(e,t,n){function r(a,o){var c=a.findIndex(function(f){return Ra(e,t,f,o,n)});if(c===-1)return[].concat(ke(a),[o]);var u=ke(a);return u.splice(c,1),u}return r}var zs=s.createContext(null);function pg(){return s.useContext(zs)}function pu(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,o=e.disabledDate,c=e.minDate,u=e.maxDate,f=e.cellRender,d=e.hoverValue,h=e.hoverRangeValue,v=e.onHover,g=e.values,b=e.pickerValue,S=e.onSelect,C=e.prevIcon,y=e.nextIcon,w=e.superPrevIcon,$=e.superNextIcon,_=r.getNow(),O={now:_,values:g,pickerValue:b,prefixCls:n,disabledDate:o,minDate:c,maxDate:u,cellRender:f,hoverValue:d,hoverRangeValue:h,onHover:v,locale:a,generateConfig:r,onSelect:S,panelType:t,prevIcon:C,nextIcon:y,superPrevIcon:w,superNextIcon:$};return[O,_]}var Al=s.createContext({});function Af(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,o=e.prefixColumn,c=e.rowClassName,u=e.titleFormat,f=e.getCellText,d=e.getCellClassName,h=e.headerCells,v=e.cellSelection,g=v===void 0?!0:v,b=e.disabledDate,S=pg(),C=S.prefixCls,y=S.panelType,w=S.now,$=S.disabledDate,_=S.cellRender,O=S.onHover,I=S.hoverValue,j=S.hoverRangeValue,M=S.generateConfig,D=S.values,N=S.locale,P=S.onSelect,A=b||$,F="".concat(C,"-cell"),H=s.useContext(Al),k=H.onCellDblClick,L=function(K){return D.some(function(Y){return Y&&Ra(M,N,K,Y,y)})},T=[],z=0;z<t;z+=1){for(var V=[],q=void 0,G=function(){var K=z*n+B,Y=a(r,K),Q=A?.(Y,{type:y});B===0&&(q=Y,o&&V.push(o(q)));var Z=!1,ae=!1,re=!1;if(g&&j){var ie=ce(j,2),ve=ie[0],ue=ie[1];Z=gg(M,ve,ue,Y),ae=Ra(M,N,Y,ve,y),re=Ra(M,N,Y,ue,y)}var oe=u?na(Y,{locale:N,format:u,generateConfig:M}):void 0,he=s.createElement("div",{className:"".concat(F,"-inner")},f(Y));V.push(s.createElement("td",{key:B,title:oe,className:se(F,ee(X(X(X(X(X(X({},"".concat(F,"-disabled"),Q),"".concat(F,"-hover"),(I||[]).some(function(de){return Ra(M,N,Y,de,y)})),"".concat(F,"-in-range"),Z&&!ae&&!re),"".concat(F,"-range-start"),ae),"".concat(F,"-range-end"),re),"".concat(C,"-cell-selected"),!j&&y!=="week"&&L(Y)),d(Y))),onClick:function(){Q||P(Y)},onDoubleClick:function(){!Q&&k&&k()},onMouseEnter:function(){Q||O?.(Y)},onMouseLeave:function(){Q||O?.(null)}},_?_(Y,{prefixCls:C,originNode:he,today:w,type:y,locale:N}):he))},B=0;B<n;B+=1)G();T.push(s.createElement("tr",{key:z,className:c?.(q)},V))}return s.createElement("div",{className:"".concat(C,"-body")},s.createElement("table",{className:"".concat(C,"-content")},h&&s.createElement("thead",null,s.createElement("tr",null,h)),s.createElement("tbody",null,T)))}var Sh={visibility:"hidden"};function bu(e){var t=e.offset,n=e.superOffset,r=e.onChange,a=e.getStart,o=e.getEnd,c=e.children,u=pg(),f=u.prefixCls,d=u.prevIcon,h=d===void 0?"‹":d,v=u.nextIcon,g=v===void 0?"›":v,b=u.superPrevIcon,S=b===void 0?"«":b,C=u.superNextIcon,y=C===void 0?"»":C,w=u.minDate,$=u.maxDate,_=u.generateConfig,O=u.locale,I=u.pickerValue,j=u.panelType,M="".concat(f,"-header"),D=s.useContext(Al),N=D.hidePrev,P=D.hideNext,A=D.hideHeader,F=s.useMemo(function(){if(!w||!t||!o)return!1;var U=o(t(-1,I));return!gh(_,O,U,w,j)},[w,t,I,o,_,O,j]),H=s.useMemo(function(){if(!w||!n||!o)return!1;var U=o(n(-1,I));return!gh(_,O,U,w,j)},[w,n,I,o,_,O,j]),k=s.useMemo(function(){if(!$||!t||!a)return!1;var U=a(t(1,I));return!gh(_,O,$,U,j)},[$,t,I,a,_,O,j]),L=s.useMemo(function(){if(!$||!n||!a)return!1;var U=a(n(1,I));return!gh(_,O,$,U,j)},[$,n,I,a,_,O,j]),T=function(K){t&&r(t(K,I))},z=function(K){n&&r(n(K,I))};if(A)return null;var V="".concat(M,"-prev-btn"),q="".concat(M,"-next-btn"),G="".concat(M,"-super-prev-btn"),B="".concat(M,"-super-next-btn");return s.createElement("div",{className:M},n&&s.createElement("button",{type:"button","aria-label":O.previousYear,onClick:function(){return z(-1)},tabIndex:-1,className:se(G,H&&"".concat(G,"-disabled")),disabled:H,style:N?Sh:{}},S),t&&s.createElement("button",{type:"button","aria-label":O.previousMonth,onClick:function(){return T(-1)},tabIndex:-1,className:se(V,F&&"".concat(V,"-disabled")),disabled:F,style:N?Sh:{}},h),s.createElement("div",{className:"".concat(M,"-view")},c),t&&s.createElement("button",{type:"button","aria-label":O.nextMonth,onClick:function(){return T(1)},tabIndex:-1,className:se(q,k&&"".concat(q,"-disabled")),disabled:k,style:P?Sh:{}},g),n&&s.createElement("button",{type:"button","aria-label":O.nextYear,onClick:function(){return z(1)},tabIndex:-1,className:se(B,L&&"".concat(B,"-disabled")),disabled:L,style:P?Sh:{}},y))}function bg(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,a=e.locale,o=e.generateConfig,c=e.pickerValue,u=e.onPickerValueChange,f=e.onModeChange,d=e.mode,h=d===void 0?"date":d,v=e.disabledDate,g=e.onSelect,b=e.onHover,S=e.showWeek,C="".concat(t,"-").concat(r,"-panel"),y="".concat(t,"-cell"),w=h==="week",$=pu(e,h),_=ce($,2),O=_[0],I=_[1],j=o.locale.getWeekFirstDay(a.locale),M=o.setDate(c,1),D=fK(a.locale,o,M),N=o.getMonth(c),P=S===void 0?w:S,A=P?function(U){var K=v?.(U,{type:"week"});return s.createElement("td",{key:"week",className:se(y,"".concat(y,"-week"),X({},"".concat(y,"-disabled"),K)),onClick:function(){K||g(U)},onMouseEnter:function(){K||b?.(U)},onMouseLeave:function(){K||b?.(null)}},s.createElement("div",{className:"".concat(y,"-inner")},o.locale.getWeek(a.locale,U)))}:null,F=[],H=a.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(a.locale):[]);A&&F.push(s.createElement("th",{key:"empty"},s.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},a.week)));for(var k=0;k<I0;k+=1)F.push(s.createElement("th",{key:k},H[(k+j)%I0]));var L=function(K,Y){return o.addDate(K,Y)},T=function(K){return na(K,{locale:a,format:a.cellDateFormat,generateConfig:o})},z=function(K){var Y=X(X({},"".concat(t,"-cell-in-view"),rC(o,K,c)),"".concat(t,"-cell-today"),aC(o,K,I));return Y},V=a.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(a.locale):[]),q=s.createElement("button",{type:"button","aria-label":a.yearSelect,key:"year",onClick:function(){f("year",c)},tabIndex:-1,className:"".concat(t,"-year-btn")},na(c,{locale:a,format:a.yearFormat,generateConfig:o})),G=s.createElement("button",{type:"button","aria-label":a.monthSelect,key:"month",onClick:function(){f("month",c)},tabIndex:-1,className:"".concat(t,"-month-btn")},a.monthFormat?na(c,{locale:a,format:a.monthFormat,generateConfig:o}):V[N]),B=a.monthBeforeYear?[G,q]:[q,G];return s.createElement(zs.Provider,{value:O},s.createElement("div",{className:se(C,S&&"".concat(C,"-show-week"))},s.createElement(bu,{offset:function(K){return o.addMonth(c,K)},superOffset:function(K){return o.addYear(c,K)},onChange:u,getStart:function(K){return o.setDate(K,1)},getEnd:function(K){var Y=o.setDate(K,1);return Y=o.addMonth(Y,1),o.addDate(Y,-1)}},B),s.createElement(Af,Me({titleFormat:a.fieldDateFormat},e,{colNum:I0,rowNum:6,baseDate:D,headerCells:F,getCellDate:L,getCellText:T,getCellClassName:z,prefixColumn:A,cellSelection:!w}))))}var wK=1/3;function $K(e,t){var n=s.useRef(!1),r=s.useRef(null),a=s.useRef(null),o=function(){return n.current},c=function(){mn.cancel(r.current),n.current=!1},u=s.useRef(),f=function(){var v=e.current;if(a.current=null,u.current=0,v){var g=v.querySelector('[data-value="'.concat(t,'"]')),b=v.querySelector("li"),S=function C(){c(),n.current=!0,u.current+=1;var y=v.scrollTop,w=b.offsetTop,$=g.offsetTop,_=$-w;if($===0&&g!==b||!du(v)){u.current<=5&&(r.current=mn(C));return}var O=y+(_-y)*wK,I=Math.abs(_-O);if(a.current!==null&&a.current<I){c();return}if(a.current=I,I<=1){v.scrollTop=_,c();return}v.scrollTop=O,r.current=mn(C)};g&&b&&S()}},d=pn(f);return[d,c,o]}var _K=300;function EK(e){return e.map(function(t){var n=t.value,r=t.label,a=t.disabled;return[n,r,a].join(",")}).join(";")}function _d(e){var t=e.units,n=e.value,r=e.optionalValue,a=e.type,o=e.onChange,c=e.onHover,u=e.onDblClick,f=e.changeOnScroll,d=pg(),h=d.prefixCls,v=d.cellRender,g=d.now,b=d.locale,S="".concat(h,"-time-panel"),C="".concat(h,"-time-panel-cell"),y=s.useRef(null),w=s.useRef(),$=function(){clearTimeout(w.current)},_=$K(y,n??r),O=ce(_,3),I=O[0],j=O[1],M=O[2];dn(function(){return I(),$(),function(){j(),$()}},[n,r,EK(t)]);var D=function(A){$();var F=A.target;!M()&&f&&(w.current=setTimeout(function(){var H=y.current,k=H.querySelector("li").offsetTop,L=Array.from(H.querySelectorAll("li")),T=L.map(function(B){return B.offsetTop-k}),z=T.map(function(B,U){return t[U].disabled?Number.MAX_SAFE_INTEGER:Math.abs(B-F.scrollTop)}),V=Math.min.apply(Math,ke(z)),q=z.findIndex(function(B){return B===V}),G=t[q];G&&!G.disabled&&o(G.value)},_K))},N="".concat(S,"-column");return s.createElement("ul",{className:N,ref:y,"data-type":a,onScroll:D},t.map(function(P){var A=P.label,F=P.value,H=P.disabled,k=s.createElement("div",{className:"".concat(C,"-inner")},A);return s.createElement("li",{key:F,className:se(C,X(X({},"".concat(C,"-selected"),n===F),"".concat(C,"-disabled"),H)),onClick:function(){H||o(F)},onDoubleClick:function(){!H&&u&&u()},onMouseEnter:function(){c(F)},onMouseLeave:function(){c(null)},"data-value":F},v?v(F,{prefixCls:h,originNode:k,today:g,type:"time",subType:a,locale:b}):k)}))}function El(e){return e<12}function OK(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,a=e.showMillisecond,o=e.use12Hours,c=e.changeOnScroll,u=pg(),f=u.prefixCls,d=u.values,h=u.generateConfig,v=u.locale,g=u.onSelect,b=u.onHover,S=b===void 0?function(){}:b,C=u.pickerValue,y=d?.[0]||null,w=s.useContext(Al),$=w.onCellDblClick,_=oC(h,e,y),O=ce(_,5),I=O[0],j=O[1],M=O[2],D=O[3],N=O[4],P=function(Re){var Ge=y&&h[Re](y),ft=C&&h[Re](C);return[Ge,ft]},A=P("getHour"),F=ce(A,2),H=F[0],k=F[1],L=P("getMinute"),T=ce(L,2),z=T[0],V=T[1],q=P("getSecond"),G=ce(q,2),B=G[0],U=G[1],K=P("getMillisecond"),Y=ce(K,2),Q=Y[0],Z=Y[1],ae=H===null?null:El(H)?"am":"pm",re=s.useMemo(function(){return o?El(H)?j.filter(function(ye){return El(ye.value)}):j.filter(function(ye){return!El(ye.value)}):j},[H,j,o]),ie=function(Re,Ge){var ft,$t=Re.filter(function(Qe){return!Qe.disabled});return Ge??($t==null||(ft=$t[0])===null||ft===void 0?void 0:ft.value)},ve=ie(j,H),ue=s.useMemo(function(){return M(ve)},[M,ve]),oe=ie(ue,z),he=s.useMemo(function(){return D(ve,oe)},[D,ve,oe]),de=ie(he,B),me=s.useMemo(function(){return N(ve,oe,de)},[N,ve,oe,de]),le=ie(me,Q),pe=s.useMemo(function(){if(!o)return[];var ye=h.getNow(),Re=h.setHour(ye,6),Ge=h.setHour(ye,18),ft=function(Qe,at){var mt=v.cellMeridiemFormat;return mt?na(Qe,{generateConfig:h,locale:v,format:mt}):at};return[{label:ft(Re,"AM"),value:"am",disabled:j.every(function($t){return $t.disabled||!El($t.value)})},{label:ft(Ge,"PM"),value:"pm",disabled:j.every(function($t){return $t.disabled||El($t.value)})}]},[j,o,h,v]),Ce=function(Re){var Ge=I(Re);g(Ge)},De=s.useMemo(function(){var ye=y||C||h.getNow(),Re=function(ft){return ft!=null};return Re(H)?(ye=h.setHour(ye,H),ye=h.setMinute(ye,z),ye=h.setSecond(ye,B),ye=h.setMillisecond(ye,Q)):Re(k)?(ye=h.setHour(ye,k),ye=h.setMinute(ye,V),ye=h.setSecond(ye,U),ye=h.setMillisecond(ye,Z)):Re(ve)&&(ye=h.setHour(ye,ve),ye=h.setMinute(ye,oe),ye=h.setSecond(ye,de),ye=h.setMillisecond(ye,le)),ye},[y,C,H,z,B,Q,ve,oe,de,le,k,V,U,Z,h]),je=function(Re,Ge){return Re===null?null:h[Ge](De,Re)},ge=function(Re){return je(Re,"setHour")},Ie=function(Re){return je(Re,"setMinute")},_e=function(Re){return je(Re,"setSecond")},we=function(Re){return je(Re,"setMillisecond")},Fe=function(Re){return Re===null?null:Re==="am"&&!El(H)?h.setHour(De,H-12):Re==="pm"&&El(H)?h.setHour(De,H+12):De},He=function(Re){Ce(ge(Re))},it=function(Re){Ce(Ie(Re))},Ze=function(Re){Ce(_e(Re))},Ye=function(Re){Ce(we(Re))},Je=function(Re){Ce(Fe(Re))},Pe=function(Re){S(ge(Re))},Oe=function(Re){S(Ie(Re))},Be=function(Re){S(_e(Re))},$e=function(Re){S(we(Re))},Te=function(Re){S(Fe(Re))},be={onDblClick:$,changeOnScroll:c};return s.createElement("div",{className:"".concat(f,"-content")},t&&s.createElement(_d,Me({units:re,value:H,optionalValue:k,type:"hour",onChange:He,onHover:Pe},be)),n&&s.createElement(_d,Me({units:ue,value:z,optionalValue:V,type:"minute",onChange:it,onHover:Oe},be)),r&&s.createElement(_d,Me({units:he,value:B,optionalValue:U,type:"second",onChange:Ze,onHover:Be},be)),a&&s.createElement(_d,Me({units:me,value:Q,optionalValue:Z,type:"millisecond",onChange:Ye,onHover:$e},be)),o&&s.createElement(_d,Me({units:pe,value:ae,type:"meridiem",onChange:Je,onHover:Te},be)))}function Yj(e){var t=e.prefixCls,n=e.value,r=e.locale,a=e.generateConfig,o=e.showTime,c=o||{},u=c.format,f="".concat(t,"-time-panel"),d=pu(e,"time"),h=ce(d,1),v=h[0];return s.createElement(zs.Provider,{value:v},s.createElement("div",{className:se(f)},s.createElement(bu,null,n?na(n,{locale:r,format:u,generateConfig:a}):" "),s.createElement(OK,o)))}function IK(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,a=e.onSelect,o=e.value,c=e.pickerValue,u=e.onHover,f="".concat(t,"-datetime-panel"),d=oC(n,r),h=ce(d,1),v=h[0],g=function(y){return o?xv(n,y,o):xv(n,y,c)},b=function(y){u?.(y&&g(y))},S=function(y){var w=g(y);a(v(w,w))};return s.createElement("div",{className:f},s.createElement(bg,Me({},e,{onSelect:S,onHover:b})),s.createElement(Yj,e))}function RK(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.disabledDate,c=e.onPickerValueChange,u="".concat(t,"-decade-panel"),f=pu(e,"decade"),d=ce(f,1),h=d[0],v=function(j){var M=Math.floor(r.getYear(j)/100)*100;return r.setYear(j,M)},g=function(j){var M=v(j);return r.addYear(M,99)},b=v(a),S=g(a),C=r.addYear(b,-10),y=function(j,M){return r.addYear(j,M*10)},w=function(j){var M=n.cellYearFormat,D=na(j,{locale:n,format:M,generateConfig:r}),N=na(r.addYear(j,9),{locale:n,format:M,generateConfig:r});return"".concat(D,"-").concat(N)},$=function(j){return X({},"".concat(t,"-cell-in-view"),bS(r,j,b)||bS(r,j,S)||gg(r,b,S,j))},_=o?function(I,j){var M=r.setDate(I,1),D=r.setMonth(M,0),N=r.setYear(D,Math.floor(r.getYear(D)/10)*10),P=r.addYear(N,10),A=r.addDate(P,-1);return o(N,j)&&o(A,j)}:null,O="".concat(na(b,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(na(S,{locale:n,format:n.yearFormat,generateConfig:r}));return s.createElement(zs.Provider,{value:h},s.createElement("div",{className:u},s.createElement(bu,{superOffset:function(j){return r.addYear(a,j*100)},onChange:c,getStart:v,getEnd:g},O),s.createElement(Af,Me({},e,{disabledDate:_,colNum:3,rowNum:4,baseDate:C,getCellDate:y,getCellText:w,getCellClassName:$}))))}function NK(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.disabledDate,c=e.onPickerValueChange,u=e.onModeChange,f="".concat(t,"-month-panel"),d=pu(e,"month"),h=ce(d,1),v=h[0],g=r.setMonth(a,0),b=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),S=function(O,I){return r.addMonth(O,I)},C=function(O){var I=r.getMonth(O);return n.monthFormat?na(O,{locale:n,format:n.monthFormat,generateConfig:r}):b[I]},y=function(){return X({},"".concat(t,"-cell-in-view"),!0)},w=o?function(_,O){var I=r.setDate(_,1),j=r.setMonth(I,r.getMonth(I)+1),M=r.addDate(j,-1);return o(I,O)&&o(M,O)}:null,$=s.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){u("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},na(a,{locale:n,format:n.yearFormat,generateConfig:r}));return s.createElement(zs.Provider,{value:v},s.createElement("div",{className:f},s.createElement(bu,{superOffset:function(O){return r.addYear(a,O)},onChange:c,getStart:function(O){return r.setMonth(O,0)},getEnd:function(O){return r.setMonth(O,11)}},$),s.createElement(Af,Me({},e,{disabledDate:w,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:g,getCellDate:S,getCellText:C,getCellClassName:y}))))}function MK(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.onPickerValueChange,c=e.onModeChange,u="".concat(t,"-quarter-panel"),f=pu(e,"quarter"),d=ce(f,1),h=d[0],v=r.setMonth(a,0),g=function(w,$){return r.addMonth(w,$*3)},b=function(w){return na(w,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},S=function(){return X({},"".concat(t,"-cell-in-view"),!0)},C=s.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){c("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},na(a,{locale:n,format:n.yearFormat,generateConfig:r}));return s.createElement(zs.Provider,{value:h},s.createElement("div",{className:u},s.createElement(bu,{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),s.createElement(Af,Me({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:v,getCellDate:g,getCellText:b,getCellClassName:S}))))}function jK(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,a=e.value,o=e.hoverValue,c=e.hoverRangeValue,u=r.locale,f="".concat(t,"-week-panel-row"),d=function(v){var g={};if(c){var b=ce(c,2),S=b[0],C=b[1],y=Ad(n,u,S,v),w=Ad(n,u,C,v);g["".concat(f,"-range-start")]=y,g["".concat(f,"-range-end")]=w,g["".concat(f,"-range-hover")]=!y&&!w&&gg(n,S,C,v)}return o&&(g["".concat(f,"-hover")]=o.some(function($){return Ad(n,u,v,$)})),se(f,X({},"".concat(f,"-selected"),!c&&Ad(n,u,a,v)),g)};return s.createElement(bg,Me({},e,{mode:"week",panelName:"week",rowClassName:d}))}function TK(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,o=e.disabledDate,c=e.onPickerValueChange,u=e.onModeChange,f="".concat(t,"-year-panel"),d=pu(e,"year"),h=ce(d,1),v=h[0],g=function(M){var D=Math.floor(r.getYear(M)/10)*10;return r.setYear(M,D)},b=function(M){var D=g(M);return r.addYear(D,9)},S=g(a),C=b(a),y=r.addYear(S,-1),w=function(M,D){return r.addYear(M,D)},$=function(M){return na(M,{locale:n,format:n.cellYearFormat,generateConfig:r})},_=function(M){return X({},"".concat(t,"-cell-in-view"),Ms(r,M,S)||Ms(r,M,C)||gg(r,S,C,M))},O=o?function(j,M){var D=r.setMonth(j,0),N=r.setDate(D,1),P=r.addYear(N,1),A=r.addDate(P,-1);return o(N,M)&&o(A,M)}:null,I=s.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){u("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},na(S,{locale:n,format:n.yearFormat,generateConfig:r}),"-",na(C,{locale:n,format:n.yearFormat,generateConfig:r}));return s.createElement(zs.Provider,{value:v},s.createElement("div",{className:f},s.createElement(bu,{superOffset:function(M){return r.addYear(a,M*10)},onChange:c,getStart:g,getEnd:b},I),s.createElement(Af,Me({},e,{disabledDate:O,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:y,getCellDate:w,getCellText:$,getCellClassName:_}))))}var DK={date:bg,datetime:IK,week:jK,month:NK,quarter:MK,year:TK,decade:RK,time:Yj};function PK(e,t){var n,r=e.locale,a=e.generateConfig,o=e.direction,c=e.prefixCls,u=e.tabIndex,f=u===void 0?0:u,d=e.multiple,h=e.defaultValue,v=e.value,g=e.onChange,b=e.onSelect,S=e.defaultPickerValue,C=e.pickerValue,y=e.onPickerValueChange,w=e.mode,$=e.onPanelChange,_=e.picker,O=_===void 0?"date":_,I=e.showTime,j=e.hoverValue,M=e.hoverRangeValue,D=e.cellRender,N=e.dateRender,P=e.monthCellRender,A=e.components,F=A===void 0?{}:A,H=e.hideHeader,k=((n=s.useContext(qi))===null||n===void 0?void 0:n.prefixCls)||c||"rc-picker",L=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:L.current}});var T=Mj(e),z=ce(T,4),V=z[0],q=z[1],G=z[2],B=z[3],U=Ij(r,q),K=O==="date"&&I?"datetime":O,Y=s.useMemo(function(){return jj(K,G,B,V,U)},[K,G,B,V,U]),Q=a.getNow(),Z=Wn(O,{value:w,postState:function(Te){return Te||"date"}}),ae=ce(Z,2),re=ae[0],ie=ae[1],ve=re==="date"&&Y?"datetime":re,ue=qj(a,r,K),oe=Wn(h,{value:v}),he=ce(oe,2),de=he[0],me=he[1],le=s.useMemo(function(){var $e=As(de).filter(function(Te){return Te});return d?$e:$e.slice(0,1)},[de,d]),pe=pn(function($e){me($e),g&&($e===null||le.length!==$e.length||le.some(function(Te,be){return!Ra(a,r,Te,$e[be],K)}))&&g?.(d?$e:$e[0])}),Ce=pn(function($e){if(b?.($e),re===O){var Te=d?ue(le,$e):[$e];pe(Te)}}),De=Wn(S||le[0]||Q,{value:C}),je=ce(De,2),ge=je[0],Ie=je[1];s.useEffect(function(){le[0]&&!C&&Ie(le[0])},[le[0]]);var _e=function(Te,be){$?.(Te||C,be||re)},we=function(Te){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ie(Te),y?.(Te),be&&_e(Te)},Fe=function(Te,be){ie(Te),be&&we(be),_e(be,Te)},He=function(Te){if(Ce(Te),we(Te),re!==O){var be=["decade","year"],ye=[].concat(be,["month"]),Re={quarter:[].concat(be,["quarter"]),week:[].concat(ke(ye),["week"]),date:[].concat(ke(ye),["date"])},Ge=Re[O]||ye,ft=Ge.indexOf(re),$t=Ge[ft+1];$t&&Fe($t,Te)}},it=s.useMemo(function(){var $e,Te;if(Array.isArray(M)){var be=ce(M,2);$e=be[0],Te=be[1]}else $e=M;return!$e&&!Te?null:($e=$e||Te,Te=Te||$e,a.isAfter($e,Te)?[Te,$e]:[$e,Te])},[M,a]),Ze=nC(D,N,P),Ye=F[ve]||DK[ve]||bg,Je=s.useContext(Al),Pe=s.useMemo(function(){return ee(ee({},Je),{},{hideHeader:H})},[Je,H]),Oe="".concat(k,"-panel"),Be=vg(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return s.createElement(Al.Provider,{value:Pe},s.createElement("div",{ref:L,tabIndex:f,className:se(Oe,X({},"".concat(Oe,"-rtl"),o==="rtl"))},s.createElement(Ye,Me({},Be,{showTime:Y,prefixCls:k,locale:U,generateConfig:a,onModeChange:Fe,pickerValue:ge,onPickerValueChange:function(Te){we(Te,!0)},value:le[0],onSelect:He,values:le,cellRender:Ze,hoverRangeValue:it,hoverValue:j}))))}var N0=s.memo(s.forwardRef(PK));function kK(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,o=e.needConfirm,c=e.onSubmit,u=e.range,f=e.hoverValue,d=s.useContext(qi),h=d.prefixCls,v=d.generateConfig,g=s.useCallback(function($,_){return zd(v,t,$,_)},[v,t]),b=s.useMemo(function(){return g(r,1)},[r,g]),S=function(_){a(g(_,-1))},C={onCellDblClick:function(){o&&c()}},y=t==="time",w=ee(ee({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:y});return u?w.hoverRangeValue=f:w.hoverValue=f,n?s.createElement("div",{className:"".concat(h,"-panels")},s.createElement(Al.Provider,{value:ee(ee({},C),{},{hideNext:!0})},s.createElement(N0,w)),s.createElement(Al.Provider,{value:ee(ee({},C),{},{hidePrev:!0})},s.createElement(N0,Me({},w,{pickerValue:b,onPickerValueChange:S})))):s.createElement(Al.Provider,{value:ee({},C)},s.createElement(N0,w))}function wO(e){return typeof e=="function"?e():e}function AK(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?s.createElement("div",{className:"".concat(t,"-presets")},s.createElement("ul",null,n.map(function(o,c){var u=o.label,f=o.value;return s.createElement("li",{key:c,onClick:function(){r(wO(f))},onMouseEnter:function(){a(wO(f))},onMouseLeave:function(){a(null)}},u)}))):null}function Gj(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,o=e.range,c=e.multiple,u=e.activeInfo,f=u===void 0?[0,0,0]:u,d=e.presets,h=e.onPresetHover,v=e.onPresetSubmit,g=e.onFocus,b=e.onBlur,S=e.onPanelMouseDown,C=e.direction,y=e.value,w=e.onSelect,$=e.isInvalid,_=e.defaultOpenValue,O=e.onOk,I=e.onSubmit,j=s.useContext(qi),M=j.prefixCls,D="".concat(M,"-panel"),N=C==="rtl",P=s.useRef(null),A=s.useRef(null),F=s.useState(0),H=ce(F,2),k=H[0],L=H[1],T=s.useState(0),z=ce(T,2),V=z[0],q=z[1],G=s.useState(0),B=ce(G,2),U=B[0],K=B[1],Y=function(He){He.width&&L(He.width)},Q=ce(f,3),Z=Q[0],ae=Q[1],re=Q[2],ie=s.useState(0),ve=ce(ie,2),ue=ve[0],oe=ve[1];s.useEffect(function(){oe(10)},[Z]),s.useEffect(function(){if(o&&A.current){var Fe,He=((Fe=P.current)===null||Fe===void 0?void 0:Fe.offsetWidth)||0,it=A.current.getBoundingClientRect();if(!it.height||it.right<0){oe(function(Pe){return Math.max(0,Pe-1)});return}var Ze=(N?ae-He:Z)-it.left;if(K(Ze),k&&k<re){var Ye=N?it.right-(ae-He+k):Z+He-it.left-k,Je=Math.max(0,Ye);q(Je)}else q(0)}},[ue,N,k,Z,ae,re,o]);function he(Fe){return Fe.filter(function(He){return He})}var de=s.useMemo(function(){return he(As(y))},[y]),me=r==="time"&&!de.length,le=s.useMemo(function(){return me?he([_]):de},[me,de,_]),pe=me?_:de,Ce=s.useMemo(function(){return le.length?le.some(function(Fe){return $(Fe)}):!0},[le,$]),De=function(){me&&w(_),O(),I()},je=s.createElement("div",{className:"".concat(M,"-panel-layout")},s.createElement(AK,{prefixCls:M,presets:d,onClick:v,onHover:h}),s.createElement("div",null,s.createElement(kK,Me({},e,{value:pe})),s.createElement(CK,Me({},e,{showNow:c?!1:a,invalid:Ce,onSubmit:De}))));t&&(je=t(je));var ge="".concat(D,"-container"),Ie="marginLeft",_e="marginRight",we=s.createElement("div",{onMouseDown:S,tabIndex:-1,className:se(ge,"".concat(M,"-").concat(n,"-panel-container")),style:X(X({},N?_e:Ie,V),N?Ie:_e,"auto"),onFocus:g,onBlur:b},je);return o&&(we=s.createElement("div",{onMouseDown:S,ref:A,className:se("".concat(M,"-range-wrapper"),"".concat(M,"-").concat(r,"-range-wrapper"))},s.createElement("div",{ref:P,className:"".concat(M,"-range-arrow"),style:{left:U}}),s.createElement(xa,{onResize:Y},we))),we}function Xj(e,t){var n=e.format,r=e.maskFormat,a=e.generateConfig,o=e.locale,c=e.preserveInvalidOnBlur,u=e.inputReadOnly,f=e.required,d=e["aria-required"],h=e.onSubmit,v=e.onFocus,g=e.onBlur,b=e.onInputChange,S=e.onInvalid,C=e.open,y=e.onOpenChange,w=e.onKeyDown,$=e.onChange,_=e.activeHelp,O=e.name,I=e.autoComplete,j=e.id,M=e.value,D=e.invalid,N=e.placeholder,P=e.disabled,A=e.activeIndex,F=e.allHelp,H=e.picker,k=function(U,K){var Y=a.locale.parse(o.locale,U,[K]);return Y&&a.isValidate(Y)?Y:null},L=n[0],T=s.useCallback(function(B){return na(B,{locale:o,format:L,generateConfig:a})},[o,a,L]),z=s.useMemo(function(){return M.map(T)},[M,T]),V=s.useMemo(function(){var B=H==="time"?8:10,U=typeof L=="function"?L(a.getNow()).length:L.length;return Math.max(B,U)+2},[L,H,a]),q=function(U){for(var K=0;K<n.length;K+=1){var Y=n[K];if(typeof Y=="string"){var Q=k(U,Y);if(Q)return Q}}return!1},G=function(U){function K(Z){return U!==void 0?Z[U]:Z}var Y=ma(e,{aria:!0,data:!0}),Q=ee(ee({},Y),{},{format:r,validateFormat:function(ae){return!!q(ae)},preserveInvalidOnBlur:c,readOnly:u,required:f,"aria-required":d,name:O,autoComplete:I,size:V,id:K(j),value:K(z)||"",invalid:K(D),placeholder:K(N),active:A===U,helped:F||_&&A===U,disabled:K(P),onFocus:function(ae){v(ae,U)},onBlur:function(ae){g(ae,U)},onSubmit:h,onChange:function(ae){b();var re=q(ae);if(re){S(!1,U),$(re,U);return}S(!!ae,U)},onHelp:function(){y(!0,{index:U})},onKeyDown:function(ae){var re=!1;if(w?.(ae,function(){re=!0}),!ae.defaultPrevented&&!re)switch(ae.key){case"Escape":y(!1,{index:U});break;case"Enter":C||y(!0);break}}},t?.({valueTexts:z}));return Object.keys(Q).forEach(function(Z){Q[Z]===void 0&&delete Q[Z]}),Q};return[G,T]}var zK=["onMouseEnter","onMouseLeave"];function Qj(e){return s.useMemo(function(){return vg(e,zK)},[e])}var LK=["icon","type"],HK=["onClear"];function yg(e){var t=e.icon,n=e.type,r=Kt(e,LK),a=s.useContext(qi),o=a.prefixCls;return t?s.createElement("span",Me({className:"".concat(o,"-").concat(n)},r),t):null}function yS(e){var t=e.onClear,n=Kt(e,HK);return s.createElement(yg,Me({},n,{type:"clear",role:"button",onMouseDown:function(a){a.preventDefault()},onClick:function(a){a.stopPropagation(),t()}}))}var M0=["YYYY","MM","DD","HH","mm","ss","SSS"],$O="顧",BK=(function(){function e(t){xr(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=M0.map(function(u){return"(".concat(u,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(u){return $O.repeat(u.length)});var a=new RegExp("(".concat(M0.join("|"),")")),o=(t.split(a)||[]).filter(function(u){return u}),c=0;this.cells=o.map(function(u){var f=M0.includes(u),d=c,h=c+u.length;return c=h,{text:u,mask:f,start:d,end:h}}),this.maskCells=this.cells.filter(function(u){return u.mask})}return Cr(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!==$O&&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 c=this.maskCells[o],u=c.start,f=c.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 FK(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 VK=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],SS=s.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,a=r===void 0?!0:r,o=e.suffixIcon,c=e.format,u=e.validateFormat,f=e.onChange;e.onInput;var d=e.helped,h=e.onHelp,v=e.onSubmit,g=e.onKeyDown,b=e.preserveInvalidOnBlur,S=b===void 0?!1:b,C=e.invalid,y=e.clearIcon,w=Kt(e,VK),$=e.value,_=e.onFocus,O=e.onBlur,I=e.onMouseUp,j=s.useContext(qi),M=j.prefixCls,D=j.input,N=D===void 0?"input":D,P="".concat(M,"-input"),A=s.useState(!1),F=ce(A,2),H=F[0],k=F[1],L=s.useState($),T=ce(L,2),z=T[0],V=T[1],q=s.useState(""),G=ce(q,2),B=G[0],U=G[1],K=s.useState(null),Y=ce(K,2),Q=Y[0],Z=Y[1],ae=s.useState(null),re=ce(ae,2),ie=re[0],ve=re[1],ue=z||"";s.useEffect(function(){V($)},[$]);var oe=s.useRef(),he=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:oe.current,inputElement:he.current,focus:function($e){he.current.focus($e)},blur:function(){he.current.blur()}}});var de=s.useMemo(function(){return new BK(c||"")},[c]),me=s.useMemo(function(){return d?[0,0]:de.getSelection(Q)},[de,Q,d]),le=ce(me,2),pe=le[0],Ce=le[1],De=function($e){$e&&$e!==c&&$e!==$&&h()},je=pn(function(Be){u(Be)&&f(Be),V(Be),De(Be)}),ge=function($e){if(!c){var Te=$e.target.value;De(Te),V(Te),f(Te)}},Ie=function($e){var Te=$e.clipboardData.getData("text");u(Te)&&je(Te)},_e=s.useRef(!1),we=function(){_e.current=!0},Fe=function($e){var Te=$e.target,be=Te.selectionStart,ye=de.getMaskCellIndex(be);Z(ye),ve({}),I?.($e),_e.current=!1},He=function($e){k(!0),Z(0),U(""),_($e)},it=function($e){O($e)},Ze=function($e){k(!1),it($e)};iC(n,function(){!n&&!S&&V($)});var Ye=function($e){$e.key==="Enter"&&u(ue)&&v(),g?.($e)},Je=function($e){Ye($e);var Te=$e.key,be=null,ye=null,Re=Ce-pe,Ge=c.slice(pe,Ce),ft=function(mt){Z(function(st){var pt=st+mt;return pt=Math.max(pt,0),pt=Math.min(pt,de.size()-1),pt})},$t=function(mt){var st=FK(Ge),pt=ce(st,3),Wt=pt[0],Yt=pt[1],ht=pt[2],It=ue.slice(pe,Ce),_t=Number(It);if(isNaN(_t))return String(ht||(mt>0?Wt:Yt));var tt=_t+mt,Ue=Yt-Wt+1;return String(Wt+(Ue+tt-Wt)%Ue)};switch(Te){case"Backspace":case"Delete":be="",ye=Ge;break;case"ArrowLeft":be="",ft(-1);break;case"ArrowRight":be="",ft(1);break;case"ArrowUp":be="",ye=$t(1);break;case"ArrowDown":be="",ye=$t(-1);break;default:isNaN(Number(Te))||(be=B+Te,ye=be);break}if(be!==null&&(U(be),be.length>=Re&&(ft(1),U(""))),ye!==null){var Qe=ue.slice(0,pe)+tC(ye,Re)+ue.slice(Ce);je(Qe.slice(0,c.length))}ve({})},Pe=s.useRef();dn(function(){if(!(!H||!c||_e.current)){if(!de.match(ue)){je(c);return}return he.current.setSelectionRange(pe,Ce),Pe.current=mn(function(){he.current.setSelectionRange(pe,Ce)}),function(){mn.cancel(Pe.current)}}},[de,c,H,ue,Q,pe,Ce,ie,je]);var Oe=c?{onFocus:He,onBlur:Ze,onKeyDown:Je,onMouseDown:we,onMouseUp:Fe,onPaste:Ie}:{};return s.createElement("div",{ref:oe,className:se(P,X(X({},"".concat(P,"-active"),n&&a),"".concat(P,"-placeholder"),d))},s.createElement(N,Me({ref:he,"aria-invalid":C,autoComplete:"off"},w,{onKeyDown:Ye,onBlur:it},Oe,{value:ue,onChange:ge})),s.createElement(yg,{type:"suffix",icon:o}),y)}),KK=["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 WK(e,t){var n=e.id,r=e.prefix,a=e.clearIcon,o=e.suffixIcon,c=e.separator,u=c===void 0?"~":c,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,v=e.className,g=e.style,b=e.onClick,S=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.onActiveInfo;e.placement;var O=e.onMouseDown;e.required,e["aria-required"];var I=e.autoFocus,j=e.tabIndex,M=Kt(e,KK),D=$==="rtl",N=s.useContext(qi),P=N.prefixCls,A=s.useMemo(function(){if(typeof n=="string")return[n];var ie=n||{};return[ie.start,ie.end]},[n]),F=s.useRef(),H=s.useRef(),k=s.useRef(),L=function(ve){var ue;return(ue=[H,k][ve])===null||ue===void 0?void 0:ue.current};s.useImperativeHandle(t,function(){return{nativeElement:F.current,focus:function(ve){if(jt(ve)==="object"){var ue,oe=ve||{},he=oe.index,de=he===void 0?0:he,me=Kt(oe,UK);(ue=L(de))===null||ue===void 0||ue.focus(me)}else{var le;(le=L(ve??0))===null||le===void 0||le.focus()}},blur:function(){var ve,ue;(ve=L(0))===null||ve===void 0||ve.blur(),(ue=L(1))===null||ue===void 0||ue.blur()}}});var T=Qj(M),z=s.useMemo(function(){return Array.isArray(h)?h:[h,h]},[h]),V=Xj(ee(ee({},e),{},{id:A,placeholder:z})),q=ce(V,1),G=q[0],B=s.useState({position:"absolute",width:0}),U=ce(B,2),K=U[0],Y=U[1],Q=pn(function(){var ie=L(f);if(ie){var ve=ie.nativeElement.getBoundingClientRect(),ue=F.current.getBoundingClientRect(),oe=ve.left-ue.left;Y(function(he){return ee(ee({},he),{},{width:ve.width,left:oe})}),_([ve.left,ve.right,ue.width])}});s.useEffect(function(){Q()},[f]);var Z=a&&(C[0]&&!y[0]||C[1]&&!y[1]),ae=I&&!y[0],re=I&&!ae&&!y[1];return s.createElement(xa,{onResize:Q},s.createElement("div",Me({},T,{className:se(P,"".concat(P,"-range"),X(X(X(X({},"".concat(P,"-focused"),d),"".concat(P,"-disabled"),y.every(function(ie){return ie})),"".concat(P,"-invalid"),w.some(function(ie){return ie})),"".concat(P,"-rtl"),D),v),style:g,ref:F,onClick:b,onMouseDown:function(ve){var ue=ve.target;ue!==H.current.inputElement&&ue!==k.current.inputElement&&ve.preventDefault(),O?.(ve)}}),r&&s.createElement("div",{className:"".concat(P,"-prefix")},r),s.createElement(SS,Me({ref:H},G(0),{autoFocus:ae,tabIndex:j,"date-range":"start"})),s.createElement("div",{className:"".concat(P,"-range-separator")},u),s.createElement(SS,Me({ref:k},G(1),{autoFocus:re,tabIndex:j,"date-range":"end"})),s.createElement("div",{className:"".concat(P,"-active-bar"),style:K}),s.createElement(yg,{type:"suffix",icon:o}),Z&&s.createElement(yS,{icon:a,onClear:S})))}var qK=s.forwardRef(WK);function _O(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function xh(e){return e===1?"end":"start"}function YK(e,t){var n=Pj(e,function(){var vn=e.disabled,dt=e.allowEmpty,Ot=_O(vn,!1),bn=_O(dt,!1);return{disabled:Ot,allowEmpty:bn}}),r=ce(n,6),a=r[0],o=r[1],c=r[2],u=r[3],f=r[4],d=r[5],h=a.prefixCls,v=a.styles,g=a.classNames,b=a.defaultValue,S=a.value,C=a.needConfirm,y=a.onKeyDown,w=a.disabled,$=a.allowEmpty,_=a.disabledDate,O=a.minDate,I=a.maxDate,j=a.defaultOpen,M=a.open,D=a.onOpenChange,N=a.locale,P=a.generateConfig,A=a.picker,F=a.showNow,H=a.showToday,k=a.showTime,L=a.mode,T=a.onPanelChange,z=a.onCalendarChange,V=a.onOk,q=a.defaultPickerValue,G=a.pickerValue,B=a.onPickerValueChange,U=a.inputReadOnly,K=a.suffixIcon,Y=a.onFocus,Q=a.onBlur,Z=a.presets,ae=a.ranges,re=a.components,ie=a.cellRender,ve=a.dateRender,ue=a.monthCellRender,oe=a.onClick,he=Aj(t),de=kj(M,j,w,D),me=ce(de,2),le=me[0],pe=me[1],Ce=function(dt,Ot){(w.some(function(bn){return!bn})||!dt)&&pe(dt,Ot)},De=Kj(P,N,u,!0,!1,b,S,z,V),je=ce(De,5),ge=je[0],Ie=je[1],_e=je[2],we=je[3],Fe=je[4],He=_e(),it=Lj(w,$,le),Ze=ce(it,9),Ye=Ze[0],Je=Ze[1],Pe=Ze[2],Oe=Ze[3],Be=Ze[4],$e=Ze[5],Te=Ze[6],be=Ze[7],ye=Ze[8],Re=function(dt,Ot){Je(!0),Y?.(dt,{range:xh(Ot??Oe)})},Ge=function(dt,Ot){Je(!1),Q?.(dt,{range:xh(Ot??Oe)})},ft=s.useMemo(function(){if(!k)return null;var vn=k.disabledTime,dt=vn?function(Ot){var bn=xh(Oe),Cn=$j(He,Te,Oe);return vn(Ot,bn,{from:Cn})}:void 0;return ee(ee({},k),{},{disabledTime:dt})},[k,Oe,He,Te]),$t=Wn([A,A],{value:L}),Qe=ce($t,2),at=Qe[0],mt=Qe[1],st=at[Oe]||A,pt=st==="date"&&ft?"datetime":st,Wt=pt===A&&pt!=="time",Yt=Wj(A,st,F,H,!0),ht=Uj(a,ge,Ie,_e,we,w,u,Ye,le,d),It=ce(ht,2),_t=It[0],tt=It[1],Ue=bK(He,w,Te,P,N,_),qe=Ej(He,d,$),ct=ce(qe,2),Tt=ct[0],Dt=ct[1],Jt=Hj(P,N,He,at,le,Oe,o,Wt,q,G,ft?.defaultOpenValue,B,O,I),ut=ce(Jt,2),ot=ut[0],Lt=ut[1],tn=pn(function(vn,dt,Ot){var bn=Ud(at,Oe,dt);if((bn[0]!==at[0]||bn[1]!==at[1])&&mt(bn),T&&Ot!==!1){var Cn=ke(He);vn&&(Cn[Oe]=vn),T(Cn,bn)}}),hn=function(dt,Ot){return Ud(He,Ot,dt)},cn=function(dt,Ot){var bn=He;dt&&(bn=hn(dt,Oe)),be(Oe);var Cn=$e(bn);we(bn),_t(Oe,Cn===null),Cn===null?Ce(!1,{force:!0}):Ot||he.current.focus({index:Cn})},En=function(dt){var Ot,bn=dt.target.getRootNode();if(!he.current.nativeElement.contains((Ot=bn.activeElement)!==null&&Ot!==void 0?Ot:document.activeElement)){var Cn=w.findIndex(function(nr){return!nr});Cn>=0&&he.current.focus({index:Cn})}Ce(!0),oe?.(dt)},rn=function(){tt(null),Ce(!1,{force:!0})},xn=s.useState(null),lt=ce(xn,2),St=lt[0],Bt=lt[1],kt=s.useState(null),vt=ce(kt,2),Et=vt[0],Qt=vt[1],on=s.useMemo(function(){return Et||He},[He,Et]);s.useEffect(function(){le||Qt(null)},[le]);var bt=s.useState([0,0,0]),Ht=ce(bt,2),nn=Ht[0],Xn=Ht[1],br=zj(Z,ae),wr=function(dt){Qt(dt),Bt("preset")},$r=function(dt){var Ot=tt(dt);Ot&&Ce(!1,{force:!0})},Yn=function(dt){cn(dt)},Gn=function(dt){Qt(dt?hn(dt,Oe):null),Bt("cell")},Dr=function(dt){Ce(!0),Re(dt)},Hr=function(){Pe("panel")},Nr=function(dt){var Ot=Ud(He,Oe,dt);we(Ot),!C&&!c&&o===pt&&cn(dt)},In=function(){Ce(!1)},At=nC(ie,ve,ue,xh(Oe)),zt=He[Oe]||null,un=pn(function(vn){return d(vn,{activeIndex:Oe})}),Nt=s.useMemo(function(){var vn=ma(a,!1),dt=or(a,[].concat(ke(Object.keys(vn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return dt},[a]),Pt=s.createElement(Gj,Me({},Nt,{showNow:Yt,showTime:ft,range:!0,multiplePanel:Wt,activeInfo:nn,disabledDate:Ue,onFocus:Dr,onBlur:Ge,onPanelMouseDown:Hr,picker:A,mode:st,internalMode:pt,onPanelChange:tn,format:f,value:zt,isInvalid:un,onChange:null,onSelect:Nr,pickerValue:ot,defaultOpenValue:As(k?.defaultOpenValue)[Oe],onPickerValueChange:Lt,hoverValue:on,onHover:Gn,needConfirm:C,onSubmit:cn,onOk:Fe,presets:br,onPresetHover:wr,onPresetSubmit:$r,onNow:Yn,cellRender:At})),yn=function(dt,Ot){var bn=hn(dt,Ot);we(bn)},Ln=function(){Pe("input")},lr=function(dt,Ot){var bn=Te.length,Cn=Te[bn-1];if(bn&&Cn!==Ot&&C&&!$[Cn]&&!ye(Cn)&&He[Cn]){he.current.focus({index:Cn});return}Pe("input"),Ce(!0,{inherit:!0}),Oe!==Ot&&le&&!C&&c&&cn(null,!0),Be(Ot),Re(dt,Ot)},Pr=function(dt,Ot){if(Ce(!1),!C&&Pe()==="input"){var bn=$e(He);_t(Oe,bn===null)}Ge(dt,Ot)},sr=function(dt,Ot){dt.key==="Tab"&&cn(null,!0),y?.(dt,Ot)},kr=s.useMemo(function(){return{prefixCls:h,locale:N,generateConfig:P,button:re.button,input:re.input}},[h,N,P,re.button,re.input]);return dn(function(){le&&Oe!==void 0&&tn(null,A,!1)},[le,Oe,A]),dn(function(){var vn=Pe();!le&&vn==="input"&&(Ce(!1),cn(null,!0)),!le&&c&&!C&&vn==="panel"&&(Ce(!0),cn())},[le]),s.createElement(qi.Provider,{value:kr},s.createElement(Cj,Me({},_j(a),{popupElement:Pt,popupStyle:v.popup,popupClassName:g.popup,visible:le,onClose:In,range:!0}),s.createElement(qK,Me({},a,{ref:he,suffixIcon:K,activeIndex:Ye||le?Oe:null,activeHelp:!!Et,allHelp:!!Et&&St==="preset",focused:Ye,onFocus:lr,onBlur:Pr,onKeyDown:sr,onSubmit:cn,value:on,maskFormat:f,onChange:yn,onInputChange:Ln,format:u,inputReadOnly:U,disabled:w,open:le,onOpenChange:Ce,onClick:En,onClear:rn,invalid:Tt,onInvalid:Dt,onActiveInfo:Xn}))))}var GK=s.forwardRef(YK);function XK(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,o=a===void 0?"×":a,c=e.formatDate,u=e.disabled,f=e.maxTagCount,d=e.placeholder,h="".concat(t,"-selector"),v="".concat(t,"-selection"),g="".concat(v,"-overflow");function b(y,w){return s.createElement("span",{className:se("".concat(v,"-item")),title:typeof y=="string"?y:null},s.createElement("span",{className:"".concat(v,"-item-content")},y),!u&&w&&s.createElement("span",{onMouseDown:function(_){_.preventDefault()},onClick:w,className:"".concat(v,"-item-remove")},o))}function S(y){var w=c(y),$=function(O){O&&O.stopPropagation(),r(y)};return b(w,$)}function C(y){var w="+ ".concat(y.length," ...");return b(w)}return s.createElement("div",{className:h},s.createElement(zi,{prefixCls:g,data:n,renderItem:S,renderRest:C,itemKey:function(w){return c(w)},maxCount:f}),!n.length&&s.createElement("span",{className:"".concat(t,"-selection-placeholder")},d))}var QK=["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 ZK(e,t){e.id;var n=e.open,r=e.prefix,a=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var u=e.locale,f=e.generateConfig,d=e.placeholder,h=e.className,v=e.style,g=e.onClick,b=e.onClear,S=e.internalPicker,C=e.value,y=e.onChange,w=e.onSubmit;e.onInputChange;var $=e.multiple,_=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var O=e.disabled,I=e.invalid;e.inputReadOnly;var j=e.direction;e.onOpenChange;var M=e.onMouseDown;e.required,e["aria-required"];var D=e.autoFocus,N=e.tabIndex,P=e.removeIcon,A=Kt(e,QK),F=j==="rtl",H=s.useContext(qi),k=H.prefixCls,L=s.useRef(),T=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:L.current,focus:function(ae){var re;(re=T.current)===null||re===void 0||re.focus(ae)},blur:function(){var ae;(ae=T.current)===null||ae===void 0||ae.blur()}}});var z=Qj(A),V=function(ae){y([ae])},q=function(ae){var re=C.filter(function(ie){return ie&&!Ra(f,u,ie,ae,S)});y(re),n||w()},G=Xj(ee(ee({},e),{},{onChange:V}),function(Z){var ae=Z.valueTexts;return{value:ae[0]||"",active:c}}),B=ce(G,2),U=B[0],K=B[1],Y=!!(a&&C.length&&!O),Q=$?s.createElement(s.Fragment,null,s.createElement(XK,{prefixCls:k,value:C,onRemove:q,formatDate:K,maxTagCount:_,disabled:O,removeIcon:P,placeholder:d}),s.createElement("input",{className:"".concat(k,"-multiple-input"),value:C.map(K).join(","),ref:T,readOnly:!0,autoFocus:D,tabIndex:N}),s.createElement(yg,{type:"suffix",icon:o}),Y&&s.createElement(yS,{icon:a,onClear:b})):s.createElement(SS,Me({ref:T},U(),{autoFocus:D,tabIndex:N,suffixIcon:o,clearIcon:Y&&s.createElement(yS,{icon:a,onClear:b}),showActiveCls:!1}));return s.createElement("div",Me({},z,{className:se(k,X(X(X(X(X({},"".concat(k,"-multiple"),$),"".concat(k,"-focused"),c),"".concat(k,"-disabled"),O),"".concat(k,"-invalid"),I),"".concat(k,"-rtl"),F),h),style:v,ref:L,onClick:g,onMouseDown:function(ae){var re,ie=ae.target;ie!==((re=T.current)===null||re===void 0?void 0:re.inputElement)&&ae.preventDefault(),M?.(ae)}}),r&&s.createElement("div",{className:"".concat(k,"-prefix")},r),Q)}var JK=s.forwardRef(ZK);function eU(e,t){var n=Pj(e),r=ce(n,6),a=r[0],o=r[1],c=r[2],u=r[3],f=r[4],d=r[5],h=a,v=h.prefixCls,g=h.styles,b=h.classNames,S=h.order,C=h.defaultValue,y=h.value,w=h.needConfirm,$=h.onChange,_=h.onKeyDown,O=h.disabled,I=h.disabledDate,j=h.minDate,M=h.maxDate,D=h.defaultOpen,N=h.open,P=h.onOpenChange,A=h.locale,F=h.generateConfig,H=h.picker,k=h.showNow,L=h.showToday,T=h.showTime,z=h.mode,V=h.onPanelChange,q=h.onCalendarChange,G=h.onOk,B=h.multiple,U=h.defaultPickerValue,K=h.pickerValue,Y=h.onPickerValueChange,Q=h.inputReadOnly,Z=h.suffixIcon,ae=h.removeIcon,re=h.onFocus,ie=h.onBlur,ve=h.presets,ue=h.components,oe=h.cellRender,he=h.dateRender,de=h.monthCellRender,me=h.onClick,le=Aj(t);function pe(Nt){return Nt===null?null:B?Nt:Nt[0]}var Ce=qj(F,A,o),De=kj(N,D,[O],P),je=ce(De,2),ge=je[0],Ie=je[1],_e=function(Pt,yn,Ln){if(q){var lr=ee({},Ln);delete lr.range,q(pe(Pt),pe(yn),lr)}},we=function(Pt){G?.(pe(Pt))},Fe=Kj(F,A,u,!1,S,C,y,_e,we),He=ce(Fe,5),it=He[0],Ze=He[1],Ye=He[2],Je=He[3],Pe=He[4],Oe=Ye(),Be=Lj([O]),$e=ce(Be,4),Te=$e[0],be=$e[1],ye=$e[2],Re=$e[3],Ge=function(Pt){be(!0),re?.(Pt,{})},ft=function(Pt){be(!1),ie?.(Pt,{})},$t=Wn(H,{value:z}),Qe=ce($t,2),at=Qe[0],mt=Qe[1],st=at==="date"&&T?"datetime":at,pt=Wj(H,at,k,L),Wt=$&&function(Nt,Pt){$(pe(Nt),pe(Pt))},Yt=Uj(ee(ee({},a),{},{onChange:Wt}),it,Ze,Ye,Je,[],u,Te,ge,d),ht=ce(Yt,2),It=ht[1],_t=Ej(Oe,d),tt=ce(_t,2),Ue=tt[0],qe=tt[1],ct=s.useMemo(function(){return Ue.some(function(Nt){return Nt})},[Ue]),Tt=function(Pt,yn){if(Y){var Ln=ee(ee({},yn),{},{mode:yn.mode[0]});delete Ln.range,Y(Pt[0],Ln)}},Dt=Hj(F,A,Oe,[at],ge,Re,o,!1,U,K,As(T?.defaultOpenValue),Tt,j,M),Jt=ce(Dt,2),ut=Jt[0],ot=Jt[1],Lt=pn(function(Nt,Pt,yn){if(mt(Pt),V&&yn!==!1){var Ln=Nt||Oe[Oe.length-1];V(Ln,Pt)}}),tn=function(){It(Ye()),Ie(!1,{force:!0})},hn=function(Pt){!O&&!le.current.nativeElement.contains(document.activeElement)&&le.current.focus(),Ie(!0),me?.(Pt)},cn=function(){It(null),Ie(!1,{force:!0})},En=s.useState(null),rn=ce(En,2),xn=rn[0],lt=rn[1],St=s.useState(null),Bt=ce(St,2),kt=Bt[0],vt=Bt[1],Et=s.useMemo(function(){var Nt=[kt].concat(ke(Oe)).filter(function(Pt){return Pt});return B?Nt:Nt.slice(0,1)},[Oe,kt,B]),Qt=s.useMemo(function(){return!B&&kt?[kt]:Oe.filter(function(Nt){return Nt})},[Oe,kt,B]);s.useEffect(function(){ge||vt(null)},[ge]);var on=zj(ve),bt=function(Pt){vt(Pt),lt("preset")},Ht=function(Pt){var yn=B?Ce(Ye(),Pt):[Pt],Ln=It(yn);Ln&&!B&&Ie(!1,{force:!0})},nn=function(Pt){Ht(Pt)},Xn=function(Pt){vt(Pt),lt("cell")},br=function(Pt){Ie(!0),Ge(Pt)},wr=function(Pt){if(ye("panel"),!(B&&st!==H)){var yn=B?Ce(Ye(),Pt):[Pt];Je(yn),!w&&!c&&o===st&&tn()}},$r=function(){Ie(!1)},Yn=nC(oe,he,de),Gn=s.useMemo(function(){var Nt=ma(a,!1),Pt=or(a,[].concat(ke(Object.keys(Nt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return ee(ee({},Pt),{},{multiple:a.multiple})},[a]),Dr=s.createElement(Gj,Me({},Gn,{showNow:pt,showTime:T,disabledDate:I,onFocus:br,onBlur:ft,picker:H,mode:at,internalMode:st,onPanelChange:Lt,format:f,value:Oe,isInvalid:d,onChange:null,onSelect:wr,pickerValue:ut,defaultOpenValue:T?.defaultOpenValue,onPickerValueChange:ot,hoverValue:Et,onHover:Xn,needConfirm:w,onSubmit:tn,onOk:Pe,presets:on,onPresetHover:bt,onPresetSubmit:Ht,onNow:nn,cellRender:Yn})),Hr=function(Pt){Je(Pt)},Nr=function(){ye("input")},In=function(Pt){ye("input"),Ie(!0,{inherit:!0}),Ge(Pt)},At=function(Pt){Ie(!1),ft(Pt)},zt=function(Pt,yn){Pt.key==="Tab"&&tn(),_?.(Pt,yn)},un=s.useMemo(function(){return{prefixCls:v,locale:A,generateConfig:F,button:ue.button,input:ue.input}},[v,A,F,ue.button,ue.input]);return dn(function(){ge&&Re!==void 0&&Lt(null,H,!1)},[ge,Re,H]),dn(function(){var Nt=ye();!ge&&Nt==="input"&&(Ie(!1),tn()),!ge&&c&&!w&&Nt==="panel"&&tn()},[ge]),s.createElement(qi.Provider,{value:un},s.createElement(Cj,Me({},_j(a),{popupElement:Dr,popupStyle:g.popup,popupClassName:b.popup,visible:ge,onClose:$r}),s.createElement(JK,Me({},a,{ref:le,suffixIcon:Z,removeIcon:ae,activeHelp:!!kt,allHelp:!!kt&&xn==="preset",focused:Te,onFocus:In,onBlur:At,onKeyDown:zt,onSubmit:tn,value:Qt,maskFormat:f,onChange:Hr,onInputChange:Nr,internalPicker:o,format:u,inputReadOnly:Q,disabled:O,open:ge,onOpenChange:Ie,onClick:hn,onClear:cn,invalid:ct,onInvalid:function(Pt){qe(Pt,0)}}))))}var tU=s.forwardRef(eU);const Zj=s.createContext(null),nU=Zj.Provider,Jj=s.createContext(null),rU=Jj.Provider;var aU=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],eT=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,o=e.style,c=e.checked,u=e.disabled,f=e.defaultChecked,d=f===void 0?!1:f,h=e.type,v=h===void 0?"checkbox":h,g=e.title,b=e.onChange,S=Kt(e,aU),C=s.useRef(null),y=s.useRef(null),w=Wn(d,{value:c}),$=ce(w,2),_=$[0],O=$[1];s.useImperativeHandle(t,function(){return{focus:function(D){var N;(N=C.current)===null||N===void 0||N.focus(D)},blur:function(){var D;(D=C.current)===null||D===void 0||D.blur()},input:C.current,nativeElement:y.current}});var I=se(r,a,X(X({},"".concat(r,"-checked"),_),"".concat(r,"-disabled"),u)),j=function(D){u||("checked"in e||O(D.target.checked),b?.({target:ee(ee({},e),{},{type:v,checked:D.target.checked}),stopPropagation:function(){D.stopPropagation()},preventDefault:function(){D.preventDefault()},nativeEvent:D.nativeEvent}))};return s.createElement("span",{className:I,title:g,style:o,ref:y},s.createElement("input",Me({},S,{className:"".concat(r,"-input"),ref:C,onChange:j,disabled:u,checked:!!_,type:v})),s.createElement("span",{className:"".concat(r,"-inner")}))});function tT(e){const t=xe.useRef(null),n=()=>{mn.cancel(t.current),t.current=null};return[()=>{n(),t.current=mn(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e?.(o)}]}const iU=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},An(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"}})}},oU=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:o,motionDurationMid:c,motionEaseInOutCirc:u,colorBgContainer:f,colorBorder:d,lineWidth:h,colorBgContainerDisabled:v,colorTextDisabled:g,paddingXS:b,dotColorDisabled:S,lineType:C,radioColor:y,radioBgColor:w,calc:$}=e,_=`${t}-inner`,I=$(a).sub($(4).mul(2)),j=$(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},An(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:`${te(h)} ${C} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},An(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
        &:hover ${_}`]:{borderColor:r},[`${t}-input:focus-visible + ${_}`]:so(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:j,height:j,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:j,transform:"scale(0)",opacity:0,transition:`all ${o} ${u}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:j,height:j,backgroundColor:f,borderColor:d,borderStyle:"solid",borderWidth:h,borderRadius:"50%",transition:`all ${c}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[_]:{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",[_]:{backgroundColor:v,borderColor:d,cursor:"not-allowed","&::after":{backgroundColor:S}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${t}-checked`]:{[_]:{"&::after":{transform:`scale(${$(I).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:b,paddingInlineEnd:b}})}},lU=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:o,colorBorder:c,motionDurationMid:u,buttonPaddingInline:f,fontSize:d,buttonBg:h,fontSizeLG:v,controlHeightLG:g,controlHeightSM:b,paddingXS:S,borderRadius:C,borderRadiusSM:y,borderRadiusLG:w,buttonCheckedBg:$,buttonSolidCheckedColor:_,colorTextDisabled:O,colorBgContainerDisabled:I,buttonCheckedBgDisabled:j,buttonCheckedColorDisabled:M,colorPrimary:D,colorPrimaryHover:N,colorPrimaryActive:P,buttonSolidCheckedBg:A,buttonSolidCheckedHoverBg:F,buttonSolidCheckedActiveBg:H,calc:k}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:f,paddingBlock:0,color:t,fontSize:d,lineHeight:te(k(n).sub(k(a).mul(2)).equal()),background:h,border:`${te(a)} ${o} ${c}`,borderBlockStartWidth:k(a).add(.02).equal(),borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${u}`,`background ${u}`,`box-shadow ${u}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:k(a).mul(-1).equal()},"&:first-child":{borderInlineStart:`${te(a)} ${o} ${c}`,borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C},"&:first-child:last-child":{borderRadius:C},[`${r}-group-large &`]:{height:g,fontSize:v,lineHeight:te(k(g).sub(k(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},[`${r}-group-small &`]:{height:b,paddingInline:k(S).sub(a).equal(),paddingBlock:0,lineHeight:te(k(b).sub(k(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:D},"&:has(:focus-visible)":so(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:D,background:$,borderColor:D,"&::before":{backgroundColor:D},"&:first-child":{borderColor:D},"&:hover":{color:N,borderColor:N,"&::before":{backgroundColor:N}},"&:active":{color:P,borderColor:P,"&::before":{backgroundColor:P}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:_,background:A,borderColor:A,"&:hover":{color:_,background:F,borderColor:F},"&:active":{color:_,background:H,borderColor:H}},"&-disabled":{color:O,backgroundColor:I,borderColor:c,cursor:"not-allowed","&:first-child, &:hover":{color:O,backgroundColor:I,borderColor:c}},[`&-disabled${r}-button-wrapper-checked`]:{color:M,backgroundColor:j,borderColor:c,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},sU=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:o,colorText:c,colorBgContainer:u,colorTextDisabled:f,controlItemBgActiveDisabled:d,colorTextLightSolid:h,colorPrimary:v,colorPrimaryHover:g,colorPrimaryActive:b,colorWhite:S}=e,C=4,y=o,w=t?y-C*2:y-(C+a)*2;return{radioSize:y,dotSize:w,dotColorDisabled:f,buttonSolidCheckedColor:h,buttonSolidCheckedBg:v,buttonSolidCheckedHoverBg:g,buttonSolidCheckedActiveBg:b,buttonBg:u,buttonCheckedBg:u,buttonColor:c,buttonCheckedBgDisabled:d,buttonCheckedColorDisabled:f,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?v:S,radioBgColor:t?u:v}},nT=Kn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${te(n)} ${t}`,o=Sn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[iU(o),oU(o),lU(o)]},sU,{unitless:{radioSize:!0,dotSize:!0}});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};const uU=(e,t)=>{var n,r;const a=s.useContext(Zj),o=s.useContext(Jj),{getPrefixCls:c,direction:u,radio:f}=s.useContext(Ut),d=s.useRef(null),h=_a(t,d),{isFormItemInput:v}=s.useContext(ia),g=T=>{var z,V;(z=e.onChange)===null||z===void 0||z.call(e,T),(V=a?.onChange)===null||V===void 0||V.call(a,T)},{prefixCls:b,className:S,rootClassName:C,children:y,style:w,title:$}=e,_=cU(e,["prefixCls","className","rootClassName","children","style","title"]),O=c("radio",b),I=(a?.optionType||o)==="button",j=I?`${O}-button`:O,M=oa(O),[D,N,P]=nT(O,M),A=Object.assign({},_),F=s.useContext(ja);a&&(A.name=a.name,A.onChange=g,A.checked=e.value===a.value,A.disabled=(n=A.disabled)!==null&&n!==void 0?n:a.disabled),A.disabled=(r=A.disabled)!==null&&r!==void 0?r:F;const H=se(`${j}-wrapper`,{[`${j}-wrapper-checked`]:A.checked,[`${j}-wrapper-disabled`]:A.disabled,[`${j}-wrapper-rtl`]:u==="rtl",[`${j}-wrapper-in-form-item`]:v,[`${j}-wrapper-block`]:!!a?.block},f?.className,S,C,N,P,M),[k,L]=tT(A.onClick);return D(s.createElement(Mf,{component:"Radio",disabled:A.disabled},s.createElement("label",{className:H,style:Object.assign(Object.assign({},f?.style),w),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:$,onClick:k},s.createElement(eT,Object.assign({},A,{className:se(A.className,{[Kv]:!I}),type:"radio",prefixCls:j,ref:h,onClick:L})),y!==void 0?s.createElement("span",{className:`${j}-label`},y):null)))},Cv=s.forwardRef(uU),dU=["parentNode"],fU="form_item";function Wd(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function rT(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:dU.includes(n)?`${fU}_${n}`:n}function aT(e,t,n,r,a,o){let c=r;return o!==void 0?c=o:n.validating?c="validating":e.length?c="error":t.length?c="warning":(n.touched||a&&n.validated)&&(c="success"),c}var mU=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 xS(e){return Wd(e).join("_")}function EO(e,t){const n=t.getFieldInstance(e),r=Of(n);if(r)return r;const a=rT(Wd(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function iT(e){const[t]=Dx(),n=s.useRef({}),r=s.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>o=>{const c=xS(a);o?n.current[c]=o:delete n.current[c]}},scrollToField:(a,o={})=>{const{focus:c}=o,u=mU(o,["focus"]),f=EO(a,r);f&&(T5(f,Object.assign({scrollMode:"if-needed",block:"nearest"},u)),c&&r.focusField(a))},focusField:a=>{var o,c;const u=r.getFieldInstance(a);typeof u?.focus=="function"?u.focus():(c=(o=EO(a,r))===null||o===void 0?void 0:o.focus)===null||c===void 0||c.call(o)},getFieldInstance:a=>{const o=xS(a);return n.current[o]}}),[e,t]);return[r]}const hU=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=s.useContext(Ut),{name:a}=s.useContext(ia),o=Mx(xS(a)),{prefixCls:c,className:u,rootClassName:f,options:d,buttonStyle:h="outline",disabled:v,children:g,size:b,style:S,id:C,optionType:y,name:w=o,defaultValue:$,value:_,block:O=!1,onChange:I,onMouseEnter:j,onMouseLeave:M,onFocus:D,onBlur:N}=e,[P,A]=Wn($,{value:_}),F=s.useCallback(K=>{const Y=P,Q=K.target.value;"value"in e||A(Q),Q!==Y&&I?.(K)},[P,A,I]),H=n("radio",c),k=`${H}-group`,L=oa(H),[T,z,V]=nT(H,L);let q=g;d&&d.length>0&&(q=d.map(K=>typeof K=="string"||typeof K=="number"?s.createElement(Cv,{key:K.toString(),prefixCls:H,disabled:v,value:K,checked:P===K},K):s.createElement(Cv,{key:`radio-group-value-options-${K.value}`,prefixCls:H,disabled:K.disabled||v,value:K.value,checked:P===K.value,title:K.title,style:K.style,className:K.className,id:K.id,required:K.required},K.label)));const G=la(b),B=se(k,`${k}-${h}`,{[`${k}-${G}`]:G,[`${k}-rtl`]:r==="rtl",[`${k}-block`]:O},u,f,z,V,L),U=s.useMemo(()=>({onChange:F,value:P,disabled:v,name:w,optionType:y,block:O}),[F,P,v,w,y,O]);return T(s.createElement("div",Object.assign({},ma(e,{aria:!0,data:!0}),{className:B,style:S,onMouseEnter:j,onMouseLeave:M,onFocus:D,onBlur:N,id:C,ref:t}),s.createElement(nU,{value:U},q)))}),vU=s.memo(hU);var gU=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 pU=(e,t)=>{const{getPrefixCls:n}=s.useContext(Ut),{prefixCls:r}=e,a=gU(e,["prefixCls"]),o=n("radio",r);return s.createElement(rU,{value:"button"},s.createElement(Cv,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},bU=s.forwardRef(pU),Sa=Cv;Sa.Button=bU;Sa.Group=vU;Sa.__ANT_RADIO=!0;function Ls(e){return Sn(e,{inputAffixPadding:e.paddingXXS})}const Hs=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:o,controlHeightLG:c,fontSizeLG:u,lineHeightLG:f,paddingSM:d,controlPaddingHorizontalSM:h,controlPaddingHorizontal:v,colorFillAlter:g,colorPrimaryHover:b,colorPrimary:S,controlOutlineWidth:C,controlOutline:y,colorErrorOutline:w,colorWarningOutline:$,colorBgContainer:_,inputFontSize:O,inputFontSizeLG:I,inputFontSizeSM:j}=e,M=O||n,D=j||M,N=I||u,P=Math.round((t-M*r)/2*10)/10-a,A=Math.round((o-D*r)/2*10)/10-a,F=Math.ceil((c-N*f)/2*10)/10-a;return{paddingBlock:Math.max(P,0),paddingBlockSM:Math.max(A,0),paddingBlockLG:Math.max(F,0),paddingInline:d-a,paddingInlineSM:h-a,paddingInlineLG:v-a,addonBg:g,activeBorderColor:S,hoverBorderColor:b,activeShadow:`0 0 0 ${C}px ${y}`,errorActiveShadow:`0 0 0 ${C}px ${w}`,warningActiveShadow:`0 0 0 ${C}px ${$}`,hoverBg:_,activeBg:_,inputFontSize:M,inputFontSizeLG:N,inputFontSizeSM:D}},yU=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Sg=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({},yU(Sn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),lC=(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}}),OO=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},lC(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),sC=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lC(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Sg(e))}),OO(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),OO(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),IO=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),oT=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},IO(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),IO(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Sg(e))}})}),cC=(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)}},lT=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=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({},lT(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),uC=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lT(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Sg(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)}),NO=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),sT=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},NO(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),NO(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),cT=(e,t)=>({background:e.colorBgContainer,borderWidth:`${te(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),MO=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},cT(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`}}),dC=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cT(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"}}),MO(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),MO(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),fC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),uT=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${te(t)} ${te(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},mC=e=>({padding:`${te(e.paddingBlockSM)} ${te(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),zf=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${te(e.paddingBlock)} ${te(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},fC(e.colorTextPlaceholder)),{"&-lg":Object.assign({},uT(e)),"&-sm":Object.assign({},mC(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),dT=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({},uT(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},mC(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 ${te(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${te(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${te(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:`${te(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${te(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"},Uo()),{[`${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}}}})}},SU=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,c=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({},An(e)),zf(e)),sC(e)),uC(e)),cC(e)),dC(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:c,paddingBottom:c}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},xU=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 ${te(e.inputAffixPadding)}`}}}},CU=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:o,colorIconHover:c,iconCls:u}=e,f=`${t}-affix-wrapper`,d=`${t}-affix-wrapper-disabled`;return{[f]:Object.assign(Object.assign(Object.assign(Object.assign({},zf(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}}}),xU(e)),{[`${u}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:c}}}),[`${t}-underlined`]:{borderRadius:0},[d]:{[`${u}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},wU=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},An(e)),dT(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}}},oT(e)),sT(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}}})})}},$U=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
        > ${t},
        ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},_U=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},fT=Kn(["Input","Shared"],e=>{const t=Sn(e,Ls(e));return[SU(t),CU(t)]},Hs,{resetFont:!1}),mT=Kn(["Input","Component"],e=>{const t=Sn(e,Ls(e));return[wU(t),$U(t),_U(t),jf(t)]},Hs,{resetFont:!1}),j0=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",o=AM(e);return[{[`${n}-multiple${a}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:te(o.itemLineHeight)}}}]},EU=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=Sn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=Sn(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[j0(a,"small"),j0(e),j0(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"}}},zM(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},OU=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:o,cellHoverBg:c,lineWidth:u,lineType:f,colorPrimary:d,cellActiveWithRangeBg:h,colorTextLightSolid:v,colorTextDisabled:g,cellBgDisabled:b,colorFillSecondary:S}=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:te(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:c}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${te(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:v,background:d},[`&${t}-disabled ${n}`]:{background:S}},[`&-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:g,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:b}},[`&-disabled${t}-today ${n}::before`]:{borderColor:g}}},IU=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:o,cellWidth:c,paddingSM:u,paddingXS:f,paddingXXS:d,colorBgContainer:h,lineWidth:v,lineType:g,borderRadiusLG:b,colorPrimary:S,colorTextHeading:C,colorSplit:y,pickerControlIconBorderWidth:w,colorIcon:$,textHeight:_,motionDurationMid:O,colorIconHover:I,fontWeightStrong:j,cellHeight:M,pickerCellPaddingVertical:D,colorTextDisabled:N,colorText:P,fontSize:A,motionDurationSlow:F,withoutTimeCellHeight:H,pickerQuarterPanelContentHeight:k,borderRadiusSM:L,colorTextLightSolid:T,cellHoverBg:z,timeColumnHeight:V,timeColumnWidth:q,timeCellHeight:G,controlItemBgActive:B,marginXXS:U,pickerDatePanelPaddingHorizontal:K,pickerControlIconMargin:Y}=e,Q=e.calc(c).mul(7).add(e.calc(K).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:h,borderRadius:b,outline:"none","&-focused":{borderColor:S},"&-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 ${te(f)}`,color:C,borderBottom:`${te(v)} ${g} ${y}`,"> *":{flex:"none"},button:{padding:0,color:$,lineHeight:te(_),background:"transparent",border:0,cursor:"pointer",transition:`color ${O}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:A,"&:hover":{color:I},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:j,lineHeight:te(_),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:f},"&:hover":{color:S}}}},"&-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:Y,insetInlineStart:Y,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:M,fontWeight:"normal"},th:{height:e.calc(M).add(e.calc(D).mul(2)).equal(),color:P,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${te(D)} 0`,color:N,cursor:"pointer","&-in-view":{color:P}},OU(e)),"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${t}-content`]:{height:e.calc(H).mul(4).equal()},[r]:{padding:`0 ${te(f)}`}},"&-quarter-panel":{[`${t}-content`]:{height:k}},"&-decade-panel":{[r]:{padding:`0 ${te(e.calc(f).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${t}-body`]:{padding:`0 ${te(f)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${te(f)} ${te(K)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${O}`},"&:first-child:before":{borderStartStartRadius:L,borderEndStartRadius:L},"&:last-child:before":{borderStartEndRadius:L,borderEndEndRadius:L}},"&:hover td:before":{background:z},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:S},[`&${t}-cell-week`]:{color:new Tn(T).setA(.5).toHexString()},[r]:{color:T}}},"&-range-hover td:before":{background:B}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${te(f)} ${te(u)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${te(v)} ${g} ${y}`},[`${t}-date-panel,
          ${t}-time-panel`]:{transition:`opacity ${F}`},"&-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:V},"&-column":{flex:"1 0 auto",width:q,margin:`${te(d)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${O}`,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% - ${te(G)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${te(v)} ${g} ${y}`},"&-active":{background:new Tn(B).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:U,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(q).sub(e.calc(U).mul(2)).equal(),height:G,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(q).sub(G).div(2).equal(),color:P,lineHeight:te(G),borderRadius:L,cursor:"pointer",transition:`background ${O}`,"&:hover":{background:z}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:B}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:N,background:"transparent",cursor:"not-allowed"}}}}}}}}},RU=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:o,colorPrimary:c,cellActiveWithRangeBg:u,colorPrimaryBorder:f,lineType:d,colorSplit:h}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${te(r)} ${d} ${h}`,"&-extra":{padding:`0 ${te(a)}`,lineHeight:te(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${te(r)} ${d} ${h}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:te(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:te(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:c,background:u,borderColor:f,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},NU=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()}},MU=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:o,lineWidth:c}=e,u=o*2,f=c*2,d=Math.min(n-u,n-f),h=Math.min(r-u,r-f),v=Math.min(a-u,a-f);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Tn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Tn(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:v,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},jU=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Hs(e)),MU(e)),Ux(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),TU=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},sC(e)),dC(e)),uC(e)),cC(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},T0=(e,t)=>({padding:`${te(e)} ${te(t)}`}),DU=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}}}}},PU=e=>{var t;const{componentCls:n,antCls:r,paddingInline:a,lineWidth:o,lineType:c,colorBorder:u,borderRadius:f,motionDurationMid:d,colorTextDisabled:h,colorTextPlaceholder:v,colorTextQuaternary:g,fontSizeLG:b,inputFontSizeLG:S,fontSizeSM:C,inputFontSizeSM:y,controlHeightSM:w,paddingInlineSM:$,paddingXS:_,marginXS:O,colorIcon:I,lineWidthBold:j,colorPrimary:M,motionDurationSlow:D,zIndexPopup:N,paddingXXS:P,sizePopupArrow:A,colorBgElevated:F,borderRadiusLG:H,boxShadowSecondary:k,borderRadiusSM:L,colorSplit:T,cellHoverBg:z,presetsWidth:V,presetsMaxWidth:q,boxShadowPopoverArrow:G,fontHeight:B,lineHeightLG:U}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},An(e)),T0(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:f,transition:`border ${d}, box-shadow ${d}, background ${d}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-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:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${d}`},fC(v)),{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:v}}},"&-large":Object.assign(Object.assign({},T0(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:S??b,lineHeight:U}}),"&-small":Object.assign(Object.assign({},T0(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:y??C}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(_).div(2).equal(),color:g,lineHeight:1,pointerEvents:"none",transition:`opacity ${d}, color ${d}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:O}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:g,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${d}, color ${d}`,"> *":{verticalAlign:"top"},"&:hover":{color:I}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:b,color:g,fontSize:b,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:I},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:j,background:M,opacity:0,transition:`all ${D} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${te(_)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:a},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:$}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},An(e)),IU(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:N,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,
            &${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
            &${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,
          &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
          &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
          &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Xv},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
          &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
          &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
          &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Yv},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
          &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Qv},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
          &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:Gv},[`${n}-panel > ${n}-time-panel`]:{paddingTop:P},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-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 ${D} ease-out`},YM(e,F,G)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:F,borderRadius:H,boxShadow:k,transition:`margin ${D}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:V,maxWidth:q,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:_,borderInlineEnd:`${te(o)} ${c} ${T}`,li:Object.assign(Object.assign({},Bi),{borderRadius:L,paddingInline:_,paddingBlock:e.calc(w).sub(B).div(2).equal(),cursor:"pointer",transition:`all ${D}`,"+ li":{marginTop:O},"&:hover":{background:z}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:`${te(e.calc(A).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},co(e,"slide-up"),co(e,"slide-down"),ru(e,"move-up"),ru(e,"move-down")]},hT=Kn("DatePicker",e=>{const t=Sn(Ls(e),NU(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[RU(t),PU(t),TU(t),DU(t),EU(t),jf(e,{focusElCls:`${e.componentCls}-focused`})]},jU);var kU={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"},AU=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:kU}))},zU=s.forwardRef(AU);const xg=s.createContext(null);var LU=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,o=t.indicator,c=o===void 0?{}:o,u=c.size,f=c.align,d=f===void 0?"center":f,h=s.useState(),v=ce(h,2),g=v[0],b=v[1],S=s.useRef(),C=xe.useCallback(function(w){return typeof u=="function"?u(w):typeof u=="number"?u:w},[u]);function y(){mn.cancel(S.current)}return s.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(),S.current=mn(function(){var _=g&&w&&Object.keys(w).every(function(O){var I=w[O],j=g[O];return typeof I=="number"&&typeof j=="number"?Math.round(I)===Math.round(j):I===j});_||b(w)}),y},[JSON.stringify(n),r,a,d,C]),{style:g}},jO={width:0,height:0,left:0,top:0};function HU(e,t,n){return s.useMemo(function(){for(var r,a=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||jO,c=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)||jO}var v=a.get(f)||ee({},d);v.right=c-v.left-v.width,a.set(f,v)}return a},[e.map(function(r){return r.key}).join("_"),t,n])}function TO(e,t){var n=s.useRef(e),r=s.useState({}),a=ce(r,2),o=a[1];function c(u){var f=typeof u=="function"?u(n.current):u;f!==n.current&&t(f,n.current),n.current=f,o({})}return[n.current,c]}var BU=.1,DO=.01,Jh=20,PO=Math.pow(.995,Jh);function FU(e,t){var n=s.useState(),r=ce(n,2),a=r[0],o=r[1],c=s.useState(0),u=ce(c,2),f=u[0],d=u[1],h=s.useState(0),v=ce(h,2),g=v[0],b=v[1],S=s.useState(),C=ce(S,2),y=C[0],w=C[1],$=s.useRef();function _(N){var P=N.touches[0],A=P.screenX,F=P.screenY;o({x:A,y:F}),window.clearInterval($.current)}function O(N){if(a){var P=N.touches[0],A=P.screenX,F=P.screenY;o({x:A,y:F});var H=A-a.x,k=F-a.y;t(H,k);var L=Date.now();d(L),b(L-f),w({x:H,y:k})}}function I(){if(a&&(o(null),w(null),y)){var N=y.x/g,P=y.y/g,A=Math.abs(N),F=Math.abs(P);if(Math.max(A,F)<BU)return;var H=N,k=P;$.current=window.setInterval(function(){if(Math.abs(H)<DO&&Math.abs(k)<DO){window.clearInterval($.current);return}H*=PO,k*=PO,t(H*Jh,k*Jh)},Jh)}}var j=s.useRef();function M(N){var P=N.deltaX,A=N.deltaY,F=0,H=Math.abs(P),k=Math.abs(A);H===k?F=j.current==="x"?P:A:H>k?(F=P,j.current="x"):(F=A,j.current="y"),t(-F,-F)&&N.preventDefault()}var D=s.useRef(null);D.current={onTouchStart:_,onTouchMove:O,onTouchEnd:I,onWheel:M},s.useEffect(function(){function N(H){D.current.onTouchStart(H)}function P(H){D.current.onTouchMove(H)}function A(H){D.current.onTouchEnd(H)}function F(H){D.current.onWheel(H)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",A,{passive:!0}),e.current.addEventListener("touchstart",N,{passive:!0}),e.current.addEventListener("wheel",F,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",A)}},[])}function vT(e){var t=s.useState(0),n=ce(t,2),r=n[0],a=n[1],o=s.useRef(0),c=s.useRef();return c.current=e,Cs(function(){var u;(u=c.current)===null||u===void 0||u.call(c)},[r]),function(){o.current===r&&(o.current+=1,a(o.current))}}function VU(e){var t=s.useRef([]),n=s.useState({}),r=ce(n,2),a=r[1],o=s.useRef(typeof e=="function"?e():e),c=vT(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),c()}return[o.current,u]}var kO={width:0,height:0,left:0,top:0,right:0};function KU(e,t,n,r,a,o,c){var u=c.tabs,f=c.tabPosition,d=c.rtl,h,v,g;return["top","bottom"].includes(f)?(h="width",v=d?"right":"left",g=Math.abs(n)):(h="height",v="top",g=-n),s.useMemo(function(){if(!u.length)return[0,0];for(var b=u.length,S=b,C=0;C<b;C+=1){var y=e.get(u[C].key)||kO;if(Math.floor(y[v]+y[h])>Math.floor(g+t)){S=C-1;break}}for(var w=0,$=b-1;$>=0;$-=1){var _=e.get(u[$].key)||kO;if(_[v]<g){w=$+1;break}}return w>S?[0,-1]:[w,S]},[e,t,r,a,o,g,f,u.map(function(b){return b.key}).join("_"),d])}function AO(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var UU="TABS_DQ";function gT(e){return String(e).replace(/"/g,UU)}function hC(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var pT=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return!r||r.showAdd===!1?null:s.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":a?.addAriaLabel||"Add tab",onClick:function(u){r.onEdit("add",{event:u})}},r.addIcon||"+")}),zO=s.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var o,c={};return jt(a)==="object"&&!s.isValidElement(a)?c=a:c.right=a,n==="right"&&(o=c.right),n==="left"&&(o=c.left),o?s.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),WU=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,o=e.locale,c=e.mobile,u=e.more,f=u===void 0?{}:u,d=e.style,h=e.className,v=e.editable,g=e.tabBarGutter,b=e.rtl,S=e.removeAriaLabel,C=e.onTabClick,y=e.getPopupContainer,w=e.popupClassName,$=s.useState(!1),_=ce($,2),O=_[0],I=_[1],j=s.useState(null),M=ce(j,2),D=M[0],N=M[1],P=f.icon,A=P===void 0?"More":P,F="".concat(r,"-more-popup"),H="".concat(n,"-dropdown"),k=D!==null?"".concat(F,"-").concat(D):null,L=o?.dropdownAriaLabel;function T(K,Y){K.preventDefault(),K.stopPropagation(),v.onEdit("remove",{key:Y,event:K})}var z=s.createElement(gu,{onClick:function(Y){var Q=Y.key,Z=Y.domEvent;C(Q,Z),I(!1)},prefixCls:"".concat(H,"-menu"),id:F,tabIndex:-1,role:"listbox","aria-activedescendant":k,selectedKeys:[D],"aria-label":L!==void 0?L:"expanded dropdown"},a.map(function(K){var Y=K.closable,Q=K.disabled,Z=K.closeIcon,ae=K.key,re=K.label,ie=hC(Y,Z,v,Q);return s.createElement(kf,{key:ae,id:"".concat(F,"-").concat(ae),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(ae),disabled:Q},s.createElement("span",null,re),ie&&s.createElement("button",{type:"button","aria-label":S||"remove",tabIndex:0,className:"".concat(H,"-menu-item-remove"),onClick:function(ue){ue.stopPropagation(),T(ue,ae)}},Z||v.removeIcon||"×"))}));function V(K){for(var Y=a.filter(function(ie){return!ie.disabled}),Q=Y.findIndex(function(ie){return ie.key===D})||0,Z=Y.length,ae=0;ae<Z;ae+=1){Q=(Q+K+Z)%Z;var re=Y[Q];if(!re.disabled){N(re.key);return}}}function q(K){var Y=K.which;if(!O){[Mt.DOWN,Mt.SPACE,Mt.ENTER].includes(Y)&&(I(!0),K.preventDefault());return}switch(Y){case Mt.UP:V(-1),K.preventDefault();break;case Mt.DOWN:V(1),K.preventDefault();break;case Mt.ESC:I(!1);break;case Mt.SPACE:case Mt.ENTER:D!==null&&C(D,K);break}}s.useEffect(function(){var K=document.getElementById(k);K&&K.scrollIntoView&&K.scrollIntoView(!1)},[D]),s.useEffect(function(){O||N(null)},[O]);var G=X({},b?"marginRight":"marginLeft",g);a.length||(G.visibility="hidden",G.order=1);var B=se(X({},"".concat(H,"-rtl"),b)),U=c?null:s.createElement(tj,Me({prefixCls:H,overlay:z,visible:a.length?O:!1,onVisibleChange:I,overlayClassName:se(B,w),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},f),s.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:G,"aria-haspopup":"listbox","aria-controls":F,id:"".concat(r,"-more"),"aria-expanded":O,onKeyDown:q},A));return s.createElement("div",{className:se("".concat(n,"-nav-operations"),h),style:d,ref:t},U,s.createElement(pT,{prefixCls:n,locale:o,editable:v}))});const qU=s.memo(WU,function(e,t){return t.tabMoving});var YU=function(t){var n=t.prefixCls,r=t.id,a=t.active,o=t.focus,c=t.tab,u=c.key,f=c.label,d=c.disabled,h=c.closeIcon,v=c.icon,g=t.closable,b=t.renderWrapper,S=t.removeAriaLabel,C=t.editable,y=t.onClick,w=t.onFocus,$=t.onBlur,_=t.onKeyDown,O=t.onMouseDown,I=t.onMouseUp,j=t.style,M=t.tabCount,D=t.currentPosition,N="".concat(n,"-tab"),P=hC(g,h,C,d);function A(T){d||y(T)}function F(T){T.preventDefault(),T.stopPropagation(),C.onEdit("remove",{key:u,event:T})}var H=s.useMemo(function(){return v&&typeof f=="string"?s.createElement("span",null,f):f},[f,v]),k=s.useRef(null);s.useEffect(function(){o&&k.current&&k.current.focus()},[o]);var L=s.createElement("div",{key:u,"data-node-key":gT(u),className:se(N,X(X(X(X({},"".concat(N,"-with-remove"),P),"".concat(N,"-active"),a),"".concat(N,"-disabled"),d),"".concat(N,"-focus"),o)),style:j,onClick:A},s.createElement("div",{ref:k,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(z){z.stopPropagation(),A(z)},onKeyDown:_,onMouseDown:O,onMouseUp:I,onFocus:w,onBlur:$},o&&s.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(D," of ").concat(M)),v&&s.createElement("span",{className:"".concat(N,"-icon")},v),f&&H),P&&s.createElement("button",{type:"button",role:"tab","aria-label":S||"remove",tabIndex:a?0:-1,className:"".concat(N,"-remove"),onClick:function(z){z.stopPropagation(),F(z)}},h||C.removeIcon||"×"));return b?b(L):L},GU=function(t,n){var r=t.offsetWidth,a=t.offsetHeight,o=t.offsetTop,c=t.offsetLeft,u=t.getBoundingClientRect(),f=u.width,d=u.height,h=u.left,v=u.top;return Math.abs(f-r)<1?[f,d,h-n.left,v-n.top]:[r,a,c,o]},Mc=function(t){var n=t.current||{},r=n.offsetWidth,a=r===void 0?0:r,o=n.offsetHeight,c=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,c]},Ch=function(t,n){return t[n?0:1]},LO=s.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.id,o=e.animated,c=e.activeKey,u=e.rtl,f=e.extra,d=e.editable,h=e.locale,v=e.tabPosition,g=e.tabBarGutter,b=e.children,S=e.onTabClick,C=e.onTabScroll,y=e.indicator,w=s.useContext(xg),$=w.prefixCls,_=w.tabs,O=s.useRef(null),I=s.useRef(null),j=s.useRef(null),M=s.useRef(null),D=s.useRef(null),N=s.useRef(null),P=s.useRef(null),A=v==="top"||v==="bottom",F=TO(0,function(vt,Et){A&&C&&C({direction:vt>Et?"left":"right"})}),H=ce(F,2),k=H[0],L=H[1],T=TO(0,function(vt,Et){!A&&C&&C({direction:vt>Et?"top":"bottom"})}),z=ce(T,2),V=z[0],q=z[1],G=s.useState([0,0]),B=ce(G,2),U=B[0],K=B[1],Y=s.useState([0,0]),Q=ce(Y,2),Z=Q[0],ae=Q[1],re=s.useState([0,0]),ie=ce(re,2),ve=ie[0],ue=ie[1],oe=s.useState([0,0]),he=ce(oe,2),de=he[0],me=he[1],le=VU(new Map),pe=ce(le,2),Ce=pe[0],De=pe[1],je=HU(_,Ce,Z[0]),ge=Ch(U,A),Ie=Ch(Z,A),_e=Ch(ve,A),we=Ch(de,A),Fe=Math.floor(ge)<Math.floor(Ie+_e),He=Fe?ge-we:ge-_e,it="".concat($,"-nav-operations-hidden"),Ze=0,Ye=0;A&&u?(Ze=0,Ye=Math.max(0,Ie-He)):(Ze=Math.min(0,He-Ie),Ye=0);function Je(vt){return vt<Ze?Ze:vt>Ye?Ye:vt}var Pe=s.useRef(null),Oe=s.useState(),Be=ce(Oe,2),$e=Be[0],Te=Be[1];function be(){Te(Date.now())}function ye(){Pe.current&&clearTimeout(Pe.current)}FU(M,function(vt,Et){function Qt(on,bt){on(function(Ht){var nn=Je(Ht+bt);return nn})}return Fe?(A?Qt(L,vt):Qt(q,Et),ye(),be(),!0):!1}),s.useEffect(function(){return ye(),$e&&(Pe.current=setTimeout(function(){Te(0)},100)),ye},[$e]);var Re=KU(je,He,A?k:V,Ie,_e,we,ee(ee({},e),{},{tabs:_})),Ge=ce(Re,2),ft=Ge[0],$t=Ge[1],Qe=pn(function(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,Et=je.get(vt)||{width:0,height:0,left:0,right:0,top:0};if(A){var Qt=k;u?Et.right<k?Qt=Et.right:Et.right+Et.width>k+He&&(Qt=Et.right+Et.width-He):Et.left<-k?Qt=-Et.left:Et.left+Et.width>-k+He&&(Qt=-(Et.left+Et.width-He)),q(0),L(Je(Qt))}else{var on=V;Et.top<-V?on=-Et.top:Et.top+Et.height>-V+He&&(on=-(Et.top+Et.height-He)),L(0),q(Je(on))}}),at=s.useState(),mt=ce(at,2),st=mt[0],pt=mt[1],Wt=s.useState(!1),Yt=ce(Wt,2),ht=Yt[0],It=Yt[1],_t=_.filter(function(vt){return!vt.disabled}).map(function(vt){return vt.key}),tt=function(Et){var Qt=_t.indexOf(st||c),on=_t.length,bt=(Qt+Et+on)%on,Ht=_t[bt];pt(Ht)},Ue=function(Et,Qt){var on=_t.indexOf(Et),bt=_.find(function(nn){return nn.key===Et}),Ht=hC(bt?.closable,bt?.closeIcon,d,bt?.disabled);Ht&&(Qt.preventDefault(),Qt.stopPropagation(),d.onEdit("remove",{key:Et,event:Qt}),on===_t.length-1?tt(-1):tt(1))},qe=function(Et,Qt){It(!0),Qt.button===1&&Ue(Et,Qt)},ct=function(Et){var Qt=Et.code,on=u&&A,bt=_t[0],Ht=_t[_t.length-1];switch(Qt){case"ArrowLeft":{A&&tt(on?1:-1);break}case"ArrowRight":{A&&tt(on?-1:1);break}case"ArrowUp":{Et.preventDefault(),A||tt(-1);break}case"ArrowDown":{Et.preventDefault(),A||tt(1);break}case"Home":{Et.preventDefault(),pt(bt);break}case"End":{Et.preventDefault(),pt(Ht);break}case"Enter":case"Space":{Et.preventDefault(),S(st??c,Et);break}case"Backspace":case"Delete":{Ue(st,Et);break}}},Tt={};A?Tt[u?"marginRight":"marginLeft"]=g:Tt.marginTop=g;var Dt=_.map(function(vt,Et){var Qt=vt.key;return s.createElement(YU,{id:a,prefixCls:$,key:Qt,tab:vt,style:Et===0?void 0:Tt,closable:vt.closable,editable:d,active:Qt===c,focus:Qt===st,renderWrapper:b,removeAriaLabel:h?.removeAriaLabel,tabCount:_t.length,currentPosition:Et+1,onClick:function(bt){S(Qt,bt)},onKeyDown:ct,onFocus:function(){ht||pt(Qt),Qe(Qt),be(),M.current&&(u||(M.current.scrollLeft=0),M.current.scrollTop=0)},onBlur:function(){pt(void 0)},onMouseDown:function(bt){return qe(Qt,bt)},onMouseUp:function(){It(!1)}})}),Jt=function(){return De(function(){var Et,Qt=new Map,on=(Et=D.current)===null||Et===void 0?void 0:Et.getBoundingClientRect();return _.forEach(function(bt){var Ht,nn=bt.key,Xn=(Ht=D.current)===null||Ht===void 0?void 0:Ht.querySelector('[data-node-key="'.concat(gT(nn),'"]'));if(Xn){var br=GU(Xn,on),wr=ce(br,4),$r=wr[0],Yn=wr[1],Gn=wr[2],Dr=wr[3];Qt.set(nn,{width:$r,height:Yn,left:Gn,top:Dr})}}),Qt})};s.useEffect(function(){Jt()},[_.map(function(vt){return vt.key}).join("_")]);var ut=vT(function(){var vt=Mc(O),Et=Mc(I),Qt=Mc(j);K([vt[0]-Et[0]-Qt[0],vt[1]-Et[1]-Qt[1]]);var on=Mc(P);ue(on);var bt=Mc(N);me(bt);var Ht=Mc(D);ae([Ht[0]-on[0],Ht[1]-on[1]]),Jt()}),ot=_.slice(0,ft),Lt=_.slice($t+1),tn=[].concat(ke(ot),ke(Lt)),hn=je.get(c),cn=LU({activeTabOffset:hn,horizontal:A,indicator:y,rtl:u}),En=cn.style;s.useEffect(function(){Qe()},[c,Ze,Ye,AO(hn),AO(je),A]),s.useEffect(function(){ut()},[u]);var rn=!!tn.length,xn="".concat($,"-nav-wrap"),lt,St,Bt,kt;return A?u?(St=k>0,lt=k!==Ye):(lt=k<0,St=k!==Ze):(Bt=V<0,kt=V!==Ze),s.createElement(xa,{onResize:ut},s.createElement("div",{ref:Fl(t,O),role:"tablist","aria-orientation":A?"horizontal":"vertical",className:se("".concat($,"-nav"),n),style:r,onKeyDown:function(){be()}},s.createElement(zO,{ref:I,position:"left",extra:f,prefixCls:$}),s.createElement(xa,{onResize:ut},s.createElement("div",{className:se(xn,X(X(X(X({},"".concat(xn,"-ping-left"),lt),"".concat(xn,"-ping-right"),St),"".concat(xn,"-ping-top"),Bt),"".concat(xn,"-ping-bottom"),kt)),ref:M},s.createElement(xa,{onResize:ut},s.createElement("div",{ref:D,className:"".concat($,"-nav-list"),style:{transform:"translate(".concat(k,"px, ").concat(V,"px)"),transition:$e?"none":void 0}},Dt,s.createElement(pT,{ref:P,prefixCls:$,locale:h,editable:d,style:ee(ee({},Dt.length===0?void 0:Tt),{},{visibility:rn?"hidden":null})}),s.createElement("div",{className:se("".concat($,"-ink-bar"),X({},"".concat($,"-ink-bar-animated"),o.inkBar)),style:En}))))),s.createElement(qU,Me({},e,{removeAriaLabel:h?.removeAriaLabel,ref:N,prefixCls:$,tabs:tn,className:!rn&&it,tabMoving:!!$e})),s.createElement(zO,{ref:j,position:"right",extra:f,prefixCls:$})))}),bT=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.id,c=e.active,u=e.tabKey,f=e.children;return s.createElement("div",{id:o&&"".concat(o,"-panel-").concat(u),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(u),"aria-hidden":!c,style:a,className:se(n,c&&"".concat(n,"-active"),r),ref:t},f)}),XU=["renderTabBar"],QU=["label","key"],ZU=function(t){var n=t.renderTabBar,r=Kt(t,XU),a=s.useContext(xg),o=a.tabs;if(n){var c=ee(ee({},r),{},{panes:o.map(function(u){var f=u.label,d=u.key,h=Kt(u,QU);return s.createElement(bT,Me({tab:f,key:d,tabKey:d},h))})});return n(c,LO)}return s.createElement(LO,r)},JU=["key","forceRender","style","className","destroyInactiveTabPane"],eW=function(t){var n=t.id,r=t.activeKey,a=t.animated,o=t.tabPosition,c=t.destroyInactiveTabPane,u=s.useContext(xg),f=u.prefixCls,d=u.tabs,h=a.tabPane,v="".concat(f,"-tabpane");return s.createElement("div",{className:se("".concat(f,"-content-holder"))},s.createElement("div",{className:se("".concat(f,"-content"),"".concat(f,"-content-").concat(o),X({},"".concat(f,"-content-animated"),h))},d.map(function(g){var b=g.key,S=g.forceRender,C=g.style,y=g.className,w=g.destroyInactiveTabPane,$=Kt(g,JU),_=b===r;return s.createElement(Oi,Me({key:b,visible:_,forceRender:S,removeOnLeave:!!(c||w),leavedClassName:"".concat(v,"-hidden")},a.tabPaneMotion),function(O,I){var j=O.style,M=O.className;return s.createElement(bT,Me({},$,{prefixCls:v,id:n,tabKey:b,animated:h,active:_,style:ee(ee({},C),j),className:se(y,M),ref:I}))})})))};function tW(){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=ee({inkBar:!0},jt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var nW=["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,rW=s.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,o=e.className,c=e.items,u=e.direction,f=e.activeKey,d=e.defaultActiveKey,h=e.editable,v=e.animated,g=e.tabPosition,b=g===void 0?"top":g,S=e.tabBarGutter,C=e.tabBarStyle,y=e.tabBarExtraContent,w=e.locale,$=e.more,_=e.destroyInactiveTabPane,O=e.renderTabBar,I=e.onChange,j=e.onTabClick,M=e.onTabScroll,D=e.getPopupContainer,N=e.popupClassName,P=e.indicator,A=Kt(e,nW),F=s.useMemo(function(){return(c||[]).filter(function(de){return de&&jt(de)==="object"&&"key"in de})},[c]),H=u==="rtl",k=tW(v),L=s.useState(!1),T=ce(L,2),z=T[0],V=T[1];s.useEffect(function(){V(lg())},[]);var q=Wn(function(){var de;return(de=F[0])===null||de===void 0?void 0:de.key},{value:f,defaultValue:d}),G=ce(q,2),B=G[0],U=G[1],K=s.useState(function(){return F.findIndex(function(de){return de.key===B})}),Y=ce(K,2),Q=Y[0],Z=Y[1];s.useEffect(function(){var de=F.findIndex(function(le){return le.key===B});if(de===-1){var me;de=Math.max(0,Math.min(Q,F.length-1)),U((me=F[de])===null||me===void 0?void 0:me.key)}Z(de)},[F.map(function(de){return de.key}).join("_"),B,Q]);var ae=Wn(null,{value:n}),re=ce(ae,2),ie=re[0],ve=re[1];s.useEffect(function(){n||(ve("rc-tabs-".concat(HO)),HO+=1)},[]);function ue(de,me){j?.(de,me);var le=de!==B;U(de),le&&I?.(de)}var oe={id:ie,activeKey:B,animated:k,tabPosition:b,rtl:H,mobile:z},he=ee(ee({},oe),{},{editable:h,locale:w,more:$,tabBarGutter:S,onTabClick:ue,onTabScroll:M,extra:y,style:C,panes:null,getPopupContainer:D,popupClassName:N,indicator:P});return s.createElement(xg.Provider,{value:{tabs:F,prefixCls:a}},s.createElement("div",Me({ref:t,id:n,className:se(a,"".concat(a,"-").concat(b),X(X(X({},"".concat(a,"-mobile"),z),"".concat(a,"-editable"),h),"".concat(a,"-rtl"),H),o)},A),s.createElement(ZU,Me({},he,{renderTabBar:O})),s.createElement(eW,Me({destroyInactiveTabPane:_},oe,{animated:k}))))});const aW={motionAppear:!1,motionEnter:!0,motionLeave:!0};function iW(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},aW),{motionName:Ox(e,"switch")})),n}var oW=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 lW(e){return e.filter(t=>t)}function sW(e,t){if(e)return e.map(r=>{var a;const o=(a=r.destroyOnHidden)!==null&&a!==void 0?a:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:o})});const n=Ma(t).map(r=>{if(s.isValidElement(r)){const{key:a,props:o}=r,c=o||{},{tab:u}=c,f=oW(c,["tab"]);return Object.assign(Object.assign({key:String(a)},f),{label:u})}return null});return lW(n)}const cW=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}`}}}}},[co(e,"slide-up"),co(e,"slide-down")]]},uW=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${te(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:so(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:te(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:te(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${te(e.borderRadiusLG)} 0 0 ${te(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 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},dW=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},An(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:`${te(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({},Bi),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${te(e.paddingXXS)} ${te(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"}}})}})}},fW=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:c,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:`${te(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:c},[`${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:te(u(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${te(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:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},mW=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:a,cardHeightLG:o,horizontalItemPaddingSM:c,horizontalItemPaddingLG:u}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:c,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:u,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:a,minHeight:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${te(e.borderRadius)} ${te(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${te(e.borderRadius)} ${te(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${te(e.borderRadius)} ${te(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${te(e.borderRadius)} 0 0 ${te(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:o,minHeight:o}}}}}},hW=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:c,itemSelectedColor:u,itemColor:f}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,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",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Wo(e)),"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:u,textShadow:e.tabsActiveTextShadow},[`&${d}-focus ${d}-btn:focus-visible`]:so(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,verticalAlign:"middle"},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:o}}}},vW=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:te(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:te(e.marginXS)},marginLeft:{_skip_check_:!0,value:te(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"}}}}},gW=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:o,itemActiveColor:c,colorBorderSecondary:u}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},An(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},background:"transparent",border:`${te(e.lineWidth)} ${e.lineType} ${u}`,borderRadius:`${te(e.borderRadiusLG)} ${te(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:c}},Wo(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),hW(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Wo(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"}}}}}},pW=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:a,controlHeightLG:o}=e,c=t||o,u=n||a,f=r||o+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:c,cardHeightSM:u,cardHeightLG:f,cardPadding:`${(c-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(u-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(f-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},bW=Kn("Tabs",e=>{const t=Sn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${te(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${te(e.horizontalItemGutter)}`});return[mW(t),vW(t),fW(t),dW(t),uW(t),gW(t),cW(t)]},pW),yW=()=>null;var SW=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 xW=s.forwardRef((e,t)=>{var n,r,a,o,c,u,f,d,h,v,g;const{type:b,className:S,rootClassName:C,size:y,onEdit:w,hideAdd:$,centered:_,addIcon:O,removeIcon:I,moreIcon:j,more:M,popupClassName:D,children:N,items:P,animated:A,style:F,indicatorSize:H,indicator:k,destroyInactiveTabPane:L,destroyOnHidden:T}=e,z=SW(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:V}=z,{direction:q,tabs:G,getPrefixCls:B,getPopupContainer:U}=s.useContext(Ut),K=B("tabs",V),Y=oa(K),[Q,Z,ae]=bW(K,Y),re=s.useRef(null);s.useImperativeHandle(t,()=>({nativeElement:re.current}));let ie;b==="editable-card"&&(ie={onEdit:(le,{key:pe,event:Ce})=>{w?.(le==="add"?Ce:pe,le)},removeIcon:(n=I??G?.removeIcon)!==null&&n!==void 0?n:s.createElement(cu,null),addIcon:(O??G?.addIcon)||s.createElement(zU,null),showAdd:$!==!0});const ve=B(),ue=la(y),oe=sW(P,N),he=iW(K,A),de=Object.assign(Object.assign({},G?.style),F),me={align:(r=k?.align)!==null&&r!==void 0?r:(a=G?.indicator)===null||a===void 0?void 0:a.align,size:(f=(c=(o=k?.size)!==null&&o!==void 0?o:H)!==null&&c!==void 0?c:(u=G?.indicator)===null||u===void 0?void 0:u.size)!==null&&f!==void 0?f:G?.indicatorSize};return Q(s.createElement(rW,Object.assign({ref:re,direction:q,getPopupContainer:U},z,{items:oe,className:se({[`${K}-${ue}`]:ue,[`${K}-card`]:["card","editable-card"].includes(b),[`${K}-editable-card`]:b==="editable-card",[`${K}-centered`]:_},G?.className,S,C,Z,ae,Y),popupClassName:se(D,Z,ae,Y),style:de,editable:ie,more:Object.assign({icon:(g=(v=(h=(d=G?.more)===null||d===void 0?void 0:d.icon)!==null&&h!==void 0?h:G?.moreIcon)!==null&&v!==void 0?v:j)!==null&&g!==void 0?g:s.createElement(eC,null),transitionName:`${ve}-slide-up`},M),prefixCls:K,animated:he,indicator:me,destroyInactiveTabPane:T??L})))}),yT=xW;yT.TabPane=yW;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 ST=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=CW(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=s.useContext(Ut),c=o("card",t),u=se(`${c}-grid`,n,{[`${c}-grid-hoverable`]:r});return s.createElement("div",Object.assign({},a,{className:u}))},wW=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 ${te(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`},Uo()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Bi),{[`
          > ${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:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},$W=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
      ${te(a)} 0 0 0 ${n},
      0 ${te(a)} 0 0 ${n},
      ${te(a)} ${te(a)} 0 0 ${n},
      ${te(a)} 0 0 0 ${n} inset,
      0 ${te(a)} 0 0 ${n} inset;
    `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},_W=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:c}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:c,borderTop:`${te(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`},Uo()),{"& > 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:te(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:te(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${o}`}}})},EW=e=>Object.assign(Object.assign({margin:`${te(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Uo()),{"&-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},Bi),"&-description":{color:e.colorTextDescription}}),OW=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:a}=e;return{[`${t}-head`]:{padding:`0 ${te(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${te(e.padding)} ${te(a)}`}}},IW=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},RW=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:o,bodyPadding:c,extraColor:u}=e;return{[t]:Object.assign(Object.assign({},An(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:wW(e),[`${t}-extra`]:{marginInlineStart:"auto",color:u,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:c,borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`},[`${t}-grid`]:$W(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:_W(e),[`${t}-meta`]:EW(e)}),[`${t}-bordered`]:{border:`${te(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:`${te(e.borderRadiusLG)} ${te(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`]:OW(e),[`${t}-loading`]:IW(e),[`${t}-rtl`]:{direction:"rtl"}}},NW=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:a,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${te(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"}}}}},MW=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}},jW=Kn("Card",e=>{const t=Sn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[RW(t),NW(t)]},MW);var BO=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 TW=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return s.createElement("ul",{className:t,style:r},n.map((a,o)=>{const c=`action-${o}`;return s.createElement("li",{style:{width:`${100/n.length}%`},key:c},s.createElement("span",null,a))}))},DW=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,extra:c,headStyle:u={},bodyStyle:f={},title:d,loading:h,bordered:v,variant:g,size:b,type:S,cover:C,actions:y,tabList:w,children:$,activeTabKey:_,defaultActiveTabKey:O,tabBarExtraContent:I,hoverable:j,tabProps:M={},classNames:D,styles:N}=e,P=BO(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:A,direction:F,card:H}=s.useContext(Ut),[k]=Ps("card",g,v),L=je=>{var ge;(ge=e.onTabChange)===null||ge===void 0||ge.call(e,je)},T=je=>{var ge;return se((ge=H?.classNames)===null||ge===void 0?void 0:ge[je],D?.[je])},z=je=>{var ge;return Object.assign(Object.assign({},(ge=H?.styles)===null||ge===void 0?void 0:ge[je]),N?.[je])},V=s.useMemo(()=>{let je=!1;return s.Children.forEach($,ge=>{ge?.type===ST&&(je=!0)}),je},[$]),q=A("card",n),[G,B,U]=jW(q),K=s.createElement(hu,{loading:!0,active:!0,paragraph:{rows:4},title:!1},$),Y=_!==void 0,Q=Object.assign(Object.assign({},M),{[Y?"activeKey":"defaultActiveKey"]:Y?_:O,tabBarExtraContent:I});let Z;const ae=la(b),re=!ae||ae==="default"?"large":ae,ie=w?s.createElement(yT,Object.assign({size:re},Q,{className:`${q}-head-tabs`,onChange:L,items:w.map(je=>{var{tab:ge}=je,Ie=BO(je,["tab"]);return Object.assign({label:ge},Ie)})})):null;if(d||c||ie){const je=se(`${q}-head`,T("header")),ge=se(`${q}-head-title`,T("title")),Ie=se(`${q}-extra`,T("extra")),_e=Object.assign(Object.assign({},u),z("header"));Z=s.createElement("div",{className:je,style:_e},s.createElement("div",{className:`${q}-head-wrapper`},d&&s.createElement("div",{className:ge,style:z("title")},d),c&&s.createElement("div",{className:Ie,style:z("extra")},c)),ie)}const ve=se(`${q}-cover`,T("cover")),ue=C?s.createElement("div",{className:ve,style:z("cover")},C):null,oe=se(`${q}-body`,T("body")),he=Object.assign(Object.assign({},f),z("body")),de=s.createElement("div",{className:oe,style:he},h?K:$),me=se(`${q}-actions`,T("actions")),le=y?.length?s.createElement(TW,{actionClasses:me,actionStyle:z("actions"),actions:y}):null,pe=or(P,["onTabChange"]),Ce=se(q,H?.className,{[`${q}-loading`]:h,[`${q}-bordered`]:k!=="borderless",[`${q}-hoverable`]:j,[`${q}-contain-grid`]:V,[`${q}-contain-tabs`]:w?.length,[`${q}-${ae}`]:ae,[`${q}-type-${S}`]:!!S,[`${q}-rtl`]:F==="rtl"},r,a,B,U),De=Object.assign(Object.assign({},H?.style),o);return G(s.createElement("div",Object.assign({ref:t},pe,{className:Ce,style:De}),Z,ue,de,le))});var PW=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 kW=e=>{const{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,c=PW(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:u}=s.useContext(Ut),f=u("card",t),d=se(`${f}-meta`,n),h=r?s.createElement("div",{className:`${f}-meta-avatar`},r):null,v=a?s.createElement("div",{className:`${f}-meta-title`},a):null,g=o?s.createElement("div",{className:`${f}-meta-description`},o):null,b=v||g?s.createElement("div",{className:`${f}-meta-detail`},v,g):null;return s.createElement("div",Object.assign({},c,{className:d}),h,b)},rt=DW;rt.Grid=ST;rt.Meta=kW;function AW(e,t,n){var r=n||{},a=r.noTrailing,o=a===void 0?!1:a,c=r.noLeading,u=c===void 0?!1:c,f=r.debounceMode,d=f===void 0?void 0:f,h,v=!1,g=0;function b(){h&&clearTimeout(h)}function S(y){var w=y||{},$=w.upcomingOnly,_=$===void 0?!1:$;b(),v=!_}function C(){for(var y=arguments.length,w=new Array(y),$=0;$<y;$++)w[$]=arguments[$];var _=this,O=Date.now()-g;if(v)return;function I(){g=Date.now(),t.apply(_,w)}function j(){h=void 0}!u&&d&&!h&&I(),b(),d===void 0&&O>e?u?(g=Date.now(),o||(h=setTimeout(d?j:I,e))):I():o!==!0&&(h=setTimeout(d?j:I,d===void 0?e-O:e))}return C.cancel=S,C}function zW(e,t,n){var r={},a=r.atBegin,o=a===void 0?!1:a;return AW(e,t,{debounceMode:o!==!1})}function qa(e,t){return e[t]}var LW=["children"];function xT(e,t){return"".concat(e,"-").concat(t)}function HW(e){return e&&e.type&&e.type.isTreeNode}function Lf(e,t){return e??t}function au(e){var t=e||{},n=t.title,r=t._title,a=t.key,o=t.children,c=n||"title";return{title:c,_title:r||[c],key:a||"key",children:o||"children"}}function CT(e){function t(n){var r=Ma(n);return r.map(function(a){if(!HW(a))return Sr(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var o=a.key,c=a.props,u=c.children,f=Kt(c,LW),d=ee({key:o},f),h=t(u);return h.length&&(d.children=h),d}).filter(function(a){return a})}return t(e)}function D0(e,t,n){var r=au(n),a=r._title,o=r.key,c=r.children,u=new Set(t===!0?[]:t),f=[];function d(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return h.map(function(g,b){for(var S=xT(v?v.pos:"0",b),C=Lf(g[o],S),y,w=0;w<a.length;w+=1){var $=a[w];if(g[$]!==void 0){y=g[$];break}}var _=Object.assign(or(g,[].concat(ke(a),[o,c])),{title:y,key:C,parent:v,pos:S,children:null,data:g,isStart:[].concat(ke(v?v.isStart:[]),[b===0]),isEnd:[].concat(ke(v?v.isEnd:[]),[b===h.length-1])});return f.push(_),t===!0||u.has(C)?_.children=d(g[c]||[],_):_.children=[],_})}return d(e),f}function BW(e,t,n){var r={};jt(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var a=r,o=a.childrenPropName,c=a.externalGetKey,u=a.fieldNames,f=au(u),d=f.key,h=f.children,v=o||h,g;c?typeof c=="string"?g=function(C){return C[c]}:typeof c=="function"&&(g=function(C){return c(C)}):g=function(C,y){return Lf(C[d],y)};function b(S,C,y,w){var $=S?S[v]:e,_=S?xT(y.pos,C):"0",O=S?[].concat(ke(w),[S]):[];if(S){var I=g(S,_),j={node:S,index:C,pos:_,key:I,parentPos:y.node?y.pos:null,level:y.level+1,nodes:O};t(j)}$&&$.forEach(function(M,D){b(M,D,{node:S,pos:_,level:y?y.level+1:-1},O)})}b(null)}function vC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,o=t.externalGetKey,c=t.childrenPropName,u=t.fieldNames,f=arguments.length>2?arguments[2]:void 0,d=o||f,h={},v={},g={posEntities:h,keyEntities:v};return n&&(g=n(g)||g),BW(e,function(b){var S=b.node,C=b.index,y=b.pos,w=b.key,$=b.parentPos,_=b.level,O=b.nodes,I={node:S,nodes:O,index:C,key:w,pos:y,level:_},j=Lf(w,y);h[y]=I,v[j]=I,I.parent=h[$],I.parent&&(I.parent.children=I.parent.children||[],I.parent.children.push(I)),r&&r(I,g)},{externalGetKey:d,childrenPropName:c,fieldNames:u}),a&&a(g),g}function qd(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,o=t.loadingKeys,c=t.checkedKeys,u=t.halfCheckedKeys,f=t.dragOverNodeKey,d=t.dropPosition,h=t.keyEntities,v=qa(h,e),g={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:c.indexOf(e)!==-1,halfChecked:u.indexOf(e)!==-1,pos:String(v?v.pos:""),dragOver:f===e&&d===0,dragOverGapTop:f===e&&d===-1,dragOverGapBottom:f===e&&d===1};return g}function Jr(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,o=e.loaded,c=e.loading,u=e.halfChecked,f=e.dragOver,d=e.dragOverGapTop,h=e.dragOverGapBottom,v=e.pos,g=e.active,b=e.eventKey,S=ee(ee({},t),{},{expanded:n,selected:r,checked:a,loaded:o,loading:c,halfChecked:u,dragOver:f,dragOverGapTop:d,dragOverGapBottom:h,pos:v,active:g,key:b});return"props"in S||Object.defineProperty(S,"props",{get:function(){return Sr(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),S}function wT(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function FW(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function VW(e,t,n,r){for(var a=new Set(e),o=new Set,c=0;c<=n;c+=1){var u=t.get(c)||new Set;u.forEach(function(v){var g=v.key,b=v.node,S=v.children,C=S===void 0?[]:S;a.has(g)&&!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(v){var g=v.parent,b=v.node;if(!(r(b)||!v.parent||f.has(v.parent.key))){if(r(v.parent.node)){f.add(g.key);return}var S=!0,C=!1;(g.children||[]).filter(function(y){return!r(y.node)}).forEach(function(y){var w=y.key,$=a.has(w);S&&!$&&(S=!1),!C&&($||o.has(w))&&(C=!0)}),S&&a.add(g.key),C&&o.add(g.key),f.add(g.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(wT(o,a))}}function KW(e,t,n,r,a){for(var o=new Set(e),c=new Set(t),u=0;u<=r;u+=1){var f=n.get(u)||new Set;f.forEach(function(g){var b=g.key,S=g.node,C=g.children,y=C===void 0?[]:C;!o.has(b)&&!c.has(b)&&!a(S)&&y.filter(function(w){return!a(w.node)}).forEach(function(w){o.delete(w.key)})})}c=new Set;for(var d=new Set,h=r;h>=0;h-=1){var v=n.get(h)||new Set;v.forEach(function(g){var b=g.parent,S=g.node;if(!(a(S)||!g.parent||d.has(g.parent.key))){if(a(g.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,_=o.has($);C&&!_&&(C=!1),!y&&(_||c.has($))&&(y=!0)}),C||o.delete(b.key),y&&c.add(b.key),d.add(b.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(wT(c,o))}}function Wc(e,t,n,r){var a=[],o;r?o=r:o=FW;var c=new Set(e.filter(function(h){var v=!!qa(n,h);return v||a.push(h),v})),u=new Map,f=0;Object.keys(n).forEach(function(h){var v=n[h],g=v.level,b=u.get(g);b||(b=new Set,u.set(g,b)),b.add(v),f=Math.max(f,g)}),Sr(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(h){return"'".concat(h,"'")}).join(", ")));var d;return t===!0?d=VW(c,u,f,o):d=KW(c,t.halfCheckedKeys,u,f,o),d}const UW=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},An(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},An(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({},An(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`]:so(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${te(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
        ${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}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${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 $T(e,t){const n=Sn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return UW(n)}const _T=Kn("Checkbox",(e,{prefixCls:t})=>[$T(t,e)]),ET=xe.createContext(null);var WW=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 qW=(e,t)=>{var n;const{prefixCls:r,className:a,rootClassName:o,children:c,indeterminate:u=!1,style:f,onMouseEnter:d,onMouseLeave:h,skipGroup:v=!1,disabled:g}=e,b=WW(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:S,direction:C,checkbox:y}=s.useContext(Ut),w=s.useContext(ET),{isFormItemInput:$}=s.useContext(ia),_=s.useContext(ja),O=(n=w?.disabled||g)!==null&&n!==void 0?n:_,I=s.useRef(b.value),j=s.useRef(null),M=_a(t,j);s.useEffect(()=>{w?.registerValue(b.value)},[]),s.useEffect(()=>{if(!v)return b.value!==I.current&&(w?.cancelValue(I.current),w?.registerValue(b.value),I.current=b.value),()=>w?.cancelValue(b.value)},[b.value]),s.useEffect(()=>{var V;!((V=j.current)===null||V===void 0)&&V.input&&(j.current.input.indeterminate=u)},[u]);const D=S("checkbox",r),N=oa(D),[P,A,F]=_T(D,N),H=Object.assign({},b);w&&!v&&(H.onChange=(...V)=>{b.onChange&&b.onChange.apply(b,V),w.toggleOption&&w.toggleOption({label:c,value:b.value})},H.name=w.name,H.checked=w.value.includes(b.value));const k=se(`${D}-wrapper`,{[`${D}-rtl`]:C==="rtl",[`${D}-wrapper-checked`]:H.checked,[`${D}-wrapper-disabled`]:O,[`${D}-wrapper-in-form-item`]:$},y?.className,a,o,F,N,A),L=se({[`${D}-indeterminate`]:u},Kv,A),[T,z]=tT(H.onClick);return P(s.createElement(Mf,{component:"Checkbox",disabled:O},s.createElement("label",{className:k,style:Object.assign(Object.assign({},y?.style),f),onMouseEnter:d,onMouseLeave:h,onClick:T},s.createElement(eT,Object.assign({},H,{onClick:z,prefixCls:D,className:L,disabled:O,ref:M})),c!=null&&s.createElement("span",{className:`${D}-label`},c))))},OT=s.forwardRef(qW);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 GW=s.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:a=[],prefixCls:o,className:c,rootClassName:u,style:f,onChange:d}=e,h=YW(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:v,direction:g}=s.useContext(Ut),[b,S]=s.useState(h.value||n||[]),[C,y]=s.useState([]);s.useEffect(()=>{"value"in h&&S(h.value||[])},[h.value]);const w=s.useMemo(()=>a.map(L=>typeof L=="string"||typeof L=="number"?{label:L,value:L}:L),[a]),$=L=>{y(T=>T.filter(z=>z!==L))},_=L=>{y(T=>[].concat(ke(T),[L]))},O=L=>{const T=b.indexOf(L.value),z=ke(b);T===-1?z.push(L.value):z.splice(T,1),"value"in h||S(z),d?.(z.filter(V=>C.includes(V)).sort((V,q)=>{const G=w.findIndex(U=>U.value===V),B=w.findIndex(U=>U.value===q);return G-B}))},I=v("checkbox",o),j=`${I}-group`,M=oa(I),[D,N,P]=_T(I,M),A=or(h,["value","disabled"]),F=a.length?w.map(L=>s.createElement(OT,{prefixCls:I,key:L.value.toString(),disabled:"disabled"in L?L.disabled:h.disabled,value:L.value,checked:b.includes(L.value),onChange:L.onChange,className:se(`${j}-item`,L.className),style:L.style,title:L.title,id:L.id,required:L.required},L.label)):r,H=s.useMemo(()=>({toggleOption:O,value:b,disabled:h.disabled,name:h.name,registerValue:_,cancelValue:$}),[O,b,h.disabled,h.name,_,$]),k=se(j,{[`${j}-rtl`]:g==="rtl"},c,u,P,M,N);return D(s.createElement("div",Object.assign({className:k,style:f},A,{ref:t}),s.createElement(ET.Provider,{value:H},F)))}),qr=OT;qr.Group=GW;qr.__ANT_CHECKBOX=!0;const IT=s.createContext({});var XW=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 FO(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const QW=["xs","sm","md","lg","xl","xxl"],gC=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=s.useContext(Ut),{gutter:a,wrap:o}=s.useContext(IT),{prefixCls:c,span:u,order:f,offset:d,push:h,pull:v,className:g,children:b,flex:S,style:C}=e,y=XW(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),w=n("col",c),[$,_,O]=jB(w),I={};let j={};QW.forEach(N=>{let P={};const A=e[N];typeof A=="number"?P.span=A:typeof A=="object"&&(P=A||{}),delete y[N],j=Object.assign(Object.assign({},j),{[`${w}-${N}-${P.span}`]:P.span!==void 0,[`${w}-${N}-order-${P.order}`]:P.order||P.order===0,[`${w}-${N}-offset-${P.offset}`]:P.offset||P.offset===0,[`${w}-${N}-push-${P.push}`]:P.push||P.push===0,[`${w}-${N}-pull-${P.pull}`]:P.pull||P.pull===0,[`${w}-rtl`]:r==="rtl"}),P.flex&&(j[`${w}-${N}-flex`]=!0,I[`--${w}-${N}-flex`]=FO(P.flex))});const M=se(w,{[`${w}-${u}`]:u!==void 0,[`${w}-order-${f}`]:f,[`${w}-offset-${d}`]:d,[`${w}-push-${h}`]:h,[`${w}-pull-${v}`]:v},g,j,_,O),D={};if(a&&a[0]>0){const N=a[0]/2;D.paddingLeft=N,D.paddingRight=N}return S&&(D.flex=FO(S),o===!1&&!D.minWidth&&(D.minWidth=0)),$(s.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign({},D),C),I),className:M,ref:t}),b))});function ZW(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,c)=>{if(typeof o=="object"&&o!==null)for(let u=0;u<Ns.length;u++){const f=Ns[u];if(a[f]&&o[f]!==void 0){n[c]=o[f];break}}else n[c]=o}),n}var JW=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,t){const[n,r]=s.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o<Ns.length;o++){const c=Ns[o];if(!t||!t[c])continue;const u=e[c];if(u!==void 0){r(u);return}}};return s.useEffect(()=>{a()},[JSON.stringify(e),t]),n}const RT=s.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:o,style:c,children:u,gutter:f=0,wrap:d}=e,h=JW(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:v,direction:g}=s.useContext(Ut),b=ug(!0,null),S=VO(a,b),C=VO(r,b),y=v("row",n),[w,$,_]=NB(y),O=ZW(f,b),I=se(y,{[`${y}-no-wrap`]:d===!1,[`${y}-${C}`]:C,[`${y}-${S}`]:S,[`${y}-rtl`]:g==="rtl"},o,$,_),j={},M=O[0]!=null&&O[0]>0?O[0]/-2:void 0;M&&(j.marginLeft=M,j.marginRight=M);const[D,N]=O;j.rowGap=N;const P=s.useMemo(()=>({gutter:[D,N],wrap:d}),[D,N,d]);return w(s.createElement(IT.Provider,{value:P},s.createElement("div",Object.assign({},h,{className:I,style:Object.assign(Object.assign({},j),c),ref:t}),u)))}),eq=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},tq=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:o,orientationMargin:c,verticalMarginInline:u}=e;return{[t]:Object.assign(Object.assign({},An(e)),{borderBlockStart:`${te(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:u,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${te(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${te(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${te(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:`${te(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${c} * 100%)`},"&::after":{width:`calc(100% - ${c} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${c} * 100%)`},"&::after":{width:`calc(${c} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${te(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:`${te(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}}})}},nq=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),rq=Kn("Divider",e=>{const t=Sn(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[tq(t),eq(t)]},nq,{unitless:{orientationMargin:!0}});var aq=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={small:"sm",middle:"md"},oq=e=>{const{getPrefixCls:t,direction:n,className:r,style:a}=va("divider"),{prefixCls:o,type:c="horizontal",orientation:u="center",orientationMargin:f,className:d,rootClassName:h,children:v,dashed:g,variant:b="solid",plain:S,style:C,size:y}=e,w=aq(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),$=t("divider",o),[_,O,I]=rq($),j=la(y),M=iq[j],D=!!v,N=s.useMemo(()=>u==="left"?n==="rtl"?"end":"start":u==="right"?n==="rtl"?"start":"end":u,[n,u]),P=N==="start"&&f!=null,A=N==="end"&&f!=null,F=se($,r,O,I,`${$}-${c}`,{[`${$}-with-text`]:D,[`${$}-with-text-${N}`]:D,[`${$}-dashed`]:!!g,[`${$}-${b}`]:b!=="solid",[`${$}-plain`]:!!S,[`${$}-rtl`]:n==="rtl",[`${$}-no-default-orientation-margin-start`]:P,[`${$}-no-default-orientation-margin-end`]:A,[`${$}-${M}`]:!!M},d,h),H=s.useMemo(()=>typeof f=="number"?f:/^\d+$/.test(f)?Number(f):f,[f]),k={marginInlineStart:P?H:void 0,marginInlineEnd:A?H:void 0};return _(s.createElement("div",Object.assign({className:F,style:Object.assign(Object.assign({},a),C)},w,{role:"separator"}),v&&c!=="vertical"&&s.createElement("span",{className:`${$}-inner-text`,style:k},v)))};var lq={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"},sq=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:lq}))},cq=s.forwardRef(sq);function CS(){return typeof BigInt=="function"}function NT(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function $s(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",c=a[1]||"0";o==="0"&&c==="0"&&(n=!1);var u=n?"-":"";return{negative:n,negativeStr:u,trimStr:r,integerStr:o,decimalStr:c,fullStr:"".concat(u).concat(r)}}function pC(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ys(e){var t=String(e);if(pC(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(".")&&bC(t)?t.length-t.indexOf(".")-1:0}function Cg(e){var t=String(e);if(pC(e)){if(e>Number.MAX_SAFE_INTEGER)return String(CS()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(CS()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(ys(t))}return $s(t).fullStr}function bC(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 uq=(function(){function e(t){if(xr(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),NT(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(pC(n)&&(n=Number(n)),n=typeof n=="string"?n:Cg(n),bC(n)){var r=$s(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 Cr(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),c=this.alignDecimal(o),u=n.alignDecimal(o),f=r(c,u).toString(),d=a(o),h=$s(f),v=h.negativeStr,g=h.trimStr,b="".concat(v).concat(g.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?.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()?"":$s("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),dq=(function(){function e(t){if(xr(this,e),X(this,"origin",""),X(this,"number",void 0),X(this,"empty",void 0),NT(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Cr(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(ys(this.number),ys(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(ys(this.number),ys(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?.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()?"":Cg(this.number):this.origin}}]),e})();function Ti(e){return CS()?new uq(e):new dq(e)}function ev(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=$s(e),o=a.negativeStr,c=a.integerStr,u=a.decimalStr,f="".concat(t).concat(u),d="".concat(o).concat(c);if(n>=0){var h=Number(u[n]);if(h>=5&&!r){var v=Ti(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-h));return ev(v.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 fq(e){return!!(e.addonBefore||e.addonAfter)}function mq(e){return!!(e.prefix||e.suffix||e.allowClear)}function KO(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 wv(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=KO(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=KO(t,e,r),n(a);return}n(a)}}function yC(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 SC=xe.forwardRef(function(e,t){var n,r,a,o=e.inputElement,c=e.children,u=e.prefixCls,f=e.prefix,d=e.suffix,h=e.addonBefore,v=e.addonAfter,g=e.className,b=e.style,S=e.disabled,C=e.readOnly,y=e.focused,w=e.triggerFocus,$=e.allowClear,_=e.value,O=e.handleReset,I=e.hidden,j=e.classes,M=e.classNames,D=e.dataAttrs,N=e.styles,P=e.components,A=e.onClear,F=c??o,H=P?.affixWrapper||"span",k=P?.groupWrapper||"span",L=P?.wrapper||"span",T=P?.groupAddon||"span",z=s.useRef(null),V=function(me){var le;(le=z.current)!==null&&le!==void 0&&le.contains(me.target)&&w?.()},q=mq(e),G=s.cloneElement(F,{value:_,className:se((n=F.props)===null||n===void 0?void 0:n.className,!q&&M?.variant)||null}),B=s.useRef(null);if(xe.useImperativeHandle(t,function(){return{nativeElement:B.current||z.current}}),q){var U=null;if($){var K=!S&&!C&&_,Y="".concat(u,"-clear-icon"),Q=jt($)==="object"&&$!==null&&$!==void 0&&$.clearIcon?$.clearIcon:"✖";U=xe.createElement("button",{type:"button",tabIndex:-1,onClick:function(me){O?.(me),A?.()},onMouseDown:function(me){return me.preventDefault()},className:se(Y,X(X({},"".concat(Y,"-hidden"),!K),"".concat(Y,"-has-suffix"),!!d))},Q)}var Z="".concat(u,"-affix-wrapper"),ae=se(Z,X(X(X(X(X({},"".concat(u,"-disabled"),S),"".concat(Z,"-disabled"),S),"".concat(Z,"-focused"),y),"".concat(Z,"-readonly"),C),"".concat(Z,"-input-with-clear-btn"),d&&$&&_),j?.affixWrapper,M?.affixWrapper,M?.variant),re=(d||$)&&xe.createElement("span",{className:se("".concat(u,"-suffix"),M?.suffix),style:N?.suffix},U,d);G=xe.createElement(H,Me({className:ae,style:N?.affixWrapper,onClick:V},D?.affixWrapper,{ref:z}),f&&xe.createElement("span",{className:se("".concat(u,"-prefix"),M?.prefix),style:N?.prefix},f),G,re)}if(fq(e)){var ie="".concat(u,"-group"),ve="".concat(ie,"-addon"),ue="".concat(ie,"-wrapper"),oe=se("".concat(u,"-wrapper"),ie,j?.wrapper,M?.wrapper),he=se(ue,X({},"".concat(ue,"-disabled"),S),j?.group,M?.groupWrapper);G=xe.createElement(k,{className:he,ref:B},xe.createElement(L,{className:oe},h&&xe.createElement(T,{className:ve},h),G,v&&xe.createElement(T,{className:ve},v)))}return xe.cloneElement(G,{className:se((r=G.props)===null||r===void 0?void 0:r.className,g)||null,style:ee(ee({},(a=G.props)===null||a===void 0?void 0:a.style),b),hidden:I})}),hq=["show"];function MT(e,t){return s.useMemo(function(){var n={};t&&(n.show=jt(t)==="object"&&t.formatter?t.formatter:!!t),n=ee(ee({},n),e);var r=n,a=r.show,o=Kt(r,hq);return ee(ee({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(c){return c.length}})},[e,t])}var vq=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],gq=s.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,o=e.onBlur,c=e.onPressEnter,u=e.onKeyDown,f=e.onKeyUp,d=e.prefixCls,h=d===void 0?"rc-input":d,v=e.disabled,g=e.htmlSize,b=e.className,S=e.maxLength,C=e.suffix,y=e.showCount,w=e.count,$=e.type,_=$===void 0?"text":$,O=e.classes,I=e.classNames,j=e.styles,M=e.onCompositionStart,D=e.onCompositionEnd,N=Kt(e,vq),P=s.useState(!1),A=ce(P,2),F=A[0],H=A[1],k=s.useRef(!1),L=s.useRef(!1),T=s.useRef(null),z=s.useRef(null),V=function(we){T.current&&yC(T.current,we)},q=Wn(e.defaultValue,{value:e.value}),G=ce(q,2),B=G[0],U=G[1],K=B==null?"":String(B),Y=s.useState(null),Q=ce(Y,2),Z=Q[0],ae=Q[1],re=MT(w,y),ie=re.max||S,ve=re.strategy(K),ue=!!ie&&ve>ie;s.useImperativeHandle(t,function(){var _e;return{focus:V,blur:function(){var Fe;(Fe=T.current)===null||Fe===void 0||Fe.blur()},setSelectionRange:function(Fe,He,it){var Ze;(Ze=T.current)===null||Ze===void 0||Ze.setSelectionRange(Fe,He,it)},select:function(){var Fe;(Fe=T.current)===null||Fe===void 0||Fe.select()},input:T.current,nativeElement:((_e=z.current)===null||_e===void 0?void 0:_e.nativeElement)||T.current}}),s.useEffect(function(){L.current&&(L.current=!1),H(function(_e){return _e&&v?!1:_e})},[v]);var oe=function(we,Fe,He){var it=Fe;if(!k.current&&re.exceedFormatter&&re.max&&re.strategy(Fe)>re.max){if(it=re.exceedFormatter(Fe,{max:re.max}),Fe!==it){var Ze,Ye;ae([((Ze=T.current)===null||Ze===void 0?void 0:Ze.selectionStart)||0,((Ye=T.current)===null||Ye===void 0?void 0:Ye.selectionEnd)||0])}}else if(He.source==="compositionEnd")return;U(it),T.current&&wv(T.current,we,r,it)};s.useEffect(function(){if(Z){var _e;(_e=T.current)===null||_e===void 0||_e.setSelectionRange.apply(_e,ke(Z))}},[Z]);var he=function(we){oe(we,we.target.value,{source:"change"})},de=function(we){k.current=!1,oe(we,we.currentTarget.value,{source:"compositionEnd"}),D?.(we)},me=function(we){c&&we.key==="Enter"&&!L.current&&(L.current=!0,c(we)),u?.(we)},le=function(we){we.key==="Enter"&&(L.current=!1),f?.(we)},pe=function(we){H(!0),a?.(we)},Ce=function(we){L.current&&(L.current=!1),H(!1),o?.(we)},De=function(we){U(""),V(),T.current&&wv(T.current,we,r)},je=ue&&"".concat(h,"-out-of-range"),ge=function(){var we=or(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return xe.createElement("input",Me({autoComplete:n},we,{onChange:he,onFocus:pe,onBlur:Ce,onKeyDown:me,onKeyUp:le,className:se(h,X({},"".concat(h,"-disabled"),v),I?.input),style:j?.input,ref:T,size:g,type:_,onCompositionStart:function(He){k.current=!0,M?.(He)},onCompositionEnd:de}))},Ie=function(){var we=Number(ie)>0;if(C||re.show){var Fe=re.showFormatter?re.showFormatter({value:K,count:ve,maxLength:ie}):"".concat(ve).concat(we?" / ".concat(ie):"");return xe.createElement(xe.Fragment,null,re.show&&xe.createElement("span",{className:se("".concat(h,"-show-count-suffix"),X({},"".concat(h,"-show-count-has-suffix"),!!C),I?.count),style:ee({},j?.count)},Fe),C)}return null};return xe.createElement(SC,Me({},N,{prefixCls:h,className:se(b,je),handleReset:De,value:K,focused:F,triggerFocus:V,suffix:Ie(),disabled:v,classes:O,classNames:I,styles:j,ref:z}),ge())});function pq(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 bq(e,t){var n=s.useRef(null);function r(){try{var o=e.selectionStart,c=e.selectionEnd,u=e.value,f=u.substring(0,o),d=u.substring(c);n.current={start:o,end:c,value:u,beforeTxt:f,afterTxt:d}}catch{}}function a(){if(e&&n.current&&t)try{var o=e.value,c=n.current,u=c.beforeTxt,f=c.afterTxt,d=c.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 v=u[d-1],g=o.indexOf(v,d-1);g!==-1&&(h=g+1)}e.setSelectionRange(h,h)}catch(b){Sr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(b.message))}}return[r,a]}var yq=function(){var t=s.useState(!1),n=ce(t,2),r=n[0],a=n[1];return dn(function(){a(lg())},[]),r},Sq=200,xq=600;function Cq(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,c=e.onStep,u=s.useRef(),f=s.useRef([]),d=s.useRef();d.current=c;var h=function(){clearTimeout(u.current)},v=function(_,O){_.preventDefault(),h(),d.current(O);function I(){d.current(O),u.current=setTimeout(I,Sq)}u.current=setTimeout(I,xq)};s.useEffect(function(){return function(){h(),f.current.forEach(function($){return mn.cancel($)})}},[]);var g=yq();if(g)return null;var b="".concat(t,"-handler"),S=se(b,"".concat(b,"-up"),X({},"".concat(b,"-up-disabled"),a)),C=se(b,"".concat(b,"-down"),X({},"".concat(b,"-down-disabled"),o)),y=function(){return f.current.push(mn(h))},w={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return s.createElement("div",{className:"".concat(b,"-wrap")},s.createElement("span",Me({},w,{onMouseDown:function(_){v(_,!0)},"aria-label":"Increase Value","aria-disabled":a,className:S}),n||s.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),s.createElement("span",Me({},w,{onMouseDown:function(_){v(_,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:C}),r||s.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function UO(e){var t=typeof e=="number"?Cg(e):$s(e).fullStr,n=t.includes(".");return n?$s(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const wq=(function(){var e=s.useRef(0),t=function(){mn.cancel(e.current)};return s.useEffect(function(){return t},[]),function(n){t(),e.current=mn(function(){n()})}});var $q=["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"],_q=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],WO=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},qO=function(t){var n=Ti(t);return n.isInvalidate()?null:n},Eq=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.min,c=e.max,u=e.step,f=u===void 0?1:u,d=e.defaultValue,h=e.value,v=e.disabled,g=e.readOnly,b=e.upHandler,S=e.downHandler,C=e.keyboard,y=e.changeOnWheel,w=y===void 0?!1:y,$=e.controls,_=$===void 0?!0:$;e.classNames;var O=e.stringMode,I=e.parser,j=e.formatter,M=e.precision,D=e.decimalSeparator,N=e.onChange,P=e.onInput,A=e.onPressEnter,F=e.onStep,H=e.changeOnBlur,k=H===void 0?!0:H,L=e.domRef,T=Kt(e,$q),z="".concat(n,"-input"),V=s.useRef(null),q=s.useState(!1),G=ce(q,2),B=G[0],U=G[1],K=s.useRef(!1),Y=s.useRef(!1),Q=s.useRef(!1),Z=s.useState(function(){return Ti(h??d)}),ae=ce(Z,2),re=ae[0],ie=ae[1];function ve(Qe){h===void 0&&ie(Qe)}var ue=s.useCallback(function(Qe,at){if(!at)return M>=0?M:Math.max(ys(Qe),ys(f))},[M,f]),oe=s.useCallback(function(Qe){var at=String(Qe);if(I)return I(at);var mt=at;return D&&(mt=mt.replace(D,".")),mt.replace(/[^\w.-]+/g,"")},[I,D]),he=s.useRef(""),de=s.useCallback(function(Qe,at){if(j)return j(Qe,{userTyping:at,input:String(he.current)});var mt=typeof Qe=="number"?Cg(Qe):Qe;if(!at){var st=ue(mt,at);if(bC(mt)&&(D||st>=0)){var pt=D||".";mt=ev(mt,pt,st)}}return mt},[j,ue,D]),me=s.useState(function(){var Qe=d??h;return re.isInvalidate()&&["string","number"].includes(jt(Qe))?Number.isNaN(Qe)?"":Qe:de(re.toString(),!1)}),le=ce(me,2),pe=le[0],Ce=le[1];he.current=pe;function De(Qe,at){Ce(de(Qe.isInvalidate()?Qe.toString(!1):Qe.toString(!at),at))}var je=s.useMemo(function(){return qO(c)},[c,M]),ge=s.useMemo(function(){return qO(o)},[o,M]),Ie=s.useMemo(function(){return!je||!re||re.isInvalidate()?!1:je.lessEquals(re)},[je,re]),_e=s.useMemo(function(){return!ge||!re||re.isInvalidate()?!1:re.lessEquals(ge)},[ge,re]),we=bq(V.current,B),Fe=ce(we,2),He=Fe[0],it=Fe[1],Ze=function(at){return je&&!at.lessEquals(je)?je:ge&&!ge.lessEquals(at)?ge:null},Ye=function(at){return!Ze(at)},Je=function(at,mt){var st=at,pt=Ye(st)||st.isEmpty();if(!st.isEmpty()&&!mt&&(st=Ze(st)||st,pt=!0),!g&&!v&&pt){var Wt=st.toString(),Yt=ue(Wt,mt);return Yt>=0&&(st=Ti(ev(Wt,".",Yt)),Ye(st)||(st=Ti(ev(Wt,".",Yt,!0)))),st.equals(re)||(ve(st),N?.(st.isEmpty()?null:WO(O,st)),h===void 0&&De(st,mt)),st}return re},Pe=wq(),Oe=function Qe(at){if(He(),he.current=at,Ce(at),!Y.current){var mt=oe(at),st=Ti(mt);st.isNaN()||Je(st,!0)}P?.(at),Pe(function(){var pt=at;I||(pt=at.replace(/。/g,".")),pt!==at&&Qe(pt)})},Be=function(){Y.current=!0},$e=function(){Y.current=!1,Oe(V.current.value)},Te=function(at){Oe(at.target.value)},be=function(at){var mt;if(!(at&&Ie||!at&&_e)){K.current=!1;var st=Ti(Q.current?UO(f):f);at||(st=st.negate());var pt=(re||Ti(0)).add(st.toString()),Wt=Je(pt,!1);F?.(WO(O,Wt),{offset:Q.current?UO(f):f,type:at?"up":"down"}),(mt=V.current)===null||mt===void 0||mt.focus()}},ye=function(at){var mt=Ti(oe(pe)),st;mt.isNaN()?st=Je(re,at):st=Je(mt,at),h!==void 0?De(re,!1):st.isNaN()||De(st,!1)},Re=function(){K.current=!0},Ge=function(at){var mt=at.key,st=at.shiftKey;K.current=!0,Q.current=st,mt==="Enter"&&(Y.current||(K.current=!1),ye(!1),A?.(at)),C!==!1&&!Y.current&&["Up","ArrowUp","Down","ArrowDown"].includes(mt)&&(be(mt==="Up"||mt==="ArrowUp"),at.preventDefault())},ft=function(){K.current=!1,Q.current=!1};s.useEffect(function(){if(w&&B){var Qe=function(st){be(st.deltaY<0),st.preventDefault()},at=V.current;if(at)return at.addEventListener("wheel",Qe,{passive:!1}),function(){return at.removeEventListener("wheel",Qe)}}});var $t=function(){k&&ye(!1),U(!1),K.current=!1};return Cs(function(){re.isInvalidate()||De(re,!1)},[M,j]),Cs(function(){var Qe=Ti(h);ie(Qe);var at=Ti(oe(pe));(!Qe.equals(at)||!K.current||j)&&De(Qe,K.current)},[h]),Cs(function(){j&&it()},[pe]),s.createElement("div",{ref:L,className:se(n,r,X(X(X(X(X({},"".concat(n,"-focused"),B),"".concat(n,"-disabled"),v),"".concat(n,"-readonly"),g),"".concat(n,"-not-a-number"),re.isNaN()),"".concat(n,"-out-of-range"),!re.isInvalidate()&&!Ye(re))),style:a,onFocus:function(){U(!0)},onBlur:$t,onKeyDown:Ge,onKeyUp:ft,onCompositionStart:Be,onCompositionEnd:$e,onBeforeInput:Re},_&&s.createElement(Cq,{prefixCls:n,upNode:b,downNode:S,upDisabled:Ie,downDisabled:_e,onStep:be}),s.createElement("div",{className:"".concat(z,"-wrap")},s.createElement("input",Me({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":c,"aria-valuenow":re.isInvalidate()?null:re.toString(),step:f},T,{ref:_a(V,t),className:z,value:pe,onChange:Te,disabled:v,readOnly:g}))))}),Oq=s.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,o=a===void 0?"rc-input-number":a,c=e.value,u=e.prefix,f=e.suffix,d=e.addonBefore,h=e.addonAfter,v=e.className,g=e.classNames,b=Kt(e,_q),S=s.useRef(null),C=s.useRef(null),y=s.useRef(null),w=function(_){y.current&&yC(y.current,_)};return s.useImperativeHandle(t,function(){return pq(y.current,{focus:w,nativeElement:S.current.nativeElement||C.current})}),s.createElement(SC,{className:v,triggerFocus:w,prefixCls:o,value:c,disabled:n,style:r,prefix:u,suffix:f,addonAfter:h,addonBefore:d,classNames:g,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:S},s.createElement(Eq,Me({prefixCls:o,disabled:n,ref:y,domRef:C,className:g?.input},b)))});const Iq=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({},Hs(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Tn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},YO=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const a=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${e}-handler-up`]:{borderStartEndRadius:a},[`${e}-handler-down`]:{borderEndEndRadius:a}}}},Rq=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:o,inputFontSizeLG:c,controlHeightLG:u,controlHeightSM:f,colorError:d,paddingInlineSM:h,paddingBlockSM:v,paddingBlockLG:g,paddingInlineLG:b,colorIcon:S,motionDurationMid:C,handleHoverColor:y,handleOpacity:w,paddingInline:$,paddingBlock:_,handleBg:O,handleActiveBg:I,colorTextDisabled:j,borderRadiusSM:M,borderRadiusLG:D,controlWidth:N,handleBorderColor:P,filledHandleBg:A,lineHeightLG:F,calc:H}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},An(e)),zf(e)),{display:"inline-block",width:N,margin:0,padding:0,borderRadius:a}),sC(e,{[`${t}-handler-wrap`]:{background:O,[`${t}-handler-down`]:{borderBlockStart:`${te(n)} ${r} ${P}`}}})),uC(e,{[`${t}-handler-wrap`]:{background:A,[`${t}-handler-down`]:{borderBlockStart:`${te(n)} ${r} ${P}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:O}}})),dC(e,{[`${t}-handler-wrap`]:{background:O,[`${t}-handler-down`]:{borderBlockStart:`${te(n)} ${r} ${P}`}}})),cC(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:c,lineHeight:F,borderRadius:D,[`input${t}-input`]:{height:H(u).sub(H(n).mul(2)).equal(),padding:`${te(g)} ${te(b)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:M,[`input${t}-input`]:{height:H(f).sub(H(n).mul(2)).equal(),padding:`${te(v)} ${te(h)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:d}}},"&-group":Object.assign(Object.assign(Object.assign({},An(e)),dT(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:D,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:M}}},oT(e)),sT(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({},An(e)),{width:"100%",padding:`${te(_)} ${te($)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${C} linear`,appearance:"textfield",fontSize:"inherit"}),fC(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:S,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${te(n)} ${r} ${P}`,transition:`all ${C} linear`,"&:active":{background:I},"&:hover":{height:"60%",[`
              ${t}-handler-up-inner,
              ${t}-handler-down-inner
            `]:{color:y}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},ou()),{color:S,transition:`all ${C} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},YO(e,"lg")),YO(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:j}})}]},Nq=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:o,borderRadiusLG:c,borderRadiusSM:u,paddingInlineLG:f,paddingInlineSM:d,paddingBlockLG:h,paddingBlockSM:v,motionDurationMid:g}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${te(n)} 0`}},zf(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:c,paddingInlineStart:f,[`input${t}-input`]:{padding:`${te(h)} 0`}},"&-sm":{borderRadius:u,paddingInlineStart:d,[`input${t}-input`]:{padding:`${te(v)} 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 ${g}`}},[`&: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()}}),[`${t}-underlined`]:{borderRadius:0}}},Mq=Kn("InputNumber",e=>{const t=Sn(e,Ls(e));return[Rq(t),Nq(t),jf(t)]},Iq,{unitless:{handleOpacity:!0},resetFont:!1});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};const jT=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=s.useContext(Ut),a=s.useRef(null);s.useImperativeHandle(t,()=>a.current);const{className:o,rootClassName:c,size:u,disabled:f,prefixCls:d,addonBefore:h,addonAfter:v,prefix:g,suffix:b,bordered:S,readOnly:C,status:y,controls:w,variant:$}=e,_=jq(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),O=n("input-number",d),I=oa(O),[j,M,D]=Mq(O,I),{compactSize:N,compactItemClassnames:P}=Zo(O,r);let A=s.createElement(cq,{className:`${O}-handler-up-inner`}),F=s.createElement(Fx,{className:`${O}-handler-down-inner`});const H=typeof w=="boolean"?w:void 0;typeof w=="object"&&(A=typeof w.upIcon>"u"?A:s.createElement("span",{className:`${O}-handler-up-inner`},w.upIcon),F=typeof w.downIcon>"u"?F:s.createElement("span",{className:`${O}-handler-down-inner`},w.downIcon));const{hasFeedback:k,status:L,isFormItemInput:T,feedbackIcon:z}=s.useContext(ia),V=Ds(L,y),q=la(re=>{var ie;return(ie=u??N)!==null&&ie!==void 0?ie:re}),G=s.useContext(ja),B=f??G,[U,K]=Ps("inputNumber",$,S),Y=k&&s.createElement(s.Fragment,null,z),Q=se({[`${O}-lg`]:q==="large",[`${O}-sm`]:q==="small",[`${O}-rtl`]:r==="rtl",[`${O}-in-form-item`]:T},M),Z=`${O}-group`,ae=s.createElement(Oq,Object.assign({ref:a,disabled:B,className:se(D,I,o,c,P),upHandler:A,downHandler:F,prefixCls:O,readOnly:C,controls:H,prefix:g,suffix:Y||b,addonBefore:h&&s.createElement(Go,{form:!0,space:!0},h),addonAfter:v&&s.createElement(Go,{form:!0,space:!0},v),classNames:{input:Q,variant:se({[`${O}-${U}`]:K},Hl(O,V,k)),affixWrapper:se({[`${O}-affix-wrapper-sm`]:q==="small",[`${O}-affix-wrapper-lg`]:q==="large",[`${O}-affix-wrapper-rtl`]:r==="rtl",[`${O}-affix-wrapper-without-controls`]:w===!1||B||C},M),wrapper:se({[`${Z}-rtl`]:r==="rtl"},M),groupWrapper:se({[`${O}-group-wrapper-sm`]:q==="small",[`${O}-group-wrapper-lg`]:q==="large",[`${O}-group-wrapper-rtl`]:r==="rtl",[`${O}-group-wrapper-${U}`]:K},Hl(`${O}-group-wrapper`,V,k),M)}},_));return j(ae)}),xC=jT,Tq=e=>s.createElement(vo,{theme:{components:{InputNumber:{handleVisible:!0}}}},s.createElement(jT,Object.assign({},e)));xC._InternalPanelDoNotUseOrYouWillBeFired=Tq;const TT=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:xe.createElement(su,null)}),t};function DT(e,t){const n=s.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,o,c,u;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((c=e.current)===null||c===void 0)&&c.input.hasAttribute("value"))&&((u=e.current)===null||u===void 0||u.input.removeAttribute("value"))}))};return s.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function Dq(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}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 Hf=s.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:a,size:o,disabled:c,onBlur:u,onFocus:f,suffix:d,allowClear:h,addonAfter:v,addonBefore:g,className:b,style:S,styles:C,rootClassName:y,onChange:w,classNames:$,variant:_}=e,O=Pq(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:I,direction:j,allowClear:M,autoComplete:D,className:N,style:P,classNames:A,styles:F}=va("input"),H=I("input",n),k=s.useRef(null),L=oa(H),[T,z,V]=fT(H,y),[q]=mT(H,L),{compactSize:G,compactItemClassnames:B}=Zo(H,j),U=la(Ce=>{var De;return(De=o??G)!==null&&De!==void 0?De:Ce}),K=xe.useContext(ja),Y=c??K,{status:Q,hasFeedback:Z,feedbackIcon:ae}=s.useContext(ia),re=Ds(Q,a),ie=Dq(e)||!!Z;s.useRef(ie);const ve=DT(k,!0),ue=Ce=>{ve(),u?.(Ce)},oe=Ce=>{ve(),f?.(Ce)},he=Ce=>{ve(),w?.(Ce)},de=(Z||d)&&xe.createElement(xe.Fragment,null,d,Z&&ae),me=TT(h??M),[le,pe]=Ps("input",_,r);return T(q(xe.createElement(gq,Object.assign({ref:_a(t,k),prefixCls:H,autoComplete:D},O,{disabled:Y,onBlur:ue,onFocus:oe,style:Object.assign(Object.assign({},P),S),styles:Object.assign(Object.assign({},F),C),suffix:de,allowClear:me,className:se(b,y,V,L,B,N),onChange:he,addonBefore:g&&xe.createElement(Go,{form:!0,space:!0},g),addonAfter:v&&xe.createElement(Go,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},$),A),{input:se({[`${H}-sm`]:U==="small",[`${H}-lg`]:U==="large",[`${H}-rtl`]:j==="rtl"},$?.input,A.input,z),variant:se({[`${H}-${le}`]:pe},Hl(H,re)),affixWrapper:se({[`${H}-affix-wrapper-sm`]:U==="small",[`${H}-affix-wrapper-lg`]:U==="large",[`${H}-affix-wrapper-rtl`]:j==="rtl"},z),wrapper:se({[`${H}-group-rtl`]:j==="rtl"},z),groupWrapper:se({[`${H}-group-wrapper-sm`]:U==="small",[`${H}-group-wrapper-lg`]:U==="large",[`${H}-group-wrapper-rtl`]:j==="rtl",[`${H}-group-wrapper-${le}`]:pe},Hl(`${H}-group-wrapper`,re,Z),z)})}))))});var kq={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"},Aq=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:kq}))},PT=s.forwardRef(Aq),zq={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"},Lq=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:zq}))},kT=s.forwardRef(Lq),Hq={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"},Bq=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:Hq}))},Fq=s.forwardRef(Bq);function Vq(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 Kq(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 AT(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=VM(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[s.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[Uq,Wq]=["week","WeekPicker"],[qq,Yq]=["month","MonthPicker"],[Gq,Xq]=["year","YearPicker"],[Qq,Zq]=["quarter","QuarterPicker"],[wS,GO]=["time","TimePicker"],Jq=e=>s.createElement(gn,Object.assign({size:"small",type:"primary"},e));function zT(e){return s.useMemo(()=>Object.assign({button:Jq},e),[e])}function LT(e,...t){const n=e||{};return t.reduce((r,a)=>(Object.keys(a||{}).forEach(o=>{const c=n[o],u=a[o];if(c&&typeof c=="object")if(u&&typeof u=="object")r[o]=LT(c,r[o],u);else{const{_default:f}=c;f&&(r[o]=r[o]||{},r[o][f]=se(r[o][f],u))}else r[o]=se(r[o],u)}),r),{})}function eY(e,...t){return s.useMemo(()=>LT.apply(void 0,[e].concat(t)),[t,e])}function tY(...e){return s.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function $S(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const a=t[r],o=n[r]||{};n[r]=a?$S(o,a):o}}),n}function nY(e,t,n){const r=eY.apply(void 0,[n].concat(ke(e))),a=tY.apply(void 0,ke(t));return s.useMemo(()=>[$S(r,n),$S(a,n)],[r,a,n])}const HT=(e,t,n,r,a)=>{const{classNames:o,styles:c}=va(e),[u,f]=nY([o,t],[c,n],{popup:{_default:"root"}});return s.useMemo(()=>{var d,h;const v=Object.assign(Object.assign({},u),{popup:Object.assign(Object.assign({},u.popup),{root:se((d=u.popup)===null||d===void 0?void 0:d.root,r)})}),g=Object.assign(Object.assign({},f),{popup:Object.assign(Object.assign({},f.popup),{root:Object.assign(Object.assign({},(h=f.popup)===null||h===void 0?void 0:h.root),a)})});return[v,g]},[u,f,r,a])};var rY=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 aY=e=>s.forwardRef((n,r)=>{var a;const{prefixCls:o,getPopupContainer:c,components:u,className:f,style:d,placement:h,size:v,disabled:g,bordered:b=!0,placeholder:S,popupStyle:C,popupClassName:y,dropdownClassName:w,status:$,rootClassName:_,variant:O,picker:I,styles:j,classNames:M}=n,D=rY(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames"]),N=I===wS?"timePicker":"datePicker",P=s.useRef(null),{getPrefixCls:A,direction:F,getPopupContainer:H,rangePicker:k}=s.useContext(Ut),L=A("picker",o),{compactSize:T,compactItemClassnames:z}=Zo(L,F),V=A(),[q,G]=Ps("rangePicker",O,b),B=oa(L),[U,K,Y]=hT(L,B),[Q,Z]=HT(N,M,j,y||w,C),[ae]=AT(n,L),re=zT(u),ie=la(je=>{var ge;return(ge=v??T)!==null&&ge!==void 0?ge:je}),ve=s.useContext(ja),ue=g??ve,oe=s.useContext(ia),{hasFeedback:he,status:de,feedbackIcon:me}=oe,le=s.createElement(s.Fragment,null,I===wS?s.createElement(kT,null):s.createElement(PT,null),he&&me);s.useImperativeHandle(r,()=>P.current);const[pe]=ho("Calendar",dv),Ce=Object.assign(Object.assign({},pe),n.locale),[De]=uu("DatePicker",(a=Z.popup.root)===null||a===void 0?void 0:a.zIndex);return U(s.createElement(Go,{space:!0},s.createElement(GK,Object.assign({separator:s.createElement("span",{"aria-label":"to",className:`${L}-separator`},s.createElement(Fq,null)),disabled:ue,ref:P,placement:h,placeholder:Kq(Ce,I,S),suffixIcon:le,prevIcon:s.createElement("span",{className:`${L}-prev-icon`}),nextIcon:s.createElement("span",{className:`${L}-next-icon`}),superPrevIcon:s.createElement("span",{className:`${L}-super-prev-icon`}),superNextIcon:s.createElement("span",{className:`${L}-super-next-icon`}),transitionName:`${V}-slide-up`,picker:I},D,{className:se({[`${L}-${ie}`]:ie,[`${L}-${q}`]:G},Hl(L,Ds(de,$),he),K,z,f,k?.className,Y,B,_,Q.root),style:Object.assign(Object.assign(Object.assign({},k?.style),d),Z.root),locale:Ce.lang,prefixCls:L,getPopupContainer:c||H,generateConfig:e,components:re,direction:F,classNames:{popup:se(K,Y,B,_,Q.popup.root)},styles:{popup:Object.assign(Object.assign({},Z.popup.root),{zIndex:De})},allowClear:ae}))))});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=>{const t=(f,d)=>{const h=d===GO?"timePicker":"datePicker";return s.forwardRef((g,b)=>{var S;const{prefixCls:C,getPopupContainer:y,components:w,style:$,className:_,rootClassName:O,size:I,bordered:j,placement:M,placeholder:D,popupStyle:N,popupClassName:P,dropdownClassName:A,disabled:F,status:H,variant:k,onCalendarChange:L,styles:T,classNames:z}=g,V=iY(g,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames"]),{getPrefixCls:q,direction:G,getPopupContainer:B,[h]:U}=s.useContext(Ut),K=q("picker",C),{compactSize:Y,compactItemClassnames:Q}=Zo(K,G),Z=s.useRef(null),[ae,re]=Ps("datePicker",k,j),ie=oa(K),[ve,ue,oe]=hT(K,ie);s.useImperativeHandle(b,()=>Z.current);const he={showToday:!0},de=f||g.picker,me=q(),{onSelect:le,multiple:pe}=V,Ce=le&&f==="time"&&!pe,De=(be,ye,Re)=>{L?.(be,ye,Re),Ce&&le(be)},[je,ge]=HT(h,z,T,P||A,N),[Ie,_e]=AT(g,K),we=zT(w),Fe=la(be=>{var ye;return(ye=I??Y)!==null&&ye!==void 0?ye:be}),He=s.useContext(ja),it=F??He,Ze=s.useContext(ia),{hasFeedback:Ye,status:Je,feedbackIcon:Pe}=Ze,Oe=s.createElement(s.Fragment,null,de==="time"?s.createElement(kT,null):s.createElement(PT,null),Ye&&Pe),[Be]=ho("DatePicker",dv),$e=Object.assign(Object.assign({},Be),g.locale),[Te]=uu("DatePicker",(S=ge.popup.root)===null||S===void 0?void 0:S.zIndex);return ve(s.createElement(Go,{space:!0},s.createElement(tU,Object.assign({ref:Z,placeholder:Vq($e,de,D),suffixIcon:Oe,placement:M,prevIcon:s.createElement("span",{className:`${K}-prev-icon`}),nextIcon:s.createElement("span",{className:`${K}-next-icon`}),superPrevIcon:s.createElement("span",{className:`${K}-super-prev-icon`}),superNextIcon:s.createElement("span",{className:`${K}-super-next-icon`}),transitionName:`${me}-slide-up`,picker:f,onCalendarChange:De},he,V,{locale:$e.lang,className:se({[`${K}-${Fe}`]:Fe,[`${K}-${ae}`]:re},Hl(K,Ds(Je,H),Ye),ue,Q,U?.className,_,oe,ie,O,je.root),style:Object.assign(Object.assign(Object.assign({},U?.style),$),ge.root),prefixCls:K,getPopupContainer:y||B,generateConfig:e,components:we,direction:G,disabled:it,classNames:{popup:se(ue,oe,ie,O,je.popup.root)},styles:{popup:Object.assign(Object.assign({},ge.popup.root),{zIndex:Te})},allowClear:Ie,removeIcon:_e}))))})},n=t(),r=t(Uq,Wq),a=t(qq,Yq),o=t(Gq,Xq),c=t(Qq,Zq),u=t(wS,GO);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:o,TimePicker:u,QuarterPicker:c}},BT=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:o,QuarterPicker:c}=oY(e),u=aY(e),f=t;return f.WeekPicker=n,f.MonthPicker=r,f.YearPicker=a,f.RangePicker=u,f.TimePicker=o,f.QuarterPicker=c,f},Bs=BT(rK),lY=og(Bs,"popupAlign",void 0,"picker");Bs._InternalPanelDoNotUseOrYouWillBeFired=lY;const sY=og(Bs.RangePicker,"popupAlign",void 0,"picker");Bs._InternalRangePanelDoNotUseOrYouWillBeFired=sY;Bs.generatePicker=BT;function XO(e){return["small","middle","large"].includes(e)}function QO(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const FT=xe.createContext({latestIndex:0}),cY=FT.Provider,uY=({className:e,index:t,children:n,split:r,style:a})=>{const{latestIndex:o}=s.useContext(FT);return n==null?null:s.createElement(s.Fragment,null,s.createElement("div",{className:e,style:a},n),t<o&&r&&s.createElement("span",{className:`${e}-split`},r))};var dY=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 fY=s.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,size:o,className:c,style:u,classNames:f,styles:d}=va("space"),{size:h=o??"small",align:v,className:g,rootClassName:b,children:S,direction:C="horizontal",prefixCls:y,split:w,style:$,wrap:_=!1,classNames:O,styles:I}=e,j=dY(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[M,D]=Array.isArray(h)?h:[h,h],N=XO(D),P=XO(M),A=QO(D),F=QO(M),H=Ma(S,{keepEmpty:!0}),k=v===void 0&&C==="horizontal"?"center":v,L=r("space",y),[T,z,V]=eM(L),q=se(L,c,z,`${L}-${C}`,{[`${L}-rtl`]:a==="rtl",[`${L}-align-${k}`]:k,[`${L}-gap-row-${D}`]:N,[`${L}-gap-col-${M}`]:P},g,b,V),G=se(`${L}-item`,(n=O?.item)!==null&&n!==void 0?n:f.item);let B=0;const U=H.map((Q,Z)=>{var ae;Q!=null&&(B=Z);const re=Q?.key||`${G}-${Z}`;return s.createElement(uY,{className:G,key:re,index:Z,split:w,style:(ae=I?.item)!==null&&ae!==void 0?ae:d.item},Q)}),K=s.useMemo(()=>({latestIndex:B}),[B]);if(H.length===0)return null;const Y={};return _&&(Y.flexWrap="wrap"),!P&&F&&(Y.columnGap=M),!N&&A&&(Y.rowGap=D),T(s.createElement("div",Object.assign({ref:t,className:q,style:Object.assign(Object.assign(Object.assign({},Y),u),$)},j),s.createElement(cY,{value:K},U)))}),zn=fY;zn.Compact=A8;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 VT=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=s.useContext(Ut),{prefixCls:a,type:o="default",danger:c,disabled:u,loading:f,onClick:d,htmlType:h,children:v,className:g,menu:b,arrow:S,autoFocus:C,overlay:y,trigger:w,align:$,open:_,onOpenChange:O,placement:I,getPopupContainer:j,href:M,icon:D=s.createElement(eC,null),title:N,buttonsRender:P=ue=>ue,mouseEnterDelay:A,mouseLeaveDelay:F,overlayClassName:H,overlayStyle:k,destroyOnHidden:L,destroyPopupOnHide:T,dropdownRender:z,popupRender:V}=e,q=mY(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","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),G=n("dropdown",a),B=`${G}-button`,K={menu:b,arrow:S,autoFocus:C,align:$,disabled:u,trigger:u?[]:w,onOpenChange:O,getPopupContainer:j||t,mouseEnterDelay:A,mouseLeaveDelay:F,overlayClassName:H,overlayStyle:k,destroyOnHidden:L,popupRender:V||z},{compactSize:Y,compactItemClassnames:Q}=Zo(G,r),Z=se(B,Q,g);"destroyPopupOnHide"in e&&(K.destroyPopupOnHide=T),"overlay"in e&&(K.overlay=y),"open"in e&&(K.open=_),"placement"in e?K.placement=I:K.placement=r==="rtl"?"bottomLeft":"bottomRight";const ae=s.createElement(gn,{type:o,danger:c,disabled:u,loading:f,onClick:d,htmlType:h,href:M,title:N},v),re=s.createElement(gn,{type:o,danger:c,icon:D}),[ie,ve]=P([ae,re]);return s.createElement(zn.Compact,Object.assign({className:Z,size:Y,block:!0},q),ie,s.createElement(hg,Object.assign({},K),ve))};VT.__ANT_BUTTON=!0;const CC=hg;CC.Button=VT;function hY(e){return e==null?null:typeof e=="object"&&!s.isValidElement(e)?e:{title:e}}function $v(e){const[t,n]=s.useState(e);return s.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const vY=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)"}}}}},gY=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${te(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 ${te(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),ZO=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},pY=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},An(e)),gY(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},ZO(e,e.controlHeightSM)),"&-large":Object.assign({},ZO(e,e.controlHeightLG))})}},bY=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:a,labelRequiredMarkColor:o,labelColor:c,labelFontSize:u,labelHeight:f,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:h,itemMarginBottom:v}=e;return{[t]:Object.assign(Object.assign({},An(e)),{marginBottom:v,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":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:f,color:c,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%",[`&:has(> ${a}-switch:only-child, > ${a}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[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:Ix,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},ps=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),yY=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-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"}},[`${t}-col-24${n}-label,
        ${t}-col-xl-24${n}-label`]:ps(e)}}},SY=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{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"}}}}},xY=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:ps(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},CY=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${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`]:ps(e)},[`@media (max-width: ${te(e.screenXSMax)})`]:[xY(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:ps(e)}}}],[`@media (max-width: ${te(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:ps(e)}}},[`@media (max-width: ${te(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:ps(e)}}},[`@media (max-width: ${te(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:ps(e)}}}}},wY=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}),KT=(e,t)=>Sn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),wC=Kn("Form",(e,{rootPrefixCls:t})=>{const n=KT(e,t);return[pY(n),bY(n),vY(n),yY(n),SY(n),CY(n),Wv(n),Ix]},wY,{order:-1e3}),JO=[];function P0(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const UT=({help:e,helpStatus:t,errors:n=JO,warnings:r=JO,className:a,fieldId:o,onVisibleChanged:c})=>{const{prefixCls:u}=s.useContext(Px),f=`${u}-item-explain`,d=oa(u),[h,v,g]=wC(u,d),b=s.useMemo(()=>df(u),[u]),S=$v(n),C=$v(r),y=s.useMemo(()=>e!=null?[P0(e,"help",t)]:[].concat(ke(S.map((_,O)=>P0(_,"error","error",O))),ke(C.map((_,O)=>P0(_,"warning","warning",O)))),[e,t,S,C]),w=s.useMemo(()=>{const _={};return y.forEach(({key:O})=>{_[O]=(_[O]||0)+1}),y.map((O,I)=>Object.assign(Object.assign({},O),{key:_[O.key]>1?`${O.key}-fallback-${I}`:O.key}))},[y]),$={};return o&&($.id=`${o}_help`),h(s.createElement(Oi,{motionDeadline:b.motionDeadline,motionName:`${u}-show-help`,visible:!!w.length,onVisibleChanged:c},_=>{const{className:O,style:I}=_;return s.createElement("div",Object.assign({},$,{className:se(f,O,g,d,a,v),style:I}),s.createElement(xx,Object.assign({keys:w},df(u),{motionName:`${u}-show-help-item`,component:!1}),j=>{const{key:M,error:D,errorStatus:N,className:P,style:A}=j;return s.createElement("div",{key:M,className:se(P,{[`${f}-${N}`]:N}),style:A},D)}))}))};var $Y=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=(e,t)=>{const n=s.useContext(ja),{getPrefixCls:r,direction:a,requiredMark:o,colon:c,scrollToFirstError:u,className:f,style:d}=va("form"),{prefixCls:h,className:v,rootClassName:g,size:b,disabled:S=n,form:C,colon:y,labelAlign:w,labelWrap:$,labelCol:_,wrapperCol:O,hideRequiredMark:I,layout:j="horizontal",scrollToFirstError:M,requiredMark:D,onFinishFailed:N,name:P,style:A,feedbackIcons:F,variant:H}=e,k=$Y(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),L=la(b),T=s.useContext(oN),z=s.useMemo(()=>D!==void 0?D:I?!1:o!==void 0?o:!0,[I,D,o]),V=y??c,q=r("form",h),G=oa(q),[B,U,K]=wC(q,G),Y=se(q,`${q}-${j}`,{[`${q}-hide-required-mark`]:z===!1,[`${q}-rtl`]:a==="rtl",[`${q}-${L}`]:L},K,G,U,f,v,g),[Q]=iT(C),{__INTERNAL__:Z}=Q;Z.name=P;const ae=s.useMemo(()=>({name:P,labelAlign:w,labelCol:_,labelWrap:$,wrapperCol:O,layout:j,colon:V,requiredMark:z,itemRef:Z.itemRef,form:Q,feedbackIcons:F}),[P,w,_,O,j,V,z,Q,F]),re=s.useRef(null);s.useImperativeHandle(t,()=>{var ue;return Object.assign(Object.assign({},Q),{nativeElement:(ue=re.current)===null||ue===void 0?void 0:ue.nativeElement})});const ie=(ue,oe)=>{if(ue){let he={block:"nearest"};typeof ue=="object"&&(he=Object.assign(Object.assign({},he),ue)),Q.scrollToField(oe,he)}},ve=ue=>{if(N?.(ue),ue.errorFields.length){const oe=ue.errorFields[0].name;if(M!==void 0){ie(M,oe);return}u!==void 0&&ie(u,oe)}};return B(s.createElement(xM.Provider,{value:H},s.createElement(vN,{disabled:S},s.createElement(Os.Provider,{value:L},s.createElement(yM,{validateMessages:T},s.createElement(Yo.Provider,{value:ae},s.createElement(SM,{status:!0},s.createElement(fu,Object.assign({id:P},k,{name:P,onFinishFailed:ve,form:Q,ref:re,style:Object.assign(Object.assign({},d),A),className:Y})))))))))},EY=s.forwardRef(_Y);function OY(e){if(typeof e=="function")return e;const t=Ma(e);return t.length<=1?t[0]:t}const WT=()=>{const{status:e,errors:t=[],warnings:n=[]}=s.useContext(ia);return{status:e,errors:t,warnings:n}};WT.Context=ia;function IY(e){const[t,n]=s.useState(e),r=s.useRef(null),a=s.useRef([]),o=s.useRef(!1);s.useEffect(()=>(o.current=!1,()=>{o.current=!0,mn.cancel(r.current),r.current=null}),[]);function c(u){o.current||(r.current===null&&(a.current=[],r.current=mn(()=>{r.current=null,n(f=>{let d=f;return a.current.forEach(h=>{d=h(d)}),d})})),a.current.push(u))}return[t,c]}function RY(){const{itemRef:e}=s.useContext(Yo),t=s.useRef({});function n(r,a){const o=a&&typeof a=="object"&&Vl(a),c=r.join("_");return(t.current.name!==c||t.current.originRef!==o)&&(t.current.name=c,t.current.originRef=o,t.current.ref=_a(e(r),o)),t.current.ref}return n}const NY=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},MY=Rf(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=KT(e,t);return NY(n)});var jY=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 TY=24,DY=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:a,children:o,errors:c,warnings:u,_internalItemRender:f,extra:d,help:h,fieldId:v,marginBottom:g,onErrorVisibleChanged:b,label:S}=e,C=`${t}-item`,y=s.useContext(Yo),w=s.useMemo(()=>{let k=Object.assign({},a||y.wrapperCol||{});return S===null&&!r&&!a&&y.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(T=>{const z=T?[T]:[],V=Aa(y.labelCol,z),q=typeof V=="object"?V:{},G=Aa(k,z),B=typeof G=="object"?G:{};"span"in q&&!("offset"in B)&&q.span<TY&&(k=Si(k,[].concat(z,["offset"]),q.span))}),k},[a,y.wrapperCol,y.labelCol,S,r]),$=se(`${C}-control`,w.className),_=s.useMemo(()=>{const{labelCol:k,wrapperCol:L}=y;return jY(y,["labelCol","wrapperCol"])},[y]),O=s.useRef(null),[I,j]=s.useState(0);dn(()=>{d&&O.current?j(O.current.clientHeight):j(0)},[d]);const M=s.createElement("div",{className:`${C}-control-input`},s.createElement("div",{className:`${C}-control-input-content`},o)),D=s.useMemo(()=>({prefixCls:t,status:n}),[t,n]),N=g!==null||c.length||u.length?s.createElement(Px.Provider,{value:D},s.createElement(UT,{fieldId:v,errors:c,warnings:u,help:h,helpStatus:n,className:`${C}-explain-connected`,onVisibleChanged:b})):null,P={};v&&(P.id=`${v}_extra`);const A=d?s.createElement("div",Object.assign({},P,{className:`${C}-extra`,ref:O}),d):null,F=N||A?s.createElement("div",{className:`${C}-additional`,style:g?{minHeight:g+I}:{}},N,A):null,H=f&&f.mark==="pro_table_render"&&f.render?f.render(e,{input:M,errorList:N,extra:A}):s.createElement(s.Fragment,null,M,F);return s.createElement(Yo.Provider,{value:_},s.createElement(gC,Object.assign({},w,{className:$}),H),s.createElement(MY,{prefixCls:t}))};var PY={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"},kY=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:PY}))},AY=s.forwardRef(kY),zY=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 LY=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:a,colon:o,required:c,requiredMark:u,tooltip:f,vertical:d})=>{var h;const[v]=ho("Form"),{labelAlign:g,labelCol:b,labelWrap:S,colon:C}=s.useContext(Yo);if(!t)return null;const y=r||b||{},w=a||g,$=`${e}-item-label`,_=se($,w==="left"&&`${$}-left`,y.className,{[`${$}-wrap`]:!!S});let O=t;const I=o===!0||C!==!1&&o!==!1;I&&!d&&typeof t=="string"&&t.trim()&&(O=t.replace(/[:|：]\s*$/,""));const M=hY(f);if(M){const{icon:H=s.createElement(AY,null)}=M,k=zY(M,["icon"]),L=s.createElement(_i,Object.assign({},k),s.cloneElement(H,{className:`${e}-item-tooltip`,title:"",onClick:T=>{T.preventDefault()},tabIndex:null}));O=s.createElement(s.Fragment,null,O,L)}const D=u==="optional",N=typeof u=="function",P=u===!1;N?O=u(O,{required:!!c}):D&&!c&&(O=s.createElement(s.Fragment,null,O,s.createElement("span",{className:`${e}-item-optional`,title:""},v?.optional||((h=lo.Form)===null||h===void 0?void 0:h.optional))));let A;P?A="hidden":(D||N)&&(A="optional");const F=se({[`${e}-item-required`]:c,[`${e}-item-required-mark-${A}`]:A,[`${e}-item-no-colon`]:!I});return s.createElement(gC,Object.assign({},y,{className:_}),s.createElement("label",{htmlFor:n,className:F,title:typeof t=="string"?t:""},O))},HY={success:Fv,warning:Cx,error:su,validating:qo};function qT({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:a,prefixCls:o,meta:c,noStyle:u,name:f}){const d=`${o}-item`,{feedbackIcons:h}=s.useContext(Yo),v=aT(t,n,c,null,!!r,a),{isFormItemInput:g,status:b,hasFeedback:S,feedbackIcon:C,name:y}=s.useContext(ia),w=s.useMemo(()=>{var $;let _;if(r){const I=r!==!0&&r.icons||h,j=v&&(($=I?.({status:v,errors:t,warnings:n}))===null||$===void 0?void 0:$[v]),M=v?HY[v]:null;_=j!==!1&&M?s.createElement("span",{className:se(`${d}-feedback-icon`,`${d}-feedback-icon-${v}`)},j||s.createElement(M,null)):null}const O={status:v||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:_,isFormItemInput:!0,name:f};return u&&(O.status=(v??b)||"",O.isFormItemInput=g,O.hasFeedback=!!(r??S),O.feedbackIcon=r!==void 0?O.feedbackIcon:C,O.name=f??y),O},[v,r,u,g,b]);return s.createElement(ia.Provider,{value:w},e)}var BY=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 FY(e){const{prefixCls:t,className:n,rootClassName:r,style:a,help:o,errors:c,warnings:u,validateStatus:f,meta:d,hasFeedback:h,hidden:v,children:g,fieldId:b,required:S,isRequired:C,onSubItemMetaChange:y,layout:w,name:$}=e,_=BY(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),O=`${t}-item`,{requiredMark:I,layout:j}=s.useContext(Yo),M=w||j,D=M==="vertical",N=s.useRef(null),P=$v(c),A=$v(u),F=o!=null,H=!!(F||c.length||u.length),k=!!N.current&&du(N.current),[L,T]=s.useState(null);dn(()=>{if(H&&N.current){const B=getComputedStyle(N.current);T(Number.parseInt(B.marginBottom,10))}},[H,k]);const z=B=>{B||T(null)},q=((B=!1)=>{const U=B?P:d.errors,K=B?A:d.warnings;return aT(U,K,d,"",!!h,f)})(),G=se(O,n,r,{[`${O}-with-help`]:F||P.length||A.length,[`${O}-has-feedback`]:q&&h,[`${O}-has-success`]:q==="success",[`${O}-has-warning`]:q==="warning",[`${O}-has-error`]:q==="error",[`${O}-is-validating`]:q==="validating",[`${O}-hidden`]:v,[`${O}-${M}`]:M});return s.createElement("div",{className:G,style:a,ref:N},s.createElement(RT,Object.assign({className:`${O}-row`},or(_,["_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"])),s.createElement(LY,Object.assign({htmlFor:b},e,{requiredMark:I,required:S??C,prefixCls:t,vertical:D})),s.createElement(DY,Object.assign({},e,d,{errors:P,warnings:A,prefixCls:t,status:q,help:o,marginBottom:L,onErrorVisibleChanged:z}),s.createElement(bM.Provider,{value:y},s.createElement(qT,{prefixCls:t,meta:d,errors:d.errors,warnings:d.warnings,hasFeedback:h,validateStatus:q,name:$},g)))),!!L&&s.createElement("div",{className:`${O}-margin-offset`,style:{marginBottom:-L}}))}const VY="__SPLIT__";function KY(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const o=e[a],c=t[a];return o===c||typeof o=="function"||typeof c=="function"})}const UY=s.memo(({children:e})=>e,(e,t)=>KY(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function eI(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function WY(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:o,shouldUpdate:c,rules:u,children:f,required:d,label:h,messageVariables:v,trigger:g="onChange",validateTrigger:b,hidden:S,help:C,layout:y}=e,{getPrefixCls:w}=s.useContext(Ut),{name:$}=s.useContext(Yo),_=OY(f),O=typeof _=="function",I=s.useContext(bM),{validateTrigger:j}=s.useContext(Rs),M=b!==void 0?b:j,D=t!=null,N=w("form",o),P=oa(N),[A,F,H]=wC(N,P);Kl();const k=s.useContext(hf),L=s.useRef(null),[T,z]=IY({}),[V,q]=nu(()=>eI()),G=ae=>{const re=k?.getKey(ae.name);if(q(ae.destroy?eI():ae,!0),n&&C!==!1&&I){let ie=ae.name;if(ae.destroy)ie=L.current||ie;else if(re!==void 0){const[ve,ue]=re;ie=[ve].concat(ke(ue)),L.current=ie}I(ae,ie)}},B=(ae,re)=>{z(ie=>{const ve=Object.assign({},ie),oe=[].concat(ke(ae.name.slice(0,-1)),ke(re)).join(VY);return ae.destroy?delete ve[oe]:ve[oe]=ae,ve})},[U,K]=s.useMemo(()=>{const ae=ke(V.errors),re=ke(V.warnings);return Object.values(T).forEach(ie=>{ae.push.apply(ae,ke(ie.errors||[])),re.push.apply(re,ke(ie.warnings||[]))}),[ae,re]},[T,V.errors,V.warnings]),Y=RY();function Q(ae,re,ie){return n&&!S?s.createElement(qT,{prefixCls:N,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:V,errors:U,warnings:K,noStyle:!0,name:t},ae):s.createElement(FY,Object.assign({key:"row"},e,{className:se(r,H,P,F),prefixCls:N,fieldId:re,isRequired:ie,errors:U,warnings:K,meta:V,onSubItemMetaChange:B,layout:y,name:t}),ae)}if(!D&&!O&&!a)return A(Q(_));let Z={};return typeof h=="string"?Z.label=h:t&&(Z.label=String(t)),v&&(Z=Object.assign(Object.assign({},Z),v)),A(s.createElement(Tx,Object.assign({},e,{messageVariables:Z,trigger:g,validateTrigger:M,onMetaChange:G}),(ae,re,ie)=>{const ve=Wd(t).length&&re?re.name:[],ue=rT(ve,$),oe=d!==void 0?d:!!u?.some(me=>{if(me&&typeof me=="object"&&me.required&&!me.warningOnly)return!0;if(typeof me=="function"){const le=me(ie);return le?.required&&!le?.warningOnly}return!1}),he=Object.assign({},ae);let de=null;if(Array.isArray(_)&&D)de=_;else if(!(O&&(!(c||a)||D))){if(!(a&&!O&&!D))if(s.isValidElement(_)){const me=Object.assign(Object.assign({},_.props),he);if(me.id||(me.id=ue),C||U.length>0||K.length>0||e.extra){const Ce=[];(C||U.length>0)&&Ce.push(`${ue}_help`),e.extra&&Ce.push(`${ue}_extra`),me["aria-describedby"]=Ce.join(" ")}U.length>0&&(me["aria-invalid"]="true"),oe&&(me["aria-required"]="true"),Hi(_)&&(me.ref=Y(ve,_)),new Set([].concat(ke(Wd(g)),ke(Wd(M)))).forEach(Ce=>{me[Ce]=(...De)=>{var je,ge,Ie,_e,we;(Ie=he[Ce])===null||Ie===void 0||(je=Ie).call.apply(je,[he].concat(De)),(we=(_e=_.props)[Ce])===null||we===void 0||(ge=we).call.apply(ge,[_e].concat(De))}});const pe=[me["aria-required"],me["aria-invalid"],me["aria-describedby"]];de=s.createElement(UY,{control:he,update:_,childProps:pe},wa(_,me))}else O&&(c||a)&&!D?de=_(ie):de=_}return Q(de,ue,oe)}))}const YT=WY;YT.useStatus=WT;var qY=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 YY=e=>{var{prefixCls:t,children:n}=e,r=qY(e,["prefixCls","children"]);const{getPrefixCls:a}=s.useContext(Ut),o=a("form",t),c=s.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return s.createElement(hM,Object.assign({},r),(u,f,d)=>s.createElement(Px.Provider,{value:c},n(u.map(h=>Object.assign(Object.assign({},h),{fieldKey:h.key})),f,{errors:d.errors,warnings:d.warnings})))};function GY(){const{form:e}=s.useContext(Yo);return e}const fe=EY;fe.Item=YT;fe.List=YY;fe.ErrorList=UT;fe.useForm=iT;fe.useFormInstance=GY;fe.useWatch=pM;fe.Provider=yM;fe.create=()=>{};var XY={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"},QY=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:XY}))},GT=s.forwardRef(QY);function tI(e,t,n,r){var a=Jd.unstable_batchedUpdates?function(c){Jd.unstable_batchedUpdates(n,c)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}const ZY=e=>{const{getPrefixCls:t,direction:n}=s.useContext(Ut),{prefixCls:r,className:a}=e,o=t("input-group",r),c=t("input"),[u,f,d]=mT(c),h=se(o,d,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},f,a),v=s.useContext(ia),g=s.useMemo(()=>Object.assign(Object.assign({},v),{isFormItemInput:!1}),[v]);return u(s.createElement("span",{className:h,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(ia.Provider,{value:g},e.children)))},JY=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},eG=Kn(["Input","OTP"],e=>{const t=Sn(e,Ls(e));return JY(t)},Hs);var tG=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 nG=s.forwardRef((e,t)=>{const{className:n,value:r,onChange:a,onActiveChange:o,index:c,mask:u}=e,f=tG(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:d}=s.useContext(Ut),h=d("otp"),v=typeof u=="string"?u:r,g=s.useRef(null);s.useImperativeHandle(t,()=>g.current);const b=y=>{a(c,y.target.value)},S=()=>{mn(()=>{var y;const w=(y=g.current)===null||y===void 0?void 0:y.input;document.activeElement===w&&w&&w.select()})},C=y=>{const{key:w,ctrlKey:$,metaKey:_}=y;w==="ArrowLeft"?o(c-1):w==="ArrowRight"?o(c+1):w==="z"&&($||_)?y.preventDefault():w==="Backspace"&&!r&&o(c-1),S()};return s.createElement("span",{className:`${h}-input-wrapper`,role:"presentation"},u&&r!==""&&r!==void 0&&s.createElement("span",{className:`${h}-mask-icon`,"aria-hidden":"true"},v),s.createElement(Hf,Object.assign({"aria-label":`OTP Input ${c+1}`,type:u===!0?"password":"text"},f,{ref:g,value:r,onInput:b,onFocus:S,onKeyDown:C,onMouseDown:S,onMouseUp:S,className:se(n,{[`${h}-mask-input`]:u})})))});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 wh(e){return(e||"").split("")}const aG=e=>{const{index:t,prefixCls:n,separator:r}=e,a=typeof r=="function"?r(t):r;return a?s.createElement("span",{className:`${n}-separator`},a):null},iG=s.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:a,defaultValue:o,value:c,onChange:u,formatter:f,separator:d,variant:h,disabled:v,status:g,autoFocus:b,mask:S,type:C,onInput:y,inputMode:w}=e,$=rG(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:_,direction:O}=s.useContext(Ut),I=_("otp",n),j=ma($,{aria:!0,data:!0,attr:!0}),[M,D,N]=eG(I),P=la(Y=>a??Y),A=s.useContext(ia),F=Ds(A.status,g),H=s.useMemo(()=>Object.assign(Object.assign({},A),{status:F,hasFeedback:!1,feedbackIcon:null}),[A,F]),k=s.useRef(null),L=s.useRef({});s.useImperativeHandle(t,()=>({focus:()=>{var Y;(Y=L.current[0])===null||Y===void 0||Y.focus()},blur:()=>{var Y;for(let Q=0;Q<r;Q+=1)(Y=L.current[Q])===null||Y===void 0||Y.blur()},nativeElement:k.current}));const T=Y=>f?f(Y):Y,[z,V]=s.useState(()=>wh(T(o||"")));s.useEffect(()=>{c!==void 0&&V(wh(c))},[c]);const q=pn(Y=>{V(Y),y&&y(Y),u&&Y.length===r&&Y.every(Q=>Q)&&Y.some((Q,Z)=>z[Z]!==Q)&&u(Y.join(""))}),G=pn((Y,Q)=>{let Z=ke(z);for(let re=0;re<Y;re+=1)Z[re]||(Z[re]="");Q.length<=1?Z[Y]=Q:Z=Z.slice(0,Y).concat(wh(Q)),Z=Z.slice(0,r);for(let re=Z.length-1;re>=0&&!Z[re];re-=1)Z.pop();const ae=T(Z.map(re=>re||" ").join(""));return Z=wh(ae).map((re,ie)=>re===" "&&!Z[ie]?Z[ie]:re),Z}),B=(Y,Q)=>{var Z;const ae=G(Y,Q),re=Math.min(Y+Q.length,r-1);re!==Y&&ae[Y]!==void 0&&((Z=L.current[re])===null||Z===void 0||Z.focus()),q(ae)},U=Y=>{var Q;(Q=L.current[Y])===null||Q===void 0||Q.focus()},K={variant:h,disabled:v,status:F,mask:S,type:C,inputMode:w};return M(s.createElement("div",Object.assign({},j,{ref:k,className:se(I,{[`${I}-sm`]:P==="small",[`${I}-lg`]:P==="large",[`${I}-rtl`]:O==="rtl"},N,D),role:"group"}),s.createElement(ia.Provider,{value:H},Array.from({length:r}).map((Y,Q)=>{const Z=`otp-${Q}`,ae=z[Q]||"";return s.createElement(s.Fragment,{key:Z},s.createElement(nG,Object.assign({ref:re=>{L.current[Q]=re},index:Q,size:P,htmlSize:1,className:`${I}-input`,onChange:B,value:ae,onActiveChange:U,autoFocus:Q===0&&b},K)),Q<r-1&&s.createElement(aG,{separator:d,index:Q,prefixCls:I}))}))))});var oG={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"},lG=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:oG}))},sG=s.forwardRef(lG),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 uG=e=>e?s.createElement(GT,null):s.createElement(sG,null),dG={click:"onClick",hover:"onMouseOver"},fG=s.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:o=uG,suffix:c}=e,u=s.useContext(ja),f=n??u,d=typeof a=="object"&&a.visible!==void 0,[h,v]=s.useState(()=>d?a.visible:!1),g=s.useRef(null);s.useEffect(()=>{d&&v(a.visible)},[d,a]);const b=DT(g),S=()=>{var A;if(f)return;h&&b();const F=!h;v(F),typeof a=="object"&&((A=a.onVisibleChange)===null||A===void 0||A.call(a,F))},C=A=>{const F=dG[r]||"",H=o(h),k={[F]:S,className:`${A}-icon`,key:"passwordIcon",onMouseDown:L=>{L.preventDefault()},onMouseUp:L=>{L.preventDefault()}};return s.cloneElement(s.isValidElement(H)?H:s.createElement("span",null,H),k)},{className:y,prefixCls:w,inputPrefixCls:$,size:_}=e,O=cG(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:I}=s.useContext(Ut),j=I("input",$),M=I("input-password",w),D=a&&C(M),N=se(M,y,{[`${M}-${_}`]:!!_}),P=Object.assign(Object.assign({},or(O,["suffix","iconRender","visibilityToggle"])),{type:h?"text":"password",className:N,prefixCls:j,suffix:s.createElement(s.Fragment,null,D,c)});return _&&(P.size=_),s.createElement(Hf,Object.assign({ref:_a(t,g)},P))});var mG=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 hG=s.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:a,size:o,suffix:c,enterButton:u=!1,addonAfter:f,loading:d,disabled:h,onSearch:v,onChange:g,onCompositionStart:b,onCompositionEnd:S,variant:C,onPressEnter:y}=e,w=mG(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:$,direction:_}=s.useContext(Ut),O=s.useRef(!1),I=$("input-search",n),j=$("input",r),{compactSize:M}=Zo(I,_),D=la(K=>{var Y;return(Y=o??M)!==null&&Y!==void 0?Y:K}),N=s.useRef(null),P=K=>{K?.target&&K.type==="click"&&v&&v(K.target.value,K,{source:"clear"}),g?.(K)},A=K=>{var Y;document.activeElement===((Y=N.current)===null||Y===void 0?void 0:Y.input)&&K.preventDefault()},F=K=>{var Y,Q;v&&v((Q=(Y=N.current)===null||Y===void 0?void 0:Y.input)===null||Q===void 0?void 0:Q.value,K,{source:"input"})},H=K=>{O.current||d||(y?.(K),F(K))},k=typeof u=="boolean"?s.createElement(Vx,null):null,L=`${I}-button`;let T;const z=u||{},V=z.type&&z.type.__ANT_BUTTON===!0;V||z.type==="button"?T=wa(z,Object.assign({onMouseDown:A,onClick:K=>{var Y,Q;(Q=(Y=z?.props)===null||Y===void 0?void 0:Y.onClick)===null||Q===void 0||Q.call(Y,K),F(K)},key:"enterButton"},V?{className:L,size:D}:{})):T=s.createElement(gn,{className:L,color:u?"primary":"default",size:D,disabled:h,key:"enterButton",onMouseDown:A,onClick:F,loading:d,icon:k,variant:C==="borderless"||C==="filled"||C==="underlined"?"text":u?"solid":void 0},u),f&&(T=[T,wa(f,{key:"addonAfter"})]);const q=se(I,{[`${I}-rtl`]:_==="rtl",[`${I}-${D}`]:!!D,[`${I}-with-button`]:!!u},a),G=K=>{O.current=!0,b?.(K)},B=K=>{O.current=!1,S?.(K)},U=Object.assign(Object.assign({},w),{className:q,prefixCls:j,type:"search",size:D,variant:C,onPressEnter:H,onCompositionStart:G,onCompositionEnd:B,addonAfter:T,suffix:c,onChange:P,disabled:h});return s.createElement(Hf,Object.assign({ref:_a(N,t)},U))});var vG=`
  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;
`,gG=["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"],k0={},ri;function pG(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&&k0[n])return k0[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")),c=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u=gG.map(function(d){return"".concat(d,":").concat(r.getPropertyValue(d))}).join(";"),f={sizingStyle:u,paddingSize:o,borderSize:c,boxSizing:a};return t&&n&&(k0[n]=f),f}function bG(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;ri||(ri=document.createElement("textarea"),ri.setAttribute("tab-index","-1"),ri.setAttribute("aria-hidden","true"),ri.setAttribute("name","hiddenTextarea"),document.body.appendChild(ri)),e.getAttribute("wrap")?ri.setAttribute("wrap",e.getAttribute("wrap")):ri.removeAttribute("wrap");var a=pG(e,t),o=a.paddingSize,c=a.borderSize,u=a.boxSizing,f=a.sizingStyle;ri.setAttribute("style","".concat(f,";").concat(vG)),ri.value=e.value||e.placeholder||"";var d=void 0,h=void 0,v,g=ri.scrollHeight;if(u==="border-box"?g+=c:u==="content-box"&&(g-=o),n!==null||r!==null){ri.value=" ";var b=ri.scrollHeight-o;n!==null&&(d=b*n,u==="border-box"&&(d=d+o+c),g=Math.max(d,g)),r!==null&&(h=b*r,u==="border-box"&&(h=h+o+c),v=g>h?"":"hidden",g=Math.min(h,g))}var S={height:g,overflowY:v,resize:"none"};return d&&(S.minHeight=d),h&&(S.maxHeight=h),S}var yG=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],A0=0,z0=1,L0=2,SG=s.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,o=n.value,c=n.autoSize,u=n.onResize,f=n.className,d=n.style,h=n.disabled,v=n.onChange;n.onInternalAutoSize;var g=Kt(n,yG),b=Wn(a,{value:o,postState:function(K){return K??""}}),S=ce(b,2),C=S[0],y=S[1],w=function(K){y(K.target.value),v?.(K)},$=s.useRef();s.useImperativeHandle(t,function(){return{textArea:$.current}});var _=s.useMemo(function(){return c&&jt(c)==="object"?[c.minRows,c.maxRows]:[]},[c]),O=ce(_,2),I=O[0],j=O[1],M=!!c,D=s.useState(L0),N=ce(D,2),P=N[0],A=N[1],F=s.useState(),H=ce(F,2),k=H[0],L=H[1],T=function(){A(A0)};dn(function(){M&&T()},[o,I,j,M]),dn(function(){if(P===A0)A(z0);else if(P===z0){var U=bG($.current,!1,I,j);A(L0),L(U)}},[P]);var z=s.useRef(),V=function(){mn.cancel(z.current)},q=function(K){P===L0&&(u?.(K),c&&(V(),z.current=mn(function(){T()})))};s.useEffect(function(){return V},[]);var G=M?k:null,B=ee(ee({},d),G);return(P===A0||P===z0)&&(B.overflowY="hidden",B.overflowX="hidden"),s.createElement(xa,{onResize:q,disabled:!(c||u)},s.createElement("textarea",Me({},g,{ref:$,style:B,className:se(r,f,X({},"".concat(r,"-disabled"),h)),disabled:h,value:C,onChange:w})))}),xG=["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"],CG=xe.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,o=e.onFocus,c=e.onBlur,u=e.onChange,f=e.allowClear,d=e.maxLength,h=e.onCompositionStart,v=e.onCompositionEnd,g=e.suffix,b=e.prefixCls,S=b===void 0?"rc-textarea":b,C=e.showCount,y=e.count,w=e.className,$=e.style,_=e.disabled,O=e.hidden,I=e.classNames,j=e.styles,M=e.onResize,D=e.onClear,N=e.onPressEnter,P=e.readOnly,A=e.autoSize,F=e.onKeyDown,H=Kt(e,xG),k=Wn(r,{value:a,defaultValue:r}),L=ce(k,2),T=L[0],z=L[1],V=T==null?"":String(T),q=xe.useState(!1),G=ce(q,2),B=G[0],U=G[1],K=xe.useRef(!1),Y=xe.useState(null),Q=ce(Y,2),Z=Q[0],ae=Q[1],re=s.useRef(null),ie=s.useRef(null),ve=function(){var $e;return($e=ie.current)===null||$e===void 0?void 0:$e.textArea},ue=function(){ve().focus()};s.useImperativeHandle(t,function(){var Be;return{resizableTextArea:ie.current,focus:ue,blur:function(){ve().blur()},nativeElement:((Be=re.current)===null||Be===void 0?void 0:Be.nativeElement)||ve()}}),s.useEffect(function(){U(function(Be){return!_&&Be})},[_]);var oe=xe.useState(null),he=ce(oe,2),de=he[0],me=he[1];xe.useEffect(function(){if(de){var Be;(Be=ve()).setSelectionRange.apply(Be,ke(de))}},[de]);var le=MT(y,C),pe=(n=le.max)!==null&&n!==void 0?n:d,Ce=Number(pe)>0,De=le.strategy(V),je=!!pe&&De>pe,ge=function($e,Te){var be=Te;!K.current&&le.exceedFormatter&&le.max&&le.strategy(Te)>le.max&&(be=le.exceedFormatter(Te,{max:le.max}),Te!==be&&me([ve().selectionStart||0,ve().selectionEnd||0])),z(be),wv($e.currentTarget,$e,u,be)},Ie=function($e){K.current=!0,h?.($e)},_e=function($e){K.current=!1,ge($e,$e.currentTarget.value),v?.($e)},we=function($e){ge($e,$e.target.value)},Fe=function($e){$e.key==="Enter"&&N&&N($e),F?.($e)},He=function($e){U(!0),o?.($e)},it=function($e){U(!1),c?.($e)},Ze=function($e){z(""),ue(),wv(ve(),$e,u)},Ye=g,Je;le.show&&(le.showFormatter?Je=le.showFormatter({value:V,count:De,maxLength:pe}):Je="".concat(De).concat(Ce?" / ".concat(pe):""),Ye=xe.createElement(xe.Fragment,null,Ye,xe.createElement("span",{className:se("".concat(S,"-data-count"),I?.count),style:j?.count},Je)));var Pe=function($e){var Te;M?.($e),(Te=ve())!==null&&Te!==void 0&&Te.style.height&&ae(!0)},Oe=!A&&!C&&!f;return xe.createElement(SC,{ref:re,value:V,allowClear:f,handleReset:Ze,suffix:Ye,prefixCls:S,classNames:ee(ee({},I),{},{affixWrapper:se(I?.affixWrapper,X(X({},"".concat(S,"-show-count"),C),"".concat(S,"-textarea-allow-clear"),f))}),disabled:_,focused:B,className:se(w,je&&"".concat(S,"-out-of-range")),style:ee(ee({},$),Z&&!Oe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Je=="string"?Je:void 0}},hidden:O,readOnly:P,onClear:D},xe.createElement(SG,Me({},H,{autoSize:A,maxLength:d,onKeyDown:Fe,onChange:we,onFocus:He,onBlur:it,onCompositionStart:Ie,onCompositionEnd:_e,className:se(I?.textarea),style:ee(ee({},j?.textarea),{},{resize:$?.resize}),disabled:_,prefixCls:S,onResize:Pe,ref:ie,readOnly:P})))});const wG=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}}}}}},$G=Kn(["Input","TextArea"],e=>{const t=Sn(e,Ls(e));return wG(t)},Hs,{resetFont:!1});var _G=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 XT=s.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:a=!0,size:o,disabled:c,status:u,allowClear:f,classNames:d,rootClassName:h,className:v,style:g,styles:b,variant:S,showCount:C,onMouseDown:y,onResize:w}=e,$=_G(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:_,direction:O,allowClear:I,autoComplete:j,className:M,style:D,classNames:N,styles:P}=va("textArea"),A=s.useContext(ja),F=c??A,{status:H,hasFeedback:k,feedbackIcon:L}=s.useContext(ia),T=Ds(H,u),z=s.useRef(null);s.useImperativeHandle(t,()=>{var le;return{resizableTextArea:(le=z.current)===null||le===void 0?void 0:le.resizableTextArea,focus:pe=>{var Ce,De;yC((De=(Ce=z.current)===null||Ce===void 0?void 0:Ce.resizableTextArea)===null||De===void 0?void 0:De.textArea,pe)},blur:()=>{var pe;return(pe=z.current)===null||pe===void 0?void 0:pe.blur()}}});const V=_("input",r),q=oa(V),[G,B,U]=fT(V,h),[K]=$G(V,q),{compactSize:Y,compactItemClassnames:Q}=Zo(V,O),Z=la(le=>{var pe;return(pe=o??Y)!==null&&pe!==void 0?pe:le}),[ae,re]=Ps("textArea",S,a),ie=TT(f??I),[ve,ue]=s.useState(!1),[oe,he]=s.useState(!1),de=le=>{ue(!0),y?.(le);const pe=()=>{ue(!1),document.removeEventListener("mouseup",pe)};document.addEventListener("mouseup",pe)},me=le=>{var pe,Ce;if(w?.(le),ve&&typeof getComputedStyle=="function"){const De=(Ce=(pe=z.current)===null||pe===void 0?void 0:pe.nativeElement)===null||Ce===void 0?void 0:Ce.querySelector("textarea");De&&getComputedStyle(De).resize==="both"&&he(!0)}};return G(K(s.createElement(CG,Object.assign({autoComplete:j},$,{style:Object.assign(Object.assign({},D),g),styles:Object.assign(Object.assign({},P),b),disabled:F,allowClear:ie,className:se(U,q,v,h,Q,M,oe&&`${V}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},d),N),{textarea:se({[`${V}-sm`]:Z==="small",[`${V}-lg`]:Z==="large"},B,d?.textarea,N.textarea,ve&&`${V}-mouse-active`),variant:se({[`${V}-${ae}`]:re},Hl(V,T)),affixWrapper:se(`${V}-textarea-affix-wrapper`,{[`${V}-affix-wrapper-rtl`]:O==="rtl",[`${V}-affix-wrapper-sm`]:Z==="small",[`${V}-affix-wrapper-lg`]:Z==="large",[`${V}-textarea-show-count`]:C||((n=e.count)===null||n===void 0?void 0:n.show)},B)}),prefixCls:V,suffix:k&&s.createElement("span",{className:`${V}-textarea-suffix`},L),showCount:C,ref:z,onResize:me,onMouseDown:de}))))}),yt=Hf;yt.Group=ZY;yt.Search=hG;yt.TextArea=XT;yt.Password=fG;yt.OTP=iG;function EG(e,t,n){return typeof n=="boolean"?n:e.length?!0:Ma(t).some(a=>a.type===pj)}var QT=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 wg({suffixCls:e,tagName:t,displayName:n}){return r=>s.forwardRef((o,c)=>s.createElement(r,Object.assign({ref:c,suffixCls:e,tagName:t},o)))}const $C=s.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:o}=e,c=QT(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=s.useContext(Ut),f=u("layout",n),[d,h,v]=gj(f),g=r?`${f}-${r}`:f;return d(s.createElement(o,Object.assign({className:se(n||g,a,h,v),ref:t},c)))}),OG=s.forwardRef((e,t)=>{const{direction:n}=s.useContext(Ut),[r,a]=s.useState([]),{prefixCls:o,className:c,rootClassName:u,children:f,hasSider:d,tagName:h,style:v}=e,g=QT(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),b=or(g,["suffixCls"]),{getPrefixCls:S,className:C,style:y}=va("layout"),w=S("layout",o),$=EG(r,f,d),[_,O,I]=gj(w),j=se(w,{[`${w}-has-sider`]:$,[`${w}-rtl`]:n==="rtl"},C,c,u,O,I),M=s.useMemo(()=>({siderHook:{addSider:D=>{a(N=>[].concat(ke(N),[D]))},removeSider:D=>{a(N=>N.filter(P=>P!==D))}}}),[]);return _(s.createElement(mj.Provider,{value:M},s.createElement(h,Object.assign({ref:t,className:j,style:Object.assign(Object.assign({},y),v)},b),f)))}),IG=wg({tagName:"div",displayName:"Layout"})(OG),RG=wg({suffixCls:"header",tagName:"header",displayName:"Header"})($C),NG=wg({suffixCls:"footer",tagName:"footer",displayName:"Footer"})($C),MG=wg({suffixCls:"content",tagName:"main",displayName:"Content"})($C),wi=IG;wi.Header=RG;wi.Footer=NG;wi.Content=MG;wi.Sider=pj;wi._InternalSiderContext=mg;var jG={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"},TG=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:jG}))},nI=s.forwardRef(TG),DG={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"},PG=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:DG}))},rI=s.forwardRef(PG),kG={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:"页码"},AG=[10,20,50,100],zG=function(t){var n=t.pageSizeOptions,r=n===void 0?AG:n,a=t.locale,o=t.changeSize,c=t.pageSize,u=t.goButton,f=t.quickGo,d=t.rootPrefixCls,h=t.disabled,v=t.buildOptionText,g=t.showSizeChanger,b=t.sizeChangerRender,S=xe.useState(""),C=ce(S,2),y=C[0],w=C[1],$=function(){return!y||Number.isNaN(y)?void 0:Number(y)},_=typeof v=="function"?v:function(F){return"".concat(F," ").concat(a.items_per_page)},O=function(H){w(H.target.value)},I=function(H){u||y===""||(w(""),!(H.relatedTarget&&(H.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||H.relatedTarget.className.indexOf("".concat(d,"-item"))>=0))&&f?.($()))},j=function(H){y!==""&&(H.keyCode===Mt.ENTER||H.type==="click")&&(w(""),f?.($()))},M=function(){return r.some(function(H){return H.toString()===c.toString()})?r:r.concat([c]).sort(function(H,k){var L=Number.isNaN(Number(H))?0:Number(H),T=Number.isNaN(Number(k))?0:Number(k);return L-T})},D="".concat(d,"-options");if(!g&&!f)return null;var N=null,P=null,A=null;return g&&b&&(N=b({disabled:h,size:c,onSizeChange:function(H){o?.(Number(H))},"aria-label":a.page_size,className:"".concat(D,"-size-changer"),options:M().map(function(F){return{label:_(F),value:F}})})),f&&(u&&(A=typeof u=="boolean"?xe.createElement("button",{type:"button",onClick:j,onKeyUp:j,disabled:h,className:"".concat(D,"-quick-jumper-button")},a.jump_to_confirm):xe.createElement("span",{onClick:j,onKeyUp:j},u)),P=xe.createElement("div",{className:"".concat(D,"-quick-jumper")},a.jump_to,xe.createElement("input",{disabled:h,type:"text",value:y,onChange:O,onKeyUp:j,onBlur:I,"aria-label":a.page}),a.page,A)),xe.createElement("li",{className:D},N,P)},Ed=function(t){var n=t.rootPrefixCls,r=t.page,a=t.active,o=t.className,c=t.showTitle,u=t.onClick,f=t.onKeyPress,d=t.itemRender,h="".concat(n,"-item"),v=se(h,"".concat(h,"-").concat(r),X(X({},"".concat(h,"-active"),a),"".concat(h,"-disabled"),!r),o),g=function(){u(r)},b=function(y){f(y,u,r)},S=d(r,"page",xe.createElement("a",{rel:"nofollow"},r));return S?xe.createElement("li",{title:c?String(r):null,className:v,onClick:g,onKeyDown:b,tabIndex:0},S):null},LG=function(t,n,r){return r};function aI(){}function iI(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ms(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var HG=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,c=t.className,u=t.current,f=t.defaultCurrent,d=f===void 0?1:f,h=t.total,v=h===void 0?0:h,g=t.pageSize,b=t.defaultPageSize,S=b===void 0?10:b,C=t.onChange,y=C===void 0?aI:C,w=t.hideOnSinglePage,$=t.align,_=t.showPrevNextJumpers,O=_===void 0?!0:_,I=t.showQuickJumper,j=t.showLessItems,M=t.showTitle,D=M===void 0?!0:M,N=t.onShowSizeChange,P=N===void 0?aI:N,A=t.locale,F=A===void 0?kG:A,H=t.style,k=t.totalBoundaryShowSizeChanger,L=k===void 0?50:k,T=t.disabled,z=t.simple,V=t.showTotal,q=t.showSizeChanger,G=q===void 0?v>L:q,B=t.sizeChangerRender,U=t.pageSizeOptions,K=t.itemRender,Y=K===void 0?LG:K,Q=t.jumpPrevIcon,Z=t.jumpNextIcon,ae=t.prevIcon,re=t.nextIcon,ie=xe.useRef(null),ve=Wn(10,{value:g,defaultValue:S}),ue=ce(ve,2),oe=ue[0],he=ue[1],de=Wn(1,{value:u,defaultValue:d,postState:function(Ht){return Math.max(1,Math.min(Ht,ms(void 0,oe,v)))}}),me=ce(de,2),le=me[0],pe=me[1],Ce=xe.useState(le),De=ce(Ce,2),je=De[0],ge=De[1];s.useEffect(function(){ge(le)},[le]);var Ie=Math.max(1,le-(j?3:5)),_e=Math.min(ms(void 0,oe,v),le+(j?3:5));function we(bt,Ht){var nn=bt||xe.createElement("button",{type:"button","aria-label":Ht,className:"".concat(r,"-item-link")});return typeof bt=="function"&&(nn=xe.createElement(bt,ee({},t))),nn}function Fe(bt){var Ht=bt.target.value,nn=ms(void 0,oe,v),Xn;return Ht===""?Xn=Ht:Number.isNaN(Number(Ht))?Xn=je:Ht>=nn?Xn=nn:Xn=Number(Ht),Xn}function He(bt){return iI(bt)&&bt!==le&&iI(v)&&v>0}var it=v>oe?I:!1;function Ze(bt){(bt.keyCode===Mt.UP||bt.keyCode===Mt.DOWN)&&bt.preventDefault()}function Ye(bt){var Ht=Fe(bt);switch(Ht!==je&&ge(Ht),bt.keyCode){case Mt.ENTER:Oe(Ht);break;case Mt.UP:Oe(Ht-1);break;case Mt.DOWN:Oe(Ht+1);break}}function Je(bt){Oe(Fe(bt))}function Pe(bt){var Ht=ms(bt,oe,v),nn=le>Ht&&Ht!==0?Ht:le;he(bt),ge(nn),P?.(le,bt),pe(nn),y?.(nn,bt)}function Oe(bt){if(He(bt)&&!T){var Ht=ms(void 0,oe,v),nn=bt;return bt>Ht?nn=Ht:bt<1&&(nn=1),nn!==je&&ge(nn),pe(nn),y?.(nn,oe),nn}return le}var Be=le>1,$e=le<ms(void 0,oe,v);function Te(){Be&&Oe(le-1)}function be(){$e&&Oe(le+1)}function ye(){Oe(Ie)}function Re(){Oe(_e)}function Ge(bt,Ht){if(bt.key==="Enter"||bt.charCode===Mt.ENTER||bt.keyCode===Mt.ENTER){for(var nn=arguments.length,Xn=new Array(nn>2?nn-2:0),br=2;br<nn;br++)Xn[br-2]=arguments[br];Ht.apply(void 0,Xn)}}function ft(bt){Ge(bt,Te)}function $t(bt){Ge(bt,be)}function Qe(bt){Ge(bt,ye)}function at(bt){Ge(bt,Re)}function mt(bt){var Ht=Y(bt,"prev",we(ae,"prev page"));return xe.isValidElement(Ht)?xe.cloneElement(Ht,{disabled:!Be}):Ht}function st(bt){var Ht=Y(bt,"next",we(re,"next page"));return xe.isValidElement(Ht)?xe.cloneElement(Ht,{disabled:!$e}):Ht}function pt(bt){(bt.type==="click"||bt.keyCode===Mt.ENTER)&&Oe(je)}var Wt=null,Yt=ma(t,{aria:!0,data:!0}),ht=V&&xe.createElement("li",{className:"".concat(r,"-total-text")},V(v,[v===0?0:(le-1)*oe+1,le*oe>v?v:le*oe])),It=null,_t=ms(void 0,oe,v);if(w&&v<=oe)return null;var tt=[],Ue={rootPrefixCls:r,onClick:Oe,onKeyPress:Ge,showTitle:D,itemRender:Y,page:-1},qe=le-1>0?le-1:0,ct=le+1<_t?le+1:_t,Tt=I&&I.goButton,Dt=jt(z)==="object"?z.readOnly:!z,Jt=Tt,ut=null;z&&(Tt&&(typeof Tt=="boolean"?Jt=xe.createElement("button",{type:"button",onClick:pt,onKeyUp:pt},F.jump_to_confirm):Jt=xe.createElement("span",{onClick:pt,onKeyUp:pt},Tt),Jt=xe.createElement("li",{title:D?"".concat(F.jump_to).concat(le,"/").concat(_t):null,className:"".concat(r,"-simple-pager")},Jt)),ut=xe.createElement("li",{title:D?"".concat(le,"/").concat(_t):null,className:"".concat(r,"-simple-pager")},Dt?je:xe.createElement("input",{type:"text","aria-label":F.jump_to,value:je,disabled:T,onKeyDown:Ze,onKeyUp:Ye,onChange:Ye,onBlur:Je,size:3}),xe.createElement("span",{className:"".concat(r,"-slash")},"/"),_t));var ot=j?1:2;if(_t<=3+ot*2){_t||tt.push(xe.createElement(Ed,Me({},Ue,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Lt=1;Lt<=_t;Lt+=1)tt.push(xe.createElement(Ed,Me({},Ue,{key:Lt,page:Lt,active:le===Lt})))}else{var tn=j?F.prev_3:F.prev_5,hn=j?F.next_3:F.next_5,cn=Y(Ie,"jump-prev",we(Q,"prev page")),En=Y(_e,"jump-next",we(Z,"next page"));O&&(Wt=cn?xe.createElement("li",{title:D?tn:null,key:"prev",onClick:ye,tabIndex:0,onKeyDown:Qe,className:se("".concat(r,"-jump-prev"),X({},"".concat(r,"-jump-prev-custom-icon"),!!Q))},cn):null,It=En?xe.createElement("li",{title:D?hn:null,key:"next",onClick:Re,tabIndex:0,onKeyDown:at,className:se("".concat(r,"-jump-next"),X({},"".concat(r,"-jump-next-custom-icon"),!!Z))},En):null);var rn=Math.max(1,le-ot),xn=Math.min(le+ot,_t);le-1<=ot&&(xn=1+ot*2),_t-le<=ot&&(rn=_t-ot*2);for(var lt=rn;lt<=xn;lt+=1)tt.push(xe.createElement(Ed,Me({},Ue,{key:lt,page:lt,active:le===lt})));if(le-1>=ot*2&&le!==3&&(tt[0]=xe.cloneElement(tt[0],{className:se("".concat(r,"-item-after-jump-prev"),tt[0].props.className)}),tt.unshift(Wt)),_t-le>=ot*2&&le!==_t-2){var St=tt[tt.length-1];tt[tt.length-1]=xe.cloneElement(St,{className:se("".concat(r,"-item-before-jump-next"),St.props.className)}),tt.push(It)}rn!==1&&tt.unshift(xe.createElement(Ed,Me({},Ue,{key:1,page:1}))),xn!==_t&&tt.push(xe.createElement(Ed,Me({},Ue,{key:_t,page:_t})))}var Bt=mt(qe);if(Bt){var kt=!Be||!_t;Bt=xe.createElement("li",{title:D?F.prev_page:null,onClick:Te,tabIndex:kt?null:0,onKeyDown:ft,className:se("".concat(r,"-prev"),X({},"".concat(r,"-disabled"),kt)),"aria-disabled":kt},Bt)}var vt=st(ct);if(vt){var Et,Qt;z?(Et=!$e,Qt=Be?0:null):(Et=!$e||!_t,Qt=Et?null:0),vt=xe.createElement("li",{title:D?F.next_page:null,onClick:be,tabIndex:Qt,onKeyDown:$t,className:se("".concat(r,"-next"),X({},"".concat(r,"-disabled"),Et)),"aria-disabled":Et},vt)}var on=se(r,c,X(X(X(X(X({},"".concat(r,"-start"),$==="start"),"".concat(r,"-center"),$==="center"),"".concat(r,"-end"),$==="end"),"".concat(r,"-simple"),z),"".concat(r,"-disabled"),T));return xe.createElement("ul",Me({className:on,style:H,ref:ie},Yt),ht,Bt,z?ut:tt,vt,xe.createElement(zG,{locale:F,rootPrefixCls:r,disabled:T,selectPrefixCls:o,changeSize:Pe,pageSize:oe,pageSizeOptions:U,quickGo:it?Oe:null,goButton:Jt,showSizeChanger:G,sizeChangerRender:B}))};const BG=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}}}}},FG=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:te(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:te(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:te(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:te(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM),input:Object.assign(Object.assign({},mC(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},VG=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:te(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:te(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${te(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${te(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:`${te(e.inputOutlineOffset)} 0 ${te(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},KG=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:te(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:`${te(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:te(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},zf(e)),lC(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Sg(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},UG=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:te(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${te(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${te(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}}}}},WG=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},An(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-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:te(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),UG(e)),KG(e)),VG(e)),FG(e)),BG(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"}}},qG=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Wo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},so(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:so(e)}}}},ZT=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},Hs(e)),JT=e=>Sn(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),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"},Ls(e)),YG=Kn("Pagination",e=>{const t=JT(e);return[WG(t),qG(t)]},ZT),GG=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:`${te(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}}}}},XG=Rf(["Pagination","bordered"],e=>{const t=JT(e);return GG(t)},ZT);function oI(e){return s.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var QG=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 eD=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:o,style:c,size:u,locale:f,responsive:d,showSizeChanger:h,selectComponentClass:v,pageSizeOptions:g}=e,b=QG(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:S}=ug(d),[,C]=Ta(),{getPrefixCls:y,direction:w,showSizeChanger:$,className:_,style:O}=va("pagination"),I=y("pagination",n),[j,M,D]=YG(I),N=la(u),P=N==="small"||!!(S&&!N&&d),[A]=ho("Pagination",lN),F=Object.assign(Object.assign({},A),f),[H,k]=oI(h),[L,T]=oI($),z=H??L,V=k??T,q=v||Rt,G=s.useMemo(()=>g?g.map(Z=>Number(Z)):void 0,[g]),B=Z=>{var ae;const{disabled:re,size:ie,onSizeChange:ve,"aria-label":ue,className:oe,options:he}=Z,{className:de,onChange:me}=V||{},le=(ae=he.find(pe=>String(pe.value)===String(ie)))===null||ae===void 0?void 0:ae.value;return s.createElement(q,Object.assign({disabled:re,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:pe=>pe.parentNode,"aria-label":ue,options:he},V,{value:le,onChange:(pe,Ce)=>{ve?.(pe),me?.(pe,Ce)},size:P?"small":"middle",className:se(oe,de)}))},U=s.useMemo(()=>{const Z=s.createElement("span",{className:`${I}-item-ellipsis`},"•••"),ae=s.createElement("button",{className:`${I}-item-link`,type:"button",tabIndex:-1},w==="rtl"?s.createElement(mf,null):s.createElement(pf,null)),re=s.createElement("button",{className:`${I}-item-link`,type:"button",tabIndex:-1},w==="rtl"?s.createElement(pf,null):s.createElement(mf,null)),ie=s.createElement("a",{className:`${I}-item-link`},s.createElement("div",{className:`${I}-item-container`},w==="rtl"?s.createElement(rI,{className:`${I}-item-link-icon`}):s.createElement(nI,{className:`${I}-item-link-icon`}),Z)),ve=s.createElement("a",{className:`${I}-item-link`},s.createElement("div",{className:`${I}-item-container`},w==="rtl"?s.createElement(nI,{className:`${I}-item-link-icon`}):s.createElement(rI,{className:`${I}-item-link-icon`}),Z));return{prevIcon:ae,nextIcon:re,jumpPrevIcon:ie,jumpNextIcon:ve}},[w,I]),K=y("select",r),Y=se({[`${I}-${t}`]:!!t,[`${I}-mini`]:P,[`${I}-rtl`]:w==="rtl",[`${I}-bordered`]:C.wireframe},_,a,o,M,D),Q=Object.assign(Object.assign({},O),c);return j(s.createElement(s.Fragment,null,C.wireframe&&s.createElement(XG,{prefixCls:I}),s.createElement(HG,Object.assign({},U,b,{style:Q,prefixCls:I,selectPrefixCls:K,className:Y,locale:F,pageSizeOptions:G,showSizeChanger:z,sizeChangerRender:B}))))},_v=100,tD=_v/5,nD=_v/2-tD/2,H0=nD*2*Math.PI,lI=50,sI=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return s.createElement("circle",{className:se(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:nD,cx:lI,cy:lI,strokeWidth:tD,style:n})},ZG=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,a=`${r}-hidden`,[o,c]=s.useState(!1);dn(()=>{e!==0&&c(!0)},[e!==0]);const u=Math.max(Math.min(e,100),0);if(!o)return null;const f={strokeDashoffset:`${H0/4}`,strokeDasharray:`${H0*u/100} ${H0*(100-u)/100}`};return s.createElement("span",{className:se(r,`${n}-progress`,u<=0&&a)},s.createElement("svg",{viewBox:`0 0 ${_v} ${_v}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u},s.createElement(sI,{dotClassName:n,hasCircleCls:!0}),s.createElement(sI,{dotClassName:n,style:f})))};function JG(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,o=`${a}-hidden`;return s.createElement(s.Fragment,null,s.createElement("span",{className:se(a,n>0&&o)},s.createElement("span",{className:se(r,`${t}-dot-spin`)},[1,2,3,4].map(c=>s.createElement("i",{className:`${t}-dot-item`,key:c})))),s.createElement(ZG,{prefixCls:t,percent:n}))}function eX(e){var t;const{prefixCls:n,indicator:r,percent:a}=e,o=`${n}-dot`;return r&&s.isValidElement(r)?wa(r,{className:se((t=r.props)===null||t===void 0?void 0:t.className,o),percent:a}):s.createElement(JG,{prefixCls:n,percent:a})}const tX=new jn("antSpinMove",{to:{opacity:1}}),nX=new jn("antRotate",{to:{transform:"rotate(405deg)"}}),rX=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},An(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:tX,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:nX,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"}})}},aX=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},iX=Kn("Spin",e=>{const t=Sn(e,{spinDotDefault:e.colorTextDescription});return rX(t)},aX),oX=200,cI=[[30,.05],[70,.03],[96,.01]];function lX(e,t){const[n,r]=s.useState(0),a=s.useRef(null),o=t==="auto";return s.useEffect(()=>(o&&e&&(r(0),a.current=setInterval(()=>{r(c=>{const u=100-c;for(let f=0;f<cI.length;f+=1){const[d,h]=cI[f];if(c<=d)return c+u*h}return c})},oX)),()=>{a.current&&(clearInterval(a.current),a.current=null)}),[o,e]),o?n:t}var sX=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 rD;function cX(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Bf=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:a=0,className:o,rootClassName:c,size:u="default",tip:f,wrapperClassName:d,style:h,children:v,fullscreen:g=!1,indicator:b,percent:S}=e,C=sX(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:y,direction:w,className:$,style:_,indicator:O}=va("spin"),I=y("spin",n),[j,M,D]=iX(I),[N,P]=s.useState(()=>r&&!cX(r,a)),A=lX(N,S);s.useEffect(()=>{if(r){const V=zW(a,()=>{P(!0)});return V(),()=>{var q;(q=V?.cancel)===null||q===void 0||q.call(V)}}P(!1)},[a,r]);const F=s.useMemo(()=>typeof v<"u"&&!g,[v,g]),H=se(I,$,{[`${I}-sm`]:u==="small",[`${I}-lg`]:u==="large",[`${I}-spinning`]:N,[`${I}-show-text`]:!!f,[`${I}-rtl`]:w==="rtl"},o,!g&&c,M,D),k=se(`${I}-container`,{[`${I}-blur`]:N}),L=(t=b??O)!==null&&t!==void 0?t:rD,T=Object.assign(Object.assign({},_),h),z=s.createElement("div",Object.assign({},C,{style:T,className:H,"aria-live":"polite","aria-busy":N}),s.createElement(eX,{prefixCls:I,indicator:L,percent:A}),f&&(F||g)?s.createElement("div",{className:`${I}-text`},f):null);return j(F?s.createElement("div",Object.assign({},C,{className:se(`${I}-nested-loading`,d,M,D)}),N&&s.createElement("div",{key:"loading"},z),s.createElement("div",{className:k,key:"container"},v)):g?s.createElement("div",{className:se(`${I}-fullscreen`,{[`${I}-fullscreen-show`]:N},c,M,D)},z):z)};Bf.setDefaultIndicator=e=>{rD=e};const _C=xe.createContext({});_C.Consumer;var aD=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 uX=e=>{var{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,c=aD(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:u}=s.useContext(Ut),f=u("list",t),d=se(`${f}-item-meta`,n),h=xe.createElement("div",{className:`${f}-item-meta-content`},a&&xe.createElement("h4",{className:`${f}-item-meta-title`},a),o&&xe.createElement("div",{className:`${f}-item-meta-description`},o));return xe.createElement("div",Object.assign({},c,{className:d}),r&&xe.createElement("div",{className:`${f}-item-meta-avatar`},r),(a||o)&&h)},dX=xe.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:a,extra:o,styles:c,className:u,classNames:f,colStyle:d}=e,h=aD(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:v,itemLayout:g}=s.useContext(_C),{getPrefixCls:b,list:S}=s.useContext(Ut),C=M=>{var D,N;return se((N=(D=S?.item)===null||D===void 0?void 0:D.classNames)===null||N===void 0?void 0:N[M],f?.[M])},y=M=>{var D,N;return Object.assign(Object.assign({},(N=(D=S?.item)===null||D===void 0?void 0:D.styles)===null||N===void 0?void 0:N[M]),c?.[M])},w=()=>{let M=!1;return s.Children.forEach(r,D=>{typeof D=="string"&&(M=!0)}),M&&s.Children.count(r)>1},$=()=>g==="vertical"?!!o:!w(),_=b("list",n),O=a&&a.length>0&&xe.createElement("ul",{className:se(`${_}-item-action`,C("actions")),key:"actions",style:y("actions")},a.map((M,D)=>xe.createElement("li",{key:`${_}-item-action-${D}`},M,D!==a.length-1&&xe.createElement("em",{className:`${_}-item-action-split`})))),I=v?"div":"li",j=xe.createElement(I,Object.assign({},h,v?{}:{ref:t},{className:se(`${_}-item`,{[`${_}-item-no-flex`]:!$()},u)}),g==="vertical"&&o?[xe.createElement("div",{className:`${_}-item-main`,key:"content"},r,O),xe.createElement("div",{className:se(`${_}-item-extra`,C("extra")),key:"extra",style:y("extra")},o)]:[r,O,wa(o,{key:"extra"})]);return v?xe.createElement(gC,{ref:t,flex:1,style:d},j):j}),iD=dX;iD.Meta=uX;const fX=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:a,itemPaddingSM:o,itemPaddingLG:c,marginLG:u,borderRadiusLG:f}=e,d=te(e.calc(f).sub(e.lineWidth).equal());return{[t]:{border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:f,[`${n}-header`]:{borderRadius:`${d} ${d} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${d} ${d}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${te(a)} ${te(u)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:c}}}},mX=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:a,marginSM:o,margin:c}=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 ${te(c)}`}}}}}},hX=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:a,paddingSM:o,marginLG:c,padding:u,itemPadding:f,colorPrimary:d,itemPaddingSM:h,itemPaddingLG:v,paddingXS:g,margin:b,colorText:S,colorTextDescription:C,motionDurationSlow:y,lineWidth:w,headerBg:$,footerBg:_,emptyTextPadding:O,metaMarginBottom:I,avatarMarginRight:j,titleMarginBottom:M,descriptionFontSize:D}=e;return{[t]:Object.assign(Object.assign({},An(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:$},[`${t}-footer`]:{background:_},[`${t}-header, ${t}-footer`]:{paddingBlock:o},[`${t}-pagination`]:{marginBlockStart:c,[`${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:S,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:j},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:S},[`${t}-item-meta-title`]:{margin:`0 0 ${te(e.marginXXS)} 0`,color:S,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:S,transition:`all ${y}`,"&:hover":{color:d}}},[`${t}-item-meta-description`]:{color:C,fontSize:D,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 ${te(g)}`,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:`${te(u)} 0`,color:C,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:O,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:c},[`${t}-item-meta`]:{marginBlockEnd:I,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:M,color:S,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:u,marginInlineStart:"auto","> li":{padding:`0 ${te(u)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${te(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:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:v},[`${t}-sm ${t}-item`]:{padding:h},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},vX=e=>({contentWidth:220,itemPadding:`${te(e.paddingContentVertical)} 0`,itemPaddingSM:`${te(e.paddingContentVerticalSM)} ${te(e.paddingContentHorizontal)}`,itemPaddingLG:`${te(e.paddingContentVerticalLG)} ${te(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),gX=Kn("List",e=>{const t=Sn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[hX(t),fX(t),mX(t)]},vX);var pX=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 bX(e,t){const{pagination:n=!1,prefixCls:r,bordered:a=!1,split:o=!0,className:c,rootClassName:u,style:f,children:d,itemLayout:h,loadMore:v,grid:g,dataSource:b=[],size:S,header:C,footer:y,loading:w=!1,rowKey:$,renderItem:_,locale:O}=e,I=pX(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),j=n&&typeof n=="object"?n:{},[M,D]=s.useState(j.defaultCurrent||1),[N,P]=s.useState(j.defaultPageSize||10),{getPrefixCls:A,direction:F,className:H,style:k}=va("list"),{renderEmpty:L}=s.useContext(Ut),T={current:1,total:0,position:"bottom"},z=Ie=>(_e,we)=>{var Fe;D(_e),P(we),n&&((Fe=n?.[Ie])===null||Fe===void 0||Fe.call(n,_e,we))},V=z("onChange"),q=z("onShowSizeChange"),G=(Ie,_e)=>{if(!_)return null;let we;return typeof $=="function"?we=$(Ie):$?we=Ie[$]:we=Ie.key,we||(we=`list-item-${_e}`),s.createElement(s.Fragment,{key:we},_(Ie,_e))},B=!!(v||n||y),U=A("list",r),[K,Y,Q]=gX(U);let Z=w;typeof Z=="boolean"&&(Z={spinning:Z});const ae=!!Z?.spinning,re=la(S);let ie="";switch(re){case"large":ie="lg";break;case"small":ie="sm";break}const ve=se(U,{[`${U}-vertical`]:h==="vertical",[`${U}-${ie}`]:ie,[`${U}-split`]:o,[`${U}-bordered`]:a,[`${U}-loading`]:ae,[`${U}-grid`]:!!g,[`${U}-something-after-last-item`]:B,[`${U}-rtl`]:F==="rtl"},H,c,u,Y,Q),ue=vf(T,{total:b.length,current:M,pageSize:N},n||{}),oe=Math.ceil(ue.total/ue.pageSize);ue.current=Math.min(ue.current,oe);const he=n&&s.createElement("div",{className:se(`${U}-pagination`)},s.createElement(eD,Object.assign({align:"end"},ue,{onChange:V,onShowSizeChange:q})));let de=ke(b);n&&b.length>(ue.current-1)*ue.pageSize&&(de=ke(b).splice((ue.current-1)*ue.pageSize,ue.pageSize));const me=Object.keys(g||{}).some(Ie=>["xs","sm","md","lg","xl","xxl"].includes(Ie)),le=ug(me),pe=s.useMemo(()=>{for(let Ie=0;Ie<Ns.length;Ie+=1){const _e=Ns[Ie];if(le[_e])return _e}},[le]),Ce=s.useMemo(()=>{if(!g)return;const Ie=pe&&g[pe]?g[pe]:g.column;if(Ie)return{width:`${100/Ie}%`,maxWidth:`${100/Ie}%`}},[JSON.stringify(g),pe]);let De=ae&&s.createElement("div",{style:{minHeight:53}});if(de.length>0){const Ie=de.map(G);De=g?s.createElement(RT,{gutter:g.gutter},s.Children.map(Ie,_e=>s.createElement("div",{key:_e?.key,style:Ce},_e))):s.createElement("ul",{className:`${U}-items`},Ie)}else!d&&!ae&&(De=s.createElement("div",{className:`${U}-empty-text`},O?.emptyText||L?.("List")||s.createElement(Hx,{componentName:"List"})));const je=ue.position,ge=s.useMemo(()=>({grid:g,itemLayout:h}),[JSON.stringify(g),h]);return K(s.createElement(_C.Provider,{value:ge},s.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},k),f),className:ve},I),(je==="top"||je==="both")&&he,C&&s.createElement("div",{className:`${U}-header`},C),s.createElement(Bf,Object.assign({},Z),De,d),y&&s.createElement("div",{className:`${U}-footer`},y),v||(je==="bottom"||je==="both")&&he)))}const yX=s.forwardRef(bX),_S=yX;_S.Item=iD;const SX=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let yi=null,Ss=e=>e(),yf=[],Sf={};function uI(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=Sf,o=e?.()||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:a}}const xX=xe.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=s.useContext(Ut),o=Sf.prefixCls||a("message"),c=s.useContext(TB),[u,f]=XN(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),c.message));return xe.useImperativeHandle(t,()=>{const d=Object.assign({},u);return Object.keys(d).forEach(h=>{d[h]=(...v)=>(r(),u[h].apply(u,v))}),{instance:d,sync:r}}),f}),CX=xe.forwardRef((e,t)=>{const[n,r]=xe.useState(uI),a=()=>{r(uI)};xe.useEffect(a,[]);const o=Yz(),c=o.getRootPrefixCls(),u=o.getIconPrefixCls(),f=o.getTheme(),d=xe.createElement(xX,{ref:t,sync:a,messageConfig:n});return xe.createElement(vo,{prefixCls:c,iconPrefixCls:u,theme:f},o.holderRender?o.holderRender(d):d)}),$g=()=>{if(!yi){const e=document.createDocumentFragment(),t={fragment:e};yi=t,Ss(()=>{JN()(xe.createElement(CX,{ref:r=>{const{instance:a,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=o,$g())})}}),e)});return}yi.instance&&(yf.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Ss(()=>{const r=yi.instance.open(Object.assign(Object.assign({},Sf),e.config));r?.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Ss(()=>{yi?.instance.destroy(e.key)});break;default:Ss(()=>{var r;const a=(r=yi.instance)[t].apply(r,ke(e.args));a?.then(e.resolve),e.setCloseFn(a)})}}),yf=[])};function wX(e){Sf=Object.assign(Object.assign({},Sf),e),Ss(()=>{var t;(t=yi?.sync)===null||t===void 0||t.call(yi)})}function $X(e){const t=_x(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return yf.push(a),()=>{r?Ss(()=>{r()}):a.skipped=!0}});return $g(),t}function _X(e,t){const n=_x(r=>{let a;const o={type:e,args:t,resolve:r,setCloseFn:c=>{a=c}};return yf.push(o),()=>{a?Ss(()=>{a()}):o.skipped=!0}});return $g(),n}const EX=e=>{yf.push({type:"destroy",key:e}),$g()},OX=["success","info","warning","error","loading"],IX={open:$X,destroy:EX,config:wX,useMessage:u8,_InternalPanelDoNotUseOrYouWillBeFired:n8},EC=IX;OX.forEach(e=>{EC[e]=(...t)=>_X(e,t)});var RX={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},NX=function(){var t=s.useRef([]),n=s.useRef(null);return s.useEffect(function(){var r=Date.now(),a=!1;t.current.forEach(function(o){if(o){a=!0;var c=o.style;c.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(c.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},dI=0,MX=Ca();function jX(){var e;return MX?(e=dI,dI+=1):e="TEST_OR_SSR",e}const TX=(function(e){var t=s.useState(),n=ce(t,2),r=n[0],a=n[1];return s.useEffect(function(){a("rc_progress_".concat(jX()))},[]),e||r});var fI=function(t){var n=t.bg,r=t.children;return s.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function mI(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 DX=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,o=e.radius,c=e.style,u=e.ptg,f=e.strokeLinecap,d=e.strokeWidth,h=e.size,v=e.gapDegree,g=r&&jt(r)==="object",b=g?"#FFF":void 0,S=h/2,C=s.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:S,cy:S,stroke:b,strokeLinecap:f,strokeWidth:d,opacity:u===0?0:1,style:c,ref:t});if(!g)return C;var y="".concat(a,"-conic"),w=v?"".concat(180+v/2,"deg"):"0deg",$=mI(r,(360-v)/360),_=mI(r,1),O="conic-gradient(from ".concat(w,", ").concat($.join(", "),")"),I="linear-gradient(to ".concat(v?"bottom":"top",", ").concat(_.join(", "),")");return s.createElement(s.Fragment,null,s.createElement("mask",{id:y},C),s.createElement("foreignObject",{x:0,y:0,width:h,height:h,mask:"url(#".concat(y,")")},s.createElement(fI,{bg:I},s.createElement(fI,{bg:O}))))}),Ld=100,B0=function(t,n,r,a,o,c,u,f,d,h){var v=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,g=r/100*360*((360-c)/360),b=c===0?0:{bottom:0,top:180,left:90,right:-90}[u],S=(100-a)/100*n;d==="round"&&a!==100&&(S+=h/2,S>=n&&(S=n-.01));var C=Ld/2;return{stroke:typeof f=="string"?f:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:S+v,transform:"rotate(".concat(o+g+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}},PX=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function hI(e){var t=e??[];return Array.isArray(t)?t:[t]}var kX=function(t){var n=ee(ee({},RX),t),r=n.id,a=n.prefixCls,o=n.steps,c=n.strokeWidth,u=n.trailWidth,f=n.gapDegree,d=f===void 0?0:f,h=n.gapPosition,v=n.trailColor,g=n.strokeLinecap,b=n.style,S=n.className,C=n.strokeColor,y=n.percent,w=Kt(n,PX),$=Ld/2,_=TX(r),O="".concat(_,"-gradient"),I=$-c/2,j=Math.PI*2*I,M=d>0?90+d/2:-90,D=j*((360-d)/360),N=jt(o)==="object"?o:{count:o,gap:2},P=N.count,A=N.gap,F=hI(y),H=hI(C),k=H.find(function(B){return B&&jt(B)==="object"}),L=k&&jt(k)==="object",T=L?"butt":g,z=B0(j,D,0,100,M,d,h,v,T,c),V=NX(),q=function(){var U=0;return F.map(function(K,Y){var Q=H[Y]||H[H.length-1],Z=B0(j,D,U,K,M,d,h,Q,T,c);return U+=K,s.createElement(DX,{key:Y,color:Q,ptg:K,radius:I,prefixCls:a,gradientId:O,style:Z,strokeLinecap:T,strokeWidth:c,gapDegree:d,ref:function(re){V[Y]=re},size:Ld})}).reverse()},G=function(){var U=Math.round(P*(F[0]/100)),K=100/P,Y=0;return new Array(P).fill(null).map(function(Q,Z){var ae=Z<=U-1?H[0]:v,re=ae&&jt(ae)==="object"?"url(#".concat(O,")"):void 0,ie=B0(j,D,Y,K,M,d,h,ae,"butt",c,A);return Y+=(D-ie.strokeDashoffset+A)*100/D,s.createElement("circle",{key:Z,className:"".concat(a,"-circle-path"),r:I,cx:$,cy:$,stroke:re,strokeWidth:c,opacity:1,style:ie,ref:function(ue){V[Z]=ue}})})};return s.createElement("svg",Me({className:se("".concat(a,"-circle"),S),viewBox:"0 0 ".concat(Ld," ").concat(Ld),style:b,id:r,role:"presentation"},w),!P&&s.createElement("circle",{className:"".concat(a,"-circle-trail"),r:I,cx:$,cy:$,stroke:v,strokeLinecap:T,strokeWidth:u||c,style:z}),P?G():q())};function zl(e){return!e||e<0?0:e>100?100:e}function Ev({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const AX=({percent:e,success:t,successPercent:n})=>{const r=zl(Ev({success:t,successPercent:n}));return[r,zl(zl(e)-r)]},zX=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||Vc.green,t||null]},_g=(e,t,n)=>{var r,a,o,c;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?.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=(c=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&c!==void 0?c:120));return[u,f]},LX=3,HX=e=>LX/e*100,BX=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:o,width:c=120,type:u,children:f,success:d,size:h=c,steps:v}=e,[g,b]=_g(h,"circle");let{strokeWidth:S}=e;S===void 0&&(S=Math.max(HX(g),6));const C={width:g,height:b,fontSize:g*.15+6},y=s.useMemo(()=>{if(o||o===0)return o;if(u==="dashboard")return 75},[o,u]),w=AX(e),$=a||u==="dashboard"&&"bottom"||void 0,_=Object.prototype.toString.call(e.strokeColor)==="[object Object]",O=zX({success:d,strokeColor:e.strokeColor}),I=se(`${t}-inner`,{[`${t}-circle-gradient`]:_}),j=s.createElement(kX,{steps:v,percent:v?w[1]:w,strokeWidth:S,trailWidth:S,strokeColor:v?O[1]:O,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:y,gapPosition:$}),M=g<=20,D=s.createElement("div",{className:I,style:C},j,!M&&f);return M?s.createElement(_i,{title:f},D):D},Ov="--progress-line-stroke-color",oD="--progress-percent",vI=e=>{const t=e?"100%":"-100%";return new jn(`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}})},FX=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},An(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(${Ov})`]},height:"100%",width:`calc(1 / var(${oD}) * 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 ${te(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:vI(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:vI(!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}}})}},VX=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"}}}},KX=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}}}}}},UX=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},WX=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),qX=Kn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Sn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[FX(n),VX(n),KX(n),UX(n)]},WX);var YX=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 GX=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=Number.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(({key:n,value:r})=>`${r} ${n}%`).join(", ")},XX=(e,t)=>{const{from:n=Vc.blue,to:r=Vc.blue,direction:a=t==="rtl"?"to left":"to right"}=e,o=YX(e,["from","to","direction"]);if(Object.keys(o).length!==0){const u=GX(o),f=`linear-gradient(${a}, ${u})`;return{background:f,[Ov]:f}}const c=`linear-gradient(${a}, ${n}, ${r})`;return{background:c,[Ov]:c}},QX=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:o,strokeColor:c,strokeLinecap:u="round",children:f,trailColor:d=null,percentPosition:h,success:v}=e,{align:g,type:b}=h,S=c&&typeof c!="string"?XX(c,n):{[Ov]:c,background:c},C=u==="square"||u==="butt"?0:void 0,y=a??[-1,o||(a==="small"?6:8)],[w,$]=_g(y,"line",{strokeWidth:o}),_={backgroundColor:d||void 0,borderRadius:C},O=Object.assign(Object.assign({width:`${zl(r)}%`,height:$,borderRadius:C},S),{[oD]:zl(r)/100}),I=Ev(e),j={width:`${zl(I)}%`,height:$,borderRadius:C,backgroundColor:v?.strokeColor},M={width:w<0?"100%":w},D=s.createElement("div",{className:`${t}-inner`,style:_},s.createElement("div",{className:se(`${t}-bg`,`${t}-bg-${b}`),style:O},b==="inner"&&f),I!==void 0&&s.createElement("div",{className:`${t}-success-bg`,style:j})),N=b==="outer"&&g==="start",P=b==="outer"&&g==="end";return b==="outer"&&g==="center"?s.createElement("div",{className:`${t}-layout-bottom`},D,f):s.createElement("div",{className:`${t}-outer`,style:M},N&&f,D,P&&f)},ZX=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:a=0,strokeWidth:o=8,strokeColor:c,trailColor:u=null,prefixCls:f,children:d}=e,h=r(n*(a/100)),g=t??[t==="small"?2:14,o],[b,S]=_g(g,"step",{steps:n,strokeWidth:o}),C=b/n,y=Array.from({length:n});for(let w=0;w<n;w++){const $=Array.isArray(c)?c[w]:c;y[w]=s.createElement("div",{key:w,className:se(`${f}-steps-item`,{[`${f}-steps-item-active`]:w<=h-1}),style:{backgroundColor:w<=h-1?$:u,width:C,height:S}})}return s.createElement("div",{className:`${f}-steps-outer`},y,d)};var JX=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 eQ=["normal","exception","active","success"],tQ=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,steps:o,strokeColor:c,percent:u=0,size:f="default",showInfo:d=!0,type:h="line",status:v,format:g,style:b,percentPosition:S={}}=e,C=JX(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:w="outer"}=S,$=Array.isArray(c)?c[0]:c,_=typeof c=="string"||Array.isArray(c)?c:void 0,O=s.useMemo(()=>{if($){const q=typeof $=="string"?$:Object.values($)[0];return new Tn(q).isLight()}return!1},[c]),I=s.useMemo(()=>{var q,G;const B=Ev(e);return Number.parseInt(B!==void 0?(q=B??0)===null||q===void 0?void 0:q.toString():(G=u??0)===null||G===void 0?void 0:G.toString(),10)},[u,e.success,e.successPercent]),j=s.useMemo(()=>!eQ.includes(v)&&I>=100?"success":v||"normal",[v,I]),{getPrefixCls:M,direction:D,progress:N}=s.useContext(Ut),P=M("progress",n),[A,F,H]=qX(P),k=h==="line",L=k&&!o,T=s.useMemo(()=>{if(!d)return null;const q=Ev(e);let G;const B=g||(K=>`${K}%`),U=k&&O&&w==="inner";return w==="inner"||g||j!=="exception"&&j!=="success"?G=B(zl(u),zl(q)):j==="exception"?G=k?s.createElement(su,null):s.createElement(cu,null):j==="success"&&(G=k?s.createElement(Fv,null):s.createElement(Bx,null)),s.createElement("span",{className:se(`${P}-text`,{[`${P}-text-bright`]:U,[`${P}-text-${y}`]:L,[`${P}-text-${w}`]:L}),title:typeof G=="string"?G:void 0},G)},[d,u,I,j,h,P,g]);let z;h==="line"?z=o?s.createElement(ZX,Object.assign({},e,{strokeColor:_,prefixCls:P,steps:typeof o=="object"?o.count:o}),T):s.createElement(QX,Object.assign({},e,{strokeColor:$,prefixCls:P,direction:D,percentPosition:{align:y,type:w}}),T):(h==="circle"||h==="dashboard")&&(z=s.createElement(BX,Object.assign({},e,{strokeColor:$,prefixCls:P,progressStatus:j}),T));const V=se(P,`${P}-status-${j}`,{[`${P}-${h==="dashboard"&&"circle"||h}`]:h!=="line",[`${P}-inline-circle`]:h==="circle"&&_g(f,"circle")[0]<=20,[`${P}-line`]:L,[`${P}-line-align-${y}`]:L,[`${P}-line-position-${w}`]:L,[`${P}-steps`]:o,[`${P}-show-info`]:d,[`${P}-${f}`]:typeof f=="string",[`${P}-rtl`]:D==="rtl"},N?.className,r,a,F,H);return A(s.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},N?.style),b),className:V,role:"progressbar","aria-valuenow":I,"aria-valuemin":0,"aria-valuemax":100},or(C,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),z))});var nQ={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"},rQ=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],lD=s.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,o=e.className,c=e.checked,u=e.defaultChecked,f=e.disabled,d=e.loadingIcon,h=e.checkedChildren,v=e.unCheckedChildren,g=e.onClick,b=e.onChange,S=e.onKeyDown,C=Kt(e,rQ),y=Wn(!1,{value:c,defaultValue:u}),w=ce(y,2),$=w[0],_=w[1];function O(D,N){var P=$;return f||(P=D,_(P),b?.(P,N)),P}function I(D){D.which===Mt.LEFT?O(!1,D):D.which===Mt.RIGHT&&O(!0,D),S?.(D)}function j(D){var N=O(!$,D);g?.(N,D)}var M=se(a,o,(n={},X(n,"".concat(a,"-checked"),$),X(n,"".concat(a,"-disabled"),f),n));return s.createElement("button",Me({},C,{type:"button",role:"switch","aria-checked":$,disabled:f,className:M,ref:t,onKeyDown:I,onClick:j}),d,s.createElement("span",{className:"".concat(a,"-inner")},s.createElement("span",{className:"".concat(a,"-inner-checked")},h),s.createElement("span",{className:"".concat(a,"-inner-unchecked")},v)))});lD.displayName="Switch";const aQ=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:o,innerMaxMarginSM:c,handleSizeSM:u,calc:f}=e,d=`${t}-inner`,h=te(f(u).add(f(r).mul(2)).equal()),v=te(f(c).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:te(n),[`${t}-inner`]:{paddingInlineStart:c,paddingInlineEnd:o,[`${d}-checked, ${d}-unchecked`]:{minHeight:n},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${h} - ${v})`,marginInlineEnd:`calc(100% - ${h} + ${v})`},[`${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:c,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${h} + ${v})`,marginInlineEnd:`calc(-100% + ${h} - ${v})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${te(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()}}}}}}},iQ=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}}}},oQ=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:o,calc:c}=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:c(o).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${u}`]:{insetInlineStart:`calc(100% - ${te(c(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${u}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${u}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},lQ=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:o,handleSize:c,calc:u}=e,f=`${t}-inner`,d=te(u(c).add(u(r).mul(2)).equal()),h=te(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()}}}}}},sQ=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},An(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:te(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}}),Wo(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"}})}},cQ=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,o=t*n,c=r/2,u=2,f=o-u*2,d=c-u*2;return{trackHeight:o,trackHeightSM:c,trackMinWidth:f*2+u*4,trackMinWidthSM:d*2+u*2,trackPadding:u,handleBg:a,handleSize:f,handleSizeSM:d,handleShadow:`0 2px 4px 0 ${new Tn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:f/2,innerMaxMargin:f+u+u*2,innerMinMarginSM:d/2,innerMaxMarginSM:d+u+u*2}},uQ=Kn("Switch",e=>{const t=Sn(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[sQ(t),lQ(t),oQ(t),iQ(t),aQ(t)]},cQ);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};const fQ=s.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:a,loading:o,className:c,rootClassName:u,style:f,checked:d,value:h,defaultChecked:v,defaultValue:g,onChange:b}=e,S=dQ(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[C,y]=Wn(!1,{value:d??h,defaultValue:v??g}),{getPrefixCls:w,direction:$,switch:_}=s.useContext(Ut),O=s.useContext(ja),I=(a??O)||o,j=w("switch",n),M=s.createElement("div",{className:`${j}-handle`},o&&s.createElement(qo,{className:`${j}-loading-icon`})),[D,N,P]=uQ(j),A=la(r),F=se(_?.className,{[`${j}-small`]:A==="small",[`${j}-loading`]:o,[`${j}-rtl`]:$==="rtl"},c,u,N,P),H=Object.assign(Object.assign({},_?.style),f),k=(...L)=>{y(L[0]),b?.apply(void 0,L)};return D(s.createElement(Mf,{component:"Switch",disabled:I},s.createElement(lD,Object.assign({},S,{checked:C,onChange:k,prefixCls:j,className:F,style:H,disabled:I,ref:t,loadingIcon:M}))))}),sD=fQ;sD.__ANT_SWITCH=!0;var Ml={},Ff="rc-table-internal-hook";function OC(e){var t=s.createContext(void 0),n=function(a){var o=a.value,c=a.children,u=s.useRef(o);u.current=o;var f=s.useState(function(){return{getValue:function(){return u.current},listeners:new Set}}),d=ce(f,1),h=d[0];return dn(function(){Li.unstable_batchedUpdates(function(){h.listeners.forEach(function(v){v(o)})})},[o]),s.createElement(t.Provider,{value:h},c)};return{Context:t,Provider:n,defaultValue:e}}function ha(e,t){var n=pn(typeof t=="function"?t:function(v){if(t===void 0)return v;if(!Array.isArray(t))return v[t];var g={};return t.forEach(function(b){g[b]=v[b]}),g}),r=s.useContext(e?.Context),a=r||{},o=a.listeners,c=a.getValue,u=s.useRef();u.current=n(r?c():e?.defaultValue);var f=s.useState({}),d=ce(f,2),h=d[1];return dn(function(){if(!r)return;function v(g){var b=n(g);oo(u.current,b,!0)||h({})}return o.add(v),function(){o.delete(v)}},[r]),u.current}function mQ(){var e=s.createContext(null);function t(){return s.useContext(e)}function n(a,o){var c=Hi(a),u=function(d,h){var v=c?{ref:h}:{},g=s.useRef(0),b=s.useRef(d),S=t();return S!==null?s.createElement(a,Me({},d,v)):((!o||o(b.current,d))&&(g.current+=1),b.current=d,s.createElement(e.Provider,{value:g.current},s.createElement(a,Me({},d,v))))};return c?s.forwardRef(u):u}function r(a,o){var c=Hi(a),u=function(d,h){var v=c?{ref:h}:{};return t(),s.createElement(a,Me({},d,v))};return c?s.memo(s.forwardRef(u),o):s.memo(u,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var IC=mQ(),cD=IC.makeImmutable,yu=IC.responseImmutable,hQ=IC.useImmutableMark,Da=OC(),uD=s.createContext({renderWithProps:!1}),vQ="RC_TABLE_KEY";function gQ(e){return e==null?[]:Array.isArray(e)?e:[e]}function Eg(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},o=a.key,c=a.dataIndex,u=o||gQ(c).join("-")||vQ;n[u];)u="".concat(u,"_next");n[u]=!0,t.push(u)}),t}function ES(e){return e!=null}function pQ(e){return typeof e=="number"&&!Number.isNaN(e)}function bQ(e){return e&&jt(e)==="object"&&!Array.isArray(e)&&!s.isValidElement(e)}function yQ(e,t,n,r,a,o){var c=s.useContext(uD),u=hQ(),f=Ts(function(){if(ES(r))return[r];var d=t==null||t===""?[]:Array.isArray(t)?t:[t],h=Aa(e,d),v=h,g=void 0;if(a){var b=a(h,e,n);bQ(b)?(v=b.children,g=b.props,c.renderWithProps=!0):v=b}return[v,g]},[u,e,r,t,a,n],function(d,h){if(o){var v=ce(d,2),g=v[1],b=ce(h,2),S=b[1];return o(S,g)}return c.renderWithProps?!0:!oo(d,h,!0)});return f}function SQ(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function xQ(e,t){return ha(Da,function(n){var r=SQ(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var CQ=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,o,c=n===!0?{showTitle:!0}:n;return c&&(c.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?o=a.toString():s.isValidElement(a)&&typeof a.props.children=="string"&&(o=a.props.children)),o};function wQ(e){var t,n,r,a,o,c,u,f,d=e.component,h=e.children,v=e.ellipsis,g=e.scope,b=e.prefixCls,S=e.className,C=e.align,y=e.record,w=e.render,$=e.dataIndex,_=e.renderIndex,O=e.shouldCellUpdate,I=e.index,j=e.rowType,M=e.colSpan,D=e.rowSpan,N=e.fixLeft,P=e.fixRight,A=e.firstFixLeft,F=e.lastFixLeft,H=e.firstFixRight,k=e.lastFixRight,L=e.appendNode,T=e.additionalProps,z=T===void 0?{}:T,V=e.isSticky,q="".concat(b,"-cell"),G=ha(Da,["supportSticky","allColumnsFixedLeft","rowHoverable"]),B=G.supportSticky,U=G.allColumnsFixedLeft,K=G.rowHoverable,Y=yQ(y,$,_,h,w,O),Q=ce(Y,2),Z=Q[0],ae=Q[1],re={},ie=typeof N=="number"&&B,ve=typeof P=="number"&&B;ie&&(re.position="sticky",re.left=N),ve&&(re.position="sticky",re.right=P);var ue=(t=(n=(r=ae?.colSpan)!==null&&r!==void 0?r:z.colSpan)!==null&&n!==void 0?n:M)!==null&&t!==void 0?t:1,oe=(a=(o=(c=ae?.rowSpan)!==null&&c!==void 0?c:z.rowSpan)!==null&&o!==void 0?o:D)!==null&&a!==void 0?a:1,he=xQ(I,oe),de=ce(he,2),me=de[0],le=de[1],pe=pn(function(we){var Fe;y&&le(I,I+oe-1),z==null||(Fe=z.onMouseEnter)===null||Fe===void 0||Fe.call(z,we)}),Ce=pn(function(we){var Fe;y&&le(-1,-1),z==null||(Fe=z.onMouseLeave)===null||Fe===void 0||Fe.call(z,we)});if(ue===0||oe===0)return null;var De=(u=z.title)!==null&&u!==void 0?u:CQ({rowType:j,ellipsis:v,children:Z}),je=se(q,S,(f={},X(X(X(X(X(X(X(X(X(X(f,"".concat(q,"-fix-left"),ie&&B),"".concat(q,"-fix-left-first"),A&&B),"".concat(q,"-fix-left-last"),F&&B),"".concat(q,"-fix-left-all"),F&&U&&B),"".concat(q,"-fix-right"),ve&&B),"".concat(q,"-fix-right-first"),H&&B),"".concat(q,"-fix-right-last"),k&&B),"".concat(q,"-ellipsis"),v),"".concat(q,"-with-append"),L),"".concat(q,"-fix-sticky"),(ie||ve)&&V&&B),X(f,"".concat(q,"-row-hover"),!ae&&me)),z.className,ae?.className),ge={};C&&(ge.textAlign=C);var Ie=ee(ee(ee(ee({},ae?.style),re),ge),z.style),_e=Z;return jt(_e)==="object"&&!Array.isArray(_e)&&!s.isValidElement(_e)&&(_e=null),v&&(F||H)&&(_e=s.createElement("span",{className:"".concat(q,"-content")},_e)),s.createElement(d,Me({},ae,z,{className:je,style:Ie,title:De,scope:g,onMouseEnter:K?pe:void 0,onMouseLeave:K?Ce:void 0,colSpan:ue!==1?ue:null,rowSpan:oe!==1?oe:null}),L,_e)}const Su=s.memo(wQ);function RC(e,t,n,r,a){var o=n[e]||{},c=n[t]||{},u,f;o.fixed==="left"?u=r.left[a==="rtl"?t:e]:c.fixed==="right"&&(f=r.right[a==="rtl"?e:t]);var d=!1,h=!1,v=!1,g=!1,b=n[t+1],S=n[e-1],C=b&&!b.fixed||S&&!S.fixed||n.every(function(O){return O.fixed==="left"});if(a==="rtl"){if(u!==void 0){var y=S&&S.fixed==="left";g=!y&&C}else if(f!==void 0){var w=b&&b.fixed==="right";v=!w&&C}}else if(u!==void 0){var $=b&&b.fixed==="left";d=!$&&C}else if(f!==void 0){var _=S&&S.fixed==="right";h=!_&&C}return{fixLeft:u,fixRight:f,lastFixLeft:d,firstFixRight:h,lastFixRight:v,firstFixLeft:g,isSticky:r.isSticky}}var dD=s.createContext({});function $Q(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,o=a===void 0?1:a,c=e.rowSpan,u=e.align,f=ha(Da,["prefixCls","direction"]),d=f.prefixCls,h=f.direction,v=s.useContext(dD),g=v.scrollColumnIndex,b=v.stickyOffsets,S=v.flattenColumns,C=n+o-1,y=C+1===g?o+1:o,w=RC(n,n+y-1,S,b,h);return s.createElement(Su,Me({className:t,index:n,component:"td",prefixCls:d,record:null,dataIndex:null,align:u,colSpan:y,rowSpan:c,render:function(){return r}},w))}var _Q=["children"];function EQ(e){var t=e.children,n=Kt(e,_Q);return s.createElement("tr",n,t)}function Og(e){var t=e.children;return t}Og.Row=EQ;Og.Cell=$Q;function OQ(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=ha(Da,"prefixCls"),o=r.length-1,c=r[o],u=s.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:c!=null&&c.scrollbar?o:null}},[c,r,o,n]);return s.createElement(dD.Provider,{value:u},s.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const $h=yu(OQ);var fD=Og;function IQ(e){return null}function RQ(e){return null}function mD(e,t,n,r,a,o,c){var u=o(t,c);e.push({record:t,indent:n,index:c,rowKey:u});var f=a?.has(u);if(t&&Array.isArray(t[r])&&f)for(var d=0;d<t[r].length;d+=1)mD(e,t[r][d],n+1,r,a,o,d)}function hD(e,t,n,r){var a=s.useMemo(function(){if(n!=null&&n.size){for(var o=[],c=0;c<e?.length;c+=1){var u=e[c];mD(o,u,0,t,n,r,c)}return o}return e?.map(function(f,d){return{record:f,indent:0,index:d,rowKey:r(f,d)}})},[e,t,n,r]);return a}function vD(e,t,n,r){var a=ha(Da,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),o=a.flattenColumns,c=a.expandableType,u=a.expandedKeys,f=a.childrenColumnName,d=a.onTriggerExpand,h=a.rowExpandable,v=a.onRow,g=a.expandRowByClick,b=a.rowClassName,S=c==="nest",C=c==="row"&&(!h||h(e)),y=C||S,w=u&&u.has(t),$=f&&e&&e[f],_=pn(d),O=v?.(e,n),I=O?.onClick,j=function(P){g&&y&&d(e,P);for(var A=arguments.length,F=new Array(A>1?A-1:0),H=1;H<A;H++)F[H-1]=arguments[H];I?.apply(void 0,[P].concat(F))},M;typeof b=="string"?M=b:typeof b=="function"&&(M=b(e,n,r));var D=Eg(o);return ee(ee({},a),{},{columnsKey:D,nestExpandable:S,expanded:w,hasNestChildren:$,record:e,onTriggerExpand:_,rowSupportExpand:C,expandable:y,rowProps:ee(ee({},O),{},{className:se(M,O?.className),onClick:j})})}function gD(e){var t=e.prefixCls,n=e.children,r=e.component,a=e.cellComponent,o=e.className,c=e.expanded,u=e.colSpan,f=e.isEmpty,d=e.stickyOffset,h=d===void 0?0:d,v=ha(Da,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),g=v.scrollbarSize,b=v.fixHeader,S=v.fixColumn,C=v.componentWidth,y=v.horizonScroll,w=n;return(f?y&&C:S)&&(w=s.createElement("div",{style:{width:C-h-(b&&!f?g:0),position:"sticky",left:h,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},w)),s.createElement(r,{className:o,style:{display:c?null:"none"}},s.createElement(Su,{component:a,prefixCls:t,colSpan:u},w))}function NQ(e){var t=e.prefixCls,n=e.record,r=e.onExpand,a=e.expanded,o=e.expandable,c="".concat(t,"-row-expand-icon");if(!o)return s.createElement("span",{className:se(c,"".concat(t,"-row-spaced"))});var u=function(d){r(n,d),d.stopPropagation()};return s.createElement("span",{className:se(c,X(X({},"".concat(t,"-row-expanded"),a),"".concat(t,"-row-collapsed"),!a)),onClick:u})}function MQ(e,t,n){var r=[];function a(o){(o||[]).forEach(function(c,u){r.push(t(c,u)),a(c[n])})}return a(e),r}function pD(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function bD(e,t,n,r,a){var o,c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,f=e.record,d=e.prefixCls,h=e.columnsKey,v=e.fixedInfoList,g=e.expandIconColumnIndex,b=e.nestExpandable,S=e.indentSize,C=e.expandIcon,y=e.expanded,w=e.hasNestChildren,$=e.onTriggerExpand,_=e.expandable,O=e.expandedKeys,I=h[n],j=v[n],M;n===(g||0)&&b&&(M=s.createElement(s.Fragment,null,s.createElement("span",{style:{paddingLeft:"".concat(S*r,"px")},className:"".concat(d,"-row-indent indent-level-").concat(r)}),C({prefixCls:d,expanded:y,expandable:w,record:f,onExpand:$})));var D=((o=t.onCell)===null||o===void 0?void 0:o.call(t,f,a))||{};if(u){var N=D.rowSpan,P=N===void 0?1:N;if(_&&P&&n<u){for(var A=P,F=a;F<a+P;F+=1){var H=c[F];O.has(H)&&(A+=1)}D.rowSpan=A}}return{key:I,fixedInfo:j,appendCellNode:M,additionalCellProps:D}}function jQ(e){var t=e.className,n=e.style,r=e.record,a=e.index,o=e.renderIndex,c=e.rowKey,u=e.rowKeys,f=e.indent,d=f===void 0?0:f,h=e.rowComponent,v=e.cellComponent,g=e.scopeCellComponent,b=e.expandedRowInfo,S=vD(r,c,a,d),C=S.prefixCls,y=S.flattenColumns,w=S.expandedRowClassName,$=S.expandedRowRender,_=S.rowProps,O=S.expanded,I=S.rowSupportExpand,j=s.useRef(!1);j.current||(j.current=O);var M=pD(w,r,a,d),D=s.createElement(h,Me({},_,{"data-row-key":c,className:se(t,"".concat(C,"-row"),"".concat(C,"-row-level-").concat(d),_?.className,X({},M,d>=1)),style:ee(ee({},n),_?.style)}),y.map(function(A,F){var H=A.render,k=A.dataIndex,L=A.className,T=bD(S,A,F,d,a,u,b?.offset),z=T.key,V=T.fixedInfo,q=T.appendCellNode,G=T.additionalCellProps;return s.createElement(Su,Me({className:L,ellipsis:A.ellipsis,align:A.align,scope:A.rowScope,component:A.rowScope?g:v,prefixCls:C,key:z,record:r,index:a,renderIndex:o,dataIndex:k,render:H,shouldCellUpdate:A.shouldCellUpdate},V,{appendNode:q,additionalProps:G}))})),N;if(I&&(j.current||O)){var P=$(r,a,d+1,O);N=s.createElement(gD,{expanded:O,className:se("".concat(C,"-expanded-row"),"".concat(C,"-expanded-row-level-").concat(d+1),M),prefixCls:C,component:h,cellComponent:v,colSpan:b?b.colSpan:y.length,stickyOffset:b?.sticky,isEmpty:!1},P)}return s.createElement(s.Fragment,null,D,N)}const TQ=yu(jQ);function DQ(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,a=e.title,o=s.useRef();return dn(function(){o.current&&n(t,o.current.offsetWidth)},[]),s.createElement(xa,{data:t},s.createElement("th",{ref:o,className:"".concat(r,"-measure-cell")},s.createElement("div",{className:"".concat(r,"-measure-cell-content")},a||" ")))}function PQ(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,a=e.columns,o=s.useRef(null),c=ha(Da,["measureRowRender"]),u=c.measureRowRender,f=s.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:o,tabIndex:-1},s.createElement(xa.Collection,{onBatchResize:function(h){du(o.current)&&h.forEach(function(v){var g=v.data,b=v.size;r(g,b.offsetWidth)})}},n.map(function(d){var h=a.find(function(b){return b.key===d}),v=h?.title,g=s.isValidElement(v)?s.cloneElement(v,{ref:null}):v;return s.createElement(DQ,{prefixCls:t,key:d,columnKey:d,onColumnResize:r,title:g})})));return u?u(f):f}function kQ(e){var t=e.data,n=e.measureColumnWidth,r=ha(Da,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),a=r.prefixCls,o=r.getComponent,c=r.onColumnResize,u=r.flattenColumns,f=r.getRowKey,d=r.expandedKeys,h=r.childrenColumnName,v=r.emptyNode,g=r.expandedRowOffset,b=g===void 0?0:g,S=r.colWidths,C=hD(t,h,d,f),y=s.useMemo(function(){return C.map(function(N){return N.rowKey})},[C]),w=s.useRef({renderWithProps:!1}),$=s.useMemo(function(){for(var N=u.length-b,P=0,A=0;A<b;A+=1)P+=S[A]||0;return{offset:b,colSpan:N,sticky:P}},[u.length,b,S]),_=o(["body","wrapper"],"tbody"),O=o(["body","row"],"tr"),I=o(["body","cell"],"td"),j=o(["body","cell"],"th"),M;t.length?M=C.map(function(N,P){var A=N.record,F=N.indent,H=N.index,k=N.rowKey;return s.createElement(TQ,{key:k,rowKey:k,rowKeys:y,record:A,index:P,renderIndex:H,rowComponent:O,cellComponent:I,scopeCellComponent:j,indent:F,expandedRowInfo:$})}):M=s.createElement(gD,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:O,cellComponent:I,colSpan:u.length,isEmpty:!0},v);var D=Eg(u);return s.createElement(uD.Provider,{value:w.current},s.createElement(_,{className:"".concat(a,"-tbody")},n&&s.createElement(PQ,{prefixCls:a,columnsKey:D,onColumnResize:c,columns:u}),M))}const AQ=yu(kQ);var zQ=["expandable"],Yd="RC_TABLE_INTERNAL_COL_DEFINE";function LQ(e){var t=e.expandable,n=Kt(e,zQ),r;return"expandable"in e?r=ee(ee({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var HQ=["columnType"];function yD(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,a=ha(Da,["tableLayout"]),o=a.tableLayout,c=[],u=r||n.length,f=!1,d=u-1;d>=0;d-=1){var h=t[d],v=n&&n[d],g=void 0,b=void 0;if(v&&(g=v[Yd],o==="auto"&&(b=v.minWidth)),h||b||g||f){var S=g||{};S.columnType;var C=Kt(S,HQ);c.unshift(s.createElement("col",Me({key:d,style:{width:h,minWidth:b}},C))),f=!0}}return c.length>0?s.createElement("colgroup",null,c):null}var BQ=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function FQ(e,t){return s.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 VQ=s.forwardRef(function(e,t){var n=e.className,r=e.noData,a=e.columns,o=e.flattenColumns,c=e.colWidths,u=e.colGroup,f=e.columCount,d=e.stickyOffsets,h=e.direction,v=e.fixHeader,g=e.stickyTopOffset,b=e.stickyBottomOffset,S=e.stickyClassName,C=e.scrollX,y=e.tableLayout,w=y===void 0?"fixed":y,$=e.onScroll,_=e.children,O=Kt(e,BQ),I=ha(Da,["prefixCls","scrollbarSize","isSticky","getComponent"]),j=I.prefixCls,M=I.scrollbarSize,D=I.isSticky,N=I.getComponent,P=N(["header","table"],"table"),A=D&&!v?0:M,F=s.useRef(null),H=s.useCallback(function(B){tf(t,B),tf(F,B)},[]);s.useEffect(function(){function B(K){var Y=K,Q=Y.currentTarget,Z=Y.deltaX;Z&&($({currentTarget:Q,scrollLeft:Q.scrollLeft+Z}),K.preventDefault())}var U=F.current;return U?.addEventListener("wheel",B,{passive:!1}),function(){U?.removeEventListener("wheel",B)}},[]);var k=o[o.length-1],L={fixed:k?k.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(j,"-cell-scrollbar")}}},T=s.useMemo(function(){return A?[].concat(ke(a),[L]):a},[A,a]),z=s.useMemo(function(){return A?[].concat(ke(o),[L]):o},[A,o]),V=s.useMemo(function(){var B=d.right,U=d.left;return ee(ee({},d),{},{left:h==="rtl"?[].concat(ke(U.map(function(K){return K+A})),[0]):U,right:h==="rtl"?B:[].concat(ke(B.map(function(K){return K+A})),[0]),isSticky:D})},[A,d,D]),q=FQ(c,f),G=s.useMemo(function(){var B=!q||!q.length||q.every(function(U){return!U});return r||B},[r,q]);return s.createElement("div",{style:ee({overflow:"hidden"},D?{top:g,bottom:b}:{}),ref:H,className:se(n,X({},S,!!S))},s.createElement(P,{style:{tableLayout:w,minWidth:"100%",width:C}},G?u:s.createElement(yD,{colWidths:[].concat(ke(q),[A]),columCount:f+1,columns:z}),_(ee(ee({},O),{},{stickyOffsets:V,columns:T,flattenColumns:z}))))});const gI=s.memo(VQ);var KQ=function(t){var n=t.cells,r=t.stickyOffsets,a=t.flattenColumns,o=t.rowComponent,c=t.cellComponent,u=t.onHeaderRow,f=t.index,d=ha(Da,["prefixCls","direction"]),h=d.prefixCls,v=d.direction,g;u&&(g=u(n.map(function(S){return S.column}),f));var b=Eg(n.map(function(S){return S.column}));return s.createElement(o,g,n.map(function(S,C){var y=S.column,w=RC(S.colStart,S.colEnd,a,r,v),$;return y&&y.onHeaderCell&&($=S.column.onHeaderCell(y)),s.createElement(Su,Me({},S,{scope:y.title?S.colSpan>1?"colgroup":"col":null,ellipsis:y.ellipsis,align:y.align,component:c,prefixCls:h,key:b[C]},w,{additionalProps:$,rowType:"header"}))}))};function UQ(e){var t=[];function n(c,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[f]=t[f]||[];var d=u,h=c.filter(Boolean).map(function(v){var g={key:v.key,className:v.className||"",children:v.title,column:v,colStart:d},b=1,S=v.children;return S&&S.length>0&&(b=n(S,d,f+1).reduce(function(C,y){return C+y},0),g.hasSubColumns=!0),"colSpan"in v&&(b=v.colSpan),"rowSpan"in v&&(g.rowSpan=v.rowSpan),g.colSpan=b,g.colEnd=g.colStart+b-1,t[f].push(g),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 WQ=function(t){var n=t.stickyOffsets,r=t.columns,a=t.flattenColumns,o=t.onHeaderRow,c=ha(Da,["prefixCls","getComponent"]),u=c.prefixCls,f=c.getComponent,d=s.useMemo(function(){return UQ(r)},[r]),h=f(["header","wrapper"],"thead"),v=f(["header","row"],"tr"),g=f(["header","cell"],"th");return s.createElement(h,{className:"".concat(u,"-thead")},d.map(function(b,S){var C=s.createElement(KQ,{key:S,flattenColumns:a,cells:b,stickyOffsets:n,rowComponent:v,cellComponent:g,onHeaderRow:o,index:S});return C}))};const pI=yu(WQ);function bI(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 qQ(e,t,n){return s.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(g){var b=bI(t,g.width);b?r+=b:a+=1});var o=Math.max(t,n),c=Math.max(o-r,a),u=a,f=c/a,d=0,h=e.map(function(g){var b=ee({},g),S=bI(t,b.width);if(S)b.width=S;else{var C=Math.floor(f);b.width=u===1?c:C,c-=C,u-=1}return d+=b.width,b});if(d<o){var v=o/d;c=o,h.forEach(function(g,b){var S=Math.floor(g.width*v);g.width=b===h.length-1?c:S,c-=S})}return[h,Math.max(d,o)]}return[e,t]},[e,t,n])}var YQ=["children"],GQ=["fixed"];function NC(e){return Ma(e).filter(function(t){return s.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,a=r.children,o=Kt(r,YQ),c=ee({key:n},o);return a&&(c.children=NC(a)),c})}function SD(e){return e.filter(function(t){return t&&jt(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?ee(ee({},t),{},{children:SD(n)}):t})}function OS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&jt(n)==="object"}).reduce(function(n,r,a){var o=r.fixed,c=o===!0?"left":o,u="".concat(t,"-").concat(a),f=r.children;return f&&f.length>0?[].concat(ke(n),ke(OS(f,u).map(function(d){var h;return ee(ee({},d),{},{fixed:(h=d.fixed)!==null&&h!==void 0?h:c})}))):[].concat(ke(n),[ee(ee({key:u},r),{},{fixed:c})])},[])}function XQ(e){return e.map(function(t){var n=t.fixed,r=Kt(t,GQ),a=n;return n==="left"?a="right":n==="right"&&(a="left"),ee({fixed:a},r)})}function QQ(e,t){var n=e.prefixCls,r=e.columns,a=e.children,o=e.expandable,c=e.expandedKeys,u=e.columnTitle,f=e.getRowKey,d=e.onTriggerExpand,h=e.expandIcon,v=e.rowExpandable,g=e.expandIconColumnIndex,b=e.expandedRowOffset,S=b===void 0?0:b,C=e.direction,y=e.expandRowByClick,w=e.columnWidth,$=e.fixed,_=e.scrollWidth,O=e.clientWidth,I=s.useMemo(function(){var k=r||NC(a)||[];return SD(k.slice())},[r,a]),j=s.useMemo(function(){if(o){var k=I.slice();if(!k.includes(Ml)){var L=g||0,T=L===0&&$==="right"?I.length:L;T>=0&&k.splice(T,0,Ml)}var z=k.indexOf(Ml);k=k.filter(function(B,U){return B!==Ml||U===z});var V=I[z],q;$?q=$:q=V?V.fixed:null;var G=X(X(X(X(X(X({},Yd,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",u),"fixed",q),"className","".concat(n,"-row-expand-icon-cell")),"width",w),"render",function(U,K,Y){var Q=f(K,Y),Z=c.has(Q),ae=v?v(K):!0,re=h({prefixCls:n,expanded:Z,expandable:ae,record:K,onExpand:d});return y?s.createElement("span",{onClick:function(ve){return ve.stopPropagation()}},re):re});return k.map(function(B,U){var K=B===Ml?G:B;return U<S?ee(ee({},K),{},{fixed:K.fixed||"left"}):K})}return I.filter(function(B){return B!==Ml})},[o,I,f,c,h,C,S]),M=s.useMemo(function(){var k=j;return t&&(k=t(k)),k.length||(k=[{render:function(){return null}}]),k},[t,j,C]),D=s.useMemo(function(){return C==="rtl"?XQ(OS(M)):OS(M)},[M,C,_]),N=s.useMemo(function(){for(var k=-1,L=D.length-1;L>=0;L-=1){var T=D[L].fixed;if(T==="left"||T===!0){k=L;break}}if(k>=0)for(var z=0;z<=k;z+=1){var V=D[z].fixed;if(V!=="left"&&V!==!0)return!0}var q=D.findIndex(function(U){var K=U.fixed;return K==="right"});if(q>=0)for(var G=q;G<D.length;G+=1){var B=D[G].fixed;if(B!=="right")return!0}return!1},[D]),P=qQ(D,_,O),A=ce(P,2),F=A[0],H=A[1];return[M,F,H,N]}function ZQ(e,t,n){var r=LQ(e),a=r.expandIcon,o=r.expandedRowKeys,c=r.defaultExpandedRowKeys,u=r.defaultExpandAllRows,f=r.expandedRowRender,d=r.onExpand,h=r.onExpandedRowsChange,v=r.childrenColumnName,g=a||NQ,b=v||"children",S=s.useMemo(function(){return f?"row":e.expandable&&e.internalHooks===Ff&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(I){return I&&jt(I)==="object"&&I[b]})?"nest":!1},[!!f,t]),C=s.useState(function(){return c||(u?MQ(t,n,b):[])}),y=ce(C,2),w=y[0],$=y[1],_=s.useMemo(function(){return new Set(o||w||[])},[o,w]),O=s.useCallback(function(I){var j=n(I,t.indexOf(I)),M,D=_.has(j);D?(_.delete(j),M=ke(_)):M=[].concat(ke(_),[j]),$(M),d&&d(!D,I),h&&h(M)},[n,_,t,d,h]);return[r,S,_,g,b,O]}function JQ(e,t,n){var r=e.map(function(a,o){return RC(o,o,e,t,n)});return Ts(function(){return r},[r],function(a,o){return!oo(a,o)})}function eZ(e){var t=s.useRef(e),n=s.useState({}),r=ce(n,2),a=r[1],o=s.useRef(null),c=s.useRef([]);function u(f){c.current.push(f);var d=Promise.resolve();o.current=d,d.then(function(){if(o.current===d){var h=c.current,v=t.current;c.current=[],h.forEach(function(g){t.current=g(t.current)}),o.current=null,v!==t.current&&a({})}})}return s.useEffect(function(){return function(){o.current=null}},[]),[t.current,u]}function tZ(e){var t=s.useRef(null),n=s.useRef();function r(){window.clearTimeout(n.current)}function a(c){t.current=c,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function o(){return t.current}return s.useEffect(function(){return r},[]),[a,o]}function nZ(){var e=s.useState(-1),t=ce(e,2),n=t[0],r=t[1],a=s.useState(-1),o=ce(a,2),c=o[0],u=o[1],f=s.useCallback(function(d,h){r(d),u(h)},[]);return[n,c,f]}var yI=Ca()?window:null;function rZ(e,t){var n=jt(e)==="object"?e:{},r=n.offsetHeader,a=r===void 0?0:r,o=n.offsetSummary,c=o===void 0?0:o,u=n.offsetScroll,f=u===void 0?0:u,d=n.getContainer,h=d===void 0?function(){return yI}:d,v=h()||yI,g=!!e;return s.useMemo(function(){return{isSticky:g,stickyClassName:g?"".concat(t,"-sticky-holder"):"",offsetHeader:a,offsetSummary:c,offsetScroll:f,container:v}},[g,f,a,c,t,v])}function aZ(e,t,n){var r=s.useMemo(function(){var a=t.length,o=function(d,h,v){for(var g=[],b=0,S=d;S!==h;S+=v)g.push(b),t[S].fixed&&(b+=e[S]||0);return g},c=o(0,a,1),u=o(a-1,-1,-1).reverse();return n==="rtl"?{left:u,right:c}:{left:c,right:u}},[e,t,n]);return r}function SI(e){var t=e.className,n=e.children;return s.createElement("div",{className:t},n)}function xI(e){var t=Of(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 iZ=function(t,n){var r,a,o=t.scrollBodyRef,c=t.onScroll,u=t.offsetScroll,f=t.container,d=t.direction,h=ha(Da,"prefixCls"),v=((r=o.current)===null||r===void 0?void 0:r.scrollWidth)||0,g=((a=o.current)===null||a===void 0?void 0:a.clientWidth)||0,b=v&&g*(g/v),S=s.useRef(),C=eZ({scrollLeft:0,isHiddenScrollBar:!0}),y=ce(C,2),w=y[0],$=y[1],_=s.useRef({delta:0,x:0}),O=s.useState(!1),I=ce(O,2),j=I[0],M=I[1],D=s.useRef(null);s.useEffect(function(){return function(){mn.cancel(D.current)}},[]);var N=function(){M(!1)},P=function(L){L.persist(),_.current.delta=L.pageX-w.scrollLeft,_.current.x=0,M(!0),L.preventDefault()},A=function(L){var T,z=L||((T=window)===null||T===void 0?void 0:T.event),V=z.buttons;if(!j||V===0){j&&M(!1);return}var q=_.current.x+L.pageX-_.current.x-_.current.delta,G=d==="rtl";q=Math.max(G?b-g:0,Math.min(G?0:g-b,q));var B=!G||Math.abs(q)+Math.abs(b)<g;B&&(c({scrollLeft:q/g*(v+2)}),_.current.x=L.pageX)},F=function(){mn.cancel(D.current),D.current=mn(function(){if(o.current){var L=xI(o.current).top,T=L+o.current.offsetHeight,z=f===window?document.documentElement.scrollTop+window.innerHeight:xI(f).top+f.clientHeight;$(function(V){return ee(ee({},V),{},{isHiddenScrollBar:T-v2()<=z||L>=z-u})})}})},H=function(L){$(function(T){return ee(ee({},T),{},{scrollLeft:v?L/v*g:0})})};return s.useImperativeHandle(n,function(){return{setScrollLeft:H,checkScrollBarVisible:F}}),s.useEffect(function(){var k=tI(document.body,"mouseup",N,!1),L=tI(document.body,"mousemove",A,!1);return F(),function(){k.remove(),L.remove()}},[b,j]),s.useEffect(function(){if(o.current){for(var k=[],L=Of(o.current);L;)k.push(L),L=L.parentElement;return k.forEach(function(T){return T.addEventListener("scroll",F,!1)}),window.addEventListener("resize",F,!1),window.addEventListener("scroll",F,!1),f.addEventListener("scroll",F,!1),function(){k.forEach(function(T){return T.removeEventListener("scroll",F)}),window.removeEventListener("resize",F),window.removeEventListener("scroll",F),f.removeEventListener("scroll",F)}}},[f]),s.useEffect(function(){w.isHiddenScrollBar||$(function(k){var L=o.current;return L?ee(ee({},k),{},{scrollLeft:L.scrollLeft/L.scrollWidth*L.clientWidth}):k})},[w.isHiddenScrollBar]),v<=g||!b||w.isHiddenScrollBar?null:s.createElement("div",{style:{height:v2(),width:g,bottom:u},className:"".concat(h,"-sticky-scroll")},s.createElement("div",{onMouseDown:P,ref:S,className:se("".concat(h,"-sticky-scroll-bar"),X({},"".concat(h,"-sticky-scroll-bar-active"),j)),style:{width:"".concat(b,"px"),transform:"translate3d(".concat(w.scrollLeft,"px, 0, 0)")}}))};const oZ=s.forwardRef(iZ);var xD="rc-table",lZ=[],sZ={};function cZ(){return"No Data"}function uZ(e,t){var n=ee({rowKey:"key",prefixCls:xD,emptyText:cZ},e),r=n.prefixCls,a=n.className,o=n.rowClassName,c=n.style,u=n.data,f=n.rowKey,d=n.scroll,h=n.tableLayout,v=n.direction,g=n.title,b=n.footer,S=n.summary,C=n.caption,y=n.id,w=n.showHeader,$=n.components,_=n.emptyText,O=n.onRow,I=n.onHeaderRow,j=n.measureRowRender,M=n.onScroll,D=n.internalHooks,N=n.transformColumns,P=n.internalRefs,A=n.tailor,F=n.getContainerWidth,H=n.sticky,k=n.rowHoverable,L=k===void 0?!0:k,T=u||lZ,z=!!T.length,V=D===Ff,q=s.useCallback(function(dt,Ot){return Aa($,dt)||Ot},[$]),G=s.useMemo(function(){return typeof f=="function"?f:function(dt){var Ot=dt&&dt[f];return Ot}},[f]),B=q(["body"]),U=nZ(),K=ce(U,3),Y=K[0],Q=K[1],Z=K[2],ae=ZQ(n,T,G),re=ce(ae,6),ie=re[0],ve=re[1],ue=re[2],oe=re[3],he=re[4],de=re[5],me=d?.x,le=s.useState(0),pe=ce(le,2),Ce=pe[0],De=pe[1],je=QQ(ee(ee(ee({},n),ie),{},{expandable:!!ie.expandedRowRender,columnTitle:ie.columnTitle,expandedKeys:ue,getRowKey:G,onTriggerExpand:de,expandIcon:oe,expandIconColumnIndex:ie.expandIconColumnIndex,direction:v,scrollWidth:V&&A&&typeof me=="number"?me:null,clientWidth:Ce}),V?N:null),ge=ce(je,4),Ie=ge[0],_e=ge[1],we=ge[2],Fe=ge[3],He=we??me,it=s.useMemo(function(){return{columns:Ie,flattenColumns:_e}},[Ie,_e]),Ze=s.useRef(),Ye=s.useRef(),Je=s.useRef(),Pe=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:Ze.current,scrollTo:function(Ot){var bn;if(Je.current instanceof HTMLElement){var Cn=Ot.index,nr=Ot.top,Ar=Ot.key;if(pQ(nr)){var Br;(Br=Je.current)===null||Br===void 0||Br.scrollTo({top:nr})}else{var Yr,sa=Ar??G(T[Cn]);(Yr=Je.current.querySelector('[data-row-key="'.concat(sa,'"]')))===null||Yr===void 0||Yr.scrollIntoView()}}else(bn=Je.current)!==null&&bn!==void 0&&bn.scrollTo&&Je.current.scrollTo(Ot)}}});var Oe=s.useRef(),Be=s.useState(!1),$e=ce(Be,2),Te=$e[0],be=$e[1],ye=s.useState(!1),Re=ce(ye,2),Ge=Re[0],ft=Re[1],$t=s.useState(new Map),Qe=ce($t,2),at=Qe[0],mt=Qe[1],st=Eg(_e),pt=st.map(function(dt){return at.get(dt)}),Wt=s.useMemo(function(){return pt},[pt.join("_")]),Yt=aZ(Wt,_e,v),ht=d&&ES(d.y),It=d&&ES(He)||!!ie.fixed,_t=It&&_e.some(function(dt){var Ot=dt.fixed;return Ot}),tt=s.useRef(),Ue=rZ(H,r),qe=Ue.isSticky,ct=Ue.offsetHeader,Tt=Ue.offsetSummary,Dt=Ue.offsetScroll,Jt=Ue.stickyClassName,ut=Ue.container,ot=s.useMemo(function(){return S?.(T)},[S,T]),Lt=(ht||qe)&&s.isValidElement(ot)&&ot.type===Og&&ot.props.fixed,tn,hn,cn;ht&&(hn={overflowY:z?"scroll":"auto",maxHeight:d.y}),It&&(tn={overflowX:"auto"},ht||(hn={overflowY:"hidden"}),cn={width:He===!0?"auto":He,minWidth:"100%"});var En=s.useCallback(function(dt,Ot){mt(function(bn){if(bn.get(dt)!==Ot){var Cn=new Map(bn);return Cn.set(dt,Ot),Cn}return bn})},[]),rn=tZ(),xn=ce(rn,2),lt=xn[0],St=xn[1];function Bt(dt,Ot){Ot&&(typeof Ot=="function"?Ot(dt):Ot.scrollLeft!==dt&&(Ot.scrollLeft=dt,Ot.scrollLeft!==dt&&setTimeout(function(){Ot.scrollLeft=dt},0)))}var kt=pn(function(dt){var Ot=dt.currentTarget,bn=dt.scrollLeft,Cn=v==="rtl",nr=typeof bn=="number"?bn:Ot.scrollLeft,Ar=Ot||sZ;if(!St()||St()===Ar){var Br;lt(Ar),Bt(nr,Ye.current),Bt(nr,Je.current),Bt(nr,Oe.current),Bt(nr,(Br=tt.current)===null||Br===void 0?void 0:Br.setScrollLeft)}var Yr=Ot||Ye.current;if(Yr){var sa=V&&A&&typeof He=="number"?He:Yr.scrollWidth,Pa=Yr.clientWidth;if(sa===Pa){be(!1),ft(!1);return}Cn?(be(-nr<sa-Pa),ft(-nr>0)):(be(nr>0),ft(nr<sa-Pa))}}),vt=pn(function(dt){kt(dt),M?.(dt)}),Et=function(){if(It&&Je.current){var Ot;kt({currentTarget:Of(Je.current),scrollLeft:(Ot=Je.current)===null||Ot===void 0?void 0:Ot.scrollLeft})}else be(!1),ft(!1)},Qt=function(Ot){var bn,Cn=Ot.width;(bn=tt.current)===null||bn===void 0||bn.checkScrollBarVisible();var nr=Ze.current?Ze.current.offsetWidth:Cn;V&&F&&Ze.current&&(nr=F(Ze.current,nr)||nr),nr!==Ce&&(Et(),De(nr))},on=s.useRef(!1);s.useEffect(function(){on.current&&Et()},[It,u,Ie.length]),s.useEffect(function(){on.current=!0},[]);var bt=s.useState(0),Ht=ce(bt,2),nn=Ht[0],Xn=Ht[1],br=s.useState(!0),wr=ce(br,2),$r=wr[0],Yn=wr[1];dn(function(){(!A||!V)&&(Je.current instanceof Element?Xn(Yy(Je.current).width):Xn(Yy(Pe.current).width)),Yn(iS("position","sticky"))},[]),s.useEffect(function(){V&&P&&(P.body.current=Je.current)});var Gn=s.useCallback(function(dt){return s.createElement(s.Fragment,null,s.createElement(pI,dt),Lt==="top"&&s.createElement($h,dt,ot))},[Lt,ot]),Dr=s.useCallback(function(dt){return s.createElement($h,dt,ot)},[ot]),Hr=q(["table"],"table"),Nr=s.useMemo(function(){return h||(_t?He==="max-content"?"auto":"fixed":ht||qe||_e.some(function(dt){var Ot=dt.ellipsis;return Ot})?"fixed":"auto")},[ht,_t,_e,h,qe]),In,At={colWidths:Wt,columCount:_e.length,stickyOffsets:Yt,onHeaderRow:I,fixHeader:ht,scroll:d},zt=s.useMemo(function(){return z?null:typeof _=="function"?_():_},[z,_]),un=s.createElement(AQ,{data:T,measureColumnWidth:ht||It||qe}),Nt=s.createElement(yD,{colWidths:_e.map(function(dt){var Ot=dt.width;return Ot}),columns:_e}),Pt=C!=null?s.createElement("caption",{className:"".concat(r,"-caption")},C):void 0,yn=ma(n,{data:!0}),Ln=ma(n,{aria:!0});if(ht||qe){var lr;typeof B=="function"?(lr=B(T,{scrollbarSize:nn,ref:Je,onScroll:kt}),At.colWidths=_e.map(function(dt,Ot){var bn=dt.width,Cn=Ot===_e.length-1?bn-nn:bn;return typeof Cn=="number"&&!Number.isNaN(Cn)?Cn:0})):lr=s.createElement("div",{style:ee(ee({},tn),hn),onScroll:vt,ref:Je,className:se("".concat(r,"-body"))},s.createElement(Hr,Me({style:ee(ee({},cn),{},{tableLayout:Nr})},Ln),Pt,Nt,un,!Lt&&ot&&s.createElement($h,{stickyOffsets:Yt,flattenColumns:_e},ot)));var Pr=ee(ee(ee({noData:!T.length},At),it),{},{direction:v,stickyClassName:Jt,scrollX:He,tableLayout:Nr,onScroll:kt});In=s.createElement(s.Fragment,null,w!==!1&&s.createElement(gI,Me({},Pr,{stickyTopOffset:ct,className:"".concat(r,"-header"),ref:Ye,colGroup:Nt}),Gn),lr,Lt&&Lt!=="top"&&s.createElement(gI,Me({},Pr,{stickyBottomOffset:Tt,className:"".concat(r,"-summary"),ref:Oe,colGroup:Nt}),Dr),qe&&Je.current&&Je.current instanceof Element&&s.createElement(oZ,{ref:tt,offsetScroll:Dt,scrollBodyRef:Je,onScroll:kt,container:ut,direction:v}))}else In=s.createElement("div",{style:ee(ee({},tn),hn),className:se("".concat(r,"-content")),onScroll:kt,ref:Je},s.createElement(Hr,Me({style:ee(ee({},cn),{},{tableLayout:Nr})},Ln),Pt,Nt,w!==!1&&s.createElement(pI,Me({},At,it)),un,ot&&s.createElement($h,{stickyOffsets:Yt,flattenColumns:_e},ot)));var sr=s.createElement("div",Me({className:se(r,a,X(X(X(X(X(X(X(X(X(X({},"".concat(r,"-rtl"),v==="rtl"),"".concat(r,"-ping-left"),Te),"".concat(r,"-ping-right"),Ge),"".concat(r,"-layout-fixed"),h==="fixed"),"".concat(r,"-fixed-header"),ht),"".concat(r,"-fixed-column"),_t),"".concat(r,"-fixed-column-gapped"),_t&&Fe),"".concat(r,"-scroll-horizontal"),It),"".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:c,id:y,ref:Ze},yn),g&&s.createElement(SI,{className:"".concat(r,"-title")},g(T)),s.createElement("div",{ref:Pe,className:"".concat(r,"-container")},In),b&&s.createElement(SI,{className:"".concat(r,"-footer")},b(T)));It&&(sr=s.createElement(xa,{onResize:Qt},sr));var kr=JQ(_e,Yt,v),vn=s.useMemo(function(){return{scrollX:He,prefixCls:r,getComponent:q,scrollbarSize:nn,direction:v,fixedInfoList:kr,isSticky:qe,supportSticky:$r,componentWidth:Ce,fixHeader:ht,fixColumn:_t,horizonScroll:It,tableLayout:Nr,rowClassName:o,expandedRowClassName:ie.expandedRowClassName,expandIcon:oe,expandableType:ve,expandRowByClick:ie.expandRowByClick,expandedRowRender:ie.expandedRowRender,expandedRowOffset:ie.expandedRowOffset,onTriggerExpand:de,expandIconColumnIndex:ie.expandIconColumnIndex,indentSize:ie.indentSize,allColumnsFixedLeft:_e.every(function(dt){return dt.fixed==="left"}),emptyNode:zt,columns:Ie,flattenColumns:_e,onColumnResize:En,colWidths:Wt,hoverStartRow:Y,hoverEndRow:Q,onHover:Z,rowExpandable:ie.rowExpandable,onRow:O,getRowKey:G,expandedKeys:ue,childrenColumnName:he,rowHoverable:L,measureRowRender:j}},[He,r,q,nn,v,kr,qe,$r,Ce,ht,_t,It,Nr,o,ie.expandedRowClassName,oe,ve,ie.expandRowByClick,ie.expandedRowRender,ie.expandedRowOffset,de,ie.expandIconColumnIndex,ie.indentSize,zt,Ie,_e,En,Wt,Y,Q,Z,ie.rowExpandable,O,G,ue,he,L,j]);return s.createElement(Da.Provider,{value:vn},sr)}var dZ=s.forwardRef(uZ);function CD(e){return cD(dZ,e)}var xu=CD();xu.EXPAND_COLUMN=Ml;xu.INTERNAL_HOOKS=Ff;xu.Column=IQ;xu.ColumnGroup=RQ;xu.Summary=fD;var MC=OC(null),wD=OC(null);function fZ(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function mZ(e){var t=e.rowInfo,n=e.column,r=e.colIndex,a=e.indent,o=e.index,c=e.component,u=e.renderIndex,f=e.record,d=e.style,h=e.className,v=e.inverse,g=e.getHeight,b=n.render,S=n.dataIndex,C=n.className,y=n.width,w=ha(wD,["columnsOffset"]),$=w.columnsOffset,_=bD(t,n,r,a,o),O=_.key,I=_.fixedInfo,j=_.appendCellNode,M=_.additionalCellProps,D=M.style,N=M.colSpan,P=N===void 0?1:N,A=M.rowSpan,F=A===void 0?1:A,H=r-1,k=fZ(H,P,$),L=P>1?y-k:0,T=ee(ee(ee({},D),d),{},{flex:"0 0 ".concat(k,"px"),width:"".concat(k,"px"),marginRight:L,pointerEvents:"auto"}),z=s.useMemo(function(){return v?F<=1:P===0||F===0||F>1},[F,P,v]);z?T.visibility="hidden":v&&(T.height=g?.(F));var V=z?function(){return null}:b,q={};return(F===0||P===0)&&(q.rowSpan=1,q.colSpan=1),s.createElement(Su,Me({className:se(C,h),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:c,prefixCls:t.prefixCls,key:O,record:f,index:o,renderIndex:u,dataIndex:S,render:V,shouldCellUpdate:n.shouldCellUpdate},I,{appendNode:j,additionalProps:ee(ee({},M),{},{style:T},q)}))}var hZ=["data","index","className","rowKey","style","extra","getHeight"],vZ=s.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,o=e.rowKey,c=e.style,u=e.extra,f=e.getHeight,d=Kt(e,hZ),h=n.record,v=n.indent,g=n.index,b=ha(Da,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),S=b.scrollX,C=b.flattenColumns,y=b.prefixCls,w=b.fixColumn,$=b.componentWidth,_=ha(MC,["getComponent"]),O=_.getComponent,I=vD(h,o,r,v),j=O(["body","row"],"div"),M=O(["body","cell"],"div"),D=I.rowSupportExpand,N=I.expanded,P=I.rowProps,A=I.expandedRowRender,F=I.expandedRowClassName,H;if(D&&N){var k=A(h,r,v+1,N),L=pD(F,h,r,v),T={};w&&(T={style:X({},"--virtual-width","".concat($,"px"))});var z="".concat(y,"-expanded-row-cell");H=s.createElement(j,{className:se("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(v+1),L)},s.createElement(Su,{component:M,prefixCls:y,className:se(z,X({},"".concat(z,"-fixed"),w)),additionalProps:T},k))}var V=ee(ee({},c),{},{width:S});u&&(V.position="absolute",V.pointerEvents="none");var q=s.createElement(j,Me({},P,d,{"data-row-key":o,ref:D?null:t,className:se(a,"".concat(y,"-row"),P?.className,X({},"".concat(y,"-row-extra"),u)),style:ee(ee({},V),P?.style)}),C.map(function(G,B){return s.createElement(mZ,{key:B,component:M,rowInfo:I,column:G,colIndex:B,indent:v,index:r,renderIndex:g,record:h,inverse:u,getHeight:f})}));return D?s.createElement("div",{ref:t},q,H):q}),CI=yu(vZ),gZ=s.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=ha(Da,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),o=a.flattenColumns,c=a.onColumnResize,u=a.getRowKey,f=a.expandedKeys,d=a.prefixCls,h=a.childrenColumnName,v=a.scrollX,g=a.direction,b=ha(MC),S=b.sticky,C=b.scrollY,y=b.listItemHeight,w=b.getComponent,$=b.onScroll,_=s.useRef(),O=hD(n,h,f,u),I=s.useMemo(function(){var H=0;return o.map(function(k){var L=k.width,T=k.minWidth,z=k.key,V=Math.max(L||0,T||0);return H+=V,[z,V,H]})},[o]),j=s.useMemo(function(){return I.map(function(H){return H[2]})},[I]);s.useEffect(function(){I.forEach(function(H){var k=ce(H,2),L=k[0],T=k[1];c(L,T)})},[I]),s.useImperativeHandle(t,function(){var H,k={scrollTo:function(T){var z;(z=_.current)===null||z===void 0||z.scrollTo(T)},nativeElement:(H=_.current)===null||H===void 0?void 0:H.nativeElement};return Object.defineProperty(k,"scrollLeft",{get:function(){var T;return((T=_.current)===null||T===void 0?void 0:T.getScrollInfo().x)||0},set:function(T){var z;(z=_.current)===null||z===void 0||z.scrollTo({left:T})}}),Object.defineProperty(k,"scrollTop",{get:function(){var T;return((T=_.current)===null||T===void 0?void 0:T.getScrollInfo().y)||0},set:function(T){var z;(z=_.current)===null||z===void 0||z.scrollTo({top:T})}}),k});var M=function(k,L){var T,z=(T=O[L])===null||T===void 0?void 0:T.record,V=k.onCell;if(V){var q,G=V(z,L);return(q=G?.rowSpan)!==null&&q!==void 0?q:1}return 1},D=function(k){var L=k.start,T=k.end,z=k.getSize,V=k.offsetY;if(T<0)return null;for(var q=o.filter(function(ue){return M(ue,L)===0}),G=L,B=function(oe){if(q=q.filter(function(he){return M(he,oe)===0}),!q.length)return G=oe,1},U=L;U>=0&&!B(U);U-=1);for(var K=o.filter(function(ue){return M(ue,T)!==1}),Y=T,Q=function(oe){if(K=K.filter(function(he){return M(he,oe)!==1}),!K.length)return Y=Math.max(oe-1,T),1},Z=T;Z<O.length&&!Q(Z);Z+=1);for(var ae=[],re=function(oe){var he=O[oe];if(!he)return 1;o.some(function(de){return M(de,oe)>1})&&ae.push(oe)},ie=G;ie<=Y;ie+=1)re(ie);var ve=ae.map(function(ue){var oe=O[ue],he=u(oe.record,ue),de=function(pe){var Ce=ue+pe-1,De=u(O[Ce].record,Ce),je=z(he,De);return je.bottom-je.top},me=z(he);return s.createElement(CI,{key:ue,data:oe,rowKey:he,index:ue,style:{top:-V+me.top},extra:!0,getHeight:de})});return ve},N=s.useMemo(function(){return{columnsOffset:j}},[j]),P="".concat(d,"-tbody"),A=w(["body","wrapper"]),F={};return S&&(F.position="sticky",F.bottom=0,jt(S)==="object"&&S.offsetScroll&&(F.bottom=S.offsetScroll)),s.createElement(wD.Provider,{value:N},s.createElement(cg,{fullHeight:!1,ref:_,prefixCls:"".concat(P,"-virtual"),styles:{horizontalScrollBar:F},className:P,height:C,itemHeight:y||24,data:O,itemKey:function(k){return u(k.record)},component:A,scrollWidth:v,direction:g,onVirtualScroll:function(k){var L,T=k.x;r({currentTarget:(L=_.current)===null||L===void 0?void 0:L.nativeElement,scrollLeft:T})},onScroll:$,extraRender:D},function(H,k,L){var T=u(H.record,k);return s.createElement(CI,{data:H,rowKey:T,index:k,style:L.style})}))}),pZ=yu(gZ),bZ=function(t,n){var r=n.ref,a=n.onScroll;return s.createElement(pZ,{ref:r,data:t,onScroll:a})};function yZ(e,t){var n=e.data,r=e.columns,a=e.scroll,o=e.sticky,c=e.prefixCls,u=c===void 0?xD:c,f=e.className,d=e.listItemHeight,h=e.components,v=e.onScroll,g=a||{},b=g.x,S=g.y;typeof b!="number"&&(b=1),typeof S!="number"&&(S=500);var C=pn(function($,_){return Aa(h,$)||_}),y=pn(v),w=s.useMemo(function(){return{sticky:o,scrollY:S,listItemHeight:d,getComponent:C,onScroll:y}},[o,S,d,C,y]);return s.createElement(MC.Provider,{value:w},s.createElement(xu,Me({},e,{className:se(f,"".concat(u,"-virtual")),scroll:ee(ee({},a),{},{x:b}),components:ee(ee({},h),{},{body:n!=null&&n.length?bZ:void 0}),columns:r,internalHooks:Ff,tailor:!0,ref:t})))}var SZ=s.forwardRef(yZ);function $D(e){return cD(SZ,e)}$D();const xZ=e=>null,CZ=e=>null;var jC=s.createContext(null),wZ=s.createContext({}),$Z=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,o=t.isEnd,c="".concat(n,"-indent-unit"),u=[],f=0;f<r;f+=1)u.push(s.createElement("span",{key:f,className:se(c,X(X({},"".concat(c,"-start"),a[f]),"".concat(c,"-end"),o[f]))}));return s.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},u)};const _Z=s.memo($Z);var EZ=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],wI="open",$I="close",OZ="---",xf=function(t){var n,r,a,o=t.eventKey,c=t.className,u=t.style,f=t.dragOver,d=t.dragOverGapTop,h=t.dragOverGapBottom,v=t.isLeaf,g=t.isStart,b=t.isEnd,S=t.expanded,C=t.selected,y=t.checked,w=t.halfChecked,$=t.loading,_=t.domRef,O=t.active,I=t.data,j=t.onMouseMove,M=t.selectable,D=Kt(t,EZ),N=xe.useContext(jC),P=xe.useContext(wZ),A=xe.useRef(null),F=xe.useState(!1),H=ce(F,2),k=H[0],L=H[1],T=!!(N.disabled||t.disabled||(n=P.nodeDisabled)!==null&&n!==void 0&&n.call(P,I)),z=xe.useMemo(function(){return!N.checkable||t.checkable===!1?!1:N.checkable},[N.checkable,t.checkable]),V=function(Oe){T||N.onNodeSelect(Oe,Jr(t))},q=function(Oe){T||!z||t.disableCheckbox||N.onNodeCheck(Oe,Jr(t),!y)},G=xe.useMemo(function(){return typeof M=="boolean"?M:N.selectable},[M,N.selectable]),B=function(Oe){N.onNodeClick(Oe,Jr(t)),G?V(Oe):q(Oe)},U=function(Oe){N.onNodeDoubleClick(Oe,Jr(t))},K=function(Oe){N.onNodeMouseEnter(Oe,Jr(t))},Y=function(Oe){N.onNodeMouseLeave(Oe,Jr(t))},Q=function(Oe){N.onNodeContextMenu(Oe,Jr(t))},Z=xe.useMemo(function(){return!!(N.draggable&&(!N.draggable.nodeDraggable||N.draggable.nodeDraggable(I)))},[N.draggable,I]),ae=function(Oe){Oe.stopPropagation(),L(!0),N.onNodeDragStart(Oe,t);try{Oe.dataTransfer.setData("text/plain","")}catch{}},re=function(Oe){Oe.preventDefault(),Oe.stopPropagation(),N.onNodeDragEnter(Oe,t)},ie=function(Oe){Oe.preventDefault(),Oe.stopPropagation(),N.onNodeDragOver(Oe,t)},ve=function(Oe){Oe.stopPropagation(),N.onNodeDragLeave(Oe,t)},ue=function(Oe){Oe.stopPropagation(),L(!1),N.onNodeDragEnd(Oe,t)},oe=function(Oe){Oe.preventDefault(),Oe.stopPropagation(),L(!1),N.onNodeDrop(Oe,t)},he=function(Oe){$||N.onNodeExpand(Oe,Jr(t))},de=xe.useMemo(function(){var Pe=qa(N.keyEntities,o)||{},Oe=Pe.children;return!!(Oe||[]).length},[N.keyEntities,o]),me=xe.useMemo(function(){return v===!1?!1:v||!N.loadData&&!de||N.loadData&&t.loaded&&!de},[v,N.loadData,de,t.loaded]);xe.useEffect(function(){$||typeof N.loadData=="function"&&S&&!me&&!t.loaded&&N.onNodeLoad(Jr(t))},[$,N.loadData,N.onNodeLoad,S,me,t]);var le=xe.useMemo(function(){var Pe;return(Pe=N.draggable)!==null&&Pe!==void 0&&Pe.icon?xe.createElement("span",{className:"".concat(N.prefixCls,"-draggable-icon")},N.draggable.icon):null},[N.draggable]),pe=function(Oe){var Be=t.switcherIcon||N.switcherIcon;return typeof Be=="function"?Be(ee(ee({},t),{},{isLeaf:Oe})):Be},Ce=function(){if(me){var Oe=pe(!0);return Oe!==!1?xe.createElement("span",{className:se("".concat(N.prefixCls,"-switcher"),"".concat(N.prefixCls,"-switcher-noop"))},Oe):null}var Be=pe(!1);return Be!==!1?xe.createElement("span",{onClick:he,className:se("".concat(N.prefixCls,"-switcher"),"".concat(N.prefixCls,"-switcher_").concat(S?wI:$I))},Be):null},De=xe.useMemo(function(){if(!z)return null;var Pe=typeof z!="boolean"?z:null;return xe.createElement("span",{className:se("".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"),T||t.disableCheckbox)),onClick:q,role:"checkbox","aria-checked":w?"mixed":y,"aria-disabled":T||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},Pe)},[z,y,w,T,t.disableCheckbox,t.title]),je=xe.useMemo(function(){return me?null:S?wI:$I},[me,S]),ge=xe.useMemo(function(){return xe.createElement("span",{className:se("".concat(N.prefixCls,"-iconEle"),"".concat(N.prefixCls,"-icon__").concat(je||"docu"),X({},"".concat(N.prefixCls,"-icon_loading"),$))})},[N.prefixCls,je,$]),Ie=xe.useMemo(function(){var Pe=!!N.draggable,Oe=!t.disabled&&Pe&&N.dragOverNodeKey===o;return Oe?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]),_e=xe.useMemo(function(){var Pe=t.title,Oe=Pe===void 0?OZ:Pe,Be="".concat(N.prefixCls,"-node-content-wrapper"),$e;if(N.showIcon){var Te=t.icon||N.icon;$e=Te?xe.createElement("span",{className:se("".concat(N.prefixCls,"-iconEle"),"".concat(N.prefixCls,"-icon__customize"))},typeof Te=="function"?Te(t):Te):ge}else N.loadData&&$&&($e=ge);var be;return typeof Oe=="function"?be=Oe(I):N.titleRender?be=N.titleRender(I):be=Oe,xe.createElement("span",{ref:A,title:typeof Oe=="string"?Oe:"",className:se(Be,"".concat(Be,"-").concat(je||"normal"),X({},"".concat(N.prefixCls,"-node-selected"),!T&&(C||k))),onMouseEnter:K,onMouseLeave:Y,onContextMenu:Q,onClick:B,onDoubleClick:U},$e,xe.createElement("span",{className:"".concat(N.prefixCls,"-title")},be),Ie)},[N.prefixCls,N.showIcon,t,N.icon,ge,N.titleRender,I,je,K,Y,Q,B,U]),we=ma(D,{aria:!0,data:!0}),Fe=qa(N.keyEntities,o)||{},He=Fe.level,it=b[b.length-1],Ze=!T&&Z,Ye=N.draggingNodeKey===o,Je=M!==void 0?{"aria-selected":!!M}:void 0;return xe.createElement("div",Me({ref:_,role:"treeitem","aria-expanded":v?void 0:S,className:se(c,"".concat(N.prefixCls,"-treenode"),(a={},X(X(X(X(X(X(X(X(X(X(a,"".concat(N.prefixCls,"-treenode-disabled"),T),"".concat(N.prefixCls,"-treenode-switcher-").concat(S?"open":"close"),!v),"".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"),O),"".concat(N.prefixCls,"-treenode-leaf-last"),it),"".concat(N.prefixCls,"-treenode-draggable"),Z),"dragging",Ye),X(X(X(X(X(X(X(a,"drop-target",N.dropTargetKey===o),"drop-container",N.dropContainerKey===o),"drag-over",!T&&f),"drag-over-gap-top",!T&&d),"drag-over-gap-bottom",!T&&h),"filter-node",(r=N.filterTreeNode)===null||r===void 0?void 0:r.call(N,Jr(t))),"".concat(N.prefixCls,"-treenode-leaf"),me))),style:u,draggable:Ze,onDragStart:Ze?ae:void 0,onDragEnter:Z?re:void 0,onDragOver:Z?ie:void 0,onDragLeave:Z?ve:void 0,onDrop:Z?oe:void 0,onDragEnd:Z?ue:void 0,onMouseMove:j},Je,we),xe.createElement(_Z,{prefixCls:N.prefixCls,level:He,isStart:g,isEnd:b}),le,Ce(),De,_e)};xf.isTreeNode=1;function ro(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Po(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function TC(e){return e.split("-")}function IZ(e,t){var n=[],r=qa(t,e);function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(c){var u=c.key,f=c.children;n.push(u),a(f)})}return a(r.children),n}function RZ(e){if(e.parent){var t=TC(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function NZ(e){var t=TC(e.pos);return Number(t[t.length-1])===0}function _I(e,t,n,r,a,o,c,u,f,d){var h,v=e.clientX,g=e.clientY,b=e.target.getBoundingClientRect(),S=b.top,C=b.height,y=(d==="rtl"?-1:1)*((a?.x||0)-v),w=(y-12)/r,$=f.filter(function(T){var z;return(z=u[T])===null||z===void 0||(z=z.children)===null||z===void 0?void 0:z.length}),_=qa(u,n.eventKey);if(g<S+C/2){var O=c.findIndex(function(T){return T.key===_.key}),I=O<=0?0:O-1,j=c[I].key;_=qa(u,j)}var M=_.key,D=_,N=_.key,P=0,A=0;if(!$.includes(M))for(var F=0;F<w&&RZ(_);F+=1)_=_.parent,A+=1;var H=t.data,k=_.node,L=!0;return NZ(_)&&_.level===0&&g<S+C/2&&o({dragNode:H,dropNode:k,dropPosition:-1})&&_.key===n.eventKey?P=-1:(D.children||[]).length&&$.includes(N)?o({dragNode:H,dropNode:k,dropPosition:0})?P=0:L=!1:A===0?w>-1.5?o({dragNode:H,dropNode:k,dropPosition:1})?P=1:L=!1:o({dragNode:H,dropNode:k,dropPosition:0})?P=0:o({dragNode:H,dropNode:k,dropPosition:1})?P=1:L=!1:o({dragNode:H,dropNode:k,dropPosition:1})?P=1:L=!1,{dropPosition:P,dropLevelOffset:A,dropTargetKey:_.key,dropTargetPos:_.pos,dragOverNodeKey:N,dropContainerKey:P===0?null:((h=_.parent)===null||h===void 0?void 0:h.key)||null,dropAllowed:L}}function EI(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function F0(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(jt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Sr(!1,"`checkedKeys` is not an array or an object"),null;return t}function IS(e,t){var n=new Set;function r(a){if(!n.has(a)){var o=qa(t,a);if(o){n.add(a);var c=o.parent,u=o.node;u.disabled||c&&r(c.key)}}}return(e||[]).forEach(function(a){r(a)}),ke(n)}function MZ(e){const[t,n]=s.useState(null);return[s.useCallback((o,c,u)=>{const f=t??o,d=Math.min(f||0,o),h=Math.max(f||0,o),v=c.slice(d,h+1).map(S=>e(S)),g=v.some(S=>!u.has(S)),b=[];return v.forEach(S=>{g?(u.has(S)||b.push(S),u.add(S)):(u.delete(S),b.push(S))}),n(g?h:null),b},[t]),o=>{n(o)}]}const Nl={},RS="SELECT_ALL",NS="SELECT_INVERT",MS="SELECT_NONE",OI=[],_D=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&_D(e,r[e],n)}),n),jZ=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:o,getTitleCheckboxProps:c,onChange:u,onSelect:f,onSelectAll:d,onSelectInvert:h,onSelectNone:v,onSelectMultiple:g,columnWidth:b,type:S,selections:C,fixed:y,renderCell:w,hideSelectAll:$,checkStrictly:_=!0}=t||{},{prefixCls:O,data:I,pageData:j,getRecordByKey:M,getRowKey:D,expandType:N,childrenColumnName:P,locale:A,getPopupContainer:F}=e,H=Kl(),[k,L]=MZ(oe=>oe),[T,z]=Wn(r||a||OI,{value:r}),V=s.useRef(new Map),q=s.useCallback(oe=>{if(n){const he=new Map;oe.forEach(de=>{let me=M(de);!me&&V.current.has(de)&&(me=V.current.get(de)),he.set(de,me)}),V.current=he}},[M,n]);s.useEffect(()=>{q(T)},[T]);const G=s.useMemo(()=>_D(P,j),[P,j]),{keyEntities:B}=s.useMemo(()=>{if(_)return{keyEntities:null};let oe=I;if(n){const he=new Set(G.map((me,le)=>D(me,le))),de=Array.from(V.current).reduce((me,[le,pe])=>he.has(le)?me:me.concat(pe),[]);oe=[].concat(ke(oe),ke(de))}return vC(oe,{externalGetKey:D,childrenPropName:P})},[I,D,_,P,n,G]),U=s.useMemo(()=>{const oe=new Map;return G.forEach((he,de)=>{const me=D(he,de),le=(o?o(he):null)||{};oe.set(me,le)}),oe},[G,D,o]),K=s.useCallback(oe=>{const he=D(oe);let de;return U.has(he)?de=U.get(D(oe)):de=o?o(oe):void 0,!!de?.disabled},[U,D]),[Y,Q]=s.useMemo(()=>{if(_)return[T||[],[]];const{checkedKeys:oe,halfCheckedKeys:he}=Wc(T,!0,B,K);return[oe||[],he]},[T,_,B,K]),Z=s.useMemo(()=>{const oe=S==="radio"?Y.slice(0,1):Y;return new Set(oe)},[Y,S]),ae=s.useMemo(()=>S==="radio"?new Set:new Set(Q),[Q,S]);s.useEffect(()=>{t||z(OI)},[!!t]);const re=s.useCallback((oe,he)=>{let de,me;q(oe),n?(de=oe,me=oe.map(le=>V.current.get(le))):(de=[],me=[],oe.forEach(le=>{const pe=M(le);pe!==void 0&&(de.push(le),me.push(pe))})),z(de),u?.(de,me,{type:he})},[z,M,u,n]),ie=s.useCallback((oe,he,de,me)=>{if(f){const le=de.map(pe=>M(pe));f(M(oe),he,le,me)}re(de,"single")},[f,M,re]),ve=s.useMemo(()=>!C||$?null:(C===!0?[RS,NS,MS]:C).map(he=>he===RS?{key:"all",text:A.selectionAll,onSelect(){re(I.map((de,me)=>D(de,me)).filter(de=>{const me=U.get(de);return!me?.disabled||Z.has(de)}),"all")}}:he===NS?{key:"invert",text:A.selectInvert,onSelect(){const de=new Set(Z);j.forEach((le,pe)=>{const Ce=D(le,pe),De=U.get(Ce);De?.disabled||(de.has(Ce)?de.delete(Ce):de.add(Ce))});const me=Array.from(de);h&&(H.deprecated(!1,"onSelectInvert","onChange"),h(me)),re(me,"invert")}}:he===MS?{key:"none",text:A.selectNone,onSelect(){v?.(),re(Array.from(Z).filter(de=>{const me=U.get(de);return me?.disabled}),"none")}}:he).map(he=>Object.assign(Object.assign({},he),{onSelect:(...de)=>{var me,le;(le=he.onSelect)===null||le===void 0||(me=le).call.apply(me,[he].concat(de)),L(null)}})),[C,Z,j,D,h,re]);return[s.useCallback(oe=>{var he;if(!t)return oe.filter(Pe=>Pe!==Nl);let de=ke(oe);const me=new Set(Z),le=G.map(D).filter(Pe=>!U.get(Pe).disabled),pe=le.every(Pe=>me.has(Pe)),Ce=le.some(Pe=>me.has(Pe)),De=()=>{const Pe=[];pe?le.forEach(Be=>{me.delete(Be),Pe.push(Be)}):le.forEach(Be=>{me.has(Be)||(me.add(Be),Pe.push(Be))});const Oe=Array.from(me);d?.(!pe,Oe.map(Be=>M(Be)),Pe.map(Be=>M(Be))),re(Oe,"all"),L(null)};let je,ge;if(S!=="radio"){let Pe;if(ve){const Ge={getPopupContainer:F,items:ve.map((ft,$t)=>{const{key:Qe,text:at,onSelect:mt}=ft;return{key:Qe??$t,onClick:()=>{mt?.(le)},label:at}})};Pe=s.createElement("div",{className:`${O}-selection-extra`},s.createElement(CC,{menu:Ge,getPopupContainer:F},s.createElement("span",null,s.createElement(Fx,null))))}const Oe=G.map((Ge,ft)=>{const $t=D(Ge,ft),Qe=U.get($t)||{};return Object.assign({checked:me.has($t)},Qe)}).filter(({disabled:Ge})=>Ge),Be=!!Oe.length&&Oe.length===G.length,$e=Be&&Oe.every(({checked:Ge})=>Ge),Te=Be&&Oe.some(({checked:Ge})=>Ge),be=c?.()||{},{onChange:ye,disabled:Re}=be;ge=s.createElement(qr,Object.assign({"aria-label":Pe?"Custom selection":"Select all"},be,{checked:Be?$e:!!G.length&&pe,indeterminate:Be?!$e&&Te:!pe&&Ce,onChange:Ge=>{De(),ye?.(Ge)},disabled:Re??(G.length===0||Be),skipGroup:!0})),je=!$&&s.createElement("div",{className:`${O}-selection`},ge,Pe)}let Ie;S==="radio"?Ie=(Pe,Oe,Be)=>{const $e=D(Oe,Be),Te=me.has($e),be=U.get($e);return{node:s.createElement(Sa,Object.assign({},be,{checked:Te,onClick:ye=>{var Re;ye.stopPropagation(),(Re=be?.onClick)===null||Re===void 0||Re.call(be,ye)},onChange:ye=>{var Re;me.has($e)||ie($e,!0,[$e],ye.nativeEvent),(Re=be?.onChange)===null||Re===void 0||Re.call(be,ye)}})),checked:Te}}:Ie=(Pe,Oe,Be)=>{var $e;const Te=D(Oe,Be),be=me.has(Te),ye=ae.has(Te),Re=U.get(Te);let Ge;return N==="nest"?Ge=ye:Ge=($e=Re?.indeterminate)!==null&&$e!==void 0?$e:ye,{node:s.createElement(qr,Object.assign({},Re,{indeterminate:Ge,checked:be,skipGroup:!0,onClick:ft=>{var $t;ft.stopPropagation(),($t=Re?.onClick)===null||$t===void 0||$t.call(Re,ft)},onChange:ft=>{var $t;const{nativeEvent:Qe}=ft,{shiftKey:at}=Qe,mt=le.indexOf(Te),st=Y.some(pt=>le.includes(pt));if(at&&_&&st){const pt=k(mt,le,me),Wt=Array.from(me);g?.(!be,Wt.map(Yt=>M(Yt)),pt.map(Yt=>M(Yt))),re(Wt,"multiple")}else{const pt=Y;if(_){const Wt=be?ro(pt,Te):Po(pt,Te);ie(Te,!be,Wt,Qe)}else{const Wt=Wc([].concat(ke(pt),[Te]),!0,B,K),{checkedKeys:Yt,halfCheckedKeys:ht}=Wt;let It=Yt;if(be){const _t=new Set(Yt);_t.delete(Te),It=Wc(Array.from(_t),{halfCheckedKeys:ht},B,K).checkedKeys}ie(Te,!be,It,Qe)}}L(be?null:mt),($t=Re?.onChange)===null||$t===void 0||$t.call(Re,ft)}})),checked:be}};const _e=(Pe,Oe,Be)=>{const{node:$e,checked:Te}=Ie(Pe,Oe,Be);return w?w(Te,Oe,Be,$e):$e};if(!de.includes(Nl))if(de.findIndex(Pe=>{var Oe;return((Oe=Pe[Yd])===null||Oe===void 0?void 0:Oe.columnType)==="EXPAND_COLUMN"})===0){const[Pe,...Oe]=de;de=[Pe,Nl].concat(ke(Oe))}else de=[Nl].concat(ke(de));const we=de.indexOf(Nl);de=de.filter((Pe,Oe)=>Pe!==Nl||Oe===we);const Fe=de[we-1],He=de[we+1];let it=y;it===void 0&&(He?.fixed!==void 0?it=He.fixed:Fe?.fixed!==void 0&&(it=Fe.fixed)),it&&Fe&&((he=Fe[Yd])===null||he===void 0?void 0:he.columnType)==="EXPAND_COLUMN"&&Fe.fixed===void 0&&(Fe.fixed=it);const Ze=se(`${O}-selection-col`,{[`${O}-selection-col-with-dropdown`]:C&&S==="checkbox"}),Ye=()=>t?.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ge):t.columnTitle:je,Je={fixed:it,width:b,className:`${O}-selection-column`,title:Ye(),render:_e,onCell:t.onCell,align:t.align,[Yd]:{className:Ze}};return de.map(Pe=>Pe===Nl?Je:Pe)},[D,G,t,Y,Z,ae,b,ve,N,U,g,ie,K]),Z]};function TZ(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 DZ(e,t){return s.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)}}):TZ(r,n)})}function PZ(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:o,expandable:c}=t,u=`${n}-row-expand-icon`;return s.createElement("button",{type:"button",onClick:f=>{r(a,f),f.stopPropagation()},className:se(u,{[`${u}-spaced`]:!c,[`${u}-expanded`]:c&&o,[`${u}-collapsed`]:c&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function kZ(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let o=r;if(a){const c=getComputedStyle(a),u=Number.parseInt(c.borderLeftWidth,10),f=Number.parseInt(c.borderRightWidth,10);o=r-u-f}return o}}const Bl=(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 Cu(e,t){return t?`${t}-${e}`:`${e}`}const Ig=(e,t)=>typeof e=="function"?e(t):e,AZ=(e,t)=>{const n=Ig(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};var zZ={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"},LZ=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:zZ}))},HZ=s.forwardRef(LZ);function BZ(e){const t=s.useRef(e),n=Kx();return[()=>t.current,r=>{t.current=r,n()}]}var FZ=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 xe.createElement("div",{style:o})};function ED(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function VZ(e,t){var n=s.useState(!1),r=ce(n,2),a=r[0],o=r[1];dn(function(){if(a)return e(),function(){t()}},[a]),dn(function(){return o(!0),function(){o(!1)}},[])}var KZ=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],UZ=s.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.motion,o=e.motionNodes,c=e.motionType,u=e.onMotionStart,f=e.onMotionEnd,d=e.active,h=e.treeNodeRequiredProps,v=Kt(e,KZ),g=s.useState(!0),b=ce(g,2),S=b[0],C=b[1],y=s.useContext(jC),w=y.prefixCls,$=o&&c!=="hide";dn(function(){o&&$!==S&&C($)},[o]);var _=function(){o&&u()},O=s.useRef(!1),I=function(){o&&!O.current&&(O.current=!0,f())};VZ(_,I);var j=function(D){$===D&&I()};return o?s.createElement(Oi,Me({ref:t,visible:S},a,{motionAppear:c==="show",onVisibleChanged:j}),function(M,D){var N=M.className,P=M.style;return s.createElement("div",{ref:D,className:se("".concat(w,"-treenode-motion"),N),style:P},o.map(function(A){var F=Object.assign({},(ED(A.data),A.data)),H=A.title,k=A.key,L=A.isStart,T=A.isEnd;delete F.children;var z=qd(k,h);return s.createElement(xf,Me({},F,z,{title:H,active:d,data:A.data,key:k,isStart:L,isEnd:T}))}))}):s.createElement(xf,Me({domRef:t,className:n,style:r},v,{active:d}))});function WZ(){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,c){var u=new Map;o.forEach(function(d){u.set(d,!0)});var f=c.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 c=t.findIndex(function(u){return u.key===a.key});return t.slice(o+1,c)}return t.slice(o+1)}var qZ=["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"],RI={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},YZ=function(){},js="RC_TREE_MOTION_".concat(Math.random()),jS={key:js},OD={key:js,level:0,index:0,pos:"0",node:jS,nodes:[jS]},NI={parent:null,children:[],pos:OD.pos,data:jS,title:null,key:js,isStart:[],isEnd:[]};function MI(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function jI(e){var t=e.key,n=e.pos;return Lf(t,n)}function GZ(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 XZ=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,o=e.selectedKeys,c=e.checkedKeys,u=e.loadedKeys,f=e.loadingKeys,d=e.halfCheckedKeys,h=e.keyEntities,v=e.disabled,g=e.dragging,b=e.dragOverNodeKey,S=e.dropPosition,C=e.motion,y=e.height,w=e.itemHeight,$=e.virtual,_=e.scrollWidth,O=e.focusable,I=e.activeItem,j=e.focused,M=e.tabIndex,D=e.onKeyDown,N=e.onFocus,P=e.onBlur,A=e.onActiveChange,F=e.onListChangeStart,H=e.onListChangeEnd,k=Kt(e,qZ),L=s.useRef(null),T=s.useRef(null);s.useImperativeHandle(t,function(){return{scrollTo:function(Ie){L.current.scrollTo(Ie)},getIndentWidth:function(){return T.current.offsetWidth}}});var z=s.useState(a),V=ce(z,2),q=V[0],G=V[1],B=s.useState(r),U=ce(B,2),K=U[0],Y=U[1],Q=s.useState(r),Z=ce(Q,2),ae=Z[0],re=Z[1],ie=s.useState([]),ve=ce(ie,2),ue=ve[0],oe=ve[1],he=s.useState(null),de=ce(he,2),me=de[0],le=de[1],pe=s.useRef(r);pe.current=r;function Ce(){var ge=pe.current;Y(ge),re(ge),oe([]),le(null),H()}dn(function(){G(a);var ge=WZ(q,a);if(ge.key!==null)if(ge.add){var Ie=K.findIndex(function(Ze){var Ye=Ze.key;return Ye===ge.key}),_e=MI(II(K,r,ge.key),$,y,w),we=K.slice();we.splice(Ie+1,0,NI),re(we),oe(_e),le("show")}else{var Fe=r.findIndex(function(Ze){var Ye=Ze.key;return Ye===ge.key}),He=MI(II(r,K,ge.key),$,y,w),it=r.slice();it.splice(Fe+1,0,NI),re(it),oe(He),le("hide")}else K!==r&&(Y(r),re(r))},[a,r]),s.useEffect(function(){g||Ce()},[g]);var De=C?ae:r,je={expandedKeys:a,selectedKeys:o,loadedKeys:u,loadingKeys:f,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:b,dropPosition:S,keyEntities:h};return s.createElement(s.Fragment,null,j&&I&&s.createElement("span",{style:RI,"aria-live":"assertive"},GZ(I)),s.createElement("div",null,s.createElement("input",{style:RI,disabled:O===!1||v,tabIndex:O!==!1?M:null,onKeyDown:D,onFocus:N,onBlur:P,value:"",onChange:YZ,"aria-label":"for screen reader"})),s.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},s.createElement("div",{className:"".concat(n,"-indent")},s.createElement("div",{ref:T,className:"".concat(n,"-indent-unit")}))),s.createElement(cg,Me({},k,{data:De,itemKey:jI,height:y,fullHeight:!1,virtual:$,itemHeight:w,scrollWidth:_,prefixCls:"".concat(n,"-list"),ref:L,role:"tree",onVisibleChange:function(Ie){Ie.every(function(_e){return jI(_e)!==js})&&Ce()}}),function(ge){var Ie=ge.pos,_e=Object.assign({},(ED(ge.data),ge.data)),we=ge.title,Fe=ge.key,He=ge.isStart,it=ge.isEnd,Ze=Lf(Fe,Ie);delete _e.key,delete _e.children;var Ye=qd(Ze,je);return s.createElement(UZ,Me({},_e,Ye,{title:we,active:!!I&&Fe===I.key,pos:Ie,data:ge.data,isStart:He,isEnd:it,motion:C,motionNodes:Fe===js?ue:null,motionType:me,onMotionStart:F,onMotionEnd:Ce,treeNodeRequiredProps:je,onMouseMove:function(){A(null)}}))}))}),QZ=10,DC=(function(e){oi(n,e);var t=Ei(n);function n(){var r;xr(this,n);for(var a=arguments.length,o=new Array(a),c=0;c<a;c++)o[c]=arguments[c];return r=t.call.apply(t,[this].concat(o)),X(xt(r),"destroyed",!1),X(xt(r),"delayedDragEnterLogic",void 0),X(xt(r),"loadingRetryTimes",{}),X(xt(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:au()}),X(xt(r),"dragStartMousePosition",null),X(xt(r),"dragNodeProps",null),X(xt(r),"currentMouseOverDroppableNodeKey",null),X(xt(r),"listRef",s.createRef()),X(xt(r),"onNodeDragStart",function(u,f){var d=r.state,h=d.expandedKeys,v=d.keyEntities,g=r.props.onDragStart,b=f.eventKey;r.dragNodeProps=f,r.dragStartMousePosition={x:u.clientX,y:u.clientY};var S=ro(h,b);r.setState({draggingNodeKey:b,dragChildrenKeys:IZ(b,v),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(S),window.addEventListener("dragend",r.onWindowDragEnd),g?.({event:u,node:Jr(f)})}),X(xt(r),"onNodeDragEnter",function(u,f){var d=r.state,h=d.expandedKeys,v=d.keyEntities,g=d.dragChildrenKeys,b=d.flattenNodes,S=d.indent,C=r.props,y=C.onDragEnter,w=C.onExpand,$=C.allowDrop,_=C.direction,O=f.pos,I=f.eventKey;if(r.currentMouseOverDroppableNodeKey!==I&&(r.currentMouseOverDroppableNodeKey=I),!r.dragNodeProps){r.resetDragState();return}var j=_I(u,r.dragNodeProps,f,S,r.dragStartMousePosition,$,b,v,h,_),M=j.dropPosition,D=j.dropLevelOffset,N=j.dropTargetKey,P=j.dropContainerKey,A=j.dropTargetPos,F=j.dropAllowed,H=j.dragOverNodeKey;if(g.includes(N)||!F){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(k){clearTimeout(r.delayedDragEnterLogic[k])}),r.dragNodeProps.eventKey!==f.eventKey&&(u.persist(),r.delayedDragEnterLogic[O]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var k=ke(h),L=qa(v,f.eventKey);L&&(L.children||[]).length&&(k=Po(h,f.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(k),w?.(k,{node:Jr(f),expanded:!0,nativeEvent:u.nativeEvent})}},800)),r.dragNodeProps.eventKey===N&&D===0){r.resetDragState();return}r.setState({dragOverNodeKey:H,dropPosition:M,dropLevelOffset:D,dropTargetKey:N,dropContainerKey:P,dropTargetPos:A,dropAllowed:F}),y?.({event:u,node:Jr(f),expandedKeys:h})}),X(xt(r),"onNodeDragOver",function(u,f){var d=r.state,h=d.dragChildrenKeys,v=d.flattenNodes,g=d.keyEntities,b=d.expandedKeys,S=d.indent,C=r.props,y=C.onDragOver,w=C.allowDrop,$=C.direction;if(r.dragNodeProps){var _=_I(u,r.dragNodeProps,f,S,r.dragStartMousePosition,w,v,g,b,$),O=_.dropPosition,I=_.dropLevelOffset,j=_.dropTargetKey,M=_.dropContainerKey,D=_.dropTargetPos,N=_.dropAllowed,P=_.dragOverNodeKey;h.includes(j)||!N||(r.dragNodeProps.eventKey===j&&I===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():O===r.state.dropPosition&&I===r.state.dropLevelOffset&&j===r.state.dropTargetKey&&M===r.state.dropContainerKey&&D===r.state.dropTargetPos&&N===r.state.dropAllowed&&P===r.state.dragOverNodeKey||r.setState({dropPosition:O,dropLevelOffset:I,dropTargetKey:j,dropContainerKey:M,dropTargetPos:D,dropAllowed:N,dragOverNodeKey:P}),y?.({event:u,node:Jr(f)}))}}),X(xt(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?.({event:u,node:Jr(f)})}),X(xt(r),"onWindowDragEnd",function(u){r.onNodeDragEnd(u,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),X(xt(r),"onNodeDragEnd",function(u,f){var d=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),d?.({event:u,node:Jr(f)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),X(xt(r),"onNodeDrop",function(u,f){var d,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,v=r.state,g=v.dragChildrenKeys,b=v.dropPosition,S=v.dropTargetKey,C=v.dropTargetPos,y=v.dropAllowed;if(y){var w=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),S!==null){var $=ee(ee({},qd(S,r.getTreeNodeRequiredProps())),{},{active:((d=r.getActiveItem())===null||d===void 0?void 0:d.key)===S,data:qa(r.state.keyEntities,S).node}),_=g.includes(S);Sr(!_,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var O=TC(C),I={event:u,node:Jr($),dragNode:r.dragNodeProps?Jr(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(g),dropToGap:b!==0,dropPosition:b+Number(O[O.length-1])};h||w?.(I),r.dragNodeProps=null}}}),X(xt(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(xt(r),"triggerExpandActionExpand",function(u,f){var d=r.state,h=d.expandedKeys,v=d.flattenNodes,g=f.expanded,b=f.key,S=f.isLeaf;if(!(S||u.shiftKey||u.metaKey||u.ctrlKey)){var C=v.filter(function(w){return w.key===b})[0],y=Jr(ee(ee({},qd(b,r.getTreeNodeRequiredProps())),{},{data:C.data}));r.setExpandedKeys(g?ro(h,b):Po(h,b)),r.onNodeExpand(u,y)}}),X(xt(r),"onNodeClick",function(u,f){var d=r.props,h=d.onClick,v=d.expandAction;v==="click"&&r.triggerExpandActionExpand(u,f),h?.(u,f)}),X(xt(r),"onNodeDoubleClick",function(u,f){var d=r.props,h=d.onDoubleClick,v=d.expandAction;v==="doubleClick"&&r.triggerExpandActionExpand(u,f),h?.(u,f)}),X(xt(r),"onNodeSelect",function(u,f){var d=r.state.selectedKeys,h=r.state,v=h.keyEntities,g=h.fieldNames,b=r.props,S=b.onSelect,C=b.multiple,y=f.selected,w=f[g.key],$=!y;$?C?d=Po(d,w):d=[w]:d=ro(d,w);var _=d.map(function(O){var I=qa(v,O);return I?I.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:d}),S?.(d,{event:"select",selected:$,node:f,selectedNodes:_,nativeEvent:u.nativeEvent})}),X(xt(r),"onNodeCheck",function(u,f,d){var h=r.state,v=h.keyEntities,g=h.checkedKeys,b=h.halfCheckedKeys,S=r.props,C=S.checkStrictly,y=S.onCheck,w=f.key,$,_={event:"check",node:f,checked:d,nativeEvent:u.nativeEvent};if(C){var O=d?Po(g,w):ro(g,w),I=ro(b,w);$={checked:O,halfChecked:I},_.checkedNodes=O.map(function(A){return qa(v,A)}).filter(Boolean).map(function(A){return A.node}),r.setUncontrolledState({checkedKeys:O})}else{var j=Wc([].concat(ke(g),[w]),!0,v),M=j.checkedKeys,D=j.halfCheckedKeys;if(!d){var N=new Set(M);N.delete(w);var P=Wc(Array.from(N),{halfCheckedKeys:D},v);M=P.checkedKeys,D=P.halfCheckedKeys}$=M,_.checkedNodes=[],_.checkedNodesPositions=[],_.halfCheckedKeys=D,M.forEach(function(A){var F=qa(v,A);if(F){var H=F.node,k=F.pos;_.checkedNodes.push(H),_.checkedNodesPositions.push({node:H,pos:k})}}),r.setUncontrolledState({checkedKeys:M},!1,{halfCheckedKeys:D})}y?.($,_)}),X(xt(r),"onNodeLoad",function(u){var f,d=u.key,h=r.state.keyEntities,v=qa(h,d);if(!(v!=null&&(f=v.children)!==null&&f!==void 0&&f.length)){var g=new Promise(function(b,S){r.setState(function(C){var y=C.loadedKeys,w=y===void 0?[]:y,$=C.loadingKeys,_=$===void 0?[]:$,O=r.props,I=O.loadData,j=O.onLoad;if(!I||w.includes(d)||_.includes(d))return null;var M=I(u);return M.then(function(){var D=r.state.loadedKeys,N=Po(D,d);j?.(N,{event:"load",node:u}),r.setUncontrolledState({loadedKeys:N}),r.setState(function(P){return{loadingKeys:ro(P.loadingKeys,d)}}),b()}).catch(function(D){if(r.setState(function(P){return{loadingKeys:ro(P.loadingKeys,d)}}),r.loadingRetryTimes[d]=(r.loadingRetryTimes[d]||0)+1,r.loadingRetryTimes[d]>=QZ){var N=r.state.loadedKeys;Sr(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Po(N,d)}),b()}S(D)}),{loadingKeys:Po(_,d)}})});return g.catch(function(){}),g}}),X(xt(r),"onNodeMouseEnter",function(u,f){var d=r.props.onMouseEnter;d?.({event:u,node:f})}),X(xt(r),"onNodeMouseLeave",function(u,f){var d=r.props.onMouseLeave;d?.({event:u,node:f})}),X(xt(r),"onNodeContextMenu",function(u,f){var d=r.props.onRightClick;d&&(u.preventDefault(),d({event:u,node:f}))}),X(xt(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?.apply(void 0,d)}),X(xt(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?.apply(void 0,d)}),X(xt(r),"getTreeNodeRequiredProps",function(){var u=r.state,f=u.expandedKeys,d=u.selectedKeys,h=u.loadedKeys,v=u.loadingKeys,g=u.checkedKeys,b=u.halfCheckedKeys,S=u.dragOverNodeKey,C=u.dropPosition,y=u.keyEntities;return{expandedKeys:f||[],selectedKeys:d||[],loadedKeys:h||[],loadingKeys:v||[],checkedKeys:g||[],halfCheckedKeys:b||[],dragOverNodeKey:S,dropPosition:C,keyEntities:y}}),X(xt(r),"setExpandedKeys",function(u){var f=r.state,d=f.treeData,h=f.fieldNames,v=D0(d,u,h);r.setUncontrolledState({expandedKeys:u,flattenNodes:v},!0)}),X(xt(r),"onNodeExpand",function(u,f){var d=r.state.expandedKeys,h=r.state,v=h.listChanging,g=h.fieldNames,b=r.props,S=b.onExpand,C=b.loadData,y=f.expanded,w=f[g.key];if(!v){var $=d.includes(w),_=!y;if(Sr(y&&$||!y&&!$,"Expand state not sync with index check"),d=_?Po(d,w):ro(d,w),r.setExpandedKeys(d),S?.(d,{node:f,expanded:_,nativeEvent:u.nativeEvent}),_&&C){var O=r.onNodeLoad(f);O&&O.then(function(){var I=D0(r.state.treeData,d,g);r.setUncontrolledState({flattenNodes:I})}).catch(function(){var I=r.state.expandedKeys,j=ro(I,w);r.setExpandedKeys(j)})}}}),X(xt(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),X(xt(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),X(xt(r),"onActiveChange",function(u){var f=r.state.activeKey,d=r.props,h=d.onActiveChange,v=d.itemScrollOffset,g=v===void 0?0:v;f!==u&&(r.setState({activeKey:u}),u!==null&&r.scrollTo({key:u,offset:g}),h?.(u))}),X(xt(r),"getActiveItem",function(){var u=r.state,f=u.activeKey,d=u.flattenNodes;return f===null?null:d.find(function(h){var v=h.key;return v===f})||null}),X(xt(r),"offsetActiveKey",function(u){var f=r.state,d=f.flattenNodes,h=f.activeKey,v=d.findIndex(function(S){var C=S.key;return C===h});v===-1&&u<0&&(v=d.length),v=(v+u+d.length)%d.length;var g=d[v];if(g){var b=g.key;r.onActiveChange(b)}else r.onActiveChange(null)}),X(xt(r),"onKeyDown",function(u){var f=r.state,d=f.activeKey,h=f.expandedKeys,v=f.checkedKeys,g=f.fieldNames,b=r.props,S=b.onKeyDown,C=b.checkable,y=b.selectable;switch(u.which){case Mt.UP:{r.offsetActiveKey(-1),u.preventDefault();break}case Mt.DOWN:{r.offsetActiveKey(1),u.preventDefault();break}}var w=r.getActiveItem();if(w&&w.data){var $=r.getTreeNodeRequiredProps(),_=w.data.isLeaf===!1||!!(w.data[g.children]||[]).length,O=Jr(ee(ee({},qd(d,$)),{},{data:w.data,active:!0}));switch(u.which){case Mt.LEFT:{_&&h.includes(d)?r.onNodeExpand({},O):w.parent&&r.onActiveChange(w.parent.key),u.preventDefault();break}case Mt.RIGHT:{_&&!h.includes(d)?r.onNodeExpand({},O):w.children&&w.children.length&&r.onActiveChange(w.children[0].key),u.preventDefault();break}case Mt.ENTER:case Mt.SPACE:{C&&!O.disabled&&O.checkable!==!1&&!O.disableCheckbox?r.onNodeCheck({},O,!v.includes(d)):!C&&y&&!O.disabled&&O.selectable!==!1&&r.onNodeSelect({},O);break}}}S?.(u)}),X(xt(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,v=!0,g={};Object.keys(u).forEach(function(b){if(r.props.hasOwnProperty(b)){v=!1;return}h=!0,g[b]=u[b]}),h&&(!f||v)&&r.setState(ee(ee({},g),d))}}),X(xt(r),"scrollTo",function(u){r.listRef.current.scrollTo(u)}),r}return Cr(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,c=a.itemScrollOffset,u=c===void 0?0:c;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,c=a.flattenNodes,u=a.keyEntities,f=a.draggingNodeKey,d=a.activeKey,h=a.dropLevelOffset,v=a.dropContainerKey,g=a.dropTargetKey,b=a.dropPosition,S=a.dragOverNodeKey,C=a.indent,y=this.props,w=y.prefixCls,$=y.className,_=y.style,O=y.showLine,I=y.focusable,j=y.tabIndex,M=j===void 0?0:j,D=y.selectable,N=y.showIcon,P=y.icon,A=y.switcherIcon,F=y.draggable,H=y.checkable,k=y.checkStrictly,L=y.disabled,T=y.motion,z=y.loadData,V=y.filterTreeNode,q=y.height,G=y.itemHeight,B=y.scrollWidth,U=y.virtual,K=y.titleRender,Y=y.dropIndicatorRender,Q=y.onContextMenu,Z=y.onScroll,ae=y.direction,re=y.rootClassName,ie=y.rootStyle,ve=ma(this.props,{aria:!0,data:!0}),ue;F&&(jt(F)==="object"?ue=F:typeof F=="function"?ue={nodeDraggable:F}:ue={});var oe={prefixCls:w,selectable:D,showIcon:N,icon:P,switcherIcon:A,draggable:ue,draggingNodeKey:f,checkable:H,checkStrictly:k,disabled:L,keyEntities:u,dropLevelOffset:h,dropContainerKey:v,dropTargetKey:g,dropPosition:b,dragOverNodeKey:S,indent:C,direction:ae,dropIndicatorRender:Y,loadData:z,filterTreeNode:V,titleRender:K,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 s.createElement(jC.Provider,{value:oe},s.createElement("div",{className:se(w,$,re,X(X(X({},"".concat(w,"-show-line"),O),"".concat(w,"-focused"),o),"".concat(w,"-active-focused"),d!==null)),style:ie},s.createElement(XZ,Me({ref:this.listRef,prefixCls:w,style:_,data:c,disabled:L,selectable:D,checkable:!!H,motion:T,dragging:f!==null,height:q,itemHeight:G,virtual:U,focusable:I,focused:o,tabIndex:M,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:B},this.getTreeNodeRequiredProps(),ve))))}}],[{key:"getDerivedStateFromProps",value:function(a,o){var c=o.prevProps,u={prevProps:a};function f(M){return!c&&a.hasOwnProperty(M)||c&&c[M]!==a[M]}var d,h=o.fieldNames;if(f("fieldNames")&&(h=au(a.fieldNames),u.fieldNames=h),f("treeData")?d=a.treeData:f("children")&&(Sr(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),d=CT(a.children)),d){u.treeData=d;var v=vC(d,{fieldNames:h});u.keyEntities=ee(X({},js,OD),v.keyEntities)}var g=u.keyEntities||o.keyEntities;if(f("expandedKeys")||c&&f("autoExpandParent"))u.expandedKeys=a.autoExpandParent||!c&&a.defaultExpandParent?IS(a.expandedKeys,g):a.expandedKeys;else if(!c&&a.defaultExpandAll){var b=ee({},g);delete b[js];var S=[];Object.keys(b).forEach(function(M){var D=b[M];D.children&&D.children.length&&S.push(D.key)}),u.expandedKeys=S}else!c&&a.defaultExpandedKeys&&(u.expandedKeys=a.autoExpandParent||a.defaultExpandParent?IS(a.defaultExpandedKeys,g):a.defaultExpandedKeys);if(u.expandedKeys||delete u.expandedKeys,d||u.expandedKeys){var C=D0(d||o.treeData,u.expandedKeys||o.expandedKeys,h);u.flattenNodes=C}if(a.selectable&&(f("selectedKeys")?u.selectedKeys=EI(a.selectedKeys,a):!c&&a.defaultSelectedKeys&&(u.selectedKeys=EI(a.defaultSelectedKeys,a))),a.checkable){var y;if(f("checkedKeys")?y=F0(a.checkedKeys)||{}:!c&&a.defaultCheckedKeys?y=F0(a.defaultCheckedKeys)||{}:d&&(y=F0(a.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),y){var w=y,$=w.checkedKeys,_=$===void 0?[]:$,O=w.halfCheckedKeys,I=O===void 0?[]:O;if(!a.checkStrictly){var j=Wc(_,!0,g);_=j.checkedKeys,I=j.halfCheckedKeys}u.checkedKeys=_,u.halfCheckedKeys=I}}return f("loadedKeys")&&(u.loadedKeys=a.loadedKeys),u}}]),n})(s.Component);X(DC,"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:FZ,allowDrop:function(){return!0},expandAction:!1});X(DC,"TreeNode",xf);var ZZ={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"},JZ=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:ZZ}))},ID=s.forwardRef(JZ),eJ={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"},tJ=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:eJ}))},nJ=s.forwardRef(tJ),rJ={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"},aJ=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:rJ}))},iJ=s.forwardRef(aJ),oJ={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"},lJ=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:oJ}))},sJ=s.forwardRef(lJ);const cJ=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:a,borderRadius:o,controlItemBgHover:c})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:o},"&:hover:before":{background:c}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:o,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),uJ=new jn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),dJ=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),fJ=(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:`${te(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),mJ=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:o,indentSize:c,nodeSelectedBg:u,nodeHoverBg:f,colorTextQuaternary:d,controlItemBgActiveDisabled:h}=t;return{[n]:Object.assign(Object.assign({},An(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,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)`]:so(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:uJ,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:a,lineHeight:te(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:t.fontWeightStrong},"&-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:c}},[`${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({},dJ(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`},fJ(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:`${te(t.calc(o).div(2).equal())} !important`}})}},hJ=(e,t,n=!0)=>{const r=`.${e}`,a=`${r}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),c=Sn(t,{treeCls:r,treeNodeCls:a,treeNodePadding:o});return[mJ(e,c),n&&cJ(c)].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}},gJ=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},vJ(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},pJ=Kn("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:$T(`${t}-checkbox`,e)},hJ(t,e),Wv(e)],gJ),TI=4;function bJ(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:o="ltr"}=e,c=o==="ltr"?"left":"right",u=o==="ltr"?"right":"left",f={[c]:-n*a+TI,[u]:0};switch(t){case-1:f.top=-3;break;case 1:f.bottom=-3;break;default:f.bottom=-3,f[c]=a+TI;break}return xe.createElement("div",{style:f,className:`${r}-drop-indicator`})}var yJ={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"},SJ=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:yJ}))},xJ=s.forwardRef(SJ),CJ={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"},wJ=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:CJ}))},$J=s.forwardRef(wJ),_J={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"},EJ=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:_J}))},OJ=s.forwardRef(EJ);const IJ=e=>{var t,n;const{prefixCls:r,switcherIcon:a,treeNodeProps:o,showLine:c,switcherLoadingIcon:u}=e,{isLeaf:f,expanded:d,loading:h}=o;if(h)return s.isValidElement(u)?u:s.createElement(qo,{className:`${r}-switcher-loading-icon`});let v;if(c&&typeof c=="object"&&(v=c.showLeafIcon),f){if(!c)return null;if(typeof v!="boolean"&&v){const S=typeof v=="function"?v(o):v,C=`${r}-switcher-line-custom-icon`;return s.isValidElement(S)?wa(S,{className:se((t=S.props)===null||t===void 0?void 0:t.className,C)}):S}return v?s.createElement(ID,{className:`${r}-switcher-line-icon`}):s.createElement("span",{className:`${r}-switcher-leaf-line`})}const g=`${r}-switcher-icon`,b=typeof a=="function"?a(o):a;return s.isValidElement(b)?wa(b,{className:se((n=b.props)===null||n===void 0?void 0:n.className,g)}):b!==void 0?b:c?d?s.createElement($J,{className:`${r}-switcher-line-icon`}):s.createElement(OJ,{className:`${r}-switcher-line-icon`}):s.createElement(xJ,{className:g})},RD=xe.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:o,tree:c}=xe.useContext(Ut),{prefixCls:u,className:f,showIcon:d=!1,showLine:h,switcherIcon:v,switcherLoadingIcon:g,blockNode:b=!1,children:S,checkable:C=!1,selectable:y=!0,draggable:w,motion:$,style:_}=e,O=r("tree",u),I=r(),j=$??Object.assign(Object.assign({},df(I)),{motionAppear:!1}),M=Object.assign(Object.assign({},e),{checkable:C,selectable:y,showIcon:d,motion:j,blockNode:b,showLine:!!h,dropIndicatorRender:bJ}),[D,N,P]=pJ(O),[,A]=Ta(),F=A.paddingXS/2+(((n=A.Tree)===null||n===void 0?void 0:n.titleHeight)||A.controlHeightSM),H=xe.useMemo(()=>{if(!w)return!1;let L={};switch(typeof w){case"function":L.nodeDraggable=w;break;case"object":L=Object.assign({},w);break}return L.icon!==!1&&(L.icon=L.icon||xe.createElement(sJ,null)),L},[w]),k=L=>xe.createElement(IJ,{prefixCls:O,switcherIcon:v,switcherLoadingIcon:g,treeNodeProps:L,showLine:h});return D(xe.createElement(DC,Object.assign({itemHeight:F,ref:t,virtual:o},M,{style:Object.assign(Object.assign({},c?.style),_),prefixCls:O,className:se({[`${O}-icon-hide`]:!d,[`${O}-block-node`]:b,[`${O}-unselectable`]:!y,[`${O}-rtl`]:a==="rtl"},c?.className,f,N,P),direction:a,checkable:C&&xe.createElement("span",{className:`${O}-checkbox-inner`}),selectable:y,switcherIcon:k,draggable:H}),S))}),DI=0,V0=1,PI=2;function PC(e,t,n){const{key:r,children:a}=n;function o(c){const u=c[r],f=c[a];t(u,c)!==!1&&PC(f||[],t,n)}e.forEach(o)}function RJ({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:a}){const o=[];let c=DI;if(n&&n===r)return[n];if(!n||!r)return[];function u(f){return f===n||f===r}return PC(e,f=>{if(c===PI)return!1;if(u(f)){if(o.push(f),c===DI)c=V0;else if(c===V0)return c=PI,!1}else c===V0&&o.push(f);return t.includes(f)},au(a)),o}function K0(e,t,n){const r=ke(t),a=[];return PC(e,(o,c)=>{const u=r.indexOf(o);return u!==-1&&(a.push(c),r.splice(u,1)),!!r.length},au(n)),a}var kI=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 NJ(e){const{isLeaf:t,expanded:n}=e;return t?s.createElement(ID,null):n?s.createElement(nJ,null):s.createElement(iJ,null)}function AI({treeData:e,children:t}){return e||CT(t)}const MJ=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,o=kI(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const c=s.useRef(null),u=s.useRef(null),f=()=>{const{keyEntities:D}=vC(AI(o));let N;return n?N=Object.keys(D):r?N=IS(o.expandedKeys||a||[],D):N=o.expandedKeys||a||[],N},[d,h]=s.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[v,g]=s.useState(()=>f());s.useEffect(()=>{"selectedKeys"in o&&h(o.selectedKeys)},[o.selectedKeys]),s.useEffect(()=>{"expandedKeys"in o&&g(o.expandedKeys)},[o.expandedKeys]);const b=(D,N)=>{var P;return"expandedKeys"in o||g(D),(P=o.onExpand)===null||P===void 0?void 0:P.call(o,D,N)},S=(D,N)=>{var P;const{multiple:A,fieldNames:F}=o,{node:H,nativeEvent:k}=N,{key:L=""}=H,T=AI(o),z=Object.assign(Object.assign({},N),{selected:!0}),V=k?.ctrlKey||k?.metaKey,q=k?.shiftKey;let G;A&&V?(G=D,c.current=L,u.current=G,z.selectedNodes=K0(T,G,F)):A&&q?(G=Array.from(new Set([].concat(ke(u.current||[]),ke(RJ({treeData:T,expandedKeys:v,startKey:L,endKey:c.current,fieldNames:F}))))),z.selectedNodes=K0(T,G,F)):(G=[L],c.current=L,u.current=G,z.selectedNodes=K0(T,G,F)),(P=o.onSelect)===null||P===void 0||P.call(o,G,z),"selectedKeys"in o||h(G)},{getPrefixCls:C,direction:y}=s.useContext(Ut),{prefixCls:w,className:$,showIcon:_=!0,expandAction:O="click"}=o,I=kI(o,["prefixCls","className","showIcon","expandAction"]),j=C("tree",w),M=se(`${j}-directory`,{[`${j}-directory-rtl`]:y==="rtl"},$);return s.createElement(RD,Object.assign({icon:NJ,ref:t,blockNode:!0},I,{showIcon:_,expandAction:O,prefixCls:j,className:M,expandedKeys:v,selectedKeys:d,onSelect:S,onExpand:b}))},jJ=s.forwardRef(MJ),kC=RD;kC.DirectoryTree=jJ;kC.TreeNode=xf;const zI=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:o}=e;return n?s.createElement("div",{className:`${r}-filter-dropdown-search`},s.createElement(Hf,{prefix:s.createElement(Vx,null),placeholder:a.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},TJ=e=>{const{keyCode:t}=e;t===Mt.ENTER&&e.stopPropagation()},DJ=s.forwardRef((e,t)=>s.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:TJ,ref:t},e.children));function qc(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(ke(t),ke(qc(r))))}),t}function PJ(e){return e.some(({children:t})=>t)}function ND(e,t){return typeof t=="string"||typeof t=="number"?t?.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function MD({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:o}){return e.map((c,u)=>{const f=String(c.value);if(c.children)return{key:f||u,label:c.text,popupClassName:`${t}-dropdown-submenu`,children:MD({filters:c.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:o})};const d=r?qr:Sa,h={key:c.value!==void 0?f:u,label:s.createElement(s.Fragment,null,s.createElement(d,{checked:n.includes(f)}),s.createElement("span",null,c.text))};return a.trim()?typeof o=="function"?o(a,c)?h:null:ND(a,c.text)?h:null:h})}function U0(e){return e||[]}const kJ=e=>{var t,n,r,a;const{tablePrefixCls:o,prefixCls:c,column:u,dropdownPrefixCls:f,columnKey:d,filterOnClose:h,filterMultiple:v,filterMode:g="menu",filterSearch:b=!1,filterState:S,triggerFilter:C,locale:y,children:w,getPopupContainer:$,rootClassName:_}=e,{filterResetToDefaultFilteredValue:O,defaultFilteredValue:I,filterDropdownProps:j={},filterDropdownOpen:M,filterDropdownVisible:D,onFilterDropdownVisibleChange:N,onFilterDropdownOpenChange:P}=u,[A,F]=s.useState(!1),H=!!(S&&(!((t=S.filteredKeys)===null||t===void 0)&&t.length||S.forceFiltered)),k=ge=>{var Ie;F(ge),(Ie=j.onOpenChange)===null||Ie===void 0||Ie.call(j,ge),P?.(ge),N?.(ge)},L=(a=(r=(n=j.open)!==null&&n!==void 0?n:M)!==null&&r!==void 0?r:D)!==null&&a!==void 0?a:A,T=S?.filteredKeys,[z,V]=BZ(U0(T)),q=({selectedKeys:ge})=>{V(ge)},G=(ge,{node:Ie,checked:_e})=>{q(v?{selectedKeys:ge}:{selectedKeys:_e&&Ie.key?[Ie.key]:[]})};s.useEffect(()=>{A&&q({selectedKeys:U0(T)})},[T]);const[B,U]=s.useState([]),K=ge=>{U(ge)},[Y,Q]=s.useState(""),Z=ge=>{const{value:Ie}=ge.target;Q(Ie)};s.useEffect(()=>{A||Q("")},[A]);const ae=ge=>{const Ie=ge?.length?ge:null;if(Ie===null&&(!S||!S.filteredKeys)||oo(Ie,S?.filteredKeys,!0))return null;C({column:u,key:d,filteredKeys:Ie})},re=()=>{k(!1),ae(z())},ie=({confirm:ge,closeDropdown:Ie}={confirm:!1,closeDropdown:!1})=>{ge&&ae([]),Ie&&k(!1),Q(""),V(O?(I||[]).map(_e=>String(_e)):[])},ve=({closeDropdown:ge}={closeDropdown:!0})=>{ge&&k(!1),ae(z())},ue=(ge,Ie)=>{Ie.source==="trigger"&&(ge&&T!==void 0&&V(U0(T)),k(ge),!ge&&!u.filterDropdown&&h&&re())},oe=se({[`${f}-menu-without-submenu`]:!PJ(u.filters||[])}),he=ge=>{if(ge.target.checked){const Ie=qc(u?.filters).map(_e=>String(_e));V(Ie)}else V([])},de=({filters:ge})=>(ge||[]).map((Ie,_e)=>{const we=String(Ie.value),Fe={title:Ie.text,key:Ie.value!==void 0?we:String(_e)};return Ie.children&&(Fe.children=de({filters:Ie.children})),Fe}),me=ge=>{var Ie;return Object.assign(Object.assign({},ge),{text:ge.title,value:ge.key,children:((Ie=ge.children)===null||Ie===void 0?void 0:Ie.map(_e=>me(_e)))||[]})};let le;const{direction:pe,renderEmpty:Ce}=s.useContext(Ut);if(typeof u.filterDropdown=="function")le=u.filterDropdown({prefixCls:`${f}-custom`,setSelectedKeys:ge=>q({selectedKeys:ge}),selectedKeys:z(),confirm:ve,clearFilters:ie,filters:u.filters,visible:L,close:()=>{k(!1)}});else if(u.filterDropdown)le=u.filterDropdown;else{const ge=z()||[],Ie=()=>{var we,Fe;const He=(we=Ce?.("Table.filter"))!==null&&we!==void 0?we:s.createElement(Ao,{image:Ao.PRESENTED_IMAGE_SIMPLE,description:y.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((u.filters||[]).length===0)return He;if(g==="tree")return s.createElement(s.Fragment,null,s.createElement(zI,{filterSearch:b,value:Y,onChange:Z,tablePrefixCls:o,locale:y}),s.createElement("div",{className:`${o}-filter-dropdown-tree`},v?s.createElement(qr,{checked:ge.length===qc(u.filters).length,indeterminate:ge.length>0&&ge.length<qc(u.filters).length,className:`${o}-filter-dropdown-checkall`,onChange:he},(Fe=y?.filterCheckall)!==null&&Fe!==void 0?Fe:y?.filterCheckAll):null,s.createElement(kC,{checkable:!0,selectable:!1,blockNode:!0,multiple:v,checkStrictly:!v,className:`${f}-menu`,onCheck:G,checkedKeys:ge,selectedKeys:ge,showIcon:!1,treeData:de({filters:u.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Y.trim()?Ye=>typeof b=="function"?b(Y,me(Ye)):ND(Y,Ye.title):void 0})));const it=MD({filters:u.filters||[],filterSearch:b,prefixCls:c,filteredKeys:z(),filterMultiple:v,searchValue:Y}),Ze=it.every(Ye=>Ye===null);return s.createElement(s.Fragment,null,s.createElement(zI,{filterSearch:b,value:Y,onChange:Z,tablePrefixCls:o,locale:y}),Ze?He:s.createElement(ks,{selectable:!0,multiple:v,prefixCls:`${f}-menu`,className:oe,onSelect:q,onDeselect:q,selectedKeys:ge,getPopupContainer:$,openKeys:B,onOpenChange:K,items:it}))},_e=()=>O?oo((I||[]).map(we=>String(we)),ge,!0):ge.length===0;le=s.createElement(s.Fragment,null,Ie(),s.createElement("div",{className:`${c}-dropdown-btns`},s.createElement(gn,{type:"link",size:"small",disabled:_e(),onClick:()=>ie()},y.filterReset),s.createElement(gn,{type:"primary",size:"small",onClick:re},y.filterConfirm)))}u.filterDropdown&&(le=s.createElement(Sj,{selectable:void 0},le)),le=s.createElement(DJ,{className:`${c}-dropdown`},le);const je=vf({trigger:["click"],placement:pe==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let ge;return typeof u.filterIcon=="function"?ge=u.filterIcon(H):u.filterIcon?ge=u.filterIcon:ge=s.createElement(HZ,null),s.createElement("span",{role:"button",tabIndex:-1,className:se(`${c}-trigger`,{active:H}),onClick:Ie=>{Ie.stopPropagation()}},ge)})(),getPopupContainer:$},Object.assign(Object.assign({},j),{rootClassName:se(_,j.rootClassName),open:L,onOpenChange:ue,popupRender:()=>typeof j?.dropdownRender=="function"?j.dropdownRender(le):le}));return s.createElement("div",{className:`${c}-column`},s.createElement("span",{className:`${o}-column-title`},w),s.createElement(CC,Object.assign({},je)))},TS=(e,t,n)=>{let r=[];return(e||[]).forEach((a,o)=>{var c;const u=Cu(o,n),f=a.filterDropdown!==void 0;if(a.filters||f||"onFilter"in a)if("filteredValue"in a){let d=a.filteredValue;f||(d=(c=d?.map(String))!==null&&c!==void 0?c:d),r.push({column:a,key:Bl(a,u),filteredKeys:d,forceFiltered:a.filtered})}else r.push({column:a,key:Bl(a,u),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(ke(r),ke(TS(a.children,t,u))))}),r};function jD(e,t,n,r,a,o,c,u,f){return n.map((d,h)=>{const v=Cu(h,u),{filterOnClose:g=!0,filterMultiple:b=!0,filterMode:S,filterSearch:C}=d;let y=d;if(y.filters||y.filterDropdown){const w=Bl(y,v),$=r.find(({key:_})=>w===_);y=Object.assign(Object.assign({},y),{title:_=>s.createElement(kJ,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:y,columnKey:w,filterState:$,filterOnClose:g,filterMultiple:b,filterMode:S,filterSearch:C,triggerFilter:o,locale:a,getPopupContainer:c,rootClassName:f},Ig(d.title,_))})}return"children"in y&&(y=Object.assign(Object.assign({},y),{children:jD(e,t,y.children,r,a,o,c,v,f)})),y})}const LI=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:a})=>{const o=n,{filters:c,filterDropdown:u}=a;if(u)t[o]=r||null;else if(Array.isArray(r)){const f=qc(c);t[o]=f.filter(d=>r.includes(String(d)))}else t[o]=null}),t},DS=(e,t,n)=>t.reduce((a,o)=>{const{column:{onFilter:c,filters:u},filteredKeys:f}=o;return c&&f&&f.length?a.map(d=>Object.assign({},d)).filter(d=>f.some(h=>{const v=qc(u),g=v.findIndex(S=>String(S)===String(h)),b=g!==-1?v[g]:h;return d[n]&&(d[n]=DS(d[n],t,n)),c(b,d)})):a},e),TD=e=>e.flatMap(t=>"children"in t?[t].concat(ke(TD(t.children||[]))):[t]),AJ=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:o,locale:c,rootClassName:u}=e;Kl();const f=s.useMemo(()=>TD(r||[]),[r]),[d,h]=s.useState(()=>TS(f,!0)),v=s.useMemo(()=>{const C=TS(f,!1);if(C.length===0)return C;let y=!0;if(C.forEach(({filteredKeys:w})=>{w!==void 0&&(y=!1)}),y){const w=(f||[]).map(($,_)=>Bl($,Cu(_)));return d.filter(({key:$})=>w.includes($)).map($=>{const _=f[w.indexOf($.key)];return Object.assign(Object.assign({},$),{column:Object.assign(Object.assign({},$.column),_),forceFiltered:_.filtered})})}return C},[f,d]),g=s.useMemo(()=>LI(v),[v]),b=C=>{const y=v.filter(({key:w})=>w!==C.key);y.push(C),h(y),a(LI(y),y)};return[C=>jD(t,n,C,v,c,b,o,void 0,u),v,g]},zJ=(e,t,n)=>{const r=s.useRef({});function a(o){var c;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let f=function(d){d.forEach((h,v)=>{const g=n(h,v);u.set(g,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(c=r.current.kvMap)===null||c===void 0?void 0:c.get(o)}return[a]};var LJ=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 DD=10;function HJ(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 BJ(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,o=LJ(r,["total"]),[c,u]=s.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:DD})),f=vf(c,o,{total:a>0?a:e}),d=Math.ceil((a||e)/f.pageSize);f.current>d&&(f.current=d||1);const h=(g,b)=>{u({current:g??1,pageSize:b||f.pageSize})},v=(g,b)=>{var S;n&&((S=n.onChange)===null||S===void 0||S.call(n,g,b)),h(g,b),t(g,b||f?.pageSize)};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},f),{onChange:v}),h]}var FJ={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"},VJ=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:FJ}))},KJ=s.forwardRef(VJ),UJ={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"},WJ=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:UJ}))},qJ=s.forwardRef(WJ);const tv="ascend",W0="descend",Iv=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,HI=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,YJ=(e,t)=>t?e[e.indexOf(t)+1]:e[0],PS=(e,t,n)=>{let r=[];const a=(o,c)=>{r.push({column:o,key:Bl(o,c),multiplePriority:Iv(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,c)=>{const u=Cu(c,n);o.children?("sortOrder"in o&&a(o,u),r=[].concat(ke(r),ke(PS(o.children,t,u)))):o.sorter&&("sortOrder"in o?a(o,u):t&&o.defaultSortOrder&&r.push({column:o,key:Bl(o,u),multiplePriority:Iv(o),sortOrder:o.defaultSortOrder}))}),r},PD=(e,t,n,r,a,o,c,u)=>(t||[]).map((d,h)=>{const v=Cu(h,u);let g=d;if(g.sorter){const b=g.sortDirections||a,S=g.showSorterTooltip===void 0?c:g.showSorterTooltip,C=Bl(g,v),y=n.find(({key:N})=>N===C),w=y?y.sortOrder:null,$=YJ(b,w);let _;if(d.sortIcon)_=d.sortIcon({sortOrder:w});else{const N=b.includes(tv)&&s.createElement(qJ,{className:se(`${e}-column-sorter-up`,{active:w===tv})}),P=b.includes(W0)&&s.createElement(KJ,{className:se(`${e}-column-sorter-down`,{active:w===W0})});_=s.createElement("span",{className:se(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(N&&P)})},s.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},N,P))}const{cancelSort:O,triggerAsc:I,triggerDesc:j}=o||{};let M=O;$===W0?M=j:$===tv&&(M=I);const D=typeof S=="object"?Object.assign({title:M},S):{title:M};g=Object.assign(Object.assign({},g),{className:se(g.className,{[`${e}-column-sort`]:w}),title:N=>{const P=`${e}-column-sorters`,A=s.createElement("span",{className:`${e}-column-title`},Ig(d.title,N)),F=s.createElement("div",{className:P},A,_);return S?typeof S!="boolean"&&S?.target==="sorter-icon"?s.createElement("div",{className:`${P} ${e}-column-sorters-tooltip-target-sorter`},A,s.createElement(_i,Object.assign({},D),_)):s.createElement(_i,Object.assign({},D),F):F},onHeaderCell:N=>{var P;const A=((P=d.onHeaderCell)===null||P===void 0?void 0:P.call(d,N))||{},F=A.onClick,H=A.onKeyDown;A.onClick=T=>{r({column:d,key:C,sortOrder:$,multiplePriority:Iv(d)}),F?.(T)},A.onKeyDown=T=>{T.keyCode===Mt.ENTER&&(r({column:d,key:C,sortOrder:$,multiplePriority:Iv(d)}),H?.(T))};const k=AZ(d.title,{}),L=k?.toString();return w&&(A["aria-sort"]=w==="ascend"?"ascending":"descending"),A["aria-label"]=L||"",A.className=se(A.className,`${e}-column-has-sorters`),A.tabIndex=0,d.ellipsis&&(A.title=(k??"").toString()),A}})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:PD(e,g.children,n,r,a,o,c,v)})),g}),BI=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},FI=e=>{const t=e.filter(({sortOrder:n})=>n).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},kS=(e,t,n)=>{const r=t.slice().sort((c,u)=>u.multiplePriority-c.multiplePriority),a=e.slice(),o=r.filter(({column:{sorter:c},sortOrder:u})=>HI(c)&&u);return o.length?a.sort((c,u)=>{for(let f=0;f<o.length;f+=1){const d=o[f],{column:{sorter:h},sortOrder:v}=d,g=HI(h);if(g&&v){const b=g(c,u,v);if(b!==0)return v===tv?b:-b}}return 0}).map(c=>{const u=c[n];return u?Object.assign(Object.assign({},c),{[n]:kS(u,t,n)}):c}):a},GJ=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:o,onSorterChange:c}=e,[u,f]=s.useState(()=>PS(n,!0)),d=(C,y)=>{const w=[];return C.forEach(($,_)=>{const O=Cu(_,y);if(w.push(Bl($,O)),Array.isArray($.children)){const I=d($.children,O);w.push.apply(w,ke(I))}}),w},h=s.useMemo(()=>{let C=!0;const y=PS(n,!1);if(!y.length){const O=d(n);return u.filter(({key:I})=>O.includes(I))}const w=[];function $(O){C?w.push(O):w.push(Object.assign(Object.assign({},O),{sortOrder:null}))}let _=null;return y.forEach(O=>{_===null?($(O),O.sortOrder&&(O.multiplePriority===!1?C=!1:_=!0)):(_&&O.multiplePriority!==!1||(C=!1),$(O))}),w},[n,u]),v=s.useMemo(()=>{var C,y;const w=h.map(({column:$,sortOrder:_})=>({column:$,order:_}));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]),g=C=>{let y;C.multiplePriority===!1||!h.length||h[0].multiplePriority===!1?y=[C]:y=[].concat(ke(h.filter(({key:w})=>w!==C.key)),[C]),f(y),c(FI(y),y)};return[C=>PD(t,C,h,g,r,a,o),h,v,()=>FI(h)]},kD=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=Ig(r.title,t),"children"in a&&(a.children=kD(a.children,t)),a}),XJ=e=>[s.useCallback(n=>kD(n,e),[e])],QJ=CD((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),ZJ=$D((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),JJ=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:o,tablePaddingVertical:c,tablePaddingHorizontal:u,calc:f}=e,d=`${te(n)} ${r} ${a}`,h=(v,g,b)=>({[`&${t}-${v}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n            > table > tbody > tr > th,\n            > table > tbody > tr > td\n          ":{[`> ${t}-expanded-row-fixed`]:{margin:`${te(f(g).mul(-1).equal())}
              ${te(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:`${te(f(c).mul(-1).equal())} ${te(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 ${te(n)} 0 ${te(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:d}}}},eee=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Bi),{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"}})}}},tee=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}}}}},nee=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:o,lineType:c,tableBorderColor:u,tableExpandIconBg:f,tableExpandColumnWidth:d,borderRadius:h,tablePaddingVertical:v,tablePaddingHorizontal:g,tableExpandedRowBg:b,paddingXXS:S,expandIconMarginTop:C,expandIconSize:y,expandIconHalfInner:w,expandIconScale:$,calc:_}=e,O=`${te(a)} ${c} ${u}`,I=_(S).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({},yx(e)),{position:"relative",float:"left",width:y,height:y,color:"inherit",lineHeight:te(y),background:f,border:O,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:I,insetInlineStart:I,height:a},"&::after":{top:I,bottom:I,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:`${te(_(v).mul(-1).equal())} ${te(_(g).mul(-1).equal())}`,padding:`${te(v)} ${te(g)}`}}}},ree=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:o,paddingXXS:c,paddingXS:u,colorText:f,lineWidth:d,lineType:h,tableBorderColor:v,headerIconColor:g,fontSizeSM:b,tablePaddingHorizontal:S,borderRadius:C,motionDurationSlow:y,colorIcon:w,colorPrimary:$,tableHeaderFilterActiveBg:_,colorTextDisabled:O,tableFilterDropdownBg:I,tableFilterDropdownHeight:j,controlItemBgHover:M,controlItemBgActive:D,boxShadowSecondary:N,filterDropdownMenuBg:P,calc:A}=e,F=`${n}-dropdown`,H=`${t}-filter-dropdown`,k=`${n}-tree`,L=`${te(d)} ${h} ${v}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:A(c).mul(-1).equal(),marginInline:`${te(c)} ${te(A(S).div(2).mul(-1).equal())}`,padding:`0 ${te(c)}`,color:g,fontSize:b,borderRadius:C,cursor:"pointer",transition:`all ${y}`,"&:hover":{color:w,background:_},"&.active":{color:$}}}},{[`${n}-dropdown`]:{[H]:Object.assign(Object.assign({},An(e)),{minWidth:a,backgroundColor:I,borderRadius:C,boxShadow:N,overflow:"hidden",[`${F}-menu`]:{maxHeight:j,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:P,"&:empty::after":{display:"block",padding:`${te(u)} 0`,color:O,fontSize:b,textAlign:"center",content:'"Not Found"'}},[`${H}-tree`]:{paddingBlock:`${te(u)} 0`,paddingInline:u,[k]:{padding:0},[`${k}-treenode ${k}-node-content-wrapper:hover`]:{backgroundColor:M},[`${k}-treenode-checkbox-checked ${k}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:D}}},[`${H}-search`]:{padding:u,borderBottom:L,"&-input":{input:{minWidth:o},[r]:{color:O}}},[`${H}-checkall`]:{width:"100%",marginBottom:c,marginInlineStart:c},[`${H}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${te(A(u).sub(d).equal())} ${te(u)}`,overflow:"hidden",borderTop:L}})}},{[`${n}-dropdown ${H}, ${H}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:u,color:f},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},aee=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:o,tableBg:c,zIndexTableSticky:u,calc:f}=e,d=r;return{[`${t}-wrapper`]:{[`
        ${t}-cell-fix-left,
        ${t}-cell-fix-right
      `]:{position:"sticky !important",zIndex:o,background:c},[`
        ${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",willChange:"transform"},[`${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"}}}}},iee=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${te(r)} 0`}}},oee=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${te(n)} ${te(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 ${te(n)} ${te(n)}`}}}}},lee=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"}}}}},see=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:a,padding:o,paddingXS:c,headerIconColor:u,headerIconHoverColor:f,tableSelectionColumnWidth:d,tableSelectedRowBg:h,tableSelectedRowHoverBg:v,tableRowHoverBg:g,tablePaddingHorizontal:b,calc:S}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:d,[`&${t}-selection-col-with-dropdown`]:{width:S(d).add(a).add(S(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:S(d).add(S(c).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:S(d).add(a).add(S(o).div(4)).add(S(c).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:S(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:te(S(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:v}}},[`> ${t}-cell-row-hover`]:{background:g}}}}}},cee=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,a=(o,c,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:`${te(c)} ${te(u)}`},[`${t}-filter-trigger`]:{marginInlineEnd:te(r(u).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${te(r(c).mul(-1).equal())} ${te(r(u).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:te(r(c).mul(-1).equal()),marginInline:`${te(r(n).sub(u).equal())} ${te(r(u).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:te(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))}},uee=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}}}},dee=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:o,tableScrollBg:c,zIndexTableSticky:u,stickyScrollBarBorderRadius:f,lineWidth:d,lineType:h,tableBorderColor:v}=e,g=`${te(d)} ${h} ${v}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:u,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${te(o)} !important`,zIndex:u,display:"flex",alignItems:"center",background:c,borderTop:g,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}}}}}}},VI=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,o=`${te(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 ${te(a(n).mul(-1).equal())} 0 ${r}`}}}},fee=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:o,calc:c}=e,u=`${te(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) - ${te(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:c(r).mul(-1).equal(),borderInlineStart:u}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:u,borderBottom:u}}}}}},mee=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:o,lineWidth:c,lineType:u,tableBorderColor:f,tableFontSize:d,tableBg:h,tableRadius:v,tableHeaderTextColor:g,motionDurationMid:b,tableHeaderBg:S,tableHeaderCellSplitColor:C,tableFooterTextColor:y,tableFooterBg:w,calc:$}=e,_=`${te(c)} ${u} ${f}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},Uo()),{[t]:Object.assign(Object.assign({},An(e)),{fontSize:d,background:h,borderRadius:`${te(v)} ${te(v)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${te(v)} ${te(v)} 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:`${te(r)} ${te(a)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${te(r)} ${te(a)}`},[`${t}-thead`]:{"\n          > tr > th,\n          > tr > td\n        ":{position:"relative",color:g,fontWeight:n,textAlign:"start",background:S,borderBottom:_,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:_,[`
              > ${t}-wrapper:only-child,
              > ${t}-expanded-row-fixed > ${t}-wrapper:only-child
            `]:{[t]:{marginBlock:te($(r).mul(-1).equal()),marginInline:`${te($(o).sub(a).equal())}
                ${te($(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:g,fontWeight:n,textAlign:"start",background:S,borderBottom:_,transition:`background ${b} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${te(r)} ${te(a)}`,color:y,background:w}})}},hee=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:o,controlItemBgActive:c,controlItemBgActiveHover:u,padding:f,paddingSM:d,paddingXS:h,colorBorderSecondary:v,borderRadiusLG:g,controlHeight:b,colorTextPlaceholder:S,fontSize:C,fontSizeSM:y,lineHeight:w,lineWidth:$,colorIcon:_,colorIconHover:O,opacityLoading:I,controlInteractiveSize:j}=e,M=new Tn(a).onBackground(n).toHexString(),D=new Tn(o).onBackground(n).toHexString(),N=new Tn(t).onBackground(n).toHexString(),P=new Tn(_),A=new Tn(O),F=j/2-$,H=F*2+$*3;return{headerBg:N,headerColor:r,headerSortActiveBg:M,headerSortHoverBg:D,bodySortBg:N,rowHoverBg:N,rowSelectedBg:c,rowSelectedHoverBg:u,rowExpandedBg:t,cellPaddingBlock:f,cellPaddingInline:f,cellPaddingBlockMD:d,cellPaddingInlineMD:h,cellPaddingBlockSM:h,cellPaddingInlineSM:h,borderColor:v,headerBorderRadius:g,footerBg:N,footerColor:r,cellFontSize:C,cellFontSizeMD:C,cellFontSizeSM:C,headerSplitColor:v,fixedHeaderSortActiveBg:M,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:b,stickyScrollBarBg:S,stickyScrollBarBorderRadius:100,expandIconMarginTop:(C*w-$*3)/2-Math.ceil((y*1.4-$*3)/2),headerIconColor:P.clone().setA(P.a*I).toRgbString(),headerIconHoverColor:A.clone().setA(A.a*I).toRgbString(),expandIconHalfInner:F,expandIconSize:H,expandIconScale:j/H}},KI=2,vee=Kn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:o,headerColor:c,headerSortActiveBg:u,headerSortHoverBg:f,bodySortBg:d,rowHoverBg:h,rowSelectedBg:v,rowSelectedHoverBg:g,rowExpandedBg:b,cellPaddingBlock:S,cellPaddingInline:C,cellPaddingBlockMD:y,cellPaddingInlineMD:w,cellPaddingBlockSM:$,cellPaddingInlineSM:_,borderColor:O,footerBg:I,footerColor:j,headerBorderRadius:M,cellFontSize:D,cellFontSizeMD:N,cellFontSizeSM:P,headerSplitColor:A,fixedHeaderSortActiveBg:F,headerFilterHoverBg:H,filterDropdownBg:k,expandIconBg:L,selectionColumnWidth:T,stickyScrollBarBg:z,calc:V}=e,q=Sn(e,{tableFontSize:D,tableBg:r,tableRadius:M,tablePaddingVertical:S,tablePaddingHorizontal:C,tablePaddingVerticalMiddle:y,tablePaddingHorizontalMiddle:w,tablePaddingVerticalSmall:$,tablePaddingHorizontalSmall:_,tableBorderColor:O,tableHeaderTextColor:c,tableHeaderBg:o,tableFooterTextColor:j,tableFooterBg:I,tableHeaderCellSplitColor:A,tableHeaderSortBg:u,tableHeaderSortHoverBg:f,tableBodySortBg:d,tableFixedHeaderSortActiveBg:F,tableHeaderFilterActiveBg:H,tableFilterDropdownBg:k,tableRowHoverBg:h,tableSelectedRowBg:v,tableSelectedRowHoverBg:g,zIndexTableFixed:KI,zIndexTableSticky:V(KI).add(1).equal({unit:!1}),tableFontSizeMiddle:N,tableFontSizeSmall:P,tableSelectionColumnWidth:T,tableExpandIconBg:L,tableExpandColumnWidth:V(a).add(V(e.padding).mul(2)).equal(),tableExpandedRowBg:b,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:z,tableScrollThumbBgHover:t,tableScrollBg:n});return[mee(q),iee(q),VI(q),uee(q),ree(q),JJ(q),oee(q),nee(q),VI(q),tee(q),see(q),aee(q),dee(q),eee(q),cee(q),lee(q),fee(q)]},hee,{unitless:{expandIconScale:!0}}),UI=[],gee=(e,t)=>{var n,r;const{prefixCls:a,className:o,rootClassName:c,style:u,size:f,bordered:d,dropdownPrefixCls:h,dataSource:v,pagination:g,rowSelection:b,rowKey:S="key",rowClassName:C,columns:y,children:w,childrenColumnName:$,onChange:_,getPopupContainer:O,loading:I,expandIcon:j,expandable:M,expandedRowRender:D,expandIconColumnIndex:N,indentSize:P,scroll:A,sortDirections:F,locale:H,showSorterTooltip:k={target:"full-header"},virtual:L}=e;Kl();const T=s.useMemo(()=>y||NC(w),[y,w]),z=s.useMemo(()=>T.some(ut=>ut.responsive),[T]),V=ug(z),q=s.useMemo(()=>{const ut=new Set(Object.keys(V).filter(ot=>V[ot]));return T.filter(ot=>!ot.responsive||ot.responsive.some(Lt=>ut.has(Lt)))},[T,V]),G=or(e,["className","style","columns"]),{locale:B=lo,direction:U,table:K,renderEmpty:Y,getPrefixCls:Q,getPopupContainer:Z}=s.useContext(Ut),ae=la(f),re=Object.assign(Object.assign({},B.Table),H),ie=v||UI,ve=Q("table",a),ue=Q("dropdown",h),[,oe]=Ta(),he=oa(ve),[de,me,le]=vee(ve,he),pe=Object.assign(Object.assign({childrenColumnName:$,expandIconColumnIndex:N},M),{expandIcon:(n=M?.expandIcon)!==null&&n!==void 0?n:(r=K?.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:Ce="children"}=pe,De=s.useMemo(()=>ie.some(ut=>ut?.[Ce])?"nest":D||M?.expandedRowRender?"row":null,[ie]),je={body:s.useRef(null)},ge=kZ(ve),Ie=s.useRef(null),_e=s.useRef(null);DZ(t,()=>Object.assign(Object.assign({},_e.current),{nativeElement:Ie.current}));const we=s.useMemo(()=>typeof S=="function"?S:ut=>ut?.[S],[S]),[Fe]=zJ(ie,Ce,we),He={},it=(ut,ot,Lt=!1)=>{var tn,hn,cn,En;const rn=Object.assign(Object.assign({},He),ut);Lt&&((tn=He.resetPagination)===null||tn===void 0||tn.call(He),!((hn=rn.pagination)===null||hn===void 0)&&hn.current&&(rn.pagination.current=1),g&&((cn=g.onChange)===null||cn===void 0||cn.call(g,1,(En=rn.pagination)===null||En===void 0?void 0:En.pageSize))),A&&A.scrollToFirstRowOnChange!==!1&&je.body.current&&k5(0,{getContainer:()=>je.body.current}),_?.(rn.pagination,rn.filters,rn.sorter,{currentDataSource:DS(kS(ie,rn.sorterStates,Ce),rn.filterStates,Ce),action:ot})},Ze=(ut,ot)=>{it({sorter:ut,sorterStates:ot},"sort",!1)},[Ye,Je,Pe,Oe]=GJ({prefixCls:ve,mergedColumns:q,onSorterChange:Ze,sortDirections:F||["ascend","descend"],tableLocale:re,showSorterTooltip:k}),Be=s.useMemo(()=>kS(ie,Je,Ce),[ie,Je]);He.sorter=Oe(),He.sorterStates=Je;const $e=(ut,ot)=>{it({filters:ut,filterStates:ot},"filter",!0)},[Te,be,ye]=AJ({prefixCls:ve,locale:re,dropdownPrefixCls:ue,mergedColumns:q,onFilterChange:$e,getPopupContainer:O||Z,rootClassName:se(c,he)}),Re=DS(Be,be,Ce);He.filters=ye,He.filterStates=be;const Ge=s.useMemo(()=>{const ut={};return Object.keys(ye).forEach(ot=>{ye[ot]!==null&&(ut[ot]=ye[ot])}),Object.assign(Object.assign({},Pe),{filters:ut})},[Pe,ye]),[ft]=XJ(Ge),$t=(ut,ot)=>{it({pagination:Object.assign(Object.assign({},He.pagination),{current:ut,pageSize:ot})},"paginate")},[Qe,at]=BJ(Re.length,$t,g);He.pagination=g===!1?{}:HJ(Qe,g),He.resetPagination=at;const mt=s.useMemo(()=>{if(g===!1||!Qe.pageSize)return Re;const{current:ut=1,total:ot,pageSize:Lt=DD}=Qe;return Re.length<ot?Re.length>Lt?Re.slice((ut-1)*Lt,ut*Lt):Re:Re.slice((ut-1)*Lt,ut*Lt)},[!!g,Re,Qe?.current,Qe?.pageSize,Qe?.total]),[st,pt]=jZ({prefixCls:ve,data:Re,pageData:mt,getRowKey:we,getRecordByKey:Fe,expandType:De,childrenColumnName:Ce,locale:re,getPopupContainer:O||Z},b),Wt=(ut,ot,Lt)=>{let tn;return typeof C=="function"?tn=se(C(ut,ot,Lt)):tn=se(C),se({[`${ve}-row-selected`]:pt.has(we(ut,ot))},tn)};pe.__PARENT_RENDER_ICON__=pe.expandIcon,pe.expandIcon=pe.expandIcon||j||PZ(re),De==="nest"&&pe.expandIconColumnIndex===void 0?pe.expandIconColumnIndex=b?1:0:pe.expandIconColumnIndex>0&&b&&(pe.expandIconColumnIndex-=1),typeof pe.indentSize!="number"&&(pe.indentSize=typeof P=="number"?P:15);const Yt=s.useCallback(ut=>ft(st(Te(Ye(ut)))),[Ye,Te,st]),ht=()=>{if(g===!1||!Qe?.total)return{};const ut=()=>Qe.size||(ae==="small"||ae==="middle"?"small":void 0),ot=kt=>{const vt=kt==="left"?"start":kt==="right"?"end":kt;return s.createElement(eD,Object.assign({},Qe,{align:Qe.align||vt,className:se(`${ve}-pagination`,Qe.className),size:ut()}))},Lt=U==="rtl"?"left":"right",tn=Qe.position;if(tn===null||!Array.isArray(tn))return{bottom:ot(Lt)};const hn=tn.find(kt=>typeof kt=="string"&&kt.toLowerCase().includes("top")),cn=tn.find(kt=>typeof kt=="string"&&kt.toLowerCase().includes("bottom")),En=tn.every(kt=>`${kt}`=="none"),rn=hn?hn.toLowerCase().replace("top",""):"",xn=cn?cn.toLowerCase().replace("bottom",""):"",lt=!hn&&!cn&&!En,St=()=>rn?ot(rn):void 0,Bt=()=>{if(xn)return ot(xn);if(lt)return ot(Lt)};return{top:St(),bottom:Bt()}},It=s.useMemo(()=>typeof I=="boolean"?{spinning:I}:typeof I=="object"&&I!==null?Object.assign({spinning:!0},I):void 0,[I]),_t=se(le,he,`${ve}-wrapper`,K?.className,{[`${ve}-wrapper-rtl`]:U==="rtl"},o,c,me),tt=Object.assign(Object.assign({},K?.style),u),Ue=s.useMemo(()=>It?.spinning&&ie===UI?null:typeof H?.emptyText<"u"?H.emptyText:Y?.("Table")||s.createElement(Hx,{componentName:"Table"}),[It?.spinning,ie,H?.emptyText,Y]),qe=L?ZJ:QJ,ct={},Tt=s.useMemo(()=>{const{fontSize:ut,lineHeight:ot,lineWidth:Lt,padding:tn,paddingXS:hn,paddingSM:cn}=oe,En=Math.floor(ut*ot);switch(ae){case"middle":return cn*2+En+Lt;case"small":return hn*2+En+Lt;default:return tn*2+En+Lt}},[oe,ae]);L&&(ct.listItemHeight=Tt);const{top:Dt,bottom:Jt}=ht();return de(s.createElement("div",{ref:Ie,className:_t,style:tt},s.createElement(Bf,Object.assign({spinning:!1},It),Dt,s.createElement(qe,Object.assign({},ct,G,{ref:_e,columns:q,direction:U,expandable:pe,prefixCls:ve,className:se({[`${ve}-middle`]:ae==="middle",[`${ve}-small`]:ae==="small",[`${ve}-bordered`]:d,[`${ve}-empty`]:ie.length===0},le,he,me),data:mt,rowKey:we,rowClassName:Wt,emptyText:Ue,internalHooks:Ff,internalRefs:je,transformColumns:Yt,getContainerWidth:ge,measureRowRender:ut=>s.createElement(vo,{getPopupContainer:ot=>ot},ut)})),Jt)))},pee=s.forwardRef(gee),bee=(e,t)=>{const n=s.useRef(0);return n.current+=1,s.createElement(pee,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Yi=s.forwardRef(bee);Yi.SELECTION_COLUMN=Nl;Yi.EXPAND_COLUMN=Ml;Yi.SELECTION_ALL=RS;Yi.SELECTION_INVERT=NS;Yi.SELECTION_NONE=MS;Yi.Column=xZ;Yi.ColumnGroup=CZ;Yi.Summary=fD;const yee=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:o}=e,c=o(r).sub(n).equal(),u=o(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},An(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:c,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${te(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:c}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},AC=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return Sn(e,{tagFontSize:a,tagLineHeight:te(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},zC=e=>({defaultBg:new Tn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),AD=Kn("Tag",e=>{const t=AC(e);return yee(t)},zC);var See=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=s.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:a,checked:o,children:c,icon:u,onChange:f,onClick:d}=e,h=See(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:v,tag:g}=s.useContext(Ut),b=_=>{f?.(!o),d?.(_)},S=v("tag",n),[C,y,w]=AD(S),$=se(S,`${S}-checkable`,{[`${S}-checkable-checked`]:o},g?.className,a,y,w);return C(s.createElement("span",Object.assign({},h,{ref:t,style:Object.assign(Object.assign({},r),g?.style),className:$,onClick:b}),u,s.createElement("span",null,c)))}),Cee=e=>wN(e,(t,{textColor:n,lightBorderColor:r,lightColor:a,darkColor:o})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:a,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),wee=Rf(["Tag","preset"],e=>{const t=AC(e);return Cee(t)},zC);function $ee(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const _h=(e,t,n)=>{const r=$ee(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"}}}},_ee=Rf(["Tag","status"],e=>{const t=AC(e);return[_h(t,"success","Success"),_h(t,"processing","Info"),_h(t,"error","Error"),_h(t,"warning","Warning")]},zC);var Eee=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 Oee=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,children:c,icon:u,color:f,onClose:d,bordered:h=!0,visible:v}=e,g=Eee(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:b,direction:S,tag:C}=s.useContext(Ut),[y,w]=s.useState(!0),$=or(g,["closeIcon","closable"]);s.useEffect(()=>{v!==void 0&&w(v)},[v]);const _=JM(f),O=o9(f),I=_||O,j=Object.assign(Object.assign({backgroundColor:f&&!I?f:void 0},C?.style),o),M=b("tag",n),[D,N,P]=AD(M),A=se(M,C?.className,{[`${M}-${f}`]:I,[`${M}-has-color`]:f&&!I,[`${M}-hidden`]:!y,[`${M}-rtl`]:S==="rtl",[`${M}-borderless`]:!h},r,a,N,P),F=V=>{V.stopPropagation(),d?.(V),!V.defaultPrevented&&w(!1)},[,H]=nB(N2(e),N2(C),{closable:!1,closeIconRender:V=>{const q=s.createElement("span",{className:`${M}-close-icon`,onClick:F},V);return wx(V,q,G=>({onClick:B=>{var U;(U=G?.onClick)===null||U===void 0||U.call(G,B),F(B)},className:se(G?.className,`${M}-close-icon`)}))}}),k=typeof g.onClick=="function"||c&&c.type==="a",L=u||null,T=L?s.createElement(s.Fragment,null,L,c&&s.createElement("span",null,c)):c,z=s.createElement("span",Object.assign({},$,{ref:t,className:A,style:j}),T,H,_&&s.createElement(wee,{key:"preset",prefixCls:M}),O&&s.createElement(_ee,{key:"status",prefixCls:M}));return D(k?s.createElement(Mf,{component:"Tag"},z):z)}),xi=Oee;xi.CheckableTag=xee;const Iee={defaultSeed:cf.token,defaultConfig:cf};var Ree={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"},Nee=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:Ree}))},Mee=s.forwardRef(Nee),jee={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"},Tee=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:jee}))},Dee=s.forwardRef(Tee),Pee={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"},kee=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:Pee}))},Aee=s.forwardRef(kee);const zee=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:o}=r;return{marginBottom:a,color:n,fontWeight:o,fontSize:e,lineHeight:t}},Lee=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}
    `]=zee(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},Hee=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},yx(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Bee=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:fv[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"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}}),Fee=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${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"}}}},Vee=e=>({[`${e.componentCls}-copy-success`]:{"\n    &,\n    &:hover,\n    &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Kee=()=>({"\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"}}),Uee=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"}},Lee(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}}}),Bee(e)),Hee(e)),{[`
        ${t}-expand,
        ${t}-collapse,
        ${t}-edit,
        ${t}-copy
      `]:Object.assign(Object.assign({},yx(e)),{marginInlineStart:e.marginXXS})}),Fee(e)),Vee(e)),Kee()),{"&-rtl":{direction:"rtl"}})}},Wee=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),zD=Kn("Typography",Uee,Wee),qee=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:o,maxLength:c,autoSize:u=!0,value:f,onSave:d,onCancel:h,onEnd:v,component:g,enterIcon:b=s.createElement(Aee,null)}=e,S=s.useRef(null),C=s.useRef(!1),y=s.useRef(null),[w,$]=s.useState(f);s.useEffect(()=>{$(f)},[f]),s.useEffect(()=>{var k;if(!((k=S.current)===null||k===void 0)&&k.resizableTextArea){const{textArea:L}=S.current.resizableTextArea;L.focus();const{length:T}=L.value;L.setSelectionRange(T,T)}},[]);const _=({target:k})=>{$(k.value.replace(/[\n\r]/g,""))},O=()=>{C.current=!0},I=()=>{C.current=!1},j=({keyCode:k})=>{C.current||(y.current=k)},M=()=>{d(w.trim())},D=({keyCode:k,ctrlKey:L,altKey:T,metaKey:z,shiftKey:V})=>{y.current!==k||C.current||L||T||z||V||(k===Mt.ENTER?(M(),v?.()):k===Mt.ESC&&h())},N=()=>{M()},[P,A,F]=zD(t),H=se(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${g}`]:!!g},r,A,F);return P(s.createElement("div",{className:H,style:a},s.createElement(XT,{ref:S,maxLength:c,value:w,onChange:_,onKeyDown:j,onKeyUp:D,onCompositionStart:O,onCompositionEnd:I,onBlur:N,"aria-label":n,rows:1,autoSize:u}),b!==null?wa(b,{className:`${t}-edit-content-confirm`}):null))};var q0,WI;function Yee(){return WI||(WI=1,q0=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()}}),q0}var Y0,qI;function Gee(){if(qI)return Y0;qI=1;var e=Yee(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(o){var c=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,c)}function a(o,c){var u,f,d,h,v,g,b=!1;c||(c={}),u=c.debug||!1;try{d=e(),h=document.createRange(),v=document.getSelection(),g=document.createElement("span"),g.textContent=o,g.ariaHidden="true",g.style.all="unset",g.style.position="fixed",g.style.top=0,g.style.clip="rect(0, 0, 0, 0)",g.style.whiteSpace="pre",g.style.webkitUserSelect="text",g.style.MozUserSelect="text",g.style.msUserSelect="text",g.style.userSelect="text",g.addEventListener("copy",function(C){if(C.stopPropagation(),c.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[c.format]||t.default;window.clipboardData.setData(y,o)}else C.clipboardData.clearData(),C.clipboardData.setData(c.format,o);c.onCopy&&(C.preventDefault(),c.onCopy(C.clipboardData))}),document.body.appendChild(g),h.selectNodeContents(g),v.addRange(h);var S=document.execCommand("copy");if(!S)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(c.format||"text",o),c.onCopy&&c.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 c?c.message:n),window.prompt(f,o)}}finally{v&&(typeof v.removeRange=="function"?v.removeRange(h):v.removeAllRanges()),g&&document.body.removeChild(g),d()}return b}return Y0=a,Y0}var Xee=Gee();const Qee=Wi(Xee);var Zee=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(c){c(o)})}return new(n||(n=Promise))(function(o,c){function u(h){try{d(r.next(h))}catch(v){c(v)}}function f(h){try{d(r.throw(h))}catch(v){c(v)}}function d(h){h.done?o(h.value):a(h.value).then(u,f)}d((r=r.apply(e,t||[])).next())})};const Jee=({copyConfig:e,children:t})=>{const[n,r]=s.useState(!1),[a,o]=s.useState(!1),c=s.useRef(null),u=()=>{c.current&&clearTimeout(c.current)},f={};e.format&&(f.format=e.format),s.useEffect(()=>u,[]);const d=pn(h=>Zee(void 0,void 0,void 0,function*(){var v;h?.preventDefault(),h?.stopPropagation(),o(!0);try{const g=typeof e.text=="function"?yield e.text():e.text;Qee(g||SX(t,!0).join("")||"",f),o(!1),r(!0),u(),c.current=setTimeout(()=>{r(!1)},3e3),(v=e.onCopy)===null||v===void 0||v.call(e,h)}catch(g){throw o(!1),g}}));return{copied:n,copyLoading:a,onClick:d}};function G0(e,t){return s.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const ete=e=>{const t=s.useRef(void 0);return s.useEffect(()=>{t.current=e}),t.current},tte=(e,t,n)=>s.useMemo(()=>e===!0?{title:t??n}:s.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var nte=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 LD=s.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:a,rootClassName:o,setContentRef:c,children:u,direction:f,style:d}=e,h=nte(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:v,direction:g,className:b,style:S}=va("typography"),C=f??g,y=c?_a(t,c):t,w=v("typography",n),[$,_,O]=zD(w),I=se(w,b,{[`${w}-rtl`]:C==="rtl"},a,o,_,O),j=Object.assign(Object.assign({},S),d);return $(s.createElement(r,Object.assign({className:I,style:j,ref:y},h),u))});var HD={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"},rte=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:HD}))},ate=s.forwardRef(rte);function YI(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function X0(e,t,n){return e===!0||e===void 0?t:e||n&&t}function ite(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 LC=e=>["string","number"].includes(typeof e),ote=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:a,icon:o,tabIndex:c,onCopy:u,loading:f})=>{const d=YI(a),h=YI(o),{copied:v,copy:g}=n??{},b=t?v:g,S=X0(d[t?1:0],b),C=typeof S=="string"?S:b;return s.createElement(_i,{title:S},s.createElement("button",{type:"button",className:se(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:u,"aria-label":C,tabIndex:c},t?X0(h[1],s.createElement(Bx,null),!0):X0(h[0],f?s.createElement(qo,null):s.createElement(ate,null),!0)))},Eh=s.forwardRef(({style:e,children:t},n)=>{const r=s.useRef(null);return s.useImperativeHandle(n,()=>({isExceed:()=>{const a=r.current;return a.scrollHeight>a.clientHeight},getHeight:()=>r.current.clientHeight})),s.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),lte=e=>e.reduce((t,n)=>t+(LC(n)?String(n).length:1),0);function GI(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=LC(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 Q0=0,Z0=1,J0=2,ey=3,XI=4,Oh={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function ste(e){const{enableMeasure:t,width:n,text:r,children:a,rows:o,expanded:c,miscDeps:u,onEllipsis:f}=e,d=s.useMemo(()=>Ma(r),[r]),h=s.useMemo(()=>lte(d),[r]),v=s.useMemo(()=>a(d,!1),[r]),[g,b]=s.useState(null),S=s.useRef(null),C=s.useRef(null),y=s.useRef(null),w=s.useRef(null),$=s.useRef(null),[_,O]=s.useState(!1),[I,j]=s.useState(Q0),[M,D]=s.useState(0),[N,P]=s.useState(null);dn(()=>{j(t&&n&&h?Z0:Q0)},[n,r,o,t,d]),dn(()=>{var k,L,T,z;if(I===Z0){j(J0);const V=C.current&&getComputedStyle(C.current).whiteSpace;P(V)}else if(I===J0){const V=!!(!((k=y.current)===null||k===void 0)&&k.isExceed());j(V?ey:XI),b(V?[0,h]:null),O(V);const q=((L=y.current)===null||L===void 0?void 0:L.getHeight())||0,G=o===1?0:((T=w.current)===null||T===void 0?void 0:T.getHeight())||0,B=((z=$.current)===null||z===void 0?void 0:z.getHeight())||0,U=Math.max(q,G+B);D(U+1),f(V)}},[I]);const A=g?Math.ceil((g[0]+g[1])/2):0;dn(()=>{var k;const[L,T]=g||[0,0];if(L!==T){const V=(((k=S.current)===null||k===void 0?void 0:k.getHeight())||0)>M;let q=A;T-L===1&&(q=V?L:T),b(V?[L,q]:[q,T])}},[g,A]);const F=s.useMemo(()=>{if(!t)return a(d,!1);if(I!==ey||!g||g[0]!==g[1]){const k=a(d,!1);return[XI,Q0].includes(I)?k:s.createElement("span",{style:Object.assign(Object.assign({},Oh),{WebkitLineClamp:o})},k)}return a(c?d:GI(d,g[0]),_)},[c,I,g,d].concat(ke(u))),H={width:n,margin:0,padding:0,whiteSpace:N==="nowrap"?"normal":"inherit"};return s.createElement(s.Fragment,null,F,I===J0&&s.createElement(s.Fragment,null,s.createElement(Eh,{style:Object.assign(Object.assign(Object.assign({},H),Oh),{WebkitLineClamp:o}),ref:y},v),s.createElement(Eh,{style:Object.assign(Object.assign(Object.assign({},H),Oh),{WebkitLineClamp:o-1}),ref:w},v),s.createElement(Eh,{style:Object.assign(Object.assign(Object.assign({},H),Oh),{WebkitLineClamp:1}),ref:$},a([],!0))),I===ey&&g&&g[0]!==g[1]&&s.createElement(Eh,{style:Object.assign(Object.assign({},H),{top:400}),ref:S},a(GI(d,A),!0)),I===Z0&&s.createElement("span",{style:{whiteSpace:"inherit"},ref:C}))}const cte=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!r?.title||!e?n:s.createElement(_i,Object.assign({open:t?void 0:!1},r),n);var ute=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 dte({mark:e,code:t,underline:n,delete:r,strong:a,keyboard:o,italic:c},u){let f=u;function d(h,v){v&&(f=s.createElement(h,{},f))}return d("strong",a),d("u",n),d("del",r),d("code",t),d("mark",e),d("kbd",o),d("i",c),f}const fte="...",QI=["delete","mark","code","underline","strong","keyboard","italic"],Rg=s.forwardRef((e,t)=>{var n;const{prefixCls:r,className:a,style:o,type:c,disabled:u,children:f,ellipsis:d,editable:h,copyable:v,component:g,title:b}=e,S=ute(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:y}=s.useContext(Ut),[w]=ho("Text"),$=s.useRef(null),_=s.useRef(null),O=C("typography",r),I=or(S,QI),[j,M]=G0(h),[D,N]=Wn(!1,{value:M.editing}),{triggerType:P=["icon"]}=M,A=be=>{var ye;be&&((ye=M.onStart)===null||ye===void 0||ye.call(M)),N(be)},F=ete(D);dn(()=>{var be;!D&&F&&((be=_.current)===null||be===void 0||be.focus())},[D]);const H=be=>{be?.preventDefault(),A(!0)},k=be=>{var ye;(ye=M.onChange)===null||ye===void 0||ye.call(M,be),A(!1)},L=()=>{var be;(be=M.onCancel)===null||be===void 0||be.call(M),A(!1)},[T,z]=G0(v),{copied:V,copyLoading:q,onClick:G}=Jee({copyConfig:z,children:f}),[B,U]=s.useState(!1),[K,Y]=s.useState(!1),[Q,Z]=s.useState(!1),[ae,re]=s.useState(!1),[ie,ve]=s.useState(!0),[ue,oe]=G0(d,{expandable:!1,symbol:be=>be?w?.collapse:w?.expand}),[he,de]=Wn(oe.defaultExpanded||!1,{value:oe.expanded}),me=ue&&(!he||oe.expandable==="collapsible"),{rows:le=1}=oe,pe=s.useMemo(()=>me&&(oe.suffix!==void 0||oe.onEllipsis||oe.expandable||j||T),[me,oe,j,T]);dn(()=>{ue&&!pe&&(U(iS("webkitLineClamp")),Y(iS("textOverflow")))},[pe,ue]);const[Ce,De]=s.useState(me),je=s.useMemo(()=>pe?!1:le===1?K:B,[pe,K,B]);dn(()=>{De(je&&me)},[je,me]);const ge=me&&(Ce?ae:Q),Ie=me&&le===1&&Ce,_e=me&&le>1&&Ce,we=(be,ye)=>{var Re;de(ye.expanded),(Re=oe.onExpand)===null||Re===void 0||Re.call(oe,be,ye)},[Fe,He]=s.useState(0),it=({offsetWidth:be})=>{He(be)},Ze=be=>{var ye;Z(be),Q!==be&&((ye=oe.onEllipsis)===null||ye===void 0||ye.call(oe,be))};s.useEffect(()=>{const be=$.current;if(ue&&Ce&&be){const ye=ite(be);ae!==ye&&re(ye)}},[ue,Ce,f,_e,ie,Fe]),s.useEffect(()=>{const be=$.current;if(typeof IntersectionObserver>"u"||!be||!Ce||!me)return;const ye=new IntersectionObserver(()=>{ve(!!be.offsetParent)});return ye.observe(be),()=>{ye.disconnect()}},[Ce,me]);const Ye=tte(oe.tooltip,M.text,f),Je=s.useMemo(()=>{if(!(!ue||Ce))return[M.text,f,b,Ye.title].find(LC)},[ue,Ce,b,Ye.title,ge]);if(D)return s.createElement(qee,{value:(n=M.text)!==null&&n!==void 0?n:typeof f=="string"?f:"",onSave:k,onCancel:L,onEnd:M.onEnd,prefixCls:O,className:a,style:o,direction:y,component:g,maxLength:M.maxLength,autoSize:M.autoSize,enterIcon:M.enterIcon});const Pe=()=>{const{expandable:be,symbol:ye}=oe;return be?s.createElement("button",{type:"button",key:"expand",className:`${O}-${he?"collapse":"expand"}`,onClick:Re=>we(Re,{expanded:!he}),"aria-label":he?w.collapse:w?.expand},typeof ye=="function"?ye(he):ye):null},Oe=()=>{if(!j)return;const{icon:be,tooltip:ye,tabIndex:Re}=M,Ge=Ma(ye)[0]||w?.edit,ft=typeof Ge=="string"?Ge:"";return P.includes("icon")?s.createElement(_i,{key:"edit",title:ye===!1?"":Ge},s.createElement("button",{type:"button",ref:_,className:`${O}-edit`,onClick:H,"aria-label":ft,tabIndex:Re},be||s.createElement(Dee,{role:"button"}))):null},Be=()=>T?s.createElement(ote,Object.assign({key:"copy"},z,{prefixCls:O,copied:V,locale:w,onCopy:G,loading:q,iconOnly:f==null})):null,$e=be=>[be&&Pe(),Oe(),Be()],Te=be=>[be&&!he&&s.createElement("span",{"aria-hidden":!0,key:"ellipsis"},fte),oe.suffix,$e(be)];return s.createElement(xa,{onResize:it,disabled:!me},be=>s.createElement(cte,{tooltipProps:Ye,enableEllipsis:me,isEllipsis:ge},s.createElement(LD,Object.assign({className:se({[`${O}-${c}`]:c,[`${O}-disabled`]:u,[`${O}-ellipsis`]:ue,[`${O}-ellipsis-single-line`]:Ie,[`${O}-ellipsis-multiple-line`]:_e},a),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:_e?le:void 0}),component:g,ref:_a(be,$,t),direction:y,onClick:P.includes("text")?H:void 0,"aria-label":Je?.toString(),title:b},I),s.createElement(ste,{enableMeasure:me&&!Ce,text:f,rows:le,width:Fe,onEllipsis:Ze,expanded:he,miscDeps:[V,he,q,j,T,w].concat(ke(QI.map(ye=>e[ye])))},(ye,Re)=>dte(e,s.createElement(s.Fragment,null,ye.length>0&&Re&&!he&&Je?s.createElement("span",{key:"show-content","aria-hidden":!0},ye):ye,Te(Re)))))))});var mte=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 hte=s.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,a=mte(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,s.createElement(Rg,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),vte=s.forwardRef((e,t)=>s.createElement(Rg,Object.assign({ref:t},e,{component:"div"})));var gte=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 pte=(e,t)=>{var{ellipsis:n}=e,r=gte(e,["ellipsis"]);const a=s.useMemo(()=>n&&typeof n=="object"?or(n,["expandable","rows"]):n,[n]);return s.createElement(Rg,Object.assign({ref:t},r,{ellipsis:a,component:"span"}))},bte=s.forwardRef(pte);var yte=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 Ste=[1,2,3,4,5],xte=s.forwardRef((e,t)=>{const{level:n=1}=e,r=yte(e,["level"]),a=Ste.includes(n)?`h${n}`:"h1";return s.createElement(Rg,Object.assign({ref:t},r,{component:a}))}),Wl=LD;Wl.Text=bte;Wl.Link=hte;Wl.Title=xte;Wl.Paragraph=vte;const ty=(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(c){var u=c.trim();if(/^\*(\/\*)?$/.test(c))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(v){return f.endsWith(v)})}return/\/\*$/.test(u)?o===u.replace(/\/.*$/,""):a===u?!0:/^\w+$/.test(u)?(Sr(!1,"Upload takes an invalidate 'accept' type '".concat(u,"'.Skip for check.")),!0):!1})}return!0});function Cte(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 ZI(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function wte(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(c){n.append("".concat(a,"[]"),c)});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(Cte(e,t),ZI(t)):e.onSuccess(ZI(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 $te=(function(){var e=za(Jn().mark(function t(n,r){var a,o,c,u,f,d,h,v;return Jn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:d=function(){return d=za(Jn().mark(function C(y){return Jn().wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.abrupt("return",new Promise(function(_){y.file(function(O){r(O)?(y.fullPath&&!O.webkitRelativePath&&(Object.defineProperties(O,{webkitRelativePath:{writable:!0}}),O.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(O,{webkitRelativePath:{writable:!1}})),_(O)):_(null)})}));case 1:case"end":return $.stop()}},C)})),d.apply(this,arguments)},f=function(C){return d.apply(this,arguments)},u=function(){return u=za(Jn().mark(function C(y){var w,$,_,O,I;return Jn().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:w=y.createReader(),$=[];case 2:return M.next=5,new Promise(function(D){w.readEntries(D,function(){return D([])})});case 5:if(_=M.sent,O=_.length,O){M.next=9;break}return M.abrupt("break",12);case 9:for(I=0;I<O;I++)$.push(_[I]);M.next=2;break;case 12:return M.abrupt("return",$);case 13:case"end":return M.stop()}},C)})),u.apply(this,arguments)},c=function(C){return u.apply(this,arguments)},a=[],o=[],n.forEach(function(S){return o.push(S.webkitGetAsEntry())}),h=(function(){var S=za(Jn().mark(function C(y,w){var $,_;return Jn().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(y){I.next=2;break}return I.abrupt("return");case 2:if(y.path=w||"",!y.isFile){I.next=10;break}return I.next=6,f(y);case 6:$=I.sent,$&&a.push($),I.next=15;break;case 10:if(!y.isDirectory){I.next=15;break}return I.next=13,c(y);case 13:_=I.sent,o.push.apply(o,ke(_));case 15:case"end":return I.stop()}},C)}));return function(y,w){return S.apply(this,arguments)}})(),v=0;case 9:if(!(v<o.length)){b.next=15;break}return b.next=12,h(o[v]);case 12:v++,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)}})(),_te=+new Date,Ete=0;function ny(){return"rc-upload-".concat(_te,"-").concat(++Ete)}var Ote=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Ite=(function(e){oi(n,e);var t=Ei(n);function n(){var r;xr(this,n);for(var a=arguments.length,o=new Array(a),c=0;c<a;c++)o[c]=arguments[c];return r=t.call.apply(t,[this].concat(o)),X(xt(r),"state",{uid:ny()}),X(xt(r),"reqs",{}),X(xt(r),"fileInput",void 0),X(xt(r),"_isMounted",void 0),X(xt(r),"onChange",function(u){var f=r.props,d=f.accept,h=f.directory,v=u.target.files,g=ke(v).filter(function(b){return!h||ty(b,d)});r.uploadFiles(g),r.reset()}),X(xt(r),"onClick",function(u){var f=r.fileInput;if(f){var d=u.target,h=r.props.onClick;if(d&&d.tagName==="BUTTON"){var v=f.parentNode;v.focus(),d.blur()}f.click(),h&&h(u)}}),X(xt(r),"onKeyDown",function(u){u.key==="Enter"&&r.onClick(u)}),X(xt(r),"onDataTransferFiles",(function(){var u=za(Jn().mark(function f(d,h){var v,g,b,S,C,y,w;return Jn().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(v=r.props,g=v.multiple,b=v.accept,S=v.directory,C=ke(d.items||[]),y=ke(d.files||[]),(y.length>0||C.some(function(O){return O.kind==="file"}))&&h?.(),!S){_.next=11;break}return _.next=7,$te(Array.prototype.slice.call(C),function(O){return ty(O,r.props.accept)});case 7:y=_.sent,r.uploadFiles(y),_.next=14;break;case 11:w=ke(y).filter(function(O){return ty(O,b)}),g===!1&&(w=y.slice(0,1)),r.uploadFiles(w);case 14:case"end":return _.stop()}},f)}));return function(f,d){return u.apply(this,arguments)}})()),X(xt(r),"onFilePaste",(function(){var u=za(Jn().mark(function f(d){var h,v;return Jn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(h=r.props.pastable,h){b.next=3;break}return b.abrupt("return");case 3:if(d.type!=="paste"){b.next=6;break}return v=d.clipboardData,b.abrupt("return",r.onDataTransferFiles(v,function(){d.preventDefault()}));case 6:case"end":return b.stop()}},f)}));return function(f){return u.apply(this,arguments)}})()),X(xt(r),"onFileDragOver",function(u){u.preventDefault()}),X(xt(r),"onFileDrop",(function(){var u=za(Jn().mark(function f(d){var h;return Jn().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(d.preventDefault(),d.type!=="drop"){g.next=4;break}return h=d.dataTransfer,g.abrupt("return",r.onDataTransferFiles(h));case 4:case"end":return g.stop()}},f)}));return function(f){return u.apply(this,arguments)}})()),X(xt(r),"uploadFiles",function(u){var f=ke(u),d=f.map(function(h){return h.uid=ny(),r.processFile(h,f)});Promise.all(d).then(function(h){var v=r.props.onBatchStart;v?.(h.map(function(g){var b=g.origin,S=g.parsedFile;return{file:b,parsedFile:S}})),h.filter(function(g){return g.parsedFile!==null}).forEach(function(g){r.post(g)})})}),X(xt(r),"processFile",(function(){var u=za(Jn().mark(function f(d,h){var v,g,b,S,C,y,w,$,_;return Jn().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(v=r.props.beforeUpload,g=d,!v){I.next=14;break}return I.prev=3,I.next=6,v(d,h);case 6:g=I.sent,I.next=12;break;case 9:I.prev=9,I.t0=I.catch(3),g=!1;case 12:if(g!==!1){I.next=14;break}return I.abrupt("return",{origin:d,parsedFile:null,action:null,data:null});case 14:if(b=r.props.action,typeof b!="function"){I.next=21;break}return I.next=18,b(d);case 18:S=I.sent,I.next=22;break;case 21:S=b;case 22:if(C=r.props.data,typeof C!="function"){I.next=29;break}return I.next=26,C(d);case 26:y=I.sent,I.next=30;break;case 29:y=C;case 30:return w=(jt(g)==="object"||typeof g=="string")&&g?g:d,w instanceof File?$=w:$=new File([w],d.name,{type:d.type}),_=$,_.uid=d.uid,I.abrupt("return",{origin:d,data:y,parsedFile:_,action:S});case 35:case"end":return I.stop()}},f,null,[[3,9]])}));return function(f,d){return u.apply(this,arguments)}})()),X(xt(r),"saveFileInput",function(u){r.fileInput=u}),r}return Cr(n,[{key:"componentDidMount",value:function(){this._isMounted=!0;var a=this.props.pastable;a&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(a){var o=this.props.pastable;o&&!a.pastable?document.addEventListener("paste",this.onFilePaste):!o&&a.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(a){var o=this,c=a.data,u=a.origin,f=a.action,d=a.parsedFile;if(this._isMounted){var h=this.props,v=h.onStart,g=h.customRequest,b=h.name,S=h.headers,C=h.withCredentials,y=h.method,w=u.uid,$=g||wte,_={action:f,filename:b,data:c,file:d,headers:S,withCredentials:C,method:y||"post",onProgress:function(I){var j=o.props.onProgress;j?.(I,d)},onSuccess:function(I,j){var M=o.props.onSuccess;M?.(I,d,j),delete o.reqs[w]},onError:function(I,j){var M=o.props.onError;M?.(I,j,d),delete o.reqs[w]}};v(u),this.reqs[w]=$(_)}}},{key:"reset",value:function(){this.setState({uid:ny()})}},{key:"abort",value:function(a){var o=this.reqs;if(a){var c=a.uid?a.uid:a;o[c]&&o[c].abort&&o[c].abort(),delete o[c]}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,c=a.prefixCls,u=a.className,f=a.classNames,d=f===void 0?{}:f,h=a.disabled,v=a.id,g=a.name,b=a.style,S=a.styles,C=S===void 0?{}:S,y=a.multiple,w=a.accept,$=a.capture,_=a.children,O=a.directory,I=a.openFileDialogOnClick,j=a.onMouseEnter,M=a.onMouseLeave,D=a.hasControlInside,N=Kt(a,Ote),P=se(X(X(X({},c,!0),"".concat(c,"-disabled"),h),u,u)),A=O?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},F=h?{}:{onClick:I?this.onClick:function(){},onKeyDown:I?this.onKeyDown:function(){},onMouseEnter:j,onMouseLeave:M,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:D?void 0:"0"};return xe.createElement(o,Me({},F,{className:P,role:D?void 0:"button",style:b}),xe.createElement("input",Me({},ma(N,{aria:!0,data:!0}),{id:v,name:g,disabled:h,type:"file",ref:this.saveFileInput,onClick:function(k){return k.stopPropagation()},key:this.state.uid,style:ee({display:"none"},C.input),className:d.input,accept:w},A,{multiple:y,onChange:this.onChange},$!=null?{capture:$}:{})),_)}}]),n})(s.Component);function ry(){}var AS=(function(e){oi(n,e);var t=Ei(n);function n(){var r;xr(this,n);for(var a=arguments.length,o=new Array(a),c=0;c<a;c++)o[c]=arguments[c];return r=t.call.apply(t,[this].concat(o)),X(xt(r),"uploader",void 0),X(xt(r),"saveUploader",function(u){r.uploader=u}),r}return Cr(n,[{key:"abort",value:function(a){this.uploader.abort(a)}},{key:"render",value:function(){return xe.createElement(Ite,Me({},this.props,{ref:this.saveUploader}))}}]),n})(s.Component);X(AS,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ry,onError:ry,onSuccess:ry,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const Rte=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${te(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
          &:not(${t}-disabled):hover,
          &-hover:not(${t}-disabled)
        `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${te(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
            p${t}-text,
            p${t}-hint
          `]:{color:e.colorTextDisabled}}}}}},Nte=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:a,calc:o}=e,c=`${t}-list-item`,u=`${c}-actions`,f=`${c}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},Uo()),{lineHeight:e.lineHeight,[c]:{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},[`${c}-name`]:Object.assign(Object.assign({},Bi),{padding:`0 ${te(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},[`${c}-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}}},[`${c}:hover ${f}`]:{opacity:1},[`${c}-error`]:{color:e.colorError,[`${c}-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:'""'}}})}}},Mte=e=>{const{componentCls:t}=e,n=new jn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new jn("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`]:nL(e)},n,r]},jte=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:a,calc:o}=e,c=`${t}-list`,u=`${c}-item`;return{[`${t}-wrapper`]:{[`
        ${c}${c}-picture,
        ${c}${c}-picture-card,
        ${c}${c}-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:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${u}-thumbnail`]:Object.assign(Object.assign({},Bi),{width:r,height:r,lineHeight:te(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% - ${te(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='${tu[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${tu.primary}']`]:{fill:e.colorError}}},[`${u}-uploading`]:{borderStyle:"dashed",[`${u}-name`]:{marginBottom:a}}},[`${c}${c}-picture-circle ${u}`]:{[`&, &::before, ${u}-thumbnail`]:{borderRadius:"50%"}}}}},Tte=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:a,calc:o}=e,c=`${t}-list`,u=`${c}-item`,f=e.uploadPicCardSize;return{[`
      ${t}-wrapper${t}-picture-card-wrapper,
      ${t}-wrapper${t}-picture-circle-wrapper
    `]:Object.assign(Object.assign({},Uo()),{display:"block",[`${t}${t}-select`]:{width:f,height:f,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${te(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${c}${c}-picture-card, ${c}${c}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${c}-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% - ${te(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${te(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 ${te(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% - ${te(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% - ${te(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Dte=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Pte=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},An(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"}})}},kte=e=>({actionsColor:e.colorIcon}),Ate=Kn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:a,calc:o}=e,c=Sn(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(a).mul(2.55).equal()});return[Pte(c),Rte(c),jte(c),Tte(c),Nte(c),Mte(c),Dte(c),Wv(c)]},kte);var zte={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"},Lte=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:zte}))},Hte=s.forwardRef(Lte),Bte={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"},Fte=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:Bte}))},Vte=s.forwardRef(Fte),Kte={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"},Ute=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:Kte}))},Wte=s.forwardRef(Ute);function Ih(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 Rh(e,t){const n=ke(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function ay(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function qte(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 Yte=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},BD=e=>e.indexOf("image/")===0,Gte=e=>{if(e.type&&!e.thumbUrl)return BD(e.type);const t=e.thumbUrl||e.url||"",n=Yte(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)},Ol=200;function Xte(e){return new Promise(t=>{if(!e.type||!BD(e.type)){t("");return}const n=document.createElement("canvas");n.width=Ol,n.height=Ol,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ol}px; height: ${Ol}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:c}=a;let u=Ol,f=Ol,d=0,h=0;o>c?(f=c*(Ol/o),h=-(f-u)/2):(u=o*(Ol/c),d=-(u-f)/2),r.drawImage(a,d,h,u,f);const v=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(v)},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)})}var Qte={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"},Zte=function(t,n){return s.createElement(_n,Me({},t,{ref:n,icon:Qte}))},Jte=s.forwardRef(Zte);const ene=s.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:o,items:c,progress:u,iconRender:f,actionIconRender:d,itemRender:h,isImgUrl:v,showPreviewIcon:g,showRemoveIcon:b,showDownloadIcon:S,previewIcon:C,removeIcon:y,downloadIcon:w,extra:$,onPreview:_,onDownload:O,onClose:I},j)=>{var M,D;const{status:N}=o,[P,A]=s.useState(N);s.useEffect(()=>{N!=="removed"&&A(N)},[N]);const[F,H]=s.useState(!1);s.useEffect(()=>{const oe=setTimeout(()=>{H(!0)},300);return()=>{clearTimeout(oe)}},[]);const k=f(o);let L=s.createElement("div",{className:`${e}-icon`},k);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(P==="uploading"||!o.thumbUrl&&!o.url){const oe=se(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:P!=="uploading"});L=s.createElement("div",{className:oe},k)}else{const oe=v?.(o)?s.createElement("img",{src:o.thumbUrl||o.url,alt:o.name,className:`${e}-list-item-image`,crossOrigin:o.crossOrigin}):k,he=se(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:v&&!v(o)});L=s.createElement("a",{className:he,onClick:de=>_(o,de),href:o.url||o.thumbUrl,target:"_blank",rel:"noopener noreferrer"},oe)}const T=se(`${e}-list-item`,`${e}-list-item-${P}`),z=typeof o.linkProps=="string"?JSON.parse(o.linkProps):o.linkProps,V=(typeof b=="function"?b(o):b)?d((typeof y=="function"?y(o):y)||s.createElement(Mee,null),()=>I(o),e,r.removeFile,!0):null,q=(typeof S=="function"?S(o):S)&&P==="done"?d((typeof w=="function"?w(o):w)||s.createElement(Jte,null),()=>O(o),e,r.downloadFile):null,G=a!=="picture-card"&&a!=="picture-circle"&&s.createElement("span",{key:"download-delete",className:se(`${e}-list-item-actions`,{picture:a==="picture"})},q,V),B=typeof $=="function"?$(o):$,U=B&&s.createElement("span",{className:`${e}-list-item-extra`},B),K=se(`${e}-list-item-name`),Y=o.url?s.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:K,title:o.name},z,{href:o.url,onClick:oe=>_(o,oe)}),o.name,U):s.createElement("span",{key:"view",className:K,onClick:oe=>_(o,oe),title:o.name},o.name,U),Q=(typeof g=="function"?g(o):g)&&(o.url||o.thumbUrl)?s.createElement("a",{href:o.url||o.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:oe=>_(o,oe),title:r.previewFile},typeof C=="function"?C(o):C||s.createElement(GT,null)):null,Z=(a==="picture-card"||a==="picture-circle")&&P!=="uploading"&&s.createElement("span",{className:`${e}-list-item-actions`},Q,P==="done"&&q,V),{getPrefixCls:ae}=s.useContext(Ut),re=ae(),ie=s.createElement("div",{className:T},L,Y,G,Z,F&&s.createElement(Oi,{motionName:`${re}-fade`,visible:P==="uploading",motionDeadline:2e3},({className:oe})=>{const he="percent"in o?s.createElement(tQ,Object.assign({type:"line",percent:o.percent,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"]},u)):null;return s.createElement("div",{className:se(`${e}-list-item-progress`,oe)},he)})),ve=o.response&&typeof o.response=="string"?o.response:((M=o.error)===null||M===void 0?void 0:M.statusText)||((D=o.error)===null||D===void 0?void 0:D.message)||r.uploadError,ue=P==="error"?s.createElement(_i,{title:ve,getPopupContainer:oe=>oe.parentNode},ie):ie;return s.createElement("div",{className:se(`${e}-list-item-container`,t),style:n,ref:j},h?h(ue,o,c,{download:O.bind(null,o),preview:_.bind(null,o),remove:I.bind(null,o)}):ue)}),tne=(e,t)=>{const{listType:n="text",previewFile:r=Xte,onPreview:a,onDownload:o,onRemove:c,locale:u,iconRender:f,isImageUrl:d=Gte,prefixCls:h,items:v=[],showPreviewIcon:g=!0,showRemoveIcon:b=!0,showDownloadIcon:S=!1,removeIcon:C,previewIcon:y,downloadIcon:w,extra:$,progress:_={size:[-1,2],showInfo:!1},appendAction:O,appendActionVisible:I=!0,itemRender:j,disabled:M}=e,D=Kx(),[N,P]=s.useState(!1),A=["picture-card","picture-circle"].includes(n);s.useEffect(()=>{n.startsWith("picture")&&(v||[]).forEach(K=>{!(K.originFileObj instanceof File||K.originFileObj instanceof Blob)||K.thumbUrl!==void 0||(K.thumbUrl="",r?.(K.originFileObj).then(Y=>{K.thumbUrl=Y||"",D()}))})},[n,v,r]),s.useEffect(()=>{P(!0)},[]);const F=(K,Y)=>{if(a)return Y?.preventDefault(),a(K)},H=K=>{typeof o=="function"?o(K):K.url&&window.open(K.url)},k=K=>{c?.(K)},L=K=>{if(f)return f(K,n);const Y=K.status==="uploading";if(n.startsWith("picture")){const Q=n==="picture"?s.createElement(qo,null):u.uploading,Z=d?.(K)?s.createElement(Wte,null):s.createElement(Hte,null);return Y?Q:Z}return Y?s.createElement(qo,null):s.createElement(Vte,null)},T=(K,Y,Q,Z,ae)=>{const re={type:"text",size:"small",title:Z,onClick:ie=>{var ve,ue;Y(),s.isValidElement(K)&&((ue=(ve=K.props).onClick)===null||ue===void 0||ue.call(ve,ie))},className:`${Q}-list-item-action`,disabled:ae?M:!1};return s.isValidElement(K)?s.createElement(gn,Object.assign({},re,{icon:wa(K,Object.assign(Object.assign({},K.props),{onClick:()=>{}}))})):s.createElement(gn,Object.assign({},re),s.createElement("span",null,K))};s.useImperativeHandle(t,()=>({handlePreview:F,handleDownload:H}));const{getPrefixCls:z}=s.useContext(Ut),V=z("upload",h),q=z(),G=se(`${V}-list`,`${V}-list-${n}`),B=s.useMemo(()=>or(df(q),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[q]),U=Object.assign(Object.assign({},A?{}:B),{motionDeadline:2e3,motionName:`${V}-${A?"animate-inline":"animate"}`,keys:ke(v.map(K=>({key:K.uid,file:K}))),motionAppear:N});return s.createElement("div",{className:G},s.createElement(xx,Object.assign({},U,{component:!1}),({key:K,file:Y,className:Q,style:Z})=>s.createElement(ene,{key:K,locale:u,prefixCls:V,className:Q,style:Z,file:Y,items:v,progress:_,listType:n,isImgUrl:d,showPreviewIcon:g,showRemoveIcon:b,showDownloadIcon:S,removeIcon:C,previewIcon:y,downloadIcon:w,extra:$,iconRender:L,actionIconRender:T,itemRender:j,onPreview:F,onDownload:H,onClose:k})),O&&s.createElement(Oi,Object.assign({},U,{visible:I,forceRender:!0}),({className:K,style:Y})=>wa(O,Q=>({className:se(Q.className,K),style:Object.assign(Object.assign(Object.assign({},Y),{pointerEvents:K?"none":void 0}),Q.style)}))))},nne=s.forwardRef(tne);var rne=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(c){c(o)})}return new(n||(n=Promise))(function(o,c){function u(h){try{d(r.next(h))}catch(v){c(v)}}function f(h){try{d(r.throw(h))}catch(v){c(v)}}function d(h){h.done?o(h.value):a(h.value).then(u,f)}d((r=r.apply(e,[])).next())})};const Hd=`__LIST_IGNORE_${Date.now()}__`,ane=(e,t)=>{const n=va("upload"),{fileList:r,defaultFileList:a,onRemove:o,showUploadList:c=!0,listType:u="text",onPreview:f,onDownload:d,onChange:h,onDrop:v,previewFile:g,disabled:b,locale:S,iconRender:C,isImageUrl:y,progress:w,prefixCls:$,className:_,type:O="select",children:I,style:j,itemRender:M,maxCount:D,data:N={},multiple:P=!1,hasControlInside:A=!0,action:F="",accept:H="",supportServerRender:k=!0,rootClassName:L}=e,T=s.useContext(ja),z=b??T,V=e.customRequest||n.customRequest,[q,G]=Wn(a||[],{value:r,postState:be=>be??[]}),[B,U]=s.useState("drop"),K=s.useRef(null),Y=s.useRef(null);s.useMemo(()=>{const be=Date.now();(r||[]).forEach((ye,Re)=>{!ye.uid&&!Object.isFrozen(ye)&&(ye.uid=`__AUTO__${be}_${Re}__`)})},[r]);const Q=(be,ye,Re)=>{let Ge=ke(ye),ft=!1;D===1?Ge=Ge.slice(-1):D&&(ft=Ge.length>D,Ge=Ge.slice(0,D)),Li.flushSync(()=>{G(Ge)});const $t={file:be,fileList:Ge};Re&&($t.event=Re),(!ft||be.status==="removed"||Ge.some(Qe=>Qe.uid===be.uid))&&Li.flushSync(()=>{h?.($t)})},Z=(be,ye)=>rne(void 0,void 0,void 0,function*(){const{beforeUpload:Re,transformFile:Ge}=e;let ft=be;if(Re){const $t=yield Re(be,ye);if($t===!1)return!1;if(delete be[Hd],$t===Hd)return Object.defineProperty(be,Hd,{value:!0,configurable:!0}),!1;typeof $t=="object"&&$t&&(ft=$t)}return Ge&&(ft=yield Ge(ft)),ft}),ae=be=>{const ye=be.filter(ft=>!ft.file[Hd]);if(!ye.length)return;const Re=ye.map(ft=>Ih(ft.file));let Ge=ke(q);Re.forEach(ft=>{Ge=Rh(ft,Ge)}),Re.forEach((ft,$t)=>{let Qe=ft;if(ye[$t].parsedFile)ft.status="uploading";else{const{originFileObj:at}=ft;let mt;try{mt=new File([at],at.name,{type:at.type})}catch{mt=new Blob([at],{type:at.type}),mt.name=at.name,mt.lastModifiedDate=new Date,mt.lastModified=new Date().getTime()}mt.uid=ft.uid,Qe=mt}Q(Qe,Ge)})},re=(be,ye,Re)=>{try{typeof be=="string"&&(be=JSON.parse(be))}catch{}if(!ay(ye,q))return;const Ge=Ih(ye);Ge.status="done",Ge.percent=100,Ge.response=be,Ge.xhr=Re;const ft=Rh(Ge,q);Q(Ge,ft)},ie=(be,ye)=>{if(!ay(ye,q))return;const Re=Ih(ye);Re.status="uploading",Re.percent=be.percent;const Ge=Rh(Re,q);Q(Re,Ge,be)},ve=(be,ye,Re)=>{if(!ay(Re,q))return;const Ge=Ih(Re);Ge.error=be,Ge.response=ye,Ge.status="error";const ft=Rh(Ge,q);Q(Ge,ft)},ue=be=>{let ye;Promise.resolve(typeof o=="function"?o(be):o).then(Re=>{var Ge;if(Re===!1)return;const ft=qte(be,q);ft&&(ye=Object.assign(Object.assign({},be),{status:"removed"}),q?.forEach($t=>{const Qe=ye.uid!==void 0?"uid":"name";$t[Qe]===ye[Qe]&&!Object.isFrozen($t)&&($t.status="removed")}),(Ge=K.current)===null||Ge===void 0||Ge.abort(ye),Q(ye,ft))})},oe=be=>{U(be.type),be.type==="drop"&&v?.(be)};s.useImperativeHandle(t,()=>({onBatchStart:ae,onSuccess:re,onProgress:ie,onError:ve,fileList:q,upload:K.current,nativeElement:Y.current}));const{getPrefixCls:he,direction:de,upload:me}=s.useContext(Ut),le=he("upload",$),pe=Object.assign(Object.assign({onBatchStart:ae,onError:ve,onProgress:ie,onSuccess:re},e),{customRequest:V,data:N,multiple:P,action:F,accept:H,supportServerRender:k,prefixCls:le,disabled:z,beforeUpload:Z,onChange:void 0,hasControlInside:A});delete pe.className,delete pe.style,(!I||z)&&delete pe.id;const Ce=`${le}-wrapper`,[De,je,ge]=Ate(le,Ce),[Ie]=ho("Upload",lo.Upload),{showRemoveIcon:_e,showPreviewIcon:we,showDownloadIcon:Fe,removeIcon:He,previewIcon:it,downloadIcon:Ze,extra:Ye}=typeof c=="boolean"?{}:c,Je=typeof _e>"u"?!z:_e,Pe=(be,ye)=>c?s.createElement(nne,{prefixCls:le,listType:u,items:q,previewFile:g,onPreview:f,onDownload:d,onRemove:ue,showRemoveIcon:Je,showPreviewIcon:we,showDownloadIcon:Fe,removeIcon:He,previewIcon:it,downloadIcon:Ze,iconRender:C,extra:Ye,locale:Object.assign(Object.assign({},Ie),S),isImageUrl:y,progress:w,appendAction:be,appendActionVisible:ye,itemRender:M,disabled:z}):be,Oe=se(Ce,_,L,je,ge,me?.className,{[`${le}-rtl`]:de==="rtl",[`${le}-picture-card-wrapper`]:u==="picture-card",[`${le}-picture-circle-wrapper`]:u==="picture-circle"}),Be=Object.assign(Object.assign({},me?.style),j);if(O==="drag"){const be=se(je,le,`${le}-drag`,{[`${le}-drag-uploading`]:q.some(ye=>ye.status==="uploading"),[`${le}-drag-hover`]:B==="dragover",[`${le}-disabled`]:z,[`${le}-rtl`]:de==="rtl"});return De(s.createElement("span",{className:Oe,ref:Y},s.createElement("div",{className:be,style:Be,onDrop:oe,onDragOver:oe,onDragLeave:oe},s.createElement(AS,Object.assign({},pe,{ref:K,className:`${le}-btn`}),s.createElement("div",{className:`${le}-drag-container`},I))),Pe()))}const $e=se(le,`${le}-select`,{[`${le}-disabled`]:z,[`${le}-hidden`]:!I}),Te=s.createElement("div",{className:$e,style:Be},s.createElement(AS,Object.assign({},pe,{ref:K})));return De(u==="picture-card"||u==="picture-circle"?s.createElement("span",{className:Oe,ref:Y},Pe(Te,!!I)):s.createElement("span",{className:Oe,ref:Y},Te,Pe()))},FD=s.forwardRef(ane);var ine=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 one=s.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:a=!1}=e,o=ine(e,["style","height","hasControlInside"]);return s.createElement(FD,Object.assign({ref:t,hasControlInside:a},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),$a=FD;$a.Dragger=one;$a.LIST_IGNORE=Hd;/**
 * react-router v7.9.4
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var JI="popstate";function lne(e={}){function t(r,a){let{pathname:o,search:c,hash:u}=r.location;return zS("",{pathname:o,search:c,hash:u},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Cf(a)}return cne(t,n,null,e)}function Tr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Vi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sne(){return Math.random().toString(36).substring(2,10)}function eR(e,t){return{usr:e.state,key:e.key,idx:t}}function zS(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?wu(t):t,state:n,key:t&&t.key||r||sne()}}function Cf({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 wu(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 cne(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,c=a.history,u="POP",f=null,d=h();d==null&&(d=0,c.replaceState({...c.state,idx:d},""));function h(){return(c.state||{idx:null}).idx}function v(){u="POP";let y=h(),w=y==null?null:y-d;d=y,f&&f({action:u,location:C.location,delta:w})}function g(y,w){u="PUSH";let $=zS(C.location,y,w);d=h()+1;let _=eR($,d),O=C.createHref($);try{c.pushState(_,"",O)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;a.location.assign(O)}o&&f&&f({action:u,location:C.location,delta:1})}function b(y,w){u="REPLACE";let $=zS(C.location,y,w);d=h();let _=eR($,d),O=C.createHref($);c.replaceState(_,"",O),o&&f&&f({action:u,location:C.location,delta:0})}function S(y){return une(y)}let C={get action(){return u},get location(){return e(a,c)},listen(y){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(JI,v),f=y,()=>{a.removeEventListener(JI,v),f=null}},createHref(y){return t(a,y)},createURL:S,encodeLocation(y){let w=S(y);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:g,replace:b,go(y){return c.go(y)}};return C}function une(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Tr(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Cf(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function VD(e,t,n="/"){return dne(e,t,n,!1)}function dne(e,t,n,r){let a=typeof t=="string"?wu(t):t,o=Xo(a.pathname||"/",n);if(o==null)return null;let c=KD(e);fne(c);let u=null;for(let f=0;u==null&&f<c.length;++f){let d=wne(o);u=xne(c[f],d,r)}return u}function KD(e,t=[],n=[],r="",a=!1){let o=(c,u,f=a,d)=>{let h={relativePath:d===void 0?c.path||"":d,caseSensitive:c.caseSensitive===!0,childrenIndex:u,route:c};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(r)&&f)return;Tr(h.relativePath.startsWith(r),`Absolute route path "${h.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(r.length)}let v=Fo([r,h.relativePath]),g=n.concat(h);c.children&&c.children.length>0&&(Tr(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),KD(c.children,t,g,v,f)),!(c.path==null&&!c.index)&&t.push({path:v,score:yne(v,c.index),routesMeta:g})};return e.forEach((c,u)=>{if(c.path===""||!c.path?.includes("?"))o(c,u);else for(let f of UD(c.path))o(c,u,!0,f)}),t}function UD(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 c=UD(r.join("/")),u=[];return u.push(...c.map(f=>f===""?o:[o,f].join("/"))),a&&u.push(...c),u.map(f=>e.startsWith("/")&&f===""?"/":f)}function fne(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Sne(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var mne=/^:[\w-]+$/,hne=3,vne=2,gne=1,pne=10,bne=-2,tR=e=>e==="*";function yne(e,t){let n=e.split("/"),r=n.length;return n.some(tR)&&(r+=bne),t&&(r+=vne),n.filter(a=>!tR(a)).reduce((a,o)=>a+(mne.test(o)?hne:o===""?gne:pne),r)}function Sne(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 xne(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",c=[];for(let u=0;u<r.length;++u){let f=r[u],d=u===r.length-1,h=o==="/"?t:t.slice(o.length)||"/",v=Rv({path:f.relativePath,caseSensitive:f.caseSensitive,end:d},h),g=f.route;if(!v&&d&&n&&!r[r.length-1].route.index&&(v=Rv({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},h)),!v)return null;Object.assign(a,v.params),c.push({params:a,pathname:Fo([o,v.pathname]),pathnameBase:One(Fo([o,v.pathnameBase])),route:g}),v.pathnameBase!=="/"&&(o=Fo([o,v.pathnameBase]))}return c}function Rv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Cne(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],c=o.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:r.reduce((d,{paramName:h,isOptional:v},g)=>{if(h==="*"){let S=u[g]||"";c=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const b=u[g];return v&&!b?d[h]=void 0:d[h]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:c,pattern:e}}function Cne(e,t=!1,n=!0){Vi(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,(c,u,f)=>(r.push({paramName:u,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function wne(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Vi(!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 Xo(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 $ne(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?wu(e):e;return{pathname:n?n.startsWith("/")?n:_ne(n,t):t,search:Ine(r),hash:Rne(a)}}function _ne(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 iy(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 Ene(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function HC(e){let t=Ene(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function BC(e,t,n,r=!1){let a;typeof e=="string"?a=wu(e):(a={...e},Tr(!a.pathname||!a.pathname.includes("?"),iy("?","pathname","search",a)),Tr(!a.pathname||!a.pathname.includes("#"),iy("#","pathname","hash",a)),Tr(!a.search||!a.search.includes("#"),iy("#","search","hash",a)));let o=e===""||a.pathname==="",c=o?"/":a.pathname,u;if(c==null)u=n;else{let v=t.length-1;if(!r&&c.startsWith("..")){let g=c.split("/");for(;g[0]==="..";)g.shift(),v-=1;a.pathname=g.join("/")}u=v>=0?t[v]:"/"}let f=$ne(a,u),d=c&&c!=="/"&&c.endsWith("/"),h=(o||c===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||h)&&(f.pathname+="/"),f}var Fo=e=>e.join("/").replace(/\/\/+/g,"/"),One=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ine=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Rne=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Nne(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var WD=["POST","PUT","PATCH","DELETE"];new Set(WD);var Mne=["GET",...WD];new Set(Mne);var $u=s.createContext(null);$u.displayName="DataRouter";var Ng=s.createContext(null);Ng.displayName="DataRouterState";s.createContext(!1);var qD=s.createContext({isTransitioning:!1});qD.displayName="ViewTransition";var jne=s.createContext(new Map);jne.displayName="Fetchers";var Tne=s.createContext(null);Tne.displayName="Await";var Gi=s.createContext(null);Gi.displayName="Navigation";var Vf=s.createContext(null);Vf.displayName="Location";var Xi=s.createContext({outlet:null,matches:[],isDataRoute:!1});Xi.displayName="Route";var FC=s.createContext(null);FC.displayName="RouteError";function Dne(e,{relative:t}={}){Tr(_u(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=s.useContext(Gi),{hash:a,pathname:o,search:c}=Kf(e,{relative:t}),u=o;return n!=="/"&&(u=o==="/"?n:Fo([n,o])),r.createHref({pathname:u,search:c,hash:a})}function _u(){return s.useContext(Vf)!=null}function ql(){return Tr(_u(),"useLocation() may be used only in the context of a <Router> component."),s.useContext(Vf).location}var YD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function GD(e){s.useContext(Gi).static||s.useLayoutEffect(e)}function Mg(){let{isDataRoute:e}=s.useContext(Xi);return e?Gne():Pne()}function Pne(){Tr(_u(),"useNavigate() may be used only in the context of a <Router> component.");let e=s.useContext($u),{basename:t,navigator:n}=s.useContext(Gi),{matches:r}=s.useContext(Xi),{pathname:a}=ql(),o=JSON.stringify(HC(r)),c=s.useRef(!1);return GD(()=>{c.current=!0}),s.useCallback((f,d={})=>{if(Vi(c.current,YD),!c.current)return;if(typeof f=="number"){n.go(f);return}let h=BC(f,JSON.parse(o),a,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Fo([t,h.pathname])),(d.replace?n.replace:n.push)(h,d.state,d)},[t,n,o,a,e])}var kne=s.createContext(null);function Ane(e){let t=s.useContext(Xi).outlet;return s.useMemo(()=>t&&s.createElement(kne.Provider,{value:e},t),[t,e])}function Kf(e,{relative:t}={}){let{matches:n}=s.useContext(Xi),{pathname:r}=ql(),a=JSON.stringify(HC(n));return s.useMemo(()=>BC(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function zne(e,t){return XD(e,t)}function XD(e,t,n,r,a){Tr(_u(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=s.useContext(Gi),{matches:c}=s.useContext(Xi),u=c[c.length-1],f=u?u.params:{},d=u?u.pathname:"/",h=u?u.pathnameBase:"/",v=u&&u.route;{let $=v&&v.path||"";QD(d,!v||$.endsWith("*")||$.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${$}">) 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="${$}"> to <Route path="${$==="/"?"*":`${$}/*`}">.`)}let g=ql(),b;if(t){let $=typeof t=="string"?wu(t):t;Tr(h==="/"||$.pathname?.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 "${$.pathname}" was given in the \`location\` prop.`),b=$}else b=g;let S=b.pathname||"/",C=S;if(h!=="/"){let $=h.replace(/^\//,"").split("/");C="/"+S.replace(/^\//,"").split("/").slice($.length).join("/")}let y=VD(e,{pathname:C});Vi(v||y!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Vi(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=Vne(y&&y.map($=>Object.assign({},$,{params:Object.assign({},f,$.params),pathname:Fo([h,o.encodeLocation?o.encodeLocation($.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:$.pathname]),pathnameBase:$.pathnameBase==="/"?h:Fo([h,o.encodeLocation?o.encodeLocation($.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:$.pathnameBase])})),c,n,r,a);return t&&w?s.createElement(Vf.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},w):w}function Lne(){let e=Yne(),t=Nne(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},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=s.createElement(s.Fragment,null,s.createElement("p",null,"💿 Hey developer 👋"),s.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",s.createElement("code",{style:o},"ErrorBoundary")," or"," ",s.createElement("code",{style:o},"errorElement")," prop on your route.")),s.createElement(s.Fragment,null,s.createElement("h2",null,"Unexpected Application Error!"),s.createElement("h3",{style:{fontStyle:"italic"}},t),n?s.createElement("pre",{style:a},n):null,c)}var Hne=s.createElement(Lne,null),Bne=class extends s.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){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?s.createElement(Xi.Provider,{value:this.props.routeContext},s.createElement(FC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Fne({routeContext:e,match:t,children:n}){let r=s.useContext($u);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),s.createElement(Xi.Provider,{value:e},n)}function Vne(e,t=[],n=null,r=null,a=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 o=e,c=n?.errors;if(c!=null){let d=o.findIndex(h=>h.route.id&&c?.[h.route.id]!==void 0);Tr(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,d+1))}let u=!1,f=-1;if(n)for(let d=0;d<o.length;d++){let h=o[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(f=d),h.route.id){let{loaderData:v,errors:g}=n,b=h.route.loader&&!v.hasOwnProperty(h.route.id)&&(!g||g[h.route.id]===void 0);if(h.route.lazy||b){u=!0,f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}return o.reduceRight((d,h,v)=>{let g,b=!1,S=null,C=null;n&&(g=c&&h.route.id?c[h.route.id]:void 0,S=h.route.errorElement||Hne,u&&(f<0&&v===0?(QD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,C=null):f===v&&(b=!0,C=h.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,v+1)),w=()=>{let $;return g?$=S:b?$=C:h.route.Component?$=s.createElement(h.route.Component,null):h.route.element?$=h.route.element:$=d,s.createElement(Fne,{match:h,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:$})};return n&&(h.route.ErrorBoundary||h.route.errorElement||v===0)?s.createElement(Bne,{location:n.location,revalidation:n.revalidation,component:S,error:g,children:w(),routeContext:{outlet:null,matches:y,isDataRoute:!0},unstable_onError:r}):w()},null)}function VC(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Kne(e){let t=s.useContext($u);return Tr(t,VC(e)),t}function Une(e){let t=s.useContext(Ng);return Tr(t,VC(e)),t}function Wne(e){let t=s.useContext(Xi);return Tr(t,VC(e)),t}function KC(e){let t=Wne(e),n=t.matches[t.matches.length-1];return Tr(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function qne(){return KC("useRouteId")}function Yne(){let e=s.useContext(FC),t=Une("useRouteError"),n=KC("useRouteError");return e!==void 0?e:t.errors?.[n]}function Gne(){let{router:e}=Kne("useNavigate"),t=KC("useNavigate"),n=s.useRef(!1);return GD(()=>{n.current=!0}),s.useCallback(async(a,o={})=>{Vi(n.current,YD),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var nR={};function QD(e,t,n){!t&&!nR[e]&&(nR[e]=!0,Vi(!1,n))}s.memo(Xne);function Xne({routes:e,future:t,state:n,unstable_onError:r}){return XD(e,void 0,n,r,t)}function Qne({to:e,replace:t,state:n,relative:r}){Tr(_u(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=s.useContext(Gi);Vi(!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}=s.useContext(Xi),{pathname:c}=ql(),u=Mg(),f=BC(e,HC(o),c,r==="path"),d=JSON.stringify(f);return s.useEffect(()=>{u(JSON.parse(d),{replace:t,state:n,relative:r})},[u,d,r,t,n]),null}function Zne(e){return Ane(e.context)}function Gt(e){Tr(!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 Jne({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1}){Tr(!_u(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),u=s.useMemo(()=>({basename:c,navigator:a,static:o,future:{}}),[c,a,o]);typeof n=="string"&&(n=wu(n));let{pathname:f="/",search:d="",hash:h="",state:v=null,key:g="default"}=n,b=s.useMemo(()=>{let S=Xo(f,c);return S==null?null:{location:{pathname:S,search:d,hash:h,state:v,key:g},navigationType:r}},[c,f,d,h,v,g,r]);return Vi(b!=null,`<Router basename="${c}"> 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:s.createElement(Gi.Provider,{value:u},s.createElement(Vf.Provider,{children:t,value:b}))}function ere({children:e,location:t}){return zne(LS(e),t)}function LS(e,t=[]){let n=[];return s.Children.forEach(e,(r,a)=>{if(!s.isValidElement(r))return;let o=[...t,a];if(r.type===s.Fragment){n.push.apply(n,LS(r.props.children,o));return}Tr(r.type===Gt,`[${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>`),Tr(!r.props.index||!r.props.children,"An index route cannot have child routes.");let c={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,middleware:r.props.middleware,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&&(c.children=LS(r.props.children,o)),n.push(c)}),n}var nv="get",rv="application/x-www-form-urlencoded";function jg(e){return e!=null&&typeof e.tagName=="string"}function tre(e){return jg(e)&&e.tagName.toLowerCase()==="button"}function nre(e){return jg(e)&&e.tagName.toLowerCase()==="form"}function rre(e){return jg(e)&&e.tagName.toLowerCase()==="input"}function are(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ire(e,t){return e.button===0&&(!t||t==="_self")&&!are(e)}var Nh=null;function ore(){if(Nh===null)try{new FormData(document.createElement("form"),0),Nh=!1}catch{Nh=!0}return Nh}var lre=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function oy(e){return e!=null&&!lre.has(e)?(Vi(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${rv}"`),null):e}function sre(e,t){let n,r,a,o,c;if(nre(e)){let u=e.getAttribute("action");r=u?Xo(u,t):null,n=e.getAttribute("method")||nv,a=oy(e.getAttribute("enctype"))||rv,o=new FormData(e)}else if(tre(e)||rre(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?Xo(f,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||nv,a=oy(e.getAttribute("formenctype"))||oy(u.getAttribute("enctype"))||rv,o=new FormData(u,e),!ore()){let{name:d,type:h,value:v}=e;if(h==="image"){let g=d?`${d}.`:"";o.append(`${g}x`,"0"),o.append(`${g}y`,"0")}else d&&o.append(d,v)}}else{if(jg(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=nv,r=null,a=rv,c=e}return o&&a==="text/plain"&&(c=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function UC(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function cre(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Xo(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function ure(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 dre(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 fre(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let c=await ure(o,n);return c.links?c.links():[]}return[]}));return gre(r.flat(1).filter(dre).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function rR(e,t,n,r,a,o){let c=(f,d)=>n[d]?f.route.id!==n[d].route.id:!0,u=(f,d)=>n[d].pathname!==f.pathname||n[d].route.path?.endsWith("*")&&n[d].params["*"]!==f.params["*"];return o==="assets"?t.filter((f,d)=>c(f,d)||u(f,d)):o==="data"?t.filter((f,d)=>{let h=r.routes[f.route.id];if(!h||!h.hasLoader)return!1;if(c(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:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function mre(e,t,{includeHydrateFallback:n}={}){return hre(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 hre(e){return[...new Set(e)]}function vre(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function gre(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(vre(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function ZD(){let e=s.useContext($u);return UC(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function pre(){let e=s.useContext(Ng);return UC(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var WC=s.createContext(void 0);WC.displayName="FrameworkContext";function JD(){let e=s.useContext(WC);return UC(e,"You must render this element inside a <HydratedRouter> element"),e}function bre(e,t){let n=s.useContext(WC),[r,a]=s.useState(!1),[o,c]=s.useState(!1),{onFocus:u,onBlur:f,onMouseEnter:d,onMouseLeave:h,onTouchStart:v}=t,g=s.useRef(null);s.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let C=w=>{w.forEach($=>{c($.isIntersecting)})},y=new IntersectionObserver(C,{threshold:.5});return g.current&&y.observe(g.current),()=>{y.disconnect()}}},[e]),s.useEffect(()=>{if(r){let C=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(C)}}},[r]);let b=()=>{a(!0)},S=()=>{a(!1),c(!1)};return n?e!=="intent"?[o,g,{}]:[o,g,{onFocus:Od(u,b),onBlur:Od(f,S),onMouseEnter:Od(d,b),onMouseLeave:Od(h,S),onTouchStart:Od(v,b)}]:[!1,g,{}]}function Od(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function yre({page:e,...t}){let{router:n}=ZD(),r=s.useMemo(()=>VD(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?s.createElement(xre,{page:e,matches:r,...t}):null}function Sre(e){let{manifest:t,routeModules:n}=JD(),[r,a]=s.useState([]);return s.useEffect(()=>{let o=!1;return fre(e,t,n).then(c=>{o||a(c)}),()=>{o=!0}},[e,t,n]),r}function xre({page:e,matches:t,...n}){let r=ql(),{manifest:a,routeModules:o}=JD(),{basename:c}=ZD(),{loaderData:u,matches:f}=pre(),d=s.useMemo(()=>rR(e,t,f,a,r,"data"),[e,t,f,a,r]),h=s.useMemo(()=>rR(e,t,f,a,r,"assets"),[e,t,f,a,r]),v=s.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let S=new Set,C=!1;if(t.forEach(w=>{let $=a.routes[w.route.id];!$||!$.hasLoader||(!d.some(_=>_.route.id===w.route.id)&&w.route.id in u&&o[w.route.id]?.shouldRevalidate||$.hasClientLoader?C=!0:S.add(w.route.id))}),S.size===0)return[];let y=cre(e,c,"data");return C&&S.size>0&&y.searchParams.set("_routes",t.filter(w=>S.has(w.route.id)).map(w=>w.route.id).join(",")),[y.pathname+y.search]},[c,u,r,a,d,t,e,o]),g=s.useMemo(()=>mre(h,a),[h,a]),b=Sre(h);return s.createElement(s.Fragment,null,v.map(S=>s.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),g.map(S=>s.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),b.map(({key:S,link:C})=>s.createElement("link",{key:S,nonce:n.nonce,...C})))}function Cre(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var eP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{eP&&(window.__reactRouterVersion="7.9.4")}catch{}function wre({basename:e,children:t,window:n}){let r=s.useRef();r.current==null&&(r.current=lne({window:n,v5Compat:!0}));let a=r.current,[o,c]=s.useState({action:a.action,location:a.location}),u=s.useCallback(f=>{s.startTransition(()=>c(f))},[c]);return s.useLayoutEffect(()=>a.listen(u),[a,u]),s.createElement(Jne,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a})}var tP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qC=s.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:o,replace:c,state:u,target:f,to:d,preventScrollReset:h,viewTransition:v,...g},b){let{basename:S}=s.useContext(Gi),C=typeof d=="string"&&tP.test(d),y,w=!1;if(typeof d=="string"&&C&&(y=d,eP))try{let N=new URL(window.location.href),P=d.startsWith("//")?new URL(N.protocol+d):new URL(d),A=Xo(P.pathname,S);P.origin===N.origin&&A!=null?d=A+P.search+P.hash:w=!0}catch{Vi(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let $=Dne(d,{relative:a}),[_,O,I]=bre(r,g),j=Ore(d,{replace:c,state:u,target:f,preventScrollReset:h,relative:a,viewTransition:v});function M(N){t&&t(N),N.defaultPrevented||j(N)}let D=s.createElement("a",{...g,...I,href:y||$,onClick:w||o?t:M,ref:Cre(b,O),target:f,"data-discover":!C&&n==="render"?"true":void 0});return _&&!C?s.createElement(s.Fragment,null,D,s.createElement(yre,{page:$})):D});qC.displayName="Link";var $re=s.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:o,to:c,viewTransition:u,children:f,...d},h){let v=Kf(c,{relative:d.relative}),g=ql(),b=s.useContext(Ng),{navigator:S,basename:C}=s.useContext(Gi),y=b!=null&&jre(v)&&u===!0,w=S.encodeLocation?S.encodeLocation(v).pathname:v.pathname,$=g.pathname,_=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||($=$.toLowerCase(),_=_?_.toLowerCase():null,w=w.toLowerCase()),_&&C&&(_=Xo(_,C)||_);const O=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let I=$===w||!a&&$.startsWith(w)&&$.charAt(O)==="/",j=_!=null&&(_===w||!a&&_.startsWith(w)&&_.charAt(w.length)==="/"),M={isActive:I,isPending:j,isTransitioning:y},D=I?t:void 0,N;typeof r=="function"?N=r(M):N=[r,I?"active":null,j?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let P=typeof o=="function"?o(M):o;return s.createElement(qC,{...d,"aria-current":D,className:N,ref:h,style:P,to:c,viewTransition:u},typeof f=="function"?f(M):f)});$re.displayName="NavLink";var _re=s.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:c=nv,action:u,onSubmit:f,relative:d,preventScrollReset:h,viewTransition:v,...g},b)=>{let S=Nre(),C=Mre(u,{relative:d}),y=c.toLowerCase()==="get"?"get":"post",w=typeof u=="string"&&tP.test(u),$=_=>{if(f&&f(_),_.defaultPrevented)return;_.preventDefault();let O=_.nativeEvent.submitter,I=O?.getAttribute("formmethod")||c;S(O||_.currentTarget,{fetcherKey:t,method:I,navigate:n,replace:a,state:o,relative:d,preventScrollReset:h,viewTransition:v})};return s.createElement("form",{ref:b,method:y,action:C,onSubmit:r?f:$,...g,"data-discover":!w&&e==="render"?"true":void 0})});_re.displayName="Form";function Ere(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function nP(e){let t=s.useContext($u);return Tr(t,Ere(e)),t}function Ore(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:c}={}){let u=Mg(),f=ql(),d=Kf(e,{relative:o});return s.useCallback(h=>{if(ire(h,t)){h.preventDefault();let v=n!==void 0?n:Cf(f)===Cf(d);u(e,{replace:v,state:r,preventScrollReset:a,relative:o,viewTransition:c})}},[f,u,d,n,r,t,e,a,o,c])}var Ire=0,Rre=()=>`__${String(++Ire)}__`;function Nre(){let{router:e}=nP("useSubmit"),{basename:t}=s.useContext(Gi),n=qne();return s.useCallback(async(r,a={})=>{let{action:o,method:c,encType:u,formData:f,body:d}=sre(r,t);if(a.navigate===!1){let h=a.fetcherKey||Rre();await e.fetch(h,n,a.action||o,{preventScrollReset:a.preventScrollReset,formData:f,body:d,formMethod:a.method||c,formEncType:a.encType||u,flushSync:a.flushSync})}else await e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:f,body:d,formMethod:a.method||c,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function Mre(e,{relative:t}={}){let{basename:n}=s.useContext(Gi),r=s.useContext(Xi);Tr(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...Kf(e||".",{relative:t})},c=ql();if(e==null){o.search=c.search;let u=new URLSearchParams(o.search),f=u.getAll("index");if(f.some(h=>h==="")){u.delete("index"),f.filter(v=>v).forEach(v=>u.append("index",v));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:Fo([n,o.pathname])),Cf(o)}function jre(e,{relative:t}={}){let n=s.useContext(qD);Tr(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=nP("useViewTransitionState"),a=Kf(e,{relative:t});if(!n.isTransitioning)return!1;let o=Xo(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=Xo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Rv(a.pathname,c)!=null||Rv(a.pathname,o)!=null}const rP=s.createContext(void 0),Tre=({children:e})=>{const[t,n]=s.useState(null),[r,a]=s.useState(null),[o,c]=s.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 x.jsx(rP.Provider,{value:{serverUrl:o,setServerUrl:c,idToken:t,setIdToken:n,userId:r,setUserId:a,login:u,logout:f},children:e})},Dn=()=>{const e=s.useContext(rP);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},Dre=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}},Pre=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"}},dr=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())},aP=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 c=await o.text();throw new Error(`${o.status}: ${c}`)}return await o.json()},fo=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()},Fs=(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)},Uf=(e,t,n)=>{let r;if(n==="application/pdf"){let o="";const c=new Uint8Array(e),u=c.byteLength;for(let d=0;d<u;d++)o+=String.fromCharCode(c[d]);r="data:application/pdf;base64,"+btoa(o)}else{const c=new TextDecoder("utf-8").decode(new Uint8Array(e)),u=new Blob([c],{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)},Wf=e=>{const t=e.split(".").pop()?.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"},iP=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"}},oP=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"}},kre=[{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"}],Are=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),[u,f]=s.useState(void 0),d=s.useRef(null),h=s.useCallback(async()=>{f(void 0);try{const g=await fo("/access/privileged",o,c);f(g.has_privileged_access)}catch(g){console.error("Error fetching privileged access:",g)}},[o,c]);s.useEffect(()=>{h()},[h]),s.useEffect(()=>{t&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[t]);const v=async g=>{a(!0),n(void 0);try{g.grant_create_access_right&&g.operation_types.push("create");const b=await aP("/access/grant",g,o,c);n(b.success)}catch(b){n(`Error granting access: ${b}`),console.error("Error granting access:",b)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Grant access rights"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Grant access rights to another user for specific KMIP operations on an object."}),x.jsx("p",{children:"This action can only be performed by the owner of the object."})]}),x.jsx(fe,{form:e,onFinish:v,layout:"vertical",initialValues:{operation_types:[],grant_create_access_right:!1},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.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:x.jsx(yt,{placeholder:"Enter user identifier"})}),x.jsx(fe.Item,{name:"operation_types",label:"KMIP Operations",help:"Select one or more operations to grant access to",children:x.jsx(Rt,{mode:"multiple",options:kre,placeholder:"Select operations",onChange:()=>{e.validateFields(["unique_identifier"])}})}),x.jsx(fe.Item,{label:"Object UID",shouldUpdate:(g,b)=>g.operation_types!==b.operation_types,children:({getFieldValue:g})=>{const b=g("operation_types")||[];return x.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:x.jsx(yt,{placeholder:"Enter object UID",disabled:b.length===0})})}}),u&&x.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:x.jsx(qr,{children:"Grant create access right to user"})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Grant Access"})})]})}),t&&x.jsx("div",{ref:d,children:x.jsx(rt,{title:"Grant access response",children:t})})]})},zre=()=>{const[e]=fe.useForm(),[t,n]=s.useState([]),[r,a]=s.useState(!1),[o,c]=s.useState(void 0),{idToken:u,serverUrl:f}=Dn(),d=s.useRef(null);s.useEffect(()=>{o&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[o]);const h=async g=>{a(!0),c(void 0),n([]);try{const b=await fo(`/access/list/${g.unique_identifier}`,u,f);b.length?n(b):c("Empty result - no access granted.")}catch(b){c(`Error listing access right: ${b}`),console.error("Error listing access right:",b)}finally{a(!1)}},v=[{title:"User",dataIndex:"user_id",key:"user_id"},{title:"Granted Operations",dataIndex:"operations",key:"operations",render:g=>g.join(", ")}];return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"List an object access rights"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"View all access rights granted on an object."}),x.jsx("p",{children:"This action can only be performed by the owner of the object."})]}),x.jsx(fe,{form:e,onFinish:h,layout:"vertical",children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsx(rt,{children:x.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:x.jsx(yt,{placeholder:"Enter object UID"})})}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"List Access Rights"})})]})}),o&&x.jsx("div",{ref:d,children:x.jsx(rt,{title:"List access response",children:o})}),t.length>0&&x.jsx("div",{className:"mt-8",ref:d,children:x.jsx(rt,{title:"Access Rights",children:x.jsx(Yi,{dataSource:t,columns:v,rowKey:"user_id",pagination:!1})})})]})},Lre=()=>{const[e,t]=s.useState(!1),[n,r]=s.useState([]),[a,o]=s.useState(void 0),[c,u]=s.useState(void 0),{idToken:f,serverUrl:d}=Dn(),h=s.useRef(null);s.useEffect(()=>{c&&h.current&&h.current.scrollIntoView({behavior:"smooth"})},[c]);const v=[{title:"Object UID",dataIndex:"object_id",key:"object_id"},{title:"State",dataIndex:"state",key:"state",render:S=>x.jsx(xi,{color:S==="Active"?"green":"orange",children:S})},{title:"Owner",dataIndex:"owner_id",key:"owner_id"},{title:"Granted Operations",dataIndex:"operations",key:"operations",render:S=>x.jsx("span",{children:S.map(C=>x.jsx(xi,{color:"blue",children:C},C))})}],g=s.useCallback(async()=>{t(!0),u(void 0),r([]);try{const S=await fo("/access/obtained",f,d);S.length?r(S):u("Empty result - no access obtained.")}catch(S){u(`Error listing objects: ${S}`),console.error("Error listing objects:",S)}finally{t(!1)}},[f,d]),b=s.useCallback(async()=>{o(void 0);try{const S=await fo("/access/create",f,d);o(S.has_create_permission)}catch(S){console.error("Error fetching create permission:",S)}},[f,d]);return s.useEffect(()=>{g(),b()},[g,b]),x.jsxs("div",{className:"p-6",children:[x.jsxs("div",{className:"flex justify-between items-center mb-6",children:[x.jsx("h1",{className:"text-2xl font-bold ",children:"Access rights obtained"}),x.jsx(gn,{type:"primary",onClick:g,loading:e,className:"bg-primary",children:"Refresh"})]}),x.jsx("div",{className:"mb-8 space-y-2",children:x.jsx("p",{children:"List of objects you have been granted access to, along with their current state, owner, and the operations you can perform."})}),x.jsx(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:x.jsxs(rt,{children:[x.jsxs("div",{className:"mb-4 space-y-2",children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Create access right"}),x.jsx(xi,{color:a?"green":"red",children:"Create"}),a?"You have":"You don't have"," Create access right, enabling object creation and import from KMS."]}),x.jsx("h3",{className:"text-m font-bold mb-4",children:"Objects access rights"}),x.jsx(Yi,{dataSource:n,columns:v,rowKey:"objectUid",loading:e,pagination:{pageSize:10},className:"border rounded"})]})}),c&&x.jsx("div",{ref:h,children:x.jsx(rt,{title:"Obtained access response",children:c})})]})},Hre=[{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"}],Bre=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null),[f,d]=s.useState(void 0),h=s.useCallback(async()=>{d(void 0);try{const g=await fo("/access/privileged",o,c);d(g.has_privileged_access)}catch(g){console.error("Error fetching privileged access:",g)}},[o,c]);s.useEffect(()=>{h()},[h]),s.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const v=async g=>{a(!0),n(void 0);try{g.revoke_create_access_right&&g.operation_types.push("create");const b=await aP("/access/revoke",g,o,c);n(b.success)}catch(b){n(`Error revoking access: ${b}`),console.error("Error revoking access:",b)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Revoke access rights"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Revoke access rights from a user for specific KMIP operations on an object."}),x.jsx("p",{children:"This action can only be performed by the owner of the object."})]}),x.jsx(fe,{form:e,onFinish:v,layout:"vertical",initialValues:{operation_types:[],revoke_create_access_right:!1},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.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:x.jsx(yt,{placeholder:"Enter user identifier"})}),x.jsx(fe.Item,{name:"operation_types",label:"KMIP Operations",help:"Select one or more operations to revoke access to",children:x.jsx(Rt,{mode:"multiple",options:Hre,placeholder:"Select operations",onChange:()=>{e.validateFields(["unique_identifier"])}})}),x.jsx(fe.Item,{label:"Object UID",shouldUpdate:(g,b)=>g.operation_types!==b.operation_types,children:({getFieldValue:g})=>{const b=g("operation_types")||[];return x.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:x.jsx(yt,{placeholder:"Enter object UID",disabled:b.length===0})})}}),f&&x.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:x.jsx(qr,{children:"Revoke create access right to user"})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",danger:!0,htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Revoke Access"})})]})}),t&&x.jsx("div",{ref:u,children:x.jsx(rt,{title:"Revoke access response",children:t})})]})};let J;const zo=new Array(128).fill(void 0);zo.push(void 0,null,!0,!1);function $n(e){return zo[e]}let We=0,Bd=null;function Gd(){return(Bd===null||Bd.byteLength===0)&&(Bd=new Uint8Array(J.memory.buffer)),Bd}const av=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},Fre=typeof av.encodeInto=="function"?function(e,t){return av.encodeInto(e,t)}:function(e,t){const n=av.encode(e);return t.set(n),{read:e.length,written:n.length}};function gt(e,t,n){if(n===void 0){const u=av.encode(e),f=t(u.length,1)>>>0;return Gd().subarray(f,f+u.length).set(u),We=u.length,f}let r=e.length,a=t(r,1)>>>0;const o=Gd();let c=0;for(;c<r;c++){const u=e.charCodeAt(c);if(u>127)break;o[a+c]=u}if(c!==r){c!==0&&(e=e.slice(c)),a=n(a,r,r=c+e.length*3,1)>>>0;const u=Gd().subarray(a+c,a+r),f=Fre(e,u);c+=f.written,a=n(a,r,c,1)>>>0}return We=c,a}let vs=null;function Ke(){return(vs===null||vs.buffer.detached===!0||vs.buffer.detached===void 0&&vs.buffer!==J.memory.buffer)&&(vs=new DataView(J.memory.buffer)),vs}let Xd=zo.length;function Mn(e){Xd===zo.length&&zo.push(zo.length+1);const t=Xd;return Xd=zo[t],zo[t]=e,t}function Id(e,t){try{return e.apply(this,t)}catch(n){J.__wbindgen_export_2(Mn(n))}}const lP=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&lP.decode();function Mh(e,t){return e=e>>>0,lP.decode(Gd().subarray(e,e+t))}function Vre(e){e<132||(zo[e]=Xd,Xd=e)}function wt(e){const t=$n(e);return Vre(e),t}function Zt(e){return e==null}function HS(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+=HS(e[0]));for(let c=1;c<a;c++)o+=", "+HS(e[c]);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 ii(e,t){const n=t(e.length*4,4)>>>0,r=Ke();for(let a=0;a<e.length;a++)r.setUint32(n+4*a,Mn(e[a]),!0);return We=e.length,n}function Kre(e,t,n,r,a,o,c,u){try{const N=J.__wbindgen_add_to_stack_pointer(-16);var f=Zt(e)?0:ii(e,J.__wbindgen_export_0),d=We,h=Zt(t)?0:gt(t,J.__wbindgen_export_0,J.__wbindgen_export_1),v=We,g=Zt(r)?0:gt(r,J.__wbindgen_export_0,J.__wbindgen_export_1),b=We,S=Zt(a)?0:gt(a,J.__wbindgen_export_0,J.__wbindgen_export_1),C=We,y=Zt(o)?0:gt(o,J.__wbindgen_export_0,J.__wbindgen_export_1),w=We,$=Zt(c)?0:gt(c,J.__wbindgen_export_0,J.__wbindgen_export_1),_=We,O=Zt(u)?0:gt(u,J.__wbindgen_export_0,J.__wbindgen_export_1),I=We;J.locate_ttlv_request(N,f,d,h,v,Zt(n)?4294967297:n>>>0,g,b,S,C,y,w,$,_,O,I);var j=Ke().getInt32(N+0,!0),M=Ke().getInt32(N+4,!0),D=Ke().getInt32(N+8,!0);if(D)throw wt(M);return wt(j)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function Ure(e){try{const a=J.__wbindgen_add_to_stack_pointer(-16),o=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),c=We;J.parse_locate_ttlv_response(a,o,c);var t=Ke().getInt32(a+0,!0),n=Ke().getInt32(a+4,!0),r=Ke().getInt32(a+8,!0);if(r)throw wt(n);return wt(t)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function Wre(e,t,n,r,a){try{const g=J.__wbindgen_add_to_stack_pointer(-16);var o=Zt(e)?0:gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),c=We;const b=ii(t,J.__wbindgen_export_0),S=We;var u=Zt(a)?0:gt(a,J.__wbindgen_export_0,J.__wbindgen_export_1),f=We;J.create_rsa_key_pair_ttlv_request(g,o,c,b,S,n,r,u,f);var d=Ke().getInt32(g+0,!0),h=Ke().getInt32(g+4,!0),v=Ke().getInt32(g+8,!0);if(v)throw wt(h);return wt(d)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function qre(e,t,n,r,a){try{const g=J.__wbindgen_add_to_stack_pointer(-16);var o=Zt(e)?0:gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),c=We;const b=ii(t,J.__wbindgen_export_0),S=We,C=gt(n,J.__wbindgen_export_0,J.__wbindgen_export_1),y=We;var u=Zt(a)?0:gt(a,J.__wbindgen_export_0,J.__wbindgen_export_1),f=We;J.create_ec_key_pair_ttlv_request(g,o,c,b,S,C,y,r,u,f);var d=Ke().getInt32(g+0,!0),h=Ke().getInt32(g+4,!0),v=Ke().getInt32(g+8,!0);if(v)throw wt(h);return wt(d)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function YC(e){try{const a=J.__wbindgen_add_to_stack_pointer(-16),o=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),c=We;J.parse_create_keypair_ttlv_response(a,o,c);var t=Ke().getInt32(a+0,!0),n=Ke().getInt32(a+4,!0),r=Ke().getInt32(a+8,!0);if(r)throw wt(n);return wt(t)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function Yre(e,t,n,r,a,o,c){try{const y=J.__wbindgen_add_to_stack_pointer(-16);var u=Zt(e)?0:gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),f=We;const w=ii(t,J.__wbindgen_export_0),$=We,_=gt(r,J.__wbindgen_export_0,J.__wbindgen_export_1),O=We;var d=Zt(o)?0:gt(o,J.__wbindgen_export_0,J.__wbindgen_export_1),h=We,v=Zt(c)?0:gt(c,J.__wbindgen_export_0,J.__wbindgen_export_1),g=We;J.create_sym_key_ttlv_request(y,u,f,w,$,Zt(n)?4294967297:n>>>0,_,O,a,d,h,v,g);var b=Ke().getInt32(y+0,!0),S=Ke().getInt32(y+4,!0),C=Ke().getInt32(y+8,!0);if(C)throw wt(S);return wt(b)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function Gre(e,t,n,r,a,o){try{const C=J.__wbindgen_add_to_stack_pointer(-16),y=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),w=We;var c=Zt(t)?0:gt(t,J.__wbindgen_export_0,J.__wbindgen_export_1),u=We,f=Zt(n)?0:gt(n,J.__wbindgen_export_0,J.__wbindgen_export_1),d=We;const $=ii(r,J.__wbindgen_export_0),_=We;var h=Zt(o)?0:gt(o,J.__wbindgen_export_0,J.__wbindgen_export_1),v=We;J.create_secret_data_ttlv_request(C,y,w,c,u,f,d,$,_,a,h,v);var g=Ke().getInt32(C+0,!0),b=Ke().getInt32(C+4,!0),S=Ke().getInt32(C+8,!0);if(S)throw wt(b);return wt(g)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function GC(e){try{const a=J.__wbindgen_add_to_stack_pointer(-16),o=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),c=We;J.parse_create_ttlv_response(a,o,c);var t=Ke().getInt32(a+0,!0),n=Ke().getInt32(a+4,!0),r=Ke().getInt32(a+8,!0);if(r)throw wt(n);return wt(t)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function Wr(e,t){const n=t(e.length*1,1)>>>0;return Gd().set(e,n/1),We=e.length,n}function Xre(e,t,n,r){try{const d=J.__wbindgen_add_to_stack_pointer(-16),h=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),v=We,g=Wr(t,J.__wbindgen_export_0),b=We;var a=Zt(n)?0:Wr(n,J.__wbindgen_export_0),o=We;J.decrypt_sym_ttlv_request(d,h,v,g,b,a,o,Mn(r));var c=Ke().getInt32(d+0,!0),u=Ke().getInt32(d+4,!0),f=Ke().getInt32(d+8,!0);if(f)throw wt(u);return wt(c)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function Qre(e,t,n,r){try{const u=J.__wbindgen_add_to_stack_pointer(-16),f=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),d=We,h=Wr(t,J.__wbindgen_export_0),v=We;J.decrypt_rsa_ttlv_request(u,f,d,h,v,Mn(n),Mn(r));var a=Ke().getInt32(u+0,!0),o=Ke().getInt32(u+4,!0),c=Ke().getInt32(u+8,!0);if(c)throw wt(o);return wt(a)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function Zre(e,t){try{const o=J.__wbindgen_add_to_stack_pointer(-16),c=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),u=We,f=Wr(t,J.__wbindgen_export_0),d=We;J.decrypt_ec_ttlv_request(o,c,u,f,d);var n=Ke().getInt32(o+0,!0),r=Ke().getInt32(o+4,!0),a=Ke().getInt32(o+8,!0);if(a)throw wt(r);return wt(n)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function qf(e){try{const a=J.__wbindgen_add_to_stack_pointer(-16),o=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),c=We;J.parse_decrypt_ttlv_response(a,o,c);var t=Ke().getInt32(a+0,!0),n=Ke().getInt32(a+4,!0),r=Ke().getInt32(a+8,!0);if(r)throw wt(n);return wt(t)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function Jre(e,t){try{const o=J.__wbindgen_add_to_stack_pointer(-16),c=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),u=We;J.destroy_ttlv_request(o,c,u,t);var n=Ke().getInt32(o+0,!0),r=Ke().getInt32(o+4,!0),a=Ke().getInt32(o+8,!0);if(a)throw wt(r);return wt(n)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function eae(e){try{const a=J.__wbindgen_add_to_stack_pointer(-16),o=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),c=We;J.parse_destroy_ttlv_response(a,o,c);var t=Ke().getInt32(a+0,!0),n=Ke().getInt32(a+4,!0),r=Ke().getInt32(a+8,!0);if(r)throw wt(n);return wt(t)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function tae(e,t,n,r,a,o){try{const C=J.__wbindgen_add_to_stack_pointer(-16),y=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),w=We;var c=Zt(t)?0:gt(t,J.__wbindgen_export_0,J.__wbindgen_export_1),u=We;const $=Wr(n,J.__wbindgen_export_0),_=We;var f=Zt(r)?0:Wr(r,J.__wbindgen_export_0),d=We,h=Zt(a)?0:Wr(a,J.__wbindgen_export_0),v=We;J.encrypt_sym_ttlv_request(C,y,w,c,u,$,_,f,d,h,v,Mn(o));var g=Ke().getInt32(C+0,!0),b=Ke().getInt32(C+4,!0),S=Ke().getInt32(C+8,!0);if(S)throw wt(b);return wt(g)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function nae(e,t,n,r){try{const u=J.__wbindgen_add_to_stack_pointer(-16),f=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),d=We,h=Wr(t,J.__wbindgen_export_0),v=We;J.encrypt_rsa_ttlv_request(u,f,d,h,v,Mn(n),Mn(r));var a=Ke().getInt32(u+0,!0),o=Ke().getInt32(u+4,!0),c=Ke().getInt32(u+8,!0);if(c)throw wt(o);return wt(a)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function rae(e,t){try{const o=J.__wbindgen_add_to_stack_pointer(-16),c=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),u=We,f=Wr(t,J.__wbindgen_export_0),d=We;J.encrypt_ec_ttlv_request(o,c,u,f,d);var n=Ke().getInt32(o+0,!0),r=Ke().getInt32(o+4,!0),a=Ke().getInt32(o+8,!0);if(a)throw wt(r);return wt(n)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function Yf(e){try{const a=J.__wbindgen_add_to_stack_pointer(-16),o=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),c=We;J.parse_encrypt_ttlv_response(a,o,c);var t=Ke().getInt32(a+0,!0),n=Ke().getInt32(a+4,!0),r=Ke().getInt32(a+8,!0);if(r)throw wt(n);return wt(t)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function sP(e,t,n,r,a,o){try{const C=J.__wbindgen_add_to_stack_pointer(-16),y=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),w=We,$=gt(n,J.__wbindgen_export_0,J.__wbindgen_export_1),_=We;var c=Zt(r)?0:gt(r,J.__wbindgen_export_0,J.__wbindgen_export_1),u=We,f=Zt(a)?0:gt(a,J.__wbindgen_export_0,J.__wbindgen_export_1),d=We,h=Zt(o)?0:gt(o,J.__wbindgen_export_0,J.__wbindgen_export_1),v=We;J.export_ttlv_request(C,y,w,t,$,_,c,u,f,d,h,v);var g=Ke().getInt32(C+0,!0),b=Ke().getInt32(C+4,!0),S=Ke().getInt32(C+8,!0);if(S)throw wt(b);return wt(g)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function aae(e,t){try{const o=J.__wbindgen_add_to_stack_pointer(-16),c=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),u=We,f=gt(t,J.__wbindgen_export_0,J.__wbindgen_export_1),d=We;J.parse_export_ttlv_response(o,c,u,f,d);var n=Ke().getInt32(o+0,!0),r=Ke().getInt32(o+4,!0),a=Ke().getInt32(o+8,!0);if(a)throw wt(r);return wt(n)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function iae(e,t,n,r,a,o,c,u,f,d,h){try{const P=J.__wbindgen_add_to_stack_pointer(-16);var v=Zt(e)?0:gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),g=We;const A=Wr(t,J.__wbindgen_export_0),F=We,H=gt(n,J.__wbindgen_export_0,J.__wbindgen_export_1),k=We;var b=Zt(r)?0:gt(r,J.__wbindgen_export_0,J.__wbindgen_export_1),S=We,C=Zt(a)?0:gt(a,J.__wbindgen_export_0,J.__wbindgen_export_1),y=We,w=Zt(o)?0:gt(o,J.__wbindgen_export_0,J.__wbindgen_export_1),$=We;const L=ii(f,J.__wbindgen_export_0),T=We;var _=Zt(d)?0:ii(d,J.__wbindgen_export_0),O=We,I=Zt(h)?0:gt(h,J.__wbindgen_export_0,J.__wbindgen_export_1),j=We;J.import_ttlv_request(P,v,g,A,F,H,k,b,S,C,y,w,$,c,u,L,T,_,O,I,j);var M=Ke().getInt32(P+0,!0),D=Ke().getInt32(P+4,!0),N=Ke().getInt32(P+8,!0);if(N)throw wt(D);return wt(M)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function XC(e){try{const a=J.__wbindgen_add_to_stack_pointer(-16),o=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),c=We;J.parse_import_ttlv_response(a,o,c);var t=Ke().getInt32(a+0,!0),n=Ke().getInt32(a+4,!0),r=Ke().getInt32(a+8,!0);if(r)throw wt(n);return wt(t)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function oae(e,t){try{const o=J.__wbindgen_add_to_stack_pointer(-16),c=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),u=We,f=gt(t,J.__wbindgen_export_0,J.__wbindgen_export_1),d=We;J.revoke_ttlv_request(o,c,u,f,d);var n=Ke().getInt32(o+0,!0),r=Ke().getInt32(o+4,!0),a=Ke().getInt32(o+8,!0);if(a)throw wt(r);return wt(n)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function lae(e){try{const a=J.__wbindgen_add_to_stack_pointer(-16),o=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),c=We;J.parse_revoke_ttlv_response(a,o,c);var t=Ke().getInt32(a+0,!0),n=Ke().getInt32(a+4,!0),r=Ke().getInt32(a+8,!0);if(r)throw wt(n);return wt(t)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function sae(e,t,n,r){try{const d=J.__wbindgen_add_to_stack_pointer(-16),h=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),v=We,g=ii(t,J.__wbindgen_export_0),b=We;var a=Zt(r)?0:gt(r,J.__wbindgen_export_0,J.__wbindgen_export_1),o=We;J.create_cc_master_keypair_ttlv_request(d,h,v,g,b,n,a,o);var c=Ke().getInt32(d+0,!0),u=Ke().getInt32(d+4,!0),f=Ke().getInt32(d+8,!0);if(f)throw wt(u);return wt(c)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function cae(e,t,n,r,a){try{const h=J.__wbindgen_add_to_stack_pointer(-16),v=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),g=We,b=gt(t,J.__wbindgen_export_0,J.__wbindgen_export_1),S=We,C=ii(n,J.__wbindgen_export_0),y=We;var o=Zt(a)?0:gt(a,J.__wbindgen_export_0,J.__wbindgen_export_1),c=We;J.create_cc_user_key_ttlv_request(h,v,g,b,S,C,y,r,o,c);var u=Ke().getInt32(h+0,!0),f=Ke().getInt32(h+4,!0),d=Ke().getInt32(h+8,!0);if(d)throw wt(f);return wt(u)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function uae(e,t,n,r){try{const d=J.__wbindgen_add_to_stack_pointer(-16),h=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),v=We,g=gt(t,J.__wbindgen_export_0,J.__wbindgen_export_1),b=We,S=Wr(n,J.__wbindgen_export_0),C=We;var a=Zt(r)?0:Wr(r,J.__wbindgen_export_0),o=We;J.encrypt_cc_ttlv_request(d,h,v,g,b,S,C,a,o);var c=Ke().getInt32(d+0,!0),u=Ke().getInt32(d+4,!0),f=Ke().getInt32(d+8,!0);if(f)throw wt(u);return wt(c)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function dae(e,t,n){try{const f=J.__wbindgen_add_to_stack_pointer(-16),d=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),h=We,v=Wr(t,J.__wbindgen_export_0),g=We;var r=Zt(n)?0:Wr(n,J.__wbindgen_export_0),a=We;J.decrypt_cc_ttlv_request(f,d,h,v,g,r,a);var o=Ke().getInt32(f+0,!0),c=Ke().getInt32(f+4,!0),u=Ke().getInt32(f+8,!0);if(u)throw wt(c);return wt(o)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function fae(e,t,n,r,a,o,c,u,f,d){try{const N=J.__wbindgen_add_to_stack_pointer(-16);var h=Zt(e)?0:gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),v=We;const P=Wr(t,J.__wbindgen_export_0),A=We,F=gt(n,J.__wbindgen_export_0,J.__wbindgen_export_1),H=We;var g=Zt(r)?0:gt(r,J.__wbindgen_export_0,J.__wbindgen_export_1),b=We,S=Zt(a)?0:gt(a,J.__wbindgen_export_0,J.__wbindgen_export_1),C=We,y=Zt(o)?0:gt(o,J.__wbindgen_export_0,J.__wbindgen_export_1),w=We,$=Zt(c)?0:gt(c,J.__wbindgen_export_0,J.__wbindgen_export_1),_=We;const k=ii(f,J.__wbindgen_export_0),L=We;var O=Zt(d)?0:ii(d,J.__wbindgen_export_0),I=We;J.import_certificate_ttlv_request(N,h,v,P,A,F,H,g,b,S,C,y,w,$,_,u,k,L,O,I);var j=Ke().getInt32(N+0,!0),M=Ke().getInt32(N+4,!0),D=Ke().getInt32(N+8,!0);if(D)throw wt(M);return wt(j)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function mae(e,t,n){try{const f=J.__wbindgen_add_to_stack_pointer(-16),d=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),h=We,v=gt(t,J.__wbindgen_export_0,J.__wbindgen_export_1),g=We;var r=Zt(n)?0:gt(n,J.__wbindgen_export_0,J.__wbindgen_export_1),a=We;J.export_certificate_ttlv_request(f,d,h,v,g,r,a);var o=Ke().getInt32(f+0,!0),c=Ke().getInt32(f+4,!0),u=Ke().getInt32(f+8,!0);if(u)throw wt(c);return wt(o)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function hae(e,t){try{const o=J.__wbindgen_add_to_stack_pointer(-16),c=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),u=We,f=gt(t,J.__wbindgen_export_0,J.__wbindgen_export_1),d=We;J.parse_export_certificate_ttlv_response(o,c,u,f,d);var n=Ke().getInt32(o+0,!0),r=Ke().getInt32(o+4,!0),a=Ke().getInt32(o+8,!0);if(a)throw wt(r);return wt(n)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function vae(e,t){try{const d=J.__wbindgen_add_to_stack_pointer(-16);var n=Zt(e)?0:gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),r=We,a=Zt(t)?0:gt(t,J.__wbindgen_export_0,J.__wbindgen_export_1),o=We;J.validate_certificate_ttlv_request(d,n,r,a,o);var c=Ke().getInt32(d+0,!0),u=Ke().getInt32(d+4,!0),f=Ke().getInt32(d+8,!0);if(f)throw wt(u);return wt(c)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function gae(e){try{const a=J.__wbindgen_add_to_stack_pointer(-16),o=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),c=We;J.parse_validate_ttlv_response(a,o,c);var t=Ke().getInt32(a+0,!0),n=Ke().getInt32(a+4,!0),r=Ke().getInt32(a+8,!0);if(r)throw wt(n);return wt(t)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function pae(e,t,n,r){try{const d=J.__wbindgen_add_to_stack_pointer(-16),h=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),v=We,g=Wr(t,J.__wbindgen_export_0),b=We;var a=Zt(n)?0:Wr(n,J.__wbindgen_export_0),o=We;const S=gt(r,J.__wbindgen_export_0,J.__wbindgen_export_1),C=We;J.encrypt_certificate_ttlv_request(d,h,v,g,b,a,o,S,C);var c=Ke().getInt32(d+0,!0),u=Ke().getInt32(d+4,!0),f=Ke().getInt32(d+8,!0);if(f)throw wt(u);return wt(c)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function bae(e,t,n,r){try{const d=J.__wbindgen_add_to_stack_pointer(-16),h=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),v=We,g=Wr(t,J.__wbindgen_export_0),b=We;var a=Zt(n)?0:Wr(n,J.__wbindgen_export_0),o=We;const S=gt(r,J.__wbindgen_export_0,J.__wbindgen_export_1),C=We;J.decrypt_certificate_ttlv_request(d,h,v,g,b,a,o,S,C);var c=Ke().getInt32(d+0,!0),u=Ke().getInt32(d+4,!0),f=Ke().getInt32(d+8,!0);if(f)throw wt(u);return wt(c)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function yae(e,t,n,r,a,o,c,u,f,d,h,v,g){try{const G=J.__wbindgen_add_to_stack_pointer(-16);var b=Zt(e)?0:gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),S=We,C=Zt(t)?0:gt(t,J.__wbindgen_export_0,J.__wbindgen_export_1),y=We,w=Zt(n)?0:Wr(n,J.__wbindgen_export_0),$=We,_=Zt(r)?0:gt(r,J.__wbindgen_export_0,J.__wbindgen_export_1),O=We,I=Zt(a)?0:gt(a,J.__wbindgen_export_0,J.__wbindgen_export_1),j=We,M=Zt(c)?0:gt(c,J.__wbindgen_export_0,J.__wbindgen_export_1),D=We,N=Zt(u)?0:gt(u,J.__wbindgen_export_0,J.__wbindgen_export_1),P=We,A=Zt(f)?0:gt(f,J.__wbindgen_export_0,J.__wbindgen_export_1),F=We,H=Zt(d)?0:gt(d,J.__wbindgen_export_0,J.__wbindgen_export_1),k=We,L=Zt(v)?0:Wr(v,J.__wbindgen_export_0),T=We;const B=ii(g,J.__wbindgen_export_0),U=We;J.certify_ttlv_request(G,b,S,C,y,w,$,_,O,I,j,o,M,D,N,P,A,F,H,k,h,L,T,B,U);var z=Ke().getInt32(G+0,!0),V=Ke().getInt32(G+4,!0),q=Ke().getInt32(G+8,!0);if(q)throw wt(V);return wt(z)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function Sae(e){try{const a=J.__wbindgen_add_to_stack_pointer(-16),o=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),c=We;J.parse_certify_ttlv_response(a,o,c);var t=Ke().getInt32(a+0,!0),n=Ke().getInt32(a+4,!0),r=Ke().getInt32(a+8,!0);if(r)throw wt(n);return wt(t)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function xae(e){try{const a=J.__wbindgen_add_to_stack_pointer(-16),o=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),c=We;J.get_attributes_ttlv_request(a,o,c);var t=Ke().getInt32(a+0,!0),n=Ke().getInt32(a+4,!0),r=Ke().getInt32(a+8,!0);if(r)throw wt(n);return wt(t)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function Cae(e,t){try{const o=J.__wbindgen_add_to_stack_pointer(-16),c=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),u=We,f=ii(t,J.__wbindgen_export_0),d=We;J.parse_get_attributes_ttlv_response(o,c,u,f,d);var n=Ke().getInt32(o+0,!0),r=Ke().getInt32(o+4,!0),a=Ke().getInt32(o+8,!0);if(a)throw wt(r);return wt(n)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function wae(e,t,n){try{const c=J.__wbindgen_add_to_stack_pointer(-16),u=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),f=We,d=gt(t,J.__wbindgen_export_0,J.__wbindgen_export_1),h=We,v=gt(n,J.__wbindgen_export_0,J.__wbindgen_export_1),g=We;J.set_attribute_ttlv_request(c,u,f,d,h,v,g);var r=Ke().getInt32(c+0,!0),a=Ke().getInt32(c+4,!0),o=Ke().getInt32(c+8,!0);if(o)throw wt(a);return wt(r)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function $ae(e){try{const a=J.__wbindgen_add_to_stack_pointer(-16),o=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),c=We;J.parse_set_attribute_ttlv_response(a,o,c);var t=Ke().getInt32(a+0,!0),n=Ke().getInt32(a+4,!0),r=Ke().getInt32(a+8,!0);if(r)throw wt(n);return wt(t)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function _ae(e,t){try{const o=J.__wbindgen_add_to_stack_pointer(-16),c=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),u=We,f=gt(t,J.__wbindgen_export_0,J.__wbindgen_export_1),d=We;J.delete_attribute_ttlv_request(o,c,u,f,d);var n=Ke().getInt32(o+0,!0),r=Ke().getInt32(o+4,!0),a=Ke().getInt32(o+8,!0);if(a)throw wt(r);return wt(n)}finally{J.__wbindgen_add_to_stack_pointer(16)}}function Eae(e){try{const a=J.__wbindgen_add_to_stack_pointer(-16),o=gt(e,J.__wbindgen_export_0,J.__wbindgen_export_1),c=We;J.parse_delete_attribute_ttlv_response(a,o,c);var t=Ke().getInt32(a+0,!0),n=Ke().getInt32(a+4,!0),r=Ke().getInt32(a+8,!0);if(r)throw wt(n);return wt(t)}finally{J.__wbindgen_add_to_stack_pointer(16)}}async function Oae(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 Iae(){const e={};return e.wbg={},e.wbg.__wbg_String_8f0eb39a4a4c2f66=function(t,n){const r=String($n(n)),a=gt(r,J.__wbindgen_export_0,J.__wbindgen_export_1),o=We;Ke().setInt32(t+4,o,!0),Ke().setInt32(t+0,a,!0)},e.wbg.__wbg_buffer_609cc3eee51ed158=function(t){const n=$n(t).buffer;return Mn(n)},e.wbg.__wbg_call_672a4d21634d4a24=function(){return Id(function(t,n){const r=$n(t).call($n(n));return Mn(r)},arguments)},e.wbg.__wbg_call_7cccdd69e0791ae2=function(){return Id(function(t,n,r){const a=$n(t).call($n(n),$n(r));return Mn(a)},arguments)},e.wbg.__wbg_crypto_574e78ad8b13b65f=function(t){const n=$n(t).crypto;return Mn(n)},e.wbg.__wbg_entries_3265d4158b33e5dc=function(t){const n=Object.entries($n(t));return Mn(n)},e.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e=function(){return Id(function(t,n){$n(t).getRandomValues($n(n))},arguments)},e.wbg.__wbg_get_b9b93047fe3cf45b=function(t,n){const r=$n(t)[n>>>0];return Mn(r)},e.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc=function(t){let n;try{n=$n(t)instanceof ArrayBuffer}catch{n=!1}return n},e.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9=function(t){let n;try{n=$n(t)instanceof Uint8Array}catch{n=!1}return n},e.wbg.__wbg_length_a446193dc22c12f8=function(t){return $n(t).length},e.wbg.__wbg_length_e2d2a49132c1b256=function(t){return $n(t).length},e.wbg.__wbg_msCrypto_a61aeb35a24c1329=function(t){const n=$n(t).msCrypto;return Mn(n)},e.wbg.__wbg_new_405e22f390576ce2=function(){const t=new Object;return Mn(t)},e.wbg.__wbg_new_5e0be73521bc8c17=function(){return Mn(new Map)},e.wbg.__wbg_new_78feb108b6472713=function(){const t=new Array;return Mn(t)},e.wbg.__wbg_new_a12002a7f91c75be=function(t){const n=new Uint8Array($n(t));return Mn(n)},e.wbg.__wbg_newnoargs_105ed471475aaf50=function(t,n){const r=new Function(Mh(t,n));return Mn(r)},e.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(t,n,r){const a=new Uint8Array($n(t),n>>>0,r>>>0);return Mn(a)},e.wbg.__wbg_newwithlength_a381634e90c276d4=function(t){const n=new Uint8Array(t>>>0);return Mn(n)},e.wbg.__wbg_node_905d3e251edff8a2=function(t){const n=$n(t).node;return Mn(n)},e.wbg.__wbg_process_dc0fbacc7c1c06f7=function(t){const n=$n(t).process;return Mn(n)},e.wbg.__wbg_randomFillSync_ac0988aba3254290=function(){return Id(function(t,n){$n(t).randomFillSync(wt(n))},arguments)},e.wbg.__wbg_require_60cc747a6bc5215a=function(){return Id(function(){const t=module.require;return Mn(t)},arguments)},e.wbg.__wbg_set_37837023f3d740e8=function(t,n,r){$n(t)[n>>>0]=wt(r)},e.wbg.__wbg_set_3f1d0b984ed272ed=function(t,n,r){$n(t)[wt(n)]=wt(r)},e.wbg.__wbg_set_65595bdd868b3009=function(t,n,r){$n(t).set($n(n),r>>>0)},e.wbg.__wbg_set_8fc6bf8a5b1071d1=function(t,n,r){const a=$n(t).set($n(n),$n(r));return Mn(a)},e.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07=function(){const t=typeof global>"u"?null:global;return Zt(t)?0:Mn(t)},e.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0=function(){const t=typeof globalThis>"u"?null:globalThis;return Zt(t)?0:Mn(t)},e.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819=function(){const t=typeof self>"u"?null:self;return Zt(t)?0:Mn(t)},e.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40=function(){const t=typeof window>"u"?null:window;return Zt(t)?0:Mn(t)},e.wbg.__wbg_subarray_aa9065fa9dc5df96=function(t,n,r){const a=$n(t).subarray(n>>>0,r>>>0);return Mn(a)},e.wbg.__wbg_versions_c01dfd4722a88165=function(t){const n=$n(t).versions;return Mn(n)},e.wbg.__wbindgen_bigint_from_i64=function(t){return Mn(t)},e.wbg.__wbindgen_bigint_from_u64=function(t){const n=BigInt.asUintN(64,t);return Mn(n)},e.wbg.__wbindgen_boolean_get=function(t){const n=$n(t);return typeof n=="boolean"?n?1:0:2},e.wbg.__wbindgen_debug_string=function(t,n){const r=HS($n(n)),a=gt(r,J.__wbindgen_export_0,J.__wbindgen_export_1),o=We;Ke().setInt32(t+4,o,!0),Ke().setInt32(t+0,a,!0)},e.wbg.__wbindgen_error_new=function(t,n){const r=new Error(Mh(t,n));return Mn(r)},e.wbg.__wbindgen_is_function=function(t){return typeof $n(t)=="function"},e.wbg.__wbindgen_is_null=function(t){return $n(t)===null},e.wbg.__wbindgen_is_object=function(t){const n=$n(t);return typeof n=="object"&&n!==null},e.wbg.__wbindgen_is_string=function(t){return typeof $n(t)=="string"},e.wbg.__wbindgen_is_undefined=function(t){return $n(t)===void 0},e.wbg.__wbindgen_jsval_loose_eq=function(t,n){return $n(t)==$n(n)},e.wbg.__wbindgen_memory=function(){const t=J.memory;return Mn(t)},e.wbg.__wbindgen_number_get=function(t,n){const r=$n(n),a=typeof r=="number"?r:void 0;Ke().setFloat64(t+8,Zt(a)?0:a,!0),Ke().setInt32(t+0,!Zt(a),!0)},e.wbg.__wbindgen_number_new=function(t){return Mn(t)},e.wbg.__wbindgen_object_clone_ref=function(t){const n=$n(t);return Mn(n)},e.wbg.__wbindgen_object_drop_ref=function(t){wt(t)},e.wbg.__wbindgen_string_get=function(t,n){const r=$n(n),a=typeof r=="string"?r:void 0;var o=Zt(a)?0:gt(a,J.__wbindgen_export_0,J.__wbindgen_export_1),c=We;Ke().setInt32(t+4,c,!0),Ke().setInt32(t+0,o,!0)},e.wbg.__wbindgen_string_new=function(t,n){const r=Mh(t,n);return Mn(r)},e.wbg.__wbindgen_throw=function(t,n){throw new Error(Mh(t,n))},e}function Rae(e,t){return J=e.exports,cP.__wbindgen_wasm_module=t,vs=null,Bd=null,J}async function cP(e){if(J!==void 0)return J;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-AenKLUQd.wasm",import.meta.url));const t=Iae();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:r}=await Oae(await e,t);return Rae(n,r)}const{Title:Nae}=Wl,{Option:Mae}=Rt,jae=[{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"}],Tae=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{serverUrl:o,idToken:c}=Dn(),u=s.useRef(null);s.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 v=_ae(h,d.attribute_name),g=await dr(v,c,o);if(g){const b=Eae(g);n(`Attribute '${d.attribute_name}' has been deleted for ${b.UniqueIdentifier}`)}}catch(v){n(`Error deleting attribute: ${v}`),console.error("Error deleting attribute:",v)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx(Nae,{level:2,children:"Delete KMIP Object Attribute"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("div",{children:"Delete a single attribute from a KMIP object by specifying the object ID or tags."}),x.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."})]}),x.jsx(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{title:"Object Identification",children:[x.jsx("div",{className:"mb-5",children:"Specify either the Object ID or one or more tags to identify the object."}),x.jsx(fe.Item,{name:"id",label:"Object ID",help:"The unique identifier of the cryptographic object",children:x.jsx(yt,{placeholder:"Enter object ID"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Tags to use to retrieve the object when no object ID is specified",children:x.jsx(Rt,{mode:"tags",style:{width:"100%"},placeholder:"Enter tags",tokenSeparators:[","]})})]}),x.jsxs(rt,{title:"Attribute Deletion",children:[x.jsx("div",{className:"mb-5",children:"Select the attribute to delete from the selected KMIP object."}),x.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:x.jsx(Rt,{placeholder:"Select attribute name",children:jae.map(d=>x.jsx(Mae,{value:d.value,children:d.label},d.value))})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",danger:!0,htmlType:"submit",loading:r,className:"w-full font-medium",children:"Delete Attribute"})})]})}),t&&x.jsx(rt,{children:x.jsx("div",{ref:u,children:t})})]})},uP=s.createContext({});function dP(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=dP(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Dae(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=dP(e))&&(r&&(r+=" "),r+=t);return r}const Pae={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"},fa=Math.round;function ly(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 aR=(e,t,n)=>n===0?e:e/100;function Rd(e,t){const n=t||255;return e>n?n:e<0?0:e}class Hc{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(t){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=Pae[r.toLowerCase()];o&&this.fromHexString(parseInt(o,36).toString(16).padStart(6,"0"))}}else if(t instanceof Hc)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=Rd(t.r),this.g=Rd(t.g),this.b=Rd(t.b),this.a=typeof t.a=="number"?Rd(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 c=o/255;return c<=.03928?c/12.92:Math.pow((c+.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=fa(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],c={r:fa(o("r")),g:fa(o("g")),b:fa(o("b")),a:fa(o("a")*100)/100};return this._c(c)}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=>fa((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=fa(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=fa(this.getSaturation()*100),r=fa(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]=Rd(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 g=fa(r*255);this.r=g,this.g=g,this.b=g}let o=0,c=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,c=h):f>=1&&f<2?(o=h,c=d):f>=2&&f<3?(c=d,u=h):f>=3&&f<4?(c=h,u=d):f>=4&&f<5?(o=h,u=d):f>=5&&f<6&&(o=d,u=h);const v=r-d/2;this.r=fa((o+v)*255),this.g=fa((c+v)*255),this.b=fa((u+v)*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=fa(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const c=t/60,u=Math.floor(c),f=c-u,d=fa(r*(1-n)*255),h=fa(r*(1-n*f)*255),v=fa(r*(1-n*(1-f))*255);switch(u){case 0:this.g=v,this.b=d;break;case 1:this.r=h,this.b=d;break;case 2:this.r=d,this.b=v;break;case 3:this.r=d,this.g=h;break;case 4:this.r=v,this.g=d;break;case 5:default:this.g=d,this.b=h;break}}fromHsvString(t){const n=ly(t,aR);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=ly(t,aR);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=ly(t,(r,a)=>a.includes("%")?fa(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const jh=2,iR=.16,kae=.05,Aae=.05,zae=.15,fP=5,mP=4,Lae=[{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 oR(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-jh*t:Math.round(e.h)+jh*t:r=n?Math.round(e.h)+jh*t:Math.round(e.h)-jh*t,r<0?r+=360:r>=360&&(r-=360),r}function lR(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-iR*t:t===mP?r=e.s+iR:r=e.s+kae*t,r>1&&(r=1),n&&t===fP&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function sR(e,t,n){let r;return n?r=e.v+Aae*t:r=e.v-zae*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Hae(e,t={}){const n=[],r=new Hc(e),a=r.toHsv();for(let o=fP;o>0;o-=1){const c=new Hc({h:oR(a,o,!0),s:lR(a,o,!0),v:sR(a,o,!0)});n.push(c)}n.push(r);for(let o=1;o<=mP;o+=1){const c=new Hc({h:oR(a,o),s:lR(a,o),v:sR(a,o)});n.push(c)}return t.theme==="dark"?Lae.map(({index:o,amount:c})=>new Hc(t.backgroundColor||"#141414").mix(n[o],c).toHexString()):n.map(o=>o.toHexString())}const BS=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];BS.primary=BS[5];function Bae(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Fae(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 cR="data-rc-order",uR="data-rc-priority",Vae="rc-util-key",FS=new Map;function hP({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:Vae}function QC(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Kae(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ZC(e){return Array.from((FS.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function vP(e,t={}){if(!Bae())return null;const{csp:n,prepend:r,priority:a=0}=t,o=Kae(r),c=o==="prependQueue",u=document.createElement("style");u.setAttribute(cR,o),c&&a&&u.setAttribute(uR,`${a}`),n?.nonce&&(u.nonce=n?.nonce),u.innerHTML=e;const f=QC(t),{firstChild:d}=f;if(r){if(c){const h=(t.styles||ZC(f)).filter(v=>{if(!["prepend","prependQueue"].includes(v.getAttribute(cR)))return!1;const g=Number(v.getAttribute(uR)||0);return a>=g});if(h.length)return f.insertBefore(u,h[h.length-1].nextSibling),u}f.insertBefore(u,d)}else f.appendChild(u);return u}function Uae(e,t={}){let{styles:n}=t;return n||=ZC(QC(t)),n.find(r=>r.getAttribute(hP(t))===e)}function Wae(e,t){const n=FS.get(e);if(!n||!Fae(document,n)){const r=vP("",t),{parentNode:a}=r;FS.set(e,a),e.removeChild(r)}}function qae(e,t,n={}){const r=QC(n),a=ZC(r),o={...n,styles:a};Wae(r,o);const c=Uae(t,o);if(c)return o.csp?.nonce&&c.nonce!==o.csp?.nonce&&(c.nonce=o.csp?.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;const u=vP(e,o);return u.setAttribute(hP(o),t),u}function gP(e){return e?.getRootNode?.()}function Yae(e){return gP(e)instanceof ShadowRoot}function Gae(e){return Yae(e)?gP(e):null}let VS={};const Xae=e=>{};function Qae(e,t){}function Zae(e,t){}function Jae(){VS={}}function pP(e,t,n){!t&&!VS[n]&&(e(!1,n),VS[n]=!0)}function Tg(e,t){pP(Qae,e,t)}function eie(e,t){pP(Zae,e,t)}Tg.preMessage=Xae;Tg.resetWarned=Jae;Tg.noteOnce=eie;function tie(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function nie(e,t){Tg(e,`[@ant-design/icons] ${t}`)}function dR(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function fR(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[tie(n)]=r}return t},{})}function KS(e,t,n){return n?xe.createElement(e.tag,{key:t,...fR(e.attrs),...n},(e.children||[]).map((r,a)=>KS(r,`${t}-${e.tag}-${a}`))):xe.createElement(e.tag,{key:t,...fR(e.attrs)},(e.children||[]).map((r,a)=>KS(r,`${t}-${e.tag}-${a}`)))}function bP(e){return Hae(e)[0]}function yP(e){return e?Array.isArray(e)?e:[e]:[]}const rie=`
.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;
  vertical-align: inherit;
}

.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);
  }
}
`,aie=e=>{const{csp:t,prefixCls:n,layer:r}=s.useContext(uP);let a=rie;n&&(a=a.replace(/anticon/g,n)),r&&(a=`@layer ${r} {
${a}
}`),s.useEffect(()=>{const o=e.current,c=Gae(o);qae(a,"@ant-design-icons",{prepend:!r,csp:t,attachTo:c})},[])},Qd={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function iie({primaryColor:e,secondaryColor:t}){Qd.primaryColor=e,Qd.secondaryColor=t||bP(e),Qd.calculated=!!t}function oie(){return{...Qd}}const Eu=e=>{const{icon:t,className:n,onClick:r,style:a,primaryColor:o,secondaryColor:c,...u}=e,f=s.useRef(null);let d=Qd;if(o&&(d={primaryColor:o,secondaryColor:c||bP(o)}),aie(f),nie(dR(t),`icon should be icon definiton, but got ${t}`),!dR(t))return null;let h=t;return h&&typeof h.icon=="function"&&(h={...h,icon:h.icon(d.primaryColor,d.secondaryColor)}),KS(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})};Eu.displayName="IconReact";Eu.getTwoToneColors=oie;Eu.setTwoToneColors=iie;function SP(e){const[t,n]=yP(e);return Eu.setTwoToneColors({primaryColor:t,secondaryColor:n})}function lie(){const e=Eu.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function US(){return US=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},US.apply(this,arguments)}SP(BS.primary);const Qi=s.forwardRef((e,t)=>{const{className:n,icon:r,spin:a,rotate:o,tabIndex:c,onClick:u,twoToneColor:f,...d}=e,{prefixCls:h="anticon",rootClassName:v}=s.useContext(uP),g=Dae(v,h,{[`${h}-${r.name}`]:!!r.name,[`${h}-spin`]:!!a||r.name==="loading"},n);let b=c;b===void 0&&u&&(b=-1);const S=o?{msTransform:`rotate(${o}deg)`,transform:`rotate(${o}deg)`}:void 0,[C,y]=yP(f);return s.createElement("span",US({role:"img","aria-label":r.name},d,{ref:t,tabIndex:b,onClick:u,className:g}),s.createElement(Eu,{icon:r,primaryColor:C,secondaryColor:y,style:S}))});Qi.getTwoToneColor=lie;Qi.setTwoToneColor=SP;function WS(){return WS=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},WS.apply(this,arguments)}const sie=(e,t)=>s.createElement(Qi,WS({},e,{ref:t,icon:HD})),cie=s.forwardRef(sie);var uie={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"};function qS(){return qS=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},qS.apply(this,arguments)}const die=(e,t)=>s.createElement(Qi,qS({},e,{ref:t,icon:uie})),fie=s.forwardRef(die);var mie={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"};function YS(){return YS=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},YS.apply(this,arguments)}const hie=(e,t)=>s.createElement(Qi,YS({},e,{ref:t,icon:mie})),vie=s.forwardRef(hie);function GS(){return GS=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},GS.apply(this,arguments)}const gie=(e,t)=>s.createElement(Qi,GS({},e,{ref:t,icon:FM})),pie=s.forwardRef(gie);var bie={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"};function XS(){return XS=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},XS.apply(this,arguments)}const yie=(e,t)=>s.createElement(Qi,XS({},e,{ref:t,icon:bie})),Sie=s.forwardRef(yie);var xie={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"};function QS(){return QS=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},QS.apply(this,arguments)}const Cie=(e,t)=>s.createElement(Qi,QS({},e,{ref:t,icon:xie})),wie=s.forwardRef(Cie);var $ie={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"};function ZS(){return ZS=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},ZS.apply(this,arguments)}const _ie=(e,t)=>s.createElement(Qi,ZS({},e,{ref:t,icon:$ie})),Eie=s.forwardRef(_ie);var Oie={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"};function JS(){return JS=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},JS.apply(this,arguments)}const Iie=(e,t)=>s.createElement(Qi,JS({},e,{ref:t,icon:Oie})),xP=s.forwardRef(Iie);function ex(){return ex=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},ex.apply(this,arguments)}const Rie=(e,t)=>s.createElement(Qi,ex({},e,{ref:t,icon:nQ})),CP=s.forwardRef(Rie),{Title:mR}=Wl,Nie=({data:e})=>{const t=()=>{if(e){const o=Object.fromEntries(e);navigator.clipboard.writeText(JSON.stringify(o,null,2)),EC.success("Copied to clipboard")}},n=o=>typeof o=="string"?x.jsxs("span",{className:"text-yellow-600",children:['"',o,'"']}):typeof o=="number"?x.jsx("span",{className:"text-orange-600",children:o}):x.jsx("span",{className:"text-gray-800",children:String(o)}),r=o=>o===null?x.jsx("span",{className:"text-gray-600",children:"null"}):o===void 0?x.jsx("span",{className:"text-gray-600",children:"undefined"}):typeof o=="string"?x.jsxs("span",{className:"text-green-600",children:['"',o,'"']}):typeof o=="number"?x.jsx("span",{className:"text-orange-600",children:o}):typeof o=="boolean"?x.jsx("span",{className:"text-blue-600",children:String(o)}):Array.isArray(o)?x.jsxs("span",{className:"text-yellow-600",children:["["," ",o.map((c,u)=>x.jsxs("span",{children:[r(c),u<o.length-1&&", "]},u))," ","]"]}):o instanceof Map?x.jsx("div",{className:"ml-4",children:a(o)}):typeof o=="object"?x.jsx("span",{className:"text-blue-600",children:JSON.stringify(o,null,2)}):x.jsx("span",{children:String(o)}),a=o=>x.jsx("div",{className:"p-2 rounded-md overflow-auto text-sm font-mono border border-gray-300 bg-gray-100",children:x.jsx("div",{className:"space-y-2",children:Array.from(o.entries()).map(([c,u],f)=>x.jsxs("div",{className:"flex",children:[x.jsx("span",{className:"text-blue-600",children:"{"}),x.jsxs("div",{className:"ml-2",children:[n(c),x.jsx("span",{className:"text-blue-600 mx-2",children:" => "}),r(u)]}),x.jsx("span",{className:"text-blue-600",children:"}"})]},f))})});return x.jsx(x.Fragment,{children:e&&x.jsx(rt,{title:x.jsxs("div",{className:"flex justify-between items-center",children:[x.jsx(mR,{level:4,className:"m-0",children:"HashMap Display"}),x.jsx(_i,{title:"Copy JSON",children:x.jsx(gn,{type:"text",icon:x.jsx(cie,{}),onClick:t})})]}),className:"shadow-md",children:x.jsxs("div",{children:[x.jsx(mR,{level:5,children:"HashMap Preview"}),a(e)]})})})},{Title:Mie}=Wl,{Option:jie}=Rt,Tie=[{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"}],Die=()=>{const[e]=fe.useForm(),[t,n]=s.useState(new Map),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null);s.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 v=xae(h),g=await dr(v,o,c);if(g){const b=Cae(g,d.selected_attributes);n(b.size?b:"Empty result")}}catch(v){n(`Error getting attributes: ${v}`),console.error("Error getting attributes:",v)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx(Mie,{level:2,children:"Get KMIP Object Attributes"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("div",{children:"Retrieve attributes for a KMIP object by specifying either the object ID or tags."}),x.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."})]}),x.jsx(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{selected_attributes:[]},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{title:"Object Identification",children:[x.jsx("div",{className:"mb-5",children:"Specify either the Object ID or one or more tags to identify the object."}),x.jsx(fe.Item,{name:"id",label:"Object ID",help:"The unique identifier of the cryptographic object",children:x.jsx(yt,{placeholder:"Enter object ID"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Tags to use to retrieve the key when no key ID is specified",children:x.jsx(Rt,{mode:"tags",style:{width:"100%"},placeholder:"Enter tags",tokenSeparators:[","]})})]}),x.jsx(rt,{title:"Attribute Selection",children:x.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:x.jsx(Rt,{mode:"multiple",style:{width:"100%"},placeholder:"Select attribute",children:Tie.map(d=>x.jsx(jie,{value:d.value,children:d.label},d.value))})})}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Get Attributes"})})]})}),t&&typeof t!="string"&&t.size?x.jsx("div",{ref:u,children:x.jsx(Nie,{data:t})}):x.jsx(rt,{children:x.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 wP;function Ft(){return wP.apply(null,arguments)}function Pie(e){wP=e}function Ki(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function _s(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function er(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function JC(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(er(e,t))return!1;return!0}function Ua(e){return e===void 0}function Qo(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Gf(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function $P(e,t){var n=[],r,a=e.length;for(r=0;r<a;++r)n.push(t(e[r],r));return n}function Pl(e,t){for(var n in t)er(t,n)&&(e[n]=t[n]);return er(t,"toString")&&(e.toString=t.toString),er(t,"valueOf")&&(e.valueOf=t.valueOf),e}function go(e,t,n,r){return qP(e,t,n,r,!0).utc()}function kie(){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 Nn(e){return e._pf==null&&(e._pf=kie()),e._pf}var tx;Array.prototype.some?tx=Array.prototype.some:tx=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 e1(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=Nn(e),n=tx.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 Dg(e){var t=go(NaN);return e!=null?Pl(Nn(t),e):Nn(t).userInvalidated=!0,t}var hR=Ft.momentProperties=[],sy=!1;function t1(e,t){var n,r,a,o=hR.length;if(Ua(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Ua(t._i)||(e._i=t._i),Ua(t._f)||(e._f=t._f),Ua(t._l)||(e._l=t._l),Ua(t._strict)||(e._strict=t._strict),Ua(t._tzm)||(e._tzm=t._tzm),Ua(t._isUTC)||(e._isUTC=t._isUTC),Ua(t._offset)||(e._offset=t._offset),Ua(t._pf)||(e._pf=Nn(t)),Ua(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=hR[n],a=t[r],Ua(a)||(e[r]=a);return e}function Xf(e){t1(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),sy===!1&&(sy=!0,Ft.updateOffset(this),sy=!1)}function Ui(e){return e instanceof Xf||e!=null&&e._isAMomentObject!=null}function _P(e){Ft.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Ii(e,t){var n=!0;return Pl(function(){if(Ft.deprecationHandler!=null&&Ft.deprecationHandler(null,e),n){var r=[],a,o,c,u=arguments.length;for(o=0;o<u;o++){if(a="",typeof arguments[o]=="object"){a+=`
[`+o+"] ";for(c in arguments[0])er(arguments[0],c)&&(a+=c+": "+arguments[0][c]+", ");a=a.slice(0,-2)}else a=arguments[o];r.push(a)}_P(e+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var vR={};function EP(e,t){Ft.deprecationHandler!=null&&Ft.deprecationHandler(e,t),vR[e]||(_P(t),vR[e]=!0)}Ft.suppressDeprecationWarnings=!1;Ft.deprecationHandler=null;function po(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Aie(e){var t,n;for(n in e)er(e,n)&&(t=e[n],po(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 nx(e,t){var n=Pl({},e),r;for(r in t)er(t,r)&&(_s(e[r])&&_s(t[r])?(n[r]={},Pl(n[r],e[r]),Pl(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)er(e,r)&&!er(t,r)&&_s(e[r])&&(n[r]=Pl({},n[r]));return n}function n1(e){e!=null&&this.set(e)}var rx;Object.keys?rx=Object.keys:rx=function(e){var t,n=[];for(t in e)er(e,t)&&n.push(t);return n};var zie={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Lie(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return po(r)?r.call(t,n):r}function mo(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 r1=/(\[[^\[]*\])|(\\)?([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,Th=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,cy={},Yc={};function sn(e,t,n,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(Yc[e]=a),t&&(Yc[t[0]]=function(){return mo(a.apply(this,arguments),t[1],t[2])}),n&&(Yc[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function Hie(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Bie(e){var t=e.match(r1),n,r;for(n=0,r=t.length;n<r;n++)Yc[t[n]]?t[n]=Yc[t[n]]:t[n]=Hie(t[n]);return function(a){var o="",c;for(c=0;c<r;c++)o+=po(t[c])?t[c].call(a,e):t[c];return o}}function iv(e,t){return e.isValid()?(t=OP(t,e.localeData()),cy[t]=cy[t]||Bie(t),cy[t](e)):e.localeData().invalidDate()}function OP(e,t){var n=5;function r(a){return t.longDateFormat(a)||a}for(Th.lastIndex=0;n>=0&&Th.test(e);)e=e.replace(Th,r),Th.lastIndex=0,n-=1;return e}var Fie={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 Vie(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(r1).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Kie="Invalid date";function Uie(){return this._invalidDate}var Wie="%d",qie=/\d{1,2}/;function Yie(e){return this._ordinal.replace("%d",e)}var Gie={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 Xie(e,t,n,r){var a=this._relativeTime[n];return po(a)?a(e,t,n,r):a.replace(/%d/i,e)}function Qie(e,t){var n=this._relativeTime[e>0?"future":"past"];return po(n)?n(t):n.replace(/%s/i,t)}var gR={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 Ri(e){return typeof e=="string"?gR[e]||gR[e.toLowerCase()]:void 0}function a1(e){var t={},n,r;for(r in e)er(e,r)&&(n=Ri(r),n&&(t[n]=e[r]));return t}var Zie={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 Jie(e){var t=[],n;for(n in e)er(e,n)&&t.push({unit:n,priority:Zie[n]});return t.sort(function(r,a){return r.priority-a.priority}),t}var IP=/\d/,li=/\d\d/,RP=/\d{3}/,i1=/\d{4}/,Pg=/[+-]?\d{6}/,Rr=/\d\d?/,NP=/\d\d\d\d?/,MP=/\d\d\d\d\d\d?/,kg=/\d{1,3}/,o1=/\d{1,4}/,Ag=/[+-]?\d{1,6}/,Ou=/\d+/,zg=/[+-]?\d+/,eoe=/Z|[+-]\d\d:?\d\d/gi,Lg=/Z|[+-]\d\d(?::?\d\d)?/gi,toe=/[+-]?\d+(\.\d{1,3})?/,Qf=/[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,Iu=/^[1-9]\d?/,l1=/^([1-9]\d|\d)/,Nv;Nv={};function qt(e,t,n){Nv[e]=po(t)?t:function(r,a){return r&&n?n:t}}function noe(e,t){return er(Nv,e)?Nv[e](t._strict,t._locale):new RegExp(roe(e))}function roe(e){return Vo(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,a,o){return n||r||a||o}))}function Vo(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ci(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=Ci(t)),n}var ax={};function pr(e,t){var n,r=t,a;for(typeof e=="string"&&(e=[e]),Qo(t)&&(r=function(o,c){c[t]=Vn(o)}),a=e.length,n=0;n<a;n++)ax[e[n]]=r}function Zf(e,t){pr(e,function(n,r,a,o){a._w=a._w||{},t(n,a._w,a,o)})}function aoe(e,t,n){t!=null&&er(ax,e)&&ax[e](t,n._a,n,e)}function Hg(e){return e%4===0&&e%100!==0||e%400===0}var Na=0,Lo=1,io=2,ra=3,Pi=4,Ho=5,xs=6,ioe=7,ooe=8;sn("Y",0,0,function(){var e=this.year();return e<=9999?mo(e,4):"+"+e});sn(0,["YY",2],0,function(){return this.year()%100});sn(0,["YYYY",4],0,"year");sn(0,["YYYYY",5],0,"year");sn(0,["YYYYYY",6,!0],0,"year");qt("Y",zg);qt("YY",Rr,li);qt("YYYY",o1,i1);qt("YYYYY",Ag,Pg);qt("YYYYYY",Ag,Pg);pr(["YYYYY","YYYYYY"],Na);pr("YYYY",function(e,t){t[Na]=e.length===2?Ft.parseTwoDigitYear(e):Vn(e)});pr("YY",function(e,t){t[Na]=Ft.parseTwoDigitYear(e)});pr("Y",function(e,t){t[Na]=parseInt(e,10)});function Zd(e){return Hg(e)?366:365}Ft.parseTwoDigitYear=function(e){return Vn(e)+(Vn(e)>68?1900:2e3)};var jP=Ru("FullYear",!0);function loe(){return Hg(this.year())}function Ru(e,t){return function(n){return n!=null?(TP(this,e,n),Ft.updateOffset(this,t),this):wf(this,e)}}function wf(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 TP(e,t,n){var r,a,o,c,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,c=e.month(),u=e.date(),u=u===29&&c===1&&!Hg(o)?28:u,a?r.setUTCFullYear(o,c,u):r.setFullYear(o,c,u)}}function soe(e){return e=Ri(e),po(this[e])?this[e]():this}function coe(e,t){if(typeof e=="object"){e=a1(e);var n=Jie(e),r,a=n.length;for(r=0;r<a;r++)this[n[r].unit](e[n[r].unit])}else if(e=Ri(e),po(this[e]))return this[e](t);return this}function uoe(e,t){return(e%t+t)%t}var Ur;Array.prototype.indexOf?Ur=Array.prototype.indexOf:Ur=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function s1(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=uoe(t,12);return e+=(t-n)/12,n===1?Hg(e)?29:28:31-n%7%2}sn("M",["MM",2],"Mo",function(){return this.month()+1});sn("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});sn("MMMM",0,0,function(e){return this.localeData().months(this,e)});qt("M",Rr,Iu);qt("MM",Rr,li);qt("MMM",function(e,t){return t.monthsShortRegex(e)});qt("MMMM",function(e,t){return t.monthsRegex(e)});pr(["M","MM"],function(e,t){t[Lo]=Vn(e)-1});pr(["MMM","MMMM"],function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);a!=null?t[Lo]=a:Nn(n).invalidMonth=e});var doe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),DP="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),PP=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,foe=Qf,moe=Qf;function hoe(e,t){return e?Ki(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||PP).test(t)?"format":"standalone"][e.month()]:Ki(this._months)?this._months:this._months.standalone}function voe(e,t){return e?Ki(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[PP.test(t)?"format":"standalone"][e.month()]:Ki(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function goe(e,t,n){var r,a,o,c=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=go([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?t==="MMM"?(a=Ur.call(this._shortMonthsParse,c),a!==-1?a:null):(a=Ur.call(this._longMonthsParse,c),a!==-1?a:null):t==="MMM"?(a=Ur.call(this._shortMonthsParse,c),a!==-1?a:(a=Ur.call(this._longMonthsParse,c),a!==-1?a:null)):(a=Ur.call(this._longMonthsParse,c),a!==-1?a:(a=Ur.call(this._shortMonthsParse,c),a!==-1?a:null))}function poe(e,t,n){var r,a,o;if(this._monthsParseExact)return goe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=go([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 kP(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),!Qo(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,s1(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function AP(e){return e!=null?(kP(this,e),Ft.updateOffset(this,!0),this):wf(this,"Month")}function boe(){return s1(this.year(),this.month())}function yoe(e){return this._monthsParseExact?(er(this,"_monthsRegex")||zP.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(er(this,"_monthsShortRegex")||(this._monthsShortRegex=foe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Soe(e){return this._monthsParseExact?(er(this,"_monthsRegex")||zP.call(this),e?this._monthsStrictRegex:this._monthsRegex):(er(this,"_monthsRegex")||(this._monthsRegex=moe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function zP(){function e(f,d){return d.length-f.length}var t=[],n=[],r=[],a,o,c,u;for(a=0;a<12;a++)o=go([2e3,a]),c=Vo(this.monthsShort(o,"")),u=Vo(this.months(o,"")),t.push(c),n.push(u),r.push(u),r.push(c);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 xoe(e,t,n,r,a,o,c){var u;return e<100&&e>=0?(u=new Date(e+400,t,n,r,a,o,c),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,n,r,a,o,c),u}function $f(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 Mv(e,t,n){var r=7+t-n,a=(7+$f(e,0,r).getUTCDay()-t)%7;return-a+r-1}function LP(e,t,n,r,a){var o=(7+n-r)%7,c=Mv(e,r,a),u=1+7*(t-1)+o+c,f,d;return u<=0?(f=e-1,d=Zd(f)+u):u>Zd(e)?(f=e+1,d=u-Zd(e)):(f=e,d=u),{year:f,dayOfYear:d}}function _f(e,t,n){var r=Mv(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1,o,c;return a<1?(c=e.year()-1,o=a+Ko(c,t,n)):a>Ko(e.year(),t,n)?(o=a-Ko(e.year(),t,n),c=e.year()+1):(c=e.year(),o=a),{week:o,year:c}}function Ko(e,t,n){var r=Mv(e,t,n),a=Mv(e+1,t,n);return(Zd(e)-r+a)/7}sn("w",["ww",2],"wo","week");sn("W",["WW",2],"Wo","isoWeek");qt("w",Rr,Iu);qt("ww",Rr,li);qt("W",Rr,Iu);qt("WW",Rr,li);Zf(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Vn(e)});function Coe(e){return _f(e,this._week.dow,this._week.doy).week}var woe={dow:0,doy:6};function $oe(){return this._week.dow}function _oe(){return this._week.doy}function Eoe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Ooe(e){var t=_f(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}sn("d",0,"do","day");sn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});sn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});sn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});sn("e",0,0,"weekday");sn("E",0,0,"isoWeekday");qt("d",Rr);qt("e",Rr);qt("E",Rr);qt("dd",function(e,t){return t.weekdaysMinRegex(e)});qt("ddd",function(e,t){return t.weekdaysShortRegex(e)});qt("dddd",function(e,t){return t.weekdaysRegex(e)});Zf(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);a!=null?t.d=a:Nn(n).invalidWeekday=e});Zf(["d","e","E"],function(e,t,n,r){t[r]=Vn(e)});function Ioe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Roe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function c1(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Noe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),HP="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Moe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),joe=Qf,Toe=Qf,Doe=Qf;function Poe(e,t){var n=Ki(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?c1(n,this._week.dow):e?n[e.day()]:n}function koe(e){return e===!0?c1(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Aoe(e){return e===!0?c1(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function zoe(e,t,n){var r,a,o,c=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=go([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=Ur.call(this._weekdaysParse,c),a!==-1?a:null):t==="ddd"?(a=Ur.call(this._shortWeekdaysParse,c),a!==-1?a:null):(a=Ur.call(this._minWeekdaysParse,c),a!==-1?a:null):t==="dddd"?(a=Ur.call(this._weekdaysParse,c),a!==-1||(a=Ur.call(this._shortWeekdaysParse,c),a!==-1)?a:(a=Ur.call(this._minWeekdaysParse,c),a!==-1?a:null)):t==="ddd"?(a=Ur.call(this._shortWeekdaysParse,c),a!==-1||(a=Ur.call(this._weekdaysParse,c),a!==-1)?a:(a=Ur.call(this._minWeekdaysParse,c),a!==-1?a:null)):(a=Ur.call(this._minWeekdaysParse,c),a!==-1||(a=Ur.call(this._weekdaysParse,c),a!==-1)?a:(a=Ur.call(this._shortWeekdaysParse,c),a!==-1?a:null))}function Loe(e,t,n){var r,a,o;if(this._weekdaysParseExact)return zoe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=go([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 Hoe(e){if(!this.isValid())return e!=null?this:NaN;var t=wf(this,"Day");return e!=null?(e=Ioe(e,this.localeData()),this.add(e-t,"d")):t}function Boe(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 Foe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Roe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Voe(e){return this._weekdaysParseExact?(er(this,"_weekdaysRegex")||u1.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(er(this,"_weekdaysRegex")||(this._weekdaysRegex=joe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Koe(e){return this._weekdaysParseExact?(er(this,"_weekdaysRegex")||u1.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(er(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Toe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Uoe(e){return this._weekdaysParseExact?(er(this,"_weekdaysRegex")||u1.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(er(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Doe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function u1(){function e(h,v){return v.length-h.length}var t=[],n=[],r=[],a=[],o,c,u,f,d;for(o=0;o<7;o++)c=go([2e3,1]).day(o),u=Vo(this.weekdaysMin(c,"")),f=Vo(this.weekdaysShort(c,"")),d=Vo(this.weekdays(c,"")),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 d1(){return this.hours()%12||12}function Woe(){return this.hours()||24}sn("H",["HH",2],0,"hour");sn("h",["hh",2],0,d1);sn("k",["kk",2],0,Woe);sn("hmm",0,0,function(){return""+d1.apply(this)+mo(this.minutes(),2)});sn("hmmss",0,0,function(){return""+d1.apply(this)+mo(this.minutes(),2)+mo(this.seconds(),2)});sn("Hmm",0,0,function(){return""+this.hours()+mo(this.minutes(),2)});sn("Hmmss",0,0,function(){return""+this.hours()+mo(this.minutes(),2)+mo(this.seconds(),2)});function BP(e,t){sn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}BP("a",!0);BP("A",!1);function FP(e,t){return t._meridiemParse}qt("a",FP);qt("A",FP);qt("H",Rr,l1);qt("h",Rr,Iu);qt("k",Rr,Iu);qt("HH",Rr,li);qt("hh",Rr,li);qt("kk",Rr,li);qt("hmm",NP);qt("hmmss",MP);qt("Hmm",NP);qt("Hmmss",MP);pr(["H","HH"],ra);pr(["k","kk"],function(e,t,n){var r=Vn(e);t[ra]=r===24?0:r});pr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});pr(["h","hh"],function(e,t,n){t[ra]=Vn(e),Nn(n).bigHour=!0});pr("hmm",function(e,t,n){var r=e.length-2;t[ra]=Vn(e.substr(0,r)),t[Pi]=Vn(e.substr(r)),Nn(n).bigHour=!0});pr("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ra]=Vn(e.substr(0,r)),t[Pi]=Vn(e.substr(r,2)),t[Ho]=Vn(e.substr(a)),Nn(n).bigHour=!0});pr("Hmm",function(e,t,n){var r=e.length-2;t[ra]=Vn(e.substr(0,r)),t[Pi]=Vn(e.substr(r))});pr("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ra]=Vn(e.substr(0,r)),t[Pi]=Vn(e.substr(r,2)),t[Ho]=Vn(e.substr(a))});function qoe(e){return(e+"").toLowerCase().charAt(0)==="p"}var Yoe=/[ap]\.?m?\.?/i,Goe=Ru("Hours",!0);function Xoe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var VP={calendar:zie,longDateFormat:Fie,invalidDate:Kie,ordinal:Wie,dayOfMonthOrdinalParse:qie,relativeTime:Gie,months:doe,monthsShort:DP,week:woe,weekdays:Noe,weekdaysMin:Moe,weekdaysShort:HP,meridiemParse:Yoe},jr={},Nd={},Ef;function Qoe(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 pR(e){return e&&e.toLowerCase().replace("_","-")}function Zoe(e){for(var t=0,n,r,a,o;t<e.length;){for(o=pR(e[t]).split("-"),n=o.length,r=pR(e[t+1]),r=r?r.split("-"):null;n>0;){if(a=Bg(o.slice(0,n).join("-")),a)return a;if(r&&r.length>=n&&Qoe(o,r)>=n-1)break;n--}t++}return Ef}function Joe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Bg(e){var t=null,n;if(jr[e]===void 0&&typeof module<"u"&&module&&module.exports&&Joe(e))try{t=Ef._abbr,n=require,n("./locale/"+e),Ll(t)}catch{jr[e]=null}return jr[e]}function Ll(e,t){var n;return e&&(Ua(t)?n=Jo(e):n=f1(e,t),n?Ef=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ef._abbr}function f1(e,t){if(t!==null){var n,r=VP;if(t.abbr=e,jr[e]!=null)EP("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=jr[e]._config;else if(t.parentLocale!=null)if(jr[t.parentLocale]!=null)r=jr[t.parentLocale]._config;else if(n=Bg(t.parentLocale),n!=null)r=n._config;else return Nd[t.parentLocale]||(Nd[t.parentLocale]=[]),Nd[t.parentLocale].push({name:e,config:t}),null;return jr[e]=new n1(nx(r,t)),Nd[e]&&Nd[e].forEach(function(a){f1(a.name,a.config)}),Ll(e),jr[e]}else return delete jr[e],null}function ele(e,t){if(t!=null){var n,r,a=VP;jr[e]!=null&&jr[e].parentLocale!=null?jr[e].set(nx(jr[e]._config,t)):(r=Bg(e),r!=null&&(a=r._config),t=nx(a,t),r==null&&(t.abbr=e),n=new n1(t),n.parentLocale=jr[e],jr[e]=n),Ll(e)}else jr[e]!=null&&(jr[e].parentLocale!=null?(jr[e]=jr[e].parentLocale,e===Ll()&&Ll(e)):jr[e]!=null&&delete jr[e]);return jr[e]}function Jo(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ef;if(!Ki(e)){if(t=Bg(e),t)return t;e=[e]}return Zoe(e)}function tle(){return rx(jr)}function m1(e){var t,n=e._a;return n&&Nn(e).overflow===-2&&(t=n[Lo]<0||n[Lo]>11?Lo:n[io]<1||n[io]>s1(n[Na],n[Lo])?io:n[ra]<0||n[ra]>24||n[ra]===24&&(n[Pi]!==0||n[Ho]!==0||n[xs]!==0)?ra:n[Pi]<0||n[Pi]>59?Pi:n[Ho]<0||n[Ho]>59?Ho:n[xs]<0||n[xs]>999?xs:-1,Nn(e)._overflowDayOfYear&&(t<Na||t>io)&&(t=io),Nn(e)._overflowWeeks&&t===-1&&(t=ioe),Nn(e)._overflowWeekday&&t===-1&&(t=ooe),Nn(e).overflow=t),e}var nle=/^\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)?)?$/,rle=/^\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)?)?$/,ale=/Z|[+-]\d\d(?::?\d\d)?/,Dh=[["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]],uy=[["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/]],ile=/^\/?Date\((-?\d+)/i,ole=/^(?:(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}))$/,lle={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function KP(e){var t,n,r=e._i,a=nle.exec(r)||rle.exec(r),o,c,u,f,d=Dh.length,h=uy.length;if(a){for(Nn(e).iso=!0,t=0,n=d;t<n;t++)if(Dh[t][1].exec(a[1])){c=Dh[t][0],o=Dh[t][2]!==!1;break}if(c==null){e._isValid=!1;return}if(a[3]){for(t=0,n=h;t<n;t++)if(uy[t][1].exec(a[3])){u=(a[2]||" ")+uy[t][0];break}if(u==null){e._isValid=!1;return}}if(!o&&u!=null){e._isValid=!1;return}if(a[4])if(ale.exec(a[4]))f="Z";else{e._isValid=!1;return}e._f=c+(u||"")+(f||""),v1(e)}else e._isValid=!1}function sle(e,t,n,r,a,o){var c=[cle(e),DP.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return o&&c.push(parseInt(o,10)),c}function cle(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ule(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function dle(e,t,n){if(e){var r=HP.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return Nn(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function fle(e,t,n){if(e)return lle[e];if(t)return 0;var r=parseInt(n,10),a=r%100,o=(r-a)/100;return o*60+a}function UP(e){var t=ole.exec(ule(e._i)),n;if(t){if(n=sle(t[4],t[3],t[2],t[5],t[6],t[7]),!dle(t[1],n,e))return;e._a=n,e._tzm=fle(t[8],t[9],t[10]),e._d=$f.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Nn(e).rfc2822=!0}else e._isValid=!1}function mle(e){var t=ile.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(KP(e),e._isValid===!1)delete e._isValid;else return;if(UP(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:Ft.createFromInputFallback(e)}Ft.createFromInputFallback=Ii("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 Pc(e,t,n){return e??t??n}function hle(e){var t=new Date(Ft.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function h1(e){var t,n,r=[],a,o,c;if(!e._d){for(a=hle(e),e._w&&e._a[io]==null&&e._a[Lo]==null&&vle(e),e._dayOfYear!=null&&(c=Pc(e._a[Na],a[Na]),(e._dayOfYear>Zd(c)||e._dayOfYear===0)&&(Nn(e)._overflowDayOfYear=!0),n=$f(c,0,e._dayOfYear),e._a[Lo]=n.getUTCMonth(),e._a[io]=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[ra]===24&&e._a[Pi]===0&&e._a[Ho]===0&&e._a[xs]===0&&(e._nextDay=!0,e._a[ra]=0),e._d=(e._useUTC?$f:xoe).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[ra]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(Nn(e).weekdayMismatch=!0)}}function vle(e){var t,n,r,a,o,c,u,f,d;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,c=4,n=Pc(t.GG,e._a[Na],_f(Ir(),1,4).year),r=Pc(t.W,1),a=Pc(t.E,1),(a<1||a>7)&&(f=!0)):(o=e._locale._week.dow,c=e._locale._week.doy,d=_f(Ir(),o,c),n=Pc(t.gg,e._a[Na],d.year),r=Pc(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>Ko(n,o,c)?Nn(e)._overflowWeeks=!0:f!=null?Nn(e)._overflowWeekday=!0:(u=LP(n,r,a,o,c),e._a[Na]=u.year,e._dayOfYear=u.dayOfYear)}Ft.ISO_8601=function(){};Ft.RFC_2822=function(){};function v1(e){if(e._f===Ft.ISO_8601){KP(e);return}if(e._f===Ft.RFC_2822){UP(e);return}e._a=[],Nn(e).empty=!0;var t=""+e._i,n,r,a,o,c,u=t.length,f=0,d,h;for(a=OP(e._f,e._locale).match(r1)||[],h=a.length,n=0;n<h;n++)o=a[n],r=(t.match(noe(o,e))||[])[0],r&&(c=t.substr(0,t.indexOf(r)),c.length>0&&Nn(e).unusedInput.push(c),t=t.slice(t.indexOf(r)+r.length),f+=r.length),Yc[o]?(r?Nn(e).empty=!1:Nn(e).unusedTokens.push(o),aoe(o,r,e)):e._strict&&!r&&Nn(e).unusedTokens.push(o);Nn(e).charsLeftOver=u-f,t.length>0&&Nn(e).unusedInput.push(t),e._a[ra]<=12&&Nn(e).bigHour===!0&&e._a[ra]>0&&(Nn(e).bigHour=void 0),Nn(e).parsedDateParts=e._a.slice(0),Nn(e).meridiem=e._meridiem,e._a[ra]=gle(e._locale,e._a[ra],e._meridiem),d=Nn(e).era,d!==null&&(e._a[Na]=e._locale.erasConvertYear(d,e._a[Na])),h1(e),m1(e)}function gle(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 ple(e){var t,n,r,a,o,c,u=!1,f=e._f.length;if(f===0){Nn(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<f;a++)o=0,c=!1,t=t1({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],v1(t),e1(t)&&(c=!0),o+=Nn(t).charsLeftOver,o+=Nn(t).unusedTokens.length*10,Nn(t).score=o,u?o<r&&(r=o,n=t):(r==null||o<r||c)&&(r=o,n=t,c&&(u=!0));Pl(e,n||t)}function ble(e){if(!e._d){var t=a1(e._i),n=t.day===void 0?t.date:t.day;e._a=$P([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),h1(e)}}function yle(e){var t=new Xf(m1(WP(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function WP(e){var t=e._i,n=e._f;return e._locale=e._locale||Jo(e._l),t===null||n===void 0&&t===""?Dg({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Ui(t)?new Xf(m1(t)):(Gf(t)?e._d=t:Ki(n)?ple(e):n?v1(e):Sle(e),e1(e)||(e._d=null),e))}function Sle(e){var t=e._i;Ua(t)?e._d=new Date(Ft.now()):Gf(t)?e._d=new Date(t.valueOf()):typeof t=="string"?mle(e):Ki(t)?(e._a=$P(t.slice(0),function(n){return parseInt(n,10)}),h1(e)):_s(t)?ble(e):Qo(t)?e._d=new Date(t):Ft.createFromInputFallback(e)}function qP(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),(_s(e)&&JC(e)||Ki(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,yle(o)}function Ir(e,t,n,r){return qP(e,t,n,r,!1)}var xle=Ii("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ir.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Dg()}),Cle=Ii("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ir.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Dg()});function YP(e,t){var n,r;if(t.length===1&&Ki(t[0])&&(t=t[0]),!t.length)return Ir();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function wle(){var e=[].slice.call(arguments,0);return YP("isBefore",e)}function $le(){var e=[].slice.call(arguments,0);return YP("isAfter",e)}var _le=function(){return Date.now?Date.now():+new Date},Md=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ele(e){var t,n=!1,r,a=Md.length;for(t in e)if(er(e,t)&&!(Ur.call(Md,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[Md[r]]){if(n)return!1;parseFloat(e[Md[r]])!==Vn(e[Md[r]])&&(n=!0)}return!0}function Ole(){return this._isValid}function Ile(){return Zi(NaN)}function Fg(e){var t=a1(e),n=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,c=t.day||0,u=t.hour||0,f=t.minute||0,d=t.second||0,h=t.millisecond||0;this._isValid=Ele(t),this._milliseconds=+h+d*1e3+f*6e4+u*1e3*60*60,this._days=+c+o*7,this._months=+a+r*3+n*12,this._data={},this._locale=Jo(),this._bubble()}function ov(e){return e instanceof Fg}function ix(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Rle(e,t,n){var r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0,c;for(c=0;c<r;c++)Vn(e[c])!==Vn(t[c])&&o++;return o+a}function GP(e,t){sn(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+mo(~~(n/60),2)+t+mo(~~n%60,2)})}GP("Z",":");GP("ZZ","");qt("Z",Lg);qt("ZZ",Lg);pr(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=g1(Lg,e)});var Nle=/([\+\-]|\d\d)/gi;function g1(e,t){var n=(t||"").match(e),r,a,o;return n===null?null:(r=n[n.length-1]||[],a=(r+"").match(Nle)||["-",0,0],o=+(a[1]*60)+Vn(a[2]),o===0?0:a[0]==="+"?o:-o)}function p1(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Ui(e)||Gf(e)?e.valueOf():Ir(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),Ft.updateOffset(n,!1),n):Ir(e).local()}function ox(e){return-Math.round(e._d.getTimezoneOffset())}Ft.updateOffset=function(){};function Mle(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=g1(Lg,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(a=ox(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?ZP(this,Zi(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Ft.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:ox(this)}function jle(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Tle(e){return this.utcOffset(0,e)}function Dle(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ox(this),"m")),this}function Ple(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=g1(eoe,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function kle(e){return this.isValid()?(e=e?Ir(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ale(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zle(){if(!Ua(this._isDSTShifted))return this._isDSTShifted;var e={},t;return t1(e,this),e=WP(e),e._a?(t=e._isUTC?go(e._a):Ir(e._a),this._isDSTShifted=this.isValid()&&Rle(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Lle(){return this.isValid()?!this._isUTC:!1}function Hle(){return this.isValid()?this._isUTC:!1}function XP(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ble=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Fle=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Zi(e,t){var n=e,r=null,a,o,c;return ov(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Qo(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Ble.exec(e))?(a=r[1]==="-"?-1:1,n={y:0,d:Vn(r[io])*a,h:Vn(r[ra])*a,m:Vn(r[Pi])*a,s:Vn(r[Ho])*a,ms:Vn(ix(r[xs]*1e3))*a}):(r=Fle.exec(e))?(a=r[1]==="-"?-1:1,n={y:hs(r[2],a),M:hs(r[3],a),w:hs(r[4],a),d:hs(r[5],a),h:hs(r[6],a),m:hs(r[7],a),s:hs(r[8],a)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(c=Vle(Ir(n.from),Ir(n.to)),n={},n.ms=c.milliseconds,n.M=c.months),o=new Fg(n),ov(e)&&er(e,"_locale")&&(o._locale=e._locale),ov(e)&&er(e,"_isValid")&&(o._isValid=e._isValid),o}Zi.fn=Fg.prototype;Zi.invalid=Ile;function hs(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function bR(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 Vle(e,t){var n;return e.isValid()&&t.isValid()?(t=p1(t,e),e.isBefore(t)?n=bR(e,t):(n=bR(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function QP(e,t){return function(n,r){var a,o;return r!==null&&!isNaN(+r)&&(EP(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=Zi(n,r),ZP(this,a,e),this}}function ZP(e,t,n,r){var a=t._milliseconds,o=ix(t._days),c=ix(t._months);e.isValid()&&(r=r??!0,c&&kP(e,wf(e,"Month")+c*n),o&&TP(e,"Date",wf(e,"Date")+o*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&Ft.updateOffset(e,o||c))}var Kle=QP(1,"add"),Ule=QP(-1,"subtract");function JP(e){return typeof e=="string"||e instanceof String}function Wle(e){return Ui(e)||Gf(e)||JP(e)||Qo(e)||Yle(e)||qle(e)||e===null||e===void 0}function qle(e){var t=_s(e)&&!JC(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,c=r.length;for(a=0;a<c;a+=1)o=r[a],n=n||er(e,o);return t&&n}function Yle(e){var t=Ki(e),n=!1;return t&&(n=e.filter(function(r){return!Qo(r)&&JP(e)}).length===0),t&&n}function Gle(e){var t=_s(e)&&!JC(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||er(e,o);return t&&n}function Xle(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 Qle(e,t){arguments.length===1&&(arguments[0]?Wle(arguments[0])?(e=arguments[0],t=void 0):Gle(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ir(),r=p1(n,this).startOf("day"),a=Ft.calendarFormat(this,r)||"sameElse",o=t&&(po(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,Ir(n)))}function Zle(){return new Xf(this)}function Jle(e,t){var n=Ui(e)?e:Ir(e);return this.isValid()&&n.isValid()?(t=Ri(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function ese(e,t){var n=Ui(e)?e:Ir(e);return this.isValid()&&n.isValid()?(t=Ri(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function tse(e,t,n,r){var a=Ui(e)?e:Ir(e),o=Ui(t)?t:Ir(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 nse(e,t){var n=Ui(e)?e:Ir(e),r;return this.isValid()&&n.isValid()?(t=Ri(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 rse(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ase(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function ise(e,t,n){var r,a,o;if(!this.isValid())return NaN;if(r=p1(e,this),!r.isValid())return NaN;switch(a=(r.utcOffset()-this.utcOffset())*6e4,t=Ri(t),t){case"year":o=lv(this,r)/12;break;case"month":o=lv(this,r);break;case"quarter":o=lv(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:Ci(o)}function lv(e,t){if(e.date()<t.date())return-lv(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}Ft.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Ft.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function ose(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function lse(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?iv(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):po(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",iv(n,"Z")):iv(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function sse(){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 cse(e){e||(e=this.isUtc()?Ft.defaultFormatUtc:Ft.defaultFormat);var t=iv(this,e);return this.localeData().postformat(t)}function use(e,t){return this.isValid()&&(Ui(e)&&e.isValid()||Ir(e).isValid())?Zi({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function dse(e){return this.from(Ir(),e)}function fse(e,t){return this.isValid()&&(Ui(e)&&e.isValid()||Ir(e).isValid())?Zi({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mse(e){return this.to(Ir(),e)}function e4(e){var t;return e===void 0?this._locale._abbr:(t=Jo(e),t!=null&&(this._locale=t),this)}var t4=Ii("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 n4(){return this._locale}var jv=1e3,Gc=60*jv,Tv=60*Gc,r4=(365*400+97)*24*Tv;function Xc(e,t){return(e%t+t)%t}function a4(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-r4:new Date(e,t,n).valueOf()}function i4(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-r4:Date.UTC(e,t,n)}function hse(e){var t,n;if(e=Ri(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?i4:a4,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-=Xc(t+(this._isUTC?0:this.utcOffset()*Gc),Tv);break;case"minute":t=this._d.valueOf(),t-=Xc(t,Gc);break;case"second":t=this._d.valueOf(),t-=Xc(t,jv);break}return this._d.setTime(t),Ft.updateOffset(this,!0),this}function vse(e){var t,n;if(e=Ri(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?i4:a4,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+=Tv-Xc(t+(this._isUTC?0:this.utcOffset()*Gc),Tv)-1;break;case"minute":t=this._d.valueOf(),t+=Gc-Xc(t,Gc)-1;break;case"second":t=this._d.valueOf(),t+=jv-Xc(t,jv)-1;break}return this._d.setTime(t),Ft.updateOffset(this,!0),this}function gse(){return this._d.valueOf()-(this._offset||0)*6e4}function pse(){return Math.floor(this.valueOf()/1e3)}function bse(){return new Date(this.valueOf())}function yse(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Sse(){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 xse(){return this.isValid()?this.toISOString():null}function Cse(){return e1(this)}function wse(){return Pl({},Nn(this))}function $se(){return Nn(this).overflow}function _se(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}sn("N",0,0,"eraAbbr");sn("NN",0,0,"eraAbbr");sn("NNN",0,0,"eraAbbr");sn("NNNN",0,0,"eraName");sn("NNNNN",0,0,"eraNarrow");sn("y",["y",1],"yo","eraYear");sn("y",["yy",2],0,"eraYear");sn("y",["yyy",3],0,"eraYear");sn("y",["yyyy",4],0,"eraYear");qt("N",b1);qt("NN",b1);qt("NNN",b1);qt("NNNN",kse);qt("NNNNN",Ase);pr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?Nn(n).era=a:Nn(n).invalidEra=e});qt("y",Ou);qt("yy",Ou);qt("yyy",Ou);qt("yyyy",Ou);qt("yo",zse);pr(["y","yy","yyy","yyyy"],Na);pr(["yo"],function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Na]=n._locale.eraYearOrdinalParse(e,a):t[Na]=parseInt(e,10)});function Ese(e,t){var n,r,a,o=this._eras||Jo("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":a=Ft(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=Ft(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf();break}}return o}function Ose(e,t,n){var r,a,o=this.eras(),c,u,f;for(e=e.toUpperCase(),r=0,a=o.length;r<a;++r)if(c=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(c===e)return o[r];break;case"NNNNN":if(f===e)return o[r];break}else if([c,u,f].indexOf(e)>=0)return o[r]}function Ise(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Ft(e.since).year():Ft(e.since).year()+(t-e.offset)*n}function Rse(){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 Nse(){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 Mse(){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 jse(){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()-Ft(a[e].since).year())*n+a[e].offset;return this.year()}function Tse(e){return er(this,"_erasNameRegex")||y1.call(this),e?this._erasNameRegex:this._erasRegex}function Dse(e){return er(this,"_erasAbbrRegex")||y1.call(this),e?this._erasAbbrRegex:this._erasRegex}function Pse(e){return er(this,"_erasNarrowRegex")||y1.call(this),e?this._erasNarrowRegex:this._erasRegex}function b1(e,t){return t.erasAbbrRegex(e)}function kse(e,t){return t.erasNameRegex(e)}function Ase(e,t){return t.erasNarrowRegex(e)}function zse(e,t){return t._eraYearOrdinalRegex||Ou}function y1(){var e=[],t=[],n=[],r=[],a,o,c,u,f,d=this.eras();for(a=0,o=d.length;a<o;++a)c=Vo(d[a].name),u=Vo(d[a].abbr),f=Vo(d[a].narrow),t.push(c),e.push(u),n.push(f),r.push(c),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")}sn(0,["gg",2],0,function(){return this.weekYear()%100});sn(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Vg(e,t){sn(0,[e,e.length],0,t)}Vg("gggg","weekYear");Vg("ggggg","weekYear");Vg("GGGG","isoWeekYear");Vg("GGGGG","isoWeekYear");qt("G",zg);qt("g",zg);qt("GG",Rr,li);qt("gg",Rr,li);qt("GGGG",o1,i1);qt("gggg",o1,i1);qt("GGGGG",Ag,Pg);qt("ggggg",Ag,Pg);Zf(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Vn(e)});Zf(["gg","GG"],function(e,t,n,r){t[r]=Ft.parseTwoDigitYear(e)});function Lse(e){return o4.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Hse(e){return o4.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Bse(){return Ko(this.year(),1,4)}function Fse(){return Ko(this.isoWeekYear(),1,4)}function Vse(){var e=this.localeData()._week;return Ko(this.year(),e.dow,e.doy)}function Kse(){var e=this.localeData()._week;return Ko(this.weekYear(),e.dow,e.doy)}function o4(e,t,n,r,a){var o;return e==null?_f(this,r,a).year:(o=Ko(e,r,a),t>o&&(t=o),Use.call(this,e,t,n,r,a))}function Use(e,t,n,r,a){var o=LP(e,t,n,r,a),c=$f(o.year,0,o.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}sn("Q",0,"Qo","quarter");qt("Q",IP);pr("Q",function(e,t){t[Lo]=(Vn(e)-1)*3});function Wse(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}sn("D",["DD",2],"Do","date");qt("D",Rr,Iu);qt("DD",Rr,li);qt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});pr(["D","DD"],io);pr("Do",function(e,t){t[io]=Vn(e.match(Rr)[0])});var l4=Ru("Date",!0);sn("DDD",["DDDD",3],"DDDo","dayOfYear");qt("DDD",kg);qt("DDDD",RP);pr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Vn(e)});function qse(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}sn("m",["mm",2],0,"minute");qt("m",Rr,l1);qt("mm",Rr,li);pr(["m","mm"],Pi);var Yse=Ru("Minutes",!1);sn("s",["ss",2],0,"second");qt("s",Rr,l1);qt("ss",Rr,li);pr(["s","ss"],Ho);var Gse=Ru("Seconds",!1);sn("S",0,0,function(){return~~(this.millisecond()/100)});sn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});sn(0,["SSS",3],0,"millisecond");sn(0,["SSSS",4],0,function(){return this.millisecond()*10});sn(0,["SSSSS",5],0,function(){return this.millisecond()*100});sn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});sn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});sn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});sn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});qt("S",kg,IP);qt("SS",kg,li);qt("SSS",kg,RP);var kl,s4;for(kl="SSSS";kl.length<=9;kl+="S")qt(kl,Ou);function Xse(e,t){t[xs]=Vn(("0."+e)*1e3)}for(kl="S";kl.length<=9;kl+="S")pr(kl,Xse);s4=Ru("Milliseconds",!1);sn("z",0,0,"zoneAbbr");sn("zz",0,0,"zoneName");function Qse(){return this._isUTC?"UTC":""}function Zse(){return this._isUTC?"Coordinated Universal Time":""}var Ct=Xf.prototype;Ct.add=Kle;Ct.calendar=Qle;Ct.clone=Zle;Ct.diff=ise;Ct.endOf=vse;Ct.format=cse;Ct.from=use;Ct.fromNow=dse;Ct.to=fse;Ct.toNow=mse;Ct.get=soe;Ct.invalidAt=$se;Ct.isAfter=Jle;Ct.isBefore=ese;Ct.isBetween=tse;Ct.isSame=nse;Ct.isSameOrAfter=rse;Ct.isSameOrBefore=ase;Ct.isValid=Cse;Ct.lang=t4;Ct.locale=e4;Ct.localeData=n4;Ct.max=Cle;Ct.min=xle;Ct.parsingFlags=wse;Ct.set=coe;Ct.startOf=hse;Ct.subtract=Ule;Ct.toArray=yse;Ct.toObject=Sse;Ct.toDate=bse;Ct.toISOString=lse;Ct.inspect=sse;typeof Symbol<"u"&&Symbol.for!=null&&(Ct[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Ct.toJSON=xse;Ct.toString=ose;Ct.unix=pse;Ct.valueOf=gse;Ct.creationData=_se;Ct.eraName=Rse;Ct.eraNarrow=Nse;Ct.eraAbbr=Mse;Ct.eraYear=jse;Ct.year=jP;Ct.isLeapYear=loe;Ct.weekYear=Lse;Ct.isoWeekYear=Hse;Ct.quarter=Ct.quarters=Wse;Ct.month=AP;Ct.daysInMonth=boe;Ct.week=Ct.weeks=Eoe;Ct.isoWeek=Ct.isoWeeks=Ooe;Ct.weeksInYear=Vse;Ct.weeksInWeekYear=Kse;Ct.isoWeeksInYear=Bse;Ct.isoWeeksInISOWeekYear=Fse;Ct.date=l4;Ct.day=Ct.days=Hoe;Ct.weekday=Boe;Ct.isoWeekday=Foe;Ct.dayOfYear=qse;Ct.hour=Ct.hours=Goe;Ct.minute=Ct.minutes=Yse;Ct.second=Ct.seconds=Gse;Ct.millisecond=Ct.milliseconds=s4;Ct.utcOffset=Mle;Ct.utc=Tle;Ct.local=Dle;Ct.parseZone=Ple;Ct.hasAlignedHourOffset=kle;Ct.isDST=Ale;Ct.isLocal=Lle;Ct.isUtcOffset=Hle;Ct.isUtc=XP;Ct.isUTC=XP;Ct.zoneAbbr=Qse;Ct.zoneName=Zse;Ct.dates=Ii("dates accessor is deprecated. Use date instead.",l4);Ct.months=Ii("months accessor is deprecated. Use month instead",AP);Ct.years=Ii("years accessor is deprecated. Use year instead",jP);Ct.zone=Ii("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",jle);Ct.isDSTShifted=Ii("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zle);function Jse(e){return Ir(e*1e3)}function ece(){return Ir.apply(null,arguments).parseZone()}function c4(e){return e}var tr=n1.prototype;tr.calendar=Lie;tr.longDateFormat=Vie;tr.invalidDate=Uie;tr.ordinal=Yie;tr.preparse=c4;tr.postformat=c4;tr.relativeTime=Xie;tr.pastFuture=Qie;tr.set=Aie;tr.eras=Ese;tr.erasParse=Ose;tr.erasConvertYear=Ise;tr.erasAbbrRegex=Dse;tr.erasNameRegex=Tse;tr.erasNarrowRegex=Pse;tr.months=hoe;tr.monthsShort=voe;tr.monthsParse=poe;tr.monthsRegex=Soe;tr.monthsShortRegex=yoe;tr.week=Coe;tr.firstDayOfYear=_oe;tr.firstDayOfWeek=$oe;tr.weekdays=Poe;tr.weekdaysMin=Aoe;tr.weekdaysShort=koe;tr.weekdaysParse=Loe;tr.weekdaysRegex=Voe;tr.weekdaysShortRegex=Koe;tr.weekdaysMinRegex=Uoe;tr.isPM=qoe;tr.meridiem=Xoe;function Dv(e,t,n,r){var a=Jo(),o=go().set(r,t);return a[n](o,e)}function u4(e,t,n){if(Qo(e)&&(t=e,e=void 0),e=e||"",t!=null)return Dv(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Dv(e,r,n,"month");return a}function S1(e,t,n,r){typeof e=="boolean"?(Qo(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Qo(t)&&(n=t,t=void 0),t=t||"");var a=Jo(),o=e?a._week.dow:0,c,u=[];if(n!=null)return Dv(t,(n+o)%7,r,"day");for(c=0;c<7;c++)u[c]=Dv(t,(c+o)%7,r,"day");return u}function tce(e,t){return u4(e,t,"months")}function nce(e,t){return u4(e,t,"monthsShort")}function rce(e,t,n){return S1(e,t,n,"weekdays")}function ace(e,t,n){return S1(e,t,n,"weekdaysShort")}function ice(e,t,n){return S1(e,t,n,"weekdaysMin")}Ll("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}});Ft.lang=Ii("moment.lang is deprecated. Use moment.locale instead.",Ll);Ft.langData=Ii("moment.langData is deprecated. Use moment.localeData instead.",Jo);var Do=Math.abs;function oce(){var e=this._data;return this._milliseconds=Do(this._milliseconds),this._days=Do(this._days),this._months=Do(this._months),e.milliseconds=Do(e.milliseconds),e.seconds=Do(e.seconds),e.minutes=Do(e.minutes),e.hours=Do(e.hours),e.months=Do(e.months),e.years=Do(e.years),this}function d4(e,t,n,r){var a=Zi(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function lce(e,t){return d4(this,e,t,1)}function sce(e,t){return d4(this,e,t,-1)}function yR(e){return e<0?Math.floor(e):Math.ceil(e)}function cce(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,a,o,c,u,f;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=yR(lx(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,a=Ci(e/1e3),r.seconds=a%60,o=Ci(a/60),r.minutes=o%60,c=Ci(o/60),r.hours=c%24,t+=Ci(c/24),f=Ci(f4(t)),n+=f,t-=yR(lx(f)),u=Ci(n/12),n%=12,r.days=t,r.months=n,r.years=u,this}function f4(e){return e*4800/146097}function lx(e){return e*146097/4800}function uce(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Ri(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+f4(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(lx(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 el(e){return function(){return this.as(e)}}var m4=el("ms"),dce=el("s"),fce=el("m"),mce=el("h"),hce=el("d"),vce=el("w"),gce=el("M"),pce=el("Q"),bce=el("y"),yce=m4;function Sce(){return Zi(this)}function xce(e){return e=Ri(e),this.isValid()?this[e+"s"]():NaN}function Vs(e){return function(){return this.isValid()?this._data[e]:NaN}}var Cce=Vs("milliseconds"),wce=Vs("seconds"),$ce=Vs("minutes"),_ce=Vs("hours"),Ece=Vs("days"),Oce=Vs("months"),Ice=Vs("years");function Rce(){return Ci(this.days()/7)}var ko=Math.round,Bc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Nce(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function Mce(e,t,n,r){var a=Zi(e).abs(),o=ko(a.as("s")),c=ko(a.as("m")),u=ko(a.as("h")),f=ko(a.as("d")),d=ko(a.as("M")),h=ko(a.as("w")),v=ko(a.as("y")),g=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||c<=1&&["m"]||c<n.m&&["mm",c]||u<=1&&["h"]||u<n.h&&["hh",u]||f<=1&&["d"]||f<n.d&&["dd",f];return n.w!=null&&(g=g||h<=1&&["w"]||h<n.w&&["ww",h]),g=g||d<=1&&["M"]||d<n.M&&["MM",d]||v<=1&&["y"]||["yy",v],g[2]=t,g[3]=+e>0,g[4]=r,Nce.apply(null,g)}function jce(e){return e===void 0?ko:typeof e=="function"?(ko=e,!0):!1}function Tce(e,t){return Bc[e]===void 0?!1:t===void 0?Bc[e]:(Bc[e]=t,e==="s"&&(Bc.ss=t-1),!0)}function Dce(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Bc,a,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Bc,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),o=Mce(this,!n,r,a),n&&(o=a.pastFuture(+this,o)),a.postformat(o)}var dy=Math.abs;function jc(e){return(e>0)-(e<0)||+e}function Kg(){if(!this.isValid())return this.localeData().invalidDate();var e=dy(this._milliseconds)/1e3,t=dy(this._days),n=dy(this._months),r,a,o,c,u=this.asSeconds(),f,d,h,v;return u?(r=Ci(e/60),a=Ci(r/60),e%=60,r%=60,o=Ci(n/12),n%=12,c=e?e.toFixed(3).replace(/\.?0+$/,""):"",f=u<0?"-":"",d=jc(this._months)!==jc(u)?"-":"",h=jc(this._days)!==jc(u)?"-":"",v=jc(this._milliseconds)!==jc(u)?"-":"",f+"P"+(o?d+o+"Y":"")+(n?d+n+"M":"")+(t?h+t+"D":"")+(a||r||e?"T":"")+(a?v+a+"H":"")+(r?v+r+"M":"")+(e?v+c+"S":"")):"P0D"}var qn=Fg.prototype;qn.isValid=Ole;qn.abs=oce;qn.add=lce;qn.subtract=sce;qn.as=uce;qn.asMilliseconds=m4;qn.asSeconds=dce;qn.asMinutes=fce;qn.asHours=mce;qn.asDays=hce;qn.asWeeks=vce;qn.asMonths=gce;qn.asQuarters=pce;qn.asYears=bce;qn.valueOf=yce;qn._bubble=cce;qn.clone=Sce;qn.get=xce;qn.milliseconds=Cce;qn.seconds=wce;qn.minutes=$ce;qn.hours=_ce;qn.days=Ece;qn.weeks=Rce;qn.months=Oce;qn.years=Ice;qn.humanize=Dce;qn.toISOString=Kg;qn.toString=Kg;qn.toJSON=Kg;qn.locale=e4;qn.localeData=n4;qn.toIsoString=Ii("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Kg);qn.lang=t4;sn("X",0,0,"unix");sn("x",0,0,"valueOf");qt("x",zg);qt("X",toe);pr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});pr("x",function(e,t,n){n._d=new Date(Vn(e))});//! moment.js
Ft.version="2.30.1";Pie(Ir);Ft.fn=Ct;Ft.min=wle;Ft.max=$le;Ft.now=_le;Ft.utc=go;Ft.unix=Jse;Ft.months=tce;Ft.isDate=Gf;Ft.locale=Ll;Ft.invalid=Dg;Ft.duration=Zi;Ft.isMoment=Ui;Ft.weekdays=rce;Ft.parseZone=ece;Ft.localeData=Jo;Ft.isDuration=ov;Ft.monthsShort=nce;Ft.weekdaysMin=ice;Ft.defineLocale=f1;Ft.updateLocale=ele;Ft.locales=tle;Ft.weekdaysShort=ace;Ft.normalizeUnits=Ri;Ft.relativeTimeRounding=jce;Ft.relativeTimeThreshold=Tce;Ft.calendarFormat=Xle;Ft.prototype=Ct;Ft.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:Pce}=Wl,{Option:fy}=Rt,SR=[{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"}],kce=[{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"}],Ace=[{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"}],zce=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),[o,c]=s.useState(void 0),{idToken:u,serverUrl:f}=Dn(),d=s.useRef(null);s.useEffect(()=>{t&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[t]);const h=b=>{c(b),e.setFieldsValue({attribute_value:void 0})},v=async b=>{a(!0);const S=b.id?b.id:b.tags?JSON.stringify(b.tags):void 0;try{if(S==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 $=Ft(C);C=Math.floor($.valueOf()/1e3).toString()}const y=wae(S,b.attribute_name,C),w=await dr(y,u,f);if(w){const $=$ae(w);n(`Attribute has been set for ${$.UniqueIdentifier}`)}}catch(C){n(`Error setting attribute: ${C}`),console.error("Error setting attribute:",C)}finally{a(!1)}},g=()=>{if(!o)return x.jsx(yt,{placeholder:"First select an attribute name",disabled:!0});switch(o){case"activation_date":return x.jsx(fe.Item,{name:"attribute_value",label:"Activation Date",rules:[{required:!0,message:"Please select activation date"}],children:x.jsx(Bs,{showTime:!0,style:{width:"100%"}})});case"cryptographic_algorithm":return x.jsx(fe.Item,{name:"attribute_value",label:"Cryptographic Algorithm",rules:[{required:!0,message:"Please select an algorithm"}],children:x.jsx(Rt,{placeholder:"Select algorithm",children:kce.map(b=>x.jsx(fy,{value:b.value,children:b.label},b.value))})});case"cryptographic_length":return x.jsx(fe.Item,{name:"attribute_value",label:"Cryptographic Length",rules:[{required:!0,message:"Please enter length"}],children:x.jsx(yt,{type:"number",placeholder:"Enter length in bits"})});case"key_usage":return x.jsx(fe.Item,{name:"attribute_value",label:"Key Usage",rules:[{required:!0,message:"Please select key usage"}],children:x.jsx(Rt,{placeholder:"Select key usage",children:Ace.map(b=>x.jsx(fy,{value:b.value,children:b.label},b.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 x.jsx(fe.Item,{name:"attribute_value",label:`${SR.find(b=>b.value===o)?.label} Value`,rules:[{required:!0,message:"Please enter ID value"}],children:x.jsx(yt,{placeholder:"Enter ID value"})});default:return x.jsx(fe.Item,{name:"attribute_value",label:"Attribute Value",rules:[{required:!0,message:"Please enter attribute value"}],children:x.jsx(yt,{placeholder:"Enter attribute value"})})}};return x.jsxs("div",{className:"p-6",children:[x.jsx(Pce,{level:2,children:"Set KMIP Object Attribute"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("div",{children:"Set a single attribute for a KMIP object by specifying the object ID or tags."}),x.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."})]}),x.jsx(fe,{form:e,onFinish:v,layout:"vertical",initialValues:{},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{title:"Object Identification",children:[x.jsx("div",{className:"mb-5",children:"Specify either the Object ID or one or more tags to identify the object."}),x.jsx(fe.Item,{name:"id",label:"Object ID",help:"The unique identifier of the cryptographic object",children:x.jsx(yt,{placeholder:"Enter object ID"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Tags to use to retrieve the object when no object ID is specified",children:x.jsx(Rt,{mode:"tags",style:{width:"100%"},placeholder:"Enter tags",tokenSeparators:[","]})})]}),x.jsxs(rt,{title:"Attribute Setting",children:[x.jsx("div",{className:"mb-5",children:"Select one attribute to set for the selected KMIP object."}),x.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:x.jsx(Rt,{placeholder:"Select attribute name",onChange:h,children:SR.map(b=>x.jsx(fy,{value:b.value,children:b.label},b.value))})}),g()]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Set Attribute"})})]})}),t&&x.jsx(rt,{children:x.jsx("div",{ref:d,children:t})})]})},Lce=[{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"}],Hce=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),[o,c]=s.useState("csr"),{idToken:u,serverUrl:f}=Dn(),d=s.useRef(null);s.useEffect(()=>{t&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[t]);const h=g=>{c(g.target.value),e.resetFields(["certificateSigningRequest","publicKeyIdToCertify","certificateIdToReCertify","generateKeyPair","subjectName","algorithm","issuerPrivateKeyId","issuerCertificateId","certificateExtensions"]),g.target.value==="generate"&&e.setFieldValue("generateKeyPair",!0)},v=async g=>{a(!0),n(void 0);try{const b=yae(g.certificateId,g.csrFormat,g.certificateSigningRequest,g.publicKeyIdToCertify,g.certificateIdToReCertify,g.generateKeyPair,g.subjectName,g.algorithm,g.issuerPrivateKeyId,g.issuerCertificateId,g.numberOfDays,g.certificateExtensions,g.tags),S=await dr(b,u,f);if(S){const C=await Sae(S);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 x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Certificate Issuance and Renewal"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Issue or renew an X509 certificate using one of four methods:"}),x.jsxs("ol",{className:"list-decimal ml-5",children:[x.jsx("li",{children:"Provide a Certificate Signing Request (CSR)"}),x.jsx("li",{children:"Provide a public key ID to certify"}),x.jsx("li",{children:"Provide the ID of an existing certificate to re-certify"}),x.jsx("li",{children:"Generate a new keypair and create a certificate"})]})]}),x.jsx(fe,{form:e,onFinish:v,layout:"vertical",initialValues:{csrFormat:"pem",algorithm:"rsa4096",numberOfDays:365,generateKeyPair:!1,tags:[]},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate ID (Optional)"}),x.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:x.jsx(yt,{placeholder:"Enter certificate ID"})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Certification Method"}),x.jsx(Sa.Group,{onChange:h,value:o,children:x.jsxs(zn,{direction:"vertical",children:[x.jsx(Sa,{value:"csr",children:"1. Certificate Signing Request (CSR)"}),x.jsx(Sa,{value:"publicKey",children:"2. Public Key ID to Certify"}),x.jsx(Sa,{value:"reCertify",children:"3. Certificate ID to Re-certify"}),x.jsx(Sa,{value:"generate",children:"4. Generate New Keypair"})]})}),o==="csr"&&x.jsxs("div",{className:"mt-4",children:[x.jsx(fe.Item,{name:"certificateSigningRequest",label:"Certificate Signing Request",rules:[{required:!0,message:"Please upload a CSR file"}],children:x.jsx($a.Dragger,{beforeUpload:g=>{const b=new FileReader;return b.onload=S=>{const C=S.target?.result;if(C&&C instanceof ArrayBuffer){const y=new Uint8Array(C);e.setFieldsValue({certificateSigningRequest:y})}},b.readAsArrayBuffer(g),!1},maxCount:1,children:x.jsx("p",{className:"ant-upload-text",children:"Click or drag CSR file to this area"})})}),x.jsx(fe.Item,{name:"csrFormat",label:"CSR Format",rules:[{required:!0}],children:x.jsxs(Sa.Group,{children:[x.jsx(Sa,{value:"pem",children:"PEM"}),x.jsx(Sa,{value:"der",children:"DER"})]})})]}),o==="publicKey"&&x.jsxs("div",{className:"mt-4",children:[x.jsx(fe.Item,{name:"publicKeyIdToCertify",label:"Public Key ID to Certify",rules:[{required:!0,message:"Please enter a public key ID"}],children:x.jsx(yt,{placeholder:"Enter public key ID"})}),x.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:x.jsx(yt,{placeholder:"CN=John Doe,OU=Org Unit,O=Org Name,L=City,ST=State,C=US"})})]}),o==="reCertify"&&x.jsx("div",{className:"mt-4",children:x.jsx(fe.Item,{name:"certificateIdToReCertify",label:"Certificate ID to Re-certify",rules:[{required:!0,message:"Please enter a certificate ID"}],children:x.jsx(yt,{placeholder:"Enter certificate ID to re-certify"})})}),o==="generate"&&x.jsxs("div",{className:"mt-4",children:[x.jsx(fe.Item,{name:"generateKeyPair",valuePropName:"checked",hidden:!0,children:x.jsx(qr,{children:"Generate Key Pair"})}),x.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:x.jsx(yt,{placeholder:"CN=John Doe,OU=Org Unit,O=Org Name,L=City,ST=State,C=US"})}),x.jsx(fe.Item,{name:"algorithm",label:"Key Algorithm",rules:[{required:!0,message:"Please select an algorithm"}],children:x.jsx(Rt,{options:Lce})})]})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Issuer Information"}),x.jsx("p",{className:"text-sm mb-4",children:"If no issuer is provided, the certificate will be self-signed (not valid for CSR)."}),x.jsx(fe.Item,{name:"issuerPrivateKeyId",label:"Issuer Private Key ID",help:"The unique identifier of the private key of the issuer",children:x.jsx(yt,{placeholder:"Enter issuer private key ID"})}),x.jsx(fe.Item,{name:"issuerCertificateId",label:"Issuer Certificate ID",help:"The unique identifier of the certificate of the issuer",children:x.jsx(yt,{placeholder:"Enter issuer certificate ID"})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate Options"}),x.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:x.jsx(yt,{type:"number",min:1})}),x.jsx(fe.Item,{name:"certificateExtensions",label:"X509 Extensions File",help:"File containing a 'v3_ca' paragraph with X509 extensions",children:x.jsx($a.Dragger,{beforeUpload:g=>{const b=new FileReader;return b.onload=S=>{const C=S.target?.result;if(C&&C instanceof ArrayBuffer){const y=new Uint8Array(C);e.setFieldsValue({certificateExtensions:y})}},b.readAsArrayBuffer(g),!1},maxCount:1,children:x.jsx("p",{className:"ant-upload-text",children:"Click or drag extensions file to this area"})})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Tags to associate with the certificate (optional)",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Issue/Renew Certificate"})})]})}),t&&x.jsx("div",{ref:d,children:x.jsx(rt,{title:"Certificate Response",children:t})})]})},Bce=[{label:"RSA PKCS #1 v1.5 (Legacy)",value:"CkmRsaPkcs"},{label:"RSA OAEP (Recommended)",value:"CkmRsaPkcsOaep"},{label:"RSA AES Key Wrap",value:"CkmRsaAesKeyWrap"}],Fce=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null);s.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 v=bae(h,d.inputFile,d.authenticationData,d.encryptionAlgorithm),g=await dr(v,o,c);if(g){const b=await qf(g),S=d.fileName.slice(0,-4),y=S.lastIndexOf(".")!==-1?S:`${S}.plain`,w=Wf(y);Uf(b.Data,y,w),n("File has been decrypted")}}catch(v){n(`Error decrypting: ${v}`),console.error("Error decrypting:",v)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Certificate Decryption"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Decrypt a file using the private key of a certificate."}),x.jsx("p",{children:"The private key can be identified using either its ID or associated tags."}),x.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),x.jsx(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{encryptionAlgorithm:"CkmRsaPkcsOaep"},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),x.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:x.jsx(yt,{})}),x.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to decrypt"}],children:x.jsx($a.Dragger,{beforeUpload:d=>{e.setFieldValue("fileName",d.name);const h=new FileReader;return h.onload=v=>{const g=v.target?.result;if(g&&g instanceof ArrayBuffer){const b=new Uint8Array(g);e.setFieldsValue({inputFile:b})}},h.readAsArrayBuffer(d),!1},maxCount:1,children:x.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to decrypt"})})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Private Key Identification (required)"}),x.jsx(fe.Item,{name:"privateKeyId",label:"Private Key ID",help:"The unique identifier of the private key related to certificate",children:x.jsx(yt,{placeholder:"Enter private key ID"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),x.jsxs(rt,{children:[x.jsx(fe.Item,{name:"encryptionAlgorithm",label:"Encryption Algorithm",help:"Optional: This is only available for RSA keys (default is PKCS_OAEP)",children:x.jsx(Rt,{options:Bce})}),x.jsx(fe.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional: Authentication data that was supplied during encryption",children:x.jsx(yt,{placeholder:"Enter authentication data"})}),x.jsx(fe.Item,{name:"outputFile",label:"Output File Path",help:"Optional: Specify a custom output file path",children:x.jsx(yt,{placeholder:"Enter output file path"})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Decrypt File"})})]})}),t&&x.jsx("div",{ref:u,children:x.jsx(rt,{title:"Certificate decrypt response",children:t})})]})},Vce=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null);s.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 v=pae(h,d.inputFile,d.authenticationData,d.encryptionAlgorithm),g=await dr(v,o,c);if(g){const b=await Yf(g),S=new Uint8Array(b.Data),C="application/octet-stream";let y;d.outputFile?y=d.outputFile:y=`${d.fileName}.enc`,Fs(S,y,C),n("File has been encrypted")}}catch(v){n(`Error encrypting: ${v}`),console.error("Error encrypting with certificate:",v)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Certificate Encryption"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Encrypt a file using the certificate public key."}),x.jsx("p",{children:"The certificate can be identified using either its ID or associated tags."}),x.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),x.jsx(fe,{form:e,onFinish:f,layout:"vertical",className:"space-y-6",initialValues:{encryptionAlgorithm:"CkmRsaPkcsOaep"},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),x.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:x.jsx(yt,{})}),x.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to encrypt"}],children:x.jsx($a.Dragger,{beforeUpload:d=>{e.setFieldValue("fileName",d.name);const h=new FileReader;return h.onload=v=>{const g=v.target?.result;if(g&&g instanceof ArrayBuffer){const b=new Uint8Array(g);e.setFieldsValue({inputFile:b})}},h.readAsArrayBuffer(d),!1},maxCount:1,children:x.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to encrypt"})})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate Identification (required)"}),x.jsx(fe.Item,{name:"certificateId",label:"Certificate ID",help:"The unique identifier of the certificate",children:x.jsx(yt,{placeholder:"Enter certificate ID"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Certificate ID: specify tags to identify the certificate",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Encryption Options"}),x.jsx(fe.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional: this data needs to be provided back for decryption",children:x.jsx(yt.TextArea,{placeholder:"Enter authentication data",rows:2})}),x.jsx(fe.Item,{name:"encryptionAlgorithm",label:"Encryption Algorithm",help:"Optional: only available for RSA keys. Default is PKCS#1 RSA OAEP",children:x.jsxs(Sa.Group,{children:[x.jsx(Sa,{value:"CkmRsaPkcsOaep",children:"PKCS#1 RSA OAEP"}),x.jsx(Sa,{value:"CkmRsaPkcs",children:"PKCS#1 v1.5 RSA"}),x.jsx(Sa,{value:"CkmRsaAesKeyWrap",children:"RSA AES Key Wrap"})]})}),x.jsx(fe.Item,{name:"outputFile",label:"Output File Path",help:"Optional: specify a custom output file path",children:x.jsx(yt,{placeholder:"Enter output file path"})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Encrypt File with Certificate"})})]})}),t&&x.jsx("div",{ref:u,children:x.jsx(rt,{title:"Certificate encrypt response",children:t})})]})},Kce={JsonTtlv:"json",Pem:"pem",Pkcs12:"p12",Pkcs12Legacy:"p12",Pkcs7:"p7b"},Uce=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),[o,c]=s.useState("JsonTtlv"),{idToken:u,serverUrl:f}=Dn(),d=s.useRef(null);s.useEffect(()=>{t&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[t]);const h=b=>{c(b)},v=async b=>{a(!0),n(void 0);const S=b.certificateId?b.certificateId:b.tags?JSON.stringify(b.tags):void 0;try{if(S==null)throw n("Missing certificate identifier."),Error("Missing certificate identifier");const C=mae(S,b.outputFormat,b.pkcs12Password),y=await dr(C,u,f);if(y){const w=await hae(y,b.outputFormat),$=`certificate_${S}.${Kce[b.outputFormat]}`;let _;switch(b.outputFormat){case"JsonTtlv":_="application/json";break;case"Pem":_="application/x-pem-file";break;case"Pkcs12":case"Pkcs12Legacy":_="application/x-pkcs12";break;case"Pkcs7":_="application/x-pkcs7-certificates";break;default:_="application/octet-stream"}Fs(w,$,_),n("Certificate has been exported")}}catch(C){n(`Error exporting certificate: ${C}`),console.error("Error exporting certificate:",C)}finally{a(!1)}},g=[{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 x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Export Certificate"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Export a certificate from the KMS. The certificate can be identified using either its ID or associated tags."}),x.jsx("p",{children:"For PKCS#12 formats, provide the private key ID instead of certificate ID."}),x.jsx("p",{className:"text-sm text-yellow-600",children:"Note: PKCS12-legacy format is not available in FIPS mode."})]}),x.jsx(fe,{form:e,onFinish:v,layout:"vertical",initialValues:{outputFormat:"JsonTtlv"},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate Identification (required)"}),x.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:x.jsx(yt,{placeholder:"Enter certificate ID"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Certificate ID: specify tags to identify the certificate",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),x.jsx(rt,{children:x.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:x.jsx(Rt,{options:g,onChange:h})})}),(o==="Pkcs12"||o==="Pkcs12Legacy")&&x.jsx(rt,{children:x.jsx(fe.Item,{name:"pkcs12Password",label:"PKCS#12 Password",help:"Password to protect the PKCS#12 file",rules:[{required:!0}],children:x.jsx(yt.Password,{placeholder:"Enter password for PKCS#12"})})}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Export Certificate"})})]})}),t&&x.jsx("div",{ref:d,children:x.jsx(rt,{title:"Certificate export response",children:t})})]})},Wce=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),[o,c]=s.useState("JsonTtlv"),{idToken:u,serverUrl:f}=Dn(),d=s.useRef(null);s.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=fae(y.certificateId,y.certificateFile,y.inputFormat,y.privateKeyId,y.publicKeyId,y.issuerCertificateId,y.pkcs12Password,y.replaceExisting,y.tags,y.keyUsage),$=await dr(w,u,f);if($){const _=await XC($);n(`Certificate has been imported - imported object id: ${_.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)}},v=[{label:"JSON TTLV (default)",value:"JsonTtlv"},{label:"X509 PEM",value:"Pem"},{label:"X509 DER",value:"Der"},{label:"PKCS#12",value:"Pkcs12"}],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"}],b=y=>{c(y)},S=o==="Pkcs12",C=!["Pkcs12"].includes(o);return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Import Certificate"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Import a certificate or PKCS#12 file, into the KMS."}),x.jsx("p",{children:"When no unique ID is specified, a unique ID based on the key material will be generated."})]}),x.jsx(fe,{form:e,onFinish:h,layout:"vertical",initialValues:{inputFormat:"JsonTtlv",replaceExisting:!1,tags:[]},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx(fe.Item,{name:"inputFormat",label:"Certificate Format",help:"Format of the certificate to import",rules:[{required:!0}],children:x.jsx(Rt,{options:v,onChange:y=>b(y)})}),x.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:x.jsx($a,{beforeUpload:y=>{const w=new FileReader;return w.onload=$=>{const _=$.target?.result;if(_&&_ instanceof ArrayBuffer){const O=new Uint8Array(_);e.setFieldsValue({certificateFile:O})}},w.readAsArrayBuffer(y),!1},maxCount:1,children:x.jsx(gn,{icon:x.jsx(xP,{}),children:"Upload Certificate File"})})}),x.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:x.jsx(yt,{placeholder:"Enter certificate ID"})}),S&&x.jsx(fe.Item,{name:"pkcs12Password",label:"PKCS#12 Password",rules:[{required:!0}],help:"Password for the PKCS#12 file",children:x.jsx(yt.Password,{placeholder:"Enter PKCS#12 password"})})]}),C&&x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate Relationships"}),x.jsx(fe.Item,{name:"privateKeyId",label:"Private Key ID",help:"Link to corresponding private key in KMS",children:x.jsx(yt,{placeholder:"Enter private key ID"})}),x.jsx(fe.Item,{name:"publicKeyId",label:"Public Key ID",help:"Link to corresponding public key in KMS",children:x.jsx(yt,{placeholder:"Enter public key ID"})}),x.jsx(fe.Item,{name:"issuerCertificateId",label:"Issuer Certificate ID",help:"Link to issuer certificate in KMS",children:x.jsx(yt,{placeholder:"Enter issuer certificate ID"})})]}),x.jsxs(rt,{children:[x.jsx(fe.Item,{name:"keyUsage",label:"Key Usage",help:"Specify allowed operations for this certificate",children:x.jsx(Rt,{mode:"multiple",options:g,placeholder:"Select key usage"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Optional: Add tags to help retrieve the certificate later",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})}),x.jsx(fe.Item,{name:"replaceExisting",valuePropName:"checked",help:"Replace an existing certificate with the same ID",children:x.jsx(qr,{children:"Replace existing certificate"})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Import Certificate"})})]})}),t&&x.jsx("div",{ref:d,children:x.jsx(rt,{title:"Certificate import response",children:t})})]})},qce=()=>{const[e]=fe.useForm(),[t,n]=s.useState(!1),[r,a]=s.useState(void 0),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null);s.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,v=vae(d.uniqueIdentifier,h),g=await dr(v,o,c);if(g){const b=await gae(g);a(`Validation Status: ${b.ValidityIndicator}`)}}catch(h){a(`Error validating certificate: ${h}`),console.error("Error validating certificate:",h)}finally{n(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Validate Certificates"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Validate certificate chains to ensure they are properly signed, complete, and valid."}),x.jsx("p",{children:"You can specify certificate IDs stored in the KMS."})]}),x.jsx(fe,{form:e,onFinish:f,layout:"vertical",children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate Input"}),x.jsx(fe.Item,{name:"uniqueIdentifier",label:"Certificate Unique Identifier",help:"Unique identifier of certificate stored in the KMS",rules:[{required:!0}],children:x.jsx(yt,{placeholder:"Enter certificate ID"})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Validation Parameters"}),x.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:x.jsx(Bs,{showTime:!0,format:"YYYY-MM-DD HH:mm:ss"})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:t,className:"w-full text-white font-medium",children:"Validate Certificate"})})]})}),r&&x.jsx("div",{ref:u,children:x.jsx(rt,{title:"Validation Results",children:r})})]})},Yce=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null);s.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 v=dae(h,d.inputFile,d.authenticationData),g=await dr(v,o,c);if(g){const b=await qf(g),S=new Uint8Array(b.Data),C=d.fileName.slice(0,-4),w=C.lastIndexOf(".")!==-1?C:`${C}.plain`,$=Wf(w);Uf(S,w,$),n("File has been decrypted")}}catch(v){n(`Error decrypting: ${v}`),console.error("Error decrypting:",v)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Covercrypt Decryption"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Decrypt a file using Covercrypt."}),x.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),x.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),x.jsx(fe,{form:e,onFinish:f,layout:"vertical",children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),x.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:x.jsx(yt,{})}),x.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to decrypt"}],children:x.jsx($a.Dragger,{beforeUpload:d=>{e.setFieldValue("fileName",d.name);const h=new FileReader;return h.onload=v=>{const g=v.target?.result;if(g&&g instanceof ArrayBuffer){const b=new Uint8Array(g);e.setFieldsValue({inputFile:b})}},h.readAsArrayBuffer(d),!1},maxCount:1,children:x.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to decrypt"})})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),x.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the user decryption key",children:x.jsx(yt,{placeholder:"Enter key ID"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Additional Options"}),x.jsx(fe.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional: authentication data that was supplied during encryption",children:x.jsx(yt.TextArea,{placeholder:"Enter authentication data",rows:2})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Decrypt File"})})]})}),t&&x.jsx("div",{ref:u,children:x.jsx(rt,{title:"Covercrypt decrypt response",children:t})})]})},Gce=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null);s.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 v=uae(h,d.encryptionPolicy,d.inputFile,d.authenticationData),g=await dr(v,o,c);if(g){const b=await Yf(g),S=new Uint8Array(b.Data),C="application/octet-stream",y=`${d.fileName}.enc`;Fs(S,y,C),n("File has been encrypted")}}catch(v){n(`Error encrypting: ${v}`),console.error("Error encrypting:",v)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Covercrypt Encryption"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Encrypt a file using Covercrypt."}),x.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),x.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),x.jsx(fe,{form:e,onFinish:f,layout:"vertical",children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),x.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:x.jsx(yt,{})}),x.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to encrypt"}],children:x.jsx($a.Dragger,{beforeUpload:d=>{e.setFieldValue("fileName",d.name);const h=new FileReader;return h.onload=v=>{const g=v.target?.result;if(g&&g instanceof ArrayBuffer){const b=new Uint8Array(g);e.setFieldsValue({inputFile:b})}},h.readAsArrayBuffer(d),!1},maxCount:1,children:x.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to encrypt"})})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Encryption Policy (required)"}),x.jsx(fe.Item,{name:"encryptionPolicy",rules:[{required:!0,message:"Please enter an encryption policy"}],help:"Example: Department::HR && Security Level::Confidential",children:x.jsx(yt.TextArea,{placeholder:"Enter encryption policy",rows:2})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),x.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the master public key",children:x.jsx(yt,{placeholder:"Enter key ID"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Additional Options"}),x.jsx(fe.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional: this data needs to be provided back for decryption",children:x.jsx(yt.TextArea,{placeholder:"Enter authentication data",rows:2})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Encrypt File"})})]})}),t&&x.jsx("div",{ref:u,children:x.jsx(rt,{title:"Covercrypt encrypt response",children:t})})]})},Xce=`{
    "Security Level::<": [
        "Protected",
        "Confidential",
        "Top Secret::+"
    ],
    "Department": [
        "R&D",
        "HR",
        "MKG",
        "FIN"
    ]
}`,Qce=()=>{const[e]=fe.useForm(),[t,n]=xe.useState("json-file"),[r,a]=s.useState(void 0),[o,c]=s.useState(!1),{idToken:u,serverUrl:f}=Dn(),d=s.useRef(null);s.useEffect(()=>{r&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[r]);const h=async g=>{c(!0),a(void 0);try{const b=sae(g.specification,g.tags,g.sensitive,g.wrappingKeyId),S=await dr(b,u,f);if(S){const C=await YC(S);a(`Key pair has been created. Private key Id: ${C.PrivateKeyUniqueIdentifier} - Public key Id: ${C.PublicKeyUniqueIdentifier}`)}}catch(b){a(`${b}`),console.error(b)}finally{c(!1)}},v=()=>x.jsxs("div",{className:"mt-2 space-y-1",children:[x.jsx("p",{className:"font-medium",children:"This example creates a specification with:"}),x.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[x.jsxs("li",{children:["Two specification axes: ",x.jsx("code",{children:"Security Level"})," and ",x.jsx("code",{children:"Department"})]}),x.jsxs("li",{children:["Hierarchical ",x.jsx("code",{children:"Security Level"})," axis (indicated by ",x.jsx("code",{children:"::<"})," suffix)"]}),x.jsx("li",{children:"Three security levels: Protected, Confidential, and Top Secret"}),x.jsx("li",{children:"Four departments: R&D, HR, MKG, and FIN"}),x.jsxs("li",{children:["Post-quantum encryption for Top Secret level (indicated by ",x.jsx("code",{children:"::+"})," suffix)"]}),x.jsx("li",{children:"Classic cryptography for other levels"})]})]});return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold  mb-6",children:"Create a Covercrypt master key pair"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Create a new master key pair for a given specification."}),x.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[x.jsx("li",{children:"The master public key is used to encrypt files and can be safely shared"}),x.jsx("li",{children:"The master secret key is used to generate user decryption keys and must be kept confidential"})]})]}),x.jsx(fe,{form:e,onFinish:h,layout:"vertical",initialValues:{sensitive:!1,tags:[]},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsxs("div",{className:"p-4 rounded-lg space-y-4",children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Specification Configuration (required)"}),x.jsx(fe.Item,{name:"specification",style:{display:"none"},children:x.jsx(yt,{})}),x.jsx(fe.Item,{children:x.jsx(Rt,{value:t,onChange:g=>n(g),options:[{label:"Upload JSON Specification File",value:"json-file"},{label:"Enter JSON Specification",value:"json-text"}]})}),t==="json-file"&&x.jsx(fe.Item,{name:"specificationFile",rules:[{required:!0,message:"Please provide specifications"}],children:x.jsx($a.Dragger,{accept:".json",beforeUpload:g=>{const b=new FileReader;return b.onload=S=>{const C=S.target?.result;C&&e.setFieldsValue({specification:C})},b.readAsText(g),!1},maxCount:1,children:x.jsx("p",{className:"ant-upload-text",children:"Click or drag JSON specification file"})})}),t==="json-text"&&x.jsx(fe.Item,{name:"specificationText",rules:[{required:!0,message:"Please enter specification JSON"},{validator:async(g,b)=>{if(b)try{JSON.parse(b),e.setFieldValue("specification",b)}catch(S){throw new Error(`Invalid JSON format: ${S}`)}}}],children:x.jsx(yt.TextArea,{placeholder:"Paste your JSON Specification here",rows:10,className:"font-mono text-sm"})})]}),x.jsxs("div",{className:"p-4 rounded mb-4",children:[x.jsx("p",{className:"text-sm mb-2",children:"Example Specification Format:"}),x.jsx("pre",{className:"p-2 rounded text-xs overflow-auto",children:Xce}),x.jsx(v,{})]}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Optional tags to help retrieve the keys later",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})}),x.jsx(fe.Item,{name:"wrappingKeyId",label:"Wrapping Key ID",help:"Optional: ID of the key to wrap this new key with",children:x.jsx(yt,{placeholder:"Enter wrapping key ID"})}),x.jsx(fe.Item,{name:"sensitive",valuePropName:"checked",help:"If enabled, the private key will not be exportable",children:x.jsx(qr,{children:x.jsx("span",{children:"Sensitive Key"})})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:o,className:"w-full text-white font-medium",children:"Create Master Key pair"})})]})}),r&&x.jsx("div",{ref:d,children:x.jsx(rt,{title:"Covercrypt Master keys creation response",children:r})})]})},Zce=`Department::HR && Security Level::Confidential

More examples:
(Department::MKG && Security Level::Confidential) || (Department::HR && Security Level::Protected)`,Jce=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null);s.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0),n(void 0);try{const h=cae(d.masterPrivateKeyId,d.accessPolicy,d.tags,d.sensitive,d.wrappingKeyId),v=await dr(h,o,c);if(v){const g=await GC(v);n(`${g.UniqueIdentifier} has been created.`)}}catch(h){n(`${h}`),console.error(h)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Create a Covercrypt user key"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Create a new user decryption key with specific access rights."}),x.jsx("p",{children:"The access policy is a boolean expression combining policy attributes."})]}),x.jsx(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{sensitive:!1,tags:[]},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsx(rt,{children:x.jsxs("div",{className:"p-4 rounded-lg space-y-4",children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Configuration"}),x.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:x.jsx(yt,{placeholder:"Enter master private key ID"})}),x.jsx(fe.Item,{name:"accessPolicy",label:"Access Policy",help:x.jsxs("div",{className:"text-sm space-y-2",children:[x.jsx("p",{children:"Boolean expression combining policy attributes"}),x.jsxs("div",{className:"p-3 rounded",children:[x.jsx("p",{className:"font-medium mb-2",children:"Example formats:"}),x.jsx("pre",{className:"text-xs whitespace-pre-wrap",children:Zce}),x.jsx("p",{className:"mt-2 text-xs",children:'Note: A user with "Confidential" access will also have access to "Protected" data due to hierarchy.'})]}),x.jsxs("ul",{className:"list-disc pl-5 mt-2 space-y-1",children:[x.jsxs("li",{children:["Use ",x.jsx("code",{children:"&&"})," for AND, ",x.jsx("code",{children:"||"})," for OR"]}),x.jsx("li",{children:"Group expressions with parentheses"}),x.jsx("li",{children:"Use exact attribute names from the policy"})]})]}),rules:[{required:!0,message:"Please enter access policy"}],children:x.jsx(yt.TextArea,{placeholder:"Enter access policy expression",rows:4,className:"font-mono text-sm"})})]})}),x.jsxs(rt,{children:[x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Optional tags to help retrieve the key later",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})}),x.jsx(fe.Item,{name:"wrappingKeyId",label:"Wrapping Key ID",help:"Optional: ID of the key to wrap this new key with",children:x.jsx(yt,{placeholder:"Enter wrapping key ID"})}),x.jsx(fe.Item,{name:"sensitive",valuePropName:"checked",help:"If enabled, the key will not be exportable",children:x.jsx(qr,{children:x.jsx("span",{children:"Sensitive Key"})})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Create User Key"})})]})}),t&&x.jsx("div",{ref:u,children:x.jsx(rt,{title:"Covercrypt User key creation response",children:t})})]})},eue=()=>{const[e,t]=s.useState(!1),[n,r]=s.useState(null),[a,o]=s.useState(null),[c,u]=s.useState(void 0),{serverUrl:f,idToken:d}=Dn(),h=s.useCallback(async()=>{t(!0),u(void 0),r(null),o(null);try{try{const v=await fo("/google_cse/status",null,f);r(v)}catch{u("Google CSE is not enabled/configured")}try{const v=sP("google_cse",!1,"raw");await dr(v,d,f),o(!0)}catch(v){console.warn("Symmetric google_cse key check failed:",v),o(!1)}}catch(v){u(`Error fetching CSE information: ${v}`),console.error("Error fetching CSE information:",v)}finally{t(!1)}},[d,f]);return s.useEffect(()=>{h()},[h]),x.jsxs("div",{className:"p-6",children:[x.jsxs("div",{className:"flex justify-between items-center mb-6",children:[x.jsx("h1",{className:"text-2xl font-bold",children:"CSE Information"}),x.jsx(gn,{type:"primary",onClick:h,loading:e,className:"bg-blue-500 hover:bg-blue-700 border-0",children:"Refresh"})]}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Google Client-Side Encryption (CSE) configuration and status information."}),x.jsx("p",{children:"This displays the current CSE server details, supported operations, and key availability."})]}),x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[n?x.jsxs(rt,{title:"CSE Status",className:"border rounded",children:[x.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-6",children:[x.jsxs("div",{children:[x.jsxs("p",{children:[x.jsx("strong",{children:"Server Type:"})," ",x.jsx(xi,{color:"blue",children:n.server_type})]}),x.jsxs("p",{children:[x.jsx("strong",{children:"Vendor:"})," ",n.vendor_id]}),x.jsxs("p",{children:[x.jsx("strong",{children:"Version:"})," ",x.jsx(xi,{color:"green",children:n.version})]})]}),x.jsxs("div",{children:[x.jsxs("p",{children:[x.jsx("strong",{children:"Name:"})," ",n.name]}),x.jsxs("p",{children:[x.jsx("strong",{children:"KACLS URL:"})," ",x.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&&x.jsxs("div",{children:[x.jsx("h4",{className:"font-semibold mb-3",children:"Supported Operations"}),x.jsx("div",{className:"flex flex-wrap gap-2",children:Object.values(n.operations_supported).map((v,g)=>x.jsx(xi,{color:"purple",children:v},g))})]})]}):x.jsx(rt,{title:"CSE Status",className:"border rounded",children:x.jsx(KN,{message:c,type:"error",showIcon:!0})}),n&&x.jsx(rt,{title:"Key Status",className:"border rounded",children:x.jsx("div",{className:"flex items-center space-x-3",children:x.jsx("div",{children:a===null?x.jsx(xi,{color:"default",children:"Checking..."}):a?x.jsx(xi,{color:"success",children:"✓ Access to google_cse symmetric key found"}):x.jsx(xi,{color:"error",children:"✗ No access to google_cse symmetric key found"})})})})]})]})},tue=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null);s.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 v=Zre(h,d.inputFile),g=await dr(v,o,c);if(g){const b=await qf(g),S=d.fileName.slice(0,-4),y=S.lastIndexOf(".")!==-1?S:`${S}.plain`,w=Wf(y);Uf(b.Data,y,w),n("File has been decrypted")}}catch(v){n(`Error decrypting: ${v}`),console.error("Error decrypting:",v)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"EC Decryption"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Decrypt a file using ECIES (Elliptic Curve Integrated Encryption Scheme)."}),x.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),x.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),x.jsx(fe,{form:e,onFinish:f,layout:"vertical",children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),x.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:x.jsx(yt,{})}),x.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to decrypt"}],children:x.jsx($a.Dragger,{beforeUpload:d=>{e.setFieldValue("fileName",d.name);const h=new FileReader;return h.onload=v=>{const g=v.target?.result;if(g&&g instanceof ArrayBuffer){const b=new Uint8Array(g);e.setFieldsValue({inputFile:b})}},h.readAsArrayBuffer(d),!1},maxCount:1,children:x.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to decrypt"})})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),x.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the private key",children:x.jsx(yt,{placeholder:"Enter key ID"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Decrypt File"})})]})}),t&&x.jsx("div",{ref:u,children:x.jsx(rt,{title:"EC decrypt response",children:t})})]})},nue=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null);s.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 v=rae(h,d.inputFile),g=await dr(v,o,c);if(g){const b=await Yf(g),S=new Uint8Array(b.Data),C="application/octet-stream",y=`${d.fileName}.enc`;Fs(S,y,C),n("File has been encrypted")}}catch(v){n(`Error encrypting: ${v}`),console.error("Error encrypting:",v)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold  mb-6",children:"EC Encryption"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Encrypt a file using ECIES (Elliptic Curve Integrated Encryption Scheme)."}),x.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),x.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),x.jsx(fe,{form:e,onFinish:f,layout:"vertical",className:"space-y-6",children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),x.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:x.jsx(yt,{})}),x.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to encrypt"}],children:x.jsx($a.Dragger,{beforeUpload:d=>{e.setFieldValue("fileName",d.name);const h=new FileReader;return h.onload=v=>{const g=v.target?.result;if(g&&g instanceof ArrayBuffer){const b=new Uint8Array(g);e.setFieldsValue({inputFile:b})}},h.readAsArrayBuffer(d),!1},maxCount:1,children:x.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to encrypt"})})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),x.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the public key",children:x.jsx(yt,{placeholder:"Enter key ID"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Encrypt File"})})]})}),t&&x.jsx("div",{ref:u,children:x.jsx(rt,{title:"EC encrypt response",children:t})})]})},rue=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null);s.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0),n(void 0);try{const h=qre(d.privateKeyId,d.tags,d.curve,d.sensitive,d.wrappingKeyId),v=await dr(h,o,c);if(v){const g=await YC(v);n(`Key pair has been created. Private key Id: ${g.PrivateKeyUniqueIdentifier} - Public key Id: ${g.PublicKeyUniqueIdentifier}`)}}catch(h){n(`Error creating EC keypair: ${h}`),console.error("Error creating EC keypair:",h)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Create an EC key pair"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Create a new Elliptic Curve key pair:"}),x.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[x.jsx("li",{children:"The public key is used to encrypt or verify a signature and can be safely shared."}),x.jsx("li",{children:"The private key is used to decrypt or sign and must be kept secret."})]}),x.jsx("p",{children:"When creating a key pair with a specified tag, the tag is applied to both keys."})]}),x.jsx(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{curve:"nist-p256",tags:[],sensitive:!1},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx(fe.Item,{name:"curve",label:"Curve",help:"Select the elliptic curve to use",rules:[{required:!0,message:"Please select a curve"}],children:x.jsxs(Rt,{children:[x.jsx(Rt.Option,{value:"nist-p192",children:"NIST P-192"}),x.jsx(Rt.Option,{value:"nist-p224",children:"NIST P-224"}),x.jsx(Rt.Option,{value:"nist-p256",children:"NIST P-256"}),x.jsx(Rt.Option,{value:"nist-p384",children:"NIST P-384"}),x.jsx(Rt.Option,{value:"nist-p521",children:"NIST P-521"}),x.jsx(Rt.Option,{value:"secp224k1",children:"SECP224k1"}),x.jsx(Rt.Option,{value:"secp256k1",children:"SECP256k1"}),x.jsx(Rt.Option,{value:"ed25519",children:"Ed25519"}),x.jsx(Rt.Option,{value:"ed448",children:"Ed448"})]})}),x.jsx(fe.Item,{name:"privateKeyId",label:"Private Key ID",help:"Optional: a random UUID will be generated if not specified",children:x.jsx(yt,{placeholder:"Enter private key ID"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Optional: Add tags to help retrieve the keys later",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})}),x.jsx(fe.Item,{name:"wrappingKeyId",label:"Wrapping Key ID",help:"Optional: ID of the key to wrap this new keypair with",children:x.jsx(yt,{placeholder:"Enter wrapping key ID"})}),x.jsx(fe.Item,{name:"sensitive",valuePropName:"checked",help:"If set, the private key will not be exportable",children:x.jsx(qr,{children:"Sensitive"})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Create EC Keypair"})})]})}),t&&x.jsx("div",{ref:u,children:x.jsx(rt,{title:"EC key pair creation response",children:t})})]})},aue=[{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"}],iue={"json-ttlv":"json","sec1-pem":"pem","pkcs1-pem":"pem","pkcs8-pem":"pem","sec1-der":"der","pkcs1-der":"der","pkcs8-der":"der",base64:"b64",raw:""},jd=({key_type:e})=>{const[t]=fe.useForm(),[n,r]=s.useState(void 0),[a,o]=s.useState(!1),{idToken:c,serverUrl:u}=Dn(),f=s.useRef(null),d=fe.useWatch("wrapKeyId",t),h=fe.useWatch("wrappingAlgorithm",t),v=fe.useWatch("keyFormat",t),g=e==="secret-data";s.useEffect(()=>{n&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[n]),s.useEffect(()=>{d||t.setFieldsValue({wrappingAlgorithm:void 0,authenticatedAdditionalData:void 0})},[d,t]),s.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=sP(y,C.unwrap,C.keyFormat,C.wrapKeyId,C.wrappingAlgorithm),$=await dr(w,c,u);if($){const _=await aae($,C.keyFormat),O=`${y}.${iue[C.keyFormat]}`,I=C.keyFormat==="json-ttlv"?"application/json":C.keyFormat==="base64"?"text/plain":"application/octet-stream";Fs(_,O,I),r("File has been exported")}}catch(w){r(`Error exporting ${g?"secret data":"key"}: ${w}`),console.error("Export error:",w)}finally{o(!1)}};let S=[];return e==="rsa"?S=[{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"?S=[{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"?S=[{label:"JSON TTLV (default)",value:"json-ttlv"},{label:"Base64",value:"base64"},{label:"Raw",value:"raw"}]:S=[{label:"JSON TTLV (default)",value:"json-ttlv"},{label:"Raw",value:"raw"}],x.jsxs("div",{className:"p-6",children:[x.jsxs("h1",{className:"text-2xl font-bold mb-6",children:["Export ",g?"Secret Data":e.toUpperCase()]}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsxs("p",{children:["Export ",g?"secret data":e.toUpperCase()," from the KMS. The"," ",g?"secret data":"object"," can be identified using either its ID or associated tags."]}),!g&&x.jsxs(x.Fragment,{children:[x.jsx("p",{children:"When exporting a key pair using its ID, only the public key is exported."}),x.jsx("p",{children:"The key can optionally be unwrapped and/or wrapped when exported."}),x.jsx("p",{className:"text-sm text-yellow-600",children:"Note: Wrapping a key that is already wrapped is an error."})]})]}),x.jsx(fe,{form:t,onFinish:b,layout:"vertical",initialValues:{keyFormat:"json-ttlv",unwrap:!1,allowRevoked:!1},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsxs("h3",{className:"text-m font-bold mb-4",children:[g?"Secret Data":"Key"," Identification (required)"]}),x.jsx(fe.Item,{name:"keyId",label:g?"Secret Data ID":"Key ID",children:x.jsx(yt,{placeholder:`Enter ${g?"secret data":"key"} ID`})}),x.jsx(fe.Item,{name:"tags",label:"Tags",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),x.jsx(rt,{children:x.jsx(fe.Item,{name:"keyFormat",label:"Export Format",rules:[{required:!0}],children:x.jsx(Rt,{options:S})})}),!g&&x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Unwrapping Options"}),x.jsx(fe.Item,{name:"unwrap",valuePropName:"checked",children:x.jsxs(qr,{children:["Unwrap ",g?"secret data":"key"," before export"]})}),v!=="raw"&&v!=="base64"&&x.jsxs(x.Fragment,{children:[x.jsx(oq,{}),x.jsx("h3",{className:"text-m font-bold mb-4",children:"Wrapping Options"}),x.jsx(fe.Item,{name:"wrapKeyId",label:"Wrap Key ID",children:x.jsx(yt,{placeholder:"Enter wrap key ID"})}),x.jsx(fe.Item,{name:"wrappingAlgorithm",label:"Wrapping Algorithm",children:x.jsx(Rt,{options:aue,placeholder:"Select algorithm",disabled:!d})}),h==="aes-gcm"&&x.jsx(fe.Item,{name:"authenticatedAdditionalData",label:"Authenticated Additional Data",children:x.jsx(yt,{placeholder:"Enter authenticated data",disabled:!d})})]})]}),x.jsx(rt,{children:x.jsx(fe.Item,{name:"allowRevoked",valuePropName:"checked",children:x.jsx(qr,{children:"Allow revoked objects"})})}),x.jsx(fe.Item,{children:x.jsxs(gn,{type:"primary",htmlType:"submit",loading:a,className:"w-full text-white font-medium",children:["Export ",g?"Secret Data":"Key"]})})]})}),n&&x.jsx("div",{ref:f,children:x.jsx(rt,{title:g?"Secret Data Export Response":"Key Export Response",children:n})})]})},Td=({key_type:e})=>{const[t]=fe.useForm(),[n,r]=s.useState(void 0),[a,o]=s.useState(!1),{idToken:c,serverUrl:u}=Dn(),f=s.useRef(null);s.useEffect(()=>{n&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[n]);const d=async b=>{o(!0),r(void 0);try{const S=iae(b.keyId,b.keyFile,b.keyFormat,b.publicKeyId,b.privateKeyId,b.certificateId,b.unwrap,b.replaceExisting,b.tags,b.keyUsage,b.wrappingKeyId),C=await dr(S,c,u);if(C){const y=await XC(C);r(`File has been imported - imported object id: ${y.UniqueIdentifier}`)}}catch(S){r(`Error importing: ${S}`),console.error("Error importing:",S)}finally{o(!1)}};let h=[],v=[];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"}],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"}]):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"}],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"}]):e==="symmetric"?(h=[{label:"JSON TTLV (default)",value:"json-ttlv"},{label:"AES",value:"aes"},{label:"ChaCha20",value:"chacha20"}],v=[{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"}],v=[{label:"Wrap",value:"wrap"},{label:"Unwrap",value:"unwrap"}]):(h=[{label:"JSON TTLV (default)",value:"json-ttlv"}],v=[{label:"Encrypt",value:"encrypt"},{label:"Decrypt",value:"decrypt"}]);const g=e==="secret-data";return x.jsxs("div",{className:"p-6",children:[x.jsxs("h1",{className:"text-2xl font-bold mb-6",children:["Import ",g?"secret data":`${e} key`]}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsxs("p",{children:["Import ",g?"secret data":`${e} key`," into the KMS."]}),x.jsx("p",{children:"When no ID is specified, a random UUID will be generated."})]}),x.jsx(fe,{form:t,onFinish:d,layout:"vertical",initialValues:{keyFormat:"json-ttlv",unwrap:!1,replaceExisting:!1,tags:[]},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx(fe.Item,{name:"keyFile",label:g?"Data File":"Key File",rules:[{required:!0,message:"Please upload a file"}],help:g?"Upload the secret data file to import":"Upload the key file to import",children:x.jsx($a,{beforeUpload:b=>{const S=new FileReader;return S.onload=C=>{const y=C.target?.result;if(typeof y=="string")try{if(/^[A-Za-z0-9+/=]+$/.test(y.trim())){const w=atob(y.trim()),$=new Uint8Array([...w].map(_=>_.charCodeAt(0)));t.setFieldsValue({keyFile:$})}else throw new Error("Invalid Base64 format")}catch{const w=new FileReader;w.onload=$=>{const _=$.target?.result;if(_ instanceof ArrayBuffer){const O=new Uint8Array(_);t.setFieldsValue({keyFile:O})}},w.readAsArrayBuffer(b)}},S.readAsText(b),!1},maxCount:1,children:x.jsxs(gn,{icon:x.jsx(xP,{}),children:["Upload ",g?"Secret Data File":"Key File"]})})}),x.jsx(fe.Item,{name:"keyId",label:"ID",help:"Optional: A random UUID will be generated if not specified",children:x.jsx(yt,{placeholder:"Enter ID"})}),x.jsx(fe.Item,{name:"keyFormat",label:"Format",help:"Format of the file to import",rules:[{required:!0}],children:x.jsx(Rt,{options:h})})]}),!g&&x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Relationships"}),x.jsx(fe.Item,{name:"publicKeyId",label:"Public Key ID",help:"Link to public key in KMS",children:x.jsx(yt,{placeholder:"Enter public key ID"})}),x.jsx(fe.Item,{name:"privateKeyId",label:"Private Key ID",help:"Link to private key in KMS",children:x.jsx(yt,{placeholder:"Enter private key ID"})}),x.jsx(fe.Item,{name:"certificateId",label:"Certificate ID",help:"Link to certificate in KMS",children:x.jsx(yt,{placeholder:"Enter certificate ID"})})]}),x.jsxs(rt,{children:[x.jsx(fe.Item,{name:"keyUsage",label:"Usage",help:"Specify allowed operations",children:x.jsx(Rt,{mode:"multiple",options:v,placeholder:"Select usage"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Optional: Add tags to help retrieve later",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})}),x.jsx(fe.Item,{name:"wrappingKeyId",label:"Wrapping Key ID",help:"Optional: ID of wrapping key",children:x.jsx(yt,{placeholder:"Enter wrapping key ID"})})]}),x.jsxs(rt,{children:[x.jsx(fe.Item,{name:"unwrap",valuePropName:"checked",help:"Unwrap if wrapped before storing",children:x.jsx(qr,{children:"Unwrap before import"})}),x.jsx(fe.Item,{name:"replaceExisting",valuePropName:"checked",help:"Replace an existing object with same ID",children:x.jsx(qr,{children:"Replace existing"})})]}),x.jsx(rt,{children:x.jsx(fe.Item,{name:"authenticatedAdditionalData",label:"Authenticated Additional Data",help:"Optional: For AES256GCM authenticated encryption",children:x.jsx(yt,{placeholder:"Enter authenticated data"})})}),x.jsx(fe.Item,{children:x.jsxs(gn,{type:"primary",htmlType:"submit",loading:a,className:"w-full text-white font-medium",children:["Import ",g?"Data":"Key"]})})]})}),n&&x.jsx("div",{ref:f,children:x.jsx(rt,{title:"Import Response",children:n})})]})},oue=[{label:"Covercrypt",value:"CoverCrypt"},{label:"ECDH",value:"ECDH"},{label:"ChaCha20-Poly1305",value:"ChaCha20Poly1305"},{label:"AES",value:"AES"},{label:"Ed25519",value:"Ed25519"}],lue=[{label:"CoverCrypt Secret Key",value:"CoverCryptSecretKey"},{label:"CoverCrypt Public Key",value:"CoverCryptPublicKey"},{label:"Raw",value:"Raw"},{label:"PKCS8",value:"PKCS8"}],sue=[{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"}],cue=()=>{const[e]=fe.useForm(),[t,n]=s.useState(!1),[r,a]=s.useState(void 0),[o,c]=s.useState(void 0),{idToken:u,serverUrl:f}=Dn(),d=s.useRef(null);s.useEffect(()=>{r&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[r]);const h=async v=>{n(!0),a(void 0),c(void 0);try{const g=Kre(v.tags,v.cryptographicAlgorithm,v.cryptographicLength,v.keyFormatType,v.objectType,v.publicKeyId,v.privateKeyId,v.certificateId),b=await dr(g,u,f);if(b){const S=await Ure(b);S.UniqueIdentifier&&S.UniqueIdentifier.length&&c(S.UniqueIdentifier),a(`${S.LocatedItems} Object(s) located.`)}}catch(g){a(`Error locating object: ${g}`),console.error("Error locating object:",g)}finally{n(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Locate Cryptographic Objects"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Search for cryptographic objects in the KMS using various criteria."}),x.jsx("p",{children:"The HSM, if any, will not be searched"})]}),x.jsx(fe,{form:e,onFinish:h,layout:"vertical",children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Basic Search Criteria"}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"User tags or system tags to locate the object",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})}),x.jsx(fe.Item,{name:"cryptographicAlgorithm",label:"Cryptographic Algorithm",help:"Algorithm used by the cryptographic object",children:x.jsx(Rt,{options:oue,allowClear:!0,placeholder:"Select algorithm"})}),x.jsx(fe.Item,{name:"cryptographicLength",label:"Cryptographic Length",help:"Key size in bits",children:x.jsx(yt,{type:"number",placeholder:"Enter length in bits",min:0})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Object Type and Format"}),x.jsx(fe.Item,{name:"keyFormatType",label:"Key Format Type",help:"Format used to store the key",children:x.jsx(Rt,{options:lue,allowClear:!0,placeholder:"Select key format"})}),x.jsx(fe.Item,{name:"objectType",label:"Object Type",help:"Type of cryptographic object",children:x.jsx(Rt,{options:sue,allowClear:!0,placeholder:"Select object type"})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Linked Objects"}),x.jsx(fe.Item,{name:"publicKeyId",label:"Public Key ID",help:"Find objects linked to this public key",children:x.jsx(yt,{placeholder:"Enter public key ID"})}),x.jsx(fe.Item,{name:"privateKeyId",label:"Private Key ID",help:"Find objects linked to this private key",children:x.jsx(yt,{placeholder:"Enter private key ID"})}),x.jsx(fe.Item,{name:"certificateId",label:"Certificate ID",help:"Find objects linked to this certificate",children:x.jsx(yt,{placeholder:"Enter certificate ID"})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:t,className:"w-full text-white font-medium",children:"Search Objects"})})]})}),r&&x.jsx("div",{ref:d,children:x.jsx(rt,{title:"Locate response",children:x.jsx(_S,{header:x.jsx("div",{className:"font-bold",children:r}),size:"small",bordered:!0,dataSource:o,renderItem:v=>x.jsx(_S.Item,{children:v})})})})]})},xR=({auth:e,error:t})=>{const[n,r]=s.useState(!1),{login:a}=Dn(),o=Mg(),c=async()=>{try{r(!0),await a()}catch(u){console.error("Login error:",u),EC.error("Authentication failed. Please try again.")}finally{r(!1)}};return x.jsxs("div",{className:"relative min-h-screen flex items-center justify-center bg-gray-900 flex-col",children:[x.jsx("div",{className:"absolute inset-0 bg-cover bg-center flex",style:{backgroundImage:"url('/ui/login_page_background_image.png')"}}),x.jsxs("div",{className:"relative w-2/3 shadow-2xl rounded-lg p-20 flex flex-col items-center bg-purple-700/30",children:[x.jsx("img",{src:"/ui/Cosmian-Logo-Dark.svg",alt:"Cosmian Logo",className:"z-10 w-40 mb-20"}),x.jsx("div",{className:"text-center text-7xl font-bold text-white mb-20 z-10",children:"Cosmian KMS user interface"}),x.jsxs("div",{className:"space-y-6 text-center w-1/2",children:[e&&x.jsx("p",{className:"text-white",children:"Sign up for free and explore rights delegation for multiple users"}),t&&x.jsx("p",{className:"text-purple-700",children:t}),n?x.jsx(Bf,{size:"large"}):e?x.jsx(gn,{ghost:!0,block:!0,className:"hover:decoration-purple-700",onClick:c,loading:n,children:"LOGIN"}):x.jsx(gn,{ghost:!0,block:!0,className:"hover:decoration-purple-700",onClick:()=>o("locate"),loading:n,children:"ACCESS KMS"})]})]})]})},uue=({version:e})=>x.jsx(wi.Footer,{className:"text-center",children:x.jsxs("p",{children:["KMS Server Version: ",e]})}),due=({isDarkMode:e})=>x.jsxs("div",{className:"flex items-center h-full w-full",children:[x.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"}),x.jsx("h1",{className:"text-xl font-bold pl-10",children:"Key Management System"})]}),my=[{key:"locate",label:"Locate",icon:x.jsx(pie,{})},{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:x.jsx(vie,{}),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:x.jsx(Eie,{}),children:[{key:"attributes/get",label:"Get"},{key:"attributes/set",label:"Set"},{key:"attributes/delete",label:"Delete"}]},{key:"access-rights",label:"Access Rights",icon:x.jsx(Sie,{}),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:fue}=wi,mue=()=>{const[e,t]=s.useState(!1),n=Mg(),[r,a]=s.useState([]),[o,c]=s.useState(my),{idToken:u,serverUrl:f}=Dn(),d=s.useCallback(async()=>{try{const C=await fo("/access/create",u,f);h(C.has_create_permission)}catch(C){console.error("Error fetching create permission:",C),h(!1)}},[u,f]);s.useEffect(()=>{d()},[d]);const h=C=>{const y=w=>w.map($=>{const _={...$},O=$.key&&($.key.includes("/create")||$.key.includes("/create-")||$.label==="Create"),I=$.key&&($.key.includes("/import")||$.key.includes("/import-")||$.label==="Import");return(O||I)&&(_.disabled=!C),_.children&&(_.children=y(_.children)),_});c(y(my))},g=(C=>{const y={},w=($,_=1)=>{$.forEach(O=>{O.key&&(y[O.key]=_),O.children&&w(O.children,_+1)})};return w(C),y})(my),b=C=>{const y=C.find(w=>r.indexOf(w)===-1);if(y!==void 0){const w=C.filter($=>$!==y).findIndex($=>g[$]===g[y]);a(C.filter(($,_)=>_!==w).filter($=>g[$]<=g[y]))}else a(C)},S=o.map(C=>({...C,label:e?x.jsx(_i,{title:C.label,children:C.icon?C.icon:C.collapsedlabel}):C.label}));return x.jsx(fue,{collapsible:!0,collapsed:e,onCollapse:t,className:"h-full",theme:"light",style:{position:"sticky",top:0,overflow:"auto"},children:x.jsx(ks,{mode:"inline",defaultSelectedKeys:["1"],defaultOpenKeys:["access-rights"],openKeys:r,onOpenChange:b,items:S,onClick:({key:C})=>n(C),className:"h-full border-r-0",style:{fontWeight:"500",overflow:"auto"}})})},hue=({isDarkMode:e,setIsDarkMode:t,authMethod:n})=>{const[r,a]=s.useState(""),[o,c]=s.useState(!0),{logout:u,idToken:f,serverUrl:d,userId:h}=Dn();s.useEffect(()=>{async function g(){if(f||n!="JWT")try{const b=await fo("/version",f,d);a(b)}catch(b){console.error("Error fetching server version:",b),a("Unavailable")}finally{c(!1)}else c(!1)}g()},[f,n,d]);const v=async()=>{await u()};return x.jsxs(wi,{children:[x.jsx(wi.Header,{className:"fixed w-full z-10 p-0 h-16 border-b flex items-center justify-between border-gray-300",children:x.jsxs("div",{className:"flex items-center w-full h-full",children:[x.jsx(due,{isDarkMode:e}),x.jsxs("div",{className:"flex items-center h-full",children:[x.jsx(sD,{className:"w-20",checked:e,onChange:()=>t(!e),checkedChildren:x.jsx(fie,{}),unCheckedChildren:x.jsx(wie,{})}),n==="JWT"&&x.jsxs("div",{className:"flex justify-center items-center h-full overflow-hidden ml-4",children:[h&&x.jsx(xi,{className:"truncate text-sm leading-tight",color:"purple",children:h}),x.jsx(gn,{onClick:v,className:"w-18 ml-4",children:"Logout"})]})]})]})}),x.jsxs(wi,{id:"main-page",className:"overflow-hidden",style:{marginTop:64,height:"calc(100vh - 64px)"},children:[x.jsx(mue,{}),x.jsxs(wi,{id:"main-center",className:"flex flex-col overflow-hidden",children:[x.jsx(wi.Content,{id:"main-content",className:"flex-grow overflow-auto p-4",children:o?x.jsx(Bf,{size:"large"}):x.jsx(Zne,{})}),x.jsx(uue,{version:r})]})]})]})},vue=()=>x.jsxs("div",{style:{textAlign:"center",marginTop:"50px"},children:[x.jsx("h1",{children:"404 - Page Not Found"}),x.jsx("p",{children:"Oops! The page you're looking for doesn't exist."}),x.jsx(qC,{to:"/",children:"Go Home"})]}),Tc=({objectType:e})=>{const[t]=fe.useForm(),[n,r]=s.useState(void 0),[a,o]=s.useState(!1),{idToken:c,serverUrl:u}=Dn(),f=s.useRef(null),d=iP(e),h=e==="rsa"||e==="ec"||e==="covercrypt"||e==="symmetric";s.useEffect(()=>{n&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[n]);const v=async g=>{o(!0),r(void 0);const b=g.objectId?g.objectId:g.tags?JSON.stringify(g.tags):void 0;if(b==null)throw r(`Missing ${d} identifier.`),Error(`Missing ${d} identifier`);try{const S=Jre(b,g.remove),C=await dr(S,c,u);if(C){const y=await eae(C);r(`${y.UniqueIdentifier} has been destroyed.`)}}catch(S){r(`Error destroying ${d}: ${S}`),console.error(`Error destroying ${d}:`,S)}finally{o(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[x.jsx(CP,{className:"text-2xl text-red-600"}),x.jsxs("h1",{className:"text-2xl font-bold",children:["Destroy ",oP(e)," ",d]})]}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("div",{className:"bg-red-200 border-l-4 border-red-600 rounded-md p-4",children:x.jsxs("div",{className:"text-red-800 text-sm space-y-2",children:[x.jsx("p",{className:"font-bold",children:"Warning: This is a destructive action."}),x.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[x.jsxs("li",{children:["The ",d," must be revoked first"]}),h&&x.jsxs(x.Fragment,{children:[x.jsx("li",{children:"Destroying either public or private key will destroy the whole key pair"}),x.jsx("li",{children:"Keys in external stores (HSMs) are automatically removed"})]}),e==="certificate"&&x.jsx("li",{children:"Destroying a certificate does not destroy its associated private key"}),x.jsxs("li",{children:["Destroyed ",d,"s can only be exported by the owner, without key material"]})]})]})}),x.jsxs("div",{children:["Destroying a ",d," is irreversible."]})]}),x.jsx(fe,{form:t,onFinish:v,layout:"vertical",initialValues:{remove:!1},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsxs("h3",{className:"text-m font-bold mb-4",children:[d.charAt(0).toUpperCase()+d.slice(1)," Identification (required)"]}),x.jsx(fe.Item,{name:"objectId",label:`${d.charAt(0).toUpperCase()+d.slice(1)} ID`,help:`The unique identifier of the ${d} to destroy`,children:x.jsx(yt,{placeholder:`Enter ${d} ID`})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:`Alternative to ${d} ID: specify tags to identify the ${d}`,children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),x.jsx(rt,{children:x.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:x.jsx(qr,{children:"Remove completely from database"})})}),x.jsx(fe.Item,{children:x.jsxs(gn,{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&&x.jsx("div",{ref:f,children:x.jsx(rt,{title:`${d.charAt(0).toUpperCase()+d.slice(1)} destroy response`,children:n})})]})},gue=()=>{const[e,t]=s.useState(!1),[n,r]=s.useState([]),[a,o]=s.useState(void 0),{idToken:c,serverUrl:u}=Dn(),f=[{title:"Object UID",dataIndex:"object_id",key:"object_id"},{title:"Type",key:"attributes.ObjectType",render:h=>h.attributes?.ObjectType||"N/A"},{title:"State",dataIndex:"state",key:"state",render:h=>x.jsx(xi,{color:h==="Active"?"green":"orange",children:h})}],d=s.useCallback(async()=>{t(!0),o(void 0),r([]);try{const h=await fo("/access/owned",c,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)}},[c,u]);return s.useEffect(()=>{d()},[d]),x.jsxs("div",{className:"p-6",children:[x.jsxs("div",{className:"flex justify-between items-center mb-6",children:[x.jsx("h1",{className:"text-2xl font-bold",children:"Objects owned"}),x.jsx(gn,{type:"primary",onClick:d,loading:e,className:"bg-black-500 hover:bg-blue-700 border-0",children:"Refresh"})]}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"List of objects you own. "}),x.jsx("p",{children:"As an owner, you can perform any operation on these objects and grant access rights to other users."})]}),x.jsx(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:x.jsx(rt,{children:x.jsx(Yi,{dataSource:n,columns:f,rowKey:"object_id",loading:e,pagination:{pageSize:10},className:"border rounded"})})}),a&&x.jsx(rt,{title:"Owned objects response",children:a})]})},Dc=({objectType:e})=>{const[t]=fe.useForm(),[n,r]=s.useState(void 0),[a,o]=s.useState(!1),{idToken:c,serverUrl:u}=Dn(),f=s.useRef(null),d=iP(e);s.useEffect(()=>{n&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[n]);const h=async v=>{o(!0),r(void 0);const g=v.objectId||(v.tags?JSON.stringify(v.tags):void 0);if(!g)throw r(`Missing ${d} identifier.`),new Error(`Missing ${d} identifier`);try{const b=oae(g,v.revocationReasonMessage),S=await dr(b,c,u);if(S){const C=await lae(S);r(`${C.UniqueIdentifier} has been revoked.`)}}catch(b){r(`Error revoking ${d}: ${b}`),console.error(`Error revoking ${d}:`,b)}finally{o(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[x.jsx(CP,{className:"text-2xl text-red-500"}),x.jsxs("h1",{className:"text-2xl font-bold",children:["Revoke ",oP(e)," ",d]})]}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("div",{className:"bg-red-200 border-l-4 border-red-600 rounded-md p-4",children:x.jsxs("div",{className:"text-red-800 text-sm space-y-2",children:[x.jsxs("p",{children:[x.jsx("strong",{children:"Warning:"})," This action cannot be undone."]}),x.jsxs("p",{children:["Once a ",d," is revoked, it can only be exported by the owner using the ",x.jsx("i",{children:"allow-revoked"})," flag."]}),(e==="rsa"||e==="ec")&&x.jsx("p",{children:"Revoking either the public or private key will revoke the whole key pair."}),e==="certificate"&&x.jsx("p",{children:"Revoking a certificate does not revoke its associated private key."})]})}),x.jsxs("div",{children:["Revoking a ",d," is irreversible and may affect dependent applications."]})]}),x.jsx(fe,{form:t,onFinish:h,layout:"vertical",children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsx(rt,{children:x.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:x.jsx(yt.TextArea,{placeholder:`Enter the reason for ${d} revocation`,rows:3})})}),x.jsxs(rt,{children:[x.jsxs("h3",{className:"text-m font-bold mb-4",children:[d.charAt(0).toUpperCase()+d.slice(1)," Identification (required)"]}),x.jsx(fe.Item,{name:"objectId",label:`${d.charAt(0).toUpperCase()+d.slice(1)} ID`,help:`The unique identifier of the ${d} to revoke`,children:x.jsx(yt,{placeholder:`Enter ${d} ID`})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:`Alternative to ${d} ID: specify tags to identify the ${d}`,children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),x.jsx(fe.Item,{children:x.jsxs(gn,{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&&x.jsx("div",{ref:f,children:x.jsx(rt,{title:`${d.charAt(0).toUpperCase()+d.slice(1)} revoke response`,children:n})})]})},pue=[{label:"RSA PKCS #1 v1.5 (Legacy)",value:"CkmRsaPkcs"},{label:"RSA OAEP (Recommended)",value:"CkmRsaPkcsOaep"},{label:"RSA AES Key Wrap",value:"CkmRsaAesKeyWrap"}],bue=[{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"}],yue=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null);s.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 v=Qre(h,d.inputFile,d.encryptionAlgorithm,d.hashingAlgorithm),g=await dr(v,o,c);if(g){const b=await qf(g),S=d.fileName.slice(0,-4),y=S.lastIndexOf(".")!==-1?S:`${S}.plain`,w=Wf(y);Uf(b.Data,y,w),n("File has been decrypted")}}catch(v){n(`Error decrypting: ${v}`),console.error("Error decrypting:",v)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"RSA Decryption"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Decrypt a file using RSA private key."}),x.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),x.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),x.jsx(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{encryptionAlgorithm:"CkmRsaPkcsOaep",hashingAlgorithm:"Sha256"},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),x.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:x.jsx(yt,{})}),x.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to decrypt"}],children:x.jsx($a.Dragger,{beforeUpload:d=>{e.setFieldValue("fileName",d.name);const h=new FileReader;return h.onload=v=>{const g=v.target?.result;if(g&&g instanceof ArrayBuffer){const b=new Uint8Array(g);e.setFieldsValue({inputFile:b})}},h.readAsArrayBuffer(d),!1},maxCount:1,children:x.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to decrypt"})})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),x.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the private key",children:x.jsx(yt,{placeholder:"Enter key ID"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),x.jsxs(rt,{children:[x.jsx(fe.Item,{name:"encryptionAlgorithm",label:"Encryption Algorithm",rules:[{required:!0}],help:"Must match the algorithm used for encryption",children:x.jsx(Rt,{options:pue})}),x.jsx(fe.Item,{name:"hashingAlgorithm",label:"Hashing Algorithm",rules:[{required:!0}],help:"For OAEP and AES key wrap (must match encryption)",children:x.jsx(Rt,{options:bue})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Decrypt File"})})]})}),t&&x.jsx("div",{ref:u,children:x.jsx(rt,{title:"RSA decrypt response",children:t})})]})},Sue=[{label:"RSA PKCS #1 v1.5 (Legacy)",value:"CkmRsaPkcs"},{label:"RSA OAEP (Recommended)",value:"CkmRsaPkcsOaep"},{label:"RSA AES Key Wrap",value:"CkmRsaAesKeyWrap"}],xue=[{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"}],Cue=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null);s.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 v=nae(h,d.inputFile,d.encryptionAlgorithm,d.hashingAlgorithm),g=await dr(v,o,c);if(g){const b=await Yf(g),S=new Uint8Array(b.Data),C="application/octet-stream",y=`${d.fileName}.enc`;Fs(S,y,C),n("File has been encrypted")}}catch(v){n(`Error encrypting: ${v}`),console.error("Error encrypting:",v)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"RSA Encryption"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Encrypt a file using RSA public key."}),x.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),x.jsx("p",{className:"text-sm text-yellow-600",children:"Note: RSA PKCS #1 v1.5 is deprecated in FIPS 140-3."})]}),x.jsx(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{encryptionAlgorithm:"CkmRsaPkcsOaep",hashingAlgorithm:"Sha256"},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),x.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:x.jsx(yt,{})}),x.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to encrypt"}],children:x.jsx($a.Dragger,{beforeUpload:d=>{e.setFieldValue("fileName",d.name);const h=new FileReader;return h.onload=v=>{const g=v.target?.result;if(g&&g instanceof ArrayBuffer){const b=new Uint8Array(g);e.setFieldsValue({inputFile:b})}},h.readAsArrayBuffer(d),!1},maxCount:1,children:x.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to encrypt"})})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),x.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the public key",children:x.jsx(yt,{placeholder:"Enter key ID"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),x.jsxs(rt,{children:[x.jsx(fe.Item,{name:"encryptionAlgorithm",label:"Encryption Algorithm",rules:[{required:!0}],help:"RSA OAEP is recommended for security",children:x.jsx(Rt,{options:Sue})}),x.jsx(fe.Item,{name:"hashingAlgorithm",label:"Hashing Algorithm",rules:[{required:!0}],help:"SHA-256 or stronger is recommended",children:x.jsx(Rt,{options:xue})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Encrypt File"})})]})}),t&&x.jsx("div",{ref:u,children:x.jsx(rt,{title:"RSA encrypt response",children:t})})]})},wue=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null);s.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0),n(void 0);try{const h=Wre(d.privateKeyId,d.tags,d.sizeInBits,d.sensitive,d.wrappingKeyId),v=await dr(h,o,c);if(v){const g=await YC(v);n(`Key pair has been created. Private key Id: ${g.PrivateKeyUniqueIdentifier} - Public key Id: ${g.PublicKeyUniqueIdentifier}`)}}catch(h){n(`Error creating keypair: ${h}`),console.error("Error creating keypair:",h)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Create an RSA key pair"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Create a new RSA key pair:"}),x.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[x.jsx("li",{children:"The public key is used to encrypt or verify signatures and can be safely shared."}),x.jsx("li",{children:"The private key is used to decrypt or sign and must be kept secret."})]}),x.jsx("p",{children:"When creating a key pair with a specified tag, the tag is applied to both keys."})]}),x.jsx(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{sizeInBits:4096,tags:[],sensitive:!1},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx(fe.Item,{name:"privateKeyId",label:"Private Key ID",help:"Optional: a random UUID will be generated if not specified",children:x.jsx(yt,{placeholder:"Enter private key ID"})}),x.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:x.jsx(xC,{className:"w-[200px]",min:1024,step:1024,max:8192})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Optional: Add tags to help retrieve the keys later",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})}),x.jsx(fe.Item,{name:"wrappingKeyId",label:"Wrapping Key ID",help:"Optional: ID of the key to wrap this new keypair with",children:x.jsx(yt,{placeholder:"Enter wrapping key ID"})}),x.jsx(fe.Item,{name:"sensitive",valuePropName:"checked",help:"If set, the private key will not be exportable",children:x.jsx(qr,{children:"Sensitive"})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Create RSA Keypair"})})]})}),t&&x.jsx("div",{ref:u,children:x.jsx(rt,{title:"RSA keys creation response",children:t})})]})},$ue=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null),f=fe.useWatch("secretValue",e);s.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]),s.useEffect(()=>{f||e.setFieldsValue({secretType:"Seed"})},[f,e]);const d=async h=>{a(!0),n(void 0);try{const v=Gre(h.secretType,h.secretValue,h.secretId,h.tags,h.sensitive,h.wrappingKeyId),g=await dr(v,o,c);if(g)if(h.secretValue){const b=await XC(g);n(`${b.UniqueIdentifier} has been created.`)}else{const b=await GC(g);n(`${b.UniqueIdentifier} has been created.`)}}catch(v){n(`Error creating secret data: ${v}`),console.error("Error creating secret data:",v)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Create a new secret data"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Create a new secret data:"}),x.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[x.jsx("li",{children:"When the secret value is specified, the secret will be created from the provided value."}),x.jsx("li",{children:"Otherwise, a fresh 256-bit random seed will be created."}),x.jsx("li",{children:"Tags can later be used to retrieve the secret. Tags are optional."})]})]}),x.jsxs(fe,{form:e,onFinish:d,layout:"vertical",initialValues:{secretType:"Seed",tags:[],sensitive:!1},children:[x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.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:x.jsx(yt.TextArea,{placeholder:"Enter secret value",rows:2})}),x.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:x.jsxs(Rt,{disabled:!f,children:[x.jsx(Rt.Option,{value:"Seed",children:"Seed"}),x.jsx(Rt.Option,{value:"Password",children:"Password"})]})}),x.jsx(fe.Item,{name:"secretId",label:"Secret Data ID",help:"Optional: a random UUID will be generated if not specified",children:x.jsx(yt,{placeholder:"Enter secret ID"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Optional: Add tags to help retrieve the secret later",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})}),x.jsx(fe.Item,{name:"wrappingKeyId",label:"Wrapping Key ID",help:"Optional: ID of the key to wrap this new secret data with",children:x.jsx(yt,{placeholder:"Enter wrapping key ID"})}),x.jsx(fe.Item,{name:"sensitive",valuePropName:"checked",help:"If set, the secret will not be exportable",children:x.jsx(qr,{children:"Sensitive"})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Create Secret Data"})})]}),t&&x.jsx("div",{ref:u,children:x.jsx(rt,{title:"Secret data creation response",children:t})})]})]})},_ue=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null);s.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async d=>{a(!0),n(void 0);try{const h=Yre(d.keyId,d.tags,d.numberOfBits,d.algorithm,d.sensitive,d.wrappingKeyId),v=await dr(h,o,c);if(v){const g=await GC(v);n(`${g.UniqueIdentifier} has been created.`)}}catch(h){n(`Error creating key: ${h}`),console.error("Error creating key:",h)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Create a symmetric key"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Create a new symmetric key:"}),x.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[x.jsx("li",{children:"When bytes are specified, the key will be created from the provided bytes."}),x.jsx("li",{children:"Otherwise, the key will be randomly generated with the specified number of bits."}),x.jsx("li",{children:"If no options are specified, a fresh 256-bit AES key will be created."})]})]}),x.jsxs(fe,{form:e,onFinish:f,layout:"vertical",initialValues:{algorithm:"Aes",numberOfBits:256,tags:[],sensitive:!1},children:[x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx(fe.Item,{name:"algorithm",label:"Algorithm",rules:[{required:!0,message:"Please select an algorithm"}],children:x.jsxs(Rt,{children:[x.jsx(Rt.Option,{value:"Aes",children:"Aes"}),x.jsx(Rt.Option,{value:"Chacha20",children:"ChaCha20"}),x.jsx(Rt.Option,{value:"Sha3",children:"SHA3"}),x.jsx(Rt.Option,{value:"Shake",children:"SHAKE"})]})}),x.jsx(fe.Item,{name:"numberOfBits",label:"Number of Bits",help:"The length of the generated random key in bits",children:x.jsx(xC,{className:"w-[200px]",min:128,step:128,max:512})}),x.jsx(fe.Item,{name:"bytesB64",label:"Key Bytes (Base64)",help:"Optional: specify the key bytes directly instead of generating random ones",children:x.jsx(yt.TextArea,{placeholder:"Enter base64 encoded key bytes",rows:4})}),x.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"Optional: a random UUID will be generated if not specified",children:x.jsx(yt,{placeholder:"Enter key ID"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Optional: Add tags to help retrieve the key later",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})}),x.jsx(fe.Item,{name:"wrappingKeyId",label:"Wrapping Key ID",help:"Optional: ID of the key to wrap this new key with",children:x.jsx(yt,{placeholder:"Enter wrapping key ID"})}),x.jsx(fe.Item,{name:"sensitive",valuePropName:"checked",help:"If set, the key will not be exportable",children:x.jsx(qr,{children:"Sensitive"})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Create Symmetric Key"})})]}),t&&x.jsx("div",{ref:u,children:x.jsx(rt,{title:"Symmetric keys creation response",children:t})})]})]})},Eue=[{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"}],Oue=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null),f=fe.useWatch("dataEncryptionAlgorithm",e);s.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async h=>{const v=h.keyId?h.keyId:h.tags?JSON.stringify(h.tags):void 0;try{if(v==null)throw n("Missing key identifier."),Error("Missing key identifier");const g=Xre(v,h.inputFile,h.authenticationData,h.dataEncryptionAlgorithm),b=await dr(g,o,c);if(b){const S=await qf(b),C=h.fileName.slice(0,-4),w=C.lastIndexOf(".")!==-1?C:`${C}.plain`,$=Wf(w);Uf(S.Data,w,$),n("File has been decrypted")}}catch(g){n(`Error decrypting: ${g}`),console.error("Error decrypting:",g)}finally{a(!1)}};return x.jsxs("div",{className:"p-6",children:[x.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Symmetric Decryption"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Decrypt a file using a symmetric key."}),x.jsx("p",{children:"Decryption can happen in two ways:"}),x.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[x.jsx("li",{children:"Server side: the data is sent to the server and decrypted there."}),x.jsx("li",{children:"Client side: The data encryption key (DEK) is decrypted server-side, then data is decrypted locally."})]}),x.jsx("p",{className:"text-sm text-yellow-600",children:"Note: Server-side decryption loads the entire file in memory."})]}),x.jsx(fe,{form:e,onFinish:d,layout:"vertical",initialValues:{dataEncryptionAlgorithm:"AesGcm"},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),x.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:x.jsx(yt,{})}),x.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to decrypt"}],children:x.jsx($a.Dragger,{beforeUpload:h=>{e.setFieldValue("fileName",h.name);const v=new FileReader;return v.onload=g=>{const b=g.target?.result;if(b&&b instanceof ArrayBuffer){const S=new Uint8Array(b);e.setFieldsValue({inputFile:S})}},v.readAsArrayBuffer(h),!1},maxCount:1,children:x.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to decrypt"})})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),x.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the symmetric key",children:x.jsx(yt,{placeholder:"Enter key ID"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),x.jsxs(rt,{children:[x.jsx(fe.Item,{name:"dataEncryptionAlgorithm",label:"Data Encryption Algorithm",rules:[{required:!0}],help:"Algorithm used to encrypt the data",children:x.jsx(Rt,{options:Eue})}),f!=="AesXts"&&f!=="AesCbc"&&x.jsx(fe.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional hex-encoded authentication data used during encryption",children:x.jsx(yt,{placeholder:"Enter authentication data (hex)"})})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Decrypt File"})})]})}),t&&x.jsx("div",{ref:u,children:x.jsx(rt,{title:"Symmetric keys decrypt response",children:t})})]})},Iue=()=>{const[e]=fe.useForm(),[t,n]=s.useState(void 0),[r,a]=s.useState(!1),{idToken:o,serverUrl:c}=Dn(),u=s.useRef(null),f=fe.useWatch("dataEncryptionAlgorithm",e);s.useEffect(()=>{t&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async h=>{a(!0),n(void 0);const v=h.keyId?h.keyId:h.tags?JSON.stringify(h.tags):void 0;try{if(v==null)throw n("Missing key identifier."),Error("Missing key identifier");const g=tae(v,void 0,h.inputFile,h.nonce,h.authenticationData,h.dataEncryptionAlgorithm),b=await dr(g,o,c);if(b){const{IVCounterNonce:S,Data:C,AuthenticatedEncryptionTag:y}=await Yf(b),w=new Uint8Array(S.length+C.length+y.length);w.set(S,0),w.set(C,S.length),w.set(y,S.length+C.length);const $="application/octet-stream",_=`${h.fileName}.enc`;Fs(w,_,$),n("File has been encrypted")}}catch(g){n(`Error encrypting: ${g}`),console.error("Error encrypting:",g)}finally{a(!1)}};return x.jsxs("div",{className:"rounded-lg p-6 m-4",children:[x.jsx("h1",{className:"text-2xl font-bold  mb-6",children:"Symmetric Encryption"}),x.jsxs("div",{className:"mb-8 space-y-2",children:[x.jsx("p",{children:"Encrypt a file using a symmetric key."}),x.jsx("p",{children:"Encryption can happen in two ways:"}),x.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[x.jsx("li",{children:"Server side: the data is sent to the server and encrypted there."}),x.jsx("li",{children:"Client side: The data encryption key (DEK) is encrypted server-side, then data is encrypted locally."})]}),x.jsx("p",{className:"text-sm text-yellow-600",children:"Note: Server-side encryption loads the entire file in memory."})]}),x.jsx(fe,{form:e,onFinish:d,layout:"vertical",initialValues:{dataEncryptionAlgorithm:"AesGcm"},children:x.jsxs(zn,{direction:"vertical",size:"middle",style:{display:"flex"},children:[x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),x.jsx(fe.Item,{name:"fileName",style:{display:"none"},children:x.jsx(yt,{})}),x.jsx(fe.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to encrypt"}],children:x.jsx($a.Dragger,{beforeUpload:h=>{e.setFieldValue("fileName",h.name);const v=new FileReader;return v.onload=g=>{const b=g.target?.result;if(b&&b instanceof ArrayBuffer){const S=new Uint8Array(b);e.setFieldsValue({inputFile:S})}},v.readAsArrayBuffer(h),!1},maxCount:1,children:x.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to encrypt"})})})]}),x.jsxs(rt,{children:[x.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),x.jsx(fe.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the symmetric key",children:x.jsx(yt,{placeholder:"Enter key ID"})}),x.jsx(fe.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:x.jsx(Rt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),x.jsxs(rt,{children:[x.jsx(fe.Item,{name:"dataEncryptionAlgorithm",label:"Data Encryption Algorithm",rules:[{required:!0}],help:"Algorithm used to encrypt the data",children:x.jsxs(Rt,{children:[x.jsx(Rt.Option,{value:"AesGcm",children:"AES-GCM"}),x.jsx(Rt.Option,{value:"AesGcmSiv",children:"AES-GCM-SIV"}),x.jsx(Rt.Option,{value:"AesCbc",children:"AES-CBC"}),x.jsx(Rt.Option,{value:"Chacha20Poly1305",children:"ChaCha20-Poly1305"}),x.jsx(Rt.Option,{value:"AesXts",children:"AES-XTS"})]})}),f!=="AesXts"&&f!=="AesCbc"&&x.jsxs(x.Fragment,{children:[x.jsx(fe.Item,{name:"nonce",label:"Nonce/IV",help:"Optional: random value will be generated if not provided (hex string)",children:x.jsx(yt,{placeholder:"Enter nonce in hex format"})}),x.jsx(fe.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional: additional authentication data (hex string)",children:x.jsx(yt,{placeholder:"Enter authentication data in hex format"})})]})]}),x.jsx(fe.Item,{children:x.jsx(gn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Encrypt File (Server-side)"})})]})}),t&&x.jsx("div",{ref:u,children:x.jsx(rt,{title:"Symmetric keys encrypt response",children:t})})]})},Rue=({isDarkMode:e,setIsDarkMode:t})=>{const{setServerUrl:n,setIdToken:r,setUserId:a}=Dn(),[o,c]=s.useState(!1),[u,f]=s.useState(!1),[d,h]=s.useState("None"),[v,g]=s.useState(void 0);return s.useEffect(()=>{const b=window.location.origin;n(b);const S=async()=>{const C=await Pre(b);if(h(C),C=="JWT"){const y=await Dre(b);if(y)try{await fo("/version",y.id_token,b)&&(r(y.id_token),a(y.user_id),c(!0),g(void 0))}catch(w){console.log(w),g(`An error occurred: ${w}`)}}f(!1)};f(!0),S()},[]),u?x.jsx(x.Fragment,{}):x.jsx(ere,{children:!o&&d==="JWT"?x.jsxs(x.Fragment,{children:[x.jsx(Gt,{path:"/login",element:x.jsx(xR,{auth:!0,error:v})}),x.jsx(Gt,{path:"*",element:x.jsx(Qne,{to:"/login",replace:!0})})]}):x.jsxs(x.Fragment,{children:[x.jsx(Gt,{index:!0,element:x.jsx(xR,{auth:!1})}),x.jsxs(Gt,{path:"/",element:x.jsx(hue,{isDarkMode:e,setIsDarkMode:t,authMethod:d}),children:[x.jsx(Gt,{path:"locate",element:x.jsx(cue,{})}),x.jsxs(Gt,{path:"sym",children:[x.jsx(Gt,{path:"keys/create",element:x.jsx(_ue,{})}),x.jsx(Gt,{path:"keys/export",element:x.jsx(jd,{key_type:"symmetric"})}),x.jsx(Gt,{path:"keys/import",element:x.jsx(Td,{key_type:"symmetric"})}),x.jsx(Gt,{path:"keys/revoke",element:x.jsx(Dc,{objectType:"symmetric"})}),x.jsx(Gt,{path:"keys/destroy",element:x.jsx(Tc,{objectType:"symmetric"})}),x.jsx(Gt,{path:"encrypt",element:x.jsx(Iue,{})}),x.jsx(Gt,{path:"decrypt",element:x.jsx(Oue,{})})]}),x.jsxs(Gt,{path:"rsa",children:[x.jsx(Gt,{path:"keys/create",element:x.jsx(wue,{})}),x.jsx(Gt,{path:"keys/export",element:x.jsx(jd,{key_type:"rsa"})}),x.jsx(Gt,{path:"keys/import",element:x.jsx(Td,{key_type:"rsa"})}),x.jsx(Gt,{path:"keys/revoke",element:x.jsx(Dc,{objectType:"rsa"})}),x.jsx(Gt,{path:"keys/destroy",element:x.jsx(Tc,{objectType:"rsa"})}),x.jsx(Gt,{path:"encrypt",element:x.jsx(Cue,{})}),x.jsx(Gt,{path:"decrypt",element:x.jsx(yue,{})})]}),x.jsxs(Gt,{path:"ec",children:[x.jsx(Gt,{path:"keys/create",element:x.jsx(rue,{})}),x.jsx(Gt,{path:"keys/export",element:x.jsx(jd,{key_type:"ec"})}),x.jsx(Gt,{path:"keys/import",element:x.jsx(Td,{key_type:"ec"})}),x.jsx(Gt,{path:"keys/revoke",element:x.jsx(Dc,{objectType:"ec"})}),x.jsx(Gt,{path:"keys/destroy",element:x.jsx(Tc,{objectType:"ec"})}),x.jsx(Gt,{path:"encrypt",element:x.jsx(nue,{})}),x.jsx(Gt,{path:"decrypt",element:x.jsx(tue,{})})]}),x.jsxs(Gt,{path:"cc",children:[x.jsx(Gt,{path:"keys/create-master-key-pair",element:x.jsx(Qce,{})}),x.jsx(Gt,{path:"keys/create-user-key",element:x.jsx(Jce,{})}),x.jsx(Gt,{path:"keys/export",element:x.jsx(jd,{key_type:"covercrypt"})}),x.jsx(Gt,{path:"keys/import",element:x.jsx(Td,{key_type:"covercrypt"})}),x.jsx(Gt,{path:"keys/revoke",element:x.jsx(Dc,{objectType:"covercrypt"})}),x.jsx(Gt,{path:"keys/destroy",element:x.jsx(Tc,{objectType:"covercrypt"})}),x.jsx(Gt,{path:"encrypt",element:x.jsx(Gce,{})}),x.jsx(Gt,{path:"decrypt",element:x.jsx(Yce,{})})]}),x.jsxs(Gt,{path:"secret-data",children:[x.jsx(Gt,{path:"create",element:x.jsx($ue,{})}),x.jsx(Gt,{path:"export",element:x.jsx(jd,{key_type:"secret-data"})}),x.jsx(Gt,{path:"import",element:x.jsx(Td,{key_type:"secret-data"})}),x.jsx(Gt,{path:"revoke",element:x.jsx(Dc,{objectType:"secret-data"})}),x.jsx(Gt,{path:"destroy",element:x.jsx(Tc,{objectType:"secret-data"})})]}),x.jsxs(Gt,{path:"access-rights",children:[x.jsx(Gt,{path:"grant",element:x.jsx(Are,{})}),x.jsx(Gt,{path:"revoke",element:x.jsx(Bre,{})}),x.jsx(Gt,{path:"list",element:x.jsx(zre,{})}),x.jsx(Gt,{path:"owned",element:x.jsx(gue,{})}),x.jsx(Gt,{path:"obtained",element:x.jsx(Lre,{})})]}),x.jsxs(Gt,{path:"certificates",children:[x.jsx(Gt,{path:"certs/import",element:x.jsx(Wce,{})}),x.jsx(Gt,{path:"certs/export",element:x.jsx(Uce,{})}),x.jsx(Gt,{path:"certs/revoke",element:x.jsx(Dc,{objectType:"certificate"})}),x.jsx(Gt,{path:"certs/destroy",element:x.jsx(Tc,{objectType:"certificate"})}),x.jsx(Gt,{path:"certs/validate",element:x.jsx(qce,{})}),x.jsx(Gt,{path:"encrypt",element:x.jsx(Vce,{})}),x.jsx(Gt,{path:"decrypt",element:x.jsx(Fce,{})}),x.jsx(Gt,{path:"certs/certify",element:x.jsx(Hce,{})})]}),x.jsxs(Gt,{path:"attributes",children:[x.jsx(Gt,{path:"get",element:x.jsx(Die,{})}),x.jsx(Gt,{path:"set",element:x.jsx(zce,{})}),x.jsx(Gt,{path:"delete",element:x.jsx(Tae,{})})]}),x.jsx(Gt,{path:"google-cse",element:x.jsx(eue,{})})]}),x.jsx(Gt,{path:"*",element:x.jsx(vue,{})})]})})};function Nue(){const[e,t]=s.useState(!1);s.useEffect(()=>{async function a(){await cP()}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 x.jsx(wre,{basename:"/ui",children:x.jsx(vo,{theme:{...Iee.defaultConfig,...e?r:n},children:x.jsx(Tre,{children:x.jsx(Rue,{isDarkMode:e,setIsDarkMode:t})})})})}$6.createRoot(document.getElementById("root")).render(x.jsx(s.StrictMode,{children:x.jsx(Nue,{})}));
