buddy-workbench 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
function o3(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 l=Object.getOwnPropertyDescriptor(r,a);l&&Object.defineProperty(e,a,l.get?l:{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 l of a)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(a){if(a.ep)return;a.ep=!0;const l=n(a);fetch(a.href,l)}})();function Mo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zh={exports:{}},Xu={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var v2;function qT(){if(v2)return Xu;v2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,l){var c=null;if(l!==void 0&&(c=""+l),a.key!==void 0&&(c=""+a.key),"key"in a){l={};for(var u in a)u!=="key"&&(l[u]=a[u])}else l=a;return a=l.ref,{$$typeof:e,type:r,key:c,ref:a!==void 0?a:null,props:l}}return Xu.Fragment=t,Xu.jsx=n,Xu.jsxs=n,Xu}var g2;function GT(){return g2||(g2=1,Zh.exports=qT()),Zh.exports}var $=GT(),Jh={exports:{}},gn={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var p2;function XT(){if(p2)return gn;p2=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"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),p=Symbol.iterator;function b(V){return V===null||typeof V!="object"?null:(V=p&&V[p]||V["@@iterator"],typeof V=="function"?V:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,h={};function x(V,G,K){this.props=V,this.context=G,this.refs=h,this.updater=K||C}x.prototype.isReactComponent={},x.prototype.setState=function(V,G){if(typeof V!="object"&&typeof V!="function"&&V!=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,V,G,"setState")},x.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function w(){}w.prototype=x.prototype;function E(V,G,K){this.props=V,this.context=G,this.refs=h,this.updater=K||C}var j=E.prototype=new w;j.constructor=E,S(j,x.prototype),j.isPureReactComponent=!0;var R=Array.isArray;function I(){}var O={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function N(V,G,K){var U=K.ref;return{$$typeof:e,type:V,key:G,ref:U!==void 0?U:null,props:K}}function P(V,G){return N(V.type,G,V.props)}function B(V){return typeof V=="object"&&V!==null&&V.$$typeof===e}function L(V){var G={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(K){return G[K]})}var k=/\/+/g;function D(V,G){return typeof V=="object"&&V!==null&&V.key!=null?L(""+V.key):G.toString(36)}function H(V){switch(V.status){case"fulfilled":return V.value;case"rejected":throw V.reason;default:switch(typeof V.status=="string"?V.then(I,I):(V.status="pending",V.then(function(G){V.status==="pending"&&(V.status="fulfilled",V.value=G)},function(G){V.status==="pending"&&(V.status="rejected",V.reason=G)})),V.status){case"fulfilled":return V.value;case"rejected":throw V.reason}}throw V}function z(V,G,K,U,Z){var Q=typeof V;(Q==="undefined"||Q==="boolean")&&(V=null);var te=!1;if(V===null)te=!0;else switch(Q){case"bigint":case"string":case"number":te=!0;break;case"object":switch(V.$$typeof){case e:case t:te=!0;break;case v:return te=V._init,z(te(V._payload),G,K,U,Z)}}if(te)return Z=Z(V),te=U===""?"."+D(V,0):U,R(Z)?(K="",te!=null&&(K=te.replace(k,"$&/")+"/"),z(Z,G,K,"",function(re){return re})):Z!=null&&(B(Z)&&(Z=P(Z,K+(Z.key==null||V&&V.key===Z.key?"":(""+Z.key).replace(k,"$&/")+"/")+te)),G.push(Z)),1;te=0;var X=U===""?".":U+":";if(R(V))for(var ae=0;ae<V.length;ae++)U=V[ae],Q=X+D(U,ae),te+=z(U,G,K,Q,Z);else if(ae=b(V),typeof ae=="function")for(V=ae.call(V),ae=0;!(U=V.next()).done;)U=U.value,Q=X+D(U,ae++),te+=z(U,G,K,Q,Z);else if(Q==="object"){if(typeof V.then=="function")return z(H(V),G,K,U,Z);throw G=String(V),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return te}function _(V,G,K){if(V==null)return V;var U=[],Z=0;return z(V,U,"","",function(Q){return G.call(K,Q,Z++)}),U}function F(V){if(V._status===-1){var G=V._result;G=G(),G.then(function(K){(V._status===0||V._status===-1)&&(V._status=1,V._result=K)},function(K){(V._status===0||V._status===-1)&&(V._status=2,V._result=K)}),V._status===-1&&(V._status=0,V._result=G)}if(V._status===1)return V._result.default;throw V._result}var W=typeof reportError=="function"?reportError:function(V){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof V=="object"&&V!==null&&typeof V.message=="string"?String(V.message):String(V),error:V});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",V);return}console.error(V)},q={map:_,forEach:function(V,G,K){_(V,function(){G.apply(this,arguments)},K)},count:function(V){var G=0;return _(V,function(){G++}),G},toArray:function(V){return _(V,function(G){return G})||[]},only:function(V){if(!B(V))throw Error("React.Children.only expected to receive a single React element child.");return V}};return gn.Activity=g,gn.Children=q,gn.Component=x,gn.Fragment=n,gn.Profiler=a,gn.PureComponent=E,gn.StrictMode=r,gn.Suspense=d,gn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,gn.__COMPILER_RUNTIME={__proto__:null,c:function(V){return O.H.useMemoCache(V)}},gn.cache=function(V){return function(){return V.apply(null,arguments)}},gn.cacheSignal=function(){return null},gn.cloneElement=function(V,G,K){if(V==null)throw Error("The argument must be a React element, but you passed "+V+".");var U=S({},V.props),Z=V.key;if(G!=null)for(Q in G.key!==void 0&&(Z=""+G.key),G)!M.call(G,Q)||Q==="key"||Q==="__self"||Q==="__source"||Q==="ref"&&G.ref===void 0||(U[Q]=G[Q]);var Q=arguments.length-2;if(Q===1)U.children=K;else if(1<Q){for(var te=Array(Q),X=0;X<Q;X++)te[X]=arguments[X+2];U.children=te}return N(V.type,Z,U)},gn.createContext=function(V){return V={$$typeof:c,_currentValue:V,_currentValue2:V,_threadCount:0,Provider:null,Consumer:null},V.Provider=V,V.Consumer={$$typeof:l,_context:V},V},gn.createElement=function(V,G,K){var U,Z={},Q=null;if(G!=null)for(U in G.key!==void 0&&(Q=""+G.key),G)M.call(G,U)&&U!=="key"&&U!=="__self"&&U!=="__source"&&(Z[U]=G[U]);var te=arguments.length-2;if(te===1)Z.children=K;else if(1<te){for(var X=Array(te),ae=0;ae<te;ae++)X[ae]=arguments[ae+2];Z.children=X}if(V&&V.defaultProps)for(U in te=V.defaultProps,te)Z[U]===void 0&&(Z[U]=te[U]);return N(V,Q,Z)},gn.createRef=function(){return{current:null}},gn.forwardRef=function(V){return{$$typeof:u,render:V}},gn.isValidElement=B,gn.lazy=function(V){return{$$typeof:v,_payload:{_status:-1,_result:V},_init:F}},gn.memo=function(V,G){return{$$typeof:f,type:V,compare:G===void 0?null:G}},gn.startTransition=function(V){var G=O.T,K={};O.T=K;try{var U=V(),Z=O.S;Z!==null&&Z(K,U),typeof U=="object"&&U!==null&&typeof U.then=="function"&&U.then(I,W)}catch(Q){W(Q)}finally{G!==null&&K.types!==null&&(G.types=K.types),O.T=G}},gn.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},gn.use=function(V){return O.H.use(V)},gn.useActionState=function(V,G,K){return O.H.useActionState(V,G,K)},gn.useCallback=function(V,G){return O.H.useCallback(V,G)},gn.useContext=function(V){return O.H.useContext(V)},gn.useDebugValue=function(){},gn.useDeferredValue=function(V,G){return O.H.useDeferredValue(V,G)},gn.useEffect=function(V,G){return O.H.useEffect(V,G)},gn.useEffectEvent=function(V){return O.H.useEffectEvent(V)},gn.useId=function(){return O.H.useId()},gn.useImperativeHandle=function(V,G,K){return O.H.useImperativeHandle(V,G,K)},gn.useInsertionEffect=function(V,G){return O.H.useInsertionEffect(V,G)},gn.useLayoutEffect=function(V,G){return O.H.useLayoutEffect(V,G)},gn.useMemo=function(V,G){return O.H.useMemo(V,G)},gn.useOptimistic=function(V,G){return O.H.useOptimistic(V,G)},gn.useReducer=function(V,G,K){return O.H.useReducer(V,G,K)},gn.useRef=function(V){return O.H.useRef(V)},gn.useState=function(V){return O.H.useState(V)},gn.useSyncExternalStore=function(V,G,K){return O.H.useSyncExternalStore(V,G,K)},gn.useTransition=function(){return O.H.useTransition()},gn.version="19.2.7",gn}var h2;function n1(){return h2||(h2=1,Jh.exports=XT()),Jh.exports}var i=n1();const ve=Mo(i),Qv=o3({__proto__:null,default:ve},[i]);var e0={exports:{}},Yu={},t0={exports:{}},n0={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var b2;function YT(){return b2||(b2=1,(function(e){function t(z,_){var F=z.length;z.push(_);e:for(;0<F;){var W=F-1>>>1,q=z[W];if(0<a(q,_))z[W]=_,z[F]=q,F=W;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var _=z[0],F=z.pop();if(F!==_){z[0]=F;e:for(var W=0,q=z.length,V=q>>>1;W<V;){var G=2*(W+1)-1,K=z[G],U=G+1,Z=z[U];if(0>a(K,F))U<q&&0>a(Z,K)?(z[W]=Z,z[U]=F,W=U):(z[W]=K,z[G]=F,W=G);else if(U<q&&0>a(Z,F))z[W]=Z,z[U]=F,W=U;else break e}}return _}function a(z,_){var F=z.sortIndex-_.sortIndex;return F!==0?F:z.id-_.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var d=[],f=[],v=1,g=null,p=3,b=!1,C=!1,S=!1,h=!1,x=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function j(z){for(var _=n(f);_!==null;){if(_.callback===null)r(f);else if(_.startTime<=z)r(f),_.sortIndex=_.expirationTime,t(d,_);else break;_=n(f)}}function R(z){if(S=!1,j(z),!C)if(n(d)!==null)C=!0,I||(I=!0,L());else{var _=n(f);_!==null&&H(R,_.startTime-z)}}var I=!1,O=-1,M=5,N=-1;function P(){return h?!0:!(e.unstable_now()-N<M)}function B(){if(h=!1,I){var z=e.unstable_now();N=z;var _=!0;try{e:{C=!1,S&&(S=!1,w(O),O=-1),b=!0;var F=p;try{t:{for(j(z),g=n(d);g!==null&&!(g.expirationTime>z&&P());){var W=g.callback;if(typeof W=="function"){g.callback=null,p=g.priorityLevel;var q=W(g.expirationTime<=z);if(z=e.unstable_now(),typeof q=="function"){g.callback=q,j(z),_=!0;break t}g===n(d)&&r(d),j(z)}else r(d);g=n(d)}if(g!==null)_=!0;else{var V=n(f);V!==null&&H(R,V.startTime-z),_=!1}}break e}finally{g=null,p=F,b=!1}_=void 0}}finally{_?L():I=!1}}}var L;if(typeof E=="function")L=function(){E(B)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,D=k.port2;k.port1.onmessage=B,L=function(){D.postMessage(null)}}else L=function(){x(B,0)};function H(z,_){O=x(function(){z(e.unstable_now())},_)}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(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_next=function(z){switch(p){case 1:case 2:case 3:var _=3;break;default:_=p}var F=p;p=_;try{return z()}finally{p=F}},e.unstable_requestPaint=function(){h=!0},e.unstable_runWithPriority=function(z,_){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var F=p;p=z;try{return _()}finally{p=F}},e.unstable_scheduleCallback=function(z,_,F){var W=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?W+F:W):F=W,z){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=F+q,z={id:v++,callback:_,priorityLevel:z,startTime:F,expirationTime:q,sortIndex:-1},F>W?(z.sortIndex=F,t(f,z),n(d)===null&&z===n(f)&&(S?(w(O),O=-1):S=!0,H(R,F-W))):(z.sortIndex=q,t(d,z),C||b||(C=!0,I||(I=!0,L()))),z},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(z){var _=p;return function(){var F=p;p=_;try{return z.apply(this,arguments)}finally{p=F}}}})(n0)),n0}var y2;function QT(){return y2||(y2=1,t0.exports=YT()),t0.exports}var r0={exports:{}},va={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var C2;function ZT(){if(C2)return va;C2=1;var e=n1();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)f+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+d+"; visit "+f+" 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 l(d,f,v){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:g==null?null:""+g,children:d,containerInfo:f,implementation:v}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return va.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,va.createPortal=function(d,f){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return l(d,f,null,v)},va.flushSync=function(d){var f=c.T,v=r.p;try{if(c.T=null,r.p=2,d)return d()}finally{c.T=f,r.p=v,r.d.f()}},va.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},va.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},va.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var v=f.as,g=u(v,f.crossOrigin),p=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;v==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:g,integrity:p,fetchPriority:b}):v==="script"&&r.d.X(d,{crossOrigin:g,integrity:p,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},va.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var v=u(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:v,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},va.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var v=f.as,g=u(v,f.crossOrigin);r.d.L(d,v,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},va.preloadModule=function(d,f){if(typeof d=="string")if(f){var v=u(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:v,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},va.requestFormReset=function(d){r.d.r(d)},va.unstable_batchedUpdates=function(d,f){return d(f)},va.useFormState=function(d,f,v){return c.H.useFormState(d,f,v)},va.useFormStatus=function(){return c.H.useHostTransitionStatus()},va.version="19.2.7",va}var S2;function i3(){if(S2)return r0.exports;S2=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(),r0.exports=ZT(),r0.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var x2;function JT(){if(x2)return Yu;x2=1;var e=QT(),t=n1(),n=i3();function r(o){var s="https://react.dev/errors/"+o;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)s+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function l(o){var s=o,m=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,(s.flags&4098)!==0&&(m=s.return),o=s.return;while(o)}return s.tag===3?m:null}function c(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function u(o){if(o.tag===31){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function d(o){if(l(o)!==o)throw Error(r(188))}function f(o){var s=o.alternate;if(!s){if(s=l(o),s===null)throw Error(r(188));return s!==o?null:o}for(var m=o,y=s;;){var T=m.return;if(T===null)break;var A=T.alternate;if(A===null){if(y=T.return,y!==null){m=y;continue}break}if(T.child===A.child){for(A=T.child;A;){if(A===m)return d(T),o;if(A===y)return d(T),s;A=A.sibling}throw Error(r(188))}if(m.return!==y.return)m=T,y=A;else{for(var J=!1,me=T.child;me;){if(me===m){J=!0,m=T,y=A;break}if(me===y){J=!0,y=T,m=A;break}me=me.sibling}if(!J){for(me=A.child;me;){if(me===m){J=!0,m=A,y=T;break}if(me===y){J=!0,y=A,m=T;break}me=me.sibling}if(!J)throw Error(r(189))}}if(m.alternate!==y)throw Error(r(190))}if(m.tag!==3)throw Error(r(188));return m.stateNode.current===m?o:s}function v(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o;for(o=o.child;o!==null;){if(s=v(o),s!==null)return s;o=o.sibling}return null}var g=Object.assign,p=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),E=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function L(o){return o===null||typeof o!="object"?null:(o=B&&o[B]||o["@@iterator"],typeof o=="function"?o:null)}var k=Symbol.for("react.client.reference");function D(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===k?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case S:return"Fragment";case x:return"Profiler";case h:return"StrictMode";case R:return"Suspense";case I:return"SuspenseList";case N:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case C:return"Portal";case E:return o.displayName||"Context";case w:return(o._context.displayName||"Context")+".Consumer";case j:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case O:return s=o.displayName||null,s!==null?s:D(o.type)||"Memo";case M:s=o._payload,o=o._init;try{return D(o(s))}catch{}}return null}var H=Array.isArray,z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},W=[],q=-1;function V(o){return{current:o}}function G(o){0>q||(o.current=W[q],W[q]=null,q--)}function K(o,s){q++,W[q]=o.current,o.current=s}var U=V(null),Z=V(null),Q=V(null),te=V(null);function X(o,s){switch(K(Q,s),K(Z,o),K(U,null),s.nodeType){case 9:case 11:o=(o=s.documentElement)&&(o=o.namespaceURI)?A$(o):0;break;default:if(o=s.tagName,s=s.namespaceURI)s=A$(s),o=B$(s,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}G(U),K(U,o)}function ae(){G(U),G(Z),G(Q)}function re(o){o.memoizedState!==null&&K(te,o);var s=U.current,m=B$(s,o.type);s!==m&&(K(Z,o),K(U,m))}function ne(o){Z.current===o&&(G(U),G(Z)),te.current===o&&(G(te),Ku._currentValue=F)}var Y,ie;function le(o){if(Y===void 0)try{throw Error()}catch(m){var s=m.stack.trim().match(/\n( *(at )?)/);Y=s&&s[1]||"",ie=-1<m.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Y+o+ie}var de=!1;function ce(o,s){if(!o||de)return"";de=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var y={DetermineComponentFrameRoot:function(){try{if(s){var it=function(){throw Error()};if(Object.defineProperty(it.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(it,[])}catch(qe){var He=qe}Reflect.construct(o,[],it)}else{try{it.call()}catch(qe){He=qe}o.call(it.prototype)}}else{try{throw Error()}catch(qe){He=qe}(it=o())&&typeof it.catch=="function"&&it.catch(function(){})}}catch(qe){if(qe&&He&&typeof qe.stack=="string")return[qe.stack,He.stack]}return[null,null]}};y.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var T=Object.getOwnPropertyDescriptor(y.DetermineComponentFrameRoot,"name");T&&T.configurable&&Object.defineProperty(y.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var A=y.DetermineComponentFrameRoot(),J=A[0],me=A[1];if(J&&me){var xe=J.split(`
|
|
44
|
+
`),ke=me.split(`
|
|
45
|
+
`);for(T=y=0;y<xe.length&&!xe[y].includes("DetermineComponentFrameRoot");)y++;for(;T<ke.length&&!ke[T].includes("DetermineComponentFrameRoot");)T++;if(y===xe.length||T===ke.length)for(y=xe.length-1,T=ke.length-1;1<=y&&0<=T&&xe[y]!==ke[T];)T--;for(;1<=y&&0<=T;y--,T--)if(xe[y]!==ke[T]){if(y!==1||T!==1)do if(y--,T--,0>T||xe[y]!==ke[T]){var Ze=`
|
|
46
|
+
`+xe[y].replace(" at new "," at ");return o.displayName&&Ze.includes("<anonymous>")&&(Ze=Ze.replace("<anonymous>",o.displayName)),Ze}while(1<=y&&0<=T);break}}}finally{de=!1,Error.prepareStackTrace=m}return(m=o?o.displayName||o.name:"")?le(m):""}function ge(o,s){switch(o.tag){case 26:case 27:case 5:return le(o.type);case 16:return le("Lazy");case 13:return o.child!==s&&s!==null?le("Suspense Fallback"):le("Suspense");case 19:return le("SuspenseList");case 0:case 15:return ce(o.type,!1);case 11:return ce(o.type.render,!1);case 1:return ce(o.type,!0);case 31:return le("Activity");default:return""}}function he(o){try{var s="",m=null;do s+=ge(o,m),m=o,o=o.return;while(o);return s}catch(y){return`
|
|
47
|
+
Error generating stack: `+y.message+`
|
|
48
|
+
`+y.stack}}var Oe=Object.prototype.hasOwnProperty,je=e.unstable_scheduleCallback,pe=e.unstable_cancelCallback,we=e.unstable_shouldYield,Se=e.unstable_requestPaint,Ce=e.unstable_now,De=e.unstable_getCurrentPriorityLevel,Ae=e.unstable_ImmediatePriority,Ye=e.unstable_UserBlockingPriority,Ke=e.unstable_NormalPriority,Fe=e.unstable_LowPriority,Ge=e.unstable_IdlePriority,Te=e.log,Ee=e.unstable_setDisableYieldValue,_e=null,Re=null;function Pe(o){if(typeof Te=="function"&&Ee(o),Re&&typeof Re.setStrictMode=="function")try{Re.setStrictMode(_e,o)}catch{}}var be=Math.clz32?Math.clz32:Le,$e=Math.log,Me=Math.LN2;function Le(o){return o>>>=0,o===0?32:31-($e(o)/Me|0)|0}var et=256,bt=262144,We=4194304;function tt(o){var s=o&42;if(s!==0)return s;switch(o&-o){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 o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function dt(o,s,m){var y=o.pendingLanes;if(y===0)return 0;var T=0,A=o.suspendedLanes,J=o.pingedLanes;o=o.warmLanes;var me=y&134217727;return me!==0?(y=me&~A,y!==0?T=tt(y):(J&=me,J!==0?T=tt(J):m||(m=me&~o,m!==0&&(T=tt(m))))):(me=y&~A,me!==0?T=tt(me):J!==0?T=tt(J):m||(m=y&~o,m!==0&&(T=tt(m)))),T===0?0:s!==0&&s!==T&&(s&A)===0&&(A=T&-T,m=s&-s,A>=m||A===32&&(m&4194048)!==0)?s:T}function at(o,s){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&s)===0}function pt(o,s){switch(o){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 Pt(){var o=We;return We<<=1,(We&62914560)===0&&(We=4194304),o}function Et(o){for(var s=[],m=0;31>m;m++)s.push(o);return s}function ct(o,s){o.pendingLanes|=s,s!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function St(o,s,m,y,T,A){var J=o.pendingLanes;o.pendingLanes=m,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=m,o.entangledLanes&=m,o.errorRecoveryDisabledLanes&=m,o.shellSuspendCounter=0;var me=o.entanglements,xe=o.expirationTimes,ke=o.hiddenUpdates;for(m=J&~m;0<m;){var Ze=31-be(m),it=1<<Ze;me[Ze]=0,xe[Ze]=-1;var He=ke[Ze];if(He!==null)for(ke[Ze]=null,Ze=0;Ze<He.length;Ze++){var qe=He[Ze];qe!==null&&(qe.lane&=-536870913)}m&=~it}y!==0&&yt(o,y,0),A!==0&&T===0&&o.tag!==0&&(o.suspendedLanes|=A&~(J&~s))}function yt(o,s,m){o.pendingLanes|=s,o.suspendedLanes&=~s;var y=31-be(s);o.entangledLanes|=s,o.entanglements[y]=o.entanglements[y]|1073741824|m&261930}function Je(o,s){var m=o.entangledLanes|=s;for(o=o.entanglements;m;){var y=31-be(m),T=1<<y;T&s|o[y]&s&&(o[y]|=s),m&=~T}}function Ve(o,s){var m=s&-s;return m=(m&42)!==0?1:Ue(m),(m&(o.suspendedLanes|s))!==0?0:m}function Ue(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=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:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function mt(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Mt(){var o=_.p;return o!==0?o:(o=window.event,o===void 0?32:l2(o.type))}function It(o,s){var m=_.p;try{return _.p=o,s()}finally{_.p=m}}var Vt=Math.random().toString(36).slice(2),ft="__reactFiber$"+Vt,lt="__reactProps$"+Vt,At="__reactContainer$"+Vt,Ut="__reactEvents$"+Vt,rn="__reactListeners$"+Vt,Qt="__reactHandles$"+Vt,vn="__reactResources$"+Vt,qt="__reactMarker$"+Vt;function un(o){delete o[ft],delete o[lt],delete o[Ut],delete o[rn],delete o[Qt]}function st(o){var s=o[ft];if(s)return s;for(var m=o.parentNode;m;){if(s=m[At]||m[ft]){if(m=s.alternate,s.child!==null||m!==null&&m.child!==null)for(o=K$(o);o!==null;){if(m=o[ft])return m;o=K$(o)}return s}o=m,m=o.parentNode}return null}function Ct(o){if(o=o[ft]||o[At]){var s=o.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return o}return null}function ht(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o.stateNode;throw Error(r(33))}function Xe(o){var s=o[vn];return s||(s=o[vn]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Qe(o){o[qt]=!0}var ut=new Set,zt={};function Kt(o,s){vt(o,s),vt(o+"Capture",s)}function vt(o,s){for(zt[o]=s,o=0;o<s.length;o++)ut.add(s[o])}var Nt=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]*$"),Ft={},xn={};function _n(o){return Oe.call(xn,o)?!0:Oe.call(Ft,o)?!1:Nt.test(o)?xn[o]=!0:(Ft[o]=!0,!1)}function Pn(o,s,m){if(_n(s))if(m===null)o.removeAttribute(s);else{switch(typeof m){case"undefined":case"function":case"symbol":o.removeAttribute(s);return;case"boolean":var y=s.toLowerCase().slice(0,5);if(y!=="data-"&&y!=="aria-"){o.removeAttribute(s);return}}o.setAttribute(s,""+m)}}function Wn(o,s,m){if(m===null)o.removeAttribute(s);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(s);return}o.setAttribute(s,""+m)}}function Rn(o,s,m,y){if(y===null)o.removeAttribute(m);else{switch(typeof y){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(m);return}o.setAttributeNS(s,m,""+y)}}function An(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Cr(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Mr(o,s,m){var y=Object.getOwnPropertyDescriptor(o.constructor.prototype,s);if(!o.hasOwnProperty(s)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var T=y.get,A=y.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return T.call(this)},set:function(J){m=""+J,A.call(this,J)}}),Object.defineProperty(o,s,{enumerable:y.enumerable}),{getValue:function(){return m},setValue:function(J){m=""+J},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function pr(o){if(!o._valueTracker){var s=Cr(o)?"checked":"value";o._valueTracker=Mr(o,s,""+o[s])}}function Cn(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var m=s.getValue(),y="";return o&&(y=Cr(o)?o.checked?"true":"false":o.value),o=y,o!==m?(s.setValue(o),!0):!1}function Bt(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var kt=/[\n"\\]/g;function an(o){return o.replace(kt,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Tt(o,s,m,y,T,A,J,me){o.name="",J!=null&&typeof J!="function"&&typeof J!="symbol"&&typeof J!="boolean"?o.type=J:o.removeAttribute("type"),s!=null?J==="number"?(s===0&&o.value===""||o.value!=s)&&(o.value=""+An(s)):o.value!==""+An(s)&&(o.value=""+An(s)):J!=="submit"&&J!=="reset"||o.removeAttribute("value"),s!=null?mn(o,J,An(s)):m!=null?mn(o,J,An(m)):y!=null&&o.removeAttribute("value"),T==null&&A!=null&&(o.defaultChecked=!!A),T!=null&&(o.checked=T&&typeof T!="function"&&typeof T!="symbol"),me!=null&&typeof me!="function"&&typeof me!="symbol"&&typeof me!="boolean"?o.name=""+An(me):o.removeAttribute("name")}function Dt(o,s,m,y,T,A,J,me){if(A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(o.type=A),s!=null||m!=null){if(!(A!=="submit"&&A!=="reset"||s!=null)){pr(o);return}m=m!=null?""+An(m):"",s=s!=null?""+An(s):m,me||s===o.value||(o.value=s),o.defaultValue=s}y=y??T,y=typeof y!="function"&&typeof y!="symbol"&&!!y,o.checked=me?o.checked:!!y,o.defaultChecked=!!y,J!=null&&typeof J!="function"&&typeof J!="symbol"&&typeof J!="boolean"&&(o.name=J),pr(o)}function mn(o,s,m){s==="number"&&Bt(o.ownerDocument)===o||o.defaultValue===""+m||(o.defaultValue=""+m)}function jn(o,s,m,y){if(o=o.options,s){s={};for(var T=0;T<m.length;T++)s["$"+m[T]]=!0;for(m=0;m<o.length;m++)T=s.hasOwnProperty("$"+o[m].value),o[m].selected!==T&&(o[m].selected=T),T&&y&&(o[m].defaultSelected=!0)}else{for(m=""+An(m),s=null,T=0;T<o.length;T++){if(o[T].value===m){o[T].selected=!0,y&&(o[T].defaultSelected=!0);return}s!==null||o[T].disabled||(s=o[T])}s!==null&&(s.selected=!0)}}function Yn(o,s,m){if(s!=null&&(s=""+An(s),s!==o.value&&(o.value=s),m==null)){o.defaultValue!==s&&(o.defaultValue=s);return}o.defaultValue=m!=null?""+An(m):""}function Sr(o,s,m,y){if(s==null){if(y!=null){if(m!=null)throw Error(r(92));if(H(y)){if(1<y.length)throw Error(r(93));y=y[0]}m=y}m==null&&(m=""),s=m}m=An(s),o.defaultValue=m,y=o.textContent,y===m&&y!==""&&y!==null&&(o.value=y),pr(o)}function Qn(o,s){if(s){var m=o.firstChild;if(m&&m===o.lastChild&&m.nodeType===3){m.nodeValue=s;return}}o.textContent=s}var wr=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 cn(o,s,m){var y=s.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?y?o.setProperty(s,""):s==="float"?o.cssFloat="":o[s]="":y?o.setProperty(s,m):typeof m!="number"||m===0||wr.has(s)?s==="float"?o.cssFloat=m:o[s]=(""+m).trim():o[s]=m+"px"}function gt(o,s,m){if(s!=null&&typeof s!="object")throw Error(r(62));if(o=o.style,m!=null){for(var y in m)!m.hasOwnProperty(y)||s!=null&&s.hasOwnProperty(y)||(y.indexOf("--")===0?o.setProperty(y,""):y==="float"?o.cssFloat="":o[y]="");for(var T in s)y=s[T],s.hasOwnProperty(T)&&m[T]!==y&&cn(o,T,y)}else for(var A in s)s.hasOwnProperty(A)&&cn(o,A,s[A])}function jt(o){if(o.indexOf("-")===-1)return!1;switch(o){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 fn=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"]]),zn=/^[\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 Zn(o){return zn.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Kn(){}var Kr=null;function Zr(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Tr=null,la=null;function $l(o){var s=Ct(o);if(s&&(o=s.stateNode)){var m=o[lt]||null;e:switch(o=s.stateNode,s.type){case"input":if(Tt(o,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),s=m.name,m.type==="radio"&&s!=null){for(m=o;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+an(""+s)+'"][type="radio"]'),s=0;s<m.length;s++){var y=m[s];if(y!==o&&y.form===o.form){var T=y[lt]||null;if(!T)throw Error(r(90));Tt(y,T.value,T.defaultValue,T.defaultValue,T.checked,T.defaultChecked,T.type,T.name)}}for(s=0;s<m.length;s++)y=m[s],y.form===o.form&&Cn(y)}break e;case"textarea":Yn(o,m.value,m.defaultValue);break e;case"select":s=m.value,s!=null&&jn(o,!!m.multiple,s,!1)}}}var xi=!1;function js(o,s,m){if(xi)return o(s,m);xi=!0;try{var y=o(s);return y}finally{if(xi=!1,(Tr!==null||la!==null)&&(rm(),Tr&&(s=Tr,o=la,la=Tr=null,$l(s),o)))for(s=0;s<o.length;s++)$l(o[s])}}function Ht(o,s){var m=o.stateNode;if(m===null)return null;var y=m[lt]||null;if(y===null)return null;m=y[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(y=!y.disabled)||(o=o.type,y=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!y;break e;default:o=!1}if(o)return null;if(m&&typeof m!="function")throw Error(r(231,s,typeof m));return m}var Zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tr=!1;if(Zt)try{var lr={};Object.defineProperty(lr,"passive",{get:function(){tr=!0}}),window.addEventListener("test",lr,lr),window.removeEventListener("test",lr,lr)}catch{tr=!1}var Bn=null,$i=null,wi=null;function cu(){if(wi)return wi;var o,s=$i,m=s.length,y,T="value"in Bn?Bn.value:Bn.textContent,A=T.length;for(o=0;o<m&&s[o]===T[o];o++);var J=m-o;for(y=1;y<=J&&s[m-y]===T[A-y];y++);return wi=T.slice(o,1<y?1-y:void 0)}function Jo(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function yf(){return!0}function kC(){return!1}function Ea(o){function s(m,y,T,A,J){this._reactName=m,this._targetInst=T,this.type=y,this.nativeEvent=A,this.target=J,this.currentTarget=null;for(var me in o)o.hasOwnProperty(me)&&(m=o[me],this[me]=m?m(A):A[me]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1)?yf:kC,this.isPropagationStopped=kC,this}return g(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=yf)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=yf)},persist:function(){},isPersistent:yf}),s}var wl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cf=Ea(wl),uu=g({},wl,{view:0,detail:0}),KM=Ea(uu),ep,tp,du,Sf=g({},uu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rp,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==du&&(du&&o.type==="mousemove"?(ep=o.screenX-du.screenX,tp=o.screenY-du.screenY):tp=ep=0,du=o),ep)},movementY:function(o){return"movementY"in o?o.movementY:tp}}),LC=Ea(Sf),UM=g({},Sf,{dataTransfer:0}),qM=Ea(UM),GM=g({},uu,{relatedTarget:0}),np=Ea(GM),XM=g({},wl,{animationName:0,elapsedTime:0,pseudoElement:0}),YM=Ea(XM),QM=g({},wl,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),ZM=Ea(QM),JM=g({},wl,{data:0}),HC=Ea(JM),e8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},t8={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"},n8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function r8(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=n8[o])?!!s[o]:!1}function rp(){return r8}var a8=g({},uu,{key:function(o){if(o.key){var s=e8[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=Jo(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?t8[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rp,charCode:function(o){return o.type==="keypress"?Jo(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Jo(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),o8=Ea(a8),i8=g({},Sf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),FC=Ea(i8),l8=g({},uu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rp}),s8=Ea(l8),c8=g({},wl,{propertyName:0,elapsedTime:0,pseudoElement:0}),u8=Ea(c8),d8=g({},Sf,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),f8=Ea(d8),m8=g({},wl,{newState:0,oldState:0}),v8=Ea(m8),g8=[9,13,27,32],ap=Zt&&"CompositionEvent"in window,fu=null;Zt&&"documentMode"in document&&(fu=document.documentMode);var p8=Zt&&"TextEvent"in window&&!fu,VC=Zt&&(!ap||fu&&8<fu&&11>=fu),WC=" ",KC=!1;function UC(o,s){switch(o){case"keyup":return g8.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qC(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Is=!1;function h8(o,s){switch(o){case"compositionend":return qC(s);case"keypress":return s.which!==32?null:(KC=!0,WC);case"textInput":return o=s.data,o===WC&&KC?null:o;default:return null}}function b8(o,s){if(Is)return o==="compositionend"||!ap&&UC(o,s)?(o=cu(),wi=$i=Bn=null,Is=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return VC&&s.locale!=="ko"?null:s.data;default:return null}}var y8={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 GC(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!y8[o.type]:s==="textarea"}function XC(o,s,m,y){Tr?la?la.push(y):la=[y]:Tr=y,s=um(s,"onChange"),0<s.length&&(m=new Cf("onChange","change",null,m,y),o.push({event:m,listeners:s}))}var mu=null,vu=null;function C8(o){M$(o,0)}function xf(o){var s=ht(o);if(Cn(s))return o}function YC(o,s){if(o==="change")return s}var QC=!1;if(Zt){var op;if(Zt){var ip="oninput"in document;if(!ip){var ZC=document.createElement("div");ZC.setAttribute("oninput","return;"),ip=typeof ZC.oninput=="function"}op=ip}else op=!1;QC=op&&(!document.documentMode||9<document.documentMode)}function JC(){mu&&(mu.detachEvent("onpropertychange",eS),vu=mu=null)}function eS(o){if(o.propertyName==="value"&&xf(vu)){var s=[];XC(s,vu,o,Zr(o)),js(C8,s)}}function S8(o,s,m){o==="focusin"?(JC(),mu=s,vu=m,mu.attachEvent("onpropertychange",eS)):o==="focusout"&&JC()}function x8(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return xf(vu)}function $8(o,s){if(o==="click")return xf(s)}function w8(o,s){if(o==="input"||o==="change")return xf(s)}function E8(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var za=typeof Object.is=="function"?Object.is:E8;function gu(o,s){if(za(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var m=Object.keys(o),y=Object.keys(s);if(m.length!==y.length)return!1;for(y=0;y<m.length;y++){var T=m[y];if(!Oe.call(s,T)||!za(o[T],s[T]))return!1}return!0}function tS(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function nS(o,s){var m=tS(o);o=0;for(var y;m;){if(m.nodeType===3){if(y=o+m.textContent.length,o<=s&&y>=s)return{node:m,offset:s-o};o=y}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=tS(m)}}function rS(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?rS(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function aS(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var s=Bt(o.document);s instanceof o.HTMLIFrameElement;){try{var m=typeof s.contentWindow.location.href=="string"}catch{m=!1}if(m)o=s.contentWindow;else break;s=Bt(o.document)}return s}function lp(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}var O8=Zt&&"documentMode"in document&&11>=document.documentMode,Ns=null,sp=null,pu=null,cp=!1;function oS(o,s,m){var y=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;cp||Ns==null||Ns!==Bt(y)||(y=Ns,"selectionStart"in y&&lp(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),pu&&gu(pu,y)||(pu=y,y=um(sp,"onSelect"),0<y.length&&(s=new Cf("onSelect","select",null,s,m),o.push({event:s,listeners:y}),s.target=Ns)))}function El(o,s){var m={};return m[o.toLowerCase()]=s.toLowerCase(),m["Webkit"+o]="webkit"+s,m["Moz"+o]="moz"+s,m}var Ms={animationend:El("Animation","AnimationEnd"),animationiteration:El("Animation","AnimationIteration"),animationstart:El("Animation","AnimationStart"),transitionrun:El("Transition","TransitionRun"),transitionstart:El("Transition","TransitionStart"),transitioncancel:El("Transition","TransitionCancel"),transitionend:El("Transition","TransitionEnd")},up={},iS={};Zt&&(iS=document.createElement("div").style,"AnimationEvent"in window||(delete Ms.animationend.animation,delete Ms.animationiteration.animation,delete Ms.animationstart.animation),"TransitionEvent"in window||delete Ms.transitionend.transition);function Ol(o){if(up[o])return up[o];if(!Ms[o])return o;var s=Ms[o],m;for(m in s)if(s.hasOwnProperty(m)&&m in iS)return up[o]=s[m];return o}var lS=Ol("animationend"),sS=Ol("animationiteration"),cS=Ol("animationstart"),R8=Ol("transitionrun"),j8=Ol("transitionstart"),I8=Ol("transitioncancel"),uS=Ol("transitionend"),dS=new Map,dp="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(" ");dp.push("scrollEnd");function po(o,s){dS.set(o,s),Kt(s,[o])}var $f=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Qa=[],Ts=0,fp=0;function wf(){for(var o=Ts,s=fp=Ts=0;s<o;){var m=Qa[s];Qa[s++]=null;var y=Qa[s];Qa[s++]=null;var T=Qa[s];Qa[s++]=null;var A=Qa[s];if(Qa[s++]=null,y!==null&&T!==null){var J=y.pending;J===null?T.next=T:(T.next=J.next,J.next=T),y.pending=T}A!==0&&fS(m,T,A)}}function Ef(o,s,m,y){Qa[Ts++]=o,Qa[Ts++]=s,Qa[Ts++]=m,Qa[Ts++]=y,fp|=y,o.lanes|=y,o=o.alternate,o!==null&&(o.lanes|=y)}function mp(o,s,m,y){return Ef(o,s,m,y),Of(o)}function Rl(o,s){return Ef(o,null,null,s),Of(o)}function fS(o,s,m){o.lanes|=m;var y=o.alternate;y!==null&&(y.lanes|=m);for(var T=!1,A=o.return;A!==null;)A.childLanes|=m,y=A.alternate,y!==null&&(y.childLanes|=m),A.tag===22&&(o=A.stateNode,o===null||o._visibility&1||(T=!0)),o=A,A=A.return;return o.tag===3?(A=o.stateNode,T&&s!==null&&(T=31-be(m),o=A.hiddenUpdates,y=o[T],y===null?o[T]=[s]:y.push(s),s.lane=m|536870912),A):null}function Of(o){if(50<Bu)throw Bu=0,xh=null,Error(r(185));for(var s=o.return;s!==null;)o=s,s=o.return;return o.tag===3?o.stateNode:null}var Ps={};function N8(o,s,m,y){this.tag=o,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=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Da(o,s,m,y){return new N8(o,s,m,y)}function vp(o){return o=o.prototype,!(!o||!o.isReactComponent)}function ei(o,s){var m=o.alternate;return m===null?(m=Da(o.tag,s,o.key,o.mode),m.elementType=o.elementType,m.type=o.type,m.stateNode=o.stateNode,m.alternate=o,o.alternate=m):(m.pendingProps=s,m.type=o.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=o.flags&65011712,m.childLanes=o.childLanes,m.lanes=o.lanes,m.child=o.child,m.memoizedProps=o.memoizedProps,m.memoizedState=o.memoizedState,m.updateQueue=o.updateQueue,s=o.dependencies,m.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},m.sibling=o.sibling,m.index=o.index,m.ref=o.ref,m.refCleanup=o.refCleanup,m}function mS(o,s){o.flags&=65011714;var m=o.alternate;return m===null?(o.childLanes=0,o.lanes=s,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=m.childLanes,o.lanes=m.lanes,o.child=m.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=m.memoizedProps,o.memoizedState=m.memoizedState,o.updateQueue=m.updateQueue,o.type=m.type,s=m.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),o}function Rf(o,s,m,y,T,A){var J=0;if(y=o,typeof o=="function")vp(o)&&(J=1);else if(typeof o=="string")J=DT(o,m,U.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case N:return o=Da(31,m,s,T),o.elementType=N,o.lanes=A,o;case S:return jl(m.children,T,A,s);case h:J=8,T|=24;break;case x:return o=Da(12,m,s,T|2),o.elementType=x,o.lanes=A,o;case R:return o=Da(13,m,s,T),o.elementType=R,o.lanes=A,o;case I:return o=Da(19,m,s,T),o.elementType=I,o.lanes=A,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case E:J=10;break e;case w:J=9;break e;case j:J=11;break e;case O:J=14;break e;case M:J=16,y=null;break e}J=29,m=Error(r(130,o===null?"null":typeof o,"")),y=null}return s=Da(J,m,s,T),s.elementType=o,s.type=y,s.lanes=A,s}function jl(o,s,m,y){return o=Da(7,o,y,s),o.lanes=m,o}function gp(o,s,m){return o=Da(6,o,null,s),o.lanes=m,o}function vS(o){var s=Da(18,null,null,0);return s.stateNode=o,s}function pp(o,s,m){return s=Da(4,o.children!==null?o.children:[],o.key,s),s.lanes=m,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}var gS=new WeakMap;function Za(o,s){if(typeof o=="object"&&o!==null){var m=gS.get(o);return m!==void 0?m:(s={value:o,source:s,stack:he(s)},gS.set(o,s),s)}return{value:o,source:s,stack:he(s)}}var zs=[],Ds=0,jf=null,hu=0,Ja=[],eo=0,Ei=null,Ao=1,Bo="";function ti(o,s){zs[Ds++]=hu,zs[Ds++]=jf,jf=o,hu=s}function pS(o,s,m){Ja[eo++]=Ao,Ja[eo++]=Bo,Ja[eo++]=Ei,Ei=o;var y=Ao;o=Bo;var T=32-be(y)-1;y&=~(1<<T),m+=1;var A=32-be(s)+T;if(30<A){var J=T-T%5;A=(y&(1<<J)-1).toString(32),y>>=J,T-=J,Ao=1<<32-be(s)+T|m<<T|y,Bo=A+o}else Ao=1<<A|m<<T|y,Bo=o}function hp(o){o.return!==null&&(ti(o,1),pS(o,1,0))}function bp(o){for(;o===jf;)jf=zs[--Ds],zs[Ds]=null,hu=zs[--Ds],zs[Ds]=null;for(;o===Ei;)Ei=Ja[--eo],Ja[eo]=null,Bo=Ja[--eo],Ja[eo]=null,Ao=Ja[--eo],Ja[eo]=null}function hS(o,s){Ja[eo++]=Ao,Ja[eo++]=Bo,Ja[eo++]=Ei,Ao=s.id,Bo=s.overflow,Ei=o}var sa=null,vr=null,Dn=!1,Oi=null,to=!1,yp=Error(r(519));function Ri(o){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bu(Za(s,o)),yp}function bS(o){var s=o.stateNode,m=o.type,y=o.memoizedProps;switch(s[ft]=o,s[lt]=y,m){case"dialog":On("cancel",s),On("close",s);break;case"iframe":case"object":case"embed":On("load",s);break;case"video":case"audio":for(m=0;m<Lu.length;m++)On(Lu[m],s);break;case"source":On("error",s);break;case"img":case"image":case"link":On("error",s),On("load",s);break;case"details":On("toggle",s);break;case"input":On("invalid",s),Dt(s,y.value,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name,!0);break;case"select":On("invalid",s);break;case"textarea":On("invalid",s),Sr(s,y.value,y.defaultValue,y.children)}m=y.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||s.textContent===""+m||y.suppressHydrationWarning===!0||D$(s.textContent,m)?(y.popover!=null&&(On("beforetoggle",s),On("toggle",s)),y.onScroll!=null&&On("scroll",s),y.onScrollEnd!=null&&On("scrollend",s),y.onClick!=null&&(s.onclick=Kn),s=!0):s=!1,s||Ri(o,!0)}function yS(o){for(sa=o.return;sa;)switch(sa.tag){case 5:case 31:case 13:to=!1;return;case 27:case 3:to=!0;return;default:sa=sa.return}}function _s(o){if(o!==sa)return!1;if(!Dn)return yS(o),Dn=!0,!1;var s=o.tag,m;if((m=s!==3&&s!==27)&&((m=s===5)&&(m=o.type,m=!(m!=="form"&&m!=="button")||Ah(o.type,o.memoizedProps)),m=!m),m&&vr&&Ri(o),yS(o),s===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));vr=W$(o)}else if(s===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));vr=W$(o)}else s===27?(s=vr,Hi(o.type)?(o=Fh,Fh=null,vr=o):vr=s):vr=sa?ro(o.stateNode.nextSibling):null;return!0}function Il(){vr=sa=null,Dn=!1}function Cp(){var o=Oi;return o!==null&&(Ia===null?Ia=o:Ia.push.apply(Ia,o),Oi=null),o}function bu(o){Oi===null?Oi=[o]:Oi.push(o)}var Sp=V(null),Nl=null,ni=null;function ji(o,s,m){K(Sp,s._currentValue),s._currentValue=m}function ri(o){o._currentValue=Sp.current,G(Sp)}function xp(o,s,m){for(;o!==null;){var y=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,y!==null&&(y.childLanes|=s)):y!==null&&(y.childLanes&s)!==s&&(y.childLanes|=s),o===m)break;o=o.return}}function $p(o,s,m,y){var T=o.child;for(T!==null&&(T.return=o);T!==null;){var A=T.dependencies;if(A!==null){var J=T.child;A=A.firstContext;e:for(;A!==null;){var me=A;A=T;for(var xe=0;xe<s.length;xe++)if(me.context===s[xe]){A.lanes|=m,me=A.alternate,me!==null&&(me.lanes|=m),xp(A.return,m,o),y||(J=null);break e}A=me.next}}else if(T.tag===18){if(J=T.return,J===null)throw Error(r(341));J.lanes|=m,A=J.alternate,A!==null&&(A.lanes|=m),xp(J,m,o),J=null}else J=T.child;if(J!==null)J.return=T;else for(J=T;J!==null;){if(J===o){J=null;break}if(T=J.sibling,T!==null){T.return=J.return,J=T;break}J=J.return}T=J}}function As(o,s,m,y){o=null;for(var T=s,A=!1;T!==null;){if(!A){if((T.flags&524288)!==0)A=!0;else if((T.flags&262144)!==0)break}if(T.tag===10){var J=T.alternate;if(J===null)throw Error(r(387));if(J=J.memoizedProps,J!==null){var me=T.type;za(T.pendingProps.value,J.value)||(o!==null?o.push(me):o=[me])}}else if(T===te.current){if(J=T.alternate,J===null)throw Error(r(387));J.memoizedState.memoizedState!==T.memoizedState.memoizedState&&(o!==null?o.push(Ku):o=[Ku])}T=T.return}o!==null&&$p(s,o,m,y),s.flags|=262144}function If(o){for(o=o.firstContext;o!==null;){if(!za(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Ml(o){Nl=o,ni=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function ca(o){return CS(Nl,o)}function Nf(o,s){return Nl===null&&Ml(o),CS(o,s)}function CS(o,s){var m=s._currentValue;if(s={context:s,memoizedValue:m,next:null},ni===null){if(o===null)throw Error(r(308));ni=s,o.dependencies={lanes:0,firstContext:s},o.flags|=524288}else ni=ni.next=s;return m}var M8=typeof AbortController<"u"?AbortController:function(){var o=[],s=this.signal={aborted:!1,addEventListener:function(m,y){o.push(y)}};this.abort=function(){s.aborted=!0,o.forEach(function(m){return m()})}},T8=e.unstable_scheduleCallback,P8=e.unstable_NormalPriority,Ar={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wp(){return{controller:new M8,data:new Map,refCount:0}}function yu(o){o.refCount--,o.refCount===0&&T8(P8,function(){o.controller.abort()})}var Cu=null,Ep=0,Bs=0,ks=null;function z8(o,s){if(Cu===null){var m=Cu=[];Ep=0,Bs=jh(),ks={status:"pending",value:void 0,then:function(y){m.push(y)}}}return Ep++,s.then(SS,SS),s}function SS(){if(--Ep===0&&Cu!==null){ks!==null&&(ks.status="fulfilled");var o=Cu;Cu=null,Bs=0,ks=null;for(var s=0;s<o.length;s++)(0,o[s])()}}function D8(o,s){var m=[],y={status:"pending",value:null,reason:null,then:function(T){m.push(T)}};return o.then(function(){y.status="fulfilled",y.value=s;for(var T=0;T<m.length;T++)(0,m[T])(s)},function(T){for(y.status="rejected",y.reason=T,T=0;T<m.length;T++)(0,m[T])(void 0)}),y}var xS=z.S;z.S=function(o,s){o$=Ce(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&z8(o,s),xS!==null&&xS(o,s)};var Tl=V(null);function Op(){var o=Tl.current;return o!==null?o:sr.pooledCache}function Mf(o,s){s===null?K(Tl,Tl.current):K(Tl,s.pool)}function $S(){var o=Op();return o===null?null:{parent:Ar._currentValue,pool:o}}var Ls=Error(r(460)),Rp=Error(r(474)),Tf=Error(r(542)),Pf={then:function(){}};function wS(o){return o=o.status,o==="fulfilled"||o==="rejected"}function ES(o,s,m){switch(m=o[m],m===void 0?o.push(s):m!==s&&(s.then(Kn,Kn),s=m),s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,RS(o),o;default:if(typeof s.status=="string")s.then(Kn,Kn);else{if(o=sr,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=s,o.status="pending",o.then(function(y){if(s.status==="pending"){var T=s;T.status="fulfilled",T.value=y}},function(y){if(s.status==="pending"){var T=s;T.status="rejected",T.reason=y}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,RS(o),o}throw zl=s,Ls}}function Pl(o){try{var s=o._init;return s(o._payload)}catch(m){throw m!==null&&typeof m=="object"&&typeof m.then=="function"?(zl=m,Ls):m}}var zl=null;function OS(){if(zl===null)throw Error(r(459));var o=zl;return zl=null,o}function RS(o){if(o===Ls||o===Tf)throw Error(r(483))}var Hs=null,Su=0;function zf(o){var s=Su;return Su+=1,Hs===null&&(Hs=[]),ES(Hs,o,s)}function xu(o,s){s=s.props.ref,o.ref=s!==void 0?s:null}function Df(o,s){throw s.$$typeof===p?Error(r(525)):(o=Object.prototype.toString.call(s),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o)))}function jS(o){function s(ze,Ie){if(o){var Be=ze.deletions;Be===null?(ze.deletions=[Ie],ze.flags|=16):Be.push(Ie)}}function m(ze,Ie){if(!o)return null;for(;Ie!==null;)s(ze,Ie),Ie=Ie.sibling;return null}function y(ze){for(var Ie=new Map;ze!==null;)ze.key!==null?Ie.set(ze.key,ze):Ie.set(ze.index,ze),ze=ze.sibling;return Ie}function T(ze,Ie){return ze=ei(ze,Ie),ze.index=0,ze.sibling=null,ze}function A(ze,Ie,Be){return ze.index=Be,o?(Be=ze.alternate,Be!==null?(Be=Be.index,Be<Ie?(ze.flags|=67108866,Ie):Be):(ze.flags|=67108866,Ie)):(ze.flags|=1048576,Ie)}function J(ze){return o&&ze.alternate===null&&(ze.flags|=67108866),ze}function me(ze,Ie,Be,rt){return Ie===null||Ie.tag!==6?(Ie=gp(Be,ze.mode,rt),Ie.return=ze,Ie):(Ie=T(Ie,Be),Ie.return=ze,Ie)}function xe(ze,Ie,Be,rt){var en=Be.type;return en===S?Ze(ze,Ie,Be.props.children,rt,Be.key):Ie!==null&&(Ie.elementType===en||typeof en=="object"&&en!==null&&en.$$typeof===M&&Pl(en)===Ie.type)?(Ie=T(Ie,Be.props),xu(Ie,Be),Ie.return=ze,Ie):(Ie=Rf(Be.type,Be.key,Be.props,null,ze.mode,rt),xu(Ie,Be),Ie.return=ze,Ie)}function ke(ze,Ie,Be,rt){return Ie===null||Ie.tag!==4||Ie.stateNode.containerInfo!==Be.containerInfo||Ie.stateNode.implementation!==Be.implementation?(Ie=pp(Be,ze.mode,rt),Ie.return=ze,Ie):(Ie=T(Ie,Be.children||[]),Ie.return=ze,Ie)}function Ze(ze,Ie,Be,rt,en){return Ie===null||Ie.tag!==7?(Ie=jl(Be,ze.mode,rt,en),Ie.return=ze,Ie):(Ie=T(Ie,Be),Ie.return=ze,Ie)}function it(ze,Ie,Be){if(typeof Ie=="string"&&Ie!==""||typeof Ie=="number"||typeof Ie=="bigint")return Ie=gp(""+Ie,ze.mode,Be),Ie.return=ze,Ie;if(typeof Ie=="object"&&Ie!==null){switch(Ie.$$typeof){case b:return Be=Rf(Ie.type,Ie.key,Ie.props,null,ze.mode,Be),xu(Be,Ie),Be.return=ze,Be;case C:return Ie=pp(Ie,ze.mode,Be),Ie.return=ze,Ie;case M:return Ie=Pl(Ie),it(ze,Ie,Be)}if(H(Ie)||L(Ie))return Ie=jl(Ie,ze.mode,Be,null),Ie.return=ze,Ie;if(typeof Ie.then=="function")return it(ze,zf(Ie),Be);if(Ie.$$typeof===E)return it(ze,Nf(ze,Ie),Be);Df(ze,Ie)}return null}function He(ze,Ie,Be,rt){var en=Ie!==null?Ie.key:null;if(typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint")return en!==null?null:me(ze,Ie,""+Be,rt);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case b:return Be.key===en?xe(ze,Ie,Be,rt):null;case C:return Be.key===en?ke(ze,Ie,Be,rt):null;case M:return Be=Pl(Be),He(ze,Ie,Be,rt)}if(H(Be)||L(Be))return en!==null?null:Ze(ze,Ie,Be,rt,null);if(typeof Be.then=="function")return He(ze,Ie,zf(Be),rt);if(Be.$$typeof===E)return He(ze,Ie,Nf(ze,Be),rt);Df(ze,Be)}return null}function qe(ze,Ie,Be,rt,en){if(typeof rt=="string"&&rt!==""||typeof rt=="number"||typeof rt=="bigint")return ze=ze.get(Be)||null,me(Ie,ze,""+rt,en);if(typeof rt=="object"&&rt!==null){switch(rt.$$typeof){case b:return ze=ze.get(rt.key===null?Be:rt.key)||null,xe(Ie,ze,rt,en);case C:return ze=ze.get(rt.key===null?Be:rt.key)||null,ke(Ie,ze,rt,en);case M:return rt=Pl(rt),qe(ze,Ie,Be,rt,en)}if(H(rt)||L(rt))return ze=ze.get(Be)||null,Ze(Ie,ze,rt,en,null);if(typeof rt.then=="function")return qe(ze,Ie,Be,zf(rt),en);if(rt.$$typeof===E)return qe(ze,Ie,Be,Nf(Ie,rt),en);Df(Ie,rt)}return null}function Wt(ze,Ie,Be,rt){for(var en=null,Ln=null,Gt=Ie,Sn=Ie=0,Nn=null;Gt!==null&&Sn<Be.length;Sn++){Gt.index>Sn?(Nn=Gt,Gt=null):Nn=Gt.sibling;var Hn=He(ze,Gt,Be[Sn],rt);if(Hn===null){Gt===null&&(Gt=Nn);break}o&&Gt&&Hn.alternate===null&&s(ze,Gt),Ie=A(Hn,Ie,Sn),Ln===null?en=Hn:Ln.sibling=Hn,Ln=Hn,Gt=Nn}if(Sn===Be.length)return m(ze,Gt),Dn&&ti(ze,Sn),en;if(Gt===null){for(;Sn<Be.length;Sn++)Gt=it(ze,Be[Sn],rt),Gt!==null&&(Ie=A(Gt,Ie,Sn),Ln===null?en=Gt:Ln.sibling=Gt,Ln=Gt);return Dn&&ti(ze,Sn),en}for(Gt=y(Gt);Sn<Be.length;Sn++)Nn=qe(Gt,ze,Sn,Be[Sn],rt),Nn!==null&&(o&&Nn.alternate!==null&&Gt.delete(Nn.key===null?Sn:Nn.key),Ie=A(Nn,Ie,Sn),Ln===null?en=Nn:Ln.sibling=Nn,Ln=Nn);return o&&Gt.forEach(function(Ui){return s(ze,Ui)}),Dn&&ti(ze,Sn),en}function ln(ze,Ie,Be,rt){if(Be==null)throw Error(r(151));for(var en=null,Ln=null,Gt=Ie,Sn=Ie=0,Nn=null,Hn=Be.next();Gt!==null&&!Hn.done;Sn++,Hn=Be.next()){Gt.index>Sn?(Nn=Gt,Gt=null):Nn=Gt.sibling;var Ui=He(ze,Gt,Hn.value,rt);if(Ui===null){Gt===null&&(Gt=Nn);break}o&&Gt&&Ui.alternate===null&&s(ze,Gt),Ie=A(Ui,Ie,Sn),Ln===null?en=Ui:Ln.sibling=Ui,Ln=Ui,Gt=Nn}if(Hn.done)return m(ze,Gt),Dn&&ti(ze,Sn),en;if(Gt===null){for(;!Hn.done;Sn++,Hn=Be.next())Hn=it(ze,Hn.value,rt),Hn!==null&&(Ie=A(Hn,Ie,Sn),Ln===null?en=Hn:Ln.sibling=Hn,Ln=Hn);return Dn&&ti(ze,Sn),en}for(Gt=y(Gt);!Hn.done;Sn++,Hn=Be.next())Hn=qe(Gt,ze,Sn,Hn.value,rt),Hn!==null&&(o&&Hn.alternate!==null&&Gt.delete(Hn.key===null?Sn:Hn.key),Ie=A(Hn,Ie,Sn),Ln===null?en=Hn:Ln.sibling=Hn,Ln=Hn);return o&&Gt.forEach(function(UT){return s(ze,UT)}),Dn&&ti(ze,Sn),en}function ar(ze,Ie,Be,rt){if(typeof Be=="object"&&Be!==null&&Be.type===S&&Be.key===null&&(Be=Be.props.children),typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case b:e:{for(var en=Be.key;Ie!==null;){if(Ie.key===en){if(en=Be.type,en===S){if(Ie.tag===7){m(ze,Ie.sibling),rt=T(Ie,Be.props.children),rt.return=ze,ze=rt;break e}}else if(Ie.elementType===en||typeof en=="object"&&en!==null&&en.$$typeof===M&&Pl(en)===Ie.type){m(ze,Ie.sibling),rt=T(Ie,Be.props),xu(rt,Be),rt.return=ze,ze=rt;break e}m(ze,Ie);break}else s(ze,Ie);Ie=Ie.sibling}Be.type===S?(rt=jl(Be.props.children,ze.mode,rt,Be.key),rt.return=ze,ze=rt):(rt=Rf(Be.type,Be.key,Be.props,null,ze.mode,rt),xu(rt,Be),rt.return=ze,ze=rt)}return J(ze);case C:e:{for(en=Be.key;Ie!==null;){if(Ie.key===en)if(Ie.tag===4&&Ie.stateNode.containerInfo===Be.containerInfo&&Ie.stateNode.implementation===Be.implementation){m(ze,Ie.sibling),rt=T(Ie,Be.children||[]),rt.return=ze,ze=rt;break e}else{m(ze,Ie);break}else s(ze,Ie);Ie=Ie.sibling}rt=pp(Be,ze.mode,rt),rt.return=ze,ze=rt}return J(ze);case M:return Be=Pl(Be),ar(ze,Ie,Be,rt)}if(H(Be))return Wt(ze,Ie,Be,rt);if(L(Be)){if(en=L(Be),typeof en!="function")throw Error(r(150));return Be=en.call(Be),ln(ze,Ie,Be,rt)}if(typeof Be.then=="function")return ar(ze,Ie,zf(Be),rt);if(Be.$$typeof===E)return ar(ze,Ie,Nf(ze,Be),rt);Df(ze,Be)}return typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint"?(Be=""+Be,Ie!==null&&Ie.tag===6?(m(ze,Ie.sibling),rt=T(Ie,Be),rt.return=ze,ze=rt):(m(ze,Ie),rt=gp(Be,ze.mode,rt),rt.return=ze,ze=rt),J(ze)):m(ze,Ie)}return function(ze,Ie,Be,rt){try{Su=0;var en=ar(ze,Ie,Be,rt);return Hs=null,en}catch(Gt){if(Gt===Ls||Gt===Tf)throw Gt;var Ln=Da(29,Gt,null,ze.mode);return Ln.lanes=rt,Ln.return=ze,Ln}finally{}}}var Dl=jS(!0),IS=jS(!1),Ii=!1;function jp(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ip(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Ni(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Mi(o,s,m){var y=o.updateQueue;if(y===null)return null;if(y=y.shared,(Un&2)!==0){var T=y.pending;return T===null?s.next=s:(s.next=T.next,T.next=s),y.pending=s,s=Of(o),fS(o,null,m),s}return Ef(o,y,s,m),Of(o)}function $u(o,s,m){if(s=s.updateQueue,s!==null&&(s=s.shared,(m&4194048)!==0)){var y=s.lanes;y&=o.pendingLanes,m|=y,s.lanes=m,Je(o,m)}}function Np(o,s){var m=o.updateQueue,y=o.alternate;if(y!==null&&(y=y.updateQueue,m===y)){var T=null,A=null;if(m=m.firstBaseUpdate,m!==null){do{var J={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};A===null?T=A=J:A=A.next=J,m=m.next}while(m!==null);A===null?T=A=s:A=A.next=s}else T=A=s;m={baseState:y.baseState,firstBaseUpdate:T,lastBaseUpdate:A,shared:y.shared,callbacks:y.callbacks},o.updateQueue=m;return}o=m.lastBaseUpdate,o===null?m.firstBaseUpdate=s:o.next=s,m.lastBaseUpdate=s}var Mp=!1;function wu(){if(Mp){var o=ks;if(o!==null)throw o}}function Eu(o,s,m,y){Mp=!1;var T=o.updateQueue;Ii=!1;var A=T.firstBaseUpdate,J=T.lastBaseUpdate,me=T.shared.pending;if(me!==null){T.shared.pending=null;var xe=me,ke=xe.next;xe.next=null,J===null?A=ke:J.next=ke,J=xe;var Ze=o.alternate;Ze!==null&&(Ze=Ze.updateQueue,me=Ze.lastBaseUpdate,me!==J&&(me===null?Ze.firstBaseUpdate=ke:me.next=ke,Ze.lastBaseUpdate=xe))}if(A!==null){var it=T.baseState;J=0,Ze=ke=xe=null,me=A;do{var He=me.lane&-536870913,qe=He!==me.lane;if(qe?(In&He)===He:(y&He)===He){He!==0&&He===Bs&&(Mp=!0),Ze!==null&&(Ze=Ze.next={lane:0,tag:me.tag,payload:me.payload,callback:null,next:null});e:{var Wt=o,ln=me;He=s;var ar=m;switch(ln.tag){case 1:if(Wt=ln.payload,typeof Wt=="function"){it=Wt.call(ar,it,He);break e}it=Wt;break e;case 3:Wt.flags=Wt.flags&-65537|128;case 0:if(Wt=ln.payload,He=typeof Wt=="function"?Wt.call(ar,it,He):Wt,He==null)break e;it=g({},it,He);break e;case 2:Ii=!0}}He=me.callback,He!==null&&(o.flags|=64,qe&&(o.flags|=8192),qe=T.callbacks,qe===null?T.callbacks=[He]:qe.push(He))}else qe={lane:He,tag:me.tag,payload:me.payload,callback:me.callback,next:null},Ze===null?(ke=Ze=qe,xe=it):Ze=Ze.next=qe,J|=He;if(me=me.next,me===null){if(me=T.shared.pending,me===null)break;qe=me,me=qe.next,qe.next=null,T.lastBaseUpdate=qe,T.shared.pending=null}}while(!0);Ze===null&&(xe=it),T.baseState=xe,T.firstBaseUpdate=ke,T.lastBaseUpdate=Ze,A===null&&(T.shared.lanes=0),_i|=J,o.lanes=J,o.memoizedState=it}}function NS(o,s){if(typeof o!="function")throw Error(r(191,o));o.call(s)}function MS(o,s){var m=o.callbacks;if(m!==null)for(o.callbacks=null,o=0;o<m.length;o++)NS(m[o],s)}var Fs=V(null),_f=V(0);function TS(o,s){o=fi,K(_f,o),K(Fs,s),fi=o|s.baseLanes}function Tp(){K(_f,fi),K(Fs,Fs.current)}function Pp(){fi=_f.current,G(Fs),G(_f)}var _a=V(null),no=null;function Ti(o){var s=o.alternate;K(Pr,Pr.current&1),K(_a,o),no===null&&(s===null||Fs.current!==null||s.memoizedState!==null)&&(no=o)}function zp(o){K(Pr,Pr.current),K(_a,o),no===null&&(no=o)}function PS(o){o.tag===22?(K(Pr,Pr.current),K(_a,o),no===null&&(no=o)):Pi()}function Pi(){K(Pr,Pr.current),K(_a,_a.current)}function Aa(o){G(_a),no===o&&(no=null),G(Pr)}var Pr=V(0);function Af(o){for(var s=o;s!==null;){if(s.tag===13){var m=s.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||Lh(m)||Hh(m)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var ai=0,yn=null,nr=null,Br=null,Bf=!1,Vs=!1,_l=!1,kf=0,Ou=0,Ws=null,_8=0;function Er(){throw Error(r(321))}function Dp(o,s){if(s===null)return!1;for(var m=0;m<s.length&&m<o.length;m++)if(!za(o[m],s[m]))return!1;return!0}function _p(o,s,m,y,T,A){return ai=A,yn=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,z.H=o===null||o.memoizedState===null?px:Qp,_l=!1,A=m(y,T),_l=!1,Vs&&(A=DS(s,m,y,T)),zS(o),A}function zS(o){z.H=Iu;var s=nr!==null&&nr.next!==null;if(ai=0,Br=nr=yn=null,Bf=!1,Ou=0,Ws=null,s)throw Error(r(300));o===null||kr||(o=o.dependencies,o!==null&&If(o)&&(kr=!0))}function DS(o,s,m,y){yn=o;var T=0;do{if(Vs&&(Ws=null),Ou=0,Vs=!1,25<=T)throw Error(r(301));if(T+=1,Br=nr=null,o.updateQueue!=null){var A=o.updateQueue;A.lastEffect=null,A.events=null,A.stores=null,A.memoCache!=null&&(A.memoCache.index=0)}z.H=hx,A=s(m,y)}while(Vs);return A}function A8(){var o=z.H,s=o.useState()[0];return s=typeof s.then=="function"?Ru(s):s,o=o.useState()[0],(nr!==null?nr.memoizedState:null)!==o&&(yn.flags|=1024),s}function Ap(){var o=kf!==0;return kf=0,o}function Bp(o,s,m){s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~m}function kp(o){if(Bf){for(o=o.memoizedState;o!==null;){var s=o.queue;s!==null&&(s.pending=null),o=o.next}Bf=!1}ai=0,Br=nr=yn=null,Vs=!1,Ou=kf=0,Ws=null}function xa(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Br===null?yn.memoizedState=Br=o:Br=Br.next=o,Br}function zr(){if(nr===null){var o=yn.alternate;o=o!==null?o.memoizedState:null}else o=nr.next;var s=Br===null?yn.memoizedState:Br.next;if(s!==null)Br=s,nr=o;else{if(o===null)throw yn.alternate===null?Error(r(467)):Error(r(310));nr=o,o={memoizedState:nr.memoizedState,baseState:nr.baseState,baseQueue:nr.baseQueue,queue:nr.queue,next:null},Br===null?yn.memoizedState=Br=o:Br=Br.next=o}return Br}function Lf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ru(o){var s=Ou;return Ou+=1,Ws===null&&(Ws=[]),o=ES(Ws,o,s),s=yn,(Br===null?s.memoizedState:Br.next)===null&&(s=s.alternate,z.H=s===null||s.memoizedState===null?px:Qp),o}function Hf(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Ru(o);if(o.$$typeof===E)return ca(o)}throw Error(r(438,String(o)))}function Lp(o){var s=null,m=yn.updateQueue;if(m!==null&&(s=m.memoCache),s==null){var y=yn.alternate;y!==null&&(y=y.updateQueue,y!==null&&(y=y.memoCache,y!=null&&(s={data:y.data.map(function(T){return T.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),m===null&&(m=Lf(),yn.updateQueue=m),m.memoCache=s,m=s.data[s.index],m===void 0)for(m=s.data[s.index]=Array(o),y=0;y<o;y++)m[y]=P;return s.index++,m}function oi(o,s){return typeof s=="function"?s(o):s}function Ff(o){var s=zr();return Hp(s,nr,o)}function Hp(o,s,m){var y=o.queue;if(y===null)throw Error(r(311));y.lastRenderedReducer=m;var T=o.baseQueue,A=y.pending;if(A!==null){if(T!==null){var J=T.next;T.next=A.next,A.next=J}s.baseQueue=T=A,y.pending=null}if(A=o.baseState,T===null)o.memoizedState=A;else{s=T.next;var me=J=null,xe=null,ke=s,Ze=!1;do{var it=ke.lane&-536870913;if(it!==ke.lane?(In&it)===it:(ai&it)===it){var He=ke.revertLane;if(He===0)xe!==null&&(xe=xe.next={lane:0,revertLane:0,gesture:null,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null}),it===Bs&&(Ze=!0);else if((ai&He)===He){ke=ke.next,He===Bs&&(Ze=!0);continue}else it={lane:0,revertLane:ke.revertLane,gesture:null,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null},xe===null?(me=xe=it,J=A):xe=xe.next=it,yn.lanes|=He,_i|=He;it=ke.action,_l&&m(A,it),A=ke.hasEagerState?ke.eagerState:m(A,it)}else He={lane:it,revertLane:ke.revertLane,gesture:ke.gesture,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null},xe===null?(me=xe=He,J=A):xe=xe.next=He,yn.lanes|=it,_i|=it;ke=ke.next}while(ke!==null&&ke!==s);if(xe===null?J=A:xe.next=me,!za(A,o.memoizedState)&&(kr=!0,Ze&&(m=ks,m!==null)))throw m;o.memoizedState=A,o.baseState=J,o.baseQueue=xe,y.lastRenderedState=A}return T===null&&(y.lanes=0),[o.memoizedState,y.dispatch]}function Fp(o){var s=zr(),m=s.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=o;var y=m.dispatch,T=m.pending,A=s.memoizedState;if(T!==null){m.pending=null;var J=T=T.next;do A=o(A,J.action),J=J.next;while(J!==T);za(A,s.memoizedState)||(kr=!0),s.memoizedState=A,s.baseQueue===null&&(s.baseState=A),m.lastRenderedState=A}return[A,y]}function _S(o,s,m){var y=yn,T=zr(),A=Dn;if(A){if(m===void 0)throw Error(r(407));m=m()}else m=s();var J=!za((nr||T).memoizedState,m);if(J&&(T.memoizedState=m,kr=!0),T=T.queue,Kp(kS.bind(null,y,T,o),[o]),T.getSnapshot!==s||J||Br!==null&&Br.memoizedState.tag&1){if(y.flags|=2048,Ks(9,{destroy:void 0},BS.bind(null,y,T,m,s),null),sr===null)throw Error(r(349));A||(ai&127)!==0||AS(y,s,m)}return m}function AS(o,s,m){o.flags|=16384,o={getSnapshot:s,value:m},s=yn.updateQueue,s===null?(s=Lf(),yn.updateQueue=s,s.stores=[o]):(m=s.stores,m===null?s.stores=[o]:m.push(o))}function BS(o,s,m,y){s.value=m,s.getSnapshot=y,LS(s)&&HS(o)}function kS(o,s,m){return m(function(){LS(s)&&HS(o)})}function LS(o){var s=o.getSnapshot;o=o.value;try{var m=s();return!za(o,m)}catch{return!0}}function HS(o){var s=Rl(o,2);s!==null&&Na(s,o,2)}function Vp(o){var s=xa();if(typeof o=="function"){var m=o;if(o=m(),_l){Pe(!0);try{m()}finally{Pe(!1)}}}return s.memoizedState=s.baseState=o,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:o},s}function FS(o,s,m,y){return o.baseState=m,Hp(o,nr,typeof y=="function"?y:oi)}function B8(o,s,m,y,T){if(Kf(o))throw Error(r(485));if(o=s.action,o!==null){var A={payload:T,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(J){A.listeners.push(J)}};z.T!==null?m(!0):A.isTransition=!1,y(A),m=s.pending,m===null?(A.next=s.pending=A,VS(s,A)):(A.next=m.next,s.pending=m.next=A)}}function VS(o,s){var m=s.action,y=s.payload,T=o.state;if(s.isTransition){var A=z.T,J={};z.T=J;try{var me=m(T,y),xe=z.S;xe!==null&&xe(J,me),WS(o,s,me)}catch(ke){Wp(o,s,ke)}finally{A!==null&&J.types!==null&&(A.types=J.types),z.T=A}}else try{A=m(T,y),WS(o,s,A)}catch(ke){Wp(o,s,ke)}}function WS(o,s,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(y){KS(o,s,y)},function(y){return Wp(o,s,y)}):KS(o,s,m)}function KS(o,s,m){s.status="fulfilled",s.value=m,US(s),o.state=m,s=o.pending,s!==null&&(m=s.next,m===s?o.pending=null:(m=m.next,s.next=m,VS(o,m)))}function Wp(o,s,m){var y=o.pending;if(o.pending=null,y!==null){y=y.next;do s.status="rejected",s.reason=m,US(s),s=s.next;while(s!==y)}o.action=null}function US(o){o=o.listeners;for(var s=0;s<o.length;s++)(0,o[s])()}function qS(o,s){return s}function GS(o,s){if(Dn){var m=sr.formState;if(m!==null){e:{var y=yn;if(Dn){if(vr){t:{for(var T=vr,A=to;T.nodeType!==8;){if(!A){T=null;break t}if(T=ro(T.nextSibling),T===null){T=null;break t}}A=T.data,T=A==="F!"||A==="F"?T:null}if(T){vr=ro(T.nextSibling),y=T.data==="F!";break e}}Ri(y)}y=!1}y&&(s=m[0])}}return m=xa(),m.memoizedState=m.baseState=s,y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qS,lastRenderedState:s},m.queue=y,m=mx.bind(null,yn,y),y.dispatch=m,y=Vp(!1),A=Yp.bind(null,yn,!1,y.queue),y=xa(),T={state:s,dispatch:null,action:o,pending:null},y.queue=T,m=B8.bind(null,yn,T,A,m),T.dispatch=m,y.memoizedState=o,[s,m,!1]}function XS(o){var s=zr();return YS(s,nr,o)}function YS(o,s,m){if(s=Hp(o,s,qS)[0],o=Ff(oi)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var y=Ru(s)}catch(J){throw J===Ls?Tf:J}else y=s;s=zr();var T=s.queue,A=T.dispatch;return m!==s.memoizedState&&(yn.flags|=2048,Ks(9,{destroy:void 0},k8.bind(null,T,m),null)),[y,A,o]}function k8(o,s){o.action=s}function QS(o){var s=zr(),m=nr;if(m!==null)return YS(s,m,o);zr(),s=s.memoizedState,m=zr();var y=m.queue.dispatch;return m.memoizedState=o,[s,y,!1]}function Ks(o,s,m,y){return o={tag:o,create:m,deps:y,inst:s,next:null},s=yn.updateQueue,s===null&&(s=Lf(),yn.updateQueue=s),m=s.lastEffect,m===null?s.lastEffect=o.next=o:(y=m.next,m.next=o,o.next=y,s.lastEffect=o),o}function ZS(){return zr().memoizedState}function Vf(o,s,m,y){var T=xa();yn.flags|=o,T.memoizedState=Ks(1|s,{destroy:void 0},m,y===void 0?null:y)}function Wf(o,s,m,y){var T=zr();y=y===void 0?null:y;var A=T.memoizedState.inst;nr!==null&&y!==null&&Dp(y,nr.memoizedState.deps)?T.memoizedState=Ks(s,A,m,y):(yn.flags|=o,T.memoizedState=Ks(1|s,A,m,y))}function JS(o,s){Vf(8390656,8,o,s)}function Kp(o,s){Wf(2048,8,o,s)}function L8(o){yn.flags|=4;var s=yn.updateQueue;if(s===null)s=Lf(),yn.updateQueue=s,s.events=[o];else{var m=s.events;m===null?s.events=[o]:m.push(o)}}function ex(o){var s=zr().memoizedState;return L8({ref:s,nextImpl:o}),function(){if((Un&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function tx(o,s){return Wf(4,2,o,s)}function nx(o,s){return Wf(4,4,o,s)}function rx(o,s){if(typeof s=="function"){o=o();var m=s(o);return function(){typeof m=="function"?m():s(null)}}if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function ax(o,s,m){m=m!=null?m.concat([o]):null,Wf(4,4,rx.bind(null,s,o),m)}function Up(){}function ox(o,s){var m=zr();s=s===void 0?null:s;var y=m.memoizedState;return s!==null&&Dp(s,y[1])?y[0]:(m.memoizedState=[o,s],o)}function ix(o,s){var m=zr();s=s===void 0?null:s;var y=m.memoizedState;if(s!==null&&Dp(s,y[1]))return y[0];if(y=o(),_l){Pe(!0);try{o()}finally{Pe(!1)}}return m.memoizedState=[y,s],y}function qp(o,s,m){return m===void 0||(ai&1073741824)!==0&&(In&261930)===0?o.memoizedState=s:(o.memoizedState=m,o=l$(),yn.lanes|=o,_i|=o,m)}function lx(o,s,m,y){return za(m,s)?m:Fs.current!==null?(o=qp(o,m,y),za(o,s)||(kr=!0),o):(ai&42)===0||(ai&1073741824)!==0&&(In&261930)===0?(kr=!0,o.memoizedState=m):(o=l$(),yn.lanes|=o,_i|=o,s)}function sx(o,s,m,y,T){var A=_.p;_.p=A!==0&&8>A?A:8;var J=z.T,me={};z.T=me,Yp(o,!1,s,m);try{var xe=T(),ke=z.S;if(ke!==null&&ke(me,xe),xe!==null&&typeof xe=="object"&&typeof xe.then=="function"){var Ze=D8(xe,y);ju(o,s,Ze,La(o))}else ju(o,s,y,La(o))}catch(it){ju(o,s,{then:function(){},status:"rejected",reason:it},La())}finally{_.p=A,J!==null&&me.types!==null&&(J.types=me.types),z.T=J}}function H8(){}function Gp(o,s,m,y){if(o.tag!==5)throw Error(r(476));var T=cx(o).queue;sx(o,T,s,F,m===null?H8:function(){return ux(o),m(y)})}function cx(o){var s=o.memoizedState;if(s!==null)return s;s={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:F},next:null};var m={};return s.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:m},next:null},o.memoizedState=s,o=o.alternate,o!==null&&(o.memoizedState=s),s}function ux(o){var s=cx(o);s.next===null&&(s=o.alternate.memoizedState),ju(o,s.next.queue,{},La())}function Xp(){return ca(Ku)}function dx(){return zr().memoizedState}function fx(){return zr().memoizedState}function F8(o){for(var s=o.return;s!==null;){switch(s.tag){case 24:case 3:var m=La();o=Ni(m);var y=Mi(s,o,m);y!==null&&(Na(y,s,m),$u(y,s,m)),s={cache:wp()},o.payload=s;return}s=s.return}}function V8(o,s,m){var y=La();m={lane:y,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Kf(o)?vx(s,m):(m=mp(o,s,m,y),m!==null&&(Na(m,o,y),gx(m,s,y)))}function mx(o,s,m){var y=La();ju(o,s,m,y)}function ju(o,s,m,y){var T={lane:y,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(Kf(o))vx(s,T);else{var A=o.alternate;if(o.lanes===0&&(A===null||A.lanes===0)&&(A=s.lastRenderedReducer,A!==null))try{var J=s.lastRenderedState,me=A(J,m);if(T.hasEagerState=!0,T.eagerState=me,za(me,J))return Ef(o,s,T,0),sr===null&&wf(),!1}catch{}finally{}if(m=mp(o,s,T,y),m!==null)return Na(m,o,y),gx(m,s,y),!0}return!1}function Yp(o,s,m,y){if(y={lane:2,revertLane:jh(),gesture:null,action:y,hasEagerState:!1,eagerState:null,next:null},Kf(o)){if(s)throw Error(r(479))}else s=mp(o,m,y,2),s!==null&&Na(s,o,2)}function Kf(o){var s=o.alternate;return o===yn||s!==null&&s===yn}function vx(o,s){Vs=Bf=!0;var m=o.pending;m===null?s.next=s:(s.next=m.next,m.next=s),o.pending=s}function gx(o,s,m){if((m&4194048)!==0){var y=s.lanes;y&=o.pendingLanes,m|=y,s.lanes=m,Je(o,m)}}var Iu={readContext:ca,use:Hf,useCallback:Er,useContext:Er,useEffect:Er,useImperativeHandle:Er,useLayoutEffect:Er,useInsertionEffect:Er,useMemo:Er,useReducer:Er,useRef:Er,useState:Er,useDebugValue:Er,useDeferredValue:Er,useTransition:Er,useSyncExternalStore:Er,useId:Er,useHostTransitionStatus:Er,useFormState:Er,useActionState:Er,useOptimistic:Er,useMemoCache:Er,useCacheRefresh:Er};Iu.useEffectEvent=Er;var px={readContext:ca,use:Hf,useCallback:function(o,s){return xa().memoizedState=[o,s===void 0?null:s],o},useContext:ca,useEffect:JS,useImperativeHandle:function(o,s,m){m=m!=null?m.concat([o]):null,Vf(4194308,4,rx.bind(null,s,o),m)},useLayoutEffect:function(o,s){return Vf(4194308,4,o,s)},useInsertionEffect:function(o,s){Vf(4,2,o,s)},useMemo:function(o,s){var m=xa();s=s===void 0?null:s;var y=o();if(_l){Pe(!0);try{o()}finally{Pe(!1)}}return m.memoizedState=[y,s],y},useReducer:function(o,s,m){var y=xa();if(m!==void 0){var T=m(s);if(_l){Pe(!0);try{m(s)}finally{Pe(!1)}}}else T=s;return y.memoizedState=y.baseState=T,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:T},y.queue=o,o=o.dispatch=V8.bind(null,yn,o),[y.memoizedState,o]},useRef:function(o){var s=xa();return o={current:o},s.memoizedState=o},useState:function(o){o=Vp(o);var s=o.queue,m=mx.bind(null,yn,s);return s.dispatch=m,[o.memoizedState,m]},useDebugValue:Up,useDeferredValue:function(o,s){var m=xa();return qp(m,o,s)},useTransition:function(){var o=Vp(!1);return o=sx.bind(null,yn,o.queue,!0,!1),xa().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,s,m){var y=yn,T=xa();if(Dn){if(m===void 0)throw Error(r(407));m=m()}else{if(m=s(),sr===null)throw Error(r(349));(In&127)!==0||AS(y,s,m)}T.memoizedState=m;var A={value:m,getSnapshot:s};return T.queue=A,JS(kS.bind(null,y,A,o),[o]),y.flags|=2048,Ks(9,{destroy:void 0},BS.bind(null,y,A,m,s),null),m},useId:function(){var o=xa(),s=sr.identifierPrefix;if(Dn){var m=Bo,y=Ao;m=(y&~(1<<32-be(y)-1)).toString(32)+m,s="_"+s+"R_"+m,m=kf++,0<m&&(s+="H"+m.toString(32)),s+="_"}else m=_8++,s="_"+s+"r_"+m.toString(32)+"_";return o.memoizedState=s},useHostTransitionStatus:Xp,useFormState:GS,useActionState:GS,useOptimistic:function(o){var s=xa();s.memoizedState=s.baseState=o;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=m,s=Yp.bind(null,yn,!0,m),m.dispatch=s,[o,s]},useMemoCache:Lp,useCacheRefresh:function(){return xa().memoizedState=F8.bind(null,yn)},useEffectEvent:function(o){var s=xa(),m={impl:o};return s.memoizedState=m,function(){if((Un&2)!==0)throw Error(r(440));return m.impl.apply(void 0,arguments)}}},Qp={readContext:ca,use:Hf,useCallback:ox,useContext:ca,useEffect:Kp,useImperativeHandle:ax,useInsertionEffect:tx,useLayoutEffect:nx,useMemo:ix,useReducer:Ff,useRef:ZS,useState:function(){return Ff(oi)},useDebugValue:Up,useDeferredValue:function(o,s){var m=zr();return lx(m,nr.memoizedState,o,s)},useTransition:function(){var o=Ff(oi)[0],s=zr().memoizedState;return[typeof o=="boolean"?o:Ru(o),s]},useSyncExternalStore:_S,useId:dx,useHostTransitionStatus:Xp,useFormState:XS,useActionState:XS,useOptimistic:function(o,s){var m=zr();return FS(m,nr,o,s)},useMemoCache:Lp,useCacheRefresh:fx};Qp.useEffectEvent=ex;var hx={readContext:ca,use:Hf,useCallback:ox,useContext:ca,useEffect:Kp,useImperativeHandle:ax,useInsertionEffect:tx,useLayoutEffect:nx,useMemo:ix,useReducer:Fp,useRef:ZS,useState:function(){return Fp(oi)},useDebugValue:Up,useDeferredValue:function(o,s){var m=zr();return nr===null?qp(m,o,s):lx(m,nr.memoizedState,o,s)},useTransition:function(){var o=Fp(oi)[0],s=zr().memoizedState;return[typeof o=="boolean"?o:Ru(o),s]},useSyncExternalStore:_S,useId:dx,useHostTransitionStatus:Xp,useFormState:QS,useActionState:QS,useOptimistic:function(o,s){var m=zr();return nr!==null?FS(m,nr,o,s):(m.baseState=o,[o,m.queue.dispatch])},useMemoCache:Lp,useCacheRefresh:fx};hx.useEffectEvent=ex;function Zp(o,s,m,y){s=o.memoizedState,m=m(y,s),m=m==null?s:g({},s,m),o.memoizedState=m,o.lanes===0&&(o.updateQueue.baseState=m)}var Jp={enqueueSetState:function(o,s,m){o=o._reactInternals;var y=La(),T=Ni(y);T.payload=s,m!=null&&(T.callback=m),s=Mi(o,T,y),s!==null&&(Na(s,o,y),$u(s,o,y))},enqueueReplaceState:function(o,s,m){o=o._reactInternals;var y=La(),T=Ni(y);T.tag=1,T.payload=s,m!=null&&(T.callback=m),s=Mi(o,T,y),s!==null&&(Na(s,o,y),$u(s,o,y))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var m=La(),y=Ni(m);y.tag=2,s!=null&&(y.callback=s),s=Mi(o,y,m),s!==null&&(Na(s,o,m),$u(s,o,m))}};function bx(o,s,m,y,T,A,J){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(y,A,J):s.prototype&&s.prototype.isPureReactComponent?!gu(m,y)||!gu(T,A):!0}function yx(o,s,m,y){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(m,y),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(m,y),s.state!==o&&Jp.enqueueReplaceState(s,s.state,null)}function Al(o,s){var m=s;if("ref"in s){m={};for(var y in s)y!=="ref"&&(m[y]=s[y])}if(o=o.defaultProps){m===s&&(m=g({},m));for(var T in o)m[T]===void 0&&(m[T]=o[T])}return m}function Cx(o){$f(o)}function Sx(o){console.error(o)}function xx(o){$f(o)}function Uf(o,s){try{var m=o.onUncaughtError;m(s.value,{componentStack:s.stack})}catch(y){setTimeout(function(){throw y})}}function $x(o,s,m){try{var y=o.onCaughtError;y(m.value,{componentStack:m.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(T){setTimeout(function(){throw T})}}function eh(o,s,m){return m=Ni(m),m.tag=3,m.payload={element:null},m.callback=function(){Uf(o,s)},m}function wx(o){return o=Ni(o),o.tag=3,o}function Ex(o,s,m,y){var T=m.type.getDerivedStateFromError;if(typeof T=="function"){var A=y.value;o.payload=function(){return T(A)},o.callback=function(){$x(s,m,y)}}var J=m.stateNode;J!==null&&typeof J.componentDidCatch=="function"&&(o.callback=function(){$x(s,m,y),typeof T!="function"&&(Ai===null?Ai=new Set([this]):Ai.add(this));var me=y.stack;this.componentDidCatch(y.value,{componentStack:me!==null?me:""})})}function W8(o,s,m,y,T){if(m.flags|=32768,y!==null&&typeof y=="object"&&typeof y.then=="function"){if(s=m.alternate,s!==null&&As(s,m,T,!0),m=_a.current,m!==null){switch(m.tag){case 31:case 13:return no===null?am():m.alternate===null&&Or===0&&(Or=3),m.flags&=-257,m.flags|=65536,m.lanes=T,y===Pf?m.flags|=16384:(s=m.updateQueue,s===null?m.updateQueue=new Set([y]):s.add(y),Eh(o,y,T)),!1;case 22:return m.flags|=65536,y===Pf?m.flags|=16384:(s=m.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([y])},m.updateQueue=s):(m=s.retryQueue,m===null?s.retryQueue=new Set([y]):m.add(y)),Eh(o,y,T)),!1}throw Error(r(435,m.tag))}return Eh(o,y,T),am(),!1}if(Dn)return s=_a.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=T,y!==yp&&(o=Error(r(422),{cause:y}),bu(Za(o,m)))):(y!==yp&&(s=Error(r(423),{cause:y}),bu(Za(s,m))),o=o.current.alternate,o.flags|=65536,T&=-T,o.lanes|=T,y=Za(y,m),T=eh(o.stateNode,y,T),Np(o,T),Or!==4&&(Or=2)),!1;var A=Error(r(520),{cause:y});if(A=Za(A,m),Au===null?Au=[A]:Au.push(A),Or!==4&&(Or=2),s===null)return!0;y=Za(y,m),m=s;do{switch(m.tag){case 3:return m.flags|=65536,o=T&-T,m.lanes|=o,o=eh(m.stateNode,y,o),Np(m,o),!1;case 1:if(s=m.type,A=m.stateNode,(m.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&(Ai===null||!Ai.has(A))))return m.flags|=65536,T&=-T,m.lanes|=T,T=wx(T),Ex(T,o,m,y),Np(m,T),!1}m=m.return}while(m!==null);return!1}var th=Error(r(461)),kr=!1;function ua(o,s,m,y){s.child=o===null?IS(s,null,m,y):Dl(s,o.child,m,y)}function Ox(o,s,m,y,T){m=m.render;var A=s.ref;if("ref"in y){var J={};for(var me in y)me!=="ref"&&(J[me]=y[me])}else J=y;return Ml(s),y=_p(o,s,m,J,A,T),me=Ap(),o!==null&&!kr?(Bp(o,s,T),ii(o,s,T)):(Dn&&me&&hp(s),s.flags|=1,ua(o,s,y,T),s.child)}function Rx(o,s,m,y,T){if(o===null){var A=m.type;return typeof A=="function"&&!vp(A)&&A.defaultProps===void 0&&m.compare===null?(s.tag=15,s.type=A,jx(o,s,A,y,T)):(o=Rf(m.type,null,y,s,s.mode,T),o.ref=s.ref,o.return=s,s.child=o)}if(A=o.child,!ch(o,T)){var J=A.memoizedProps;if(m=m.compare,m=m!==null?m:gu,m(J,y)&&o.ref===s.ref)return ii(o,s,T)}return s.flags|=1,o=ei(A,y),o.ref=s.ref,o.return=s,s.child=o}function jx(o,s,m,y,T){if(o!==null){var A=o.memoizedProps;if(gu(A,y)&&o.ref===s.ref)if(kr=!1,s.pendingProps=y=A,ch(o,T))(o.flags&131072)!==0&&(kr=!0);else return s.lanes=o.lanes,ii(o,s,T)}return nh(o,s,m,y,T)}function Ix(o,s,m,y){var T=y.children,A=o!==null?o.memoizedState:null;if(o===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),y.mode==="hidden"){if((s.flags&128)!==0){if(A=A!==null?A.baseLanes|m:m,o!==null){for(y=s.child=o.child,T=0;y!==null;)T=T|y.lanes|y.childLanes,y=y.sibling;y=T&~A}else y=0,s.child=null;return Nx(o,s,A,m,y)}if((m&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},o!==null&&Mf(s,A!==null?A.cachePool:null),A!==null?TS(s,A):Tp(),PS(s);else return y=s.lanes=536870912,Nx(o,s,A!==null?A.baseLanes|m:m,m,y)}else A!==null?(Mf(s,A.cachePool),TS(s,A),Pi(),s.memoizedState=null):(o!==null&&Mf(s,null),Tp(),Pi());return ua(o,s,T,m),s.child}function Nu(o,s){return o!==null&&o.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function Nx(o,s,m,y,T){var A=Op();return A=A===null?null:{parent:Ar._currentValue,pool:A},s.memoizedState={baseLanes:m,cachePool:A},o!==null&&Mf(s,null),Tp(),PS(s),o!==null&&As(o,s,y,!0),s.childLanes=T,null}function qf(o,s){return s=Xf({mode:s.mode,children:s.children},o.mode),s.ref=o.ref,o.child=s,s.return=o,s}function Mx(o,s,m){return Dl(s,o.child,null,m),o=qf(s,s.pendingProps),o.flags|=2,Aa(s),s.memoizedState=null,o}function K8(o,s,m){var y=s.pendingProps,T=(s.flags&128)!==0;if(s.flags&=-129,o===null){if(Dn){if(y.mode==="hidden")return o=qf(s,y),s.lanes=536870912,Nu(null,o);if(zp(s),(o=vr)?(o=V$(o,to),o=o!==null&&o.data==="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:Ei!==null?{id:Ao,overflow:Bo}:null,retryLane:536870912,hydrationErrors:null},m=vS(o),m.return=s,s.child=m,sa=s,vr=null)):o=null,o===null)throw Ri(s);return s.lanes=536870912,null}return qf(s,y)}var A=o.memoizedState;if(A!==null){var J=A.dehydrated;if(zp(s),T)if(s.flags&256)s.flags&=-257,s=Mx(o,s,m);else if(s.memoizedState!==null)s.child=o.child,s.flags|=128,s=null;else throw Error(r(558));else if(kr||As(o,s,m,!1),T=(m&o.childLanes)!==0,kr||T){if(y=sr,y!==null&&(J=Ve(y,m),J!==0&&J!==A.retryLane))throw A.retryLane=J,Rl(o,J),Na(y,o,J),th;am(),s=Mx(o,s,m)}else o=A.treeContext,vr=ro(J.nextSibling),sa=s,Dn=!0,Oi=null,to=!1,o!==null&&hS(s,o),s=qf(s,y),s.flags|=4096;return s}return o=ei(o.child,{mode:y.mode,children:y.children}),o.ref=s.ref,s.child=o,o.return=s,o}function Gf(o,s){var m=s.ref;if(m===null)o!==null&&o.ref!==null&&(s.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(r(284));(o===null||o.ref!==m)&&(s.flags|=4194816)}}function nh(o,s,m,y,T){return Ml(s),m=_p(o,s,m,y,void 0,T),y=Ap(),o!==null&&!kr?(Bp(o,s,T),ii(o,s,T)):(Dn&&y&&hp(s),s.flags|=1,ua(o,s,m,T),s.child)}function Tx(o,s,m,y,T,A){return Ml(s),s.updateQueue=null,m=DS(s,y,m,T),zS(o),y=Ap(),o!==null&&!kr?(Bp(o,s,A),ii(o,s,A)):(Dn&&y&&hp(s),s.flags|=1,ua(o,s,m,A),s.child)}function Px(o,s,m,y,T){if(Ml(s),s.stateNode===null){var A=Ps,J=m.contextType;typeof J=="object"&&J!==null&&(A=ca(J)),A=new m(y,A),s.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,A.updater=Jp,s.stateNode=A,A._reactInternals=s,A=s.stateNode,A.props=y,A.state=s.memoizedState,A.refs={},jp(s),J=m.contextType,A.context=typeof J=="object"&&J!==null?ca(J):Ps,A.state=s.memoizedState,J=m.getDerivedStateFromProps,typeof J=="function"&&(Zp(s,m,J,y),A.state=s.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(J=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),J!==A.state&&Jp.enqueueReplaceState(A,A.state,null),Eu(s,y,A,T),wu(),A.state=s.memoizedState),typeof A.componentDidMount=="function"&&(s.flags|=4194308),y=!0}else if(o===null){A=s.stateNode;var me=s.memoizedProps,xe=Al(m,me);A.props=xe;var ke=A.context,Ze=m.contextType;J=Ps,typeof Ze=="object"&&Ze!==null&&(J=ca(Ze));var it=m.getDerivedStateFromProps;Ze=typeof it=="function"||typeof A.getSnapshotBeforeUpdate=="function",me=s.pendingProps!==me,Ze||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(me||ke!==J)&&yx(s,A,y,J),Ii=!1;var He=s.memoizedState;A.state=He,Eu(s,y,A,T),wu(),ke=s.memoizedState,me||He!==ke||Ii?(typeof it=="function"&&(Zp(s,m,it,y),ke=s.memoizedState),(xe=Ii||bx(s,m,xe,y,He,ke,J))?(Ze||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount()),typeof A.componentDidMount=="function"&&(s.flags|=4194308)):(typeof A.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=y,s.memoizedState=ke),A.props=y,A.state=ke,A.context=J,y=xe):(typeof A.componentDidMount=="function"&&(s.flags|=4194308),y=!1)}else{A=s.stateNode,Ip(o,s),J=s.memoizedProps,Ze=Al(m,J),A.props=Ze,it=s.pendingProps,He=A.context,ke=m.contextType,xe=Ps,typeof ke=="object"&&ke!==null&&(xe=ca(ke)),me=m.getDerivedStateFromProps,(ke=typeof me=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(J!==it||He!==xe)&&yx(s,A,y,xe),Ii=!1,He=s.memoizedState,A.state=He,Eu(s,y,A,T),wu();var qe=s.memoizedState;J!==it||He!==qe||Ii||o!==null&&o.dependencies!==null&&If(o.dependencies)?(typeof me=="function"&&(Zp(s,m,me,y),qe=s.memoizedState),(Ze=Ii||bx(s,m,Ze,y,He,qe,xe)||o!==null&&o.dependencies!==null&&If(o.dependencies))?(ke||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(y,qe,xe),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(y,qe,xe)),typeof A.componentDidUpdate=="function"&&(s.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof A.componentDidUpdate!="function"||J===o.memoizedProps&&He===o.memoizedState||(s.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||J===o.memoizedProps&&He===o.memoizedState||(s.flags|=1024),s.memoizedProps=y,s.memoizedState=qe),A.props=y,A.state=qe,A.context=xe,y=Ze):(typeof A.componentDidUpdate!="function"||J===o.memoizedProps&&He===o.memoizedState||(s.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||J===o.memoizedProps&&He===o.memoizedState||(s.flags|=1024),y=!1)}return A=y,Gf(o,s),y=(s.flags&128)!==0,A||y?(A=s.stateNode,m=y&&typeof m.getDerivedStateFromError!="function"?null:A.render(),s.flags|=1,o!==null&&y?(s.child=Dl(s,o.child,null,T),s.child=Dl(s,null,m,T)):ua(o,s,m,T),s.memoizedState=A.state,o=s.child):o=ii(o,s,T),o}function zx(o,s,m,y){return Il(),s.flags|=256,ua(o,s,m,y),s.child}var rh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ah(o){return{baseLanes:o,cachePool:$S()}}function oh(o,s,m){return o=o!==null?o.childLanes&~m:0,s&&(o|=ka),o}function Dx(o,s,m){var y=s.pendingProps,T=!1,A=(s.flags&128)!==0,J;if((J=A)||(J=o!==null&&o.memoizedState===null?!1:(Pr.current&2)!==0),J&&(T=!0,s.flags&=-129),J=(s.flags&32)!==0,s.flags&=-33,o===null){if(Dn){if(T?Ti(s):Pi(),(o=vr)?(o=V$(o,to),o=o!==null&&o.data!=="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:Ei!==null?{id:Ao,overflow:Bo}:null,retryLane:536870912,hydrationErrors:null},m=vS(o),m.return=s,s.child=m,sa=s,vr=null)):o=null,o===null)throw Ri(s);return Hh(o)?s.lanes=32:s.lanes=536870912,null}var me=y.children;return y=y.fallback,T?(Pi(),T=s.mode,me=Xf({mode:"hidden",children:me},T),y=jl(y,T,m,null),me.return=s,y.return=s,me.sibling=y,s.child=me,y=s.child,y.memoizedState=ah(m),y.childLanes=oh(o,J,m),s.memoizedState=rh,Nu(null,y)):(Ti(s),ih(s,me))}var xe=o.memoizedState;if(xe!==null&&(me=xe.dehydrated,me!==null)){if(A)s.flags&256?(Ti(s),s.flags&=-257,s=lh(o,s,m)):s.memoizedState!==null?(Pi(),s.child=o.child,s.flags|=128,s=null):(Pi(),me=y.fallback,T=s.mode,y=Xf({mode:"visible",children:y.children},T),me=jl(me,T,m,null),me.flags|=2,y.return=s,me.return=s,y.sibling=me,s.child=y,Dl(s,o.child,null,m),y=s.child,y.memoizedState=ah(m),y.childLanes=oh(o,J,m),s.memoizedState=rh,s=Nu(null,y));else if(Ti(s),Hh(me)){if(J=me.nextSibling&&me.nextSibling.dataset,J)var ke=J.dgst;J=ke,y=Error(r(419)),y.stack="",y.digest=J,bu({value:y,source:null,stack:null}),s=lh(o,s,m)}else if(kr||As(o,s,m,!1),J=(m&o.childLanes)!==0,kr||J){if(J=sr,J!==null&&(y=Ve(J,m),y!==0&&y!==xe.retryLane))throw xe.retryLane=y,Rl(o,y),Na(J,o,y),th;Lh(me)||am(),s=lh(o,s,m)}else Lh(me)?(s.flags|=192,s.child=o.child,s=null):(o=xe.treeContext,vr=ro(me.nextSibling),sa=s,Dn=!0,Oi=null,to=!1,o!==null&&hS(s,o),s=ih(s,y.children),s.flags|=4096);return s}return T?(Pi(),me=y.fallback,T=s.mode,xe=o.child,ke=xe.sibling,y=ei(xe,{mode:"hidden",children:y.children}),y.subtreeFlags=xe.subtreeFlags&65011712,ke!==null?me=ei(ke,me):(me=jl(me,T,m,null),me.flags|=2),me.return=s,y.return=s,y.sibling=me,s.child=y,Nu(null,y),y=s.child,me=o.child.memoizedState,me===null?me=ah(m):(T=me.cachePool,T!==null?(xe=Ar._currentValue,T=T.parent!==xe?{parent:xe,pool:xe}:T):T=$S(),me={baseLanes:me.baseLanes|m,cachePool:T}),y.memoizedState=me,y.childLanes=oh(o,J,m),s.memoizedState=rh,Nu(o.child,y)):(Ti(s),m=o.child,o=m.sibling,m=ei(m,{mode:"visible",children:y.children}),m.return=s,m.sibling=null,o!==null&&(J=s.deletions,J===null?(s.deletions=[o],s.flags|=16):J.push(o)),s.child=m,s.memoizedState=null,m)}function ih(o,s){return s=Xf({mode:"visible",children:s},o.mode),s.return=o,o.child=s}function Xf(o,s){return o=Da(22,o,null,s),o.lanes=0,o}function lh(o,s,m){return Dl(s,o.child,null,m),o=ih(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function _x(o,s,m){o.lanes|=s;var y=o.alternate;y!==null&&(y.lanes|=s),xp(o.return,s,m)}function sh(o,s,m,y,T,A){var J=o.memoizedState;J===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:y,tail:m,tailMode:T,treeForkCount:A}:(J.isBackwards=s,J.rendering=null,J.renderingStartTime=0,J.last=y,J.tail=m,J.tailMode=T,J.treeForkCount=A)}function Ax(o,s,m){var y=s.pendingProps,T=y.revealOrder,A=y.tail;y=y.children;var J=Pr.current,me=(J&2)!==0;if(me?(J=J&1|2,s.flags|=128):J&=1,K(Pr,J),ua(o,s,y,m),y=Dn?hu:0,!me&&o!==null&&(o.flags&128)!==0)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&_x(o,m,s);else if(o.tag===19)_x(o,m,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(T){case"forwards":for(m=s.child,T=null;m!==null;)o=m.alternate,o!==null&&Af(o)===null&&(T=m),m=m.sibling;m=T,m===null?(T=s.child,s.child=null):(T=m.sibling,m.sibling=null),sh(s,!1,T,m,A,y);break;case"backwards":case"unstable_legacy-backwards":for(m=null,T=s.child,s.child=null;T!==null;){if(o=T.alternate,o!==null&&Af(o)===null){s.child=T;break}o=T.sibling,T.sibling=m,m=T,T=o}sh(s,!0,m,null,A,y);break;case"together":sh(s,!1,null,null,void 0,y);break;default:s.memoizedState=null}return s.child}function ii(o,s,m){if(o!==null&&(s.dependencies=o.dependencies),_i|=s.lanes,(m&s.childLanes)===0)if(o!==null){if(As(o,s,m,!1),(m&s.childLanes)===0)return null}else return null;if(o!==null&&s.child!==o.child)throw Error(r(153));if(s.child!==null){for(o=s.child,m=ei(o,o.pendingProps),s.child=m,m.return=s;o.sibling!==null;)o=o.sibling,m=m.sibling=ei(o,o.pendingProps),m.return=s;m.sibling=null}return s.child}function ch(o,s){return(o.lanes&s)!==0?!0:(o=o.dependencies,!!(o!==null&&If(o)))}function U8(o,s,m){switch(s.tag){case 3:X(s,s.stateNode.containerInfo),ji(s,Ar,o.memoizedState.cache),Il();break;case 27:case 5:re(s);break;case 4:X(s,s.stateNode.containerInfo);break;case 10:ji(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,zp(s),null;break;case 13:var y=s.memoizedState;if(y!==null)return y.dehydrated!==null?(Ti(s),s.flags|=128,null):(m&s.child.childLanes)!==0?Dx(o,s,m):(Ti(s),o=ii(o,s,m),o!==null?o.sibling:null);Ti(s);break;case 19:var T=(o.flags&128)!==0;if(y=(m&s.childLanes)!==0,y||(As(o,s,m,!1),y=(m&s.childLanes)!==0),T){if(y)return Ax(o,s,m);s.flags|=128}if(T=s.memoizedState,T!==null&&(T.rendering=null,T.tail=null,T.lastEffect=null),K(Pr,Pr.current),y)break;return null;case 22:return s.lanes=0,Ix(o,s,m,s.pendingProps);case 24:ji(s,Ar,o.memoizedState.cache)}return ii(o,s,m)}function Bx(o,s,m){if(o!==null)if(o.memoizedProps!==s.pendingProps)kr=!0;else{if(!ch(o,m)&&(s.flags&128)===0)return kr=!1,U8(o,s,m);kr=(o.flags&131072)!==0}else kr=!1,Dn&&(s.flags&1048576)!==0&&pS(s,hu,s.index);switch(s.lanes=0,s.tag){case 16:e:{var y=s.pendingProps;if(o=Pl(s.elementType),s.type=o,typeof o=="function")vp(o)?(y=Al(o,y),s.tag=1,s=Px(null,s,o,y,m)):(s.tag=0,s=nh(null,s,o,y,m));else{if(o!=null){var T=o.$$typeof;if(T===j){s.tag=11,s=Ox(null,s,o,y,m);break e}else if(T===O){s.tag=14,s=Rx(null,s,o,y,m);break e}}throw s=D(o)||o,Error(r(306,s,""))}}return s;case 0:return nh(o,s,s.type,s.pendingProps,m);case 1:return y=s.type,T=Al(y,s.pendingProps),Px(o,s,y,T,m);case 3:e:{if(X(s,s.stateNode.containerInfo),o===null)throw Error(r(387));y=s.pendingProps;var A=s.memoizedState;T=A.element,Ip(o,s),Eu(s,y,null,m);var J=s.memoizedState;if(y=J.cache,ji(s,Ar,y),y!==A.cache&&$p(s,[Ar],m,!0),wu(),y=J.element,A.isDehydrated)if(A={element:y,isDehydrated:!1,cache:J.cache},s.updateQueue.baseState=A,s.memoizedState=A,s.flags&256){s=zx(o,s,y,m);break e}else if(y!==T){T=Za(Error(r(424)),s),bu(T),s=zx(o,s,y,m);break e}else{switch(o=s.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(vr=ro(o.firstChild),sa=s,Dn=!0,Oi=null,to=!0,m=IS(s,null,y,m),s.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(Il(),y===T){s=ii(o,s,m);break e}ua(o,s,y,m)}s=s.child}return s;case 26:return Gf(o,s),o===null?(m=X$(s.type,null,s.pendingProps,null))?s.memoizedState=m:Dn||(m=s.type,o=s.pendingProps,y=dm(Q.current).createElement(m),y[ft]=s,y[lt]=o,da(y,m,o),Qe(y),s.stateNode=y):s.memoizedState=X$(s.type,o.memoizedProps,s.pendingProps,o.memoizedState),null;case 27:return re(s),o===null&&Dn&&(y=s.stateNode=U$(s.type,s.pendingProps,Q.current),sa=s,to=!0,T=vr,Hi(s.type)?(Fh=T,vr=ro(y.firstChild)):vr=T),ua(o,s,s.pendingProps.children,m),Gf(o,s),o===null&&(s.flags|=4194304),s.child;case 5:return o===null&&Dn&&((T=y=vr)&&(y=xT(y,s.type,s.pendingProps,to),y!==null?(s.stateNode=y,sa=s,vr=ro(y.firstChild),to=!1,T=!0):T=!1),T||Ri(s)),re(s),T=s.type,A=s.pendingProps,J=o!==null?o.memoizedProps:null,y=A.children,Ah(T,A)?y=null:J!==null&&Ah(T,J)&&(s.flags|=32),s.memoizedState!==null&&(T=_p(o,s,A8,null,null,m),Ku._currentValue=T),Gf(o,s),ua(o,s,y,m),s.child;case 6:return o===null&&Dn&&((o=m=vr)&&(m=$T(m,s.pendingProps,to),m!==null?(s.stateNode=m,sa=s,vr=null,o=!0):o=!1),o||Ri(s)),null;case 13:return Dx(o,s,m);case 4:return X(s,s.stateNode.containerInfo),y=s.pendingProps,o===null?s.child=Dl(s,null,y,m):ua(o,s,y,m),s.child;case 11:return Ox(o,s,s.type,s.pendingProps,m);case 7:return ua(o,s,s.pendingProps,m),s.child;case 8:return ua(o,s,s.pendingProps.children,m),s.child;case 12:return ua(o,s,s.pendingProps.children,m),s.child;case 10:return y=s.pendingProps,ji(s,s.type,y.value),ua(o,s,y.children,m),s.child;case 9:return T=s.type._context,y=s.pendingProps.children,Ml(s),T=ca(T),y=y(T),s.flags|=1,ua(o,s,y,m),s.child;case 14:return Rx(o,s,s.type,s.pendingProps,m);case 15:return jx(o,s,s.type,s.pendingProps,m);case 19:return Ax(o,s,m);case 31:return K8(o,s,m);case 22:return Ix(o,s,m,s.pendingProps);case 24:return Ml(s),y=ca(Ar),o===null?(T=Op(),T===null&&(T=sr,A=wp(),T.pooledCache=A,A.refCount++,A!==null&&(T.pooledCacheLanes|=m),T=A),s.memoizedState={parent:y,cache:T},jp(s),ji(s,Ar,T)):((o.lanes&m)!==0&&(Ip(o,s),Eu(s,null,null,m),wu()),T=o.memoizedState,A=s.memoizedState,T.parent!==y?(T={parent:y,cache:y},s.memoizedState=T,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=T),ji(s,Ar,y)):(y=A.cache,ji(s,Ar,y),y!==T.cache&&$p(s,[Ar],m,!0))),ua(o,s,s.pendingProps.children,m),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function li(o){o.flags|=4}function uh(o,s,m,y,T){if((s=(o.mode&32)!==0)&&(s=!1),s){if(o.flags|=16777216,(T&335544128)===T)if(o.stateNode.complete)o.flags|=8192;else if(d$())o.flags|=8192;else throw zl=Pf,Rp}else o.flags&=-16777217}function kx(o,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!e2(s))if(d$())o.flags|=8192;else throw zl=Pf,Rp}function Yf(o,s){s!==null&&(o.flags|=4),o.flags&16384&&(s=o.tag!==22?Pt():536870912,o.lanes|=s,Xs|=s)}function Mu(o,s){if(!Dn)switch(o.tailMode){case"hidden":s=o.tail;for(var m=null;s!==null;)s.alternate!==null&&(m=s),s=s.sibling;m===null?o.tail=null:m.sibling=null;break;case"collapsed":m=o.tail;for(var y=null;m!==null;)m.alternate!==null&&(y=m),m=m.sibling;y===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:y.sibling=null}}function gr(o){var s=o.alternate!==null&&o.alternate.child===o.child,m=0,y=0;if(s)for(var T=o.child;T!==null;)m|=T.lanes|T.childLanes,y|=T.subtreeFlags&65011712,y|=T.flags&65011712,T.return=o,T=T.sibling;else for(T=o.child;T!==null;)m|=T.lanes|T.childLanes,y|=T.subtreeFlags,y|=T.flags,T.return=o,T=T.sibling;return o.subtreeFlags|=y,o.childLanes=m,s}function q8(o,s,m){var y=s.pendingProps;switch(bp(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gr(s),null;case 1:return gr(s),null;case 3:return m=s.stateNode,y=null,o!==null&&(y=o.memoizedState.cache),s.memoizedState.cache!==y&&(s.flags|=2048),ri(Ar),ae(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(o===null||o.child===null)&&(_s(s)?li(s):o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Cp())),gr(s),null;case 26:var T=s.type,A=s.memoizedState;return o===null?(li(s),A!==null?(gr(s),kx(s,A)):(gr(s),uh(s,T,null,y,m))):A?A!==o.memoizedState?(li(s),gr(s),kx(s,A)):(gr(s),s.flags&=-16777217):(o=o.memoizedProps,o!==y&&li(s),gr(s),uh(s,T,o,y,m)),null;case 27:if(ne(s),m=Q.current,T=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==y&&li(s);else{if(!y){if(s.stateNode===null)throw Error(r(166));return gr(s),null}o=U.current,_s(s)?bS(s):(o=U$(T,y,m),s.stateNode=o,li(s))}return gr(s),null;case 5:if(ne(s),T=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==y&&li(s);else{if(!y){if(s.stateNode===null)throw Error(r(166));return gr(s),null}if(A=U.current,_s(s))bS(s);else{var J=dm(Q.current);switch(A){case 1:A=J.createElementNS("http://www.w3.org/2000/svg",T);break;case 2:A=J.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;default:switch(T){case"svg":A=J.createElementNS("http://www.w3.org/2000/svg",T);break;case"math":A=J.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;case"script":A=J.createElement("div"),A.innerHTML="<script><\/script>",A=A.removeChild(A.firstChild);break;case"select":A=typeof y.is=="string"?J.createElement("select",{is:y.is}):J.createElement("select"),y.multiple?A.multiple=!0:y.size&&(A.size=y.size);break;default:A=typeof y.is=="string"?J.createElement(T,{is:y.is}):J.createElement(T)}}A[ft]=s,A[lt]=y;e:for(J=s.child;J!==null;){if(J.tag===5||J.tag===6)A.appendChild(J.stateNode);else if(J.tag!==4&&J.tag!==27&&J.child!==null){J.child.return=J,J=J.child;continue}if(J===s)break e;for(;J.sibling===null;){if(J.return===null||J.return===s)break e;J=J.return}J.sibling.return=J.return,J=J.sibling}s.stateNode=A;e:switch(da(A,T,y),T){case"button":case"input":case"select":case"textarea":y=!!y.autoFocus;break e;case"img":y=!0;break e;default:y=!1}y&&li(s)}}return gr(s),uh(s,s.type,o===null?null:o.memoizedProps,s.pendingProps,m),null;case 6:if(o&&s.stateNode!=null)o.memoizedProps!==y&&li(s);else{if(typeof y!="string"&&s.stateNode===null)throw Error(r(166));if(o=Q.current,_s(s)){if(o=s.stateNode,m=s.memoizedProps,y=null,T=sa,T!==null)switch(T.tag){case 27:case 5:y=T.memoizedProps}o[ft]=s,o=!!(o.nodeValue===m||y!==null&&y.suppressHydrationWarning===!0||D$(o.nodeValue,m)),o||Ri(s,!0)}else o=dm(o).createTextNode(y),o[ft]=s,s.stateNode=o}return gr(s),null;case 31:if(m=s.memoizedState,o===null||o.memoizedState!==null){if(y=_s(s),m!==null){if(o===null){if(!y)throw Error(r(318));if(o=s.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[ft]=s}else Il(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;gr(s),o=!1}else m=Cp(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=m),o=!0;if(!o)return s.flags&256?(Aa(s),s):(Aa(s),null);if((s.flags&128)!==0)throw Error(r(558))}return gr(s),null;case 13:if(y=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(T=_s(s),y!==null&&y.dehydrated!==null){if(o===null){if(!T)throw Error(r(318));if(T=s.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(r(317));T[ft]=s}else Il(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;gr(s),T=!1}else T=Cp(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=T),T=!0;if(!T)return s.flags&256?(Aa(s),s):(Aa(s),null)}return Aa(s),(s.flags&128)!==0?(s.lanes=m,s):(m=y!==null,o=o!==null&&o.memoizedState!==null,m&&(y=s.child,T=null,y.alternate!==null&&y.alternate.memoizedState!==null&&y.alternate.memoizedState.cachePool!==null&&(T=y.alternate.memoizedState.cachePool.pool),A=null,y.memoizedState!==null&&y.memoizedState.cachePool!==null&&(A=y.memoizedState.cachePool.pool),A!==T&&(y.flags|=2048)),m!==o&&m&&(s.child.flags|=8192),Yf(s,s.updateQueue),gr(s),null);case 4:return ae(),o===null&&Th(s.stateNode.containerInfo),gr(s),null;case 10:return ri(s.type),gr(s),null;case 19:if(G(Pr),y=s.memoizedState,y===null)return gr(s),null;if(T=(s.flags&128)!==0,A=y.rendering,A===null)if(T)Mu(y,!1);else{if(Or!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(A=Af(o),A!==null){for(s.flags|=128,Mu(y,!1),o=A.updateQueue,s.updateQueue=o,Yf(s,o),s.subtreeFlags=0,o=m,m=s.child;m!==null;)mS(m,o),m=m.sibling;return K(Pr,Pr.current&1|2),Dn&&ti(s,y.treeForkCount),s.child}o=o.sibling}y.tail!==null&&Ce()>tm&&(s.flags|=128,T=!0,Mu(y,!1),s.lanes=4194304)}else{if(!T)if(o=Af(A),o!==null){if(s.flags|=128,T=!0,o=o.updateQueue,s.updateQueue=o,Yf(s,o),Mu(y,!0),y.tail===null&&y.tailMode==="hidden"&&!A.alternate&&!Dn)return gr(s),null}else 2*Ce()-y.renderingStartTime>tm&&m!==536870912&&(s.flags|=128,T=!0,Mu(y,!1),s.lanes=4194304);y.isBackwards?(A.sibling=s.child,s.child=A):(o=y.last,o!==null?o.sibling=A:s.child=A,y.last=A)}return y.tail!==null?(o=y.tail,y.rendering=o,y.tail=o.sibling,y.renderingStartTime=Ce(),o.sibling=null,m=Pr.current,K(Pr,T?m&1|2:m&1),Dn&&ti(s,y.treeForkCount),o):(gr(s),null);case 22:case 23:return Aa(s),Pp(),y=s.memoizedState!==null,o!==null?o.memoizedState!==null!==y&&(s.flags|=8192):y&&(s.flags|=8192),y?(m&536870912)!==0&&(s.flags&128)===0&&(gr(s),s.subtreeFlags&6&&(s.flags|=8192)):gr(s),m=s.updateQueue,m!==null&&Yf(s,m.retryQueue),m=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),y=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(y=s.memoizedState.cachePool.pool),y!==m&&(s.flags|=2048),o!==null&&G(Tl),null;case 24:return m=null,o!==null&&(m=o.memoizedState.cache),s.memoizedState.cache!==m&&(s.flags|=2048),ri(Ar),gr(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function G8(o,s){switch(bp(s),s.tag){case 1:return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return ri(Ar),ae(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 26:case 27:case 5:return ne(s),null;case 31:if(s.memoizedState!==null){if(Aa(s),s.alternate===null)throw Error(r(340));Il()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 13:if(Aa(s),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Il()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return G(Pr),null;case 4:return ae(),null;case 10:return ri(s.type),null;case 22:case 23:return Aa(s),Pp(),o!==null&&G(Tl),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 24:return ri(Ar),null;case 25:return null;default:return null}}function Lx(o,s){switch(bp(s),s.tag){case 3:ri(Ar),ae();break;case 26:case 27:case 5:ne(s);break;case 4:ae();break;case 31:s.memoizedState!==null&&Aa(s);break;case 13:Aa(s);break;case 19:G(Pr);break;case 10:ri(s.type);break;case 22:case 23:Aa(s),Pp(),o!==null&&G(Tl);break;case 24:ri(Ar)}}function Tu(o,s){try{var m=s.updateQueue,y=m!==null?m.lastEffect:null;if(y!==null){var T=y.next;m=T;do{if((m.tag&o)===o){y=void 0;var A=m.create,J=m.inst;y=A(),J.destroy=y}m=m.next}while(m!==T)}}catch(me){er(s,s.return,me)}}function zi(o,s,m){try{var y=s.updateQueue,T=y!==null?y.lastEffect:null;if(T!==null){var A=T.next;y=A;do{if((y.tag&o)===o){var J=y.inst,me=J.destroy;if(me!==void 0){J.destroy=void 0,T=s;var xe=m,ke=me;try{ke()}catch(Ze){er(T,xe,Ze)}}}y=y.next}while(y!==A)}}catch(Ze){er(s,s.return,Ze)}}function Hx(o){var s=o.updateQueue;if(s!==null){var m=o.stateNode;try{MS(s,m)}catch(y){er(o,o.return,y)}}}function Fx(o,s,m){m.props=Al(o.type,o.memoizedProps),m.state=o.memoizedState;try{m.componentWillUnmount()}catch(y){er(o,s,y)}}function Pu(o,s){try{var m=o.ref;if(m!==null){switch(o.tag){case 26:case 27:case 5:var y=o.stateNode;break;case 30:y=o.stateNode;break;default:y=o.stateNode}typeof m=="function"?o.refCleanup=m(y):m.current=y}}catch(T){er(o,s,T)}}function ko(o,s){var m=o.ref,y=o.refCleanup;if(m!==null)if(typeof y=="function")try{y()}catch(T){er(o,s,T)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(T){er(o,s,T)}else m.current=null}function Vx(o){var s=o.type,m=o.memoizedProps,y=o.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":m.autoFocus&&y.focus();break e;case"img":m.src?y.src=m.src:m.srcSet&&(y.srcset=m.srcSet)}}catch(T){er(o,o.return,T)}}function dh(o,s,m){try{var y=o.stateNode;pT(y,o.type,m,s),y[lt]=s}catch(T){er(o,o.return,T)}}function Wx(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Hi(o.type)||o.tag===4}function fh(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Wx(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Hi(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function mh(o,s,m){var y=o.tag;if(y===5||y===6)o=o.stateNode,s?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(o,s):(s=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,s.appendChild(o),m=m._reactRootContainer,m!=null||s.onclick!==null||(s.onclick=Kn));else if(y!==4&&(y===27&&Hi(o.type)&&(m=o.stateNode,s=null),o=o.child,o!==null))for(mh(o,s,m),o=o.sibling;o!==null;)mh(o,s,m),o=o.sibling}function Qf(o,s,m){var y=o.tag;if(y===5||y===6)o=o.stateNode,s?m.insertBefore(o,s):m.appendChild(o);else if(y!==4&&(y===27&&Hi(o.type)&&(m=o.stateNode),o=o.child,o!==null))for(Qf(o,s,m),o=o.sibling;o!==null;)Qf(o,s,m),o=o.sibling}function Kx(o){var s=o.stateNode,m=o.memoizedProps;try{for(var y=o.type,T=s.attributes;T.length;)s.removeAttributeNode(T[0]);da(s,y,m),s[ft]=o,s[lt]=m}catch(A){er(o,o.return,A)}}var si=!1,Lr=!1,vh=!1,Ux=typeof WeakSet=="function"?WeakSet:Set,Jr=null;function X8(o,s){if(o=o.containerInfo,Dh=bm,o=aS(o),lp(o)){if("selectionStart"in o)var m={start:o.selectionStart,end:o.selectionEnd};else e:{m=(m=o.ownerDocument)&&m.defaultView||window;var y=m.getSelection&&m.getSelection();if(y&&y.rangeCount!==0){m=y.anchorNode;var T=y.anchorOffset,A=y.focusNode;y=y.focusOffset;try{m.nodeType,A.nodeType}catch{m=null;break e}var J=0,me=-1,xe=-1,ke=0,Ze=0,it=o,He=null;t:for(;;){for(var qe;it!==m||T!==0&&it.nodeType!==3||(me=J+T),it!==A||y!==0&&it.nodeType!==3||(xe=J+y),it.nodeType===3&&(J+=it.nodeValue.length),(qe=it.firstChild)!==null;)He=it,it=qe;for(;;){if(it===o)break t;if(He===m&&++ke===T&&(me=J),He===A&&++Ze===y&&(xe=J),(qe=it.nextSibling)!==null)break;it=He,He=it.parentNode}it=qe}m=me===-1||xe===-1?null:{start:me,end:xe}}else m=null}m=m||{start:0,end:0}}else m=null;for(_h={focusedElem:o,selectionRange:m},bm=!1,Jr=s;Jr!==null;)if(s=Jr,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,Jr=o;else for(;Jr!==null;){switch(s=Jr,A=s.alternate,o=s.flags,s.tag){case 0:if((o&4)!==0&&(o=s.updateQueue,o=o!==null?o.events:null,o!==null))for(m=0;m<o.length;m++)T=o[m],T.ref.impl=T.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&A!==null){o=void 0,m=s,T=A.memoizedProps,A=A.memoizedState,y=m.stateNode;try{var Wt=Al(m.type,T);o=y.getSnapshotBeforeUpdate(Wt,A),y.__reactInternalSnapshotBeforeUpdate=o}catch(ln){er(m,m.return,ln)}}break;case 3:if((o&1024)!==0){if(o=s.stateNode.containerInfo,m=o.nodeType,m===9)kh(o);else if(m===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":kh(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=s.sibling,o!==null){o.return=s.return,Jr=o;break}Jr=s.return}}function qx(o,s,m){var y=m.flags;switch(m.tag){case 0:case 11:case 15:ui(o,m),y&4&&Tu(5,m);break;case 1:if(ui(o,m),y&4)if(o=m.stateNode,s===null)try{o.componentDidMount()}catch(J){er(m,m.return,J)}else{var T=Al(m.type,s.memoizedProps);s=s.memoizedState;try{o.componentDidUpdate(T,s,o.__reactInternalSnapshotBeforeUpdate)}catch(J){er(m,m.return,J)}}y&64&&Hx(m),y&512&&Pu(m,m.return);break;case 3:if(ui(o,m),y&64&&(o=m.updateQueue,o!==null)){if(s=null,m.child!==null)switch(m.child.tag){case 27:case 5:s=m.child.stateNode;break;case 1:s=m.child.stateNode}try{MS(o,s)}catch(J){er(m,m.return,J)}}break;case 27:s===null&&y&4&&Kx(m);case 26:case 5:ui(o,m),s===null&&y&4&&Vx(m),y&512&&Pu(m,m.return);break;case 12:ui(o,m);break;case 31:ui(o,m),y&4&&Yx(o,m);break;case 13:ui(o,m),y&4&&Qx(o,m),y&64&&(o=m.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(m=aT.bind(null,m),wT(o,m))));break;case 22:if(y=m.memoizedState!==null||si,!y){s=s!==null&&s.memoizedState!==null||Lr,T=si;var A=Lr;si=y,(Lr=s)&&!A?di(o,m,(m.subtreeFlags&8772)!==0):ui(o,m),si=T,Lr=A}break;case 30:break;default:ui(o,m)}}function Gx(o){var s=o.alternate;s!==null&&(o.alternate=null,Gx(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&un(s)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var hr=null,Oa=!1;function ci(o,s,m){for(m=m.child;m!==null;)Xx(o,s,m),m=m.sibling}function Xx(o,s,m){if(Re&&typeof Re.onCommitFiberUnmount=="function")try{Re.onCommitFiberUnmount(_e,m)}catch{}switch(m.tag){case 26:Lr||ko(m,s),ci(o,s,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:Lr||ko(m,s);var y=hr,T=Oa;Hi(m.type)&&(hr=m.stateNode,Oa=!1),ci(o,s,m),Fu(m.stateNode),hr=y,Oa=T;break;case 5:Lr||ko(m,s);case 6:if(y=hr,T=Oa,hr=null,ci(o,s,m),hr=y,Oa=T,hr!==null)if(Oa)try{(hr.nodeType===9?hr.body:hr.nodeName==="HTML"?hr.ownerDocument.body:hr).removeChild(m.stateNode)}catch(A){er(m,s,A)}else try{hr.removeChild(m.stateNode)}catch(A){er(m,s,A)}break;case 18:hr!==null&&(Oa?(o=hr,H$(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,m.stateNode),rc(o)):H$(hr,m.stateNode));break;case 4:y=hr,T=Oa,hr=m.stateNode.containerInfo,Oa=!0,ci(o,s,m),hr=y,Oa=T;break;case 0:case 11:case 14:case 15:zi(2,m,s),Lr||zi(4,m,s),ci(o,s,m);break;case 1:Lr||(ko(m,s),y=m.stateNode,typeof y.componentWillUnmount=="function"&&Fx(m,s,y)),ci(o,s,m);break;case 21:ci(o,s,m);break;case 22:Lr=(y=Lr)||m.memoizedState!==null,ci(o,s,m),Lr=y;break;default:ci(o,s,m)}}function Yx(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{rc(o)}catch(m){er(s,s.return,m)}}}function Qx(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{rc(o)}catch(m){er(s,s.return,m)}}function Y8(o){switch(o.tag){case 31:case 13:case 19:var s=o.stateNode;return s===null&&(s=o.stateNode=new Ux),s;case 22:return o=o.stateNode,s=o._retryCache,s===null&&(s=o._retryCache=new Ux),s;default:throw Error(r(435,o.tag))}}function Zf(o,s){var m=Y8(o);s.forEach(function(y){if(!m.has(y)){m.add(y);var T=oT.bind(null,o,y);y.then(T,T)}})}function Ra(o,s){var m=s.deletions;if(m!==null)for(var y=0;y<m.length;y++){var T=m[y],A=o,J=s,me=J;e:for(;me!==null;){switch(me.tag){case 27:if(Hi(me.type)){hr=me.stateNode,Oa=!1;break e}break;case 5:hr=me.stateNode,Oa=!1;break e;case 3:case 4:hr=me.stateNode.containerInfo,Oa=!0;break e}me=me.return}if(hr===null)throw Error(r(160));Xx(A,J,T),hr=null,Oa=!1,A=T.alternate,A!==null&&(A.return=null),T.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)Zx(s,o),s=s.sibling}var ho=null;function Zx(o,s){var m=o.alternate,y=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Ra(s,o),ja(o),y&4&&(zi(3,o,o.return),Tu(3,o),zi(5,o,o.return));break;case 1:Ra(s,o),ja(o),y&512&&(Lr||m===null||ko(m,m.return)),y&64&&si&&(o=o.updateQueue,o!==null&&(y=o.callbacks,y!==null&&(m=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=m===null?y:m.concat(y))));break;case 26:var T=ho;if(Ra(s,o),ja(o),y&512&&(Lr||m===null||ko(m,m.return)),y&4){var A=m!==null?m.memoizedState:null;if(y=o.memoizedState,m===null)if(y===null)if(o.stateNode===null){e:{y=o.type,m=o.memoizedProps,T=T.ownerDocument||T;t:switch(y){case"title":A=T.getElementsByTagName("title")[0],(!A||A[qt]||A[ft]||A.namespaceURI==="http://www.w3.org/2000/svg"||A.hasAttribute("itemprop"))&&(A=T.createElement(y),T.head.insertBefore(A,T.querySelector("head > title"))),da(A,y,m),A[ft]=o,Qe(A),y=A;break e;case"link":var J=Z$("link","href",T).get(y+(m.href||""));if(J){for(var me=0;me<J.length;me++)if(A=J[me],A.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&A.getAttribute("rel")===(m.rel==null?null:m.rel)&&A.getAttribute("title")===(m.title==null?null:m.title)&&A.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){J.splice(me,1);break t}}A=T.createElement(y),da(A,y,m),T.head.appendChild(A);break;case"meta":if(J=Z$("meta","content",T).get(y+(m.content||""))){for(me=0;me<J.length;me++)if(A=J[me],A.getAttribute("content")===(m.content==null?null:""+m.content)&&A.getAttribute("name")===(m.name==null?null:m.name)&&A.getAttribute("property")===(m.property==null?null:m.property)&&A.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&A.getAttribute("charset")===(m.charSet==null?null:m.charSet)){J.splice(me,1);break t}}A=T.createElement(y),da(A,y,m),T.head.appendChild(A);break;default:throw Error(r(468,y))}A[ft]=o,Qe(A),y=A}o.stateNode=y}else J$(T,o.type,o.stateNode);else o.stateNode=Q$(T,y,o.memoizedProps);else A!==y?(A===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):A.count--,y===null?J$(T,o.type,o.stateNode):Q$(T,y,o.memoizedProps)):y===null&&o.stateNode!==null&&dh(o,o.memoizedProps,m.memoizedProps)}break;case 27:Ra(s,o),ja(o),y&512&&(Lr||m===null||ko(m,m.return)),m!==null&&y&4&&dh(o,o.memoizedProps,m.memoizedProps);break;case 5:if(Ra(s,o),ja(o),y&512&&(Lr||m===null||ko(m,m.return)),o.flags&32){T=o.stateNode;try{Qn(T,"")}catch(Wt){er(o,o.return,Wt)}}y&4&&o.stateNode!=null&&(T=o.memoizedProps,dh(o,T,m!==null?m.memoizedProps:T)),y&1024&&(vh=!0);break;case 6:if(Ra(s,o),ja(o),y&4){if(o.stateNode===null)throw Error(r(162));y=o.memoizedProps,m=o.stateNode;try{m.nodeValue=y}catch(Wt){er(o,o.return,Wt)}}break;case 3:if(vm=null,T=ho,ho=fm(s.containerInfo),Ra(s,o),ho=T,ja(o),y&4&&m!==null&&m.memoizedState.isDehydrated)try{rc(s.containerInfo)}catch(Wt){er(o,o.return,Wt)}vh&&(vh=!1,Jx(o));break;case 4:y=ho,ho=fm(o.stateNode.containerInfo),Ra(s,o),ja(o),ho=y;break;case 12:Ra(s,o),ja(o);break;case 31:Ra(s,o),ja(o),y&4&&(y=o.updateQueue,y!==null&&(o.updateQueue=null,Zf(o,y)));break;case 13:Ra(s,o),ja(o),o.child.flags&8192&&o.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(em=Ce()),y&4&&(y=o.updateQueue,y!==null&&(o.updateQueue=null,Zf(o,y)));break;case 22:T=o.memoizedState!==null;var xe=m!==null&&m.memoizedState!==null,ke=si,Ze=Lr;if(si=ke||T,Lr=Ze||xe,Ra(s,o),Lr=Ze,si=ke,ja(o),y&8192)e:for(s=o.stateNode,s._visibility=T?s._visibility&-2:s._visibility|1,T&&(m===null||xe||si||Lr||Bl(o)),m=null,s=o;;){if(s.tag===5||s.tag===26){if(m===null){xe=m=s;try{if(A=xe.stateNode,T)J=A.style,typeof J.setProperty=="function"?J.setProperty("display","none","important"):J.display="none";else{me=xe.stateNode;var it=xe.memoizedProps.style,He=it!=null&&it.hasOwnProperty("display")?it.display:null;me.style.display=He==null||typeof He=="boolean"?"":(""+He).trim()}}catch(Wt){er(xe,xe.return,Wt)}}}else if(s.tag===6){if(m===null){xe=s;try{xe.stateNode.nodeValue=T?"":xe.memoizedProps}catch(Wt){er(xe,xe.return,Wt)}}}else if(s.tag===18){if(m===null){xe=s;try{var qe=xe.stateNode;T?F$(qe,!0):F$(xe.stateNode,!1)}catch(Wt){er(xe,xe.return,Wt)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===o)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;m===s&&(m=null),s=s.return}m===s&&(m=null),s.sibling.return=s.return,s=s.sibling}y&4&&(y=o.updateQueue,y!==null&&(m=y.retryQueue,m!==null&&(y.retryQueue=null,Zf(o,m))));break;case 19:Ra(s,o),ja(o),y&4&&(y=o.updateQueue,y!==null&&(o.updateQueue=null,Zf(o,y)));break;case 30:break;case 21:break;default:Ra(s,o),ja(o)}}function ja(o){var s=o.flags;if(s&2){try{for(var m,y=o.return;y!==null;){if(Wx(y)){m=y;break}y=y.return}if(m==null)throw Error(r(160));switch(m.tag){case 27:var T=m.stateNode,A=fh(o);Qf(o,A,T);break;case 5:var J=m.stateNode;m.flags&32&&(Qn(J,""),m.flags&=-33);var me=fh(o);Qf(o,me,J);break;case 3:case 4:var xe=m.stateNode.containerInfo,ke=fh(o);mh(o,ke,xe);break;default:throw Error(r(161))}}catch(Ze){er(o,o.return,Ze)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function Jx(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var s=o;Jx(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),o=o.sibling}}function ui(o,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)qx(o,s.alternate,s),s=s.sibling}function Bl(o){for(o=o.child;o!==null;){var s=o;switch(s.tag){case 0:case 11:case 14:case 15:zi(4,s,s.return),Bl(s);break;case 1:ko(s,s.return);var m=s.stateNode;typeof m.componentWillUnmount=="function"&&Fx(s,s.return,m),Bl(s);break;case 27:Fu(s.stateNode);case 26:case 5:ko(s,s.return),Bl(s);break;case 22:s.memoizedState===null&&Bl(s);break;case 30:Bl(s);break;default:Bl(s)}o=o.sibling}}function di(o,s,m){for(m=m&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var y=s.alternate,T=o,A=s,J=A.flags;switch(A.tag){case 0:case 11:case 15:di(T,A,m),Tu(4,A);break;case 1:if(di(T,A,m),y=A,T=y.stateNode,typeof T.componentDidMount=="function")try{T.componentDidMount()}catch(ke){er(y,y.return,ke)}if(y=A,T=y.updateQueue,T!==null){var me=y.stateNode;try{var xe=T.shared.hiddenCallbacks;if(xe!==null)for(T.shared.hiddenCallbacks=null,T=0;T<xe.length;T++)NS(xe[T],me)}catch(ke){er(y,y.return,ke)}}m&&J&64&&Hx(A),Pu(A,A.return);break;case 27:Kx(A);case 26:case 5:di(T,A,m),m&&y===null&&J&4&&Vx(A),Pu(A,A.return);break;case 12:di(T,A,m);break;case 31:di(T,A,m),m&&J&4&&Yx(T,A);break;case 13:di(T,A,m),m&&J&4&&Qx(T,A);break;case 22:A.memoizedState===null&&di(T,A,m),Pu(A,A.return);break;case 30:break;default:di(T,A,m)}s=s.sibling}}function gh(o,s){var m=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),o=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),o!==m&&(o!=null&&o.refCount++,m!=null&&yu(m))}function ph(o,s){o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&yu(o))}function bo(o,s,m,y){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)e$(o,s,m,y),s=s.sibling}function e$(o,s,m,y){var T=s.flags;switch(s.tag){case 0:case 11:case 15:bo(o,s,m,y),T&2048&&Tu(9,s);break;case 1:bo(o,s,m,y);break;case 3:bo(o,s,m,y),T&2048&&(o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&yu(o)));break;case 12:if(T&2048){bo(o,s,m,y),o=s.stateNode;try{var A=s.memoizedProps,J=A.id,me=A.onPostCommit;typeof me=="function"&&me(J,s.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(xe){er(s,s.return,xe)}}else bo(o,s,m,y);break;case 31:bo(o,s,m,y);break;case 13:bo(o,s,m,y);break;case 23:break;case 22:A=s.stateNode,J=s.alternate,s.memoizedState!==null?A._visibility&2?bo(o,s,m,y):zu(o,s):A._visibility&2?bo(o,s,m,y):(A._visibility|=2,Us(o,s,m,y,(s.subtreeFlags&10256)!==0||!1)),T&2048&&gh(J,s);break;case 24:bo(o,s,m,y),T&2048&&ph(s.alternate,s);break;default:bo(o,s,m,y)}}function Us(o,s,m,y,T){for(T=T&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var A=o,J=s,me=m,xe=y,ke=J.flags;switch(J.tag){case 0:case 11:case 15:Us(A,J,me,xe,T),Tu(8,J);break;case 23:break;case 22:var Ze=J.stateNode;J.memoizedState!==null?Ze._visibility&2?Us(A,J,me,xe,T):zu(A,J):(Ze._visibility|=2,Us(A,J,me,xe,T)),T&&ke&2048&&gh(J.alternate,J);break;case 24:Us(A,J,me,xe,T),T&&ke&2048&&ph(J.alternate,J);break;default:Us(A,J,me,xe,T)}s=s.sibling}}function zu(o,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var m=o,y=s,T=y.flags;switch(y.tag){case 22:zu(m,y),T&2048&&gh(y.alternate,y);break;case 24:zu(m,y),T&2048&&ph(y.alternate,y);break;default:zu(m,y)}s=s.sibling}}var Du=8192;function qs(o,s,m){if(o.subtreeFlags&Du)for(o=o.child;o!==null;)t$(o,s,m),o=o.sibling}function t$(o,s,m){switch(o.tag){case 26:qs(o,s,m),o.flags&Du&&o.memoizedState!==null&&_T(m,ho,o.memoizedState,o.memoizedProps);break;case 5:qs(o,s,m);break;case 3:case 4:var y=ho;ho=fm(o.stateNode.containerInfo),qs(o,s,m),ho=y;break;case 22:o.memoizedState===null&&(y=o.alternate,y!==null&&y.memoizedState!==null?(y=Du,Du=16777216,qs(o,s,m),Du=y):qs(o,s,m));break;default:qs(o,s,m)}}function n$(o){var s=o.alternate;if(s!==null&&(o=s.child,o!==null)){s.child=null;do s=o.sibling,o.sibling=null,o=s;while(o!==null)}}function _u(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var m=0;m<s.length;m++){var y=s[m];Jr=y,a$(y,o)}n$(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)r$(o),o=o.sibling}function r$(o){switch(o.tag){case 0:case 11:case 15:_u(o),o.flags&2048&&zi(9,o,o.return);break;case 3:_u(o);break;case 12:_u(o);break;case 22:var s=o.stateNode;o.memoizedState!==null&&s._visibility&2&&(o.return===null||o.return.tag!==13)?(s._visibility&=-3,Jf(o)):_u(o);break;default:_u(o)}}function Jf(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var m=0;m<s.length;m++){var y=s[m];Jr=y,a$(y,o)}n$(o)}for(o=o.child;o!==null;){switch(s=o,s.tag){case 0:case 11:case 15:zi(8,s,s.return),Jf(s);break;case 22:m=s.stateNode,m._visibility&2&&(m._visibility&=-3,Jf(s));break;default:Jf(s)}o=o.sibling}}function a$(o,s){for(;Jr!==null;){var m=Jr;switch(m.tag){case 0:case 11:case 15:zi(8,m,s);break;case 23:case 22:if(m.memoizedState!==null&&m.memoizedState.cachePool!==null){var y=m.memoizedState.cachePool.pool;y!=null&&y.refCount++}break;case 24:yu(m.memoizedState.cache)}if(y=m.child,y!==null)y.return=m,Jr=y;else e:for(m=o;Jr!==null;){y=Jr;var T=y.sibling,A=y.return;if(Gx(y),y===m){Jr=null;break e}if(T!==null){T.return=A,Jr=T;break e}Jr=A}}}var Q8={getCacheForType:function(o){var s=ca(Ar),m=s.data.get(o);return m===void 0&&(m=o(),s.data.set(o,m)),m},cacheSignal:function(){return ca(Ar).controller.signal}},Z8=typeof WeakMap=="function"?WeakMap:Map,Un=0,sr=null,En=null,In=0,Jn=0,Ba=null,Di=!1,Gs=!1,hh=!1,fi=0,Or=0,_i=0,kl=0,bh=0,ka=0,Xs=0,Au=null,Ia=null,yh=!1,em=0,o$=0,tm=1/0,nm=null,Ai=null,Ur=0,Bi=null,Ys=null,mi=0,Ch=0,Sh=null,i$=null,Bu=0,xh=null;function La(){return(Un&2)!==0&&In!==0?In&-In:z.T!==null?jh():Mt()}function l$(){if(ka===0)if((In&536870912)===0||Dn){var o=bt;bt<<=1,(bt&3932160)===0&&(bt=262144),ka=o}else ka=536870912;return o=_a.current,o!==null&&(o.flags|=32),ka}function Na(o,s,m){(o===sr&&(Jn===2||Jn===9)||o.cancelPendingCommit!==null)&&(Qs(o,0),ki(o,In,ka,!1)),ct(o,m),((Un&2)===0||o!==sr)&&(o===sr&&((Un&2)===0&&(kl|=m),Or===4&&ki(o,In,ka,!1)),Lo(o))}function s$(o,s,m){if((Un&6)!==0)throw Error(r(327));var y=!m&&(s&127)===0&&(s&o.expiredLanes)===0||at(o,s),T=y?tT(o,s):wh(o,s,!0),A=y;do{if(T===0){Gs&&!y&&ki(o,s,0,!1);break}else{if(m=o.current.alternate,A&&!J8(m)){T=wh(o,s,!1),A=!1;continue}if(T===2){if(A=s,o.errorRecoveryDisabledLanes&A)var J=0;else J=o.pendingLanes&-536870913,J=J!==0?J:J&536870912?536870912:0;if(J!==0){s=J;e:{var me=o;T=Au;var xe=me.current.memoizedState.isDehydrated;if(xe&&(Qs(me,J).flags|=256),J=wh(me,J,!1),J!==2){if(hh&&!xe){me.errorRecoveryDisabledLanes|=A,kl|=A,T=4;break e}A=Ia,Ia=T,A!==null&&(Ia===null?Ia=A:Ia.push.apply(Ia,A))}T=J}if(A=!1,T!==2)continue}}if(T===1){Qs(o,0),ki(o,s,0,!0);break}e:{switch(y=o,A=T,A){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:ki(y,s,ka,!Di);break e;case 2:Ia=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(T=em+300-Ce(),10<T)){if(ki(y,s,ka,!Di),dt(y,0,!0)!==0)break e;mi=s,y.timeoutHandle=k$(c$.bind(null,y,m,Ia,nm,yh,s,ka,kl,Xs,Di,A,"Throttled",-0,0),T);break e}c$(y,m,Ia,nm,yh,s,ka,kl,Xs,Di,A,null,-0,0)}}break}while(!0);Lo(o)}function c$(o,s,m,y,T,A,J,me,xe,ke,Ze,it,He,qe){if(o.timeoutHandle=-1,it=s.subtreeFlags,it&8192||(it&16785408)===16785408){it={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kn},t$(s,A,it);var Wt=(A&62914560)===A?em-Ce():(A&4194048)===A?o$-Ce():0;if(Wt=AT(it,Wt),Wt!==null){mi=A,o.cancelPendingCommit=Wt(h$.bind(null,o,s,A,m,y,T,J,me,xe,Ze,it,null,He,qe)),ki(o,A,J,!ke);return}}h$(o,s,A,m,y,T,J,me,xe)}function J8(o){for(var s=o;;){var m=s.tag;if((m===0||m===11||m===15)&&s.flags&16384&&(m=s.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var y=0;y<m.length;y++){var T=m[y],A=T.getSnapshot;T=T.value;try{if(!za(A(),T))return!1}catch{return!1}}if(m=s.child,s.subtreeFlags&16384&&m!==null)m.return=s,s=m;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function ki(o,s,m,y){s&=~bh,s&=~kl,o.suspendedLanes|=s,o.pingedLanes&=~s,y&&(o.warmLanes|=s),y=o.expirationTimes;for(var T=s;0<T;){var A=31-be(T),J=1<<A;y[A]=-1,T&=~J}m!==0&&yt(o,m,s)}function rm(){return(Un&6)===0?(ku(0),!1):!0}function $h(){if(En!==null){if(Jn===0)var o=En.return;else o=En,ni=Nl=null,kp(o),Hs=null,Su=0,o=En;for(;o!==null;)Lx(o.alternate,o),o=o.return;En=null}}function Qs(o,s){var m=o.timeoutHandle;m!==-1&&(o.timeoutHandle=-1,yT(m)),m=o.cancelPendingCommit,m!==null&&(o.cancelPendingCommit=null,m()),mi=0,$h(),sr=o,En=m=ei(o.current,null),In=s,Jn=0,Ba=null,Di=!1,Gs=at(o,s),hh=!1,Xs=ka=bh=kl=_i=Or=0,Ia=Au=null,yh=!1,(s&8)!==0&&(s|=s&32);var y=o.entangledLanes;if(y!==0)for(o=o.entanglements,y&=s;0<y;){var T=31-be(y),A=1<<T;s|=o[T],y&=~A}return fi=s,wf(),m}function u$(o,s){yn=null,z.H=Iu,s===Ls||s===Tf?(s=OS(),Jn=3):s===Rp?(s=OS(),Jn=4):Jn=s===th?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Ba=s,En===null&&(Or=1,Uf(o,Za(s,o.current)))}function d$(){var o=_a.current;return o===null?!0:(In&4194048)===In?no===null:(In&62914560)===In||(In&536870912)!==0?o===no:!1}function f$(){var o=z.H;return z.H=Iu,o===null?Iu:o}function m$(){var o=z.A;return z.A=Q8,o}function am(){Or=4,Di||(In&4194048)!==In&&_a.current!==null||(Gs=!0),(_i&134217727)===0&&(kl&134217727)===0||sr===null||ki(sr,In,ka,!1)}function wh(o,s,m){var y=Un;Un|=2;var T=f$(),A=m$();(sr!==o||In!==s)&&(nm=null,Qs(o,s)),s=!1;var J=Or;e:do try{if(Jn!==0&&En!==null){var me=En,xe=Ba;switch(Jn){case 8:$h(),J=6;break e;case 3:case 2:case 9:case 6:_a.current===null&&(s=!0);var ke=Jn;if(Jn=0,Ba=null,Zs(o,me,xe,ke),m&&Gs){J=0;break e}break;default:ke=Jn,Jn=0,Ba=null,Zs(o,me,xe,ke)}}eT(),J=Or;break}catch(Ze){u$(o,Ze)}while(!0);return s&&o.shellSuspendCounter++,ni=Nl=null,Un=y,z.H=T,z.A=A,En===null&&(sr=null,In=0,wf()),J}function eT(){for(;En!==null;)v$(En)}function tT(o,s){var m=Un;Un|=2;var y=f$(),T=m$();sr!==o||In!==s?(nm=null,tm=Ce()+500,Qs(o,s)):Gs=at(o,s);e:do try{if(Jn!==0&&En!==null){s=En;var A=Ba;t:switch(Jn){case 1:Jn=0,Ba=null,Zs(o,s,A,1);break;case 2:case 9:if(wS(A)){Jn=0,Ba=null,g$(s);break}s=function(){Jn!==2&&Jn!==9||sr!==o||(Jn=7),Lo(o)},A.then(s,s);break e;case 3:Jn=7;break e;case 4:Jn=5;break e;case 7:wS(A)?(Jn=0,Ba=null,g$(s)):(Jn=0,Ba=null,Zs(o,s,A,7));break;case 5:var J=null;switch(En.tag){case 26:J=En.memoizedState;case 5:case 27:var me=En;if(J?e2(J):me.stateNode.complete){Jn=0,Ba=null;var xe=me.sibling;if(xe!==null)En=xe;else{var ke=me.return;ke!==null?(En=ke,om(ke)):En=null}break t}}Jn=0,Ba=null,Zs(o,s,A,5);break;case 6:Jn=0,Ba=null,Zs(o,s,A,6);break;case 8:$h(),Or=6;break e;default:throw Error(r(462))}}nT();break}catch(Ze){u$(o,Ze)}while(!0);return ni=Nl=null,z.H=y,z.A=T,Un=m,En!==null?0:(sr=null,In=0,wf(),Or)}function nT(){for(;En!==null&&!we();)v$(En)}function v$(o){var s=Bx(o.alternate,o,fi);o.memoizedProps=o.pendingProps,s===null?om(o):En=s}function g$(o){var s=o,m=s.alternate;switch(s.tag){case 15:case 0:s=Tx(m,s,s.pendingProps,s.type,void 0,In);break;case 11:s=Tx(m,s,s.pendingProps,s.type.render,s.ref,In);break;case 5:kp(s);default:Lx(m,s),s=En=mS(s,fi),s=Bx(m,s,fi)}o.memoizedProps=o.pendingProps,s===null?om(o):En=s}function Zs(o,s,m,y){ni=Nl=null,kp(s),Hs=null,Su=0;var T=s.return;try{if(W8(o,T,s,m,In)){Or=1,Uf(o,Za(m,o.current)),En=null;return}}catch(A){if(T!==null)throw En=T,A;Or=1,Uf(o,Za(m,o.current)),En=null;return}s.flags&32768?(Dn||y===1?o=!0:Gs||(In&536870912)!==0?o=!1:(Di=o=!0,(y===2||y===9||y===3||y===6)&&(y=_a.current,y!==null&&y.tag===13&&(y.flags|=16384))),p$(s,o)):om(s)}function om(o){var s=o;do{if((s.flags&32768)!==0){p$(s,Di);return}o=s.return;var m=q8(s.alternate,s,fi);if(m!==null){En=m;return}if(s=s.sibling,s!==null){En=s;return}En=s=o}while(s!==null);Or===0&&(Or=5)}function p$(o,s){do{var m=G8(o.alternate,o);if(m!==null){m.flags&=32767,En=m;return}if(m=o.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!s&&(o=o.sibling,o!==null)){En=o;return}En=o=m}while(o!==null);Or=6,En=null}function h$(o,s,m,y,T,A,J,me,xe){o.cancelPendingCommit=null;do im();while(Ur!==0);if((Un&6)!==0)throw Error(r(327));if(s!==null){if(s===o.current)throw Error(r(177));if(A=s.lanes|s.childLanes,A|=fp,St(o,m,A,J,me,xe),o===sr&&(En=sr=null,In=0),Ys=s,Bi=o,mi=m,Ch=A,Sh=T,i$=y,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,iT(Ke,function(){return x$(),null})):(o.callbackNode=null,o.callbackPriority=0),y=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||y){y=z.T,z.T=null,T=_.p,_.p=2,J=Un,Un|=4;try{X8(o,s,m)}finally{Un=J,_.p=T,z.T=y}}Ur=1,b$(),y$(),C$()}}function b$(){if(Ur===1){Ur=0;var o=Bi,s=Ys,m=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||m){m=z.T,z.T=null;var y=_.p;_.p=2;var T=Un;Un|=4;try{Zx(s,o);var A=_h,J=aS(o.containerInfo),me=A.focusedElem,xe=A.selectionRange;if(J!==me&&me&&me.ownerDocument&&rS(me.ownerDocument.documentElement,me)){if(xe!==null&&lp(me)){var ke=xe.start,Ze=xe.end;if(Ze===void 0&&(Ze=ke),"selectionStart"in me)me.selectionStart=ke,me.selectionEnd=Math.min(Ze,me.value.length);else{var it=me.ownerDocument||document,He=it&&it.defaultView||window;if(He.getSelection){var qe=He.getSelection(),Wt=me.textContent.length,ln=Math.min(xe.start,Wt),ar=xe.end===void 0?ln:Math.min(xe.end,Wt);!qe.extend&&ln>ar&&(J=ar,ar=ln,ln=J);var ze=nS(me,ln),Ie=nS(me,ar);if(ze&&Ie&&(qe.rangeCount!==1||qe.anchorNode!==ze.node||qe.anchorOffset!==ze.offset||qe.focusNode!==Ie.node||qe.focusOffset!==Ie.offset)){var Be=it.createRange();Be.setStart(ze.node,ze.offset),qe.removeAllRanges(),ln>ar?(qe.addRange(Be),qe.extend(Ie.node,Ie.offset)):(Be.setEnd(Ie.node,Ie.offset),qe.addRange(Be))}}}}for(it=[],qe=me;qe=qe.parentNode;)qe.nodeType===1&&it.push({element:qe,left:qe.scrollLeft,top:qe.scrollTop});for(typeof me.focus=="function"&&me.focus(),me=0;me<it.length;me++){var rt=it[me];rt.element.scrollLeft=rt.left,rt.element.scrollTop=rt.top}}bm=!!Dh,_h=Dh=null}finally{Un=T,_.p=y,z.T=m}}o.current=s,Ur=2}}function y$(){if(Ur===2){Ur=0;var o=Bi,s=Ys,m=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||m){m=z.T,z.T=null;var y=_.p;_.p=2;var T=Un;Un|=4;try{qx(o,s.alternate,s)}finally{Un=T,_.p=y,z.T=m}}Ur=3}}function C$(){if(Ur===4||Ur===3){Ur=0,Se();var o=Bi,s=Ys,m=mi,y=i$;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Ur=5:(Ur=0,Ys=Bi=null,S$(o,o.pendingLanes));var T=o.pendingLanes;if(T===0&&(Ai=null),mt(m),s=s.stateNode,Re&&typeof Re.onCommitFiberRoot=="function")try{Re.onCommitFiberRoot(_e,s,void 0,(s.current.flags&128)===128)}catch{}if(y!==null){s=z.T,T=_.p,_.p=2,z.T=null;try{for(var A=o.onRecoverableError,J=0;J<y.length;J++){var me=y[J];A(me.value,{componentStack:me.stack})}}finally{z.T=s,_.p=T}}(mi&3)!==0&&im(),Lo(o),T=o.pendingLanes,(m&261930)!==0&&(T&42)!==0?o===xh?Bu++:(Bu=0,xh=o):Bu=0,ku(0)}}function S$(o,s){(o.pooledCacheLanes&=s)===0&&(s=o.pooledCache,s!=null&&(o.pooledCache=null,yu(s)))}function im(){return b$(),y$(),C$(),x$()}function x$(){if(Ur!==5)return!1;var o=Bi,s=Ch;Ch=0;var m=mt(mi),y=z.T,T=_.p;try{_.p=32>m?32:m,z.T=null,m=Sh,Sh=null;var A=Bi,J=mi;if(Ur=0,Ys=Bi=null,mi=0,(Un&6)!==0)throw Error(r(331));var me=Un;if(Un|=4,r$(A.current),e$(A,A.current,J,m),Un=me,ku(0,!1),Re&&typeof Re.onPostCommitFiberRoot=="function")try{Re.onPostCommitFiberRoot(_e,A)}catch{}return!0}finally{_.p=T,z.T=y,S$(o,s)}}function $$(o,s,m){s=Za(m,s),s=eh(o.stateNode,s,2),o=Mi(o,s,2),o!==null&&(ct(o,2),Lo(o))}function er(o,s,m){if(o.tag===3)$$(o,o,m);else for(;s!==null;){if(s.tag===3){$$(s,o,m);break}else if(s.tag===1){var y=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(Ai===null||!Ai.has(y))){o=Za(m,o),m=wx(2),y=Mi(s,m,2),y!==null&&(Ex(m,y,s,o),ct(y,2),Lo(y));break}}s=s.return}}function Eh(o,s,m){var y=o.pingCache;if(y===null){y=o.pingCache=new Z8;var T=new Set;y.set(s,T)}else T=y.get(s),T===void 0&&(T=new Set,y.set(s,T));T.has(m)||(hh=!0,T.add(m),o=rT.bind(null,o,s,m),s.then(o,o))}function rT(o,s,m){var y=o.pingCache;y!==null&&y.delete(s),o.pingedLanes|=o.suspendedLanes&m,o.warmLanes&=~m,sr===o&&(In&m)===m&&(Or===4||Or===3&&(In&62914560)===In&&300>Ce()-em?(Un&2)===0&&Qs(o,0):bh|=m,Xs===In&&(Xs=0)),Lo(o)}function w$(o,s){s===0&&(s=Pt()),o=Rl(o,s),o!==null&&(ct(o,s),Lo(o))}function aT(o){var s=o.memoizedState,m=0;s!==null&&(m=s.retryLane),w$(o,m)}function oT(o,s){var m=0;switch(o.tag){case 31:case 13:var y=o.stateNode,T=o.memoizedState;T!==null&&(m=T.retryLane);break;case 19:y=o.stateNode;break;case 22:y=o.stateNode._retryCache;break;default:throw Error(r(314))}y!==null&&y.delete(s),w$(o,m)}function iT(o,s){return je(o,s)}var lm=null,Js=null,Oh=!1,sm=!1,Rh=!1,Li=0;function Lo(o){o!==Js&&o.next===null&&(Js===null?lm=Js=o:Js=Js.next=o),sm=!0,Oh||(Oh=!0,sT())}function ku(o,s){if(!Rh&&sm){Rh=!0;do for(var m=!1,y=lm;y!==null;){if(o!==0){var T=y.pendingLanes;if(T===0)var A=0;else{var J=y.suspendedLanes,me=y.pingedLanes;A=(1<<31-be(42|o)+1)-1,A&=T&~(J&~me),A=A&201326741?A&201326741|1:A?A|2:0}A!==0&&(m=!0,j$(y,A))}else A=In,A=dt(y,y===sr?A:0,y.cancelPendingCommit!==null||y.timeoutHandle!==-1),(A&3)===0||at(y,A)||(m=!0,j$(y,A));y=y.next}while(m);Rh=!1}}function lT(){E$()}function E$(){sm=Oh=!1;var o=0;Li!==0&&bT()&&(o=Li);for(var s=Ce(),m=null,y=lm;y!==null;){var T=y.next,A=O$(y,s);A===0?(y.next=null,m===null?lm=T:m.next=T,T===null&&(Js=m)):(m=y,(o!==0||(A&3)!==0)&&(sm=!0)),y=T}Ur!==0&&Ur!==5||ku(o),Li!==0&&(Li=0)}function O$(o,s){for(var m=o.suspendedLanes,y=o.pingedLanes,T=o.expirationTimes,A=o.pendingLanes&-62914561;0<A;){var J=31-be(A),me=1<<J,xe=T[J];xe===-1?((me&m)===0||(me&y)!==0)&&(T[J]=pt(me,s)):xe<=s&&(o.expiredLanes|=me),A&=~me}if(s=sr,m=In,m=dt(o,o===s?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),y=o.callbackNode,m===0||o===s&&(Jn===2||Jn===9)||o.cancelPendingCommit!==null)return y!==null&&y!==null&&pe(y),o.callbackNode=null,o.callbackPriority=0;if((m&3)===0||at(o,m)){if(s=m&-m,s===o.callbackPriority)return s;switch(y!==null&&pe(y),mt(m)){case 2:case 8:m=Ye;break;case 32:m=Ke;break;case 268435456:m=Ge;break;default:m=Ke}return y=R$.bind(null,o),m=je(m,y),o.callbackPriority=s,o.callbackNode=m,s}return y!==null&&y!==null&&pe(y),o.callbackPriority=2,o.callbackNode=null,2}function R$(o,s){if(Ur!==0&&Ur!==5)return o.callbackNode=null,o.callbackPriority=0,null;var m=o.callbackNode;if(im()&&o.callbackNode!==m)return null;var y=In;return y=dt(o,o===sr?y:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),y===0?null:(s$(o,y,s),O$(o,Ce()),o.callbackNode!=null&&o.callbackNode===m?R$.bind(null,o):null)}function j$(o,s){if(im())return null;s$(o,s,!0)}function sT(){CT(function(){(Un&6)!==0?je(Ae,lT):E$()})}function jh(){if(Li===0){var o=Bs;o===0&&(o=et,et<<=1,(et&261888)===0&&(et=256)),Li=o}return Li}function I$(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Zn(""+o)}function N$(o,s){var m=s.ownerDocument.createElement("input");return m.name=s.name,m.value=s.value,o.id&&m.setAttribute("form",o.id),s.parentNode.insertBefore(m,s),o=new FormData(o),m.parentNode.removeChild(m),o}function cT(o,s,m,y,T){if(s==="submit"&&m&&m.stateNode===T){var A=I$((T[lt]||null).action),J=y.submitter;J&&(s=(s=J[lt]||null)?I$(s.formAction):J.getAttribute("formAction"),s!==null&&(A=s,J=null));var me=new Cf("action","action",null,y,T);o.push({event:me,listeners:[{instance:null,listener:function(){if(y.defaultPrevented){if(Li!==0){var xe=J?N$(T,J):new FormData(T);Gp(m,{pending:!0,data:xe,method:T.method,action:A},null,xe)}}else typeof A=="function"&&(me.preventDefault(),xe=J?N$(T,J):new FormData(T),Gp(m,{pending:!0,data:xe,method:T.method,action:A},A,xe))},currentTarget:T}]})}}for(var Ih=0;Ih<dp.length;Ih++){var Nh=dp[Ih],uT=Nh.toLowerCase(),dT=Nh[0].toUpperCase()+Nh.slice(1);po(uT,"on"+dT)}po(lS,"onAnimationEnd"),po(sS,"onAnimationIteration"),po(cS,"onAnimationStart"),po("dblclick","onDoubleClick"),po("focusin","onFocus"),po("focusout","onBlur"),po(R8,"onTransitionRun"),po(j8,"onTransitionStart"),po(I8,"onTransitionCancel"),po(uS,"onTransitionEnd"),vt("onMouseEnter",["mouseout","mouseover"]),vt("onMouseLeave",["mouseout","mouseover"]),vt("onPointerEnter",["pointerout","pointerover"]),vt("onPointerLeave",["pointerout","pointerover"]),Kt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lu="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(" "),fT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Lu));function M$(o,s){s=(s&4)!==0;for(var m=0;m<o.length;m++){var y=o[m],T=y.event;y=y.listeners;e:{var A=void 0;if(s)for(var J=y.length-1;0<=J;J--){var me=y[J],xe=me.instance,ke=me.currentTarget;if(me=me.listener,xe!==A&&T.isPropagationStopped())break e;A=me,T.currentTarget=ke;try{A(T)}catch(Ze){$f(Ze)}T.currentTarget=null,A=xe}else for(J=0;J<y.length;J++){if(me=y[J],xe=me.instance,ke=me.currentTarget,me=me.listener,xe!==A&&T.isPropagationStopped())break e;A=me,T.currentTarget=ke;try{A(T)}catch(Ze){$f(Ze)}T.currentTarget=null,A=xe}}}}function On(o,s){var m=s[Ut];m===void 0&&(m=s[Ut]=new Set);var y=o+"__bubble";m.has(y)||(T$(s,o,2,!1),m.add(y))}function Mh(o,s,m){var y=0;s&&(y|=4),T$(m,o,y,s)}var cm="_reactListening"+Math.random().toString(36).slice(2);function Th(o){if(!o[cm]){o[cm]=!0,ut.forEach(function(m){m!=="selectionchange"&&(fT.has(m)||Mh(m,!1,o),Mh(m,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[cm]||(s[cm]=!0,Mh("selectionchange",!1,s))}}function T$(o,s,m,y){switch(l2(s)){case 2:var T=LT;break;case 8:T=HT;break;default:T=qh}m=T.bind(null,s,m,o),T=void 0,!tr||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(T=!0),y?T!==void 0?o.addEventListener(s,m,{capture:!0,passive:T}):o.addEventListener(s,m,!0):T!==void 0?o.addEventListener(s,m,{passive:T}):o.addEventListener(s,m,!1)}function Ph(o,s,m,y,T){var A=y;if((s&1)===0&&(s&2)===0&&y!==null)e:for(;;){if(y===null)return;var J=y.tag;if(J===3||J===4){var me=y.stateNode.containerInfo;if(me===T)break;if(J===4)for(J=y.return;J!==null;){var xe=J.tag;if((xe===3||xe===4)&&J.stateNode.containerInfo===T)return;J=J.return}for(;me!==null;){if(J=st(me),J===null)return;if(xe=J.tag,xe===5||xe===6||xe===26||xe===27){y=A=J;continue e}me=me.parentNode}}y=y.return}js(function(){var ke=A,Ze=Zr(m),it=[];e:{var He=dS.get(o);if(He!==void 0){var qe=Cf,Wt=o;switch(o){case"keypress":if(Jo(m)===0)break e;case"keydown":case"keyup":qe=o8;break;case"focusin":Wt="focus",qe=np;break;case"focusout":Wt="blur",qe=np;break;case"beforeblur":case"afterblur":qe=np;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":qe=LC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":qe=qM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":qe=s8;break;case lS:case sS:case cS:qe=YM;break;case uS:qe=u8;break;case"scroll":case"scrollend":qe=KM;break;case"wheel":qe=f8;break;case"copy":case"cut":case"paste":qe=ZM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":qe=FC;break;case"toggle":case"beforetoggle":qe=v8}var ln=(s&4)!==0,ar=!ln&&(o==="scroll"||o==="scrollend"),ze=ln?He!==null?He+"Capture":null:He;ln=[];for(var Ie=ke,Be;Ie!==null;){var rt=Ie;if(Be=rt.stateNode,rt=rt.tag,rt!==5&&rt!==26&&rt!==27||Be===null||ze===null||(rt=Ht(Ie,ze),rt!=null&&ln.push(Hu(Ie,rt,Be))),ar)break;Ie=Ie.return}0<ln.length&&(He=new qe(He,Wt,null,m,Ze),it.push({event:He,listeners:ln}))}}if((s&7)===0){e:{if(He=o==="mouseover"||o==="pointerover",qe=o==="mouseout"||o==="pointerout",He&&m!==Kr&&(Wt=m.relatedTarget||m.fromElement)&&(st(Wt)||Wt[At]))break e;if((qe||He)&&(He=Ze.window===Ze?Ze:(He=Ze.ownerDocument)?He.defaultView||He.parentWindow:window,qe?(Wt=m.relatedTarget||m.toElement,qe=ke,Wt=Wt?st(Wt):null,Wt!==null&&(ar=l(Wt),ln=Wt.tag,Wt!==ar||ln!==5&&ln!==27&&ln!==6)&&(Wt=null)):(qe=null,Wt=ke),qe!==Wt)){if(ln=LC,rt="onMouseLeave",ze="onMouseEnter",Ie="mouse",(o==="pointerout"||o==="pointerover")&&(ln=FC,rt="onPointerLeave",ze="onPointerEnter",Ie="pointer"),ar=qe==null?He:ht(qe),Be=Wt==null?He:ht(Wt),He=new ln(rt,Ie+"leave",qe,m,Ze),He.target=ar,He.relatedTarget=Be,rt=null,st(Ze)===ke&&(ln=new ln(ze,Ie+"enter",Wt,m,Ze),ln.target=Be,ln.relatedTarget=ar,rt=ln),ar=rt,qe&&Wt)t:{for(ln=mT,ze=qe,Ie=Wt,Be=0,rt=ze;rt;rt=ln(rt))Be++;rt=0;for(var en=Ie;en;en=ln(en))rt++;for(;0<Be-rt;)ze=ln(ze),Be--;for(;0<rt-Be;)Ie=ln(Ie),rt--;for(;Be--;){if(ze===Ie||Ie!==null&&ze===Ie.alternate){ln=ze;break t}ze=ln(ze),Ie=ln(Ie)}ln=null}else ln=null;qe!==null&&P$(it,He,qe,ln,!1),Wt!==null&&ar!==null&&P$(it,ar,Wt,ln,!0)}}e:{if(He=ke?ht(ke):window,qe=He.nodeName&&He.nodeName.toLowerCase(),qe==="select"||qe==="input"&&He.type==="file")var Ln=YC;else if(GC(He))if(QC)Ln=w8;else{Ln=x8;var Gt=S8}else qe=He.nodeName,!qe||qe.toLowerCase()!=="input"||He.type!=="checkbox"&&He.type!=="radio"?ke&&jt(ke.elementType)&&(Ln=YC):Ln=$8;if(Ln&&(Ln=Ln(o,ke))){XC(it,Ln,m,Ze);break e}Gt&&Gt(o,He,ke),o==="focusout"&&ke&&He.type==="number"&&ke.memoizedProps.value!=null&&mn(He,"number",He.value)}switch(Gt=ke?ht(ke):window,o){case"focusin":(GC(Gt)||Gt.contentEditable==="true")&&(Ns=Gt,sp=ke,pu=null);break;case"focusout":pu=sp=Ns=null;break;case"mousedown":cp=!0;break;case"contextmenu":case"mouseup":case"dragend":cp=!1,oS(it,m,Ze);break;case"selectionchange":if(O8)break;case"keydown":case"keyup":oS(it,m,Ze)}var Sn;if(ap)e:{switch(o){case"compositionstart":var Nn="onCompositionStart";break e;case"compositionend":Nn="onCompositionEnd";break e;case"compositionupdate":Nn="onCompositionUpdate";break e}Nn=void 0}else Is?UC(o,m)&&(Nn="onCompositionEnd"):o==="keydown"&&m.keyCode===229&&(Nn="onCompositionStart");Nn&&(VC&&m.locale!=="ko"&&(Is||Nn!=="onCompositionStart"?Nn==="onCompositionEnd"&&Is&&(Sn=cu()):(Bn=Ze,$i="value"in Bn?Bn.value:Bn.textContent,Is=!0)),Gt=um(ke,Nn),0<Gt.length&&(Nn=new HC(Nn,o,null,m,Ze),it.push({event:Nn,listeners:Gt}),Sn?Nn.data=Sn:(Sn=qC(m),Sn!==null&&(Nn.data=Sn)))),(Sn=p8?h8(o,m):b8(o,m))&&(Nn=um(ke,"onBeforeInput"),0<Nn.length&&(Gt=new HC("onBeforeInput","beforeinput",null,m,Ze),it.push({event:Gt,listeners:Nn}),Gt.data=Sn)),cT(it,o,ke,m,Ze)}M$(it,s)})}function Hu(o,s,m){return{instance:o,listener:s,currentTarget:m}}function um(o,s){for(var m=s+"Capture",y=[];o!==null;){var T=o,A=T.stateNode;if(T=T.tag,T!==5&&T!==26&&T!==27||A===null||(T=Ht(o,m),T!=null&&y.unshift(Hu(o,T,A)),T=Ht(o,s),T!=null&&y.push(Hu(o,T,A))),o.tag===3)return y;o=o.return}return[]}function mT(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function P$(o,s,m,y,T){for(var A=s._reactName,J=[];m!==null&&m!==y;){var me=m,xe=me.alternate,ke=me.stateNode;if(me=me.tag,xe!==null&&xe===y)break;me!==5&&me!==26&&me!==27||ke===null||(xe=ke,T?(ke=Ht(m,A),ke!=null&&J.unshift(Hu(m,ke,xe))):T||(ke=Ht(m,A),ke!=null&&J.push(Hu(m,ke,xe)))),m=m.return}J.length!==0&&o.push({event:s,listeners:J})}var vT=/\r\n?/g,gT=/\u0000|\uFFFD/g;function z$(o){return(typeof o=="string"?o:""+o).replace(vT,`
|
|
49
|
+
`).replace(gT,"")}function D$(o,s){return s=z$(s),z$(o)===s}function rr(o,s,m,y,T,A){switch(m){case"children":typeof y=="string"?s==="body"||s==="textarea"&&y===""||Qn(o,y):(typeof y=="number"||typeof y=="bigint")&&s!=="body"&&Qn(o,""+y);break;case"className":Wn(o,"class",y);break;case"tabIndex":Wn(o,"tabindex",y);break;case"dir":case"role":case"viewBox":case"width":case"height":Wn(o,m,y);break;case"style":gt(o,y,A);break;case"data":if(s!=="object"){Wn(o,"data",y);break}case"src":case"href":if(y===""&&(s!=="a"||m!=="href")){o.removeAttribute(m);break}if(y==null||typeof y=="function"||typeof y=="symbol"||typeof y=="boolean"){o.removeAttribute(m);break}y=Zn(""+y),o.setAttribute(m,y);break;case"action":case"formAction":if(typeof y=="function"){o.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 A=="function"&&(m==="formAction"?(s!=="input"&&rr(o,s,"name",T.name,T,null),rr(o,s,"formEncType",T.formEncType,T,null),rr(o,s,"formMethod",T.formMethod,T,null),rr(o,s,"formTarget",T.formTarget,T,null)):(rr(o,s,"encType",T.encType,T,null),rr(o,s,"method",T.method,T,null),rr(o,s,"target",T.target,T,null)));if(y==null||typeof y=="symbol"||typeof y=="boolean"){o.removeAttribute(m);break}y=Zn(""+y),o.setAttribute(m,y);break;case"onClick":y!=null&&(o.onclick=Kn);break;case"onScroll":y!=null&&On("scroll",o);break;case"onScrollEnd":y!=null&&On("scrollend",o);break;case"dangerouslySetInnerHTML":if(y!=null){if(typeof y!="object"||!("__html"in y))throw Error(r(61));if(m=y.__html,m!=null){if(T.children!=null)throw Error(r(60));o.innerHTML=m}}break;case"multiple":o.multiple=y&&typeof y!="function"&&typeof y!="symbol";break;case"muted":o.muted=y&&typeof y!="function"&&typeof y!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(y==null||typeof y=="function"||typeof y=="boolean"||typeof y=="symbol"){o.removeAttribute("xlink:href");break}m=Zn(""+y),o.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":y!=null&&typeof y!="function"&&typeof y!="symbol"?o.setAttribute(m,""+y):o.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":y&&typeof y!="function"&&typeof y!="symbol"?o.setAttribute(m,""):o.removeAttribute(m);break;case"capture":case"download":y===!0?o.setAttribute(m,""):y!==!1&&y!=null&&typeof y!="function"&&typeof y!="symbol"?o.setAttribute(m,y):o.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":y!=null&&typeof y!="function"&&typeof y!="symbol"&&!isNaN(y)&&1<=y?o.setAttribute(m,y):o.removeAttribute(m);break;case"rowSpan":case"start":y==null||typeof y=="function"||typeof y=="symbol"||isNaN(y)?o.removeAttribute(m):o.setAttribute(m,y);break;case"popover":On("beforetoggle",o),On("toggle",o),Pn(o,"popover",y);break;case"xlinkActuate":Rn(o,"http://www.w3.org/1999/xlink","xlink:actuate",y);break;case"xlinkArcrole":Rn(o,"http://www.w3.org/1999/xlink","xlink:arcrole",y);break;case"xlinkRole":Rn(o,"http://www.w3.org/1999/xlink","xlink:role",y);break;case"xlinkShow":Rn(o,"http://www.w3.org/1999/xlink","xlink:show",y);break;case"xlinkTitle":Rn(o,"http://www.w3.org/1999/xlink","xlink:title",y);break;case"xlinkType":Rn(o,"http://www.w3.org/1999/xlink","xlink:type",y);break;case"xmlBase":Rn(o,"http://www.w3.org/XML/1998/namespace","xml:base",y);break;case"xmlLang":Rn(o,"http://www.w3.org/XML/1998/namespace","xml:lang",y);break;case"xmlSpace":Rn(o,"http://www.w3.org/XML/1998/namespace","xml:space",y);break;case"is":Pn(o,"is",y);break;case"innerText":case"textContent":break;default:(!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(m=fn.get(m)||m,Pn(o,m,y))}}function zh(o,s,m,y,T,A){switch(m){case"style":gt(o,y,A);break;case"dangerouslySetInnerHTML":if(y!=null){if(typeof y!="object"||!("__html"in y))throw Error(r(61));if(m=y.__html,m!=null){if(T.children!=null)throw Error(r(60));o.innerHTML=m}}break;case"children":typeof y=="string"?Qn(o,y):(typeof y=="number"||typeof y=="bigint")&&Qn(o,""+y);break;case"onScroll":y!=null&&On("scroll",o);break;case"onScrollEnd":y!=null&&On("scrollend",o);break;case"onClick":y!=null&&(o.onclick=Kn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zt.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(T=m.endsWith("Capture"),s=m.slice(2,T?m.length-7:void 0),A=o[lt]||null,A=A!=null?A[m]:null,typeof A=="function"&&o.removeEventListener(s,A,T),typeof y=="function")){typeof A!="function"&&A!==null&&(m in o?o[m]=null:o.hasAttribute(m)&&o.removeAttribute(m)),o.addEventListener(s,y,T);break e}m in o?o[m]=y:y===!0?o.setAttribute(m,""):Pn(o,m,y)}}}function da(o,s,m){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":On("error",o),On("load",o);var y=!1,T=!1,A;for(A in m)if(m.hasOwnProperty(A)){var J=m[A];if(J!=null)switch(A){case"src":y=!0;break;case"srcSet":T=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:rr(o,s,A,J,m,null)}}T&&rr(o,s,"srcSet",m.srcSet,m,null),y&&rr(o,s,"src",m.src,m,null);return;case"input":On("invalid",o);var me=A=J=T=null,xe=null,ke=null;for(y in m)if(m.hasOwnProperty(y)){var Ze=m[y];if(Ze!=null)switch(y){case"name":T=Ze;break;case"type":J=Ze;break;case"checked":xe=Ze;break;case"defaultChecked":ke=Ze;break;case"value":A=Ze;break;case"defaultValue":me=Ze;break;case"children":case"dangerouslySetInnerHTML":if(Ze!=null)throw Error(r(137,s));break;default:rr(o,s,y,Ze,m,null)}}Dt(o,A,me,xe,ke,J,T,!1);return;case"select":On("invalid",o),y=J=A=null;for(T in m)if(m.hasOwnProperty(T)&&(me=m[T],me!=null))switch(T){case"value":A=me;break;case"defaultValue":J=me;break;case"multiple":y=me;default:rr(o,s,T,me,m,null)}s=A,m=J,o.multiple=!!y,s!=null?jn(o,!!y,s,!1):m!=null&&jn(o,!!y,m,!0);return;case"textarea":On("invalid",o),A=T=y=null;for(J in m)if(m.hasOwnProperty(J)&&(me=m[J],me!=null))switch(J){case"value":y=me;break;case"defaultValue":T=me;break;case"children":A=me;break;case"dangerouslySetInnerHTML":if(me!=null)throw Error(r(91));break;default:rr(o,s,J,me,m,null)}Sr(o,y,T,A);return;case"option":for(xe in m)if(m.hasOwnProperty(xe)&&(y=m[xe],y!=null))switch(xe){case"selected":o.selected=y&&typeof y!="function"&&typeof y!="symbol";break;default:rr(o,s,xe,y,m,null)}return;case"dialog":On("beforetoggle",o),On("toggle",o),On("cancel",o),On("close",o);break;case"iframe":case"object":On("load",o);break;case"video":case"audio":for(y=0;y<Lu.length;y++)On(Lu[y],o);break;case"image":On("error",o),On("load",o);break;case"details":On("toggle",o);break;case"embed":case"source":case"link":On("error",o),On("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ke in m)if(m.hasOwnProperty(ke)&&(y=m[ke],y!=null))switch(ke){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:rr(o,s,ke,y,m,null)}return;default:if(jt(s)){for(Ze in m)m.hasOwnProperty(Ze)&&(y=m[Ze],y!==void 0&&zh(o,s,Ze,y,m,void 0));return}}for(me in m)m.hasOwnProperty(me)&&(y=m[me],y!=null&&rr(o,s,me,y,m,null))}function pT(o,s,m,y){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var T=null,A=null,J=null,me=null,xe=null,ke=null,Ze=null;for(qe in m){var it=m[qe];if(m.hasOwnProperty(qe)&&it!=null)switch(qe){case"checked":break;case"value":break;case"defaultValue":xe=it;default:y.hasOwnProperty(qe)||rr(o,s,qe,null,y,it)}}for(var He in y){var qe=y[He];if(it=m[He],y.hasOwnProperty(He)&&(qe!=null||it!=null))switch(He){case"type":A=qe;break;case"name":T=qe;break;case"checked":ke=qe;break;case"defaultChecked":Ze=qe;break;case"value":J=qe;break;case"defaultValue":me=qe;break;case"children":case"dangerouslySetInnerHTML":if(qe!=null)throw Error(r(137,s));break;default:qe!==it&&rr(o,s,He,qe,y,it)}}Tt(o,J,me,xe,ke,Ze,A,T);return;case"select":qe=J=me=He=null;for(A in m)if(xe=m[A],m.hasOwnProperty(A)&&xe!=null)switch(A){case"value":break;case"multiple":qe=xe;default:y.hasOwnProperty(A)||rr(o,s,A,null,y,xe)}for(T in y)if(A=y[T],xe=m[T],y.hasOwnProperty(T)&&(A!=null||xe!=null))switch(T){case"value":He=A;break;case"defaultValue":me=A;break;case"multiple":J=A;default:A!==xe&&rr(o,s,T,A,y,xe)}s=me,m=J,y=qe,He!=null?jn(o,!!m,He,!1):!!y!=!!m&&(s!=null?jn(o,!!m,s,!0):jn(o,!!m,m?[]:"",!1));return;case"textarea":qe=He=null;for(me in m)if(T=m[me],m.hasOwnProperty(me)&&T!=null&&!y.hasOwnProperty(me))switch(me){case"value":break;case"children":break;default:rr(o,s,me,null,y,T)}for(J in y)if(T=y[J],A=m[J],y.hasOwnProperty(J)&&(T!=null||A!=null))switch(J){case"value":He=T;break;case"defaultValue":qe=T;break;case"children":break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(r(91));break;default:T!==A&&rr(o,s,J,T,y,A)}Yn(o,He,qe);return;case"option":for(var Wt in m)if(He=m[Wt],m.hasOwnProperty(Wt)&&He!=null&&!y.hasOwnProperty(Wt))switch(Wt){case"selected":o.selected=!1;break;default:rr(o,s,Wt,null,y,He)}for(xe in y)if(He=y[xe],qe=m[xe],y.hasOwnProperty(xe)&&He!==qe&&(He!=null||qe!=null))switch(xe){case"selected":o.selected=He&&typeof He!="function"&&typeof He!="symbol";break;default:rr(o,s,xe,He,y,qe)}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 ln in m)He=m[ln],m.hasOwnProperty(ln)&&He!=null&&!y.hasOwnProperty(ln)&&rr(o,s,ln,null,y,He);for(ke in y)if(He=y[ke],qe=m[ke],y.hasOwnProperty(ke)&&He!==qe&&(He!=null||qe!=null))switch(ke){case"children":case"dangerouslySetInnerHTML":if(He!=null)throw Error(r(137,s));break;default:rr(o,s,ke,He,y,qe)}return;default:if(jt(s)){for(var ar in m)He=m[ar],m.hasOwnProperty(ar)&&He!==void 0&&!y.hasOwnProperty(ar)&&zh(o,s,ar,void 0,y,He);for(Ze in y)He=y[Ze],qe=m[Ze],!y.hasOwnProperty(Ze)||He===qe||He===void 0&&qe===void 0||zh(o,s,Ze,He,y,qe);return}}for(var ze in m)He=m[ze],m.hasOwnProperty(ze)&&He!=null&&!y.hasOwnProperty(ze)&&rr(o,s,ze,null,y,He);for(it in y)He=y[it],qe=m[it],!y.hasOwnProperty(it)||He===qe||He==null&&qe==null||rr(o,s,it,He,y,qe)}function _$(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hT(){if(typeof performance.getEntriesByType=="function"){for(var o=0,s=0,m=performance.getEntriesByType("resource"),y=0;y<m.length;y++){var T=m[y],A=T.transferSize,J=T.initiatorType,me=T.duration;if(A&&me&&_$(J)){for(J=0,me=T.responseEnd,y+=1;y<m.length;y++){var xe=m[y],ke=xe.startTime;if(ke>me)break;var Ze=xe.transferSize,it=xe.initiatorType;Ze&&_$(it)&&(xe=xe.responseEnd,J+=Ze*(xe<me?1:(me-ke)/(xe-ke)))}if(--y,s+=8*(A+J)/(T.duration/1e3),o++,10<o)break}}if(0<o)return s/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var Dh=null,_h=null;function dm(o){return o.nodeType===9?o:o.ownerDocument}function A$(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function B$(o,s){if(o===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&s==="foreignObject"?0:o}function Ah(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Bh=null;function bT(){var o=window.event;return o&&o.type==="popstate"?o===Bh?!1:(Bh=o,!0):(Bh=null,!1)}var k$=typeof setTimeout=="function"?setTimeout:void 0,yT=typeof clearTimeout=="function"?clearTimeout:void 0,L$=typeof Promise=="function"?Promise:void 0,CT=typeof queueMicrotask=="function"?queueMicrotask:typeof L$<"u"?function(o){return L$.resolve(null).then(o).catch(ST)}:k$;function ST(o){setTimeout(function(){throw o})}function Hi(o){return o==="head"}function H$(o,s){var m=s,y=0;do{var T=m.nextSibling;if(o.removeChild(m),T&&T.nodeType===8)if(m=T.data,m==="/$"||m==="/&"){if(y===0){o.removeChild(T),rc(s);return}y--}else if(m==="$"||m==="$?"||m==="$~"||m==="$!"||m==="&")y++;else if(m==="html")Fu(o.ownerDocument.documentElement);else if(m==="head"){m=o.ownerDocument.head,Fu(m);for(var A=m.firstChild;A;){var J=A.nextSibling,me=A.nodeName;A[qt]||me==="SCRIPT"||me==="STYLE"||me==="LINK"&&A.rel.toLowerCase()==="stylesheet"||m.removeChild(A),A=J}}else m==="body"&&Fu(o.ownerDocument.body);m=T}while(m);rc(s)}function F$(o,s){var m=o;o=0;do{var y=m.nextSibling;if(m.nodeType===1?s?(m._stashedDisplay=m.style.display,m.style.display="none"):(m.style.display=m._stashedDisplay||"",m.getAttribute("style")===""&&m.removeAttribute("style")):m.nodeType===3&&(s?(m._stashedText=m.nodeValue,m.nodeValue=""):m.nodeValue=m._stashedText||""),y&&y.nodeType===8)if(m=y.data,m==="/$"){if(o===0)break;o--}else m!=="$"&&m!=="$?"&&m!=="$~"&&m!=="$!"||o++;m=y}while(m)}function kh(o){var s=o.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var m=s;switch(s=s.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":kh(m),un(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}o.removeChild(m)}}function xT(o,s,m,y){for(;o.nodeType===1;){var T=m;if(o.nodeName.toLowerCase()!==s.toLowerCase()){if(!y&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(y){if(!o[qt])switch(s){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(A=o.getAttribute("rel"),A==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(A!==T.rel||o.getAttribute("href")!==(T.href==null||T.href===""?null:T.href)||o.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin)||o.getAttribute("title")!==(T.title==null?null:T.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(A=o.getAttribute("src"),(A!==(T.src==null?null:T.src)||o.getAttribute("type")!==(T.type==null?null:T.type)||o.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin))&&A&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(s==="input"&&o.type==="hidden"){var A=T.name==null?null:""+T.name;if(T.type==="hidden"&&o.getAttribute("name")===A)return o}else return o;if(o=ro(o.nextSibling),o===null)break}return null}function $T(o,s,m){if(s==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!m||(o=ro(o.nextSibling),o===null))return null;return o}function V$(o,s){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!s||(o=ro(o.nextSibling),o===null))return null;return o}function Lh(o){return o.data==="$?"||o.data==="$~"}function Hh(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function wT(o,s){var m=o.ownerDocument;if(o.data==="$~")o._reactRetry=s;else if(o.data!=="$?"||m.readyState!=="loading")s();else{var y=function(){s(),m.removeEventListener("DOMContentLoaded",y)};m.addEventListener("DOMContentLoaded",y),o._reactRetry=y}}function ro(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return o}var Fh=null;function W$(o){o=o.nextSibling;for(var s=0;o;){if(o.nodeType===8){var m=o.data;if(m==="/$"||m==="/&"){if(s===0)return ro(o.nextSibling);s--}else m!=="$"&&m!=="$!"&&m!=="$?"&&m!=="$~"&&m!=="&"||s++}o=o.nextSibling}return null}function K$(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var m=o.data;if(m==="$"||m==="$!"||m==="$?"||m==="$~"||m==="&"){if(s===0)return o;s--}else m!=="/$"&&m!=="/&"||s++}o=o.previousSibling}return null}function U$(o,s,m){switch(s=dm(m),o){case"html":if(o=s.documentElement,!o)throw Error(r(452));return o;case"head":if(o=s.head,!o)throw Error(r(453));return o;case"body":if(o=s.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Fu(o){for(var s=o.attributes;s.length;)o.removeAttributeNode(s[0]);un(o)}var ao=new Map,q$=new Set;function fm(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var vi=_.d;_.d={f:ET,r:OT,D:RT,C:jT,L:IT,m:NT,X:TT,S:MT,M:PT};function ET(){var o=vi.f(),s=rm();return o||s}function OT(o){var s=Ct(o);s!==null&&s.tag===5&&s.type==="form"?ux(s):vi.r(o)}var ec=typeof document>"u"?null:document;function G$(o,s,m){var y=ec;if(y&&typeof s=="string"&&s){var T=an(s);T='link[rel="'+o+'"][href="'+T+'"]',typeof m=="string"&&(T+='[crossorigin="'+m+'"]'),q$.has(T)||(q$.add(T),o={rel:o,crossOrigin:m,href:s},y.querySelector(T)===null&&(s=y.createElement("link"),da(s,"link",o),Qe(s),y.head.appendChild(s)))}}function RT(o){vi.D(o),G$("dns-prefetch",o,null)}function jT(o,s){vi.C(o,s),G$("preconnect",o,s)}function IT(o,s,m){vi.L(o,s,m);var y=ec;if(y&&o&&s){var T='link[rel="preload"][as="'+an(s)+'"]';s==="image"&&m&&m.imageSrcSet?(T+='[imagesrcset="'+an(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(T+='[imagesizes="'+an(m.imageSizes)+'"]')):T+='[href="'+an(o)+'"]';var A=T;switch(s){case"style":A=tc(o);break;case"script":A=nc(o)}ao.has(A)||(o=g({rel:"preload",href:s==="image"&&m&&m.imageSrcSet?void 0:o,as:s},m),ao.set(A,o),y.querySelector(T)!==null||s==="style"&&y.querySelector(Vu(A))||s==="script"&&y.querySelector(Wu(A))||(s=y.createElement("link"),da(s,"link",o),Qe(s),y.head.appendChild(s)))}}function NT(o,s){vi.m(o,s);var m=ec;if(m&&o){var y=s&&typeof s.as=="string"?s.as:"script",T='link[rel="modulepreload"][as="'+an(y)+'"][href="'+an(o)+'"]',A=T;switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":A=nc(o)}if(!ao.has(A)&&(o=g({rel:"modulepreload",href:o},s),ao.set(A,o),m.querySelector(T)===null)){switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(Wu(A)))return}y=m.createElement("link"),da(y,"link",o),Qe(y),m.head.appendChild(y)}}}function MT(o,s,m){vi.S(o,s,m);var y=ec;if(y&&o){var T=Xe(y).hoistableStyles,A=tc(o);s=s||"default";var J=T.get(A);if(!J){var me={loading:0,preload:null};if(J=y.querySelector(Vu(A)))me.loading=5;else{o=g({rel:"stylesheet",href:o,"data-precedence":s},m),(m=ao.get(A))&&Vh(o,m);var xe=J=y.createElement("link");Qe(xe),da(xe,"link",o),xe._p=new Promise(function(ke,Ze){xe.onload=ke,xe.onerror=Ze}),xe.addEventListener("load",function(){me.loading|=1}),xe.addEventListener("error",function(){me.loading|=2}),me.loading|=4,mm(J,s,y)}J={type:"stylesheet",instance:J,count:1,state:me},T.set(A,J)}}}function TT(o,s){vi.X(o,s);var m=ec;if(m&&o){var y=Xe(m).hoistableScripts,T=nc(o),A=y.get(T);A||(A=m.querySelector(Wu(T)),A||(o=g({src:o,async:!0},s),(s=ao.get(T))&&Wh(o,s),A=m.createElement("script"),Qe(A),da(A,"link",o),m.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},y.set(T,A))}}function PT(o,s){vi.M(o,s);var m=ec;if(m&&o){var y=Xe(m).hoistableScripts,T=nc(o),A=y.get(T);A||(A=m.querySelector(Wu(T)),A||(o=g({src:o,async:!0,type:"module"},s),(s=ao.get(T))&&Wh(o,s),A=m.createElement("script"),Qe(A),da(A,"link",o),m.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},y.set(T,A))}}function X$(o,s,m,y){var T=(T=Q.current)?fm(T):null;if(!T)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(s=tc(m.href),m=Xe(T).hoistableStyles,y=m.get(s),y||(y={type:"style",instance:null,count:0,state:null},m.set(s,y)),y):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){o=tc(m.href);var A=Xe(T).hoistableStyles,J=A.get(o);if(J||(T=T.ownerDocument||T,J={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},A.set(o,J),(A=T.querySelector(Vu(o)))&&!A._p&&(J.instance=A,J.state.loading=5),ao.has(o)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},ao.set(o,m),A||zT(T,o,m,J.state))),s&&y===null)throw Error(r(528,""));return J}if(s&&y!==null)throw Error(r(529,""));return null;case"script":return s=m.async,m=m.src,typeof m=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=nc(m),m=Xe(T).hoistableScripts,y=m.get(s),y||(y={type:"script",instance:null,count:0,state:null},m.set(s,y)),y):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function tc(o){return'href="'+an(o)+'"'}function Vu(o){return'link[rel="stylesheet"]['+o+"]"}function Y$(o){return g({},o,{"data-precedence":o.precedence,precedence:null})}function zT(o,s,m,y){o.querySelector('link[rel="preload"][as="style"]['+s+"]")?y.loading=1:(s=o.createElement("link"),y.preload=s,s.addEventListener("load",function(){return y.loading|=1}),s.addEventListener("error",function(){return y.loading|=2}),da(s,"link",m),Qe(s),o.head.appendChild(s))}function nc(o){return'[src="'+an(o)+'"]'}function Wu(o){return"script[async]"+o}function Q$(o,s,m){if(s.count++,s.instance===null)switch(s.type){case"style":var y=o.querySelector('style[data-href~="'+an(m.href)+'"]');if(y)return s.instance=y,Qe(y),y;var T=g({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return y=(o.ownerDocument||o).createElement("style"),Qe(y),da(y,"style",T),mm(y,m.precedence,o),s.instance=y;case"stylesheet":T=tc(m.href);var A=o.querySelector(Vu(T));if(A)return s.state.loading|=4,s.instance=A,Qe(A),A;y=Y$(m),(T=ao.get(T))&&Vh(y,T),A=(o.ownerDocument||o).createElement("link"),Qe(A);var J=A;return J._p=new Promise(function(me,xe){J.onload=me,J.onerror=xe}),da(A,"link",y),s.state.loading|=4,mm(A,m.precedence,o),s.instance=A;case"script":return A=nc(m.src),(T=o.querySelector(Wu(A)))?(s.instance=T,Qe(T),T):(y=m,(T=ao.get(A))&&(y=g({},m),Wh(y,T)),o=o.ownerDocument||o,T=o.createElement("script"),Qe(T),da(T,"link",y),o.head.appendChild(T),s.instance=T);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(y=s.instance,s.state.loading|=4,mm(y,m.precedence,o));return s.instance}function mm(o,s,m){for(var y=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),T=y.length?y[y.length-1]:null,A=T,J=0;J<y.length;J++){var me=y[J];if(me.dataset.precedence===s)A=me;else if(A!==T)break}A?A.parentNode.insertBefore(o,A.nextSibling):(s=m.nodeType===9?m.head:m,s.insertBefore(o,s.firstChild))}function Vh(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.title==null&&(o.title=s.title)}function Wh(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.integrity==null&&(o.integrity=s.integrity)}var vm=null;function Z$(o,s,m){if(vm===null){var y=new Map,T=vm=new Map;T.set(m,y)}else T=vm,y=T.get(m),y||(y=new Map,T.set(m,y));if(y.has(o))return y;for(y.set(o,null),m=m.getElementsByTagName(o),T=0;T<m.length;T++){var A=m[T];if(!(A[qt]||A[ft]||o==="link"&&A.getAttribute("rel")==="stylesheet")&&A.namespaceURI!=="http://www.w3.org/2000/svg"){var J=A.getAttribute(s)||"";J=o+J;var me=y.get(J);me?me.push(A):y.set(J,[A])}}return y}function J$(o,s,m){o=o.ownerDocument||o,o.head.insertBefore(m,s==="title"?o.querySelector("head > title"):null)}function DT(o,s,m){if(m===1||s.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return o=s.disabled,typeof s.precedence=="string"&&o==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function e2(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function _T(o,s,m,y){if(m.type==="stylesheet"&&(typeof y.media!="string"||matchMedia(y.media).matches!==!1)&&(m.state.loading&4)===0){if(m.instance===null){var T=tc(y.href),A=s.querySelector(Vu(T));if(A){s=A._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(o.count++,o=gm.bind(o),s.then(o,o)),m.state.loading|=4,m.instance=A,Qe(A);return}A=s.ownerDocument||s,y=Y$(y),(T=ao.get(T))&&Vh(y,T),A=A.createElement("link"),Qe(A);var J=A;J._p=new Promise(function(me,xe){J.onload=me,J.onerror=xe}),da(A,"link",y),m.instance=A}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(m,s),(s=m.state.preload)&&(m.state.loading&3)===0&&(o.count++,m=gm.bind(o),s.addEventListener("load",m),s.addEventListener("error",m))}}var Kh=0;function AT(o,s){return o.stylesheets&&o.count===0&&hm(o,o.stylesheets),0<o.count||0<o.imgCount?function(m){var y=setTimeout(function(){if(o.stylesheets&&hm(o,o.stylesheets),o.unsuspend){var A=o.unsuspend;o.unsuspend=null,A()}},6e4+s);0<o.imgBytes&&Kh===0&&(Kh=62500*hT());var T=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&hm(o,o.stylesheets),o.unsuspend)){var A=o.unsuspend;o.unsuspend=null,A()}},(o.imgBytes>Kh?50:800)+s);return o.unsuspend=m,function(){o.unsuspend=null,clearTimeout(y),clearTimeout(T)}}:null}function gm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)hm(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var pm=null;function hm(o,s){o.stylesheets=null,o.unsuspend!==null&&(o.count++,pm=new Map,s.forEach(BT,o),pm=null,gm.call(o))}function BT(o,s){if(!(s.state.loading&4)){var m=pm.get(o);if(m)var y=m.get(null);else{m=new Map,pm.set(o,m);for(var T=o.querySelectorAll("link[data-precedence],style[data-precedence]"),A=0;A<T.length;A++){var J=T[A];(J.nodeName==="LINK"||J.getAttribute("media")!=="not all")&&(m.set(J.dataset.precedence,J),y=J)}y&&m.set(null,y)}T=s.instance,J=T.getAttribute("data-precedence"),A=m.get(J)||y,A===y&&m.set(null,T),m.set(J,T),this.count++,y=gm.bind(this),T.addEventListener("load",y),T.addEventListener("error",y),A?A.parentNode.insertBefore(T,A.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(T,o.firstChild)),s.state.loading|=4}}var Ku={$$typeof:E,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function kT(o,s,m,y,T,A,J,me,xe){this.tag=1,this.containerInfo=o,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=Et(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Et(0),this.hiddenUpdates=Et(null),this.identifierPrefix=y,this.onUncaughtError=T,this.onCaughtError=A,this.onRecoverableError=J,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=xe,this.incompleteTransitions=new Map}function t2(o,s,m,y,T,A,J,me,xe,ke,Ze,it){return o=new kT(o,s,m,J,xe,ke,Ze,it,me),s=1,A===!0&&(s|=24),A=Da(3,null,null,s),o.current=A,A.stateNode=o,s=wp(),s.refCount++,o.pooledCache=s,s.refCount++,A.memoizedState={element:y,isDehydrated:m,cache:s},jp(A),o}function n2(o){return o?(o=Ps,o):Ps}function r2(o,s,m,y,T,A){T=n2(T),y.context===null?y.context=T:y.pendingContext=T,y=Ni(s),y.payload={element:m},A=A===void 0?null:A,A!==null&&(y.callback=A),m=Mi(o,y,s),m!==null&&(Na(m,o,s),$u(m,o,s))}function a2(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var m=o.retryLane;o.retryLane=m!==0&&m<s?m:s}}function Uh(o,s){a2(o,s),(o=o.alternate)&&a2(o,s)}function o2(o){if(o.tag===13||o.tag===31){var s=Rl(o,67108864);s!==null&&Na(s,o,67108864),Uh(o,67108864)}}function i2(o){if(o.tag===13||o.tag===31){var s=La();s=Ue(s);var m=Rl(o,s);m!==null&&Na(m,o,s),Uh(o,s)}}var bm=!0;function LT(o,s,m,y){var T=z.T;z.T=null;var A=_.p;try{_.p=2,qh(o,s,m,y)}finally{_.p=A,z.T=T}}function HT(o,s,m,y){var T=z.T;z.T=null;var A=_.p;try{_.p=8,qh(o,s,m,y)}finally{_.p=A,z.T=T}}function qh(o,s,m,y){if(bm){var T=Gh(y);if(T===null)Ph(o,s,y,ym,m),s2(o,y);else if(VT(T,o,s,m,y))y.stopPropagation();else if(s2(o,y),s&4&&-1<FT.indexOf(o)){for(;T!==null;){var A=Ct(T);if(A!==null)switch(A.tag){case 3:if(A=A.stateNode,A.current.memoizedState.isDehydrated){var J=tt(A.pendingLanes);if(J!==0){var me=A;for(me.pendingLanes|=2,me.entangledLanes|=2;J;){var xe=1<<31-be(J);me.entanglements[1]|=xe,J&=~xe}Lo(A),(Un&6)===0&&(tm=Ce()+500,ku(0))}}break;case 31:case 13:me=Rl(A,2),me!==null&&Na(me,A,2),rm(),Uh(A,2)}if(A=Gh(y),A===null&&Ph(o,s,y,ym,m),A===T)break;T=A}T!==null&&y.stopPropagation()}else Ph(o,s,y,null,m)}}function Gh(o){return o=Zr(o),Xh(o)}var ym=null;function Xh(o){if(ym=null,o=st(o),o!==null){var s=l(o);if(s===null)o=null;else{var m=s.tag;if(m===13){if(o=c(s),o!==null)return o;o=null}else if(m===31){if(o=u(s),o!==null)return o;o=null}else if(m===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null)}}return ym=o,null}function l2(o){switch(o){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(De()){case Ae:return 2;case Ye:return 8;case Ke:case Fe:return 32;case Ge:return 268435456;default:return 32}default:return 32}}var Yh=!1,Fi=null,Vi=null,Wi=null,Uu=new Map,qu=new Map,Ki=[],FT="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 s2(o,s){switch(o){case"focusin":case"focusout":Fi=null;break;case"dragenter":case"dragleave":Vi=null;break;case"mouseover":case"mouseout":Wi=null;break;case"pointerover":case"pointerout":Uu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":qu.delete(s.pointerId)}}function Gu(o,s,m,y,T,A){return o===null||o.nativeEvent!==A?(o={blockedOn:s,domEventName:m,eventSystemFlags:y,nativeEvent:A,targetContainers:[T]},s!==null&&(s=Ct(s),s!==null&&o2(s)),o):(o.eventSystemFlags|=y,s=o.targetContainers,T!==null&&s.indexOf(T)===-1&&s.push(T),o)}function VT(o,s,m,y,T){switch(s){case"focusin":return Fi=Gu(Fi,o,s,m,y,T),!0;case"dragenter":return Vi=Gu(Vi,o,s,m,y,T),!0;case"mouseover":return Wi=Gu(Wi,o,s,m,y,T),!0;case"pointerover":var A=T.pointerId;return Uu.set(A,Gu(Uu.get(A)||null,o,s,m,y,T)),!0;case"gotpointercapture":return A=T.pointerId,qu.set(A,Gu(qu.get(A)||null,o,s,m,y,T)),!0}return!1}function c2(o){var s=st(o.target);if(s!==null){var m=l(s);if(m!==null){if(s=m.tag,s===13){if(s=c(m),s!==null){o.blockedOn=s,It(o.priority,function(){i2(m)});return}}else if(s===31){if(s=u(m),s!==null){o.blockedOn=s,It(o.priority,function(){i2(m)});return}}else if(s===3&&m.stateNode.current.memoizedState.isDehydrated){o.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Cm(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var m=Gh(o.nativeEvent);if(m===null){m=o.nativeEvent;var y=new m.constructor(m.type,m);Kr=y,m.target.dispatchEvent(y),Kr=null}else return s=Ct(m),s!==null&&o2(s),o.blockedOn=m,!1;s.shift()}return!0}function u2(o,s,m){Cm(o)&&m.delete(s)}function WT(){Yh=!1,Fi!==null&&Cm(Fi)&&(Fi=null),Vi!==null&&Cm(Vi)&&(Vi=null),Wi!==null&&Cm(Wi)&&(Wi=null),Uu.forEach(u2),qu.forEach(u2)}function Sm(o,s){o.blockedOn===s&&(o.blockedOn=null,Yh||(Yh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,WT)))}var xm=null;function d2(o){xm!==o&&(xm=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){xm===o&&(xm=null);for(var s=0;s<o.length;s+=3){var m=o[s],y=o[s+1],T=o[s+2];if(typeof y!="function"){if(Xh(y||m)===null)continue;break}var A=Ct(m);A!==null&&(o.splice(s,3),s-=3,Gp(A,{pending:!0,data:T,method:m.method,action:y},y,T))}}))}function rc(o){function s(xe){return Sm(xe,o)}Fi!==null&&Sm(Fi,o),Vi!==null&&Sm(Vi,o),Wi!==null&&Sm(Wi,o),Uu.forEach(s),qu.forEach(s);for(var m=0;m<Ki.length;m++){var y=Ki[m];y.blockedOn===o&&(y.blockedOn=null)}for(;0<Ki.length&&(m=Ki[0],m.blockedOn===null);)c2(m),m.blockedOn===null&&Ki.shift();if(m=(o.ownerDocument||o).$$reactFormReplay,m!=null)for(y=0;y<m.length;y+=3){var T=m[y],A=m[y+1],J=T[lt]||null;if(typeof A=="function")J||d2(m);else if(J){var me=null;if(A&&A.hasAttribute("formAction")){if(T=A,J=A[lt]||null)me=J.formAction;else if(Xh(T)!==null)continue}else me=J.action;typeof me=="function"?m[y+1]=me:(m.splice(y,3),y-=3),d2(m)}}}function f2(){function o(A){A.canIntercept&&A.info==="react-transition"&&A.intercept({handler:function(){return new Promise(function(J){return T=J})},focusReset:"manual",scroll:"manual"})}function s(){T!==null&&(T(),T=null),y||setTimeout(m,20)}function m(){if(!y&&!navigation.transition){var A=navigation.currentEntry;A&&A.url!=null&&navigation.navigate(A.url,{state:A.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var y=!1,T=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(m,100),function(){y=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),T!==null&&(T(),T=null)}}}function Qh(o){this._internalRoot=o}$m.prototype.render=Qh.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(r(409));var m=s.current,y=La();r2(m,y,o,s,null,null)},$m.prototype.unmount=Qh.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;r2(o.current,2,null,o,null,null),rm(),s[At]=null}};function $m(o){this._internalRoot=o}$m.prototype.unstable_scheduleHydration=function(o){if(o){var s=Mt();o={blockedOn:null,target:o,priority:s};for(var m=0;m<Ki.length&&s!==0&&s<Ki[m].priority;m++);Ki.splice(m,0,o),m===0&&c2(o)}};var m2=t.version;if(m2!=="19.2.7")throw Error(r(527,m2,"19.2.7"));_.findDOMNode=function(o){var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=f(s),o=o!==null?v(o):null,o=o===null?null:o.stateNode,o};var KT={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wm.isDisabled&&wm.supportsFiber)try{_e=wm.inject(KT),Re=wm}catch{}}return Yu.createRoot=function(o,s){if(!a(o))throw Error(r(299));var m=!1,y="",T=Cx,A=Sx,J=xx;return s!=null&&(s.unstable_strictMode===!0&&(m=!0),s.identifierPrefix!==void 0&&(y=s.identifierPrefix),s.onUncaughtError!==void 0&&(T=s.onUncaughtError),s.onCaughtError!==void 0&&(A=s.onCaughtError),s.onRecoverableError!==void 0&&(J=s.onRecoverableError)),s=t2(o,1,!1,null,null,m,y,null,T,A,J,f2),o[At]=s.current,Th(o),new Qh(s)},Yu.hydrateRoot=function(o,s,m){if(!a(o))throw Error(r(299));var y=!1,T="",A=Cx,J=Sx,me=xx,xe=null;return m!=null&&(m.unstable_strictMode===!0&&(y=!0),m.identifierPrefix!==void 0&&(T=m.identifierPrefix),m.onUncaughtError!==void 0&&(A=m.onUncaughtError),m.onCaughtError!==void 0&&(J=m.onCaughtError),m.onRecoverableError!==void 0&&(me=m.onRecoverableError),m.formState!==void 0&&(xe=m.formState)),s=t2(o,1,!0,s,m??null,y,T,xe,A,J,me,f2),s.context=n2(null),m=s.current,y=La(),y=Ue(y),T=Ni(y),T.callback=null,Mi(m,T,y),m=y,s.current.lanes=m,ct(s,m),Lo(s),o[At]=s.current,Th(o),new $m(s)},Yu.version="19.2.7",Yu}var $2;function eP(){if($2)return e0.exports;$2=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(),e0.exports=JT(),e0.exports}var tP=eP(),a0={exports:{}};/*!
|
|
50
|
+
Copyright (c) 2018 Jed Watson.
|
|
51
|
+
Licensed under the MIT License (MIT), see
|
|
52
|
+
http://jedwatson.github.io/classnames
|
|
53
|
+
*/var w2;function nP(){return w2||(w2=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var l="",c=0;c<arguments.length;c++){var u=arguments[c];u&&(l=a(l,r(u)))}return l}function r(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var c="";for(var u in l)t.call(l,u)&&l[u]&&(c=a(c,u));return c}function a(l,c){return c?l?l+" "+c:l+c:l}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(a0)),a0.exports}var rP=nP();const ue=Mo(rP);function ye(){return ye=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},ye.apply(null,arguments)}function $t(e){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$t(e)}var aP=Symbol.for("react.element"),oP=Symbol.for("react.transitional.element"),iP=Symbol.for("react.fragment");function l3(e){return e&&$t(e)==="object"&&(e.$$typeof===aP||e.$$typeof===oP)&&e.type===iP}function Xr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ve.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Xr(r)):l3(r)&&r.props?n=n.concat(Xr(r.props.children,t)):n.push(r))}),n}var $b={},lP=function(t){};function sP(e,t){}function cP(e,t){}function uP(){$b={}}function s3(e,t,n){!t&&!$b[n]&&(e(!1,n),$b[n]=!0)}function Xn(e,t){s3(sP,e,t)}function dP(e,t){s3(cP,e,t)}Xn.preMessage=lP;Xn.resetWarned=uP;Xn.noteOnce=dP;function fP(e,t){if($t(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($t(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function c3(e){var t=fP(e,"string");return $t(t)=="symbol"?t:t+""}function ee(e,t,n){return(t=c3(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E2(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 se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E2(Object(n),!0).forEach(function(r){ee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var fo=i3();const Rd=Mo(fo),mP=o3({__proto__:null,default:Rd},[fo]);function jd(e){return e instanceof HTMLElement||e instanceof SVGElement}function Qd(e){return e&&$t(e)==="object"&&jd(e.nativeElement)?e.nativeElement:jd(e)?e:null}function ev(e){var t=Qd(e);if(t)return t;if(e instanceof ve.Component){var n;return(n=Rd.findDOMNode)===null||n===void 0?void 0:n.call(Rd,e)}return null}var o0={exports:{}},qn={};/**
|
|
54
|
+
* @license React
|
|
55
|
+
* react-is.production.min.js
|
|
56
|
+
*
|
|
57
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the MIT license found in the
|
|
60
|
+
* LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/var O2;function vP(){if(O2)return qn;O2=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"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),C;C=Symbol.for("react.module.reference");function S(h){if(typeof h=="object"&&h!==null){var x=h.$$typeof;switch(x){case e:switch(h=h.type,h){case n:case a:case r:case f:case v:return h;default:switch(h=h&&h.$$typeof,h){case u:case c:case d:case p:case g:case l:return h;default:return x}}case t:return x}}}return qn.ContextConsumer=c,qn.ContextProvider=l,qn.Element=e,qn.ForwardRef=d,qn.Fragment=n,qn.Lazy=p,qn.Memo=g,qn.Portal=t,qn.Profiler=a,qn.StrictMode=r,qn.Suspense=f,qn.SuspenseList=v,qn.isAsyncMode=function(){return!1},qn.isConcurrentMode=function(){return!1},qn.isContextConsumer=function(h){return S(h)===c},qn.isContextProvider=function(h){return S(h)===l},qn.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},qn.isForwardRef=function(h){return S(h)===d},qn.isFragment=function(h){return S(h)===n},qn.isLazy=function(h){return S(h)===p},qn.isMemo=function(h){return S(h)===g},qn.isPortal=function(h){return S(h)===t},qn.isProfiler=function(h){return S(h)===a},qn.isStrictMode=function(h){return S(h)===r},qn.isSuspense=function(h){return S(h)===f},qn.isSuspenseList=function(h){return S(h)===v},qn.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===a||h===r||h===f||h===v||h===b||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===g||h.$$typeof===l||h.$$typeof===c||h.$$typeof===d||h.$$typeof===C||h.getModuleId!==void 0)},qn.typeOf=S,qn}var R2;function gP(){return R2||(R2=1,o0.exports=vP()),o0.exports}var i0=gP();function ps(e,t,n){var r=i.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var pP=Number(i.version.split(".")[0]),Id=function(t,n){typeof t=="function"?t(n):$t(t)==="object"&&t&&"current"in t&&(t.current=n)},Ir=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(l){n.forEach(function(c){Id(c,l)})}},Si=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ps(function(){return Ir.apply(void 0,n)},n,function(a,l){return a.length!==l.length||a.every(function(c,u){return c!==l[u]})})},Oo=function(t){var n,r;if(!t)return!1;if(r1(t)&&pP>=19)return!0;var a=i0.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==i0.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==i0.ForwardRef)};function r1(e){return i.isValidElement(e)&&!l3(e)}var hP=function(t){return r1(t)&&Oo(t)},pl=function(t){if(t&&r1(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},wb=i.createContext(null);function bP(e){var t=e.children,n=e.onBatchResize,r=i.useRef(0),a=i.useRef([]),l=i.useContext(wb),c=i.useCallback(function(u,d,f){r.current+=1;var v=r.current;a.current.push({size:u,element:d,data:f}),Promise.resolve().then(function(){v===r.current&&(n==null||n(a.current),a.current=[])}),l==null||l(u,d,f)},[n,l]);return i.createElement(wb.Provider,{value:c},t)}var u3=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,l){return a[0]===n?(r=l,!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,l=this.__entries__;a<l.length;a++){var c=l[a];n.call(r,c[1],c[0])}},t})()})(),Eb=typeof window<"u"&&typeof document<"u"&&window.document===document,xv=(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")()})(),yP=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(xv):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),CP=2;function SP(e,t){var n=!1,r=!1,a=0;function l(){n&&(n=!1,e()),r&&u()}function c(){yP(l)}function u(){var d=Date.now();if(n){if(d-a<CP)return;r=!0}else n=!0,r=!1,setTimeout(c,t);a=d}return u}var xP=20,$P=["top","right","bottom","left","width","height","size","weight"],wP=typeof MutationObserver<"u",EP=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=SP(this.refresh.bind(this),xP)}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(){!Eb||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),wP?(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(){!Eb||!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=$P.some(function(l){return!!~r.indexOf(l)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),d3=(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}),Ic=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||xv}),f3=Zv(0,0,0,0);function $v(e){return parseFloat(e)||0}function j2(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,a){var l=e["border-"+a+"-width"];return r+$v(l)},0)}function OP(e){for(var t=["top","right","bottom","left"],n={},r=0,a=t;r<a.length;r++){var l=a[r],c=e["padding-"+l];n[l]=$v(c)}return n}function RP(e){var t=e.getBBox();return Zv(0,0,t.width,t.height)}function jP(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f3;var r=Ic(e).getComputedStyle(e),a=OP(r),l=a.left+a.right,c=a.top+a.bottom,u=$v(r.width),d=$v(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+l)!==t&&(u-=j2(r,"left","right")+l),Math.round(d+c)!==n&&(d-=j2(r,"top","bottom")+c)),!NP(e)){var f=Math.round(u+l)-t,v=Math.round(d+c)-n;Math.abs(f)!==1&&(u-=f),Math.abs(v)!==1&&(d-=v)}return Zv(a.left,a.top,u,d)}var IP=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ic(e).SVGGraphicsElement}:function(e){return e instanceof Ic(e).SVGElement&&typeof e.getBBox=="function"}})();function NP(e){return e===Ic(e).document.documentElement}function MP(e){return Eb?IP(e)?RP(e):jP(e):f3}function TP(e){var t=e.x,n=e.y,r=e.width,a=e.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,c=Object.create(l.prototype);return d3(c,{x:t,y:n,width:r,height:a,top:n,right:t+r,bottom:a+n,left:t}),c}function Zv(e,t,n,r){return{x:e,y:t,width:n,height:r}}var PP=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Zv(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=MP(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})(),zP=(function(){function e(t,n){var r=TP(n);d3(this,{target:t,contentRect:r})}return e})(),DP=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new u3,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 Ic(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new PP(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 Ic(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 zP(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})(),m3=typeof WeakMap<"u"?new WeakMap:new u3,v3=(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=EP.getInstance(),r=new DP(t,n,this);m3.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){v3.prototype[e]=function(){var t;return(t=m3.get(this))[e].apply(t,arguments)}});var _P=(function(){return typeof xv.ResizeObserver<"u"?xv.ResizeObserver:v3})(),al=new Map;function AP(e){e.forEach(function(t){var n,r=t.target;(n=al.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var g3=new _P(AP);function BP(e,t){al.has(e)||(al.set(e,new Set),g3.observe(e)),al.get(e).add(t)}function kP(e,t){al.has(e)&&(al.get(e).delete(t),al.get(e).size||(g3.unobserve(e),al.delete(e)))}function ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I2(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,c3(r.key),r)}}function dr(e,t,n){return t&&I2(e.prototype,t),n&&I2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nd(e,t){return Nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Nd(e,t)}function Xa(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&&Nd(e,t)}function is(e){return is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},is(e)}function Jv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jv=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 p3(e,t){if(t&&($t(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xt(e)}function go(e){var t=Jv();return function(){var n,r=is(e);if(t){var a=is(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p3(this,n)}}var LP=(function(e){Xa(n,e);var t=go(n);function n(){return ur(this,n),t.apply(this,arguments)}return dr(n,[{key:"render",value:function(){return this.props.children}}]),n})(i.Component);function HP(e,t){var n=e.children,r=e.disabled,a=i.useRef(null),l=i.useRef(null),c=i.useContext(wb),u=typeof n=="function",d=u?n(a):n,f=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),v=!u&&i.isValidElement(d)&&Oo(d),g=v?pl(d):null,p=Si(g,a),b=function(){var x;return ev(a.current)||(a.current&&$t(a.current)==="object"?ev((x=a.current)===null||x===void 0?void 0:x.nativeElement):null)||ev(l.current)};i.useImperativeHandle(t,function(){return b()});var C=i.useRef(e);C.current=e;var S=i.useCallback(function(h){var x=C.current,w=x.onResize,E=x.data,j=h.getBoundingClientRect(),R=j.width,I=j.height,O=h.offsetWidth,M=h.offsetHeight,N=Math.floor(R),P=Math.floor(I);if(f.current.width!==N||f.current.height!==P||f.current.offsetWidth!==O||f.current.offsetHeight!==M){var B={width:N,height:P,offsetWidth:O,offsetHeight:M};f.current=B;var L=O===Math.round(R)?R:O,k=M===Math.round(I)?I:M,D=se(se({},B),{},{offsetWidth:L,offsetHeight:k});c==null||c(D,h,E),w&&Promise.resolve().then(function(){w(D,h)})}},[]);return i.useEffect(function(){var h=b();return h&&!r&&BP(h,S),function(){return kP(h,S)}},[a.current,r]),i.createElement(LP,{ref:l},v?i.cloneElement(d,{ref:p}):d)}var FP=i.forwardRef(HP),VP="rc-observer-key";function WP(e,t){var n=e.children,r=typeof n=="function"?[n]:Xr(n);return r.map(function(a,l){var c=(a==null?void 0:a.key)||"".concat(VP,"-").concat(l);return i.createElement(FP,ye({},e,{key:c,ref:l===0?t:void 0}),a)})}var ma=i.forwardRef(WP);ma.Collection=bP;function Ob(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 KP(e){if(Array.isArray(e))return Ob(e)}function h3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function a1(e,t){if(e){if(typeof e=="string")return Ob(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)?Ob(e,t):void 0}}function UP(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
62
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ne(e){return KP(e)||h3(e)||a1(e)||UP()}var b3=function(t){return+setTimeout(t,16)},y3=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(b3=function(t){return window.requestAnimationFrame(t)},y3=function(t){return window.cancelAnimationFrame(t)});var N2=0,o1=new Map;function C3(e){o1.delete(e)}var Yt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;N2+=1;var r=N2;function a(l){if(l===0)C3(r),t();else{var c=b3(function(){a(l-1)});o1.set(r,c)}}return a(n),r};Yt.cancel=function(e){var t=o1.get(e);return C3(e),y3(t)};function qP(e){let t=null;const n=a=>()=>{t=null,e.apply(void 0,Ne(a))},r=(...a)=>{t===null&&(t=Yt(n(a)))};return r.cancel=()=>{Yt.cancel(t),t=null},r}function S3(e){if(Array.isArray(e))return e}function GP(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,l,c,u=[],d=!0,f=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=l.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(v){f=!0,a=v}finally{try{if(!d&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(f)throw a}}return u}}function x3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
63
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fe(e,t){return S3(e)||GP(e,t)||a1(e,t)||x3()}function Md(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 aa(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Rb(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 M2="data-rc-order",T2="data-rc-priority",XP="rc-util-key",jb=new Map;function $3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):XP}function eg(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function YP(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function i1(e){return Array.from((jb.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function w3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!aa())return null;var n=t.csp,r=t.prepend,a=t.priority,l=a===void 0?0:a,c=YP(r),u=c==="prependQueue",d=document.createElement("style");d.setAttribute(M2,c),u&&l&&d.setAttribute(T2,"".concat(l)),n!=null&&n.nonce&&(d.nonce=n==null?void 0:n.nonce),d.innerHTML=e;var f=eg(t),v=f.firstChild;if(r){if(u){var g=(t.styles||i1(f)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(M2)))return!1;var b=Number(p.getAttribute(T2)||0);return l>=b});if(g.length)return f.insertBefore(d,g[g.length-1].nextSibling),d}f.insertBefore(d,v)}else f.appendChild(d);return d}function E3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=eg(t);return(t.styles||i1(n)).find(function(r){return r.getAttribute($3(t))===e})}function Td(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=E3(e,t);if(n){var r=eg(t);r.removeChild(n)}}function QP(e,t){var n=jb.get(e);if(!n||!Rb(document,n)){var r=w3("",t),a=r.parentNode;jb.set(e,a),e.removeChild(r)}}function hi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=eg(n),a=i1(r),l=se(se({},n),{},{styles:a});QP(r,l);var c=E3(t,l);if(c){var u,d;if((u=l.csp)!==null&&u!==void 0&&u.nonce&&c.nonce!==((d=l.csp)===null||d===void 0?void 0:d.nonce)){var f;c.nonce=(f=l.csp)===null||f===void 0?void 0:f.nonce}return c.innerHTML!==e&&(c.innerHTML=e),c}var v=w3(e,l);return v.setAttribute($3(l),t),v}function ZP(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 Lt(e,t){if(e==null)return{};var n,r,a=ZP(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Ro(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,d=r.has(l);if(Xn(!d,"Warning: There may be circular references"),d)return!1;if(l===c)return!0;if(n&&u>1)return!1;r.add(l);var f=u+1;if(Array.isArray(l)){if(!Array.isArray(c)||l.length!==c.length)return!1;for(var v=0;v<l.length;v++)if(!a(l[v],c[v],f))return!1;return!0}if(l&&c&&$t(l)==="object"&&$t(c)==="object"){var g=Object.keys(l);return g.length!==Object.keys(c).length?!1:g.every(function(p){return a(l[p],c[p],f)})}return!1}return a(e,t)}var JP="%";function Ib(e){return e.join(JP)}var e5=(function(){function e(t){ur(this,e),ee(this,"instanceId",void 0),ee(this,"cache",new Map),ee(this,"extracted",new Set),this.instanceId=t}return dr(e,[{key:"get",value:function(n){return this.opGet(Ib(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Ib(n),r)}},{key:"opUpdate",value:function(n,r){var a=this.cache.get(n),l=r(a);l===null?this.cache.delete(n):this.cache.set(n,l)}}]),e})(),Nc="data-token-hash",xo="data-css-hash",ol="__cssinjs_instance__";function t5(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(xo,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(a){a[ol]=a[ol]||e,a[ol]===e&&document.head.insertBefore(a,n)});var r={};Array.from(document.querySelectorAll("style[".concat(xo,"]"))).forEach(function(a){var l=a.getAttribute(xo);if(r[l]){if(a[ol]===e){var c;(c=a.parentNode)===null||c===void 0||c.removeChild(a)}}else r[l]=!0})}return new e5(e)}var Zd=i.createContext({hashPriority:"low",cache:t5(),defaultCache:!0});function n5(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 l1=(function(){function e(){ur(this,e),ee(this,"cache",void 0),ee(this,"keys",void 0),ee(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return dr(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,a,l=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 d;c=(d=c)===null||d===void 0||(d=d.map)===null||d===void 0?void 0:d.get(u)}}),(r=c)!==null&&r!==void 0&&r.value&&l&&(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 l=this.keys.reduce(function(f,v){var g=fe(f,2),p=g[1];return a.internalGet(v)[1]<p?[v,a.internalGet(v)[1]]:f},[this.keys[0],this.cacheCallTimes]),c=fe(l,1),u=c[0];this.delete(u)}this.keys.push(n)}var d=this.cache;n.forEach(function(f,v){if(v===n.length-1)d.set(f,{value:[r,a.cacheCallTimes++]});else{var g=d.get(f);g?g.map||(g.map=new Map):d.set(f,{map:new Map}),d=d.get(f).map}})}},{key:"deleteByPath",value:function(n,r){var a=n.get(r[0]);if(r.length===1){var l;return a.map?n.set(r[0],{map:a.map}):n.delete(r[0]),(l=a.value)===null||l===void 0?void 0:l[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!n5(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();ee(l1,"MAX_CACHE_SIZE",20);ee(l1,"MAX_CACHE_OFFSET",5);var P2=0,O3=(function(){function e(t){ur(this,e),ee(this,"derivatives",void 0),ee(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=P2,t.length===0&&(t.length>0,void 0),P2+=1}return dr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e})(),l0=new l1;function Nb(e){var t=Array.isArray(e)?e:[e];return l0.has(t)||l0.set(t,new O3(t)),l0.get(t)}var r5=new WeakMap,s0={};function a5(e,t){for(var n=r5,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(s0)||n.set(s0,e()),n.get(s0)}var z2=new WeakMap;function hd(e){var t=z2.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof O3?t+=r.id:r&&$t(r)==="object"?t+=hd(r):t+=r}),t=Md(t),z2.set(e,t)),t}function D2(e,t){return Md("".concat(t,"_").concat(hd(e)))}var Mb=aa();function oe(e){return typeof e=="number"?"".concat(e,"px"):e}function wv(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 l=se(se({},r),{},ee(ee({},Nc,t),xo,n)),c=Object.keys(l).map(function(u){var d=l[u];return d?"".concat(u,'="').concat(d,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(c,">").concat(e,"</style>")}var tv=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()},o5=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 l=fe(a,2),c=l[0],u=l[1];return"".concat(c,":").concat(u,";")}).join(""),"}"):""},R3=function(t,n,r){var a={},l={};return Object.entries(t).forEach(function(c){var u,d,f=fe(c,2),v=f[0],g=f[1];if(r!=null&&(u=r.preserve)!==null&&u!==void 0&&u[v])l[v]=g;else if((typeof g=="string"||typeof g=="number")&&!(r!=null&&(d=r.ignore)!==null&&d!==void 0&&d[v])){var p,b=tv(v,r==null?void 0:r.prefix);a[b]=typeof g=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[v])?"".concat(g,"px"):String(g),l[v]="var(".concat(b,")")}}),[l,o5(a,n,{scope:r==null?void 0:r.scope})]},_2=aa()?i.useLayoutEffect:i.useEffect,nn=function(t,n){var r=i.useRef(!0);_2(function(){return t(r.current)},n),_2(function(){return r.current=!1,function(){r.current=!0}},[])},ts=function(t,n){nn(function(r){if(!r)return t()},n)},i5=se({},Qv),A2=i5.useInsertionEffect,l5=function(t,n,r){i.useMemo(t,r),nn(function(){return n(!0)},r)},s5=A2?function(e,t,n){return A2(function(){return e(),t()},n)}:l5,c5=se({},Qv),u5=c5.useInsertionEffect,d5=function(t){var n=[],r=!1;function a(l){r||n.push(l)}return i.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(l){return l()})}},t),a},f5=function(){return function(t){t()}},m5=typeof u5<"u"?d5:f5;function s1(e,t,n,r,a){var l=i.useContext(Zd),c=l.cache,u=[e].concat(Ne(t)),d=Ib(u),f=m5([d]),v=function(C){c.opUpdate(d,function(S){var h=S||[void 0,void 0],x=fe(h,2),w=x[0],E=w===void 0?0:w,j=x[1],R=j,I=R||n(),O=[E,I];return C?C(O):O})};i.useMemo(function(){v()},[d]);var g=c.opGet(d),p=g[1];return s5(function(){a==null||a(p)},function(b){return v(function(C){var S=fe(C,2),h=S[0],x=S[1];return b&&h===0&&(a==null||a(p)),[h+1,x]}),function(){c.opUpdate(d,function(C){var S=C||[],h=fe(S,2),x=h[0],w=x===void 0?0:x,E=h[1],j=w-1;return j===0?(f(function(){(b||!c.opGet(d))&&(r==null||r(E,!1))}),null):[w-1,E]})}},[d]),p}var v5={},g5="css",ql=new Map;function p5(e){ql.set(e,(ql.get(e)||0)+1)}function h5(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Nc,'="').concat(e,'"]'));n.forEach(function(r){if(r[ol]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var b5=0;function y5(e,t){ql.set(e,(ql.get(e)||0)-1);var n=new Set;ql.forEach(function(r,a){r<=0&&n.add(a)}),ql.size-n.size>b5&&n.forEach(function(r){h5(r,t),ql.delete(r)})}var C5=function(t,n,r,a){var l=r.getDerivativeToken(t),c=se(se({},l),n);return a&&(c=a(c)),c},j3="token";function S5(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i.useContext(Zd),a=r.cache.instanceId,l=r.container,c=n.salt,u=c===void 0?"":c,d=n.override,f=d===void 0?v5:d,v=n.formatToken,g=n.getComputedToken,p=n.cssVar,b=a5(function(){return Object.assign.apply(Object,[{}].concat(Ne(t)))},t),C=hd(b),S=hd(f),h=p?hd(p):"",x=s1(j3,[u,e.id,C,S,h],function(){var w,E=g?g(b,f,e):C5(b,f,e,v),j=se({},E),R="";if(p){var I=R3(E,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),O=fe(I,2);E=O[0],R=O[1]}var M=D2(E,u);E._tokenKey=M,j._tokenKey=D2(j,u);var N=(w=p==null?void 0:p.key)!==null&&w!==void 0?w:M;E._themeKey=N,p5(N);var P="".concat(g5,"-").concat(Md(M));return E._hashId=P,[E,P,j,R,(p==null?void 0:p.key)||""]},function(w){y5(w[0]._themeKey,a)},function(w){var E=fe(w,4),j=E[0],R=E[3];if(p&&R){var I=hi(R,Md("css-variables-".concat(j._themeKey)),{mark:xo,prepend:"queue",attachTo:l,priority:-999});I[ol]=a,I.setAttribute(Nc,j._themeKey)}});return x}var x5=function(t,n,r){var a=fe(t,5),l=a[2],c=a[3],u=a[4],d=r||{},f=d.plain;if(!c)return null;var v=l._tokenKey,g=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},b=wv(c,u,v,p,f);return[g,v,b]},$5={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},I3="comm",N3="rule",M3="decl",w5="@import",E5="@namespace",O5="@keyframes",R5="@layer",j5=Math.abs,bd=String.fromCharCode;function T3(e){return e.trim()}function Tb(e,t,n){return e.replace(t,n)}function $c(e,t){return e.charCodeAt(t)|0}function Mc(e,t,n){return e.slice(t,n)}function Wo(e){return e.length}function I5(e){return e.length}function Em(e,t){return t.push(e),e}var tg=1,Tc=1,P3=0,mo=0,Fr=0,Kc="";function c1(e,t,n,r,a,l,c,u){return{value:e,root:t,parent:n,type:r,props:a,children:l,line:tg,column:Tc,length:c,return:"",siblings:u}}function N5(){return Fr}function M5(){return Fr=mo>0?$c(Kc,--mo):0,Tc--,Fr===10&&(Tc=1,tg--),Fr}function $o(){return Fr=mo<P3?$c(Kc,mo++):0,Tc++,Fr===10&&(Tc=1,tg++),Fr}function il(){return $c(Kc,mo)}function nv(){return mo}function ng(e,t){return Mc(Kc,e,t)}function Pd(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 T5(e){return tg=Tc=1,P3=Wo(Kc=e),mo=0,[]}function P5(e){return Kc="",e}function c0(e){return T3(ng(mo-1,Pb(e===91?e+2:e===40?e+1:e)))}function z5(e){for(;(Fr=il())&&Fr<33;)$o();return Pd(e)>2||Pd(Fr)>3?"":" "}function D5(e,t){for(;--t&&$o()&&!(Fr<48||Fr>102||Fr>57&&Fr<65||Fr>70&&Fr<97););return ng(e,nv()+(t<6&&il()==32&&$o()==32))}function Pb(e){for(;$o();)switch(Fr){case e:return mo;case 34:case 39:e!==34&&e!==39&&Pb(Fr);break;case 40:e===41&&Pb(e);break;case 92:$o();break}return mo}function _5(e,t){for(;$o()&&e+Fr!==57;)if(e+Fr===84&&il()===47)break;return"/*"+ng(t,mo-1)+"*"+bd(e===47?e:$o())}function A5(e){for(;!Pd(il());)$o();return ng(e,mo)}function B5(e){return P5(rv("",null,null,null,[""],e=T5(e),0,[0],e))}function rv(e,t,n,r,a,l,c,u,d){for(var f=0,v=0,g=c,p=0,b=0,C=0,S=1,h=1,x=1,w=0,E=0,j="",R=a,I=l,O=r,M=j;h;)switch(C=E,E=$o()){case 40:C!=108&&$c(M,g-1)==58?(w++,M+="("):M+=c0(E);break;case 41:w--,M+=")";break;case 34:case 39:case 91:M+=c0(E);break;case 9:case 10:case 13:case 32:if(w>0){M+=bd(E);break}M+=z5(C);break;case 92:M+=D5(nv()-1,7);continue;case 47:switch(il()){case 42:case 47:Em(k5(_5($o(),nv()),t,n,d),d),(Pd(C||1)==5||Pd(il()||1)==5)&&Wo(M)&&Mc(M,-1,void 0)!==" "&&(M+=" ");break;default:M+="/"}break;case 123*S:u[f++]=Wo(M)*x;case 125*S:case 59:case 0:if(w>0&&E){M+=bd(E);break}switch(E){case 0:case 125:h=0;case 59+v:x==-1&&(M=Tb(M,/\f/g,"")),b>0&&(Wo(M)-g||S===0)&&Em(b>32?k2(M+";",r,n,g-1,d):k2(Tb(M," ","")+";",r,n,g-2,d),d);break;case 59:M+=";";default:if(Em(O=B2(M,t,n,f,v,a,u,j,R=[],I=[],g,l),l),E===123)if(v===0)rv(M,t,O,O,R,l,g,u,I);else{switch(p){case 99:if($c(M,3)===110)break;case 108:if($c(M,2)===97)break;default:v=0;case 100:case 109:case 115:}v?rv(e,O,O,r&&Em(B2(e,O,O,0,0,a,u,j,a,R=[],g,I),I),a,I,g,u,r?R:I):rv(M,O,O,O,[""],I,0,u,I)}}f=v=b=0,S=x=1,j=M="",g=c;break;case 58:g=1+Wo(M),b=C;default:if(S<1){if(E==123)--S;else if(E==125&&S++==0&&M5()==125)continue}switch(M+=bd(E),E*S){case 38:x=v>0?1:(M+="\f",-1);break;case 44:if(w>0)break;u[f++]=(Wo(M)-1)*x,x=1;break;case 64:il()===45&&(M+=c0($o())),p=il(),v=g=Wo(j=M+=A5(nv())),E++;break;case 45:C===45&&Wo(M)==2&&(S=0)}}return l}function B2(e,t,n,r,a,l,c,u,d,f,v,g){for(var p=a-1,b=a===0?l:[""],C=I5(b),S=0,h=0,x=0;S<r;++S)for(var w=0,E=Mc(e,p+1,p=j5(h=c[S])),j=e;w<C;++w)(j=T3(h>0?b[w]+" "+E:Tb(E,/&\f/g,b[w])))&&(d[x++]=j);return c1(e,t,n,a===0?N3:u,d,f,v,g)}function k5(e,t,n,r){return c1(e,t,n,I3,bd(N5()),Mc(e,2,-2),0,r)}function k2(e,t,n,r,a){return c1(e,t,n,M3,Mc(e,0,r),Mc(e,r+1,-1),r,a)}function zb(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function L5(e,t,n,r){switch(e.type){case R5:if(e.children.length)break;case w5:case E5:case M3:return e.return=e.return||e.value;case I3:return"";case O5:return e.return=e.value+"{"+zb(e.children,r)+"}";case N3:if(!Wo(e.value=e.props.join(",")))return""}return Wo(n=zb(e.children,r))?e.return=e.value+"{"+n+"}":""}var L2="data-ant-cssinjs-cache-path",z3="_FILE_STYLE__",ns,D3=!0;function H5(){if(!ns&&(ns={},aa())){var e=document.createElement("div");e.className=L2,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 l=a.split(":"),c=fe(l,2),u=c[0],d=c[1];ns[u]=d});var n=document.querySelector("style[".concat(L2,"]"));if(n){var r;D3=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function F5(e){return H5(),!!ns[e]}function V5(e){var t=ns[e],n=null;if(t&&aa())if(D3)n=z3;else{var r=document.querySelector("style[".concat(xo,'="').concat(ns[e],'"]'));r?n=r.innerHTML:delete ns[e]}return[n,t]}var W5="_skip_check_",_3="_multi_value_";function av(e){var t=zb(B5(e),L5);return t.replace(/\{%%%\:[^;];}/g,";")}function K5(e){return $t(e)==="object"&&e&&(W5 in e||_3 in e)}function H2(e,t,n){if(!t)return e;var r=".".concat(t),a=n==="low"?":where(".concat(r,")"):r,l=e.split(",").map(function(c){var u,d=c.trim().split(/\s+/),f=d[0]||"",v=((u=f.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return f="".concat(v).concat(a).concat(f.slice(v.length)),[f].concat(Ne(d.slice(1))).join(" ")});return l.join(",")}var U5=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,l=r.injectHash,c=r.parentSelectors,u=n.hashId,d=n.layer;n.path;var f=n.hashPriority,v=n.transformers,g=v===void 0?[]:v;n.linters;var p="",b={};function C(x){var w=x.getName(u);if(!b[w]){var E=e(x.style,n,{root:!1,parentSelectors:c}),j=fe(E,1),R=j[0];b[w]="@keyframes ".concat(x.getName(u)).concat(R)}}function S(x){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(E){Array.isArray(E)?S(E,w):E&&w.push(E)}),w}var h=S(Array.isArray(t)?t:[t]);return h.forEach(function(x){var w=typeof x=="string"&&!a?{}:x;if(typeof w=="string")p+="".concat(w,`
|
|
64
|
+
`);else if(w._keyframe)C(w);else{var E=g.reduce(function(j,R){var I;return(R==null||(I=R.visit)===null||I===void 0?void 0:I.call(R,j))||j},w);Object.keys(E).forEach(function(j){var R=E[j];if($t(R)==="object"&&R&&(j!=="animationName"||!R._keyframe)&&!K5(R)){var I=!1,O=j.trim(),M=!1;(a||l)&&u?O.startsWith("@")?I=!0:O==="&"?O=H2("",u,f):O=H2(j,u,f):a&&!u&&(O==="&"||O==="")&&(O="",M=!0);var N=e(R,n,{root:M,injectHash:I,parentSelectors:[].concat(Ne(c),[O])}),P=fe(N,2),B=P[0],L=P[1];b=se(se({},b),L),p+="".concat(O).concat(B)}else{let H=function(z,_){var F=z.replace(/[A-Z]/g,function(q){return"-".concat(q.toLowerCase())}),W=_;!$5[z]&&typeof W=="number"&&W!==0&&(W="".concat(W,"px")),z==="animationName"&&_!==null&&_!==void 0&&_._keyframe&&(C(_),W=_.getName(u)),p+="".concat(F,":").concat(W,";")};var k,D=(k=R==null?void 0:R.value)!==null&&k!==void 0?k:R;$t(R)==="object"&&R!==null&&R!==void 0&&R[_3]&&Array.isArray(D)?D.forEach(function(z){H(j,z)}):H(j,D)}})}}),a?d&&(p&&(p="@layer ".concat(d.name," {").concat(p,"}")),d.dependencies&&(b["@layer ".concat(d.name)]=d.dependencies.map(function(x){return"@layer ".concat(x,", ").concat(d.name,";")}).join(`
|
|
65
|
+
`))):p="{".concat(p,"}"),[p,b]};function A3(e,t){return Md("".concat(e.join("%")).concat(t))}function q5(){return null}var B3="style";function Db(e,t){var n=e.token,r=e.path,a=e.hashId,l=e.layer,c=e.nonce,u=e.clientOnly,d=e.order,f=d===void 0?0:d,v=i.useContext(Zd),g=v.autoClear;v.mock;var p=v.defaultCache,b=v.hashPriority,C=v.container,S=v.ssrInline,h=v.transformers,x=v.linters,w=v.cache,E=v.layer,j=n._tokenKey,R=[j];E&&R.push("layer"),R.push.apply(R,Ne(r));var I=Mb,O=s1(B3,R,function(){var L=R.join("|");if(F5(L)){var k=V5(L),D=fe(k,2),H=D[0],z=D[1];if(H)return[H,j,z,{},u,f]}var _=t(),F=U5(_,{hashId:a,hashPriority:b,layer:E?l:void 0,path:r.join("-"),transformers:h,linters:x}),W=fe(F,2),q=W[0],V=W[1],G=av(q),K=A3(R,G);return[G,j,K,V,u,f]},function(L,k){var D=fe(L,3),H=D[2];(k||g)&&Mb&&Td(H,{mark:xo,attachTo:C})},function(L){var k=fe(L,4),D=k[0];k[1];var H=k[2],z=k[3];if(I&&D!==z3){var _={mark:xo,prepend:E?!1:"queue",attachTo:C,priority:f},F=typeof c=="function"?c():c;F&&(_.csp={nonce:F});var W=[],q=[];Object.keys(z).forEach(function(G){G.startsWith("@layer")?W.push(G):q.push(G)}),W.forEach(function(G){hi(av(z[G]),"_layer-".concat(G),se(se({},_),{},{prepend:!0}))});var V=hi(D,H,_);V[ol]=w.instanceId,V.setAttribute(Nc,j),q.forEach(function(G){hi(av(z[G]),"_effect-".concat(G),_)})}}),M=fe(O,3),N=M[0],P=M[1],B=M[2];return function(L){var k;return!S||I||!p?k=i.createElement(q5,null):k=i.createElement("style",ye({},ee(ee({},Nc,P),xo,B),{dangerouslySetInnerHTML:{__html:N}})),i.createElement(i.Fragment,null,k,L)}}var G5=function(t,n,r){var a=fe(t,6),l=a[0],c=a[1],u=a[2],d=a[3],f=a[4],v=a[5],g=r||{},p=g.plain;if(f)return null;var b=l,C={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)};return b=wv(l,c,u,C,p),d&&Object.keys(d).forEach(function(S){if(!n[S]){n[S]=!0;var h=av(d[S]),x=wv(h,c,"_effect-".concat(S),C,p);S.startsWith("@layer")?b=x+b:b+=x}}),[v,u,b]},k3="cssVar",X5=function(t,n){var r=t.key,a=t.prefix,l=t.unitless,c=t.ignore,u=t.token,d=t.scope,f=d===void 0?"":d,v=i.useContext(Zd),g=v.cache.instanceId,p=v.container,b=u._tokenKey,C=[].concat(Ne(t.path),[r,f,b]),S=s1(k3,C,function(){var h=n(),x=R3(h,r,{prefix:a,unitless:l,ignore:c,scope:f}),w=fe(x,2),E=w[0],j=w[1],R=A3(C,j);return[E,j,R,r]},function(h){var x=fe(h,3),w=x[2];Mb&&Td(w,{mark:xo,attachTo:p})},function(h){var x=fe(h,3),w=x[1],E=x[2];if(w){var j=hi(w,E,{mark:xo,prepend:"queue",attachTo:p,priority:-999});j[ol]=g,j.setAttribute(Nc,r)}});return S},Y5=function(t,n,r){var a=fe(t,4),l=a[1],c=a[2],u=a[3],d=r||{},f=d.plain;if(!l)return null;var v=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)},p=wv(l,u,c,g,f);return[v,c,p]};ee(ee(ee({},B3,G5),j3,x5),k3,Y5);var Jt=(function(){function e(t,n){ur(this,e),ee(this,"name",void 0),ee(this,"style",void 0),ee(this,"_keyframe",!0),this.name=t,this.style=n}return dr(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 ac(e){return e.notSplit=!0,e}ac(["borderTop","borderBottom"]),ac(["borderTop"]),ac(["borderBottom"]),ac(["borderLeft","borderRight"]),ac(["borderLeft"]),ac(["borderRight"]);var u1=i.createContext({});function L3(e){return S3(e)||h3(e)||a1(e)||x3()}function $a(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function H3(e,t,n,r){if(!t.length)return n;var a=L3(t),l=a[0],c=a.slice(1),u;return!e&&typeof l=="number"?u=[]:Array.isArray(e)?u=Ne(e):u=se({},e),r&&n===void 0&&c.length===1?delete u[l][c[0]]:u[l]=H3(u[l],c,n,r),u}function co(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!$a(e,t.slice(0,-1))?e:H3(e,t,n,r)}function Q5(e){return $t(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function F2(e){return Array.isArray(e)?[]:{}}var Z5=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function bc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=F2(t[0]);return t.forEach(function(a){function l(c,u){var d=new Set(u),f=$a(a,c),v=Array.isArray(f);if(v||Q5(f)){if(!d.has(f)){d.add(f);var g=$a(r,c);v?r=co(r,c,[]):(!g||$t(g)!=="object")&&(r=co(r,c,F2(f))),Z5(f).forEach(function(p){l([].concat(Ne(c),[p]),d)})}}else r=co(r,c,f)}l([])}),r}function J5(){}const ez=i.createContext({}),Qo=()=>{const e=()=>{};return e.deprecated=J5,e},F3=i.createContext(void 0);var V3={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"},tz={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},nz=se(se({},tz),{},{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 W3={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ev={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"]},nz),timePickerLocale:Object.assign({},W3)},Ha="${label} is not a valid ${type}",vo={locale:"en",Pagination:V3,DatePicker:Ev,TimePicker:W3,Calendar:Ev,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:Ha,method:Ha,array:Ha,object:Ha,number:Ha,date:Ha,boolean:Ha,integer:Ha,float:Ha,regexp:Ha,email:Ha,url:Ha,hex:Ha},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"}};let ov=Object.assign({},vo.Modal),iv=[];const V2=()=>iv.reduce((e,t)=>Object.assign(Object.assign({},e),t),vo.Modal);function rz(e){if(e){const t=Object.assign({},e);return iv.push(t),ov=V2(),()=>{iv=iv.filter(n=>n!==t),ov=V2()}}ov=Object.assign({},vo.Modal)}function K3(){return ov}const d1=i.createContext(void 0),Pa=(e,t)=>{const n=i.useContext(d1),r=i.useMemo(()=>{var l;const c=t||vo[e],u=(l=n==null?void 0:n[e])!==null&&l!==void 0?l:{};return Object.assign(Object.assign({},typeof c=="function"?c():c),u||{})},[e,t,n]),a=i.useMemo(()=>{const l=n==null?void 0:n.locale;return n!=null&&n.exist&&!l?vo.locale:l},[n]);return[r,a]},az="internalMark",oz=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;i.useEffect(()=>rz(t==null?void 0:t.Modal),[t]);const a=i.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return i.createElement(d1.Provider,{value:a},n)},U3={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"},zd=Object.assign(Object.assign({},U3),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
66
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
67
|
+
'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}),ea=Math.round;function u0(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 W2=(e,t,n)=>n===0?e:e/100;function Qu(e,t){const n=t||255;return e>n?n:e<0?0:e}class pn{constructor(t){ee(this,"isValid",!0),ee(this,"r",0),ee(this,"g",0),ee(this,"b",0),ee(this,"a",1),ee(this,"_h",void 0),ee(this,"_s",void 0),ee(this,"_l",void 0),ee(this,"_v",void 0),ee(this,"_max",void 0),ee(this,"_min",void 0),ee(this,"_brightness",void 0);function n(a){return a[0]in t&&a[1]in t&&a[2]in t}if(t)if(typeof t=="string"){let l=function(c){return a.startsWith(c)};var r=l;const a=t.trim();/^#?[A-F\d]{3,8}$/i.test(a)?this.fromHexString(a):l("rgb")?this.fromRgbString(a):l("hsl")?this.fromHslString(a):(l("hsv")||l("hsb"))&&this.fromHsvString(a)}else if(t instanceof pn)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=Qu(t.r),this.g=Qu(t.g),this.b=Qu(t.b),this.a=typeof t.a=="number"?Qu(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(l){const c=l/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=ea(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,l=u=>(r[u]-this[u])*a+this[u],c={r:ea(l("r")),g:ea(l("g")),b:ea(l("b")),a:ea(l("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=l=>ea((this[l]*this.a+n[l]*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 l=ea(this.a*255).toString(16);t+=l.length===2?l:"0"+l}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=ea(this.getSaturation()*100),r=ea(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]=Qu(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,l){return parseInt(n[a]+n[l||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 p=ea(r*255);this.r=p,this.g=p,this.b=p}let l=0,c=0,u=0;const d=t/60,f=(1-Math.abs(2*r-1))*n,v=f*(1-Math.abs(d%2-1));d>=0&&d<1?(l=f,c=v):d>=1&&d<2?(l=v,c=f):d>=2&&d<3?(c=f,u=v):d>=3&&d<4?(c=v,u=f):d>=4&&d<5?(l=v,u=f):d>=5&&d<6&&(l=f,u=v);const g=r-f/2;this.r=ea((l+g)*255),this.g=ea((c+g)*255),this.b=ea((u+g)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const l=ea(r*255);if(this.r=l,this.g=l,this.b=l,n<=0)return;const c=t/60,u=Math.floor(c),d=c-u,f=ea(r*(1-n)*255),v=ea(r*(1-n*d)*255),g=ea(r*(1-n*(1-d))*255);switch(u){case 0:this.g=g,this.b=f;break;case 1:this.r=v,this.b=f;break;case 2:this.r=f,this.b=g;break;case 3:this.r=f,this.g=v;break;case 4:this.r=g,this.g=f;break;case 5:default:this.g=f,this.b=v;break}}fromHsvString(t){const n=u0(t,W2);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=u0(t,W2);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=u0(t,(r,a)=>a.includes("%")?ea(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Om=2,K2=.16,iz=.05,lz=.05,sz=.15,q3=5,G3=4,cz=[{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 U2(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Om*t:Math.round(e.h)+Om*t:r=n?Math.round(e.h)+Om*t:Math.round(e.h)-Om*t,r<0?r+=360:r>=360&&(r-=360),r}function q2(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-K2*t:t===G3?r=e.s+K2:r=e.s+iz*t,r>1&&(r=1),n&&t===q3&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function G2(e,t,n){var r;return n?r=e.v+lz*t:r=e.v-sz*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Dd(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new pn(e),a=r.toHsv(),l=q3;l>0;l-=1){var c=new pn({h:U2(a,l,!0),s:q2(a,l,!0),v:G2(a,l,!0)});n.push(c)}n.push(r);for(var u=1;u<=G3;u+=1){var d=new pn({h:U2(a,u),s:q2(a,u),v:G2(a,u)});n.push(d)}return t.theme==="dark"?cz.map(function(f){var v=f.index,g=f.amount;return new pn(t.backgroundColor||"#141414").mix(n[v],g).toHexString()}):n.map(function(f){return f.toHexString()})}var wc={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"},_b=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];_b.primary=_b[5];var Ab=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Ab.primary=Ab[5];var Bb=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Bb.primary=Bb[5];var Ov=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Ov.primary=Ov[5];var kb=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];kb.primary=kb[5];var Lb=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Lb.primary=Lb[5];var Hb=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Hb.primary=Hb[5];var Fb=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Fb.primary=Fb[5];var Pc=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Pc.primary=Pc[5];var Vb=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Vb.primary=Vb[5];var Wb=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Wb.primary=Wb[5];var Kb=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Kb.primary=Kb[5];var Ub=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Ub.primary=Ub[5];var d0={red:_b,volcano:Ab,orange:Bb,gold:Ov,yellow:kb,lime:Lb,green:Hb,cyan:Fb,blue:Pc,geekblue:Vb,purple:Wb,magenta:Kb,grey:Ub};function uz(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:l,colorInfo:c,colorPrimary:u,colorBgBase:d,colorTextBase:f}=e,v=t(u),g=t(r),p=t(a),b=t(l),C=t(c),S=n(d,f),h=e.colorLink||e.colorInfo,x=t(h),w=new pn(b[1]).mix(new pn(b[3]),50).toHexString();return Object.assign(Object.assign({},S),{colorPrimaryBg:v[1],colorPrimaryBgHover:v[2],colorPrimaryBorder:v[3],colorPrimaryBorderHover:v[4],colorPrimaryHover:v[5],colorPrimary:v[6],colorPrimaryActive:v[7],colorPrimaryTextHover:v[8],colorPrimaryText:v[9],colorPrimaryTextActive:v[10],colorSuccessBg:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBgFilledHover:w,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:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:C[1],colorInfoBgHover:C[2],colorInfoBorder:C[3],colorInfoBorderHover:C[4],colorInfoHover:C[4],colorInfo:C[6],colorInfoActive:C[7],colorInfoTextHover:C[8],colorInfoText:C[9],colorInfoTextActive:C[10],colorLinkHover:x[4],colorLink:x[6],colorLinkActive:x[7],colorBgMask:new pn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const dz=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 fz(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},dz(r))}const mz=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function lv(e){return(e+8)/e}function vz(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,l=e*Math.pow(Math.E,a/5),c=r>1?Math.floor(l):Math.ceil(l);return Math.floor(c/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:lv(n)}))}const gz=e=>{const t=vz(e),n=t.map(v=>v.size),r=t.map(v=>v.lineHeight),a=n[1],l=n[0],c=n[2],u=r[1],d=r[0],f=r[2];return{fontSizeSM:l,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:f,lineHeightSM:d,fontHeight:Math.round(u*a),fontHeightLG:Math.round(f*c),fontHeightSM:Math.round(d*l),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function pz(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 oo=(e,t)=>new pn(e).setA(t).toRgbString(),Zu=(e,t)=>new pn(e).darken(t).toHexString(),hz=e=>{const t=Dd(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]}},bz=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:oo(r,.88),colorTextSecondary:oo(r,.65),colorTextTertiary:oo(r,.45),colorTextQuaternary:oo(r,.25),colorFill:oo(r,.15),colorFillSecondary:oo(r,.06),colorFillTertiary:oo(r,.04),colorFillQuaternary:oo(r,.02),colorBgSolid:oo(r,1),colorBgSolidHover:oo(r,.75),colorBgSolidActive:oo(r,.95),colorBgLayout:Zu(n,4),colorBgContainer:Zu(n,0),colorBgElevated:Zu(n,0),colorBgSpotlight:oo(r,.85),colorBgBlur:"transparent",colorBorder:Zu(n,15),colorBorderSecondary:Zu(n,6)}};function yz(e){wc.pink=wc.magenta,d0.pink=d0.magenta;const t=Object.keys(U3).map(n=>{const r=e[n]===wc[n]?d0[n]:Dd(e[n]);return Array.from({length:10},()=>1).reduce((a,l,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),uz(e,{generateColorPalettes:hz,generateNeutralColorPalettes:bz})),gz(e.fontSize)),pz(e)),mz(e)),fz(e))}const X3=Nb(yz),qb={token:zd,override:{override:zd},hashed:!0},Y3=ve.createContext(qb),_d="ant",rg="anticon",Cz=["outlined","borderless","filled","underlined"],Sz=(e,t)=>t||(e?`${_d}-${e}`:_d),Rt=i.createContext({getPrefixCls:Sz,iconPrefixCls:rg}),{Consumer:Mle}=Rt,X2={};function fr(e){const t=i.useContext(Rt),{getPrefixCls:n,direction:r,getPopupContainer:a}=t,l=t[e];return Object.assign(Object.assign({classNames:X2,styles:X2},l),{getPrefixCls:n,direction:r,getPopupContainer:a})}const xz=`-ant-${Date.now()}-${Math.random()}`;function $z(e,t){const n={},r=(c,u)=>{let d=c.clone();return d=(u==null?void 0:u(d))||d,d.toRgbString()},a=(c,u)=>{const d=new pn(c),f=Dd(d.toRgbString());n[`${u}-color`]=r(d),n[`${u}-color-disabled`]=f[1],n[`${u}-color-hover`]=f[4],n[`${u}-color-active`]=f[6],n[`${u}-color-outline`]=d.clone().setA(.2).toRgbString(),n[`${u}-color-deprecated-bg`]=f[0],n[`${u}-color-deprecated-border`]=f[2]};if(t.primaryColor){a(t.primaryColor,"primary");const c=new pn(t.primaryColor),u=Dd(c.toRgbString());u.forEach((f,v)=>{n[`primary-${v+1}`]=f}),n["primary-color-deprecated-l-35"]=r(c,f=>f.lighten(35)),n["primary-color-deprecated-l-20"]=r(c,f=>f.lighten(20)),n["primary-color-deprecated-t-20"]=r(c,f=>f.tint(20)),n["primary-color-deprecated-t-50"]=r(c,f=>f.tint(50)),n["primary-color-deprecated-f-12"]=r(c,f=>f.setA(f.a*.12));const d=new pn(u[0]);n["primary-color-active-deprecated-f-30"]=r(d,f=>f.setA(f.a*.3)),n["primary-color-active-deprecated-d-02"]=r(d,f=>f.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"),`
|
|
68
|
+
:root {
|
|
69
|
+
${Object.keys(n).map(c=>`--${e}-${c}: ${n[c]};`).join(`
|
|
70
|
+
`)}
|
|
71
|
+
}
|
|
72
|
+
`.trim()}function wz(e,t){const n=$z(e,t);aa()&&hi(n,`${xz}-dynamic-theme`)}const Vr=i.createContext(!1),f1=({children:e,disabled:t})=>{const n=i.useContext(Vr);return i.createElement(Vr.Provider,{value:t??n},e)},ls=i.createContext(void 0),Ez=({children:e,size:t})=>{const n=i.useContext(ls);return i.createElement(ls.Provider,{value:t||n},e)};function Oz(){const e=i.useContext(Vr),t=i.useContext(ls);return{componentDisabled:e,componentSize:t}}var Q3=dr(function e(){ur(this,e)}),Z3="CALC_UNIT",Rz=new RegExp(Z3,"g");function f0(e){return typeof e=="number"?"".concat(e).concat(Z3):e}var jz=(function(e){Xa(n,e);var t=go(n);function n(r,a){var l;ur(this,n),l=t.call(this),ee(xt(l),"result",""),ee(xt(l),"unitlessCssVar",void 0),ee(xt(l),"lowPriority",void 0);var c=$t(r);return l.unitlessCssVar=a,r instanceof n?l.result="(".concat(r.result,")"):c==="number"?l.result=f0(r):c==="string"&&(l.result=r),l}return dr(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(f0(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(f0(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 l=this,c=a||{},u=c.unit,d=!0;return typeof u=="boolean"?d=u:Array.from(this.unitlessCssVar).some(function(f){return l.result.includes(f)})&&(d=!1),this.result=this.result.replace(Rz,d?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(Q3),Iz=(function(e){Xa(n,e);var t=go(n);function n(r){var a;return ur(this,n),a=t.call(this),ee(xt(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return dr(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})(Q3),Nz=function(t,n){var r=t==="css"?jz:Iz;return function(a){return new r(a,n)}},Y2=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 Xt(e){var t=i.useRef();t.current=e;var n=i.useCallback(function(){for(var r,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(l))},[]);return n}function ss(e){var t=i.useRef(!1),n=i.useState(e),r=fe(n,2),a=r[0],l=r[1];i.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function c(u,d){d&&t.current||l(u)}return[a,c]}function m0(e){return e!==void 0}function bn(e,t){var n=t||{},r=n.defaultValue,a=n.value,l=n.onChange,c=n.postState,u=ss(function(){return m0(a)?a:m0(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),d=fe(u,2),f=d[0],v=d[1],g=a!==void 0?a:f,p=c?c(g):g,b=Xt(l),C=ss([g]),S=fe(C,2),h=S[0],x=S[1];ts(function(){var E=h[0];f!==E&&b(f,E)},[h]),ts(function(){m0(a)||v(a)},[a]);var w=Xt(function(E,j){v(E,j),x([g],j)});return[p,w]}function Q2(e,t,n,r){var a=se({},t[e]);if(r!=null&&r.deprecatedTokens){var l=r.deprecatedTokens;l.forEach(function(u){var d=fe(u,2),f=d[0],v=d[1];if(a!=null&&a[f]||a!=null&&a[v]){var g;(g=a[v])!==null&&g!==void 0||(a[v]=a==null?void 0:a[f])}})}var c=se(se({},n),a);return Object.keys(c).forEach(function(u){c[u]===t[u]&&delete c[u]}),c}var J3=typeof CSSINJS_STATISTIC<"u",Gb=!0;function tn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!J3)return Object.assign.apply(Object,[{}].concat(t));Gb=!1;var r={};return t.forEach(function(a){if($t(a)==="object"){var l=Object.keys(a);l.forEach(function(c){Object.defineProperty(r,c,{configurable:!0,enumerable:!0,get:function(){return a[c]}})})}}),Gb=!0,r}var Z2={};function Mz(){}var Tz=function(t){var n,r=t,a=Mz;return J3&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(c,u){if(Gb){var d;(d=n)===null||d===void 0||d.add(u)}return c[u]}}),a=function(c,u){var d;Z2[c]={global:Array.from(n),component:se(se({},(d=Z2[c])===null||d===void 0?void 0:d.component),u)}}),{token:r,keys:n,flush:a}};function J2(e,t,n){if(typeof n=="function"){var r;return n(tn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function Pz(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(l){return oe(l)}).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(l){return oe(l)}).join(","),")")}}}var zz=1e3*60*10,Dz=(function(){function e(){ur(this,e),ee(this,"map",new Map),ee(this,"objectIDMap",new WeakMap),ee(this,"nextID",0),ee(this,"lastAccessBeat",new Map),ee(this,"accessBeat",0)}return dr(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(l){return l&&$t(l)==="object"?"obj_".concat(r.getObjectID(l)):"".concat($t(l),"_").concat(l)});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,l){r-a>zz&&(n.map.delete(l),n.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e})(),ew=new Dz;function _z(e,t){return ve.useMemo(function(){var n=ew.get(t);if(n)return n;var r=e();return ew.set(t,r),r},t)}var Az=function(){return{}};function Bz(e){var t=e.useCSP,n=t===void 0?Az:t,r=e.useToken,a=e.usePrefix,l=e.getResetStyles,c=e.getCommonStyle,u=e.getCompUnitless;function d(p,b,C,S){var h=Array.isArray(p)?p[0]:p;function x(M){return"".concat(String(h)).concat(M.slice(0,1).toUpperCase()).concat(M.slice(1))}var w=(S==null?void 0:S.unitless)||{},E=typeof u=="function"?u(p):{},j=se(se({},E),{},ee({},x("zIndexPopup"),!0));Object.keys(w).forEach(function(M){j[x(M)]=w[M]});var R=se(se({},S),{},{unitless:j,prefixToken:x}),I=v(p,b,C,R),O=f(h,C,R);return function(M){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,P=I(M,N),B=fe(P,2),L=B[1],k=O(N),D=fe(k,2),H=D[0],z=D[1];return[H,L,z]}}function f(p,b,C){var S=C.unitless,h=C.injectStyle,x=h===void 0?!0:h,w=C.prefixToken,E=C.ignore,j=function(O){var M=O.rootCls,N=O.cssVar,P=N===void 0?{}:N,B=r(),L=B.realToken;return X5({path:[p],prefix:P.prefix,key:P.key,unitless:S,ignore:E,token:L,scope:M},function(){var k=J2(p,L,b),D=Q2(p,L,k,{deprecatedTokens:C==null?void 0:C.deprecatedTokens});return Object.keys(k).forEach(function(H){D[w(H)]=D[H],delete D[H]}),D}),null},R=function(O){var M=r(),N=M.cssVar;return[function(P){return x&&N?ve.createElement(ve.Fragment,null,ve.createElement(j,{rootCls:O,cssVar:N,component:p}),P):P},N==null?void 0:N.key]};return R}function v(p,b,C){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=Array.isArray(p)?p:[p,p],x=fe(h,1),w=x[0],E=h.join("-"),j=e.layer||{name:"antd"};return function(R){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,O=r(),M=O.theme,N=O.realToken,P=O.hashId,B=O.token,L=O.cssVar,k=a(),D=k.rootPrefixCls,H=k.iconPrefixCls,z=n(),_=L?"css":"js",F=_z(function(){var U=new Set;return L&&Object.keys(S.unitless||{}).forEach(function(Z){U.add(tv(Z,L.prefix)),U.add(tv(Z,Y2(w,L.prefix)))}),Nz(_,U)},[_,w,L==null?void 0:L.prefix]),W=Pz(_),q=W.max,V=W.min,G={theme:M,token:B,hashId:P,nonce:function(){return z.nonce},clientOnly:S.clientOnly,layer:j,order:S.order||-999};typeof l=="function"&&Db(se(se({},G),{},{clientOnly:!1,path:["Shared",D]}),function(){return l(B,{prefix:{rootPrefixCls:D,iconPrefixCls:H},csp:z})});var K=Db(se(se({},G),{},{path:[E,R,H]}),function(){if(S.injectStyle===!1)return[];var U=Tz(B),Z=U.token,Q=U.flush,te=J2(w,N,C),X=".".concat(R),ae=Q2(w,N,te,{deprecatedTokens:S.deprecatedTokens});L&&te&&$t(te)==="object"&&Object.keys(te).forEach(function(ie){te[ie]="var(".concat(tv(ie,Y2(w,L.prefix)),")")});var re=tn(Z,{componentCls:X,prefixCls:R,iconCls:".".concat(H),antCls:".".concat(D),calc:F,max:q,min:V},L?te:ae),ne=b(re,{hashId:P,prefixCls:R,rootPrefixCls:D,iconPrefixCls:H});Q(w,ae);var Y=typeof c=="function"?c(re,R,I,S.resetFont):null;return[S.resetStyle===!1?null:Y,ne]});return[K,P]}}function g(p,b,C){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=v(p,b,C,se({resetStyle:!1,order:-998},S)),x=function(E){var j=E.prefixCls,R=E.rootCls,I=R===void 0?j:R;return h(j,I),null};return x}return{genStyleHooks:d,genSubStyleComponent:g,genComponentStyleHook:v}}const ul=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],kz="5.29.3";function v0(e){return e>=0&&e<=255}function cd(e,t){const{r:n,g:r,b:a,a:l}=new pn(e).toRgb();if(l<1)return e;const{r:c,g:u,b:d}=new pn(t).toRgb();for(let f=.01;f<=1;f+=.01){const v=Math.round((n-c*(1-f))/f),g=Math.round((r-u*(1-f))/f),p=Math.round((a-d*(1-f))/f);if(v0(v)&&v0(g)&&v0(p))return new pn({r:v,g,b:p,a:Math.round(f*100)/100}).toRgbString()}return new pn({r:n,g:r,b:a,a:1}).toRgbString()}var Lz=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 eR(e){const{override:t}=e,n=Lz(e,["override"]),r=Object.assign({},t);Object.keys(zd).forEach(p=>{delete r[p]});const a=Object.assign(Object.assign({},n),r),l=480,c=576,u=768,d=992,f=1200,v=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:cd(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:cd(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:cd(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:cd(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:`
|
|
73
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
74
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
75
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
76
|
+
`,boxShadowSecondary:`
|
|
77
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
78
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
79
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
80
|
+
`,boxShadowTertiary:`
|
|
81
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
82
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
83
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
84
|
+
`,screenXS:l,screenXSMin:l,screenXSMax:c-1,screenSM:c,screenSMMin:c,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:d-1,screenLG:d,screenLGMin:d,screenLGMax:f-1,screenXL:f,screenXLMin:f,screenXLMax:v-1,screenXXL:v,screenXXLMin:v,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
85
|
+
0 1px 2px -2px ${new pn("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
86
|
+
0 3px 6px 0 ${new pn("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
87
|
+
0 5px 12px 4px ${new pn("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
88
|
+
`,boxShadowDrawerRight:`
|
|
89
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
90
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
91
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
92
|
+
`,boxShadowDrawerLeft:`
|
|
93
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
94
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
95
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
96
|
+
`,boxShadowDrawerUp:`
|
|
97
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
98
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
99
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
100
|
+
`,boxShadowDrawerDown:`
|
|
101
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
102
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
103
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
104
|
+
`,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 tw=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 tR={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},Hz={motionBase:!0,motionUnit:!0},Fz={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},nR=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a}=t,l=tw(t,["override"]);let c=Object.assign(Object.assign({},r),{override:a});return c=eR(c),l&&Object.entries(l).forEach(([u,d])=>{const{theme:f}=d,v=tw(d,["theme"]);let g=v;f&&(g=nR(Object.assign(Object.assign({},c),v),{override:v},f)),c[u]=g}),c};function ia(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=ve.useContext(Y3),l=`${kz}-${t||""}`,c=n||X3,[u,d,f]=S5(c,[zd,e],{salt:l,override:r,getComputedToken:nR,formatToken:eR,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:tR,ignore:Hz,preserve:Fz}});return[c,f,t?d:"",u,a]}const Ua={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},dn=(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}),hs=()=>({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"}}),Ko=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Vz=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"}}}),Wz=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,l=n?`.${n}`:a,c={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return r!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:Object.assign(Object.assign(Object.assign({},u),c),{[a]:c})}},jo=(e,t)=>({outline:`${oe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),qa=(e,t)=>({"&:focus-visible":jo(e,t)}),rR=e=>({[`.${e}`]:Object.assign(Object.assign({},hs()),{[`.${e} .${e}-icon`]:{display:"block"}})}),m1=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"},qa(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:sn,genComponentStyleHook:aR,genSubStyleComponent:Uc}=Bz({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=i.useContext(Rt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=ia();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=i.useContext(Rt);return e??{}},getResetStyles:(e,t)=>{var n;const r=Vz(e);return[r,{"&":r},rR((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:rg)]},getCommonStyle:Wz,getCompUnitless:()=>tR});function ag(e,t){return ul.reduce((n,r)=>{const a=e[`${r}1`],l=e[`${r}3`],c=e[`${r}6`],u=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:l,darkColor:c,textColor:u}))},{})}const Kz=(e,t)=>{const[n,r]=ia();return Db({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>rR(e))},Uz=Object.assign({},Qv),{useId:nw}=Uz,qz=()=>"",Gz=typeof nw>"u"?qz:nw;function Xz(e,t,n){var r;Qo();const a=e||{},l=a.inherit===!1||!t?Object.assign(Object.assign({},qb),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:qb.hashed,cssVar:t==null?void 0:t.cssVar}):t,c=Gz();return ps(()=>{var u,d;if(!e)return t;const f=Object.assign({},l.components);Object.keys(e.components||{}).forEach(p=>{f[p]=Object.assign(Object.assign({},f[p]),e.components[p])});const v=`css-var-${c.replace(/:/g,"")}`,g=((u=a.cssVar)!==null&&u!==void 0?u:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((d=a.cssVar)===null||d===void 0?void 0:d.key)||v});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:f,cssVar:g})},[a,l],(u,d)=>u.some((f,v)=>{const g=d[v];return!Ro(f,g,!0)}))}var Yz=["children"],oR=i.createContext({});function Qz(e){var t=e.children,n=Lt(e,Yz);return i.createElement(oR.Provider,{value:n},t)}var Zz=(function(e){Xa(n,e);var t=go(n);function n(){return ur(this,n),t.apply(this,arguments)}return dr(n,[{key:"render",value:function(){return this.props.children}}]),n})(i.Component);function Jz(e){var t=i.useReducer(function(u){return u+1},0),n=fe(t,2),r=n[1],a=i.useRef(e),l=Xt(function(){return a.current}),c=Xt(function(u){a.current=typeof u=="function"?u(a.current):u,r()});return[l,c]}var el="none",Rm="appear",jm="enter",Im="leave",rw="none",So="prepare",yc="start",Cc="active",v1="end",iR="prepared";function aw(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 eD(e,t){var n={animationend:aw("Animation","AnimationEnd"),transitionend:aw("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var tD=eD(aa(),typeof window<"u"?window:{}),lR={};if(aa()){var nD=document.createElement("div");lR=nD.style}var Nm={};function sR(e){if(Nm[e])return Nm[e];var t=tD[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a<r;a+=1){var l=n[a];if(Object.prototype.hasOwnProperty.call(t,l)&&l in lR)return Nm[e]=t[l],Nm[e]}return""}var cR=sR("animationend"),uR=sR("transitionend"),dR=!!(cR&&uR),ow=cR||"animationend",iw=uR||"transitionend";function lw(e,t){if(!e)return null;if($t(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const rD=(function(e){var t=i.useRef();function n(a){a&&(a.removeEventListener(iw,e),a.removeEventListener(ow,e))}function r(a){t.current&&t.current!==a&&n(t.current),a&&a!==t.current&&(a.addEventListener(iw,e),a.addEventListener(ow,e),t.current=a)}return i.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var fR=aa()?i.useLayoutEffect:i.useEffect;const aD=(function(){var e=i.useRef(null);function t(){Yt.cancel(e.current)}function n(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var l=Yt(function(){a<=1?r({isCanceled:function(){return l!==e.current}}):n(r,a-1)});e.current=l}return i.useEffect(function(){return function(){t()}},[]),[n,t]});var oD=[So,yc,Cc,v1],iD=[So,iR],mR=!1,lD=!0;function vR(e){return e===Cc||e===v1}const sD=(function(e,t,n){var r=ss(rw),a=fe(r,2),l=a[0],c=a[1],u=aD(),d=fe(u,2),f=d[0],v=d[1];function g(){c(So,!0)}var p=t?iD:oD;return fR(function(){if(l!==rw&&l!==v1){var b=p.indexOf(l),C=p[b+1],S=n(l);S===mR?c(C,!0):C&&f(function(h){function x(){h.isCanceled()||c(C,!0)}S===!0?x():Promise.resolve(S).then(x)})}},[e,l]),i.useEffect(function(){return function(){v()}},[]),[g,l]});function cD(e,t,n,r){var a=r.motionEnter,l=a===void 0?!0:a,c=r.motionAppear,u=c===void 0?!0:c,d=r.motionLeave,f=d===void 0?!0:d,v=r.motionDeadline,g=r.motionLeaveImmediately,p=r.onAppearPrepare,b=r.onEnterPrepare,C=r.onLeavePrepare,S=r.onAppearStart,h=r.onEnterStart,x=r.onLeaveStart,w=r.onAppearActive,E=r.onEnterActive,j=r.onLeaveActive,R=r.onAppearEnd,I=r.onEnterEnd,O=r.onLeaveEnd,M=r.onVisibleChanged,N=ss(),P=fe(N,2),B=P[0],L=P[1],k=Jz(el),D=fe(k,2),H=D[0],z=D[1],_=ss(null),F=fe(_,2),W=F[0],q=F[1],V=H(),G=i.useRef(!1),K=i.useRef(null);function U(){return n()}var Z=i.useRef(!1);function Q(){z(el),q(null,!0)}var te=Xt(function(pe){var we=H();if(we!==el){var Se=U();if(!(pe&&!pe.deadline&&pe.target!==Se)){var Ce=Z.current,De;we===Rm&&Ce?De=R==null?void 0:R(Se,pe):we===jm&&Ce?De=I==null?void 0:I(Se,pe):we===Im&&Ce&&(De=O==null?void 0:O(Se,pe)),Ce&&De!==!1&&Q()}}}),X=rD(te),ae=fe(X,1),re=ae[0],ne=function(we){switch(we){case Rm:return ee(ee(ee({},So,p),yc,S),Cc,w);case jm:return ee(ee(ee({},So,b),yc,h),Cc,E);case Im:return ee(ee(ee({},So,C),yc,x),Cc,j);default:return{}}},Y=i.useMemo(function(){return ne(V)},[V]),ie=sD(V,!e,function(pe){if(pe===So){var we=Y[So];return we?we(U()):mR}if(ce in Y){var Se;q(((Se=Y[ce])===null||Se===void 0?void 0:Se.call(Y,U(),null))||null)}return ce===Cc&&V!==el&&(re(U()),v>0&&(clearTimeout(K.current),K.current=setTimeout(function(){te({deadline:!0})},v))),ce===iR&&Q(),lD}),le=fe(ie,2),de=le[0],ce=le[1],ge=vR(ce);Z.current=ge;var he=i.useRef(null);fR(function(){if(!(G.current&&he.current===t)){L(t);var pe=G.current;G.current=!0;var we;!pe&&t&&u&&(we=Rm),pe&&t&&l&&(we=jm),(pe&&!t&&f||!pe&&g&&!t&&f)&&(we=Im);var Se=ne(we);we&&(e||Se[So])?(z(we),de()):z(el),he.current=t}},[t]),i.useEffect(function(){(V===Rm&&!u||V===jm&&!l||V===Im&&!f)&&z(el)},[u,l,f]),i.useEffect(function(){return function(){G.current=!1,clearTimeout(K.current)}},[]);var Oe=i.useRef(!1);i.useEffect(function(){B&&(Oe.current=!0),B!==void 0&&V===el&&((Oe.current||B)&&(M==null||M(B)),Oe.current=!0)},[B,V]);var je=W;return Y[So]&&ce===yc&&(je=se({transition:"none"},je)),[V,ce,je,B??t]}function uD(e){var t=e;$t(e)==="object"&&(t=e.transitionSupport);function n(a,l){return!!(a.motionName&&t&&l!==!1)}var r=i.forwardRef(function(a,l){var c=a.visible,u=c===void 0?!0:c,d=a.removeOnLeave,f=d===void 0?!0:d,v=a.forceRender,g=a.children,p=a.motionName,b=a.leavedClassName,C=a.eventProps,S=i.useContext(oR),h=S.motion,x=n(a,h),w=i.useRef(),E=i.useRef();function j(){try{return w.current instanceof HTMLElement?w.current:ev(E.current)}catch{return null}}var R=cD(x,u,j,a),I=fe(R,4),O=I[0],M=I[1],N=I[2],P=I[3],B=i.useRef(P);P&&(B.current=!0);var L=i.useCallback(function(F){w.current=F,Id(l,F)},[l]),k,D=se(se({},C),{},{visible:u});if(!g)k=null;else if(O===el)P?k=g(se({},D),L):!f&&B.current&&b?k=g(se(se({},D),{},{className:b}),L):v||!f&&!b?k=g(se(se({},D),{},{style:{display:"none"}}),L):k=null;else{var H;M===So?H="prepare":vR(M)?H="active":M===yc&&(H="start");var z=lw(p,"".concat(O,"-").concat(H));k=g(se(se({},D),{},{className:ue(lw(p,O),ee(ee({},z,z&&H),p,typeof p=="string")),style:N}),L)}if(i.isValidElement(k)&&Oo(k)){var _=pl(k);_||(k=i.cloneElement(k,{ref:L}))}return i.createElement(Zz,{ref:E},k)});return r.displayName="CSSMotion",r}const Qr=uD(dR);var Xb="add",Yb="keep",Qb="remove",g0="removed";function dD(e){var t;return e&&$t(e)==="object"&&"key"in e?t=e:t={key:e},se(se({},t),{},{key:String(t.key)})}function Zb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(dD)}function fD(){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,l=Zb(e),c=Zb(t);l.forEach(function(f){for(var v=!1,g=r;g<a;g+=1){var p=c[g];if(p.key===f.key){r<g&&(n=n.concat(c.slice(r,g).map(function(b){return se(se({},b),{},{status:Xb})})),r=g),n.push(se(se({},p),{},{status:Yb})),r+=1,v=!0;break}}v||n.push(se(se({},f),{},{status:Qb}))}),r<a&&(n=n.concat(c.slice(r).map(function(f){return se(se({},f),{},{status:Xb})})));var u={};n.forEach(function(f){var v=f.key;u[v]=(u[v]||0)+1});var d=Object.keys(u).filter(function(f){return u[f]>1});return d.forEach(function(f){n=n.filter(function(v){var g=v.key,p=v.status;return g!==f||p!==Qb}),n.forEach(function(v){v.key===f&&(v.status=Yb)})}),n}var mD=["component","children","onVisibleChanged","onAllRemoved"],vD=["status"],gD=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function pD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qr,n=(function(r){Xa(l,r);var a=go(l);function l(){var c;ur(this,l);for(var u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return c=a.call.apply(a,[this].concat(d)),ee(xt(c),"state",{keyEntities:[]}),ee(xt(c),"removeKey",function(v){c.setState(function(g){var p=g.keyEntities.map(function(b){return b.key!==v?b:se(se({},b),{},{status:g0})});return{keyEntities:p}},function(){var g=c.state.keyEntities,p=g.filter(function(b){var C=b.status;return C!==g0}).length;p===0&&c.props.onAllRemoved&&c.props.onAllRemoved()})}),c}return dr(l,[{key:"render",value:function(){var u=this,d=this.state.keyEntities,f=this.props,v=f.component,g=f.children,p=f.onVisibleChanged;f.onAllRemoved;var b=Lt(f,mD),C=v||i.Fragment,S={};return gD.forEach(function(h){S[h]=b[h],delete b[h]}),delete b.keys,i.createElement(C,b,d.map(function(h,x){var w=h.status,E=Lt(h,vD),j=w===Xb||w===Yb;return i.createElement(t,ye({},S,{key:E.key,visible:j,eventProps:E,onVisibleChanged:function(I){p==null||p(I,{key:E.key}),I||u.removeKey(E.key)}}),function(R,I){return g(se(se({},R),{},{index:x}),I)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,d){var f=u.keys,v=d.keyEntities,g=Zb(f),p=fD(v,g);return{keyEntities:p.filter(function(b){var C=v.find(function(S){var h=S.key;return b.key===h});return!(C&&C.status===g0&&b.status===Qb)})}}}]),l})(i.Component);return ee(n,"defaultProps",{component:"div"}),n}const g1=pD(dR),sw=i.createContext(!0);function hD(e){const t=i.useContext(sw),{children:n}=e,[,r]=ia(),{motion:a}=r,l=i.useRef(!1);return l.current||(l.current=t!==a),l.current?i.createElement(sw.Provider,{value:a},i.createElement(Qz,{motion:a},n)):n}const bD=()=>null;var yD=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 CD=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Rv,gR,pR,hR;function sv(){return Rv||_d}function SD(){return gR||rg}function xD(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const $D=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(Rv=t),n!==void 0&&(gR=n),"holderRender"in e&&(hR=a),r&&(xD(r)?wz(sv(),r):pR=r)},bR=()=>({getPrefixCls:(e,t)=>t||(e?`${sv()}-${e}`:sv()),getIconPrefixCls:SD,getRootPrefixCls:()=>Rv||sv(),getTheme:()=>pR,holderRender:hR}),wD=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:l,form:c,locale:u,componentSize:d,direction:f,space:v,splitter:g,virtual:p,dropdownMatchSelectWidth:b,popupMatchSelectWidth:C,popupOverflow:S,legacyLocale:h,parentContext:x,iconPrefixCls:w,theme:E,componentDisabled:j,segmented:R,statistic:I,spin:O,calendar:M,carousel:N,cascader:P,collapse:B,typography:L,checkbox:k,descriptions:D,divider:H,drawer:z,skeleton:_,steps:F,image:W,layout:q,list:V,mentions:G,modal:K,progress:U,result:Z,slider:Q,breadcrumb:te,menu:X,pagination:ae,input:re,textArea:ne,empty:Y,badge:ie,radio:le,rate:de,switch:ce,transfer:ge,avatar:he,message:Oe,tag:je,table:pe,card:we,tabs:Se,timeline:Ce,timePicker:De,upload:Ae,notification:Ye,tree:Ke,colorPicker:Fe,datePicker:Ge,rangePicker:Te,flex:Ee,wave:_e,dropdown:Re,warning:Pe,tour:be,tooltip:$e,popover:Me,popconfirm:Le,floatButton:et,floatButtonGroup:bt,variant:We,inputNumber:tt,treeSelect:dt}=e,at=i.useCallback((It,Vt)=>{const{prefixCls:ft}=e;if(Vt)return Vt;const lt=ft||x.getPrefixCls("");return It?`${lt}-${It}`:lt},[x.getPrefixCls,e.prefixCls]),pt=w||x.iconPrefixCls||rg,Pt=n||x.csp;Kz(pt,Pt);const Et=Xz(E,x.theme,{prefixCls:at("")}),ct={csp:Pt,autoInsertSpaceInButton:r,alert:a,anchor:l,locale:u||h,direction:f,space:v,splitter:g,virtual:p,popupMatchSelectWidth:C??b,popupOverflow:S,getPrefixCls:at,iconPrefixCls:pt,theme:Et,segmented:R,statistic:I,spin:O,calendar:M,carousel:N,cascader:P,collapse:B,typography:L,checkbox:k,descriptions:D,divider:H,drawer:z,skeleton:_,steps:F,image:W,input:re,textArea:ne,layout:q,list:V,mentions:G,modal:K,progress:U,result:Z,slider:Q,breadcrumb:te,menu:X,pagination:ae,empty:Y,badge:ie,radio:le,rate:de,switch:ce,transfer:ge,avatar:he,message:Oe,tag:je,table:pe,card:we,tabs:Se,timeline:Ce,timePicker:De,upload:Ae,notification:Ye,tree:Ke,colorPicker:Fe,datePicker:Ge,rangePicker:Te,flex:Ee,wave:_e,dropdown:Re,warning:Pe,tour:be,tooltip:$e,popover:Me,popconfirm:Le,floatButton:et,floatButtonGroup:bt,variant:We,inputNumber:tt,treeSelect:dt},St=Object.assign({},x);Object.keys(ct).forEach(It=>{ct[It]!==void 0&&(St[It]=ct[It])}),CD.forEach(It=>{const Vt=e[It];Vt&&(St[It]=Vt)}),typeof r<"u"&&(St.button=Object.assign({autoInsertSpace:r},St.button));const yt=ps(()=>St,St,(It,Vt)=>{const ft=Object.keys(It),lt=Object.keys(Vt);return ft.length!==lt.length||ft.some(At=>It[At]!==Vt[At])}),{layer:Je}=i.useContext(Zd),Ve=i.useMemo(()=>({prefixCls:pt,csp:Pt,layer:Je?"antd":void 0}),[pt,Pt,Je]);let Ue=i.createElement(i.Fragment,null,i.createElement(bD,{dropdownMatchSelectWidth:b}),t);const mt=i.useMemo(()=>{var It,Vt,ft,lt;return bc(((It=vo.Form)===null||It===void 0?void 0:It.defaultValidateMessages)||{},((ft=(Vt=yt.locale)===null||Vt===void 0?void 0:Vt.Form)===null||ft===void 0?void 0:ft.defaultValidateMessages)||{},((lt=yt.form)===null||lt===void 0?void 0:lt.validateMessages)||{},(c==null?void 0:c.validateMessages)||{})},[yt,c==null?void 0:c.validateMessages]);Object.keys(mt).length>0&&(Ue=i.createElement(F3.Provider,{value:mt},Ue)),u&&(Ue=i.createElement(oz,{locale:u,_ANT_MARK__:az},Ue)),Ue=i.createElement(u1.Provider,{value:Ve},Ue),d&&(Ue=i.createElement(Ez,{size:d},Ue)),Ue=i.createElement(hD,null,Ue);const Mt=i.useMemo(()=>{const It=Et||{},{algorithm:Vt,token:ft,components:lt,cssVar:At}=It,Ut=yD(It,["algorithm","token","components","cssVar"]),rn=Vt&&(!Array.isArray(Vt)||Vt.length>0)?Nb(Vt):X3,Qt={};Object.entries(lt||{}).forEach(([qt,un])=>{const st=Object.assign({},un);"algorithm"in st&&(st.algorithm===!0?st.theme=rn:(Array.isArray(st.algorithm)||typeof st.algorithm=="function")&&(st.theme=Nb(st.algorithm)),delete st.algorithm),Qt[qt]=st});const vn=Object.assign(Object.assign({},zd),ft);return Object.assign(Object.assign({},Ut),{theme:rn,token:vn,components:Qt,override:Object.assign({override:vn},Qt),cssVar:At})},[Et]);return E&&(Ue=i.createElement(Y3.Provider,{value:Mt},Ue)),yt.warning&&(Ue=i.createElement(ez.Provider,{value:yt.warning},Ue)),j!==void 0&&(Ue=i.createElement(f1,{disabled:j},Ue)),i.createElement(Rt.Provider,{value:yt},Ue)},To=e=>{const t=i.useContext(Rt),n=i.useContext(d1);return i.createElement(wD,Object.assign({parentContext:t,legacyLocale:n},e))};To.ConfigContext=Rt;To.SizeContext=ls;To.config=$D;To.useConfig=Oz;Object.defineProperty(To,"SizeContext",{get:()=>ls});var ED={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 yR(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function OD(e){return yR(e)instanceof ShadowRoot}function jv(e){return OD(e)?yR(e):null}function RD(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function jD(e,t){Xn(e,"[@ant-design/icons] ".concat(t))}function cw(e){return $t(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&($t(e.icon)==="object"||typeof e.icon=="function")}function uw(){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[RD(n)]=r}return t},{})}function Jb(e,t,n){return n?ve.createElement(e.tag,se(se({key:t},uw(e.attrs)),n),(e.children||[]).map(function(r,a){return Jb(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):ve.createElement(e.tag,se({key:t},uw(e.attrs)),(e.children||[]).map(function(r,a){return Jb(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function CR(e){return Dd(e)[0]}function SR(e){return e?Array.isArray(e)?e:[e]:[]}var ID=`
|
|
105
|
+
.anticon {
|
|
106
|
+
display: inline-flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
color: inherit;
|
|
109
|
+
font-style: normal;
|
|
110
|
+
line-height: 0;
|
|
111
|
+
text-align: center;
|
|
112
|
+
text-transform: none;
|
|
113
|
+
vertical-align: -0.125em;
|
|
114
|
+
text-rendering: optimizeLegibility;
|
|
115
|
+
-webkit-font-smoothing: antialiased;
|
|
116
|
+
-moz-osx-font-smoothing: grayscale;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.anticon > * {
|
|
120
|
+
line-height: 1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.anticon svg {
|
|
124
|
+
display: inline-block;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.anticon::before {
|
|
128
|
+
display: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.anticon .anticon-icon {
|
|
132
|
+
display: block;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.anticon[tabindex] {
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.anticon-spin::before,
|
|
140
|
+
.anticon-spin {
|
|
141
|
+
display: inline-block;
|
|
142
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
143
|
+
animation: loadingCircle 1s infinite linear;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@-webkit-keyframes loadingCircle {
|
|
147
|
+
100% {
|
|
148
|
+
-webkit-transform: rotate(360deg);
|
|
149
|
+
transform: rotate(360deg);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@keyframes loadingCircle {
|
|
154
|
+
100% {
|
|
155
|
+
-webkit-transform: rotate(360deg);
|
|
156
|
+
transform: rotate(360deg);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
`,ND=function(t){var n=i.useContext(u1),r=n.csp,a=n.prefixCls,l=n.layer,c=ID;a&&(c=c.replace(/anticon/g,a)),l&&(c="@layer ".concat(l,` {
|
|
160
|
+
`).concat(c,`
|
|
161
|
+
}`)),i.useEffect(function(){var u=t.current,d=jv(u);hi(c,"@ant-design-icons",{prepend:!l,csp:r,attachTo:d})},[])},MD=["icon","className","onClick","style","primaryColor","secondaryColor"],yd={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function TD(e){var t=e.primaryColor,n=e.secondaryColor;yd.primaryColor=t,yd.secondaryColor=n||CR(t),yd.calculated=!!n}function PD(){return se({},yd)}var qc=function(t){var n=t.icon,r=t.className,a=t.onClick,l=t.style,c=t.primaryColor,u=t.secondaryColor,d=Lt(t,MD),f=i.useRef(),v=yd;if(c&&(v={primaryColor:c,secondaryColor:u||CR(c)}),ND(f),jD(cw(n),"icon should be icon definiton, but got ".concat(n)),!cw(n))return null;var g=n;return g&&typeof g.icon=="function"&&(g=se(se({},g),{},{icon:g.icon(v.primaryColor,v.secondaryColor)})),Jb(g.icon,"svg-".concat(g.name),se(se({className:r,onClick:a,style:l,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:f}))};qc.displayName="IconReact";qc.getTwoToneColors=PD;qc.setTwoToneColors=TD;function xR(e){var t=SR(e),n=fe(t,2),r=n[0],a=n[1];return qc.setTwoToneColors({primaryColor:r,secondaryColor:a})}function zD(){var e=qc.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var DD=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];xR(Pc.primary);var wt=i.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,l=e.rotate,c=e.tabIndex,u=e.onClick,d=e.twoToneColor,f=Lt(e,DD),v=i.useContext(u1),g=v.prefixCls,p=g===void 0?"anticon":g,b=v.rootClassName,C=ue(b,p,ee(ee({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!a||r.name==="loading"),n),S=c;S===void 0&&u&&(S=-1);var h=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,x=SR(d),w=fe(x,2),E=w[0],j=w[1];return i.createElement("span",ye({role:"img","aria-label":r.name},f,{ref:t,tabIndex:S,onClick:u,className:C}),i.createElement(qc,{icon:r,primaryColor:E,secondaryColor:j,style:h}))});wt.displayName="AntdIcon";wt.getTwoToneColor=zD;wt.setTwoToneColor=xR;var _D=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:ED}))},bs=i.forwardRef(_D),AD={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"},BD=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:AD}))},hl=i.forwardRef(BD),kD={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"},LD=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:kD}))},Po=i.forwardRef(LD),HD={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"},FD=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:HD}))},ys=i.forwardRef(FD),VD={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"},WD=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:VD}))},og=i.forwardRef(WD),KD=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
162
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
163
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
164
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
165
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
166
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
167
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
168
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
169
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
170
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
171
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
172
|
+
summary tabIndex target title type useMap value width wmode wrap`,UD=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
173
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
174
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
175
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
176
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
177
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
178
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,qD="".concat(KD," ").concat(UD).split(/[\s\n]+/),GD="aria-",XD="data-";function dw(e,t){return e.indexOf(t)===0}function Rr(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=se({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||dw(a,GD))||n.data&&dw(a,XD)||n.attr&&qD.includes(a))&&(r[a]=e[a])}),r}function $R(e){return e&&ve.isValidElement(e)&&e.type===ve.Fragment}const p1=(e,t,n)=>ve.isValidElement(e)?ve.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function $r(e,t){return p1(e,e,t)}const Mm=(e,t,n,r,a)=>({background:e,border:`${oe(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),YD=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:l,fontSizeLG:c,lineHeight:u,borderRadiusLG:d,motionEaseInOutCirc:f,withDescriptionIconSize:v,colorText:g,colorTextHeading:p,withDescriptionPadding:b,defaultPadding:C}=e;return{[t]:Object.assign(Object.assign({},dn(e)),{position:"relative",display:"flex",alignItems:"center",padding:C,wordWrap:"break-word",borderRadius:d,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:l,lineHeight:u},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${f}, opacity ${n} ${f},
|
|
179
|
+
padding-top ${n} ${f}, padding-bottom ${n} ${f},
|
|
180
|
+
margin-bottom ${n} ${f}`},[`&${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:v,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:p,fontSize:c},[`${t}-description`]:{display:"block",color:g}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},QD=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:l,colorWarningBorder:c,colorWarningBg:u,colorError:d,colorErrorBorder:f,colorErrorBg:v,colorInfo:g,colorInfoBorder:p,colorInfoBg:b}=e;return{[t]:{"&-success":Mm(a,r,n,e,t),"&-info":Mm(b,p,g,e,t),"&-warning":Mm(u,c,l,e,t),"&-error":Object.assign(Object.assign({},Mm(v,f,d,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},ZD=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:l,colorIcon:c,colorIconHover:u}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:l,lineHeight:oe(l),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}}}}},JD=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),e_=sn("Alert",e=>[YD(e),QD(e),ZD(e)],JD);var fw=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 t_={success:bs,info:og,error:hl,warning:ys},n_=e=>{const{icon:t,prefixCls:n,type:r}=e,a=t_[r]||null;return t?p1(t,i.createElement("span",{className:`${n}-icon`},t),()=>({className:ue(`${n}-icon`,t.props.className)})):i.createElement(a,{className:`${n}-icon`})},r_=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:l}=e,c=r===!0||r===void 0?i.createElement(Po,null):r;return t?i.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},l),c):null},wR=i.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:l,className:c,rootClassName:u,style:d,onMouseEnter:f,onMouseLeave:v,onClick:g,afterClose:p,showIcon:b,closable:C,closeText:S,closeIcon:h,action:x,id:w}=e,E=fw(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[j,R]=i.useState(!1),I=i.useRef(null);i.useImperativeHandle(t,()=>({nativeElement:I.current}));const{getPrefixCls:O,direction:M,closable:N,closeIcon:P,className:B,style:L}=fr("alert"),k=O("alert",r),[D,H,z]=e_(k),_=Z=>{var Q;R(!0),(Q=e.onClose)===null||Q===void 0||Q.call(e,Z)},F=i.useMemo(()=>e.type!==void 0?e.type:l?"warning":"info",[e.type,l]),W=i.useMemo(()=>typeof C=="object"&&C.closeIcon||S?!0:typeof C=="boolean"?C:h!==!1&&h!==null&&h!==void 0?!0:!!N,[S,h,C,N]),q=l&&b===void 0?!0:b,V=ue(k,`${k}-${F}`,{[`${k}-with-description`]:!!n,[`${k}-no-icon`]:!q,[`${k}-banner`]:!!l,[`${k}-rtl`]:M==="rtl"},B,c,u,z,H),G=Rr(E,{aria:!0,data:!0}),K=i.useMemo(()=>typeof C=="object"&&C.closeIcon?C.closeIcon:S||(h!==void 0?h:typeof N=="object"&&N.closeIcon?N.closeIcon:P),[h,C,N,S,P]),U=i.useMemo(()=>{const Z=C??N;if(typeof Z=="object"){const{closeIcon:Q}=Z;return fw(Z,["closeIcon"])}return{}},[C,N]);return D(i.createElement(Qr,{visible:!j,motionName:`${k}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:Z=>({maxHeight:Z.offsetHeight}),onLeaveEnd:p},({className:Z,style:Q},te)=>i.createElement("div",Object.assign({id:w,ref:Ir(I,te),"data-show":!j,className:ue(V,Z),style:Object.assign(Object.assign(Object.assign({},L),d),Q),onMouseEnter:f,onMouseLeave:v,onClick:g,role:"alert"},G),q?i.createElement(n_,{description:n,icon:e.icon,prefixCls:k,type:F}):null,i.createElement("div",{className:`${k}-content`},a?i.createElement("div",{className:`${k}-message`},a):null,n?i.createElement("div",{className:`${k}-description`},n):null),x?i.createElement("div",{className:`${k}-action`},x):null,i.createElement(r_,{isClosable:W,prefixCls:k,closeIcon:K,handleClose:_,ariaProps:U}))))});function a_(e,t,n){return t=is(t),p3(e,Jv()?Reflect.construct(t,n||[],is(e).constructor):t.apply(e,n))}let o_=(function(e){function t(){var n;return ur(this,t),n=a_(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Xa(t,e),dr(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,description:a,id:l,children:c}=this.props,{error:u,info:d}=this.state,f=(d==null?void 0:d.componentStack)||null,v=typeof r>"u"?(u||"").toString():r,g=typeof a>"u"?f:a;return u?i.createElement(wR,{id:l,type:"error",message:v,description:i.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},g)}):c}}])})(i.Component);const Cd=wR;Cd.ErrorBoundary=o_;const mw=e=>typeof e=="object"&&e!=null&&e.nodeType===1,vw=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Tm=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return vw(n.overflowY,t)||vw(n.overflowX,t)||(r=>{const a=(l=>{if(!l.ownerDocument||!l.ownerDocument.defaultView)return null;try{return l.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeight<r.scrollHeight||a.clientWidth<r.scrollWidth)})(e)}return!1},Pm=(e,t,n,r,a,l,c,u)=>l<e&&c>t||l>e&&c<t?0:l<=e&&u<=n||c>=t&&u>=n?l-e-r:c>t&&u<n||l<e&&u>n?c-t+a:0,i_=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},gw=(e,t)=>{var n,r,a,l;if(typeof document>"u")return[];const{scrollMode:c,block:u,inline:d,boundary:f,skipOverflowHiddenElements:v}=t,g=typeof f=="function"?f:z=>z!==f;if(!mw(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,b=[];let C=e;for(;mw(C)&&g(C);){if(C=i_(C),C===p){b.push(C);break}C!=null&&C===document.body&&Tm(C)&&!Tm(document.documentElement)||C!=null&&Tm(C,v)&&b.push(C)}const S=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,h=(l=(a=window.visualViewport)==null?void 0:a.height)!=null?l:innerHeight,{scrollX:x,scrollY:w}=window,{height:E,width:j,top:R,right:I,bottom:O,left:M}=e.getBoundingClientRect(),{top:N,right:P,bottom:B,left:L}=(z=>{const _=window.getComputedStyle(z);return{top:parseFloat(_.scrollMarginTop)||0,right:parseFloat(_.scrollMarginRight)||0,bottom:parseFloat(_.scrollMarginBottom)||0,left:parseFloat(_.scrollMarginLeft)||0}})(e);let k=u==="start"||u==="nearest"?R-N:u==="end"?O+B:R+E/2-N+B,D=d==="center"?M+j/2-L+P:d==="end"?I+P:M-L;const H=[];for(let z=0;z<b.length;z++){const _=b[z],{height:F,width:W,top:q,right:V,bottom:G,left:K}=_.getBoundingClientRect();if(c==="if-needed"&&R>=0&&M>=0&&O<=h&&I<=S&&(_===p&&!Tm(_)||R>=q&&O<=G&&M>=K&&I<=V))return H;const U=getComputedStyle(_),Z=parseInt(U.borderLeftWidth,10),Q=parseInt(U.borderTopWidth,10),te=parseInt(U.borderRightWidth,10),X=parseInt(U.borderBottomWidth,10);let ae=0,re=0;const ne="offsetWidth"in _?_.offsetWidth-_.clientWidth-Z-te:0,Y="offsetHeight"in _?_.offsetHeight-_.clientHeight-Q-X:0,ie="offsetWidth"in _?_.offsetWidth===0?0:W/_.offsetWidth:0,le="offsetHeight"in _?_.offsetHeight===0?0:F/_.offsetHeight:0;if(p===_)ae=u==="start"?k:u==="end"?k-h:u==="nearest"?Pm(w,w+h,h,Q,X,w+k,w+k+E,E):k-h/2,re=d==="start"?D:d==="center"?D-S/2:d==="end"?D-S:Pm(x,x+S,S,Z,te,x+D,x+D+j,j),ae=Math.max(0,ae+w),re=Math.max(0,re+x);else{ae=u==="start"?k-q-Q:u==="end"?k-G+X+Y:u==="nearest"?Pm(q,G,F,Q,X+Y,k,k+E,E):k-(q+F/2)+Y/2,re=d==="start"?D-K-Z:d==="center"?D-(K+W/2)+ne/2:d==="end"?D-V+te+ne:Pm(K,V,W,Z,te+ne,D,D+j,j);const{scrollLeft:de,scrollTop:ce}=_;ae=le===0?0:Math.max(0,Math.min(ce+ae/le,_.scrollHeight-F/le+Y)),re=ie===0?0:Math.max(0,Math.min(de+re/ie,_.scrollWidth-W/ie+ne)),k+=ce-ae,D+=de-re}H.push({el:_,top:ae,left:re})}return H},l_=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function s_(e,t){if(!e.isConnected||!(a=>{let l=a;for(;l&&l.parentNode;){if(l.parentNode===document)return!0;l=l.parentNode instanceof ShadowRoot?l.parentNode.host:l.parentNode}return!1})(e))return;const n=(a=>{const l=window.getComputedStyle(a);return{top:parseFloat(l.scrollMarginTop)||0,right:parseFloat(l.scrollMarginRight)||0,bottom:parseFloat(l.scrollMarginBottom)||0,left:parseFloat(l.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(gw(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:l,left:c}of gw(e,l_(t))){const u=l-n.top+n.bottom,d=c-n.left+n.right;a.scroll({top:u,left:d,behavior:r})}}function ey(e){return e!=null&&e===e.window}const ER=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return ey(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!ey(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 c_(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 OR(e,t={}){const{getContainer:n=()=>window,callback:r,duration:a=450}=t,l=n(),c=ER(l),u=Date.now(),d=()=>{const v=Date.now()-u,g=c_(v>a?a:v,c,e,a);ey(l)?l.scrollTo(window.pageXOffset,g):l instanceof Document||l.constructor.name==="HTMLDocument"?l.documentElement.scrollTop=g:l.scrollTop=g,v<a?Yt(d):typeof r=="function"&&r()};Yt(d)}const cr=e=>{const[,,,,t]=ia();return t?`${e}-css-var`:""};var ot={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,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},RR=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,l=e.duration,c=l===void 0?4.5:l,u=e.showProgress,d=e.pauseOnHover,f=d===void 0?!0:d,v=e.eventKey,g=e.content,p=e.closable,b=e.closeIcon,C=b===void 0?"x":b,S=e.props,h=e.onClick,x=e.onNoticeClose,w=e.times,E=e.hovering,j=i.useState(!1),R=fe(j,2),I=R[0],O=R[1],M=i.useState(0),N=fe(M,2),P=N[0],B=N[1],L=i.useState(0),k=fe(L,2),D=k[0],H=k[1],z=E||I,_=c>0&&u,F=function(){x(v)},W=function(Z){(Z.key==="Enter"||Z.code==="Enter"||Z.keyCode===ot.ENTER)&&F()};i.useEffect(function(){if(!z&&c>0){var U=Date.now()-D,Z=setTimeout(function(){F()},c*1e3-D);return function(){f&&clearTimeout(Z),H(Date.now()-U)}}},[c,z,w]),i.useEffect(function(){if(!z&&_&&(f||D===0)){var U=performance.now(),Z,Q=function te(){cancelAnimationFrame(Z),Z=requestAnimationFrame(function(X){var ae=X+D-U,re=Math.min(ae/(c*1e3),1);B(re*100),re<1&&te()})};return Q(),function(){f&&cancelAnimationFrame(Z)}}},[c,D,z,_,w]);var q=i.useMemo(function(){return $t(p)==="object"&&p!==null?p:p?{closeIcon:C}:{}},[p,C]),V=Rr(q,!0),G=100-(!P||P<0?0:P>100?100:P),K="".concat(n,"-notice");return i.createElement("div",ye({},S,{ref:t,className:ue(K,a,ee({},"".concat(K,"-closable"),p)),style:r,onMouseEnter:function(Z){var Q;O(!0),S==null||(Q=S.onMouseEnter)===null||Q===void 0||Q.call(S,Z)},onMouseLeave:function(Z){var Q;O(!1),S==null||(Q=S.onMouseLeave)===null||Q===void 0||Q.call(S,Z)},onClick:h}),i.createElement("div",{className:"".concat(K,"-content")},g),p&&i.createElement("a",ye({tabIndex:0,className:"".concat(K,"-close"),onKeyDown:W,"aria-label":"Close"},V,{onClick:function(Z){Z.preventDefault(),Z.stopPropagation(),F()}}),q.closeIcon),_&&i.createElement("progress",{className:"".concat(K,"-progress"),max:"100",value:G},G+"%"))}),jR=ve.createContext({}),IR=function(t){var n=t.children,r=t.classNames;return ve.createElement(jR.Provider,{value:{classNames:r}},n)},pw=8,hw=3,bw=16,u_=function(t){var n={offset:pw,threshold:hw,gap:bw};if(t&&$t(t)==="object"){var r,a,l;n.offset=(r=t.offset)!==null&&r!==void 0?r:pw,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:hw,n.gap=(l=t.gap)!==null&&l!==void 0?l:bw}return[!!t,n]},d_=["className","style","classNames","styles"],f_=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,l=t.className,c=t.style,u=t.motion,d=t.onAllNoticeRemoved,f=t.onNoticeClose,v=t.stack,g=i.useContext(jR),p=g.classNames,b=i.useRef({}),C=i.useState(null),S=fe(C,2),h=S[0],x=S[1],w=i.useState([]),E=fe(w,2),j=E[0],R=E[1],I=n.map(function(z){return{config:z,key:String(z.key)}}),O=u_(v),M=fe(O,2),N=M[0],P=M[1],B=P.offset,L=P.threshold,k=P.gap,D=N&&(j.length>0||I.length<=L),H=typeof u=="function"?u(r):u;return i.useEffect(function(){N&&j.length>1&&R(function(z){return z.filter(function(_){return I.some(function(F){var W=F.key;return _===W})})})},[j,I,N]),i.useEffect(function(){var z;if(N&&b.current[(z=I[I.length-1])===null||z===void 0?void 0:z.key]){var _;x(b.current[(_=I[I.length-1])===null||_===void 0?void 0:_.key])}},[I,N]),ve.createElement(g1,ye({key:r,className:ue(a,"".concat(a,"-").concat(r),p==null?void 0:p.list,l,ee(ee({},"".concat(a,"-stack"),!!N),"".concat(a,"-stack-expanded"),D)),style:c,keys:I,motionAppear:!0},H,{onAllRemoved:function(){d(r)}}),function(z,_){var F=z.config,W=z.className,q=z.style,V=z.index,G=F,K=G.key,U=G.times,Z=String(K),Q=F,te=Q.className,X=Q.style,ae=Q.classNames,re=Q.styles,ne=Lt(Q,d_),Y=I.findIndex(function(Ce){return Ce.key===Z}),ie={};if(N){var le=I.length-1-(Y>-1?Y:V-1),de=r==="top"||r==="bottom"?"-50%":"0";if(le>0){var ce,ge,he;ie.height=D?(ce=b.current[Z])===null||ce===void 0?void 0:ce.offsetHeight:h==null?void 0:h.offsetHeight;for(var Oe=0,je=0;je<le;je++){var pe;Oe+=((pe=b.current[I[I.length-1-je].key])===null||pe===void 0?void 0:pe.offsetHeight)+k}var we=(D?Oe:le*B)*(r.startsWith("top")?1:-1),Se=!D&&h!==null&&h!==void 0&&h.offsetWidth&&(ge=b.current[Z])!==null&&ge!==void 0&&ge.offsetWidth?((h==null?void 0:h.offsetWidth)-B*2*(le<3?le:3))/((he=b.current[Z])===null||he===void 0?void 0:he.offsetWidth):1;ie.transform="translate3d(".concat(de,", ").concat(we,"px, 0) scaleX(").concat(Se,")")}else ie.transform="translate3d(".concat(de,", 0, 0)")}return ve.createElement("div",{ref:_,className:ue("".concat(a,"-notice-wrapper"),W,ae==null?void 0:ae.wrapper),style:se(se(se({},q),ie),re==null?void 0:re.wrapper),onMouseEnter:function(){return R(function(De){return De.includes(Z)?De:[].concat(Ne(De),[Z])})},onMouseLeave:function(){return R(function(De){return De.filter(function(Ae){return Ae!==Z})})}},ve.createElement(RR,ye({},ne,{ref:function(De){Y>-1?b.current[Z]=De:delete b.current[Z]},prefixCls:a,classNames:ae,styles:re,className:ue(te,p==null?void 0:p.notice),style:X,times:U,key:K,eventKey:K,onNoticeClose:f,hovering:N&&j.length>0})))})},m_=i.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,l=e.motion,c=e.maxCount,u=e.className,d=e.style,f=e.onAllRemoved,v=e.stack,g=e.renderNotifications,p=i.useState([]),b=fe(p,2),C=b[0],S=b[1],h=function(N){var P,B=C.find(function(L){return L.key===N});B==null||(P=B.onClose)===null||P===void 0||P.call(B),S(function(L){return L.filter(function(k){return k.key!==N})})};i.useImperativeHandle(t,function(){return{open:function(N){S(function(P){var B=Ne(P),L=B.findIndex(function(H){return H.key===N.key}),k=se({},N);if(L>=0){var D;k.times=(((D=P[L])===null||D===void 0?void 0:D.times)||0)+1,B[L]=k}else k.times=0,B.push(k);return c>0&&B.length>c&&(B=B.slice(-c)),B})},close:function(N){h(N)},destroy:function(){S([])}}});var x=i.useState({}),w=fe(x,2),E=w[0],j=w[1];i.useEffect(function(){var M={};C.forEach(function(N){var P=N.placement,B=P===void 0?"topRight":P;B&&(M[B]=M[B]||[],M[B].push(N))}),Object.keys(E).forEach(function(N){M[N]=M[N]||[]}),j(M)},[C]);var R=function(N){j(function(P){var B=se({},P),L=B[N]||[];return L.length||delete B[N],B})},I=i.useRef(!1);if(i.useEffect(function(){Object.keys(E).length>0?I.current=!0:I.current&&(f==null||f(),I.current=!1)},[E]),!a)return null;var O=Object.keys(E);return fo.createPortal(i.createElement(i.Fragment,null,O.map(function(M){var N=E[M],P=i.createElement(f_,{key:M,configList:N,placement:M,prefixCls:r,className:u==null?void 0:u(M),style:d==null?void 0:d(M),motion:l,onNoticeClose:h,onAllNoticeRemoved:R,stack:v});return g?g(P,{prefixCls:r,key:M}):P})),a)}),v_=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],g_=function(){return document.body},yw=0;function p_(){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(l){var c=a[l];c!==void 0&&(e[l]=c)})}),e}function NR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?g_:t,r=e.motion,a=e.prefixCls,l=e.maxCount,c=e.className,u=e.style,d=e.onAllRemoved,f=e.stack,v=e.renderNotifications,g=Lt(e,v_),p=i.useState(),b=fe(p,2),C=b[0],S=b[1],h=i.useRef(),x=i.createElement(m_,{container:C,ref:h,prefixCls:a,motion:r,maxCount:l,className:c,style:u,onAllRemoved:d,stack:f,renderNotifications:v}),w=i.useState([]),E=fe(w,2),j=E[0],R=E[1],I=Xt(function(M){var N=p_(g,M);(N.key===null||N.key===void 0)&&(N.key="rc-notification-".concat(yw),yw+=1),R(function(P){return[].concat(Ne(P),[{type:"open",config:N}])})}),O=i.useMemo(function(){return{open:I,close:function(N){R(function(P){return[].concat(Ne(P),[{type:"close",key:N}])})},destroy:function(){R(function(N){return[].concat(Ne(N),[{type:"destroy"}])})}}},[]);return i.useEffect(function(){S(n())}),i.useEffect(function(){if(h.current&&j.length){j.forEach(function(P){switch(P.type){case"open":h.current.open(P.config);break;case"close":h.current.close(P.key);break;case"destroy":h.current.destroy();break}});var M,N;R(function(P){return(M!==P||!N)&&(M=P,N=P.filter(function(B){return!j.includes(B)})),N})}},[j]),[O,x]}var h_={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"},b_=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:h_}))},Io=i.forwardRef(b_);function Ad(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Iv(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function Cw(e){const{closable:t,closeIcon:n}=e||{};return ve.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 y_={},MR=(e,t,n=y_)=>{const r=Cw(e),a=Cw(t),[l]=Pa("global",vo.global),c=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,u=ve.useMemo(()=>Object.assign({closeIcon:ve.createElement(Po,null)},n),[n]),d=ve.useMemo(()=>r===!1?!1:r?Ad(u,a,r):a===!1?!1:a?Ad(u,a):u.closable?u:!1,[r,a,u]);return ve.useMemo(()=>{var f,v;if(d===!1)return[!1,null,c,{}];const{closeIconRender:g}=u,{closeIcon:p}=d;let b=p;const C=Rr(d,!0);return b!=null&&(g&&(b=g(p)),b=ve.isValidElement(b)?ve.cloneElement(b,Object.assign(Object.assign(Object.assign({},b.props),{"aria-label":(v=(f=b.props)===null||f===void 0?void 0:f["aria-label"])!==null&&v!==void 0?v:l.close}),C)):ve.createElement("span",Object.assign({"aria-label":l.close},C),b)),[!0,b,c,C]},[c,l.close,d,u])},h1=()=>ve.useReducer(e=>e+1,0);function TR(e,...t){const n=e||{};return t.reduce((r,a)=>(Object.keys(a||{}).forEach(l=>{const c=n[l],u=a[l];if(c&&typeof c=="object")if(u&&typeof u=="object")r[l]=TR(c,r[l],u);else{const{_default:d}=c;d&&(r[l]=r[l]||{},r[l][d]=ue(r[l][d],u))}else r[l]=ue(r[l],u)}),r),{})}function C_(e,...t){return i.useMemo(()=>TR.apply(void 0,[e].concat(t)),[t,e])}function S_(...e){return i.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function ty(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const a=t[r],l=n[r]||{};n[r]=a?ty(l,a):l}}),n}const x_=(e,t,n)=>{const r=C_.apply(void 0,[n].concat(Ne(e))),a=S_.apply(void 0,Ne(t));return i.useMemo(()=>[ty(r,n),ty(a,n)],[r,a,n])},$_=e=>{const[t,n]=i.useState(null);return[i.useCallback((a,l,c)=>{const u=t??a,d=Math.min(u||0,a),f=Math.max(u||0,a),v=l.slice(d,f+1).map(e),g=v.some(b=>!c.has(b)),p=[];return v.forEach(b=>{g?(c.has(b)||p.push(b),c.add(b)):(c.delete(b),p.push(b))}),n(g?f:null),p},[t]),n]},w_=()=>{const[e,t]=i.useState([]),n=i.useCallback(r=>(t(a=>[].concat(Ne(a),[r])),()=>{t(a=>a.filter(l=>l!==r))}),[]);return[e,n]};function E_(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}const O_=(e,t)=>i.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,l){return n[l]?n[l]:Reflect.get(a,l)}}):E_(r,n)}),R_=e=>{const t=i.useRef(e),[,n]=h1();return[()=>t.current,r=>{t.current=r,n()}]},ig=ve.createContext(void 0),tl=100,j_=10,b1=tl*j_,PR={Modal:tl,Drawer:tl,Popover:tl,Popconfirm:tl,Tooltip:tl,Tour:tl,FloatButton:tl},I_={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function N_(e){return e in PR}const zo=(e,t)=>{const[,n]=ia(),r=ve.useContext(ig),a=N_(e);let l;if(t!==void 0)l=[t,t];else{let c=r??0;a?c+=(r?0:n.zIndexPopupBase)+PR[e]:c+=I_[e],l=[r===void 0?t:c,c]}return l},M_=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:l,colorError:c,colorWarning:u,colorInfo:d,fontSizeLG:f,motionEaseInOutCirc:v,motionDurationSlow:g,marginXS:p,paddingXS:b,borderRadiusLG:C,zIndexPopup:S,contentPadding:h,contentBg:x}=e,w=`${t}-notice`,E=new Jt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:b,transform:"translateY(0)",opacity:1}}),j=new Jt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:b,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),R={padding:b,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:f},[`${w}-content`]:{display:"inline-block",padding:h,background:x,borderRadius:C,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:l},[`${t}-error > ${n}`]:{color:c},[`${t}-warning > ${n}`]:{color:u},[`${t}-info > ${n},
|
|
181
|
+
${t}-loading > ${n}`]:{color:d}};return[{[t]:Object.assign(Object.assign({},dn(e)),{color:a,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:S,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
182
|
+
${t}-move-up-appear,
|
|
183
|
+
${t}-move-up-enter
|
|
184
|
+
`]:{animationName:E,animationDuration:g,animationPlayState:"paused",animationTimingFunction:v},[`
|
|
185
|
+
${t}-move-up-appear${t}-move-up-appear-active,
|
|
186
|
+
${t}-move-up-enter${t}-move-up-enter-active
|
|
187
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:j,animationDuration:g,animationPlayState:"paused",animationTimingFunction:v},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${w}-wrapper`]:Object.assign({},R)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},R),{padding:0,textAlign:"start"})}]},T_=e=>({zIndexPopup:e.zIndexPopupBase+b1+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),zR=sn("Message",e=>{const t=tn(e,{height:150});return M_(t)},T_);var P_=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 z_={info:i.createElement(og,null),success:i.createElement(bs,null),error:i.createElement(hl,null),warning:i.createElement(ys,null),loading:i.createElement(Io,null)},DR=({prefixCls:e,type:t,icon:n,children:r})=>i.createElement("div",{className:ue(`${e}-custom-content`,`${e}-${t}`)},n||z_[t],i.createElement("span",null,r)),D_=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:l}=e,c=P_(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:u}=i.useContext(Rt),d=t||u("message"),f=cr(d),[v,g,p]=zR(d,f);return v(i.createElement(RR,Object.assign({},c,{prefixCls:d,className:ue(n,g,`${d}-notice-pure-panel`,p,f),eventKey:"pure",duration:null,content:i.createElement(DR,{prefixCls:d,type:r,icon:a},l)})))};function __(e,t){return{motionName:t??`${e}-move-up`}}function y1(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t==null||t()};return r.then=(a,l)=>n.then(a,l),r.promise=n,r}var A_=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 B_=8,k_=3,L_=({children:e,prefixCls:t})=>{const n=cr(t),[r,a,l]=zR(t,n);return r(i.createElement(IR,{classNames:{list:ue(a,l,n)}},e))},H_=(e,{prefixCls:t,key:n})=>i.createElement(L_,{prefixCls:t,key:n},e),F_=i.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:l,duration:c=k_,rtl:u,transitionName:d,onAllRemoved:f}=e,{getPrefixCls:v,getPopupContainer:g,message:p,direction:b}=i.useContext(Rt),C=r||v("message"),S=()=>({left:"50%",transform:"translateX(-50%)",top:n??B_}),h=()=>ue({[`${C}-rtl`]:u??b==="rtl"}),x=()=>__(C,d),w=i.createElement("span",{className:`${C}-close-x`},i.createElement(Po,{className:`${C}-close-icon`})),[E,j]=NR({prefixCls:C,style:S,className:h,motion:x,closable:!1,closeIcon:w,duration:c,getContainer:()=>(a==null?void 0:a())||(g==null?void 0:g())||document.body,maxCount:l,onAllRemoved:f,renderNotifications:H_});return i.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:C,message:p})),j});let Sw=0;function _R(e){const t=i.useRef(null);return Qo(),[i.useMemo(()=>{const r=d=>{var f;(f=t.current)===null||f===void 0||f.close(d)},a=d=>{if(!t.current){const I=()=>{};return I.then=()=>{},I}const{open:f,prefixCls:v,message:g}=t.current,p=`${v}-notice`,{content:b,icon:C,type:S,key:h,className:x,style:w,onClose:E}=d,j=A_(d,["content","icon","type","key","className","style","onClose"]);let R=h;return R==null&&(Sw+=1,R=`antd-message-${Sw}`),y1(I=>(f(Object.assign(Object.assign({},j),{key:R,content:i.createElement(DR,{prefixCls:v,type:S,icon:C},b),placement:"top",className:ue(S&&`${p}-${S}`,x,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),w),onClose:()=>{E==null||E(),I()}})),()=>{r(R)}))},c={open:a,destroy:d=>{var f;d!==void 0?r(d):(f=t.current)===null||f===void 0||f.destroy()}};return["info","success","warning","error","loading"].forEach(d=>{const f=(v,g,p)=>{let b;v&&typeof v=="object"&&"content"in v?b=v:b={content:v};let C,S;typeof g=="function"?S=g:(C=g,S=p);const h=Object.assign(Object.assign({onClose:S,duration:C},b),{type:d});return a(h)};c[d]=f}),c},[]),i.createElement(F_,Object.assign({key:"message-holder"},e,{ref:t}))]}function AR(e){return _R(e)}function BR(e,t){this.v=e,this.k=t}function ga(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}ga=function(c,u,d,f){function v(g,p){ga(c,g,function(b){return this._invoke(g,p,b)})}u?a?a(c,u,{value:d,enumerable:!f,configurable:!f,writable:!f}):c[u]=d:(v("next",0),v("throw",1),v("return",2))},ga(e,t,n,r)}function C1(){/*! 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 l(b,C,S,h){var x=C&&C.prototype instanceof u?C:u,w=Object.create(x.prototype);return ga(w,"_invoke",(function(E,j,R){var I,O,M,N=0,P=R||[],B=!1,L={p:0,n:0,v:e,a:k,f:k.bind(e,4),d:function(H,z){return I=H,O=0,M=e,L.n=z,c}};function k(D,H){for(O=D,M=H,t=0;!B&&N&&!z&&t<P.length;t++){var z,_=P[t],F=L.p,W=_[2];D>3?(z=W===H)&&(M=_[(O=_[4])?5:(O=3,3)],_[4]=_[5]=e):_[0]<=F&&((z=D<2&&F<_[1])?(O=0,L.v=H,L.n=_[1]):F<W&&(z=D<3||_[0]>H||H>W)&&(_[4]=D,_[5]=H,L.n=W,O=0))}if(z||D>1)return c;throw B=!0,H}return function(D,H,z){if(N>1)throw TypeError("Generator is already running");for(B&&H===1&&k(H,z),O=H,M=z;(t=O<2?e:M)||!B;){I||(O?O<3?(O>1&&(L.n=-1),k(O,M)):L.n=M:L.v=M);try{if(N=2,I){if(O||(D="next"),t=I[D]){if(!(t=t.call(I,M)))throw TypeError("iterator result is not an object");if(!t.done)return t;M=t.value,O<2&&(O=0)}else O===1&&(t=I.return)&&t.call(I),O<2&&(M=TypeError("The iterator does not provide a '"+D+"' method"),O=1);I=e}else if((t=(B=L.n<0)?M:E.call(j,L))!==c)break}catch(_){I=e,O=1,M=_}finally{N=1}}return{value:t,done:B}}})(b,S,h),!0),w}var c={};function u(){}function d(){}function f(){}t=Object.getPrototypeOf;var v=[][r]?t(t([][r]())):(ga(t={},r,function(){return this}),t),g=f.prototype=u.prototype=Object.create(v);function p(b){return Object.setPrototypeOf?Object.setPrototypeOf(b,f):(b.__proto__=f,ga(b,a,"GeneratorFunction")),b.prototype=Object.create(g),b}return d.prototype=f,ga(g,"constructor",f),ga(f,"constructor",d),d.displayName="GeneratorFunction",ga(f,a,"GeneratorFunction"),ga(g),ga(g,a,"Generator"),ga(g,r,function(){return this}),ga(g,"toString",function(){return"[object Generator]"}),(C1=function(){return{w:l,m:p}})()}function Nv(e,t){function n(a,l,c,u){try{var d=e[a](l),f=d.value;return f instanceof BR?t.resolve(f.v).then(function(v){n("next",v,c,u)},function(v){n("throw",v,c,u)}):t.resolve(f).then(function(v){d.value=v,c(d)},function(v){return n("throw",v,c,u)})}catch(v){u(v)}}var r;this.next||(ga(Nv.prototype),ga(Nv.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ga(this,"_invoke",function(a,l,c){function u(){return new t(function(d,f){n(a,c,d,f)})}return r=r?r.then(u,u):u()},!0)}function kR(e,t,n,r,a){return new Nv(C1().w(e,t,n,r),a||Promise)}function V_(e,t,n,r,a){var l=kR(e,t,n,r,a);return l.next().then(function(c){return c.done?c.value:l.next()})}function W_(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 xw(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($t(e)+" is not iterable")}function Fn(){var e=C1(),t=e.m(Fn),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 l(c){var u,d;return function(f){u||(u={stop:function(){return d(f.a,2)},catch:function(){return f.v},abrupt:function(g,p){return d(f.a,a[g],p)},delegateYield:function(g,p,b){return u.resultName=p,d(f.d,xw(g),b)},finish:function(g){return d(f.f,g)}},d=function(g,p,b){f.p=u.prev,f.n=u.next;try{return g(p,b)}finally{u.next=f.n}}),u.resultName&&(u[u.resultName]=f.v,u.resultName=void 0),u.sent=f.v,u.next=f.n;try{return c.call(this,u)}finally{f.p=u.prev,f.n=u.next}}}return(Fn=function(){return{wrap:function(d,f,v,g){return e.w(l(d),f,v,g&&g.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(d,f){return new BR(d,f)},AsyncIterator:Nv,async:function(d,f,v,g,p){return(r(f)?kR:V_)(l(d),f,v,g,p)},keys:W_,values:xw}})()}function $w(e,t,n,r,a,l,c){try{var u=e[l](c),d=u.value}catch(f){return void n(f)}u.done?t(d):Promise.resolve(d).then(r,a)}function wa(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var l=e.apply(t,n);function c(d){$w(l,r,a,c,u,"next",d)}function u(d){$w(l,r,a,c,u,"throw",d)}c(void 0)})}}var Jd=se({},mP),K_=Jd.version,p0=Jd.render,U_=Jd.unmountComponentAtNode,lg;try{var q_=Number((K_||"").split(".")[0]);q_>=18&&(lg=Jd.createRoot)}catch{}function ww(e){var t=Jd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&$t(t)==="object"&&(t.usingClientEntryPoint=e)}var Mv="__rc_react_root__";function G_(e,t){ww(!0);var n=t[Mv]||lg(t);ww(!1),n.render(e),t[Mv]=n}function X_(e,t){p0==null||p0(e,t)}function Y_(e,t){if(lg){G_(e,t);return}X_(e,t)}function Q_(e){return ny.apply(this,arguments)}function ny(){return ny=wa(Fn().mark(function e(t){return Fn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[Mv])===null||a===void 0||a.unmount(),delete t[Mv]}));case 1:case"end":return r.stop()}},e)})),ny.apply(this,arguments)}function Z_(e){U_(e)}function J_(e){return ry.apply(this,arguments)}function ry(){return ry=wa(Fn().mark(function e(t){return Fn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(lg===void 0){r.next=2;break}return r.abrupt("return",Q_(t));case 2:Z_(t);case 3:case"end":return r.stop()}},e)})),ry.apply(this,arguments)}const e7=(e,t)=>(Y_(e,t),()=>J_(t));let t7=e7;function S1(e){return t7}const h0=()=>({height:0,opacity:0}),Ew=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},n7=e=>({height:e?e.offsetHeight:0}),b0=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",zc=(e=_d)=>({motionName:`${e}-motion-collapse`,onAppearStart:h0,onEnterStart:h0,onAppearActive:Ew,onEnterActive:Ew,onLeaveStart:n7,onLeaveActive:h0,onAppearEnd:b0,onEnterEnd:b0,onLeaveEnd:b0,motionDeadline:500}),Uo=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function wn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Gc=(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(),l=a.width,c=a.height;if(l||c)return!0}}return!1}),r7=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(",")}}}}},a7=aR("Wave",r7),sg=`${_d}-wave-target`;function o7(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 i7(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:a}=getComputedStyle(e);return(t=[n,r,a].find(o7))!==null&&t!==void 0?t:null}function y0(e){return Number.isNaN(e)?0:e}const l7=e=>{const{className:t,target:n,component:r,registerUnmount:a}=e,l=i.useRef(null),c=i.useRef(null);i.useEffect(()=>{c.current=a()},[]);const[u,d]=i.useState(null),[f,v]=i.useState([]),[g,p]=i.useState(0),[b,C]=i.useState(0),[S,h]=i.useState(0),[x,w]=i.useState(0),[E,j]=i.useState(!1),R={left:g,top:b,width:S,height:x,borderRadius:f.map(M=>`${M}px`).join(" ")};u&&(R["--wave-color"]=u);function I(){const M=getComputedStyle(n);d(i7(n));const N=M.position==="static",{borderLeftWidth:P,borderTopWidth:B}=M;p(N?n.offsetLeft:y0(-Number.parseFloat(P))),C(N?n.offsetTop:y0(-Number.parseFloat(B))),h(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:L,borderTopRightRadius:k,borderBottomLeftRadius:D,borderBottomRightRadius:H}=M;v([L,k,H,D].map(z=>y0(Number.parseFloat(z))))}if(i.useEffect(()=>{if(n){const M=Yt(()=>{I(),j(!0)});let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(I),N.observe(n)),()=>{Yt.cancel(M),N==null||N.disconnect()}}},[n]),!E)return null;const O=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(sg));return i.createElement(Qr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(M,N)=>{var P,B;if(N.deadline||N.propertyName==="opacity"){const L=(P=l.current)===null||P===void 0?void 0:P.parentElement;(B=c.current)===null||B===void 0||B.call(c).then(()=>{L==null||L.remove()})}return!1}},({className:M},N)=>i.createElement("div",{ref:Ir(l,N),className:ue(t,M,{"wave-quick":O}),style:R}))},s7=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild);const l=S1();let c=null;function u(){return c}c=l(i.createElement(l7,Object.assign({},t,{target:e,registerUnmount:u})),a)},c7=(e,t,n)=>{const{wave:r}=i.useContext(Rt),[,a,l]=ia(),c=Xt(f=>{const v=e.current;if(r!=null&&r.disabled||!v)return;const g=v.querySelector(`.${sg}`)||v,{showEffect:p}=r||{};(p||s7)(g,{className:t,token:a,component:n,event:f,hashId:l})}),u=i.useRef(null);return f=>{Yt.cancel(u.current),u.current=Yt(()=>{c(f)})}},ef=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=i.useContext(Rt),l=i.useRef(null),c=a("wave"),[,u]=a7(c),d=c7(l,ue(c,u),r);if(ve.useEffect(()=>{const v=l.current;if(!v||v.nodeType!==window.Node.ELEMENT_NODE||n)return;const g=p=>{!Gc(p.target)||!v.getAttribute||v.getAttribute("disabled")||v.disabled||v.className.includes("disabled")&&!v.className.includes("disabled:")||v.getAttribute("aria-disabled")==="true"||v.className.includes("-leave")||d(p)};return v.addEventListener("click",g,!0),()=>{v.removeEventListener("click",g,!0)}},[n]),!ve.isValidElement(t))return t??null;const f=Oo(t)?Ir(pl(t),l):l;return $r(t,{ref:f})},Nr=e=>{const t=ve.useContext(ls);return ve.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},u7=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},d7=sn(["Space","Compact"],e=>[u7(e)],()=>({}),{resetStyle:!1});var LR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const cg=i.createContext(null),Do=(e,t)=>{const n=i.useContext(cg),r=i.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:l,isLastItem:c}=n,u=a==="vertical"?"-vertical-":"-";return ue(`${e}-compact${u}item`,{[`${e}-compact${u}first-item`]:l,[`${e}-compact${u}last-item`]:c,[`${e}-compact${u}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},f7=e=>{const{children:t}=e;return i.createElement(cg.Provider,{value:null},t)},m7=e=>{const{children:t}=e,n=LR(e,["children"]);return i.createElement(cg.Provider,{value:i.useMemo(()=>n,[n])},t)},v7=e=>{const{getPrefixCls:t,direction:n}=i.useContext(Rt),{size:r,direction:a,block:l,prefixCls:c,className:u,rootClassName:d,children:f}=e,v=LR(e,["size","direction","block","prefixCls","className","rootClassName","children"]),g=Nr(E=>r??E),p=t("space-compact",c),[b,C]=d7(p),S=ue(p,C,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:l,[`${p}-vertical`]:a==="vertical"},u,d),h=i.useContext(cg),x=Xr(f),w=i.useMemo(()=>x.map((E,j)=>{const R=(E==null?void 0:E.key)||`${p}-item-${j}`;return i.createElement(m7,{key:R,compactSize:g,compactDirection:a,isFirstItem:j===0&&(!h||(h==null?void 0:h.isFirstItem)),isLastItem:j===x.length-1&&(!h||(h==null?void 0:h.isLastItem))},E)}),[x,h,a,g,p]);return x.length===0?null:b(i.createElement("div",Object.assign({className:S},v),w))};var g7=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 HR=i.createContext(void 0),p7=e=>{const{getPrefixCls:t,direction:n}=i.useContext(Rt),{prefixCls:r,size:a,className:l}=e,c=g7(e,["prefixCls","size","className"]),u=t("btn-group",r),[,,d]=ia(),f=i.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),v=ue(u,{[`${u}-${f}`]:f,[`${u}-rtl`]:n==="rtl"},l,d);return i.createElement(HR.Provider,{value:a},i.createElement("div",Object.assign({},c,{className:v})))},Ow=/^[\u4E00-\u9FA5]{2}$/,ay=Ow.test.bind(Ow);function x1(e){return e==="danger"?{danger:!0}:{type:e}}function Rw(e){return typeof e=="string"}function C0(e){return e==="text"||e==="link"}function h7(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Rw(e.type)&&ay(e.props.children)?$r(e,{children:e.props.children.split("").join(n)}):Rw(e)?ay(e)?ve.createElement("span",null,e.split("").join(n)):ve.createElement("span",null,e):$R(e)?ve.createElement("span",null,e):e}function b7(e,t){let n=!1;const r=[];return ve.Children.forEach(e,a=>{const l=typeof a,c=l==="string"||l==="number";if(n&&c){const u=r.length-1,d=r[u];r[u]=`${d}${a}`}else r.push(a);n=c}),ve.Children.map(r,a=>h7(a,t))}["default","primary","danger"].concat(Ne(ul));const FR=i.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:l}=e,c=ue(`${l}-icon`,n);return ve.createElement("span",{ref:t,className:c,style:r},a)}),jw=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:l}=e,c=ue(`${n}-loading-icon`,r);return ve.createElement(FR,{prefixCls:n,className:c,style:a,ref:t},ve.createElement(Io,{className:l}))}),S0=()=>({width:0,opacity:0,transform:"scale(0)"}),x0=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),y7=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:l,mount:c}=e,u=!!n;return r?ve.createElement(jw,{prefixCls:t,className:a,style:l}):ve.createElement(Qr,{visible:u,motionName:`${t}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:S0,onAppearActive:x0,onEnterStart:S0,onEnterActive:x0,onLeaveStart:x0,onLeaveActive:S0},({className:d,style:f},v)=>{const g=Object.assign(Object.assign({},l),f);return ve.createElement(jw,{prefixCls:t,className:ue(a,d),style:g,ref:v})})},Iw=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),C7=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:l}=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}},Iw(`${t}-primary`,a),Iw(`${t}-danger`,l)]}};var S7=["b"],x7=["v"],$0=function(t){return Math.round(Number(t||0))},$7=function(t){if(t instanceof pn)return t;if(t&&$t(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=Lt(n,S7);return se(se({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Bd=(function(e){Xa(n,e);var t=go(n);function n(r){return ur(this,n),t.call(this,$7(r))}return dr(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),l=$0(a.s*100),c=$0(a.b*100),u=$0(a.h),d=a.a,f="hsb(".concat(u,", ").concat(l,"%, ").concat(c,"%)"),v="hsba(".concat(u,", ").concat(l,"%, ").concat(c,"%, ").concat(d.toFixed(d===0?0:2),")");return d===1?f:v}},{key:"toHsb",value:function(){var a=this.toHsv(),l=a.v,c=Lt(a,x7);return se(se({},c),{},{b:l,a:this.a})}}]),n})(pn),w7=function(t){return t instanceof Bd?t:new Bd(t)};w7("#1677ff");const E7=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",O7=(e,t)=>e?E7(e,t):"";let oy=(function(){function e(t){ur(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:l})=>({color:new e(a),percent:l})),this.metaColor=new Bd(this.colors[0].color.metaColor)):this.metaColor=new Bd(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return dr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return O7(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 l=n.colors[a];return r.percent===l.percent&&r.color.equals(l.color)}):this.toHexString()===n.toHexString()}}])})();var R7={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"},j7=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:R7}))},dl=i.forwardRef(j7),VR=ve.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,a=e.className,l=e.style,c=e.children,u=e.isActive,d=e.role,f=e.classNames,v=e.styles,g=ve.useState(u||r),p=fe(g,2),b=p[0],C=p[1];return ve.useEffect(function(){(r||u)&&C(!0)},[r,u]),b?ve.createElement("div",{ref:t,className:ue("".concat(n,"-content"),ee(ee({},"".concat(n,"-content-active"),u),"".concat(n,"-content-inactive"),!u),a),style:l,role:d},ve.createElement("div",{className:ue("".concat(n,"-content-box"),f==null?void 0:f.body),style:v==null?void 0:v.body},c)):null});VR.displayName="PanelContent";var I7=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],WR=ve.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,a=e.headerClass,l=e.isActive,c=e.onItemClick,u=e.forceRender,d=e.className,f=e.classNames,v=f===void 0?{}:f,g=e.styles,p=g===void 0?{}:g,b=e.prefixCls,C=e.collapsible,S=e.accordion,h=e.panelKey,x=e.extra,w=e.header,E=e.expandIcon,j=e.openMotion,R=e.destroyInactivePanel,I=e.children,O=Lt(e,I7),M=C==="disabled",N=x!=null&&typeof x!="boolean",P=ee(ee(ee({onClick:function(){c==null||c(h)},onKeyDown:function(_){(_.key==="Enter"||_.keyCode===ot.ENTER||_.which===ot.ENTER)&&(c==null||c(h))},role:S?"tab":"button"},"aria-expanded",l),"aria-disabled",M),"tabIndex",M?-1:0),B=typeof E=="function"?E(e):ve.createElement("i",{className:"arrow"}),L=B&&ve.createElement("div",ye({className:"".concat(b,"-expand-icon")},["header","icon"].includes(C)?P:{}),B),k=ue("".concat(b,"-item"),ee(ee({},"".concat(b,"-item-active"),l),"".concat(b,"-item-disabled"),M),d),D=ue(a,"".concat(b,"-header"),ee({},"".concat(b,"-collapsible-").concat(C),!!C),v.header),H=se({className:D,style:p.header},["header","icon"].includes(C)?{}:P);return ve.createElement("div",ye({},O,{ref:t,className:k}),ve.createElement("div",H,r&&L,ve.createElement("span",ye({className:"".concat(b,"-header-text")},C==="header"?P:{}),w),N&&ve.createElement("div",{className:"".concat(b,"-extra")},x)),ve.createElement(Qr,ye({visible:l,leavedClassName:"".concat(b,"-content-hidden")},j,{forceRender:u,removeOnLeave:R}),function(z,_){var F=z.className,W=z.style;return ve.createElement(VR,{ref:_,prefixCls:b,className:F,classNames:v,style:W,styles:p,isActive:l,forceRender:u,role:S?"tabpanel":void 0},I)}))}),N7=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],M7=function(t,n){var r=n.prefixCls,a=n.accordion,l=n.collapsible,c=n.destroyInactivePanel,u=n.onItemClick,d=n.activeKey,f=n.openMotion,v=n.expandIcon;return t.map(function(g,p){var b=g.children,C=g.label,S=g.key,h=g.collapsible,x=g.onItemClick,w=g.destroyInactivePanel,E=Lt(g,N7),j=String(S??p),R=h??l,I=w??c,O=function(P){R!=="disabled"&&(u(P),x==null||x(P))},M=!1;return a?M=d[0]===j:M=d.indexOf(j)>-1,ve.createElement(WR,ye({},E,{prefixCls:r,key:j,panelKey:j,isActive:M,accordion:a,openMotion:f,expandIcon:v,header:C,collapsible:R,onItemClick:O,destroyInactivePanel:I}),b)})},T7=function(t,n,r){if(!t)return null;var a=r.prefixCls,l=r.accordion,c=r.collapsible,u=r.destroyInactivePanel,d=r.onItemClick,f=r.activeKey,v=r.openMotion,g=r.expandIcon,p=t.key||String(n),b=t.props,C=b.header,S=b.headerClass,h=b.destroyInactivePanel,x=b.collapsible,w=b.onItemClick,E=!1;l?E=f[0]===p:E=f.indexOf(p)>-1;var j=x??c,R=function(M){j!=="disabled"&&(d(M),w==null||w(M))},I={key:p,panelKey:p,header:C,headerClass:S,isActive:E,prefixCls:a,destroyInactivePanel:h??u,openMotion:v,accordion:l,children:t.props.children,onItemClick:R,expandIcon:g,collapsible:j};return typeof t.type=="string"?t:(Object.keys(I).forEach(function(O){typeof I[O]>"u"&&delete I[O]}),ve.cloneElement(t,I))};function P7(e,t,n){return Array.isArray(e)?M7(e,n):Xr(t).map(function(r,a){return T7(r,a,n)})}function z7(e){var t=e;if(!Array.isArray(t)){var n=$t(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var D7=ve.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,a=e.destroyInactivePanel,l=a===void 0?!1:a,c=e.style,u=e.accordion,d=e.className,f=e.children,v=e.collapsible,g=e.openMotion,p=e.expandIcon,b=e.activeKey,C=e.defaultActiveKey,S=e.onChange,h=e.items,x=ue(r,d),w=bn([],{value:b,onChange:function(N){return S==null?void 0:S(N)},defaultValue:C,postState:z7}),E=fe(w,2),j=E[0],R=E[1],I=function(N){return R(function(){if(u)return j[0]===N?[]:[N];var P=j.indexOf(N),B=P>-1;return B?j.filter(function(L){return L!==N}):[].concat(Ne(j),[N])})};Xn(!f,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var O=P7(h,f,{prefixCls:r,accordion:u,openMotion:g,expandIcon:p,collapsible:v,destroyInactivePanel:l,onItemClick:I,activeKey:j});return ve.createElement("div",ye({ref:t,className:x,style:c,role:u?"tablist":void 0},Rr(e,{aria:!0,data:!0})),O)});const $1=Object.assign(D7,{Panel:WR});$1.Panel;const _7=i.forwardRef((e,t)=>{const{getPrefixCls:n}=i.useContext(Rt),{prefixCls:r,className:a,showArrow:l=!0}=e,c=n("collapse",r),u=ue({[`${c}-no-arrow`]:!l},a);return i.createElement($1.Panel,Object.assign({ref:t},e,{prefixCls:c,className:u}))}),tf=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
188
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
189
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),A7=e=>({animationDuration:e,animationFillMode:"both"}),B7=e=>({animationDuration:e,animationFillMode:"both"}),ll=(e,t,n,r,a=!1)=>{const l=a?"&":"";return{[`
|
|
190
|
+
${l}${e}-enter,
|
|
191
|
+
${l}${e}-appear
|
|
192
|
+
`]:Object.assign(Object.assign({},A7(r)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:Object.assign(Object.assign({},B7(r)),{animationPlayState:"paused"}),[`
|
|
193
|
+
${l}${e}-enter${e}-enter-active,
|
|
194
|
+
${l}${e}-appear${e}-appear-active
|
|
195
|
+
`]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},k7=new Jt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),L7=new Jt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),w1=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[ll(r,k7,L7,e.motionDurationMid,t),{[`
|
|
196
|
+
${a}${r}-enter,
|
|
197
|
+
${a}${r}-appear
|
|
198
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},H7=new Jt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),F7=new Jt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),V7=new Jt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),W7=new Jt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),K7=new Jt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),U7=new Jt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),q7=new Jt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),G7=new Jt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),X7={"move-up":{inKeyframes:q7,outKeyframes:G7},"move-down":{inKeyframes:H7,outKeyframes:F7},"move-left":{inKeyframes:V7,outKeyframes:W7},"move-right":{inKeyframes:K7,outKeyframes:U7}},Dc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:l}=X7[t];return[ll(r,a,l,e.motionDurationMid),{[`
|
|
199
|
+
${r}-enter,
|
|
200
|
+
${r}-appear
|
|
201
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ug=new Jt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),dg=new Jt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),fg=new Jt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),mg=new Jt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Y7=new Jt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Q7=new Jt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Z7=new Jt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),J7=new Jt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),eA={"slide-up":{inKeyframes:ug,outKeyframes:dg},"slide-down":{inKeyframes:fg,outKeyframes:mg},"slide-left":{inKeyframes:Y7,outKeyframes:Q7},"slide-right":{inKeyframes:Z7,outKeyframes:J7}},qo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:l}=eA[t];return[ll(r,a,l,e.motionDurationMid),{[`
|
|
202
|
+
${r}-enter,
|
|
203
|
+
${r}-appear
|
|
204
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},E1=new Jt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),tA=new Jt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Nw=new Jt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Mw=new Jt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),nA=new Jt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),rA=new Jt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),aA=new Jt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),oA=new Jt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),iA=new Jt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),lA=new Jt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),sA=new Jt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),cA=new Jt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),uA={zoom:{inKeyframes:E1,outKeyframes:tA},"zoom-big":{inKeyframes:Nw,outKeyframes:Mw},"zoom-big-fast":{inKeyframes:Nw,outKeyframes:Mw},"zoom-left":{inKeyframes:aA,outKeyframes:oA},"zoom-right":{inKeyframes:iA,outKeyframes:lA},"zoom-up":{inKeyframes:nA,outKeyframes:rA},"zoom-down":{inKeyframes:sA,outKeyframes:cA}},nf=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:l}=uA[t];return[ll(r,a,l,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
205
|
+
${r}-enter,
|
|
206
|
+
${r}-appear
|
|
207
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},dA=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:l,collapseHeaderPaddingSM:c,collapseHeaderPaddingLG:u,collapsePanelBorderRadius:d,lineWidth:f,lineType:v,colorBorder:g,colorText:p,colorTextHeading:b,colorTextDisabled:C,fontSizeLG:S,lineHeight:h,lineHeightLG:x,marginSM:w,paddingSM:E,paddingLG:j,paddingXS:R,motionDurationSlow:I,fontSizeIcon:O,contentPadding:M,fontHeight:N,fontHeightLG:P}=e,B=`${oe(f)} ${v} ${g}`;return{[t]:Object.assign(Object.assign({},dn(e)),{backgroundColor:a,border:B,borderRadius:d,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:B,"&:first-child":{[`
|
|
208
|
+
&,
|
|
209
|
+
& > ${t}-header`]:{borderRadius:`${oe(d)} ${oe(d)} 0 0`}},"&:last-child":{[`
|
|
210
|
+
&,
|
|
211
|
+
& > ${t}-header`]:{borderRadius:`0 0 ${oe(d)} ${oe(d)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:l,color:b,lineHeight:h,cursor:"pointer",transition:`all ${I}, visibility 0s`},qa(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:N,display:"flex",alignItems:"center",paddingInlineEnd:w},[`${t}-arrow`]:Object.assign(Object.assign({},hs()),{fontSize:O,transition:`transform ${I}`,svg:{transition:`transform ${I}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:B,[`& > ${t}-content-box`]:{padding:M},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:c,paddingInlineStart:R,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(E).sub(R).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:E}}},"&-large":{[`> ${t}-item`]:{fontSize:S,lineHeight:x,[`> ${t}-header`]:{padding:u,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:P,marginInlineStart:e.calc(j).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:j}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${oe(d)} ${oe(d)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:C,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:w}}}}})}},fA=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},mA=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:a,colorBorder:l}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${l}`},[`
|
|
212
|
+
> ${t}-item:last-child,
|
|
213
|
+
> ${t}-item:last-child ${t}-header
|
|
214
|
+
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:a,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},vA=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},gA=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"}),pA=sn("Collapse",e=>{const t=tn(e,{collapseHeaderPaddingSM:`${oe(e.paddingXS)} ${oe(e.paddingSM)}`,collapseHeaderPaddingLG:`${oe(e.padding)} ${oe(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[dA(t),mA(t),vA(t),fA(t),tf(t)]},gA),hA=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:a,className:l,style:c}=fr("collapse"),{prefixCls:u,className:d,rootClassName:f,style:v,bordered:g=!0,ghost:p,size:b,expandIconPosition:C="start",children:S,destroyInactivePanel:h,destroyOnHidden:x,expandIcon:w}=e,E=Nr(H=>{var z;return(z=b??H)!==null&&z!==void 0?z:"middle"}),j=n("collapse",u),R=n(),[I,O,M]=pA(j),N=i.useMemo(()=>C==="left"?"start":C==="right"?"end":C,[C]),P=w??a,B=i.useCallback((H={})=>{const z=typeof P=="function"?P(H):i.createElement(dl,{rotate:H.isActive?r==="rtl"?-90:90:void 0,"aria-label":H.isActive?"expanded":"collapsed"});return $r(z,()=>{var _;return{className:ue((_=z.props)===null||_===void 0?void 0:_.className,`${j}-arrow`)}})},[P,j,r]),L=ue(`${j}-icon-position-${N}`,{[`${j}-borderless`]:!g,[`${j}-rtl`]:r==="rtl",[`${j}-ghost`]:!!p,[`${j}-${E}`]:E!=="middle"},l,d,f,O,M),k=i.useMemo(()=>Object.assign(Object.assign({},zc(R)),{motionAppear:!1,leavedClassName:`${j}-content-hidden`}),[R,j]),D=i.useMemo(()=>S?Xr(S).map((H,z)=>{var _,F;const W=H.props;if(W!=null&&W.disabled){const q=(_=H.key)!==null&&_!==void 0?_:String(z),V=Object.assign(Object.assign({},wn(H.props,["disabled"])),{key:q,collapsible:(F=W.collapsible)!==null&&F!==void 0?F:"disabled"});return $r(H,V)}return H}):null,[S]);return I(i.createElement($1,Object.assign({ref:t,openMotion:k},wn(e,["rootClassName"]),{expandIcon:B,prefixCls:j,className:L,style:Object.assign(Object.assign({},c),v),destroyInactivePanel:x??h}),D))}),Tv=Object.assign(hA,{Panel:_7}),bA=e=>e instanceof oy?e:new oy(e),yA=(e,t)=>{const{r:n,g:r,b:a,a:l}=e.toRgb(),c=new Bd(e.toRgbString()).onBackground(t).toHsv();return l<=.5?c.v>.5:n*.299+r*.587+a*.114>192},KR=e=>{const{paddingInline:t,onlyIconSize:n}=e;return tn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},UR=e=>{var t,n,r,a,l,c;const u=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,d=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,f=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,v=(a=e.contentLineHeight)!==null&&a!==void 0?a:lv(u),g=(l=e.contentLineHeightSM)!==null&&l!==void 0?l:lv(d),p=(c=e.contentLineHeightLG)!==null&&c!==void 0?c:lv(f),b=yA(new oy(e.colorBgSolid),"#fff")?"#000":"#fff",C=ul.reduce((S,h)=>Object.assign(Object.assign({},S),{[`${h}ShadowColor`]:`0 ${oe(e.controlOutlineWidth)} 0 ${cd(e[`${h}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},C),{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:d,contentFontSizeLG:f,contentLineHeight:v,contentLineHeightSM:g,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-u*v)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-d*g)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-f*p)/2-e.lineWidth,0)})},CA=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,motionDurationSlow:l,motionEaseInOut:c,iconGap:u,calc:d}=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:`${oe(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`]:hs(),"> a":{color:"currentColor"},"&:not(:disabled)":qa(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(f=>`${f} ${l} ${c}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:d(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:d(u).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:d(u).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:d(u).mul(-1).equal()}}}}}},qR=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),SA=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),xA=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),vg=(e,t,n,r,a,l,c,u)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},qR(e,Object.assign({background:t},c),Object.assign({background:t},u))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:l||void 0}})}),$A=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},xA(e))}),wA=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),gg=(e,t,n,r)=>{const l=r&&["link","text"].includes(r)?wA:$A;return Object.assign(Object.assign({},l(e)),qR(e.componentCls,t,n))},pg=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},gg(e,r,a))}),hg=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},gg(e,r,a))}),bg=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),yg=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},gg(e,n,r))}),Go=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},gg(e,r,a,n))}),EA=e=>{const{componentCls:t}=e;return ul.reduce((n,r)=>{const a=e[`${r}6`],l=e[`${r}1`],c=e[`${r}5`],u=e[`${r}2`],d=e[`${r}3`],f=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`]},pg(e,e.colorTextLightSolid,a,{background:c},{background:f})),hg(e,a,e.colorBgContainer,{color:c,borderColor:c,background:e.colorBgContainer},{color:f,borderColor:f,background:e.colorBgContainer})),bg(e)),yg(e,l,{color:a,background:u},{color:a,background:d})),Go(e,a,"link",{color:c},{color:f})),Go(e,a,"text",{color:c,background:l},{color:f,background:d}))})},{})},OA=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},pg(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),bg(e)),yg(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),vg(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Go(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),RA=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},hg(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),bg(e)),yg(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Go(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Go(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),vg(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),jA=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},pg(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),hg(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),bg(e)),yg(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Go(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Go(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),vg(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),IA=e=>Object.assign(Object.assign({},Go(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),vg(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),NA=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:OA(e),[`${t}-color-primary`]:RA(e),[`${t}-color-dangerous`]:jA(e),[`${t}-color-link`]:IA(e)},EA(e))},MA=e=>Object.assign(Object.assign(Object.assign(Object.assign({},hg(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Go(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),pg(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Go(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),O1=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:l,buttonPaddingHorizontal:c,iconCls:u,buttonPaddingVertical:d,buttonIconOnlyFontSize:f}=e;return[{[t]:{fontSize:a,height:r,padding:`${oe(d)} ${oe(c)}`,borderRadius:l,[`&${n}-icon-only`]:{width:r,[u]:{fontSize:f}}}},{[`${n}${n}-circle${t}`]:SA(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},TA=e=>{const t=tn(e,{fontSize:e.contentFontSize});return O1(t,e.componentCls)},PA=e=>{const t=tn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return O1(t,`${e.componentCls}-sm`)},zA=e=>{const t=tn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return O1(t,`${e.componentCls}-lg`)},DA=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},_A=sn("Button",e=>{const t=KR(e);return[CA(t),TA(t),PA(t),zA(t),DA(t),NA(t),MA(t),C7(t)]},UR,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function AA(e,t,n,r){const{focusElCls:a,focus:l,borderElCls:c}=n,u=c?"> *":"",d=["hover",l?"focus":null,"active"].filter(Boolean).map(f=>`&:${f} ${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({[d]:{zIndex:3}},a?{[`&${a}`]:{zIndex:3}}:{}),{[`&[disabled] ${u}`]:{zIndex:0}})}}function BA(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 Cs(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,a=r||n,l=`${a}-compact`;return{[l]:Object.assign(Object.assign({},AA(e,l,t,a)),BA(a,l,t))}}function kA(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 LA(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 HA(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},kA(e,t,e.componentCls)),LA(e.componentCls,t))}}const FA=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:a}=e,l=a(r).mul(-1).equal(),c=u=>{const d=`${t}-compact${u?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${d} + ${d}::before`]:{position:"absolute",top:u?l:0,insetInlineStart:u?0:l,backgroundColor:n,content:'""',width:u?"100%":r,height:u?r:"100%"}}};return Object.assign(Object.assign({},c()),c(!0))},VA=Uc(["Button","compact"],e=>{const t=KR(e);return[Cs(t),HA(t),FA(t)]},UR);var WA=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 KA(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const UA={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},qA=ve.forwardRef((e,t)=>{var n,r;const{loading:a=!1,prefixCls:l,color:c,variant:u,type:d,danger:f=!1,shape:v,size:g,styles:p,disabled:b,className:C,rootClassName:S,children:h,icon:x,iconPosition:w="start",ghost:E=!1,block:j=!1,htmlType:R="button",classNames:I,style:O={},autoInsertSpace:M,autoFocus:N}=e,P=WA(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),B=d||"default",{button:L}=ve.useContext(Rt),k=v||(L==null?void 0:L.shape)||"default",[D,H]=i.useMemo(()=>{if(c&&u)return[c,u];if(d||f){const Le=UA[B]||[];return f?["danger",Le[1]]:Le}return L!=null&&L.color&&(L!=null&&L.variant)?[L.color,L.variant]:["default","outlined"]},[c,u,d,f,L==null?void 0:L.color,L==null?void 0:L.variant,B]),_=D==="danger"?"dangerous":D,{getPrefixCls:F,direction:W,autoInsertSpace:q,className:V,style:G,classNames:K,styles:U}=fr("button"),Z=(n=M??q)!==null&&n!==void 0?n:!0,Q=F("btn",l),[te,X,ae]=_A(Q),re=i.useContext(Vr),ne=b??re,Y=i.useContext(HR),ie=i.useMemo(()=>KA(a),[a]),[le,de]=i.useState(ie.loading),[ce,ge]=i.useState(!1),he=i.useRef(null),Oe=Si(t,he),je=i.Children.count(h)===1&&!x&&!C0(H),pe=i.useRef(!0);ve.useEffect(()=>(pe.current=!1,()=>{pe.current=!0}),[]),nn(()=>{let Le=null;ie.delay>0?Le=setTimeout(()=>{Le=null,de(!0)},ie.delay):de(ie.loading);function et(){Le&&(clearTimeout(Le),Le=null)}return et},[ie.delay,ie.loading]),i.useEffect(()=>{if(!he.current||!Z)return;const Le=he.current.textContent||"";je&&ay(Le)?ce||ge(!0):ce&&ge(!1)}),i.useEffect(()=>{N&&he.current&&he.current.focus()},[]);const we=ve.useCallback(Le=>{var et;if(le||ne){Le.preventDefault();return}(et=e.onClick)===null||et===void 0||et.call(e,("href"in e,Le))},[e.onClick,le,ne]),{compactSize:Se,compactItemClassnames:Ce}=Do(Q,W),De={large:"lg",small:"sm",middle:void 0},Ae=Nr(Le=>{var et,bt;return(bt=(et=g??Se)!==null&&et!==void 0?et:Y)!==null&&bt!==void 0?bt:Le}),Ye=Ae&&(r=De[Ae])!==null&&r!==void 0?r:"",Ke=le?"loading":x,Fe=wn(P,["navigate"]),Ge=ue(Q,X,ae,{[`${Q}-${k}`]:k!=="default"&&k,[`${Q}-${B}`]:B,[`${Q}-dangerous`]:f,[`${Q}-color-${_}`]:_,[`${Q}-variant-${H}`]:H,[`${Q}-${Ye}`]:Ye,[`${Q}-icon-only`]:!h&&h!==0&&!!Ke,[`${Q}-background-ghost`]:E&&!C0(H),[`${Q}-loading`]:le,[`${Q}-two-chinese-chars`]:ce&&Z&&!le,[`${Q}-block`]:j,[`${Q}-rtl`]:W==="rtl",[`${Q}-icon-end`]:w==="end"},Ce,C,S,V),Te=Object.assign(Object.assign({},G),O),Ee=ue(I==null?void 0:I.icon,K.icon),_e=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),U.icon||{}),Re=Le=>ve.createElement(FR,{prefixCls:Q,className:Ee,style:_e},Le),Pe=()=>ve.createElement(y7,{existIcon:!!x,prefixCls:Q,loading:le,mount:pe.current});let be;x&&!le?be=Re(x):a&&typeof a=="object"&&a.icon?be=Re(a.icon):be=Pe();const $e=h||h===0?b7(h,je&&Z):null;if(Fe.href!==void 0)return te(ve.createElement("a",Object.assign({},Fe,{className:ue(Ge,{[`${Q}-disabled`]:ne}),href:ne?void 0:Fe.href,style:Te,onClick:we,ref:Oe,tabIndex:ne?-1:0,"aria-disabled":ne}),be,$e));let Me=ve.createElement("button",Object.assign({},P,{type:R,className:Ge,style:Te,onClick:we,disabled:ne,ref:Oe}),be,$e,Ce&&ve.createElement(VA,{prefixCls:Q}));return C0(H)||(Me=ve.createElement(ef,{component:"Button",disabled:le},Me)),te(Me)}),nt=qA;nt.Group=p7;nt.__ANT_BUTTON=!0;const w0=e=>typeof(e==null?void 0:e.then)=="function",R1=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:l,autoFocus:c,emitEvent:u,isSilent:d,quitOnNullishReturnValue:f,actionFn:v}=e,g=i.useRef(!1),p=i.useRef(null),[b,C]=ss(!1),S=(...w)=>{l==null||l.apply(void 0,w)};i.useEffect(()=>{let w=null;return c&&(w=setTimeout(()=>{var E;(E=p.current)===null||E===void 0||E.focus({preventScroll:!0})})),()=>{w&&clearTimeout(w)}},[c]);const h=w=>{w0(w)&&(C(!0),w.then((...E)=>{C(!1,!0),S.apply(void 0,E),g.current=!1},E=>{if(C(!1,!0),g.current=!1,!(d!=null&&d()))return Promise.reject(E)}))},x=w=>{if(g.current)return;if(g.current=!0,!v){S();return}let E;if(u){if(E=v(w),f&&!w0(E)){g.current=!1,S(w);return}}else if(v.length)E=v(l),g.current=!1;else if(E=v(),!w0(E)){S();return}h(E)};return i.createElement(nt,Object.assign({},x1(t),{onClick:x,loading:b,prefixCls:r},a,{ref:p}),n)},rf=ve.createContext({}),{Provider:GR}=rf,Tw=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:l,close:c,onCancel:u,onConfirm:d}=i.useContext(rf);return a?ve.createElement(R1,{isSilent:r,actionFn:u,close:(...f)=>{c==null||c.apply(void 0,f),d==null||d(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${l}-btn`},n):null},Pw=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:l,okType:c,onConfirm:u,onOk:d}=i.useContext(rf);return ve.createElement(R1,{isSilent:n,type:c||"primary",actionFn:d,close:(...f)=>{t==null||t.apply(void 0,f),u==null||u(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},l)};var XR=i.createContext(null),zw=[];function GA(e,t){var n=i.useState(function(){if(!aa())return null;var C=document.createElement("div");return C}),r=fe(n,1),a=r[0],l=i.useRef(!1),c=i.useContext(XR),u=i.useState(zw),d=fe(u,2),f=d[0],v=d[1],g=c||(l.current?void 0:function(C){v(function(S){var h=[C].concat(Ne(S));return h})});function p(){a.parentElement||document.body.appendChild(a),l.current=!0}function b(){var C;(C=a.parentElement)===null||C===void 0||C.removeChild(a),l.current=!1}return nn(function(){return e?c?c(p):p():b(),b},[e]),nn(function(){f.length&&(f.forEach(function(C){return C()}),v(zw))},[f]),[a,g]}var E0;function YR(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,l;if(e){var c=getComputedStyle(e);r.scrollbarColor=c.scrollbarColor,r.scrollbarWidth=c.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),d=parseInt(u.width,10),f=parseInt(u.height,10);try{var v=d?"width: ".concat(u.width,";"):"",g=f?"height: ".concat(u.height,";"):"";hi(`
|
|
215
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
216
|
+
`).concat(v,`
|
|
217
|
+
`).concat(g,`
|
|
218
|
+
}`),t)}catch(C){console.error(C),a=d,l=f}}document.body.appendChild(n);var p=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,b=e&&l&&!isNaN(l)?l:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Td(t),{width:p,height:b}}function Dw(e){return typeof document>"u"?0:(E0===void 0&&(E0=YR()),E0.width)}function iy(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:YR(e)}function XA(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var YA="rc-util-locker-".concat(Date.now()),_w=0;function QA(e){var t=!!e,n=i.useState(function(){return _w+=1,"".concat(YA,"_").concat(_w)}),r=fe(n,1),a=r[0];nn(function(){if(t){var l=iy(document.body).width,c=XA();hi(`
|
|
219
|
+
html body {
|
|
220
|
+
overflow-y: hidden;
|
|
221
|
+
`.concat(c?"width: calc(100% - ".concat(l,"px);"):"",`
|
|
222
|
+
}`),a)}else Td(a);return function(){Td(a)}},[t,a])}var ZA=!1;function JA(e){return ZA}var Aw=function(t){return t===!1?!1:!aa()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},j1=i.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var l=e.autoDestroy,c=l===void 0?!0:l,u=e.children,d=i.useState(n),f=fe(d,2),v=f[0],g=f[1],p=v||n;i.useEffect(function(){(c||n)&&g(n)},[n,c]);var b=i.useState(function(){return Aw(a)}),C=fe(b,2),S=C[0],h=C[1];i.useEffect(function(){var B=Aw(a);h(B??null)});var x=GA(p&&!S),w=fe(x,2),E=w[0],j=w[1],R=S??E;QA(r&&n&&aa()&&(R===E||R===document.body));var I=null;if(u&&Oo(u)&&t){var O=u;I=O.ref}var M=Si(I,t);if(!p||!aa()||S===void 0)return null;var N=R===!1||JA(),P=u;return t&&(P=i.cloneElement(u,{ref:M})),i.createElement(XR.Provider,{value:j},N?P:fo.createPortal(P,R))}),QR=i.createContext({});function e9(){var e=se({},Qv);return e.useId}var Bw=0,kw=e9();const af=kw?(function(t){var n=kw();return t||n}):(function(t){var n=i.useState("ssr-id"),r=fe(n,2),a=r[0],l=r[1];return i.useEffect(function(){var c=Bw;Bw+=1,l("rc_unique_".concat(c))},[]),t||a});function Lw(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Hw(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function t9(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=Hw(a),n.top+=Hw(a,!0),n}const n9=i.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var r9={width:0,height:0,overflow:"hidden",outline:"none"},a9={outline:"none"},ZR=ve.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,l=e.title,c=e.ariaId,u=e.footer,d=e.closable,f=e.closeIcon,v=e.onClose,g=e.children,p=e.bodyStyle,b=e.bodyProps,C=e.modalRender,S=e.onMouseDown,h=e.onMouseUp,x=e.holderRef,w=e.visible,E=e.forceRender,j=e.width,R=e.height,I=e.classNames,O=e.styles,M=ve.useContext(QR),N=M.panel,P=Si(x,N),B=i.useRef(),L=i.useRef();ve.useImperativeHandle(t,function(){return{focus:function(){var G;(G=B.current)===null||G===void 0||G.focus({preventScroll:!0})},changeActive:function(G){var K=document,U=K.activeElement;G&&U===L.current?B.current.focus({preventScroll:!0}):!G&&U===B.current&&L.current.focus({preventScroll:!0})}}});var k={};j!==void 0&&(k.width=j),R!==void 0&&(k.height=R);var D=u?ve.createElement("div",{className:ue("".concat(n,"-footer"),I==null?void 0:I.footer),style:se({},O==null?void 0:O.footer)},u):null,H=l?ve.createElement("div",{className:ue("".concat(n,"-header"),I==null?void 0:I.header),style:se({},O==null?void 0:O.header)},ve.createElement("div",{className:"".concat(n,"-title"),id:c},l)):null,z=i.useMemo(function(){return $t(d)==="object"&&d!==null?d:d?{closeIcon:f??ve.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[d,f,n]),_=Rr(z,!0),F=$t(d)==="object"&&d.disabled,W=d?ve.createElement("button",ye({type:"button",onClick:v,"aria-label":"Close"},_,{className:"".concat(n,"-close"),disabled:F}),z.closeIcon):null,q=ve.createElement("div",{className:ue("".concat(n,"-content"),I==null?void 0:I.content),style:O==null?void 0:O.content},W,H,ve.createElement("div",ye({className:ue("".concat(n,"-body"),I==null?void 0:I.body),style:se(se({},p),O==null?void 0:O.body)},b),g),D);return ve.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?c:null,"aria-modal":"true",ref:P,style:se(se({},a),k),className:ue(n,r),onMouseDown:S,onMouseUp:h},ve.createElement("div",{ref:B,tabIndex:0,style:a9},ve.createElement(n9,{shouldUpdate:w||E},C?C(q):q)),ve.createElement("div",{tabIndex:0,ref:L,style:r9}))}),JR=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,l=e.className,c=e.visible,u=e.forceRender,d=e.destroyOnClose,f=e.motionName,v=e.ariaId,g=e.onVisibleChanged,p=e.mousePosition,b=i.useRef(),C=i.useState(),S=fe(C,2),h=S[0],x=S[1],w={};h&&(w.transformOrigin=h);function E(){var j=t9(b.current);x(p&&(p.x||p.y)?"".concat(p.x-j.left,"px ").concat(p.y-j.top,"px"):"")}return i.createElement(Qr,{visible:c,onVisibleChanged:g,onAppearPrepare:E,onEnterPrepare:E,forceRender:u,motionName:f,removeOnLeave:d,ref:b},function(j,R){var I=j.className,O=j.style;return i.createElement(ZR,ye({},e,{ref:t,title:r,ariaId:v,prefixCls:n,holderRef:R,style:se(se(se({},O),a),w),className:ue(l,I)}))})});JR.displayName="Content";var o9=function(t){var n=t.prefixCls,r=t.style,a=t.visible,l=t.maskProps,c=t.motionName,u=t.className;return i.createElement(Qr,{key:"mask",visible:a,motionName:c,leavedClassName:"".concat(n,"-mask-hidden")},function(d,f){var v=d.className,g=d.style;return i.createElement("div",ye({ref:f,style:se(se({},g),r),className:ue("".concat(n,"-mask"),v,u)},l))})},i9=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,a=t.zIndex,l=t.visible,c=l===void 0?!1:l,u=t.keyboard,d=u===void 0?!0:u,f=t.focusTriggerAfterClose,v=f===void 0?!0:f,g=t.wrapStyle,p=t.wrapClassName,b=t.wrapProps,C=t.onClose,S=t.afterOpenChange,h=t.afterClose,x=t.transitionName,w=t.animation,E=t.closable,j=E===void 0?!0:E,R=t.mask,I=R===void 0?!0:R,O=t.maskTransitionName,M=t.maskAnimation,N=t.maskClosable,P=N===void 0?!0:N,B=t.maskStyle,L=t.maskProps,k=t.rootClassName,D=t.classNames,H=t.styles,z=i.useRef(),_=i.useRef(),F=i.useRef(),W=i.useState(c),q=fe(W,2),V=q[0],G=q[1],K=af();function U(){Rb(_.current,document.activeElement)||(z.current=document.activeElement)}function Z(){if(!Rb(_.current,document.activeElement)){var de;(de=F.current)===null||de===void 0||de.focus()}}function Q(de){if(de)Z();else{if(G(!1),I&&z.current&&v){try{z.current.focus({preventScroll:!0})}catch{}z.current=null}V&&(h==null||h())}S==null||S(de)}function te(de){C==null||C(de)}var X=i.useRef(!1),ae=i.useRef(),re=function(){clearTimeout(ae.current),X.current=!0},ne=function(){ae.current=setTimeout(function(){X.current=!1})},Y=null;P&&(Y=function(ce){X.current?X.current=!1:_.current===ce.target&&te(ce)});function ie(de){if(d&&de.keyCode===ot.ESC){de.stopPropagation(),te(de);return}c&&de.keyCode===ot.TAB&&F.current.changeActive(!de.shiftKey)}i.useEffect(function(){c&&(G(!0),U())},[c]),i.useEffect(function(){return function(){clearTimeout(ae.current)}},[]);var le=se(se(se({zIndex:a},g),H==null?void 0:H.wrapper),{},{display:V?null:"none"});return i.createElement("div",ye({className:ue("".concat(r,"-root"),k)},Rr(t,{data:!0})),i.createElement(o9,{prefixCls:r,visible:I&&c,motionName:Lw(r,O,M),style:se(se({zIndex:a},B),H==null?void 0:H.mask),maskProps:L,className:D==null?void 0:D.mask}),i.createElement("div",ye({tabIndex:-1,onKeyDown:ie,className:ue("".concat(r,"-wrap"),p,D==null?void 0:D.wrapper),ref:_,onClick:Y,style:le},b),i.createElement(JR,ye({},t,{onMouseDown:re,onMouseUp:ne,ref:F,closable:j,ariaId:K,prefixCls:r,visible:c&&V,onClose:te,onVisibleChanged:Q,motionName:Lw(r,x,w)}))))},e6=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,l=t.destroyOnClose,c=l===void 0?!1:l,u=t.afterClose,d=t.panelRef,f=i.useState(n),v=fe(f,2),g=v[0],p=v[1],b=i.useMemo(function(){return{panel:d}},[d]);return i.useEffect(function(){n&&p(!0)},[n]),!a&&c&&!g?null:i.createElement(QR.Provider,{value:b},i.createElement(j1,{open:n||a||g,autoDestroy:!1,getContainer:r,autoLock:n||g},i.createElement(i9,ye({},t,{destroyOnClose:c,afterClose:function(){u==null||u(),p(!1)}}))))};e6.displayName="Dialog";var Ql="RC_FORM_INTERNAL_HOOKS",or=function(){Xn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},cs=i.createContext({getFieldValue:or,getFieldsValue:or,getFieldError:or,getFieldWarning:or,getFieldsError:or,isFieldsTouched:or,isFieldTouched:or,isFieldValidating:or,isFieldsValidating:or,resetFields:or,setFields:or,setFieldValue:or,setFieldsValue:or,validateFields:or,submit:or,getInternalHooks:function(){return or(),{dispatch:or,initEntityValue:or,registerField:or,useSubscribe:or,setInitialValues:or,destroyForm:or,setCallbacks:or,registerWatch:or,getFields:or,setValidateMessages:or,setPreserve:or,getInitialValue:or}}}),kd=i.createContext(null);function ly(e){return e==null?[]:Array.isArray(e)?e:[e]}function l9(e){return e&&!!e._init}function sy(){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",tel:"%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 cy=sy();function s9(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function c9(e,t,n){if(Jv())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&Nd(a,n.prototype),a}function uy(e){var t=typeof Map=="function"?new Map:void 0;return uy=function(r){if(r===null||!s9(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 c9(r,arguments,is(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Nd(a,r)},uy(e)}var u9=/%[sdj%]/g,d9=function(){};function dy(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 Wa(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,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var c=e.replace(u9,function(u){if(u==="%%")return"%";if(a>=l)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 f9(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Yr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||f9(t)&&typeof e=="string"&&!e)}function m9(e,t,n){var r=[],a=0,l=e.length;function c(u){r.push.apply(r,Ne(u||[])),a++,a===l&&n(r)}e.forEach(function(u){t(u,c)})}function Fw(e,t,n){var r=0,a=e.length;function l(c){if(c&&c.length){n(c);return}var u=r;r=r+1,u<a?t(e[u],l):n([])}l([])}function v9(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ne(e[n]||[]))}),t}var Vw=(function(e){Xa(n,e);var t=go(n);function n(r,a){var l;return ur(this,n),l=t.call(this,"Async Validation Error"),ee(xt(l),"errors",void 0),ee(xt(l),"fields",void 0),l.errors=r,l.fields=a,l}return dr(n)})(uy(Error));function g9(e,t,n,r,a){if(t.first){var l=new Promise(function(p,b){var C=function(x){return r(x),x.length?b(new Vw(x,dy(x))):p(a)},S=v9(e);Fw(S,n,C)});return l.catch(function(p){return p}),l}var c=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),d=u.length,f=0,v=[],g=new Promise(function(p,b){var C=function(h){if(v.push.apply(v,h),f++,f===d)return r(v),v.length?b(new Vw(v,dy(v))):p(a)};u.length||(r(v),p(a)),u.forEach(function(S){var h=e[S];c.indexOf(S)!==-1?Fw(h,n,C):m9(h,n,C)})});return g.catch(function(p){return p}),g}function p9(e){return!!(e&&e.message!==void 0)}function h9(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Ww(e,t){return function(n){var r;return e.fullFields?r=h9(t,e.fullFields):r=t[n.field||e.fullField],p9(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 Kw(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];$t(r)==="object"&&$t(e[n])==="object"?e[n]=se(se({},e[n]),r):e[n]=r}}return e}var oc="enum",b9=function(t,n,r,a,l){t[oc]=Array.isArray(t[oc])?t[oc]:[],t[oc].indexOf(n)===-1&&a.push(Wa(l.messages[oc],t.fullField,t[oc].join(", ")))},y9=function(t,n,r,a,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(Wa(l.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(Wa(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},C9=function(t,n,r,a,l){var c=typeof t.len=="number",u=typeof t.min=="number",d=typeof t.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v=n,g=null,p=typeof n=="number",b=typeof n=="string",C=Array.isArray(n);if(p?g="number":b?g="string":C&&(g="array"),!g)return!1;C&&(v=n.length),b&&(v=n.replace(f,"_").length),c?v!==t.len&&a.push(Wa(l.messages[g].len,t.fullField,t.len)):u&&!d&&v<t.min?a.push(Wa(l.messages[g].min,t.fullField,t.min)):d&&!u&&v>t.max?a.push(Wa(l.messages[g].max,t.fullField,t.max)):u&&d&&(v<t.min||v>t.max)&&a.push(Wa(l.messages[g].range,t.fullField,t.min,t.max))},t6=function(t,n,r,a,l,c){t.required&&(!r.hasOwnProperty(t.field)||Yr(n,c||t.type))&&a.push(Wa(l.messages.required,t.fullField))},zm;const S9=(function(){if(zm)return zm;var e="[a-fA-F\\d:]",t=function(I){return I&&I.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}|:))")],l="(?:%[0-9a-zA-Z]{1,})?",c="(?:".concat(a.join("|"),")").concat(l),u=new RegExp("(?:^".concat(n,"$)|(?:^").concat(c,"$)")),d=new RegExp("^".concat(n,"$")),f=new RegExp("^".concat(c,"$")),v=function(I){return I&&I.exact?u:new RegExp("(?:".concat(t(I)).concat(n).concat(t(I),")|(?:").concat(t(I)).concat(c).concat(t(I),")"),"g")};v.v4=function(R){return R&&R.exact?d:new RegExp("".concat(t(R)).concat(n).concat(t(R)),"g")},v.v6=function(R){return R&&R.exact?f:new RegExp("".concat(t(R)).concat(c).concat(t(R)),"g")};var g="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",b=v.v4().source,C=v.v6().source,S="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",x="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",w="(?::\\d{2,5})?",E='(?:[/?#][^\\s"]*)?',j="(?:".concat(g,"|www\\.)").concat(p,"(?:localhost|").concat(b,"|").concat(C,"|").concat(S).concat(h).concat(x,")").concat(w).concat(E);return zm=new RegExp("(?:^".concat(j,"$)"),"i"),zm});var O0={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,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ud={integer:function(t){return ud.number(t)&&parseInt(t,10)===t},float:function(t){return ud.number(t)&&!ud.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return $t(t)==="object"&&!ud.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(O0.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(O0.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(S9())},hex:function(t){return typeof t=="string"&&!!t.match(O0.hex)}},x9=function(t,n,r,a,l){if(t.required&&n===void 0){t6(t,n,r,a,l);return}var c=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],u=t.type;c.indexOf(u)>-1?ud[u](n)||a.push(Wa(l.messages.types[u],t.fullField,t.type)):u&&$t(n)!==t.type&&a.push(Wa(l.messages.types[u],t.fullField,t.type))},$9=function(t,n,r,a,l){(/^\s+$/.test(n)||n==="")&&a.push(Wa(l.messages.whitespace,t.fullField))};const Tn={required:t6,whitespace:$9,type:x9,range:C9,enum:b9,pattern:y9};var w9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Yr(n)&&!t.required)return r();Tn.required(t,n,a,c,l)}r(c)},E9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(n==null&&!t.required)return r();Tn.required(t,n,a,c,l,"array"),n!=null&&(Tn.type(t,n,a,c,l),Tn.range(t,n,a,c,l))}r(c)},O9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Yr(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&Tn.type(t,n,a,c,l)}r(c)},R9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Yr(n,"date")&&!t.required)return r();if(Tn.required(t,n,a,c,l),!Yr(n,"date")){var d;n instanceof Date?d=n:d=new Date(n),Tn.type(t,d,a,c,l),d&&Tn.range(t,d.getTime(),a,c,l)}}r(c)},j9="enum",I9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Yr(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&Tn[j9](t,n,a,c,l)}r(c)},N9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Yr(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&(Tn.type(t,n,a,c,l),Tn.range(t,n,a,c,l))}r(c)},M9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Yr(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&(Tn.type(t,n,a,c,l),Tn.range(t,n,a,c,l))}r(c)},T9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Yr(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&Tn.type(t,n,a,c,l)}r(c)},P9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(n===""&&(n=void 0),Yr(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&(Tn.type(t,n,a,c,l),Tn.range(t,n,a,c,l))}r(c)},z9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Yr(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&Tn.type(t,n,a,c,l)}r(c)},D9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Yr(n,"string")&&!t.required)return r();Tn.required(t,n,a,c,l),Yr(n,"string")||Tn.pattern(t,n,a,c,l)}r(c)},_9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Yr(n)&&!t.required)return r();Tn.required(t,n,a,c,l),Yr(n)||Tn.type(t,n,a,c,l)}r(c)},A9=function(t,n,r,a,l){var c=[],u=Array.isArray(n)?"array":$t(n);Tn.required(t,n,a,c,l,u),r(c)},B9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Yr(n,"string")&&!t.required)return r();Tn.required(t,n,a,c,l,"string"),Yr(n,"string")||(Tn.type(t,n,a,c,l),Tn.range(t,n,a,c,l),Tn.pattern(t,n,a,c,l),t.whitespace===!0&&Tn.whitespace(t,n,a,c,l))}r(c)},Dm=function(t,n,r,a,l){var c=t.type,u=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(Yr(n,c)&&!t.required)return r();Tn.required(t,n,a,u,l,c),Yr(n,c)||Tn.type(t,n,a,u,l)}r(u)};const Sd={string:B9,method:T9,number:P9,boolean:O9,regexp:_9,integer:M9,float:N9,array:E9,object:z9,enum:I9,pattern:D9,date:R9,url:Dm,hex:Dm,email:Dm,tel:Dm,required:A9,any:w9};var of=(function(){function e(t){ur(this,e),ee(this,"rules",null),ee(this,"_messages",cy),this.define(t)}return dr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if($t(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var l=n[a];r.rules[a]=Array.isArray(l)?l:[l]})}},{key:"messages",value:function(n){return n&&(this._messages=Kw(sy(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},c=n,u=a,d=l;if(typeof u=="function"&&(d=u,u={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,c),Promise.resolve(c);function f(C){var S=[],h={};function x(E){if(Array.isArray(E)){var j;S=(j=S).concat.apply(j,Ne(E))}else S.push(E)}for(var w=0;w<C.length;w++)x(C[w]);S.length?(h=dy(S),d(S,h)):d(null,c)}if(u.messages){var v=this.messages();v===cy&&(v=sy()),Kw(v,u.messages),u.messages=v}else u.messages=this.messages();var g={},p=u.keys||Object.keys(this.rules);p.forEach(function(C){var S=r.rules[C],h=c[C];S.forEach(function(x){var w=x;typeof w.transform=="function"&&(c===n&&(c=se({},c)),h=c[C]=w.transform(h),h!=null&&(w.type=w.type||(Array.isArray(h)?"array":$t(h)))),typeof w=="function"?w={validator:w}:w=se({},w),w.validator=r.getValidationMethod(w),w.validator&&(w.field=C,w.fullField=w.fullField||C,w.type=r.getType(w),g[C]=g[C]||[],g[C].push({rule:w,value:h,source:c,field:C}))})});var b={};return g9(g,u,function(C,S){var h=C.rule,x=(h.type==="object"||h.type==="array")&&($t(h.fields)==="object"||$t(h.defaultField)==="object");x=x&&(h.required||!h.required&&C.value),h.field=C.field;function w(O,M){return se(se({},M),{},{fullField:"".concat(h.fullField,".").concat(O),fullFields:h.fullFields?[].concat(Ne(h.fullFields),[O]):[O]})}function E(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=Array.isArray(O)?O:[O];!u.suppressWarning&&M.length&&e.warning("async-validator:",M),M.length&&h.message!==void 0&&h.message!==null&&(M=[].concat(h.message));var N=M.map(Ww(h,c));if(u.first&&N.length)return b[h.field]=1,S(N);if(!x)S(N);else{if(h.required&&!C.value)return h.message!==void 0?N=[].concat(h.message).map(Ww(h,c)):u.error&&(N=[u.error(h,Wa(u.messages.required,h.field))]),S(N);var P={};h.defaultField&&Object.keys(C.value).map(function(k){P[k]=h.defaultField}),P=se(se({},P),C.rule.fields);var B={};Object.keys(P).forEach(function(k){var D=P[k],H=Array.isArray(D)?D:[D];B[k]=H.map(w.bind(null,k))});var L=new e(B);L.messages(u.messages),C.rule.options&&(C.rule.options.messages=u.messages,C.rule.options.error=u.error),L.validate(C.value,C.rule.options||u,function(k){var D=[];N&&N.length&&D.push.apply(D,Ne(N)),k&&k.length&&D.push.apply(D,Ne(k)),S(D.length?D:null)})}}var j;if(h.asyncValidator)j=h.asyncValidator(h,C.value,E,C.source,u);else if(h.validator){try{j=h.validator(h,C.value,E,C.source,u)}catch(O){var R,I;(R=(I=console).error)===null||R===void 0||R.call(I,O),u.suppressValidatorError||setTimeout(function(){throw O},0),E(O.message)}j===!0?E():j===!1?E(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||"".concat(h.fullField||h.field," fails")):j instanceof Array?E(j):j instanceof Error&&E(j.message)}j&&j.then&&j.then(function(){return E()},function(O){return E(O)})},function(C){f(C)},c)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Sd.hasOwnProperty(n.type))throw new Error(Wa("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"?Sd.required:Sd[this.getType(n)]||void 0}}]),e})();ee(of,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Sd[t]=n});ee(of,"warning",d9);ee(of,"messages",cy);ee(of,"validators",Sd);var Fa="'${name}' is not a valid ${type}",n6={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:Fa,method:Fa,array:Fa,object:Fa,number:Fa,date:Fa,boolean:Fa,integer:Fa,float:Fa,regexp:Fa,email:Fa,url:Fa,hex:Fa},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}"}},Uw=of;function k9(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 qw="CODE_LOGIC_ERROR";function fy(e,t,n,r,a){return my.apply(this,arguments)}function my(){return my=wa(Fn().mark(function e(t,n,r,a,l){var c,u,d,f,v,g,p,b,C;return Fn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return c=se({},r),delete c.ruleIndex,Uw.warning=function(){},c.validator&&(u=c.validator,c.validator=function(){try{return u.apply(void 0,arguments)}catch(x){return console.error(x),Promise.reject(qw)}}),d=null,c&&c.type==="array"&&c.defaultField&&(d=c.defaultField,delete c.defaultField),f=new Uw(ee({},t,[c])),v=bc(n6,a.validateMessages),f.messages(v),g=[],h.prev=10,h.next=13,Promise.resolve(f.validate(ee({},t,n),se({},a)));case 13:h.next=18;break;case 15:h.prev=15,h.t0=h.catch(10),h.t0.errors&&(g=h.t0.errors.map(function(x,w){var E=x.message,j=E===qw?v.default:E;return i.isValidElement(j)?i.cloneElement(j,{key:"error_".concat(w)}):j}));case 18:if(!(!g.length&&d&&Array.isArray(n)&&n.length>0)){h.next=23;break}return h.next=21,Promise.all(n.map(function(x,w){return fy("".concat(t,".").concat(w),x,d,a,l)}));case 21:return p=h.sent,h.abrupt("return",p.reduce(function(x,w){return[].concat(Ne(x),Ne(w))},[]));case 23:return b=se(se({},r),{},{name:t,enum:(r.enum||[]).join(", ")},l),C=g.map(function(x){return typeof x=="string"?k9(x,b):x}),h.abrupt("return",C);case 26:case"end":return h.stop()}},e,null,[[10,15]])})),my.apply(this,arguments)}function L9(e,t,n,r,a,l){var c=e.join("."),u=n.map(function(v,g){var p=v.validator,b=se(se({},v),{},{ruleIndex:g});return p&&(b.validator=function(C,S,h){var x=!1,w=function(){for(var R=arguments.length,I=new Array(R),O=0;O<R;O++)I[O]=arguments[O];Promise.resolve().then(function(){Xn(!x,"Your validator function has already return a promise. `callback` will be ignored."),x||h.apply(void 0,I)})},E=p(C,S,w);x=E&&typeof E.then=="function"&&typeof E.catch=="function",Xn(x,"`callback` is deprecated. Please return a promise instead."),x&&E.then(function(){h()}).catch(function(j){h(j||" ")})}),b}).sort(function(v,g){var p=v.warningOnly,b=v.ruleIndex,C=g.warningOnly,S=g.ruleIndex;return!!p==!!C?b-S:p?1:-1}),d;if(a===!0)d=new Promise((function(){var v=wa(Fn().mark(function g(p,b){var C,S,h;return Fn().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:C=0;case 1:if(!(C<u.length)){w.next=12;break}return S=u[C],w.next=5,fy(c,t,S,r,l);case 5:if(h=w.sent,!h.length){w.next=9;break}return b([{errors:h,rule:S}]),w.abrupt("return");case 9:C+=1,w.next=1;break;case 12:p([]);case 13:case"end":return w.stop()}},g)}));return function(g,p){return v.apply(this,arguments)}})());else{var f=u.map(function(v){return fy(c,t,v,r,l).then(function(g){return{errors:g,rule:v}})});d=(a?F9(f):H9(f)).then(function(v){return Promise.reject(v)})}return d.catch(function(v){return v}),d}function H9(e){return vy.apply(this,arguments)}function vy(){return vy=wa(Fn().mark(function e(t){return Fn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(a){var l,c=(l=[]).concat.apply(l,Ne(a));return c}));case 1:case"end":return r.stop()}},e)})),vy.apply(this,arguments)}function F9(e){return gy.apply(this,arguments)}function gy(){return gy=wa(Fn().mark(function e(t){var n;return Fn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n=0,a.abrupt("return",new Promise(function(l){t.forEach(function(c){c.then(function(u){u.errors.length&&l([u]),n+=1,n===t.length&&l([])})})}));case 2:case"end":return a.stop()}},e)})),gy.apply(this,arguments)}function Dr(e){return ly(e)}function Gw(e,t){var n={};return t.forEach(function(r){var a=$a(e,r);n=co(n,r,a)}),n}function Ec(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return r6(t,r,n)})}function r6(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 V9(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||$t(e)!=="object"||$t(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return Ne(a).every(function(l){var c=e[l],u=t[l];return typeof c=="function"&&typeof u=="function"?!0:c===u})}function W9(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&$t(t.target)==="object"&&e in t.target?t.target[e]:t}function Xw(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],l=t-n;return l>0?[].concat(Ne(e.slice(0,n)),[a],Ne(e.slice(n,t)),Ne(e.slice(t+1,r))):l<0?[].concat(Ne(e.slice(0,t)),Ne(e.slice(t+1,n+1)),[a],Ne(e.slice(n+1,r))):e}var K9=["name"],io=[];function R0(e,t,n,r,a,l){return typeof e=="function"?e(t,n,"source"in l?{source:l.source}:{}):r!==a}var I1=(function(e){Xa(n,e);var t=go(n);function n(r){var a;if(ur(this,n),a=t.call(this,r),ee(xt(a),"state",{resetCount:0}),ee(xt(a),"cancelRegisterFunc",null),ee(xt(a),"mounted",!1),ee(xt(a),"touched",!1),ee(xt(a),"dirty",!1),ee(xt(a),"validatePromise",void 0),ee(xt(a),"prevValidating",void 0),ee(xt(a),"errors",io),ee(xt(a),"warnings",io),ee(xt(a),"cancelRegister",function(){var d=a.props,f=d.preserve,v=d.isListField,g=d.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(v,f,Dr(g)),a.cancelRegisterFunc=null}),ee(xt(a),"getNamePath",function(){var d=a.props,f=d.name,v=d.fieldContext,g=v.prefixName,p=g===void 0?[]:g;return f!==void 0?[].concat(Ne(p),Ne(f)):[]}),ee(xt(a),"getRules",function(){var d=a.props,f=d.rules,v=f===void 0?[]:f,g=d.fieldContext;return v.map(function(p){return typeof p=="function"?p(g):p})}),ee(xt(a),"refresh",function(){a.mounted&&a.setState(function(d){var f=d.resetCount;return{resetCount:f+1}})}),ee(xt(a),"metaCache",null),ee(xt(a),"triggerMetaEvent",function(d){var f=a.props.onMetaChange;if(f){var v=se(se({},a.getMeta()),{},{destroy:d});Ro(a.metaCache,v)||f(v),a.metaCache=v}else a.metaCache=null}),ee(xt(a),"onStoreChange",function(d,f,v){var g=a.props,p=g.shouldUpdate,b=g.dependencies,C=b===void 0?[]:b,S=g.onReset,h=v.store,x=a.getNamePath(),w=a.getValue(d),E=a.getValue(h),j=f&&Ec(f,x);switch(v.type==="valueUpdate"&&v.source==="external"&&!Ro(w,E)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=io,a.warnings=io,a.triggerMetaEvent()),v.type){case"reset":if(!f||j){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=io,a.warnings=io,a.triggerMetaEvent(),S==null||S(),a.refresh();return}break;case"remove":{if(p&&R0(p,d,h,w,E,v)){a.reRender();return}break}case"setField":{var R=v.data;if(j){"touched"in R&&(a.touched=R.touched),"validating"in R&&!("originRCField"in R)&&(a.validatePromise=R.validating?Promise.resolve([]):null),"errors"in R&&(a.errors=R.errors||io),"warnings"in R&&(a.warnings=R.warnings||io),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in R&&Ec(f,x,!0)){a.reRender();return}if(p&&!x.length&&R0(p,d,h,w,E,v)){a.reRender();return}break}case"dependenciesUpdate":{var I=C.map(Dr);if(I.some(function(O){return Ec(v.relatedFields,O)})){a.reRender();return}break}default:if(j||(!C.length||x.length||p)&&R0(p,d,h,w,E,v)){a.reRender();return}break}p===!0&&a.reRender()}),ee(xt(a),"validateRules",function(d){var f=a.getNamePath(),v=a.getValue(),g=d||{},p=g.triggerName,b=g.validateOnly,C=b===void 0?!1:b,S=Promise.resolve().then(wa(Fn().mark(function h(){var x,w,E,j,R,I,O;return Fn().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(x=a.props,w=x.validateFirst,E=w===void 0?!1:w,j=x.messageVariables,R=x.validateDebounce,I=a.getRules(),p&&(I=I.filter(function(P){return P}).filter(function(P){var B=P.validateTrigger;if(!B)return!0;var L=ly(B);return L.includes(p)})),!(R&&p)){N.next=10;break}return N.next=8,new Promise(function(P){setTimeout(P,R)});case 8:if(a.validatePromise===S){N.next=10;break}return N.abrupt("return",[]);case 10:return O=L9(f,v,I,d,E,j),O.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:io;if(a.validatePromise===S){var B;a.validatePromise=null;var L=[],k=[];(B=P.forEach)===null||B===void 0||B.call(P,function(D){var H=D.rule.warningOnly,z=D.errors,_=z===void 0?io:z;H?k.push.apply(k,Ne(_)):L.push.apply(L,Ne(_))}),a.errors=L,a.warnings=k,a.triggerMetaEvent(),a.reRender()}}),N.abrupt("return",O);case 13:case"end":return N.stop()}},h)})));return C||(a.validatePromise=S,a.dirty=!0,a.errors=io,a.warnings=io,a.triggerMetaEvent(),a.reRender()),S}),ee(xt(a),"isFieldValidating",function(){return!!a.validatePromise}),ee(xt(a),"isFieldTouched",function(){return a.touched}),ee(xt(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var d=a.props.fieldContext,f=d.getInternalHooks(Ql),v=f.getInitialValue;return v(a.getNamePath())!==void 0}),ee(xt(a),"getErrors",function(){return a.errors}),ee(xt(a),"getWarnings",function(){return a.warnings}),ee(xt(a),"isListField",function(){return a.props.isListField}),ee(xt(a),"isList",function(){return a.props.isList}),ee(xt(a),"isPreserve",function(){return a.props.preserve}),ee(xt(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var d={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return d}),ee(xt(a),"getOnlyChild",function(d){if(typeof d=="function"){var f=a.getMeta();return se(se({},a.getOnlyChild(d(a.getControlled(),f,a.props.fieldContext))),{},{isFunction:!0})}var v=Xr(d);return v.length!==1||!i.isValidElement(v[0])?{child:v,isFunction:!1}:{child:v[0],isFunction:!1}}),ee(xt(a),"getValue",function(d){var f=a.props.fieldContext.getFieldsValue,v=a.getNamePath();return $a(d||f(!0),v)}),ee(xt(a),"getControlled",function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=a.props,v=f.name,g=f.trigger,p=f.validateTrigger,b=f.getValueFromEvent,C=f.normalize,S=f.valuePropName,h=f.getValueProps,x=f.fieldContext,w=p!==void 0?p:x.validateTrigger,E=a.getNamePath(),j=x.getInternalHooks,R=x.getFieldsValue,I=j(Ql),O=I.dispatch,M=a.getValue(),N=h||function(D){return ee({},S,D)},P=d[g],B=v!==void 0?N(M):{},L=se(se({},d),B);L[g]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var D,H=arguments.length,z=new Array(H),_=0;_<H;_++)z[_]=arguments[_];b?D=b.apply(void 0,z):D=W9.apply(void 0,[S].concat(z)),C&&(D=C(D,M,R(!0))),D!==M&&O({type:"updateValue",namePath:E,value:D}),P&&P.apply(void 0,z)};var k=ly(w||[]);return k.forEach(function(D){var H=L[D];L[D]=function(){H&&H.apply(void 0,arguments);var z=a.props.rules;z&&z.length&&O({type:"validateField",namePath:E,triggerName:D})}}),L}),r.fieldContext){var l=r.fieldContext.getInternalHooks,c=l(Ql),u=c.initEntityValue;u(xt(a))}return a}return dr(n,[{key:"componentDidMount",value:function(){var a=this.props,l=a.shouldUpdate,c=a.fieldContext;if(this.mounted=!0,c){var u=c.getInternalHooks,d=u(Ql),f=d.registerField;this.cancelRegisterFunc=f(this)}l===!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,l=this.props.children,c=this.getOnlyChild(l),u=c.child,d=c.isFunction,f;return d?f=u:i.isValidElement(u)?f=i.cloneElement(u,this.getControlled(u.props)):(Xn(!u,"`children` of Field is not validate ReactElement."),f=u),i.createElement(i.Fragment,{key:a},f)}}]),n})(i.Component);ee(I1,"contextType",cs);ee(I1,"defaultProps",{trigger:"onChange",valuePropName:"value"});function N1(e){var t,n=e.name,r=Lt(e,K9),a=i.useContext(cs),l=i.useContext(kd),c=n!==void 0?Dr(n):void 0,u=(t=r.isListField)!==null&&t!==void 0?t:!!l,d="keep";return u||(d="_".concat((c||[]).join("_"))),i.createElement(I1,ye({key:d,name:c,isListField:u},r,{fieldContext:a}))}function a6(e){var t=e.name,n=e.initialValue,r=e.children,a=e.rules,l=e.validateTrigger,c=e.isListField,u=i.useContext(cs),d=i.useContext(kd),f=i.useRef({keys:[],id:0}),v=f.current,g=i.useMemo(function(){var S=Dr(u.prefixName)||[];return[].concat(Ne(S),Ne(Dr(t)))},[u.prefixName,t]),p=i.useMemo(function(){return se(se({},u),{},{prefixName:g})},[u,g]),b=i.useMemo(function(){return{getKey:function(h){var x=g.length,w=h[x];return[v.keys[w],h.slice(x+1)]}}},[g]);if(typeof r!="function")return Xn(!1,"Form.List only accepts function as children."),null;var C=function(h,x,w){var E=w.source;return E==="internal"?!1:h!==x};return i.createElement(kd.Provider,{value:b},i.createElement(cs.Provider,{value:p},i.createElement(N1,{name:[],shouldUpdate:C,rules:a,validateTrigger:l,initialValue:n,isList:!0,isListField:c??!!d},function(S,h){var x=S.value,w=x===void 0?[]:x,E=S.onChange,j=u.getFieldValue,R=function(){var N=j(g||[]);return N||[]},I={add:function(N,P){var B=R();P>=0&&P<=B.length?(v.keys=[].concat(Ne(v.keys.slice(0,P)),[v.id],Ne(v.keys.slice(P))),E([].concat(Ne(B.slice(0,P)),[N],Ne(B.slice(P))))):(v.keys=[].concat(Ne(v.keys),[v.id]),E([].concat(Ne(B),[N]))),v.id+=1},remove:function(N){var P=R(),B=new Set(Array.isArray(N)?N:[N]);B.size<=0||(v.keys=v.keys.filter(function(L,k){return!B.has(k)}),E(P.filter(function(L,k){return!B.has(k)})))},move:function(N,P){if(N!==P){var B=R();N<0||N>=B.length||P<0||P>=B.length||(v.keys=Xw(v.keys,N,P),E(Xw(B,N,P)))}}},O=w||[];return Array.isArray(O)||(O=[]),r(O.map(function(M,N){var P=v.keys[N];return P===void 0&&(v.keys[N]=v.id,P=v.keys[N],v.id+=1),{name:N,key:P,isListField:!0}}),I,h)})))}function U9(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,l){e.forEach(function(c,u){c.catch(function(d){return t=!0,d}).then(function(d){n-=1,r[u]=d,!(n>0)&&(t&&l(r),a(r))})})}):Promise.resolve([])}var o6="__@field_split__";function j0(e){return e.map(function(t){return"".concat($t(t),":").concat(t)}).join(o6)}var ic=(function(){function e(){ur(this,e),ee(this,"kvs",new Map)}return dr(e,[{key:"set",value:function(n,r){this.kvs.set(j0(n),r)}},{key:"get",value:function(n){return this.kvs.get(j0(n))}},{key:"update",value:function(n,r){var a=this.get(n),l=r(a);l?this.set(n,l):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(j0(n))}},{key:"map",value:function(n){return Ne(this.kvs.entries()).map(function(r){var a=fe(r,2),l=a[0],c=a[1],u=l.split(o6);return n({key:u.map(function(d){var f=d.match(/^([^:]*):(.*)$/),v=fe(f,3),g=v[1],p=v[2];return g==="number"?Number(p):p}),value:c})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,l=r.value;return n[a.join(".")]=l,null}),n}}]),e})(),q9=["name"],G9=dr(function e(t){var n=this;ur(this,e),ee(this,"formHooked",!1),ee(this,"forceRootUpdate",void 0),ee(this,"subscribable",!0),ee(this,"store",{}),ee(this,"fieldEntities",[]),ee(this,"initialValues",{}),ee(this,"callbacks",{}),ee(this,"validateMessages",null),ee(this,"preserve",null),ee(this,"lastValidatePromise",null),ee(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}}),ee(this,"getInternalHooks",function(r){return r===Ql?(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}):(Xn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ee(this,"useSubscribe",function(r){n.subscribable=r}),ee(this,"prevWithoutPreserves",null),ee(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var l,c=bc(r,n.store);(l=n.prevWithoutPreserves)===null||l===void 0||l.map(function(u){var d=u.key;c=co(c,d,$a(r,d))}),n.prevWithoutPreserves=null,n.updateStore(c)}}),ee(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new ic;n.getFieldEntities(!0).forEach(function(l){n.isMergedPreserve(l.isPreserve())||a.set(l.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),ee(this,"getInitialValue",function(r){var a=$a(n.initialValues,r);return r.length?bc(a):a}),ee(this,"setCallbacks",function(r){n.callbacks=r}),ee(this,"setValidateMessages",function(r){n.validateMessages=r}),ee(this,"setPreserve",function(r){n.preserve=r}),ee(this,"watchList",[]),ee(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),ee(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),l=n.getFieldsValue(!0);n.watchList.forEach(function(c){c(a,l,r)})}}),ee(this,"timeoutId",null),ee(this,"warningUnhooked",function(){}),ee(this,"updateStore",function(r){n.store=r}),ee(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}),ee(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new ic;return n.getFieldEntities(r).forEach(function(l){var c=l.getNamePath();a.set(c,l)}),a}),ee(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(l){var c=Dr(l);return a.get(c)||{INVALIDATE_NAME_PATH:Dr(l)}})}),ee(this,"getFieldsValue",function(r,a){n.warningUnhooked();var l,c,u;if(r===!0||Array.isArray(r)?(l=r,c=a):r&&$t(r)==="object"&&(u=r.strict,c=r.filter),l===!0&&!c)return n.store;var d=n.getFieldEntitiesForNamePathList(Array.isArray(l)?l:null),f=[];return d.forEach(function(v){var g,p,b="INVALIDATE_NAME_PATH"in v?v.INVALIDATE_NAME_PATH:v.getNamePath();if(u){var C,S;if((C=(S=v).isList)!==null&&C!==void 0&&C.call(S))return}else if(!l&&(g=(p=v).isListField)!==null&&g!==void 0&&g.call(p))return;if(!c)f.push(b);else{var h="getMeta"in v?v.getMeta():null;c(h)&&f.push(b)}}),Gw(n.store,f.map(Dr))}),ee(this,"getFieldValue",function(r){n.warningUnhooked();var a=Dr(r);return $a(n.store,a)}),ee(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(l,c){return l&&!("INVALIDATE_NAME_PATH"in l)?{name:l.getNamePath(),errors:l.getErrors(),warnings:l.getWarnings()}:{name:Dr(r[c]),errors:[],warnings:[]}})}),ee(this,"getFieldError",function(r){n.warningUnhooked();var a=Dr(r),l=n.getFieldsError([a])[0];return l.errors}),ee(this,"getFieldWarning",function(r){n.warningUnhooked();var a=Dr(r),l=n.getFieldsError([a])[0];return l.warnings}),ee(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];var c=a[0],u=a[1],d,f=!1;a.length===0?d=null:a.length===1?Array.isArray(c)?(d=c.map(Dr),f=!1):(d=null,f=c):(d=c.map(Dr),f=u);var v=n.getFieldEntities(!0),g=function(h){return h.isFieldTouched()};if(!d)return f?v.every(function(S){return g(S)||S.isList()}):v.some(g);var p=new ic;d.forEach(function(S){p.set(S,[])}),v.forEach(function(S){var h=S.getNamePath();d.forEach(function(x){x.every(function(w,E){return h[E]===w})&&p.update(x,function(w){return[].concat(Ne(w),[S])})})});var b=function(h){return h.some(g)},C=p.map(function(S){var h=S.value;return h});return f?C.every(b):C.some(b)}),ee(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),ee(this,"isFieldsValidating",function(r){n.warningUnhooked();var a=n.getFieldEntities();if(!r)return a.some(function(c){return c.isFieldValidating()});var l=r.map(Dr);return a.some(function(c){var u=c.getNamePath();return Ec(l,u)&&c.isFieldValidating()})}),ee(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),ee(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new ic,l=n.getFieldEntities(!0);l.forEach(function(d){var f=d.props.initialValue,v=d.getNamePath();if(f!==void 0){var g=a.get(v)||new Set;g.add({entity:d,value:f}),a.set(v,g)}});var c=function(f){f.forEach(function(v){var g=v.props.initialValue;if(g!==void 0){var p=v.getNamePath(),b=n.getInitialValue(p);if(b!==void 0)Xn(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var C=a.get(p);if(C&&C.size>1)Xn(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(C){var S=n.getFieldValue(p),h=v.isListField();!h&&(!r.skipExist||S===void 0)&&n.updateStore(co(n.store,p,Ne(C)[0].value))}}}})},u;r.entities?u=r.entities:r.namePathList?(u=[],r.namePathList.forEach(function(d){var f=a.get(d);if(f){var v;(v=u).push.apply(v,Ne(Ne(f).map(function(g){return g.entity})))}})):u=l,c(u)}),ee(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(bc(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var l=r.map(Dr);l.forEach(function(c){var u=n.getInitialValue(c);n.updateStore(co(n.store,c,u))}),n.resetWithFieldInitialValue({namePathList:l}),n.notifyObservers(a,l,{type:"reset"}),n.notifyWatch(l)}),ee(this,"setFields",function(r){n.warningUnhooked();var a=n.store,l=[];r.forEach(function(c){var u=c.name,d=Lt(c,q9),f=Dr(u);l.push(f),"value"in d&&n.updateStore(co(n.store,f,d.value)),n.notifyObservers(a,[f],{type:"setField",data:c})}),n.notifyWatch(l)}),ee(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(l){var c=l.getNamePath(),u=l.getMeta(),d=se(se({},u),{},{name:c,value:n.getFieldValue(c)});return Object.defineProperty(d,"originRCField",{value:!0}),d});return a}),ee(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var l=r.getNamePath(),c=$a(n.store,l);c===void 0&&n.updateStore(co(n.store,l,a))}}),ee(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),ee(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var l=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(l,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(g){return g!==r}),!n.isMergedPreserve(u)&&(!c||d.length>1)){var f=c?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==f&&n.fieldEntities.every(function(g){return!r6(g.getNamePath(),a)})){var v=n.store;n.updateStore(co(v,a,f,!0)),n.notifyObservers(v,[a],{type:"remove"}),n.triggerDependenciesUpdate(v,a)}}n.notifyWatch([a])}}),ee(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,l=r.value;n.updateValue(a,l);break}case"validateField":{var c=r.namePath,u=r.triggerName;n.validateFields([c],{triggerName:u});break}}}),ee(this,"notifyObservers",function(r,a,l){if(n.subscribable){var c=se(se({},l),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(u){var d=u.onStoreChange;d(r,a,c)})}else n.forceRootUpdate()}),ee(this,"triggerDependenciesUpdate",function(r,a){var l=n.getDependencyChildrenFields(a);return l.length&&n.validateFields(l),n.notifyObservers(r,l,{type:"dependenciesUpdate",relatedFields:[a].concat(Ne(l))}),l}),ee(this,"updateValue",function(r,a){var l=Dr(r),c=n.store;n.updateStore(co(n.store,l,a)),n.notifyObservers(c,[l],{type:"valueUpdate",source:"internal"}),n.notifyWatch([l]);var u=n.triggerDependenciesUpdate(c,l),d=n.callbacks.onValuesChange;if(d){var f=Gw(n.store,[l]);d(f,n.getFieldsValue())}n.triggerOnFieldsChange([l].concat(Ne(u)))}),ee(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var l=bc(n.store,r);n.updateStore(l)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ee(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a,errors:[],warnings:[]}])}),ee(this,"getDependencyChildrenFields",function(r){var a=new Set,l=[],c=new ic;n.getFieldEntities().forEach(function(d){var f=d.props.dependencies;(f||[]).forEach(function(v){var g=Dr(v);c.update(g,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(d),p})})});var u=function d(f){var v=c.get(f)||new Set;v.forEach(function(g){if(!a.has(g)){a.add(g);var p=g.getNamePath();g.isFieldDirty()&&p.length&&(l.push(p),d(p))}})};return u(r),l}),ee(this,"triggerOnFieldsChange",function(r,a){var l=n.callbacks.onFieldsChange;if(l){var c=n.getFields();if(a){var u=new ic;a.forEach(function(f){var v=f.name,g=f.errors;u.set(v,g)}),c.forEach(function(f){f.errors=u.get(f.name)||f.errors})}var d=c.filter(function(f){var v=f.name;return Ec(r,v)});d.length&&l(d,c)}}),ee(this,"validateFields",function(r,a){n.warningUnhooked();var l,c;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(l=r,c=a):c=r;var u=!!l,d=u?l.map(Dr):[],f=[],v=String(Date.now()),g=new Set,p=c||{},b=p.recursive,C=p.dirty;n.getFieldEntities(!0).forEach(function(w){if(u||d.push(w.getNamePath()),!(!w.props.rules||!w.props.rules.length)&&!(C&&!w.isFieldDirty())){var E=w.getNamePath();if(g.add(E.join(v)),!u||Ec(d,E,b)){var j=w.validateRules(se({validateMessages:se(se({},n6),n.validateMessages)},c));f.push(j.then(function(){return{name:E,errors:[],warnings:[]}}).catch(function(R){var I,O=[],M=[];return(I=R.forEach)===null||I===void 0||I.call(R,function(N){var P=N.rule.warningOnly,B=N.errors;P?M.push.apply(M,Ne(B)):O.push.apply(O,Ne(B))}),O.length?Promise.reject({name:E,errors:O,warnings:M}):{name:E,errors:O,warnings:M}}))}}});var S=U9(f);n.lastValidatePromise=S,S.catch(function(w){return w}).then(function(w){var E=w.map(function(j){var R=j.name;return R});n.notifyObservers(n.store,E,{type:"validateFinish"}),n.triggerOnFieldsChange(E,w)});var h=S.then(function(){return n.lastValidatePromise===S?Promise.resolve(n.getFieldsValue(d)):Promise.reject([])}).catch(function(w){var E=w.filter(function(j){return j&&j.errors.length});return Promise.reject({values:n.getFieldsValue(d),errorFields:E,outOfDate:n.lastValidatePromise!==S})});h.catch(function(w){return w});var x=d.filter(function(w){return g.has(w.join(v))});return n.triggerOnFieldsChange(x),h}),ee(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(l){console.error(l)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function M1(e){var t=i.useRef(),n=i.useState({}),r=fe(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var l=function(){a({})},c=new G9(l);t.current=c.getForm()}return[t.current]}var py=i.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),i6=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,l=t.children,c=i.useContext(py),u=i.useRef({});return i.createElement(py.Provider,{value:se(se({},c),{},{validateMessages:se(se({},c.validateMessages),n),triggerFormChange:function(f,v){r&&r(f,{changedFields:v,forms:u.current}),c.triggerFormChange(f,v)},triggerFormFinish:function(f,v){a&&a(f,{values:v,forms:u.current}),c.triggerFormFinish(f,v)},registerForm:function(f,v){f&&(u.current=se(se({},u.current),{},ee({},f,v))),c.registerForm(f,v)},unregisterForm:function(f){var v=se({},u.current);delete v[f],u.current=v,c.unregisterForm(f)}})},l)},X9=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Y9=function(t,n){var r=t.name,a=t.initialValues,l=t.fields,c=t.form,u=t.preserve,d=t.children,f=t.component,v=f===void 0?"form":f,g=t.validateMessages,p=t.validateTrigger,b=p===void 0?"onChange":p,C=t.onValuesChange,S=t.onFieldsChange,h=t.onFinish,x=t.onFinishFailed,w=t.clearOnDestroy,E=Lt(t,X9),j=i.useRef(null),R=i.useContext(py),I=M1(c),O=fe(I,1),M=O[0],N=M.getInternalHooks(Ql),P=N.useSubscribe,B=N.setInitialValues,L=N.setCallbacks,k=N.setValidateMessages,D=N.setPreserve,H=N.destroyForm;i.useImperativeHandle(n,function(){return se(se({},M),{},{nativeElement:j.current})}),i.useEffect(function(){return R.registerForm(r,M),function(){R.unregisterForm(r)}},[R,M,r]),k(se(se({},R.validateMessages),g)),L({onValuesChange:C,onFieldsChange:function(U){if(R.triggerFormChange(r,U),S){for(var Z=arguments.length,Q=new Array(Z>1?Z-1:0),te=1;te<Z;te++)Q[te-1]=arguments[te];S.apply(void 0,[U].concat(Q))}},onFinish:function(U){R.triggerFormFinish(r,U),h&&h(U)},onFinishFailed:x}),D(u);var z=i.useRef(null);B(a,!z.current),z.current||(z.current=!0),i.useEffect(function(){return function(){return H(w)}},[]);var _,F=typeof d=="function";if(F){var W=M.getFieldsValue(!0);_=d(W,M)}else _=d;P(!F);var q=i.useRef();i.useEffect(function(){V9(q.current||[],l||[])||M.setFields(l||[]),q.current=l},[l,M]);var V=i.useMemo(function(){return se(se({},M),{},{validateTrigger:b})},[M,b]),G=i.createElement(kd.Provider,{value:null},i.createElement(cs.Provider,{value:V},_));return v===!1?G:i.createElement(v,ye({},E,{ref:j,onSubmit:function(U){U.preventDefault(),U.stopPropagation(),M.submit()},onReset:function(U){var Z;U.preventDefault(),M.resetFields(),(Z=E.onReset)===null||Z===void 0||Z.call(E,U)}}),G)};function Yw(e){try{return JSON.stringify(e)}catch{return Math.random()}}function l6(){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],l=a===void 0?{}:a,c=l9(l)?{form:l}:l,u=c.form,d=i.useState(),f=fe(d,2),v=f[0],g=f[1],p=i.useMemo(function(){return Yw(v)},[v]),b=i.useRef(p);b.current=p;var C=i.useContext(cs),S=u||C,h=S&&S._init,x=Dr(r),w=i.useRef(x);return w.current=x,i.useEffect(function(){if(h){var E=S.getFieldsValue,j=S.getInternalHooks,R=j(Ql),I=R.registerWatch,O=function(B,L){var k=c.preserve?L:B;return typeof r=="function"?r(k):$a(k,w.current)},M=I(function(P,B){var L=O(P,B),k=Yw(L);b.current!==k&&(b.current=k,g(L))}),N=O(E(),E(!0));return v!==N&&g(N),M}},[h]),v}var Q9=i.forwardRef(Y9),Xc=Q9;Xc.FormProvider=i6;Xc.Field=N1;Xc.List=a6;Xc.useForm=M1;Xc.useWatch=l6;const yi=i.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),s6=i.createContext(null),c6=e=>{const t=wn(e,["prefixCls"]);return i.createElement(i6,Object.assign({},t))},T1=i.createContext({prefixCls:""}),Wr=i.createContext({}),u6=({children:e,status:t,override:n})=>{const r=i.useContext(Wr),a=i.useMemo(()=>{const l=Object.assign({},r);return n&&delete l.isFormItemInput,t&&(delete l.status,delete l.hasFeedback,delete l.feedbackIcon),l},[t,n,r]);return i.createElement(Wr.Provider,{value:a},e)},d6=i.createContext(void 0),Xo=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=ve.createElement(u6,{override:!0,status:!0},a)),t&&(a=ve.createElement(f7,null,a)),a};var f6=function(t){if(aa()&&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},Z9=function(t,n){if(!f6(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function hy(e,t){return!Array.isArray(e)&&t!==void 0?Z9(e,t):f6(e)}const J9=()=>aa()&&window.document.documentElement,Cg=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:l}=e,c=ue({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),u=ue({[`${t}-circle`]:l==="circle",[`${t}-square`]:l==="square",[`${t}-round`]:l==="round"}),d=i.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return i.createElement("span",{className:ue(t,c,u,n),style:Object.assign(Object.assign({},d),r)})},eB=new Jt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Sg=e=>({height:e,lineHeight:oe(e)}),Oc=e=>Object.assign({width:e},Sg(e)),tB=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:eB,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),I0=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Sg(e)),nB=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:l}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Oc(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Oc(a)),[`${t}${t}-sm`]:Object.assign({},Oc(l))}},rB=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:l,gradientFromColor:c,calc:u}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},I0(t,u)),[`${r}-lg`]:Object.assign({},I0(a,u)),[`${r}-sm`]:Object.assign({},I0(l,u))}},Qw=e=>Object.assign({width:e},Sg(e)),aB=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:l}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},Qw(l(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Qw(n)),{maxWidth:l(n).mul(4).equal(),maxHeight:l(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},N0=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},M0=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Sg(e)),oB=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:l,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()},M0(r,u))},N0(e,r,n)),{[`${n}-lg`]:Object.assign({},M0(a,u))}),N0(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},M0(l,u))}),N0(e,l,`${n}-sm`))},iB=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:l,skeletonInputCls:c,skeletonImageCls:u,controlHeight:d,controlHeightLG:f,controlHeightSM:v,gradientFromColor:g,padding:p,marginSM:b,borderRadius:C,titleHeight:S,blockRadius:h,paragraphLiHeight:x,controlHeightXS:w,paragraphMarginTop:E}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:g},Oc(d)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Oc(f)),[`${n}-sm`]:Object.assign({},Oc(v))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:S,background:g,borderRadius:h,[`+ ${a}`]:{marginBlockStart:v}},[a]:{padding:0,"> li":{width:"100%",height:x,listStyle:"none",background:g,borderRadius:h,"+ li":{marginBlockStart:w}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:C}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:b,[`+ ${a}`]:{marginBlockStart:E}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},oB(e)),nB(e)),rB(e)),aB(e)),[`${t}${t}-block`]:{width:"100%",[l]:{width:"100%"},[c]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
223
|
+
${r},
|
|
224
|
+
${a} > li,
|
|
225
|
+
${n},
|
|
226
|
+
${l},
|
|
227
|
+
${c},
|
|
228
|
+
${u}
|
|
229
|
+
`]:Object.assign({},tB(e))}}},lB=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}},Yc=sn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=tn(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 iB(r)},lB,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),sB=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:l="circle",size:c="default"}=e,{getPrefixCls:u}=i.useContext(Rt),d=u("skeleton",t),[f,v,g]=Yc(d),p=wn(e,["prefixCls","className"]),b=ue(d,`${d}-element`,{[`${d}-active`]:a},n,r,v,g);return f(i.createElement("div",{className:b},i.createElement(Cg,Object.assign({prefixCls:`${d}-avatar`,shape:l,size:c},p))))},cB=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:l=!1,size:c="default"}=e,{getPrefixCls:u}=i.useContext(Rt),d=u("skeleton",t),[f,v,g]=Yc(d),p=wn(e,["prefixCls"]),b=ue(d,`${d}-element`,{[`${d}-active`]:a,[`${d}-block`]:l},n,r,v,g);return f(i.createElement("div",{className:b},i.createElement(Cg,Object.assign({prefixCls:`${d}-button`,size:c},p))))},uB="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",dB=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:l}=e,{getPrefixCls:c}=i.useContext(Rt),u=c("skeleton",t),[d,f,v]=Yc(u),g=ue(u,`${u}-element`,{[`${u}-active`]:l},n,r,f,v);return d(i.createElement("div",{className:g},i.createElement("div",{className:ue(`${u}-image`,n),style:a},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${u}-image-svg`},i.createElement("title",null,"Image placeholder"),i.createElement("path",{d:uB,className:`${u}-image-path`})))))},fB=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:l,size:c="default"}=e,{getPrefixCls:u}=i.useContext(Rt),d=u("skeleton",t),[f,v,g]=Yc(d),p=wn(e,["prefixCls"]),b=ue(d,`${d}-element`,{[`${d}-active`]:a,[`${d}-block`]:l},n,r,v,g);return f(i.createElement("div",{className:b},i.createElement(Cg,Object.assign({prefixCls:`${d}-input`,size:c},p))))},mB=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:l,children:c}=e,{getPrefixCls:u}=i.useContext(Rt),d=u("skeleton",t),[f,v,g]=Yc(d),p=ue(d,`${d}-element`,{[`${d}-active`]:l},v,n,r,g);return f(i.createElement("div",{className:p},i.createElement("div",{className:ue(`${d}-image`,n),style:a},c)))},vB=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},gB=e=>{const{prefixCls:t,className:n,style:r,rows:a=0}=e,l=Array.from({length:a}).map((c,u)=>i.createElement("li",{key:u,style:{width:vB(u,e)}}));return i.createElement("ul",{className:ue(t,n),style:r},l)},pB=({prefixCls:e,className:t,width:n,style:r})=>i.createElement("h3",{className:ue(e,t),style:Object.assign({width:n},r)});function T0(e){return e&&typeof e=="object"?e:{}}function hB(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function bB(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function yB(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const bl=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:l,children:c,avatar:u=!1,title:d=!0,paragraph:f=!0,active:v,round:g}=e,{getPrefixCls:p,direction:b,className:C,style:S}=fr("skeleton"),h=p("skeleton",t),[x,w,E]=Yc(h);if(n||!("loading"in e)){const j=!!u,R=!!d,I=!!f;let O;if(j){const P=Object.assign(Object.assign({prefixCls:`${h}-avatar`},hB(R,I)),T0(u));O=i.createElement("div",{className:`${h}-header`},i.createElement(Cg,Object.assign({},P)))}let M;if(R||I){let P;if(R){const L=Object.assign(Object.assign({prefixCls:`${h}-title`},bB(j,I)),T0(d));P=i.createElement(pB,Object.assign({},L))}let B;if(I){const L=Object.assign(Object.assign({prefixCls:`${h}-paragraph`},yB(j,R)),T0(f));B=i.createElement(gB,Object.assign({},L))}M=i.createElement("div",{className:`${h}-content`},P,B)}const N=ue(h,{[`${h}-with-avatar`]:j,[`${h}-active`]:v,[`${h}-rtl`]:b==="rtl",[`${h}-round`]:g},C,r,a,w,E);return x(i.createElement("div",{className:N,style:Object.assign(Object.assign({},S),l)},O,M))}return c??null};bl.Button=cB;bl.Avatar=sB;bl.Input=fB;bl.Image=dB;bl.Node=mB;function Zw(){}const CB=i.createContext({add:Zw,remove:Zw});function SB(e){const t=i.useContext(CB),n=i.useRef(null);return Xt(a=>{if(a){const l=e?a.querySelector(e):a;l&&(t.add(l),n.current=l)}else t.remove(n.current)})}const Jw=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=i.useContext(rf);return ve.createElement(nt,Object.assign({onClick:n},e),t)},eE=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=i.useContext(rf);return ve.createElement(nt,Object.assign({},x1(n),{loading:e,onClick:a},t),r)};function m6(e,t){return ve.createElement("span",{className:`${e}-close-x`},t||ve.createElement(Po,{className:`${e}-close-icon`}))}const v6=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:l,onCancel:c,okButtonProps:u,cancelButtonProps:d,footer:f}=e,[v]=Pa("Modal",K3()),g=t||(v==null?void 0:v.okText),p=r||(v==null?void 0:v.cancelText),b=ve.useMemo(()=>({confirmLoading:a,okButtonProps:u,cancelButtonProps:d,okTextLocale:g,cancelTextLocale:p,okType:n,onOk:l,onCancel:c}),[a,u,d,g,p,n,l,c]);let C;return typeof f=="function"||typeof f>"u"?(C=ve.createElement(ve.Fragment,null,ve.createElement(Jw,null),ve.createElement(eE,null)),typeof f=="function"&&(C=f(C,{OkBtn:eE,CancelBtn:Jw})),C=ve.createElement(GR,{value:b},C)):C=f,ve.createElement(f1,{disabled:!1},C)},xB=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}}},wB=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,l={};for(let c=a;c>=0;c--)c===0?(l[`${r}${t}-${c}`]={display:"none"},l[`${r}-push-${c}`]={insetInlineStart:"auto"},l[`${r}-pull-${c}`]={insetInlineEnd:"auto"},l[`${r}${t}-push-${c}`]={insetInlineStart:"auto"},l[`${r}${t}-pull-${c}`]={insetInlineEnd:"auto"},l[`${r}${t}-offset-${c}`]={marginInlineStart:0},l[`${r}${t}-order-${c}`]={order:0}):(l[`${r}${t}-${c}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${c/a*100}%`,maxWidth:`${c/a*100}%`}],l[`${r}${t}-push-${c}`]={insetInlineStart:`${c/a*100}%`},l[`${r}${t}-pull-${c}`]={insetInlineEnd:`${c/a*100}%`},l[`${r}${t}-offset-${c}`]={marginInlineStart:`${c/a*100}%`},l[`${r}${t}-order-${c}`]={order:c});return l[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},l},by=(e,t)=>wB(e,t),EB=(e,t,n)=>({[`@media (min-width: ${oe(t)})`]:Object.assign({},by(e,n))}),OB=()=>({}),RB=()=>({}),jB=sn("Grid",xB,OB),g6=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),IB=sn("Grid",e=>{const t=tn(e,{gridColumns:24}),n=g6(t);return delete n.xs,[$B(t),by(t,""),by(t,"-xs"),Object.keys(n).map(r=>EB(t,n[r],`-${r}`)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},RB);function tE(e){return{position:e,inset:0}}const NB=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},tE("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},tE("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:w1(e)}]},MB=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${oe(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},dn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${oe(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:oe(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},qa(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${oe(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
|
|
230
|
+
${t}-body,
|
|
231
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},TB=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},PB=e=>{const{componentCls:t}=e,n=g6(e),r=Object.assign({},n);delete r.xs;const a=`--${t.replace(".","")}-`,l=Object.keys(r).map(c=>({[`@media (min-width: ${oe(r[c])})`]:{width:`var(${a}${c}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Ne(Object.keys(n).map((c,u)=>{const d=Object.keys(n)[u-1];return d?{[`${a}${c}-width`]:`var(${a}${d}-width)`}:null})),[{width:`var(${a}xs-width)`}],Ne(l))}}},p6=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return tn(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},h6=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${oe(e.paddingMD)} ${oe(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${oe(e.padding)} ${oe(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${oe(e.paddingXS)} ${oe(e.padding)}`:0,footerBorderTop:e.wireframe?`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${oe(e.padding*2)} ${oe(e.padding*2)} ${oe(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),b6=sn("Modal",e=>{const t=p6(e);return[MB(t),TB(t),NB(t),nf(t,"zoom"),PB(t)]},h6,{unitless:{titleLineHeight:!0}});var zB=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 yy;const DB=e=>{yy={x:e.pageX,y:e.pageY},setTimeout(()=>{yy=null},100)};J9()&&document.documentElement.addEventListener("click",DB,!0);const y6=e=>{const{prefixCls:t,className:n,rootClassName:r,open:a,wrapClassName:l,centered:c,getContainer:u,focusTriggerAfterClose:d=!0,style:f,visible:v,width:g=520,footer:p,classNames:b,styles:C,children:S,loading:h,confirmLoading:x,zIndex:w,mousePosition:E,onOk:j,onCancel:R,destroyOnHidden:I,destroyOnClose:O,panelRef:M=null,modalRender:N}=e,P=zB(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:B,getPrefixCls:L,direction:k,modal:D}=i.useContext(Rt),H=he=>{x||R==null||R(he)},z=he=>{j==null||j(he)},_=L("modal",t),F=L(),W=cr(_),[q,V,G]=b6(_,W),K=ue(l,{[`${_}-centered`]:c??(D==null?void 0:D.centered),[`${_}-wrap-rtl`]:k==="rtl"}),U=p!==null&&!h?i.createElement(v6,Object.assign({},e,{onOk:z,onCancel:H})):null,[Z,Q,te,X]=MR(Iv(e),Iv(D),{closable:!0,closeIcon:i.createElement(Po,{className:`${_}-close-icon`}),closeIconRender:he=>m6(_,he)}),ae=N?he=>i.createElement("div",{className:`${_}-render`},N(he)):void 0,re=`.${_}-${N?"render":"content"}`,ne=SB(re),Y=Ir(M,ne),[ie,le]=zo("Modal",w),[de,ce]=i.useMemo(()=>g&&typeof g=="object"?[void 0,g]:[g,void 0],[g]),ge=i.useMemo(()=>{const he={};return ce&&Object.keys(ce).forEach(Oe=>{const je=ce[Oe];je!==void 0&&(he[`--${_}-${Oe}-width`]=typeof je=="number"?`${je}px`:je)}),he},[_,ce]);return q(i.createElement(Xo,{form:!0,space:!0},i.createElement(ig.Provider,{value:le},i.createElement(e6,Object.assign({width:de},P,{zIndex:ie,getContainer:u===void 0?B:u,prefixCls:_,rootClassName:ue(V,r,G,W),footer:U,visible:a??v,mousePosition:E??yy,onClose:H,closable:Z&&Object.assign({disabled:te,closeIcon:Q},X),closeIcon:Q,focusTriggerAfterClose:d,transitionName:Uo(F,"zoom",e.transitionName),maskTransitionName:Uo(F,"fade",e.maskTransitionName),className:ue(V,n,D==null?void 0:D.className),style:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.style),f),ge),classNames:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.classNames),b),{wrapper:ue(K,b==null?void 0:b.wrapper)}),styles:Object.assign(Object.assign({},D==null?void 0:D.styles),C),panelRef:Y,destroyOnClose:I??O,modalRender:ae}),h?i.createElement(bl,{active:!0,title:!1,paragraph:{rows:4},className:`${_}-body-skeleton`}):S))))},_B=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:l,lineHeight:c,modalTitleHeight:u,fontHeight:d,confirmBodyPadding:f}=e,v=`${t}-confirm`;return{[v]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${v}-body-wrapper`]:Object.assign({},Ko()),[`&${t} ${t}-body`]:{padding:f},[`${v}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(d).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(u).sub(a).equal()).div(2).equal()}},[`${v}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${oe(e.marginSM)})`},[`${e.iconCls} + ${v}-paragraph`]:{maxWidth:`calc(100% - ${oe(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${v}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${v}-content`]:{color:e.colorText,fontSize:l,lineHeight:c},[`${v}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${v}-error ${v}-body > ${e.iconCls}`]:{color:e.colorError},[`${v}-warning ${v}-body > ${e.iconCls},
|
|
232
|
+
${v}-confirm ${v}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${v}-info ${v}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${v}-success ${v}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},AB=Uc(["Modal","confirm"],e=>{const t=p6(e);return _B(t)},h6,{order:-1e3});var BB=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 C6=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:a,confirmPrefixCls:l,type:c,okCancel:u,footer:d,locale:f}=e,v=BB(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let g=n;if(!n&&n!==null)switch(c){case"info":g=i.createElement(og,null);break;case"success":g=i.createElement(bs,null);break;case"error":g=i.createElement(hl,null);break;default:g=i.createElement(ys,null)}const p=u??c==="confirm",b=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[C]=Pa("Modal"),S=f||C,h=r||(p?S==null?void 0:S.okText:S==null?void 0:S.justOkText),x=a||(S==null?void 0:S.cancelText),w=i.useMemo(()=>Object.assign({autoFocusButton:b,cancelTextLocale:x,okTextLocale:h,mergedOkCancel:p},v),[b,x,h,p,v]),E=i.createElement(i.Fragment,null,i.createElement(Tw,null),i.createElement(Pw,null)),j=e.title!==void 0&&e.title!==null,R=`${l}-body`;return i.createElement("div",{className:`${l}-body-wrapper`},i.createElement("div",{className:ue(R,{[`${R}-has-title`]:j})},g,i.createElement("div",{className:`${l}-paragraph`},j&&i.createElement("span",{className:`${l}-title`},e.title),i.createElement("div",{className:`${l}-content`},e.content))),d===void 0||typeof d=="function"?i.createElement(GR,{value:w},i.createElement("div",{className:`${l}-btns`},typeof d=="function"?d(E,{OkBtn:Pw,CancelBtn:Tw}):E)):d,i.createElement(AB,{prefixCls:t}))},kB=e=>{const{close:t,zIndex:n,maskStyle:r,direction:a,prefixCls:l,wrapClassName:c,rootPrefixCls:u,bodyStyle:d,closable:f=!1,onConfirm:v,styles:g,title:p}=e,b=`${l}-confirm`,C=e.width||416,S=e.style||{},h=e.mask===void 0?!0:e.mask,x=e.maskClosable===void 0?!1:e.maskClosable,w=ue(b,`${b}-${e.type}`,{[`${b}-rtl`]:a==="rtl"},e.className),[,E]=ia(),j=i.useMemo(()=>n!==void 0?n:E.zIndexPopupBase+b1,[n,E]);return i.createElement(y6,Object.assign({},e,{className:w,wrapClassName:ue({[`${b}-centered`]:!!e.centered},c),onCancel:()=>{t==null||t({triggerCancel:!0}),v==null||v(!1)},title:p,footer:null,transitionName:Uo(u||"","zoom",e.transitionName),maskTransitionName:Uo(u||"","fade",e.maskTransitionName),mask:h,maskClosable:x,style:S,styles:Object.assign({body:d,mask:r},g),width:C,zIndex:j,closable:f}),i.createElement(C6,Object.assign({},e,{confirmPrefixCls:b})))},S6=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return i.createElement(To,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},i.createElement(kB,Object.assign({},e)))},Zl=[];let x6="";function $6(){return x6}const LB=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:l}=e,c=K3(),u=i.useContext(Rt),d=$6()||u.getPrefixCls(),f=r||`${d}-modal`;let v=a;return v===!1&&(v=void 0),ve.createElement(S6,Object.assign({},e,{rootPrefixCls:d,prefixCls:f,iconPrefixCls:u.iconPrefixCls,theme:u.theme,direction:l??u.direction,locale:(n=(t=u.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:c,getContainer:v}))};function lf(e){const t=bR(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:d,open:!0}),a,l;function c(...v){var g;if(v.some(C=>C==null?void 0:C.triggerCancel)){var b;(g=e.onCancel)===null||g===void 0||(b=g).call.apply(b,[e,()=>{}].concat(Ne(v.slice(1))))}for(let C=0;C<Zl.length;C++)if(Zl[C]===d){Zl.splice(C,1);break}l()}const u=v=>{clearTimeout(a),a=setTimeout(()=>{const g=t.getPrefixCls(void 0,$6()),p=t.getIconPrefixCls(),b=t.getTheme(),C=ve.createElement(LB,Object.assign({},v));l=S1()(ve.createElement(To,{prefixCls:g,iconPrefixCls:p,theme:b},typeof t.holderRender=="function"?t.holderRender(C):C),n)})};function d(...v){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),c.apply(this,v)}}),r.visible&&delete r.visible,u(r)}function f(v){typeof v=="function"?r=v(r):r=Object.assign(Object.assign({},r),v),u(r)}return u(r),Zl.push(d),{destroy:d,update:f}}function w6(e){return Object.assign(Object.assign({},e),{type:"warning"})}function E6(e){return Object.assign(Object.assign({},e),{type:"info"})}function O6(e){return Object.assign(Object.assign({},e),{type:"success"})}function R6(e){return Object.assign(Object.assign({},e),{type:"error"})}function j6(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function HB({rootPrefixCls:e}){x6=e}var FB=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 VB=(e,t)=>{var n,{afterClose:r,config:a}=e,l=FB(e,["afterClose","config"]);const[c,u]=i.useState(!0),[d,f]=i.useState(a),{direction:v,getPrefixCls:g}=i.useContext(Rt),p=g("modal"),b=g(),C=()=>{var w;r(),(w=d.afterClose)===null||w===void 0||w.call(d)},S=(...w)=>{var E;if(u(!1),w.some(I=>I==null?void 0:I.triggerCancel)){var R;(E=d.onCancel)===null||E===void 0||(R=E).call.apply(R,[d,()=>{}].concat(Ne(w.slice(1))))}};i.useImperativeHandle(t,()=>({destroy:S,update:w=>{f(E=>{const j=typeof w=="function"?w(E):w;return Object.assign(Object.assign({},E),j)})}}));const h=(n=d.okCancel)!==null&&n!==void 0?n:d.type==="confirm",[x]=Pa("Modal",vo.Modal);return i.createElement(S6,Object.assign({prefixCls:p,rootPrefixCls:b},d,{close:S,open:c,afterClose:C,okText:d.okText||(h?x==null?void 0:x.okText:x==null?void 0:x.justOkText),direction:d.direction||v,cancelText:d.cancelText||(x==null?void 0:x.cancelText)},l))},WB=i.forwardRef(VB);let nE=0;const KB=i.memo(i.forwardRef((e,t)=>{const[n,r]=w_();return i.useImperativeHandle(t,()=>({patchElement:r}),[r]),i.createElement(i.Fragment,null,n)}));function I6(){const e=i.useRef(null),[t,n]=i.useState([]);i.useEffect(()=>{t.length&&(Ne(t).forEach(c=>{c()}),n([]))},[t]);const r=i.useCallback(l=>function(u){var d;nE+=1;const f=i.createRef();let v;const g=new Promise(h=>{v=h});let p=!1,b;const C=i.createElement(WB,{key:`modal-${nE}`,config:l(u),ref:f,afterClose:()=>{b==null||b()},isSilent:()=>p,onConfirm:h=>{v(h)}});return b=(d=e.current)===null||d===void 0?void 0:d.patchElement(C),b&&Zl.push(b),{destroy:()=>{function h(){var x;(x=f.current)===null||x===void 0||x.destroy()}f.current?h():n(x=>[].concat(Ne(x),[h]))},update:h=>{function x(){var w;(w=f.current)===null||w===void 0||w.update(h)}f.current?x():n(w=>[].concat(Ne(w),[x]))},then:h=>(p=!0,g.then(h))}},[]);return[i.useMemo(()=>({info:r(E6),success:r(O6),error:r(R6),warning:r(w6),confirm:r(j6)}),[r]),i.createElement(KB,{key:"modal-holder",ref:e})]}const UB=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,a=`${t}-notice`,l=new Jt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),c=new Jt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),u=new Jt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),d=new Jt("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[a]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:u}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[a]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:d}}}}},qB=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],GB={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},XB=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[GB[t]]:{value:0,_skip_check_:!0}}}}},YB=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},QB=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},ZB=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},YB(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},QB(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},qB.map(n=>XB(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},JB=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:a,notificationMarginBottom:l,borderRadiusLG:c,colorSuccess:u,colorInfo:d,colorWarning:f,colorError:v,colorTextHeading:g,notificationBg:p,notificationPadding:b,notificationMarginEdge:C,notificationProgressBg:S,notificationProgressHeight:h,fontSize:x,lineHeight:w,width:E,notificationIconSize:j,colorText:R,colorSuccessBg:I,colorErrorBg:O,colorInfoBg:M,colorWarningBg:N}=e,P=`${n}-notice`;return{position:"relative",marginBottom:l,marginInlineStart:"auto",background:p,borderRadius:c,boxShadow:r,[P]:{padding:b,width:E,maxWidth:`calc(100vw - ${oe(e.calc(C).mul(2).equal())})`,lineHeight:w,wordWrap:"break-word",borderRadius:c,overflow:"hidden","&-success":I?{background:I}:{},"&-error":O?{background:O}:{},"&-info":M?{background:M}:{},"&-warning":N?{background:N}:{}},[`${P}-message`]:{color:g,fontSize:a,lineHeight:e.lineHeightLG},[`${P}-description`]:{fontSize:x,color:R,marginTop:e.marginXS},[`${P}-closable ${P}-message`]:{paddingInlineEnd:e.paddingLG},[`${P}-with-icon ${P}-message`]:{marginInlineStart:e.calc(e.marginSM).add(j).equal(),fontSize:a},[`${P}-with-icon ${P}-description`]:{marginInlineStart:e.calc(e.marginSM).add(j).equal(),fontSize:x},[`${P}-icon`]:{position:"absolute",fontSize:j,lineHeight:1,[`&-success${t}`]:{color:u},[`&-info${t}`]:{color:d},[`&-warning${t}`]:{color:f},[`&-error${t}`]:{color:v}},[`${P}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},qa(e)),[`${P}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${oe(c)} * 2)`,left:{_skip_check_:!0,value:c},right:{_skip_check_:!0,value:c},bottom:0,blockSize:h,border:0,"&, &::-webkit-progress-bar":{borderRadius:c,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:S},"&::-webkit-progress-value":{borderRadius:c,background:S}},[`${P}-actions`]:{float:"right",marginTop:e.marginSM}}},ek=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:a,motionEaseInOut:l}=e,c=`${t}-notice`,u=new Jt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},dn(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:l,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:l,animationFillMode:"both",animationDuration:a,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:u,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${c}-actions`]:{float:"left"}}})},{[t]:{[`${c}-wrapper`]:JB(e)}}]},tk=e=>({zIndexPopup:e.zIndexPopupBase+b1+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),nk=e=>{const t=e.paddingMD,n=e.paddingLG;return tn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${oe(e.paddingMD)} ${oe(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},rk=sn("Notification",e=>{const t=nk(e);return[ek(t),UB(t),ZB(t)]},tk);function N6(e,t){return t===null||t===!1?null:t||i.createElement(Po,{className:`${e}-close-icon`})}const ak={success:bs,info:og,error:hl,warning:ys},ok=e=>{const{prefixCls:t,icon:n,type:r,message:a,description:l,actions:c,role:u="alert"}=e;let d=null;return n?d=i.createElement("span",{className:`${t}-icon`},n):r&&(d=i.createElement(ak[r]||null,{className:ue(`${t}-icon`,`${t}-icon-${r}`)})),i.createElement("div",{className:ue({[`${t}-with-icon`]:d}),role:u},d,i.createElement("div",{className:`${t}-message`},a),l&&i.createElement("div",{className:`${t}-description`},l),c&&i.createElement("div",{className:`${t}-actions`},c))};function ik(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function lk(e){return{motionName:`${e}-fade`}}function sk(e,t,n){return typeof e<"u"?e:typeof(t==null?void 0:t.closeIcon)<"u"?t.closeIcon:n==null?void 0:n.closeIcon}var ck=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 rE=24,uk=4.5,dk="topRight",fk=({children:e,prefixCls:t})=>{const n=cr(t),[r,a,l]=rk(t,n);return r(ve.createElement(IR,{classNames:{list:ue(a,l,n)}},e))},mk=(e,{prefixCls:t,key:n})=>ve.createElement(fk,{prefixCls:t,key:n},e),vk=ve.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:a,getContainer:l,maxCount:c,rtl:u,onAllRemoved:d,stack:f,duration:v,pauseOnHover:g=!0,showProgress:p}=e,{getPrefixCls:b,getPopupContainer:C,notification:S,direction:h}=i.useContext(Rt),[,x]=ia(),w=a||b("notification"),E=M=>ik(M,n??rE,r??rE),j=()=>ue({[`${w}-rtl`]:u??h==="rtl"}),R=()=>lk(w),[I,O]=NR({prefixCls:w,style:E,className:j,motion:R,closable:!0,closeIcon:N6(w),duration:v??uk,getContainer:()=>(l==null?void 0:l())||(C==null?void 0:C())||document.body,maxCount:c,pauseOnHover:g,showProgress:p,onAllRemoved:d,renderNotifications:mk,stack:f===!1?!1:{threshold:typeof f=="object"?f==null?void 0:f.threshold:void 0,offset:8,gap:x.margin}});return ve.useImperativeHandle(t,()=>Object.assign(Object.assign({},I),{prefixCls:w,notification:S})),O});function gk(e){const t=ve.useRef(null);return Qo(),[ve.useMemo(()=>{const r=u=>{var d;if(!t.current)return;const{open:f,prefixCls:v,notification:g}=t.current,p=`${v}-notice`,{message:b,description:C,icon:S,type:h,btn:x,actions:w,className:E,style:j,role:R="alert",closeIcon:I,closable:O}=u,M=ck(u,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),N=w??x,P=N6(p,sk(I,e,g));return f(Object.assign(Object.assign({placement:(d=e==null?void 0:e.placement)!==null&&d!==void 0?d:dk},M),{content:ve.createElement(ok,{prefixCls:p,icon:S,type:h,message:b,description:C,actions:N,role:R}),className:ue(h&&`${p}-${h}`,E,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),j),closeIcon:P,closable:O??!!P}))},l={open:r,destroy:u=>{var d,f;u!==void 0?(d=t.current)===null||d===void 0||d.close(u):(f=t.current)===null||f===void 0||f.destroy()}};return["success","info","warning","error"].forEach(u=>{l[u]=d=>r(Object.assign(Object.assign({},d),{type:u}))}),l},[]),ve.createElement(vk,Object.assign({key:"notification-holder"},e,{ref:t}))]}function pk(e){return gk(e)}const Cy=ve.createContext({}),M6=ve.createContext({message:{},notification:{},modal:{}}),hk=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:a,fontFamily:l}=e;return{[t]:{color:n,fontSize:r,lineHeight:a,fontFamily:l,[`&${t}-rtl`]:{direction:"rtl"}}}},bk=()=>({}),yk=sn("App",hk,bk),Ck=e=>{const{prefixCls:t,children:n,className:r,rootClassName:a,message:l,notification:c,style:u,component:d="div"}=e,{direction:f,getPrefixCls:v}=i.useContext(Rt),g=v("app",t),[p,b,C]=yk(g),S=ue(b,g,r,a,C,{[`${g}-rtl`]:f==="rtl"}),h=i.useContext(Cy),x=ve.useMemo(()=>({message:Object.assign(Object.assign({},h.message),l),notification:Object.assign(Object.assign({},h.notification),c)}),[l,c,h.message,h.notification]),[w,E]=AR(x.message),[j,R]=pk(x.notification),[I,O]=I6(),M=ve.useMemo(()=>({message:w,notification:j,modal:I}),[w,j,I]);Qo()(!(C&&d===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const N=d===!1?ve.Fragment:d,P={className:S,style:u};return p(ve.createElement(M6.Provider,{value:M},ve.createElement(Cy.Provider,{value:x},ve.createElement(N,Object.assign({},d===!1?void 0:P),O,E,R,n))))},Sk=()=>ve.useContext(M6),Ya=Ck;Ya.useApp=Sk;function T6(e){return t=>i.createElement(To,{theme:{token:{motion:!1,zIndexPopupBase:0}}},i.createElement(e,Object.assign({},t)))}const Qc=(e,t,n,r,a)=>T6(c=>{const{prefixCls:u,style:d}=c,f=i.useRef(null),[v,g]=i.useState(0),[p,b]=i.useState(0),[C,S]=bn(!1,{value:c.open}),{getPrefixCls:h}=i.useContext(Rt),x=h(r||"select",u);i.useEffect(()=>{if(S(!0),typeof ResizeObserver<"u"){const j=new ResizeObserver(I=>{const O=I[0].target;g(O.offsetHeight+8),b(O.offsetWidth)}),R=setInterval(()=>{var I;const O=a?`.${a(x)}`:`.${x}-dropdown`,M=(I=f.current)===null||I===void 0?void 0:I.querySelector(O);M&&(clearInterval(R),j.observe(M))},10);return()=>{clearInterval(R),j.disconnect()}}},[x]);let w=Object.assign(Object.assign({},c),{style:Object.assign(Object.assign({},d),{margin:0}),open:C,visible:C,getPopupContainer:()=>f.current});n&&(w=n(w)),t&&Object.assign(w,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const E={paddingBottom:v,position:"relative",minWidth:p};return i.createElement("div",{ref:f,style:E},i.createElement(e,Object.assign({},w)))}),xg=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))});var $g=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,l=t.children,c=t.onMouseDown,u=t.onClick,d=typeof r=="function"?r(a):r;return i.createElement("span",{className:n,onMouseDown:function(v){v.preventDefault(),c==null||c(v)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},d!==void 0?d:i.createElement("span",{className:ue(n.split(/\s+/).map(function(f){return"".concat(f,"-icon")}))},l))},xk=function(t,n,r,a,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,u=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,f=ve.useMemo(function(){if($t(a)==="object")return a.clearIcon;if(l)return l},[a,l]),v=ve.useMemo(function(){return!!(!c&&a&&(r.length||u)&&!(d==="combobox"&&u===""))},[a,c,r.length,u,d]);return{allowClear:v,clearIcon:ve.createElement($g,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:f},"×")}},P6=i.createContext(null);function z6(){return i.useContext(P6)}function $k(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=i.useState(!1),n=fe(t,2),r=n[0],a=n[1],l=i.useRef(null),c=function(){window.clearTimeout(l.current)};i.useEffect(function(){return c},[]);var u=function(f,v){c(),l.current=window.setTimeout(function(){a(f),v&&v()},e)};return[r,u,c]}function D6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=i.useRef(null),n=i.useRef(null);i.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 wk(e,t,n,r){var a=i.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},i.useEffect(function(){function l(c){var u;if(!((u=a.current)!==null&&u!==void 0&&u.customizedTrigger)){var d=c.target;d.shadowRoot&&c.composed&&(d=c.composedPath()[0]||d),a.current.open&&e().filter(function(f){return f}).every(function(f){return!f.contains(d)&&f!==d})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}function Ek(e){return e&&![ot.ESC,ot.SHIFT,ot.BACKSPACE,ot.TAB,ot.WIN_KEY,ot.ALT,ot.META,ot.WIN_KEY_RIGHT,ot.CTRL,ot.SEMICOLON,ot.EQUALS,ot.CAPS_LOCK,ot.CONTEXT_MENU,ot.F1,ot.F2,ot.F3,ot.F4,ot.F5,ot.F6,ot.F7,ot.F8,ot.F9,ot.F10,ot.F11,ot.F12].includes(e)}var Ok=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],lc=void 0;function Rk(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,l=e.renderItem,c=e.responsive,u=e.responsiveDisabled,d=e.registerSize,f=e.itemKey,v=e.className,g=e.style,p=e.children,b=e.display,C=e.order,S=e.component,h=S===void 0?"div":S,x=Lt(e,Ok),w=c&&!b;function E(M){d(f,M)}i.useEffect(function(){return function(){E(null)}},[]);var j=l&&a!==lc?l(a,{index:C}):p,R;r||(R={opacity:w?0:1,height:w?0:lc,overflowY:w?"hidden":lc,order:c?C:lc,pointerEvents:w?"none":lc,position:w?"absolute":lc});var I={};w&&(I["aria-hidden"]=!0);var O=i.createElement(h,ye({className:ue(!r&&n,v),style:se(se({},R),g)},I,x,{ref:t}),j);return c&&(O=i.createElement(ma,{onResize:function(N){var P=N.offsetWidth;E(P)},disabled:u},O)),O}var Sc=i.forwardRef(Rk);Sc.displayName="Item";function jk(e){if(typeof MessageChannel>"u")Yt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Ik(){var e=i.useRef(null),t=function(r){e.current||(e.current=[],jk(function(){fo.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function sc(e,t){var n=i.useState(t),r=fe(n,2),a=r[0],l=r[1],c=Xt(function(u){e(function(){l(u)})});return[a,c]}var Pv=ve.createContext(null),Nk=["component"],Mk=["className"],Tk=["className"],Pk=function(t,n){var r=i.useContext(Pv);if(!r){var a=t.component,l=a===void 0?"div":a,c=Lt(t,Nk);return i.createElement(l,ye({},c,{ref:n}))}var u=r.className,d=Lt(r,Mk),f=t.className,v=Lt(t,Tk);return i.createElement(Pv.Provider,{value:null},i.createElement(Sc,ye({ref:n,className:ue(u,f)},d,v)))},_6=i.forwardRef(Pk);_6.displayName="RawItem";var zk=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],A6="responsive",B6="invalidate";function Dk(e){return"+ ".concat(e.length," ...")}function _k(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,l=a===void 0?[]:a,c=e.renderItem,u=e.renderRawItem,d=e.itemKey,f=e.itemWidth,v=f===void 0?10:f,g=e.ssr,p=e.style,b=e.className,C=e.maxCount,S=e.renderRest,h=e.renderRawRest,x=e.prefix,w=e.suffix,E=e.component,j=E===void 0?"div":E,R=e.itemComponent,I=e.onVisibleChange,O=Lt(e,zk),M=g==="full",N=Ik(),P=sc(N,null),B=fe(P,2),L=B[0],k=B[1],D=L||0,H=sc(N,new Map),z=fe(H,2),_=z[0],F=z[1],W=sc(N,0),q=fe(W,2),V=q[0],G=q[1],K=sc(N,0),U=fe(K,2),Z=U[0],Q=U[1],te=sc(N,0),X=fe(te,2),ae=X[0],re=X[1],ne=sc(N,0),Y=fe(ne,2),ie=Y[0],le=Y[1],de=i.useState(null),ce=fe(de,2),ge=ce[0],he=ce[1],Oe=i.useState(null),je=fe(Oe,2),pe=je[0],we=je[1],Se=i.useMemo(function(){return pe===null&&M?Number.MAX_SAFE_INTEGER:pe||0},[pe,L]),Ce=i.useState(!1),De=fe(Ce,2),Ae=De[0],Ye=De[1],Ke="".concat(r,"-item"),Fe=Math.max(V,Z),Ge=C===A6,Te=l.length&&Ge,Ee=C===B6,_e=Te||typeof C=="number"&&l.length>C,Re=i.useMemo(function(){var Ve=l;return Te?L===null&&M?Ve=l:Ve=l.slice(0,Math.min(l.length,D/v)):typeof C=="number"&&(Ve=l.slice(0,C)),Ve},[l,v,L,C,Te]),Pe=i.useMemo(function(){return Te?l.slice(Se+1):l.slice(Re.length)},[l,Re,Te,Se]),be=i.useCallback(function(Ve,Ue){var mt;return typeof d=="function"?d(Ve):(mt=d&&(Ve==null?void 0:Ve[d]))!==null&&mt!==void 0?mt:Ue},[d]),$e=i.useCallback(c||function(Ve){return Ve},[c]);function Me(Ve,Ue,mt){pe===Ve&&(Ue===void 0||Ue===ge)||(we(Ve),mt||(Ye(Ve<l.length-1),I==null||I(Ve)),Ue!==void 0&&he(Ue))}function Le(Ve,Ue){k(Ue.clientWidth)}function et(Ve,Ue){F(function(mt){var Mt=new Map(mt);return Ue===null?Mt.delete(Ve):Mt.set(Ve,Ue),Mt})}function bt(Ve,Ue){Q(Ue),G(Z)}function We(Ve,Ue){re(Ue)}function tt(Ve,Ue){le(Ue)}function dt(Ve){return _.get(be(Re[Ve],Ve))}nn(function(){if(D&&typeof Fe=="number"&&Re){var Ve=ae+ie,Ue=Re.length,mt=Ue-1;if(!Ue){Me(0,null);return}for(var Mt=0;Mt<Ue;Mt+=1){var It=dt(Mt);if(M&&(It=It||0),It===void 0){Me(Mt-1,void 0,!0);break}if(Ve+=It,mt===0&&Ve<=D||Mt===mt-1&&Ve+dt(mt)<=D){Me(mt,null);break}else if(Ve+Fe>D){Me(Mt-1,Ve-It-ie+Z);break}}w&&dt(0)+ie>D&&he(null)}},[D,_,Z,ae,ie,be,Re]);var at=Ae&&!!Pe.length,pt={};ge!==null&&Te&&(pt={position:"absolute",left:ge,top:0});var Pt={prefixCls:Ke,responsive:Te,component:R,invalidate:Ee},Et=u?function(Ve,Ue){var mt=be(Ve,Ue);return i.createElement(Pv.Provider,{key:mt,value:se(se({},Pt),{},{order:Ue,item:Ve,itemKey:mt,registerSize:et,display:Ue<=Se})},u(Ve,Ue))}:function(Ve,Ue){var mt=be(Ve,Ue);return i.createElement(Sc,ye({},Pt,{order:Ue,key:mt,item:Ve,renderItem:$e,itemKey:mt,registerSize:et,display:Ue<=Se}))},ct={order:at?Se:Number.MAX_SAFE_INTEGER,className:"".concat(Ke,"-rest"),registerSize:bt,display:at},St=S||Dk,yt=h?i.createElement(Pv.Provider,{value:se(se({},Pt),ct)},h(Pe)):i.createElement(Sc,ye({},Pt,ct),typeof St=="function"?St(Pe):St),Je=i.createElement(j,ye({className:ue(!Ee&&r,b),style:p,ref:t},O),x&&i.createElement(Sc,ye({},Pt,{responsive:Ge,responsiveDisabled:!Te,order:-1,className:"".concat(Ke,"-prefix"),registerSize:We,display:!0}),x),Re.map(Et),_e?yt:null,w&&i.createElement(Sc,ye({},Pt,{responsive:Ge,responsiveDisabled:!Te,order:Se,className:"".concat(Ke,"-suffix"),registerSize:tt,display:!0,style:pt}),w));return Ge?i.createElement(ma,{onResize:Le,disabled:!Te},Je):Je}var wo=i.forwardRef(_k);wo.displayName="Overflow";wo.Item=_6;wo.RESPONSIVE=A6;wo.INVALIDATE=B6;function Ak(e,t,n){var r=se(se({},e),t);return Object.keys(t).forEach(function(a){var l=t[a];typeof l=="function"&&(r[a]=function(){for(var c,u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return l.apply(void 0,d),(c=e[a])===null||c===void 0?void 0:c.call.apply(c,[e].concat(d))})}),r}var Bk=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],kk=function(t,n){var r=t.prefixCls,a=t.id,l=t.inputElement,c=t.autoFocus,u=t.autoComplete,d=t.editable,f=t.activeDescendantId,v=t.value,g=t.open,p=t.attrs,b=Lt(t,Bk),C=l||i.createElement("input",null),S=C,h=S.ref,x=S.props;return"maxLength"in C.props,C=i.cloneElement(C,se(se(se({type:"search"},Ak(b,x)),{},{id:a,ref:Ir(n,h),autoComplete:u||"off",autoFocus:c,className:ue("".concat(r,"-selection-search-input"),x==null?void 0:x.className),role:"combobox","aria-expanded":g||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":g?f:void 0},p),{},{value:d?v:"",readOnly:!d,unselectable:d?null:"on",style:se(se({},x.style),{},{opacity:d?null:0})})),C},k6=i.forwardRef(kk);function L6(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Lk=typeof window<"u"&&window.document&&window.document.documentElement,Hk=Lk;function Fk(e){return e!=null}function Vk(e){return!e&&e!==0}function aE(e){return["string","number"].includes($t(e))}function H6(e){var t=void 0;return e&&(aE(e.title)?t=e.title.toString():aE(e.label)&&(t=e.label.toString())),t}function Wk(e,t){Hk?i.useLayoutEffect(e,t):i.useEffect(e,t)}function Kk(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var oE=function(t){t.preventDefault(),t.stopPropagation()},Uk=function(t){var n=t.id,r=t.prefixCls,a=t.values,l=t.open,c=t.searchValue,u=t.autoClearSearchValue,d=t.inputRef,f=t.placeholder,v=t.disabled,g=t.mode,p=t.showSearch,b=t.autoFocus,C=t.autoComplete,S=t.activeDescendantId,h=t.tabIndex,x=t.removeIcon,w=t.maxTagCount,E=t.maxTagTextLength,j=t.maxTagPlaceholder,R=j===void 0?function(le){return"+ ".concat(le.length," ...")}:j,I=t.tagRender,O=t.onToggleOpen,M=t.onRemove,N=t.onInputChange,P=t.onInputPaste,B=t.onInputKeyDown,L=t.onInputMouseDown,k=t.onInputCompositionStart,D=t.onInputCompositionEnd,H=t.onInputBlur,z=i.useRef(null),_=i.useState(0),F=fe(_,2),W=F[0],q=F[1],V=i.useState(!1),G=fe(V,2),K=G[0],U=G[1],Z="".concat(r,"-selection"),Q=l||g==="multiple"&&u===!1||g==="tags"?c:"",te=g==="tags"||g==="multiple"&&u===!1||p&&(l||K);Wk(function(){q(z.current.scrollWidth)},[Q]);var X=function(de,ce,ge,he,Oe){return i.createElement("span",{title:H6(de),className:ue("".concat(Z,"-item"),ee({},"".concat(Z,"-item-disabled"),ge))},i.createElement("span",{className:"".concat(Z,"-item-content")},ce),he&&i.createElement($g,{className:"".concat(Z,"-item-remove"),onMouseDown:oE,onClick:Oe,customizeIcon:x},"×"))},ae=function(de,ce,ge,he,Oe,je){var pe=function(Se){oE(Se),O(!l)};return i.createElement("span",{onMouseDown:pe},I({label:ce,value:de,disabled:ge,closable:he,onClose:Oe,isMaxTag:!!je}))},re=function(de){var ce=de.disabled,ge=de.label,he=de.value,Oe=!v&&!ce,je=ge;if(typeof E=="number"&&(typeof ge=="string"||typeof ge=="number")){var pe=String(je);pe.length>E&&(je="".concat(pe.slice(0,E),"..."))}var we=function(Ce){Ce&&Ce.stopPropagation(),M(de)};return typeof I=="function"?ae(he,je,ce,Oe,we):X(de,je,ce,Oe,we)},ne=function(de){if(!a.length)return null;var ce=typeof R=="function"?R(de):R;return typeof I=="function"?ae(void 0,ce,!1,!1,void 0,!0):X({title:ce},ce,!1)},Y=i.createElement("div",{className:"".concat(Z,"-search"),style:{width:W},onFocus:function(){U(!0)},onBlur:function(){U(!1)}},i.createElement(k6,{ref:d,open:l,prefixCls:r,id:n,inputElement:null,disabled:v,autoFocus:b,autoComplete:C,editable:te,activeDescendantId:S,value:Q,onKeyDown:B,onMouseDown:L,onChange:N,onPaste:P,onCompositionStart:k,onCompositionEnd:D,onBlur:H,tabIndex:h,attrs:Rr(t,!0)}),i.createElement("span",{ref:z,className:"".concat(Z,"-search-mirror"),"aria-hidden":!0},Q," ")),ie=i.createElement(wo,{prefixCls:"".concat(Z,"-overflow"),data:a,renderItem:re,renderRest:ne,suffix:Y,itemKey:Kk,maxCount:w});return i.createElement("span",{className:"".concat(Z,"-wrap")},ie,!a.length&&!Q&&i.createElement("span",{className:"".concat(Z,"-placeholder")},f))},qk=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,l=t.inputRef,c=t.disabled,u=t.autoFocus,d=t.autoComplete,f=t.activeDescendantId,v=t.mode,g=t.open,p=t.values,b=t.placeholder,C=t.tabIndex,S=t.showSearch,h=t.searchValue,x=t.activeValue,w=t.maxLength,E=t.onInputKeyDown,j=t.onInputMouseDown,R=t.onInputChange,I=t.onInputPaste,O=t.onInputCompositionStart,M=t.onInputCompositionEnd,N=t.onInputBlur,P=t.title,B=i.useState(!1),L=fe(B,2),k=L[0],D=L[1],H=v==="combobox",z=H||S,_=p[0],F=h||"";H&&x&&!k&&(F=x),i.useEffect(function(){H&&D(!1)},[H,x]);var W=v!=="combobox"&&!g&&!S?!1:!!F,q=P===void 0?H6(_):P,V=i.useMemo(function(){return _?null:i.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:W?{visibility:"hidden"}:void 0},b)},[_,W,b,r]);return i.createElement("span",{className:"".concat(r,"-selection-wrap")},i.createElement("span",{className:"".concat(r,"-selection-search")},i.createElement(k6,{ref:l,prefixCls:r,id:a,open:g,inputElement:n,disabled:c,autoFocus:u,autoComplete:d,editable:z,activeDescendantId:f,value:F,onKeyDown:E,onMouseDown:j,onChange:function(K){D(!0),R(K)},onPaste:I,onCompositionStart:O,onCompositionEnd:M,onBlur:N,tabIndex:C,attrs:Rr(t,!0),maxLength:H?w:void 0})),!H&&_?i.createElement("span",{className:"".concat(r,"-selection-item"),title:q,style:W?{visibility:"hidden"}:void 0},_.label):null,V)},Gk=function(t,n){var r=i.useRef(null),a=i.useRef(!1),l=t.prefixCls,c=t.open,u=t.mode,d=t.showSearch,f=t.tokenWithEnter,v=t.disabled,g=t.prefix,p=t.autoClearSearchValue,b=t.onSearch,C=t.onSearchSubmit,S=t.onToggleOpen,h=t.onInputKeyDown,x=t.onInputBlur,w=t.domRef;i.useImperativeHandle(n,function(){return{focus:function(q){r.current.focus(q)},blur:function(){r.current.blur()}}});var E=D6(0),j=fe(E,2),R=j[0],I=j[1],O=function(q){var V=q.which,G=r.current instanceof HTMLTextAreaElement;!G&&c&&(V===ot.UP||V===ot.DOWN)&&q.preventDefault(),h&&h(q),V===ot.ENTER&&u==="tags"&&!a.current&&!c&&(C==null||C(q.target.value)),!(G&&!c&&~[ot.UP,ot.DOWN,ot.LEFT,ot.RIGHT].indexOf(V))&&Ek(V)&&S(!0)},M=function(){I(!0)},N=i.useRef(null),P=function(q){b(q,!0,a.current)!==!1&&S(!0)},B=function(){a.current=!0},L=function(q){a.current=!1,u!=="combobox"&&P(q.target.value)},k=function(q){var V=q.target.value;if(f&&N.current&&/[\r\n]/.test(N.current)){var G=N.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");V=V.replace(G,N.current)}N.current=null,P(V)},D=function(q){var V=q.clipboardData,G=V==null?void 0:V.getData("text");N.current=G||""},H=function(q){var V=q.target;if(V!==r.current){var G=document.body.style.msTouchAction!==void 0;G?setTimeout(function(){r.current.focus()}):r.current.focus()}},z=function(q){var V=R();q.target!==r.current&&!V&&!(u==="combobox"&&v)&&q.preventDefault(),(u!=="combobox"&&(!d||!V)||!c)&&(c&&p!==!1&&b("",!0,!1),S())},_={inputRef:r,onInputKeyDown:O,onInputMouseDown:M,onInputChange:k,onInputPaste:D,onInputCompositionStart:B,onInputCompositionEnd:L,onInputBlur:x},F=u==="multiple"||u==="tags"?i.createElement(Uk,ye({},t,_)):i.createElement(qk,ye({},t,_));return i.createElement("div",{ref:w,className:"".concat(l,"-selector"),onClick:H,onMouseDown:z},g&&i.createElement("div",{className:"".concat(l,"-prefix")},g),F)},Xk=i.forwardRef(Gk);function Yk(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,l=r||{},c=l.className,u=l.content,d=a.x,f=d===void 0?0:d,v=a.y,g=v===void 0?0:v,p=i.useRef();if(!n||!n.points)return null;var b={position:"absolute"};if(n.autoArrow!==!1){var C=n.points[0],S=n.points[1],h=C[0],x=C[1],w=S[0],E=S[1];h===w||!["t","b"].includes(h)?b.top=g:h==="t"?b.top=0:b.bottom=0,x===E||!["l","r"].includes(x)?b.left=f:x==="l"?b.left=0:b.right=0}return i.createElement("div",{ref:p,className:ue("".concat(t,"-arrow"),c),style:b},u)}function Qk(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,l=e.motion;return a?i.createElement(Qr,ye({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(c){var u=c.className;return i.createElement("div",{style:{zIndex:r},className:ue("".concat(t,"-mask"),u)})}):null}var Zk=i.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),Jk=i.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,l=e.style,c=e.target,u=e.onVisibleChanged,d=e.open,f=e.keepDom,v=e.fresh,g=e.onClick,p=e.mask,b=e.arrow,C=e.arrowPos,S=e.align,h=e.motion,x=e.maskMotion,w=e.forceRender,E=e.getPopupContainer,j=e.autoDestroy,R=e.portal,I=e.zIndex,O=e.onMouseEnter,M=e.onMouseLeave,N=e.onPointerEnter,P=e.onPointerDownCapture,B=e.ready,L=e.offsetX,k=e.offsetY,D=e.offsetR,H=e.offsetB,z=e.onAlign,_=e.onPrepare,F=e.stretch,W=e.targetWidth,q=e.targetHeight,V=typeof n=="function"?n():n,G=d||f,K=(E==null?void 0:E.length)>0,U=i.useState(!E||!K),Z=fe(U,2),Q=Z[0],te=Z[1];if(nn(function(){!Q&&K&&c&&te(!0)},[Q,K,c]),!Q)return null;var X="auto",ae={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(B||!d){var re,ne=S.points,Y=S.dynamicInset||((re=S._experimental)===null||re===void 0?void 0:re.dynamicInset),ie=Y&&ne[0][1]==="r",le=Y&&ne[0][0]==="b";ie?(ae.right=D,ae.left=X):(ae.left=L,ae.right=X),le?(ae.bottom=H,ae.top=X):(ae.top=k,ae.bottom=X)}var de={};return F&&(F.includes("height")&&q?de.height=q:F.includes("minHeight")&&q&&(de.minHeight=q),F.includes("width")&&W?de.width=W:F.includes("minWidth")&&W&&(de.minWidth=W)),d||(de.pointerEvents="none"),i.createElement(R,{open:w||G,getContainer:E&&function(){return E(c)},autoDestroy:j},i.createElement(Qk,{prefixCls:a,open:d,zIndex:I,mask:p,motion:x}),i.createElement(ma,{onResize:z,disabled:!d},function(ce){return i.createElement(Qr,ye({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(a,"-hidden")},h,{onAppearPrepare:_,onEnterPrepare:_,visible:d,onVisibleChanged:function(he){var Oe;h==null||(Oe=h.onVisibleChanged)===null||Oe===void 0||Oe.call(h,he),u(he)}}),function(ge,he){var Oe=ge.className,je=ge.style,pe=ue(a,Oe,r);return i.createElement("div",{ref:Ir(ce,t,he),className:pe,style:se(se(se(se({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},ae),de),je),{},{boxSizing:"border-box",zIndex:I},l),onMouseEnter:O,onMouseLeave:M,onPointerEnter:N,onClick:g,onPointerDownCapture:P},b&&i.createElement(Yk,{prefixCls:a,arrow:b,arrowPos:C,align:S}),i.createElement(Zk,{cache:!d&&!v},V))})}))}),eL=i.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=Oo(n),l=i.useCallback(function(u){Id(t,r?r(u):u)},[r]),c=Si(l,pl(n));return a?i.cloneElement(n,{ref:c}):n}),iE=i.createContext(null);function lE(e){return e?Array.isArray(e)?e:[e]:[]}function tL(e,t,n,r){return i.useMemo(function(){var a=lE(n??t),l=lE(r??t),c=new Set(a),u=new Set(l);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 nL(){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 rL(e,t,n,r){for(var a=n.points,l=Object.keys(e),c=0;c<l.length;c+=1){var u,d=l[c];if(nL((u=e[d])===null||u===void 0?void 0:u.points,a,r))return"".concat(t,"-placement-").concat(d)}return""}function sE(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function sf(e){return e.ownerDocument.defaultView}function Sy(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var a=sf(n).getComputedStyle(n),l=a.overflowX,c=a.overflowY,u=a.overflow;[l,c,u].some(function(d){return r.includes(d)})&&t.push(n),n=n.parentElement}return t}function Ld(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ju(e){return Ld(parseFloat(e),0)}function cE(e,t){var n=se({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=sf(r).getComputedStyle(r),l=a.overflow,c=a.overflowClipMargin,u=a.borderTopWidth,d=a.borderBottomWidth,f=a.borderLeftWidth,v=a.borderRightWidth,g=r.getBoundingClientRect(),p=r.offsetHeight,b=r.clientHeight,C=r.offsetWidth,S=r.clientWidth,h=Ju(u),x=Ju(d),w=Ju(f),E=Ju(v),j=Ld(Math.round(g.width/C*1e3)/1e3),R=Ld(Math.round(g.height/p*1e3)/1e3),I=(C-S-w-E)*j,O=(p-b-h-x)*R,M=h*R,N=x*R,P=w*j,B=E*j,L=0,k=0;if(l==="clip"){var D=Ju(c);L=D*j,k=D*R}var H=g.x+P-L,z=g.y+M-k,_=H+g.width+2*L-P-B-I,F=z+g.height+2*k-M-N-O;n.left=Math.max(n.left,H),n.top=Math.max(n.top,z),n.right=Math.min(n.right,_),n.bottom=Math.min(n.bottom,F)}}),n}function uE(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 dE(e,t){var n=t||[],r=fe(n,2),a=r[0],l=r[1];return[uE(e.width,a),uE(e.height,l)]}function fE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function cc(e,t){var n=t[0],r=t[1],a,l;return n==="t"?l=e.y:n==="b"?l=e.y+e.height:l=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:l}}function qi(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 aL(e,t,n,r,a,l,c){var u=i.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),d=fe(u,2),f=d[0],v=d[1],g=i.useRef(0),p=i.useMemo(function(){return t?Sy(t):[]},[t]),b=i.useRef({}),C=function(){b.current={}};e||C();var S=Xt(function(){if(t&&n&&e){let Kn=function(Zr,Tr){var la=arguments.length>2&&arguments[2]!==void 0?arguments[2]:De,$l=G.x+Zr,xi=G.y+Tr,js=$l+le,Ht=xi+ie,Zt=Math.max($l,la.left),tr=Math.max(xi,la.top),lr=Math.min(js,la.right),Bn=Math.min(Ht,la.bottom);return Math.max(0,(lr-Zt)*(Bn-tr))},Kr=function(){rn=G.y+St,Qt=rn+ie,vn=G.x+ct,qt=vn+le};var zn=Kn,Zn=Kr,w,E,j,R,I=t,O=I.ownerDocument,M=sf(I),N=M.getComputedStyle(I),P=N.position,B=I.style.left,L=I.style.top,k=I.style.right,D=I.style.bottom,H=I.style.overflow,z=se(se({},a[r]),l),_=O.createElement("div");(w=I.parentElement)===null||w===void 0||w.appendChild(_),_.style.left="".concat(I.offsetLeft,"px"),_.style.top="".concat(I.offsetTop,"px"),_.style.position=P,_.style.height="".concat(I.offsetHeight,"px"),_.style.width="".concat(I.offsetWidth,"px"),I.style.left="0",I.style.top="0",I.style.right="auto",I.style.bottom="auto",I.style.overflow="hidden";var F;if(Array.isArray(n))F={x:n[0],y:n[1],width:0,height:0};else{var W,q,V=n.getBoundingClientRect();V.x=(W=V.x)!==null&&W!==void 0?W:V.left,V.y=(q=V.y)!==null&&q!==void 0?q:V.top,F={x:V.x,y:V.y,width:V.width,height:V.height}}var G=I.getBoundingClientRect(),K=M.getComputedStyle(I),U=K.height,Z=K.width;G.x=(E=G.x)!==null&&E!==void 0?E:G.left,G.y=(j=G.y)!==null&&j!==void 0?j:G.top;var Q=O.documentElement,te=Q.clientWidth,X=Q.clientHeight,ae=Q.scrollWidth,re=Q.scrollHeight,ne=Q.scrollTop,Y=Q.scrollLeft,ie=G.height,le=G.width,de=F.height,ce=F.width,ge={left:0,top:0,right:te,bottom:X},he={left:-Y,top:-ne,right:ae-Y,bottom:re-ne},Oe=z.htmlRegion,je="visible",pe="visibleFirst";Oe!=="scroll"&&Oe!==pe&&(Oe=je);var we=Oe===pe,Se=cE(he,p),Ce=cE(ge,p),De=Oe===je?Ce:Se,Ae=we?Ce:De;I.style.left="auto",I.style.top="auto",I.style.right="0",I.style.bottom="0";var Ye=I.getBoundingClientRect();I.style.left=B,I.style.top=L,I.style.right=k,I.style.bottom=D,I.style.overflow=H,(R=I.parentElement)===null||R===void 0||R.removeChild(_);var Ke=Ld(Math.round(le/parseFloat(Z)*1e3)/1e3),Fe=Ld(Math.round(ie/parseFloat(U)*1e3)/1e3);if(Ke===0||Fe===0||jd(n)&&!Gc(n))return;var Ge=z.offset,Te=z.targetOffset,Ee=dE(G,Ge),_e=fe(Ee,2),Re=_e[0],Pe=_e[1],be=dE(F,Te),$e=fe(be,2),Me=$e[0],Le=$e[1];F.x-=Me,F.y-=Le;var et=z.points||[],bt=fe(et,2),We=bt[0],tt=bt[1],dt=fE(tt),at=fE(We),pt=cc(F,dt),Pt=cc(G,at),Et=se({},z),ct=pt.x-Pt.x+Re,St=pt.y-Pt.y+Pe,yt=Kn(ct,St),Je=Kn(ct,St,Ce),Ve=cc(F,["t","l"]),Ue=cc(G,["t","l"]),mt=cc(F,["b","r"]),Mt=cc(G,["b","r"]),It=z.overflow||{},Vt=It.adjustX,ft=It.adjustY,lt=It.shiftX,At=It.shiftY,Ut=function(Tr){return typeof Tr=="boolean"?Tr:Tr>=0},rn,Qt,vn,qt;Kr();var un=Ut(ft),st=at[0]===dt[0];if(un&&at[0]==="t"&&(Qt>Ae.bottom||b.current.bt)){var Ct=St;st?Ct-=ie-de:Ct=Ve.y-Mt.y-Pe;var ht=Kn(ct,Ct),Xe=Kn(ct,Ct,Ce);ht>yt||ht===yt&&(!we||Xe>=Je)?(b.current.bt=!0,St=Ct,Pe=-Pe,Et.points=[qi(at,0),qi(dt,0)]):b.current.bt=!1}if(un&&at[0]==="b"&&(rn<Ae.top||b.current.tb)){var Qe=St;st?Qe+=ie-de:Qe=mt.y-Ue.y-Pe;var ut=Kn(ct,Qe),zt=Kn(ct,Qe,Ce);ut>yt||ut===yt&&(!we||zt>=Je)?(b.current.tb=!0,St=Qe,Pe=-Pe,Et.points=[qi(at,0),qi(dt,0)]):b.current.tb=!1}var Kt=Ut(Vt),vt=at[1]===dt[1];if(Kt&&at[1]==="l"&&(qt>Ae.right||b.current.rl)){var Nt=ct;vt?Nt-=le-ce:Nt=Ve.x-Mt.x-Re;var Ft=Kn(Nt,St),xn=Kn(Nt,St,Ce);Ft>yt||Ft===yt&&(!we||xn>=Je)?(b.current.rl=!0,ct=Nt,Re=-Re,Et.points=[qi(at,1),qi(dt,1)]):b.current.rl=!1}if(Kt&&at[1]==="r"&&(vn<Ae.left||b.current.lr)){var _n=ct;vt?_n+=le-ce:_n=mt.x-Ue.x-Re;var Pn=Kn(_n,St),Wn=Kn(_n,St,Ce);Pn>yt||Pn===yt&&(!we||Wn>=Je)?(b.current.lr=!0,ct=_n,Re=-Re,Et.points=[qi(at,1),qi(dt,1)]):b.current.lr=!1}Kr();var Rn=lt===!0?0:lt;typeof Rn=="number"&&(vn<Ce.left&&(ct-=vn-Ce.left-Re,F.x+ce<Ce.left+Rn&&(ct+=F.x-Ce.left+ce-Rn)),qt>Ce.right&&(ct-=qt-Ce.right-Re,F.x>Ce.right-Rn&&(ct+=F.x-Ce.right+Rn)));var An=At===!0?0:At;typeof An=="number"&&(rn<Ce.top&&(St-=rn-Ce.top-Pe,F.y+de<Ce.top+An&&(St+=F.y-Ce.top+de-An)),Qt>Ce.bottom&&(St-=Qt-Ce.bottom-Pe,F.y>Ce.bottom-An&&(St+=F.y-Ce.bottom+An)));var Cr=G.x+ct,Mr=Cr+le,pr=G.y+St,Cn=pr+ie,Bt=F.x,kt=Bt+ce,an=F.y,Tt=an+de,Dt=Math.max(Cr,Bt),mn=Math.min(Mr,kt),jn=(Dt+mn)/2,Yn=jn-Cr,Sr=Math.max(pr,an),Qn=Math.min(Cn,Tt),wr=(Sr+Qn)/2,cn=wr-pr;c==null||c(t,Et);var gt=Ye.right-G.x-(ct+G.width),jt=Ye.bottom-G.y-(St+G.height);Ke===1&&(ct=Math.floor(ct),gt=Math.floor(gt)),Fe===1&&(St=Math.floor(St),jt=Math.floor(jt));var fn={ready:!0,offsetX:ct/Ke,offsetY:St/Fe,offsetR:gt/Ke,offsetB:jt/Fe,arrowX:Yn/Ke,arrowY:cn/Fe,scaleX:Ke,scaleY:Fe,align:Et};v(fn)}}),h=function(){g.current+=1;var E=g.current;Promise.resolve().then(function(){g.current===E&&S()})},x=function(){v(function(E){return se(se({},E),{},{ready:!1})})};return nn(x,[r]),nn(function(){e||x()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,h]}function oL(e,t,n,r,a){nn(function(){if(e&&t&&n){let p=function(){r(),a()};var g=p,l=t,c=n,u=Sy(l),d=Sy(c),f=sf(c),v=new Set([f].concat(Ne(u),Ne(d)));return v.forEach(function(b){b.addEventListener("scroll",p,{passive:!0})}),f.addEventListener("resize",p,{passive:!0}),r(),function(){v.forEach(function(b){b.removeEventListener("scroll",p),f.removeEventListener("resize",p)})}}},[e,t,n])}function iL(e,t,n,r,a,l,c,u){var d=i.useRef(e);d.current=e;var f=i.useRef(!1);i.useEffect(function(){if(t&&r&&(!a||l)){var g=function(){f.current=!1},p=function(h){var x;d.current&&!c(((x=h.composedPath)===null||x===void 0||(x=x.call(h))===null||x===void 0?void 0:x[0])||h.target)&&!f.current&&u(!1)},b=sf(r);b.addEventListener("pointerdown",g,!0),b.addEventListener("mousedown",p,!0),b.addEventListener("contextmenu",p,!0);var C=jv(n);return C&&(C.addEventListener("mousedown",p,!0),C.addEventListener("contextmenu",p,!0)),function(){b.removeEventListener("pointerdown",g,!0),b.removeEventListener("mousedown",p,!0),b.removeEventListener("contextmenu",p,!0),C&&(C.removeEventListener("mousedown",p,!0),C.removeEventListener("contextmenu",p,!0))}}},[t,n,r,a,l]);function v(){f.current=!0}return v}var lL=["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 sL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:j1,t=i.forwardRef(function(n,r){var a=n.prefixCls,l=a===void 0?"rc-trigger-popup":a,c=n.children,u=n.action,d=u===void 0?"hover":u,f=n.showAction,v=n.hideAction,g=n.popupVisible,p=n.defaultPopupVisible,b=n.onPopupVisibleChange,C=n.afterPopupVisibleChange,S=n.mouseEnterDelay,h=n.mouseLeaveDelay,x=h===void 0?.1:h,w=n.focusDelay,E=n.blurDelay,j=n.mask,R=n.maskClosable,I=R===void 0?!0:R,O=n.getPopupContainer,M=n.forceRender,N=n.autoDestroy,P=n.destroyPopupOnHide,B=n.popup,L=n.popupClassName,k=n.popupStyle,D=n.popupPlacement,H=n.builtinPlacements,z=H===void 0?{}:H,_=n.popupAlign,F=n.zIndex,W=n.stretch,q=n.getPopupClassNameFromAlign,V=n.fresh,G=n.alignPoint,K=n.onPopupClick,U=n.onPopupAlign,Z=n.arrow,Q=n.popupMotion,te=n.maskMotion,X=n.popupTransitionName,ae=n.popupAnimation,re=n.maskTransitionName,ne=n.maskAnimation,Y=n.className,ie=n.getTriggerDOMNode,le=Lt(n,lL),de=N||P||!1,ce=i.useState(!1),ge=fe(ce,2),he=ge[0],Oe=ge[1];nn(function(){Oe(xg())},[]);var je=i.useRef({}),pe=i.useContext(iE),we=i.useMemo(function(){return{registerSubPopup:function(Zt,tr){je.current[Zt]=tr,pe==null||pe.registerSubPopup(Zt,tr)}}},[pe]),Se=af(),Ce=i.useState(null),De=fe(Ce,2),Ae=De[0],Ye=De[1],Ke=i.useRef(null),Fe=Xt(function(Ht){Ke.current=Ht,jd(Ht)&&Ae!==Ht&&Ye(Ht),pe==null||pe.registerSubPopup(Se,Ht)}),Ge=i.useState(null),Te=fe(Ge,2),Ee=Te[0],_e=Te[1],Re=i.useRef(null),Pe=Xt(function(Ht){jd(Ht)&&Ee!==Ht&&(_e(Ht),Re.current=Ht)}),be=i.Children.only(c),$e=(be==null?void 0:be.props)||{},Me={},Le=Xt(function(Ht){var Zt,tr,lr=Ee;return(lr==null?void 0:lr.contains(Ht))||((Zt=jv(lr))===null||Zt===void 0?void 0:Zt.host)===Ht||Ht===lr||(Ae==null?void 0:Ae.contains(Ht))||((tr=jv(Ae))===null||tr===void 0?void 0:tr.host)===Ht||Ht===Ae||Object.values(je.current).some(function(Bn){return(Bn==null?void 0:Bn.contains(Ht))||Ht===Bn})}),et=sE(l,Q,ae,X),bt=sE(l,te,ne,re),We=i.useState(p||!1),tt=fe(We,2),dt=tt[0],at=tt[1],pt=g??dt,Pt=Xt(function(Ht){g===void 0&&at(Ht)});nn(function(){at(g||!1)},[g]);var Et=i.useRef(pt);Et.current=pt;var ct=i.useRef([]);ct.current=[];var St=Xt(function(Ht){var Zt;Pt(Ht),((Zt=ct.current[ct.current.length-1])!==null&&Zt!==void 0?Zt:pt)!==Ht&&(ct.current.push(Ht),b==null||b(Ht))}),yt=i.useRef(),Je=function(){clearTimeout(yt.current)},Ve=function(Zt){var tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Je(),tr===0?St(Zt):yt.current=setTimeout(function(){St(Zt)},tr*1e3)};i.useEffect(function(){return Je},[]);var Ue=i.useState(!1),mt=fe(Ue,2),Mt=mt[0],It=mt[1];nn(function(Ht){(!Ht||pt)&&It(!0)},[pt]);var Vt=i.useState(null),ft=fe(Vt,2),lt=ft[0],At=ft[1],Ut=i.useState(null),rn=fe(Ut,2),Qt=rn[0],vn=rn[1],qt=function(Zt){vn([Zt.clientX,Zt.clientY])},un=aL(pt,Ae,G&&Qt!==null?Qt:Ee,D,z,_,U),st=fe(un,11),Ct=st[0],ht=st[1],Xe=st[2],Qe=st[3],ut=st[4],zt=st[5],Kt=st[6],vt=st[7],Nt=st[8],Ft=st[9],xn=st[10],_n=tL(he,d,f,v),Pn=fe(_n,2),Wn=Pn[0],Rn=Pn[1],An=Wn.has("click"),Cr=Rn.has("click")||Rn.has("contextMenu"),Mr=Xt(function(){Mt||xn()}),pr=function(){Et.current&&G&&Cr&&Ve(!1)};oL(pt,Ee,Ae,Mr,pr),nn(function(){Mr()},[Qt,D]),nn(function(){pt&&!(z!=null&&z[D])&&Mr()},[JSON.stringify(_)]);var Cn=i.useMemo(function(){var Ht=rL(z,l,Ft,G);return ue(Ht,q==null?void 0:q(Ft))},[Ft,q,z,l,G]);i.useImperativeHandle(r,function(){return{nativeElement:Re.current,popupElement:Ke.current,forceAlign:Mr}});var Bt=i.useState(0),kt=fe(Bt,2),an=kt[0],Tt=kt[1],Dt=i.useState(0),mn=fe(Dt,2),jn=mn[0],Yn=mn[1],Sr=function(){if(W&&Ee){var Zt=Ee.getBoundingClientRect();Tt(Zt.width),Yn(Zt.height)}},Qn=function(){Sr(),Mr()},wr=function(Zt){It(!1),xn(),C==null||C(Zt)},cn=function(){return new Promise(function(Zt){Sr(),At(function(){return Zt})})};nn(function(){lt&&(xn(),lt(),At(null))},[lt]);function gt(Ht,Zt,tr,lr){Me[Ht]=function(Bn){var $i;lr==null||lr(Bn),Ve(Zt,tr);for(var wi=arguments.length,cu=new Array(wi>1?wi-1:0),Jo=1;Jo<wi;Jo++)cu[Jo-1]=arguments[Jo];($i=$e[Ht])===null||$i===void 0||$i.call.apply($i,[$e,Bn].concat(cu))}}(An||Cr)&&(Me.onClick=function(Ht){var Zt;Et.current&&Cr?Ve(!1):!Et.current&&An&&(qt(Ht),Ve(!0));for(var tr=arguments.length,lr=new Array(tr>1?tr-1:0),Bn=1;Bn<tr;Bn++)lr[Bn-1]=arguments[Bn];(Zt=$e.onClick)===null||Zt===void 0||Zt.call.apply(Zt,[$e,Ht].concat(lr))});var jt=iL(pt,Cr,Ee,Ae,j,I,Le,Ve),fn=Wn.has("hover"),zn=Rn.has("hover"),Zn,Kn;fn&&(gt("onMouseEnter",!0,S,function(Ht){qt(Ht)}),gt("onPointerEnter",!0,S,function(Ht){qt(Ht)}),Zn=function(Zt){(pt||Mt)&&Ae!==null&&Ae!==void 0&&Ae.contains(Zt.target)&&Ve(!0,S)},G&&(Me.onMouseMove=function(Ht){var Zt;(Zt=$e.onMouseMove)===null||Zt===void 0||Zt.call($e,Ht)})),zn&&(gt("onMouseLeave",!1,x),gt("onPointerLeave",!1,x),Kn=function(){Ve(!1,x)}),Wn.has("focus")&>("onFocus",!0,w),Rn.has("focus")&>("onBlur",!1,E),Wn.has("contextMenu")&&(Me.onContextMenu=function(Ht){var Zt;Et.current&&Rn.has("contextMenu")?Ve(!1):(qt(Ht),Ve(!0)),Ht.preventDefault();for(var tr=arguments.length,lr=new Array(tr>1?tr-1:0),Bn=1;Bn<tr;Bn++)lr[Bn-1]=arguments[Bn];(Zt=$e.onContextMenu)===null||Zt===void 0||Zt.call.apply(Zt,[$e,Ht].concat(lr))}),Y&&(Me.className=ue($e.className,Y));var Kr=i.useRef(!1);Kr.current||(Kr.current=M||pt||Mt);var Zr=se(se({},$e),Me),Tr={},la=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];la.forEach(function(Ht){le[Ht]&&(Tr[Ht]=function(){for(var Zt,tr=arguments.length,lr=new Array(tr),Bn=0;Bn<tr;Bn++)lr[Bn]=arguments[Bn];(Zt=Zr[Ht])===null||Zt===void 0||Zt.call.apply(Zt,[Zr].concat(lr)),le[Ht].apply(le,lr)})});var $l=i.cloneElement(be,se(se({},Zr),Tr)),xi={x:zt,y:Kt},js=Z?se({},Z!==!0?Z:{}):null;return i.createElement(i.Fragment,null,i.createElement(ma,{disabled:!pt,ref:Pe,onResize:Qn},i.createElement(eL,{getTriggerDOMNode:ie},$l)),Kr.current&&i.createElement(iE.Provider,{value:we},i.createElement(Jk,{portal:e,ref:Fe,prefixCls:l,popup:B,className:ue(L,Cn),style:k,target:Ee,onMouseEnter:Zn,onMouseLeave:Kn,onPointerEnter:Zn,zIndex:F,open:pt,keepDom:Mt,fresh:V,onClick:K,onPointerDownCapture:jt,mask:j,motion:et,maskMotion:bt,onVisibleChanged:wr,onPrepare:cn,forceRender:M,autoDestroy:de,getPopupContainer:O,align:Ft,arrow:js,arrowPos:xi,ready:Ct,offsetX:ht,offsetY:Xe,offsetR:Qe,offsetB:ut,onAlign:Mr,stretch:W,targetWidth:an/vt,targetHeight:jn/Nt})))});return t}const cf=sL(j1);var cL=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],uL=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"}}},dL=function(t,n){var r=t.prefixCls;t.disabled;var a=t.visible,l=t.children,c=t.popupElement,u=t.animation,d=t.transitionName,f=t.dropdownStyle,v=t.dropdownClassName,g=t.direction,p=g===void 0?"ltr":g,b=t.placement,C=t.builtinPlacements,S=t.dropdownMatchSelectWidth,h=t.dropdownRender,x=t.dropdownAlign,w=t.getPopupContainer,E=t.empty,j=t.getTriggerDOMNode,R=t.onPopupVisibleChange,I=t.onPopupMouseEnter,O=Lt(t,cL),M="".concat(r,"-dropdown"),N=c;h&&(N=h(c));var P=i.useMemo(function(){return C||uL(S)},[C,S]),B=u?"".concat(M,"-").concat(u):d,L=typeof S=="number",k=i.useMemo(function(){return L?null:S===!1?"minWidth":"width"},[S,L]),D=f;L&&(D=se(se({},D),{},{width:S}));var H=i.useRef(null);return i.useImperativeHandle(n,function(){return{getPopupElement:function(){var _;return(_=H.current)===null||_===void 0?void 0:_.popupElement}}}),i.createElement(cf,ye({},O,{showAction:R?["click"]:[],hideAction:R?["click"]:[],popupPlacement:b||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:M,popupTransitionName:B,popup:i.createElement("div",{onMouseEnter:I},N),ref:H,stretch:k,popupAlign:x,popupVisible:a,getPopupContainer:w,popupClassName:ue(v,ee({},"".concat(M,"-empty"),E)),popupStyle:D,getTriggerDOMNode:j,onPopupVisibleChange:R}),l)},fL=i.forwardRef(dL);function mE(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 xy(e){return typeof e<"u"&&!Number.isNaN(e)}function F6(e,t){var n=e||{},r=n.label,a=n.value,l=n.options,c=n.groupLabel,u=r||(t?"children":"label");return{label:u,value:a||"value",options:l||"options",groupLabel:c||u}}function mL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],l=F6(n,!1),c=l.label,u=l.value,d=l.options,f=l.groupLabel;function v(g,p){Array.isArray(g)&&g.forEach(function(b){if(p||!(d in b)){var C=b[u];a.push({key:mE(b,a.length),groupOption:p,data:b,label:b[c],value:C})}else{var S=b[f];S===void 0&&r&&(S=b.label),a.push({key:mE(b,a.length),group:!0,data:b,label:S}),v(b[d],!0)}})}return v(e,!1),a}function $y(e){var t=se({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Xn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var vL=function(t,n,r){if(!n||!n.length)return null;var a=!1,l=function u(d,f){var v=L3(f),g=v[0],p=v.slice(1);if(!g)return[d];var b=d.split(g);return a=a||b.length>1,b.reduce(function(C,S){return[].concat(Ne(C),Ne(u(S,p)))},[]).filter(Boolean)},c=l(t,n);return a?typeof r<"u"?c.slice(0,r):c:null},P1=i.createContext(null);function gL(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return i.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 l=a.label,c=a.value;return["number","string"].includes($t(l))?l:c}).join(", ")),n.length>r?", ...":null)}var pL=["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"],hL=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],wy=function(t){return t==="tags"||t==="multiple"},V6=i.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,l=e.className,c=e.showSearch,u=e.tagRender,d=e.direction,f=e.omitDomProps,v=e.displayValues,g=e.onDisplayValuesChange,p=e.emptyOptions,b=e.notFoundContent,C=b===void 0?"Not Found":b,S=e.onClear,h=e.mode,x=e.disabled,w=e.loading,E=e.getInputElement,j=e.getRawInputElement,R=e.open,I=e.defaultOpen,O=e.onDropdownVisibleChange,M=e.activeValue,N=e.onActiveValueChange,P=e.activeDescendantId,B=e.searchValue,L=e.autoClearSearchValue,k=e.onSearch,D=e.onSearchSplit,H=e.tokenSeparators,z=e.allowClear,_=e.prefix,F=e.suffixIcon,W=e.clearIcon,q=e.OptionList,V=e.animation,G=e.transitionName,K=e.dropdownStyle,U=e.dropdownClassName,Z=e.dropdownMatchSelectWidth,Q=e.dropdownRender,te=e.dropdownAlign,X=e.placement,ae=e.builtinPlacements,re=e.getPopupContainer,ne=e.showAction,Y=ne===void 0?[]:ne,ie=e.onFocus,le=e.onBlur,de=e.onKeyUp,ce=e.onKeyDown,ge=e.onMouseDown,he=Lt(e,pL),Oe=wy(h),je=(c!==void 0?c:Oe)||h==="combobox",pe=se({},he);hL.forEach(function(Bt){delete pe[Bt]}),f==null||f.forEach(function(Bt){delete pe[Bt]});var we=i.useState(!1),Se=fe(we,2),Ce=Se[0],De=Se[1];i.useEffect(function(){De(xg())},[]);var Ae=i.useRef(null),Ye=i.useRef(null),Ke=i.useRef(null),Fe=i.useRef(null),Ge=i.useRef(null),Te=i.useRef(!1),Ee=$k(),_e=fe(Ee,3),Re=_e[0],Pe=_e[1],be=_e[2];i.useImperativeHandle(t,function(){var Bt,kt;return{focus:(Bt=Fe.current)===null||Bt===void 0?void 0:Bt.focus,blur:(kt=Fe.current)===null||kt===void 0?void 0:kt.blur,scrollTo:function(Tt){var Dt;return(Dt=Ge.current)===null||Dt===void 0?void 0:Dt.scrollTo(Tt)},nativeElement:Ae.current||Ye.current}});var $e=i.useMemo(function(){var Bt;if(h!=="combobox")return B;var kt=(Bt=v[0])===null||Bt===void 0?void 0:Bt.value;return typeof kt=="string"||typeof kt=="number"?String(kt):""},[B,h,v]),Me=h==="combobox"&&typeof E=="function"&&E()||null,Le=typeof j=="function"&&j(),et=Si(Ye,Le==null||(n=Le.props)===null||n===void 0?void 0:n.ref),bt=i.useState(!1),We=fe(bt,2),tt=We[0],dt=We[1];nn(function(){dt(!0)},[]);var at=bn(!1,{defaultValue:I,value:R}),pt=fe(at,2),Pt=pt[0],Et=pt[1],ct=tt?Pt:!1,St=!C&&p;(x||St&&ct&&h==="combobox")&&(ct=!1);var yt=St?!1:ct,Je=i.useCallback(function(Bt){var kt=Bt!==void 0?Bt:!ct;x||(Et(kt),ct!==kt&&(O==null||O(kt)))},[x,ct,Et,O]),Ve=i.useMemo(function(){return(H||[]).some(function(Bt){return[`
|
|
233
|
+
`,`\r
|
|
234
|
+
`].includes(Bt)})},[H]),Ue=i.useContext(P1)||{},mt=Ue.maxCount,Mt=Ue.rawValues,It=function(kt,an,Tt){if(!(Oe&&xy(mt)&&(Mt==null?void 0:Mt.size)>=mt)){var Dt=!0,mn=kt;N==null||N(null);var jn=vL(kt,H,xy(mt)?mt-Mt.size:void 0),Yn=Tt?null:jn;return h!=="combobox"&&Yn&&(mn="",D==null||D(Yn),Je(!1),Dt=!1),k&&$e!==mn&&k(mn,{source:an?"typing":"effect"}),Dt}},Vt=function(kt){!kt||!kt.trim()||k(kt,{source:"submit"})};i.useEffect(function(){!ct&&!Oe&&h!=="combobox"&&It("",!1,!1)},[ct]),i.useEffect(function(){Pt&&x&&Et(!1),x&&!Te.current&&Pe(!1)},[x]);var ft=D6(),lt=fe(ft,2),At=lt[0],Ut=lt[1],rn=i.useRef(!1),Qt=function(kt){var an=At(),Tt=kt.key,Dt=Tt==="Enter";if(Dt&&(h!=="combobox"&&kt.preventDefault(),ct||Je(!0)),Ut(!!$e),Tt==="Backspace"&&!an&&Oe&&!$e&&v.length){for(var mn=Ne(v),jn=null,Yn=mn.length-1;Yn>=0;Yn-=1){var Sr=mn[Yn];if(!Sr.disabled){mn.splice(Yn,1),jn=Sr;break}}jn&&g(mn,{type:"remove",values:[jn]})}for(var Qn=arguments.length,wr=new Array(Qn>1?Qn-1:0),cn=1;cn<Qn;cn++)wr[cn-1]=arguments[cn];if(ct&&(!Dt||!rn.current)){var gt;Dt&&(rn.current=!0),(gt=Ge.current)===null||gt===void 0||gt.onKeyDown.apply(gt,[kt].concat(wr))}ce==null||ce.apply(void 0,[kt].concat(wr))},vn=function(kt){for(var an=arguments.length,Tt=new Array(an>1?an-1:0),Dt=1;Dt<an;Dt++)Tt[Dt-1]=arguments[Dt];if(ct){var mn;(mn=Ge.current)===null||mn===void 0||mn.onKeyUp.apply(mn,[kt].concat(Tt))}kt.key==="Enter"&&(rn.current=!1),de==null||de.apply(void 0,[kt].concat(Tt))},qt=function(kt){var an=v.filter(function(Tt){return Tt!==kt});g(an,{type:"remove",values:[kt]})},un=function(){rn.current=!1},st=i.useRef(!1),Ct=function(){Pe(!0),x||(ie&&!st.current&&ie.apply(void 0,arguments),Y.includes("focus")&&Je(!0)),st.current=!0},ht=function(){Te.current=!0,Pe(!1,function(){st.current=!1,Te.current=!1,Je(!1)}),!x&&($e&&(h==="tags"?k($e,{source:"submit"}):h==="multiple"&&k("",{source:"blur"})),le&&le.apply(void 0,arguments))},Xe=[];i.useEffect(function(){return function(){Xe.forEach(function(Bt){return clearTimeout(Bt)}),Xe.splice(0,Xe.length)}},[]);var Qe=function(kt){var an,Tt=kt.target,Dt=(an=Ke.current)===null||an===void 0?void 0:an.getPopupElement();if(Dt&&Dt.contains(Tt)){var mn=setTimeout(function(){var Qn=Xe.indexOf(mn);if(Qn!==-1&&Xe.splice(Qn,1),be(),!Ce&&!Dt.contains(document.activeElement)){var wr;(wr=Fe.current)===null||wr===void 0||wr.focus()}});Xe.push(mn)}for(var jn=arguments.length,Yn=new Array(jn>1?jn-1:0),Sr=1;Sr<jn;Sr++)Yn[Sr-1]=arguments[Sr];ge==null||ge.apply(void 0,[kt].concat(Yn))},ut=i.useState({}),zt=fe(ut,2),Kt=zt[1];function vt(){Kt({})}var Nt;Le&&(Nt=function(kt){Je(kt)}),wk(function(){var Bt;return[Ae.current,(Bt=Ke.current)===null||Bt===void 0?void 0:Bt.getPopupElement()]},yt,Je,!!Le);var Ft=i.useMemo(function(){return se(se({},e),{},{notFoundContent:C,open:ct,triggerOpen:yt,id:r,showSearch:je,multiple:Oe,toggleOpen:Je})},[e,C,yt,ct,r,je,Oe,Je]),xn=!!F||w,_n;xn&&(_n=i.createElement($g,{className:ue("".concat(a,"-arrow"),ee({},"".concat(a,"-arrow-loading"),w)),customizeIcon:F,customizeIconProps:{loading:w,searchValue:$e,open:ct,focused:Re,showSearch:je}}));var Pn=function(){var kt;S==null||S(),(kt=Fe.current)===null||kt===void 0||kt.focus(),g([],{type:"clear",values:v}),It("",!1,!1)},Wn=xk(a,Pn,v,z,W,x,$e,h),Rn=Wn.allowClear,An=Wn.clearIcon,Cr=i.createElement(q,{ref:Ge}),Mr=ue(a,l,ee(ee(ee(ee(ee(ee(ee(ee(ee(ee({},"".concat(a,"-focused"),Re),"".concat(a,"-multiple"),Oe),"".concat(a,"-single"),!Oe),"".concat(a,"-allow-clear"),z),"".concat(a,"-show-arrow"),xn),"".concat(a,"-disabled"),x),"".concat(a,"-loading"),w),"".concat(a,"-open"),ct),"".concat(a,"-customize-input"),Me),"".concat(a,"-show-search"),je)),pr=i.createElement(fL,{ref:Ke,disabled:x,prefixCls:a,visible:yt,popupElement:Cr,animation:V,transitionName:G,dropdownStyle:K,dropdownClassName:U,direction:d,dropdownMatchSelectWidth:Z,dropdownRender:Q,dropdownAlign:te,placement:X,builtinPlacements:ae,getPopupContainer:re,empty:p,getTriggerDOMNode:function(kt){return Ye.current||kt},onPopupVisibleChange:Nt,onPopupMouseEnter:vt},Le?i.cloneElement(Le,{ref:et}):i.createElement(Xk,ye({},e,{domRef:Ye,prefixCls:a,inputElement:Me,ref:Fe,id:r,prefix:_,showSearch:je,autoClearSearchValue:L,mode:h,activeDescendantId:P,tagRender:u,values:v,open:ct,onToggleOpen:Je,activeValue:M,searchValue:$e,onSearch:It,onSearchSubmit:Vt,onRemove:qt,tokenWithEnter:Ve,onInputBlur:un}))),Cn;return Le?Cn=pr:Cn=i.createElement("div",ye({className:Mr},pe,{ref:Ae,onMouseDown:Qe,onKeyDown:Qt,onKeyUp:vn,onFocus:Ct,onBlur:ht}),i.createElement(gL,{visible:Re&&!ct,values:v}),pr,_n,Rn&&An),i.createElement(P6.Provider,{value:Ft},Cn)}),z1=function(){return null};z1.isSelectOptGroup=!0;var D1=function(){return null};D1.isSelectOption=!0;var W6=i.forwardRef(function(e,t){var n=e.height,r=e.offsetY,a=e.offsetX,l=e.children,c=e.prefixCls,u=e.onInnerResize,d=e.innerProps,f=e.rtl,v=e.extra,g={},p={display:"flex",flexDirection:"column"};return r!==void 0&&(g={height:n,position:"relative",overflow:"hidden"},p=se(se({},p),{},ee(ee(ee(ee(ee({transform:"translateY(".concat(r,"px)")},f?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),i.createElement("div",{style:g},i.createElement(ma,{onResize:function(C){var S=C.offsetHeight;S&&u&&u()}},i.createElement("div",ye({style:p,className:ue(ee({},"".concat(c,"-holder-inner"),c)),ref:t},d),l,v)))});W6.displayName="Filler";function bL(e){var t=e.children,n=e.setRef,r=i.useCallback(function(a){n(a)},[]);return i.cloneElement(t,{ref:r})}function yL(e,t,n,r,a,l,c,u){var d=u.getKey;return e.slice(t,n+1).map(function(f,v){var g=t+v,p=c(f,g,{style:{width:r},offsetX:a}),b=d(f);return i.createElement(bL,{key:b,setRef:function(S){return l(f,S)}},p)})}function CL(e,t,n){var r=e.length,a=t.length,l,c;if(r===0&&a===0)return null;r<a?(l=e,c=t):(l=t,c=e);var u={__EMPTY_ITEM__:!0};function d(C){return C!==void 0?n(C):u}for(var f=null,v=Math.abs(r-a)!==1,g=0;g<c.length;g+=1){var p=d(l[g]),b=d(c[g]);if(p!==b){f=g,v=v||p!==d(c[g+1]);break}}return f===null?null:{index:f,multiple:v}}function SL(e,t,n){var r=i.useState(e),a=fe(r,2),l=a[0],c=a[1],u=i.useState(null),d=fe(u,2),f=d[0],v=d[1];return i.useEffect(function(){var g=CL(l||[],e||[],t);(g==null?void 0:g.index)!==void 0&&v(e[g.index]),c(e)},[e]),[f]}var vE=(typeof navigator>"u"?"undefined":$t(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const K6=(function(e,t,n,r){var a=i.useRef(!1),l=i.useRef(null);function c(){clearTimeout(l.current),a.current=!0,l.current=setTimeout(function(){a.current=!1},50)}var u=i.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(d,f){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=d?f<0&&u.current.left||f>0&&u.current.right:f<0&&u.current.top||f>0&&u.current.bottom;return v&&g?(clearTimeout(l.current),a.current=!1):(!g||a.current)&&c(),!a.current&&g}});function xL(e,t,n,r,a,l,c){var u=i.useRef(0),d=i.useRef(null),f=i.useRef(null),v=i.useRef(!1),g=K6(t,n,r,a);function p(w,E){if(Yt.cancel(d.current),!g(!1,E)){var j=w;if(!j._virtualHandled)j._virtualHandled=!0;else return;u.current+=E,f.current=E,vE||j.preventDefault(),d.current=Yt(function(){var R=v.current?10:1;c(u.current*R,!1),u.current=0})}}function b(w,E){c(E,!0),vE||w.preventDefault()}var C=i.useRef(null),S=i.useRef(null);function h(w){if(e){Yt.cancel(S.current),S.current=Yt(function(){C.current=null},2);var E=w.deltaX,j=w.deltaY,R=w.shiftKey,I=E,O=j;(C.current==="sx"||!C.current&&R&&j&&!E)&&(I=j,O=0,C.current="sx");var M=Math.abs(I),N=Math.abs(O);C.current===null&&(C.current=l&&M>N?"x":"y"),C.current==="y"?p(w,O):b(w,I)}}function x(w){e&&(v.current=w.detail===f.current)}return[h,x]}function $L(e,t,n,r){var a=i.useMemo(function(){return[new Map,[]]},[e,n.id,r]),l=fe(a,2),c=l[0],u=l[1],d=function(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v,p=c.get(v),b=c.get(g);if(p===void 0||b===void 0)for(var C=e.length,S=u.length;S<C;S+=1){var h,x=e[S],w=t(x);c.set(w,S);var E=(h=n.get(w))!==null&&h!==void 0?h:r;if(u[S]=(u[S-1]||0)+E,w===v&&(p=S),w===g&&(b=S),p!==void 0&&b!==void 0)break}return{top:u[p-1]||0,bottom:u[b]}};return d}var wL=(function(){function e(){ur(this,e),ee(this,"maps",void 0),ee(this,"id",0),ee(this,"diffRecords",new Map),this.maps=Object.create(null)}return dr(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 gE(e){var t=parseFloat(e);return isNaN(t)?0:t}function EL(e,t,n){var r=i.useState(0),a=fe(r,2),l=a[0],c=a[1],u=i.useRef(new Map),d=i.useRef(new wL),f=i.useRef(0);function v(){f.current+=1}function g(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;v();var C=function(){var x=!1;u.current.forEach(function(w,E){if(w&&w.offsetParent){var j=w.offsetHeight,R=getComputedStyle(w),I=R.marginTop,O=R.marginBottom,M=gE(I),N=gE(O),P=j+M+N;d.current.get(E)!==P&&(d.current.set(E,P),x=!0)}}),x&&c(function(w){return w+1})};if(b)C();else{f.current+=1;var S=f.current;Promise.resolve().then(function(){S===f.current&&C()})}}function p(b,C){var S=e(b);u.current.get(S),C?(u.current.set(S,C),g()):u.current.delete(S)}return i.useEffect(function(){return v},[]),[p,g,d.current,l]}var pE=14/15;function OL(e,t,n){var r=i.useRef(!1),a=i.useRef(0),l=i.useRef(0),c=i.useRef(null),u=i.useRef(null),d,f=function(b){if(r.current){var C=Math.ceil(b.touches[0].pageX),S=Math.ceil(b.touches[0].pageY),h=a.current-C,x=l.current-S,w=Math.abs(h)>Math.abs(x);w?a.current=C:l.current=S;var E=n(w,w?h:x,!1,b);E&&b.preventDefault(),clearInterval(u.current),E&&(u.current=setInterval(function(){w?h*=pE:x*=pE;var j=Math.floor(w?h:x);(!n(w,j,!0)||Math.abs(j)<=.1)&&clearInterval(u.current)},16))}},v=function(){r.current=!1,d()},g=function(b){d(),b.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(b.touches[0].pageX),l.current=Math.ceil(b.touches[0].pageY),c.current=b.target,c.current.addEventListener("touchmove",f,{passive:!1}),c.current.addEventListener("touchend",v,{passive:!0}))};d=function(){c.current&&(c.current.removeEventListener("touchmove",f),c.current.removeEventListener("touchend",v))},nn(function(){return e&&t.current.addEventListener("touchstart",g,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",g),d(),clearInterval(u.current)}},[e])}function hE(e){return Math.floor(Math.pow(e,.5))}function Ey(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function RL(e,t,n){i.useEffect(function(){var r=t.current;if(e&&r){var a=!1,l,c,u=function(){Yt.cancel(l)},d=function p(){u(),l=Yt(function(){n(c),p()})},f=function(){a=!1,u()},v=function(b){if(!(b.target.draggable||b.button!==0)){var C=b;C._virtualHandled||(C._virtualHandled=!0,a=!0)}},g=function(b){if(a){var C=Ey(b,!1),S=r.getBoundingClientRect(),h=S.top,x=S.bottom;if(C<=h){var w=h-C;c=-hE(w),d()}else if(C>=x){var E=C-x;c=hE(E),d()}else u()}};return r.addEventListener("mousedown",v),r.ownerDocument.addEventListener("mouseup",f),r.ownerDocument.addEventListener("mousemove",g),r.ownerDocument.addEventListener("dragend",f),function(){r.removeEventListener("mousedown",v),r.ownerDocument.removeEventListener("mouseup",f),r.ownerDocument.removeEventListener("mousemove",g),r.ownerDocument.removeEventListener("dragend",f),u()}}},[e])}var jL=10;function IL(e,t,n,r,a,l,c,u){var d=i.useRef(),f=i.useState(null),v=fe(f,2),g=v[0],p=v[1];return nn(function(){if(g&&g.times<jL){if(!e.current){p(function(W){return se({},W)});return}l();var b=g.targetAlign,C=g.originAlign,S=g.index,h=g.offset,x=e.current.clientHeight,w=!1,E=b,j=null;if(x){for(var R=b||C,I=0,O=0,M=0,N=Math.min(t.length-1,S),P=0;P<=N;P+=1){var B=a(t[P]);O=I;var L=n.get(B);M=O+(L===void 0?r:L),I=M}for(var k=R==="top"?h:x-h,D=N;D>=0;D-=1){var H=a(t[D]),z=n.get(H);if(z===void 0){w=!0;break}if(k-=z,k<=0)break}switch(R){case"top":j=O-h;break;case"bottom":j=M-x+h;break;default:{var _=e.current.scrollTop,F=_+x;O<_?E="top":M>F&&(E="bottom")}}j!==null&&c(j),j!==g.lastTop&&(w=!0)}w&&p(se(se({},g),{},{times:g.times+1,targetAlign:E,lastTop:j}))}},[g,e.current]),function(b){if(b==null){u();return}if(Yt.cancel(d.current),typeof b=="number")c(b);else if(b&&$t(b)==="object"){var C,S=b.align;"index"in b?C=b.index:C=t.findIndex(function(w){return a(w)===b.key});var h=b.offset,x=h===void 0?0:h;p({times:0,index:C,offset:x,originAlign:S})}}}var bE=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,l=e.scrollRange,c=e.onStartMove,u=e.onStopMove,d=e.onScroll,f=e.horizontal,v=e.spinSize,g=e.containerSize,p=e.style,b=e.thumbStyle,C=e.showScrollBar,S=i.useState(!1),h=fe(S,2),x=h[0],w=h[1],E=i.useState(null),j=fe(E,2),R=j[0],I=j[1],O=i.useState(null),M=fe(O,2),N=M[0],P=M[1],B=!r,L=i.useRef(),k=i.useRef(),D=i.useState(C),H=fe(D,2),z=H[0],_=H[1],F=i.useRef(),W=function(){C===!0||C===!1||(clearTimeout(F.current),_(!0),F.current=setTimeout(function(){_(!1)},3e3))},q=l-g||0,V=g-v||0,G=i.useMemo(function(){if(a===0||q===0)return 0;var ne=a/q;return ne*V},[a,q,V]),K=function(Y){Y.stopPropagation(),Y.preventDefault()},U=i.useRef({top:G,dragging:x,pageY:R,startTop:N});U.current={top:G,dragging:x,pageY:R,startTop:N};var Z=function(Y){w(!0),I(Ey(Y,f)),P(U.current.top),c(),Y.stopPropagation(),Y.preventDefault()};i.useEffect(function(){var ne=function(de){de.preventDefault()},Y=L.current,ie=k.current;return Y.addEventListener("touchstart",ne,{passive:!1}),ie.addEventListener("touchstart",Z,{passive:!1}),function(){Y.removeEventListener("touchstart",ne),ie.removeEventListener("touchstart",Z)}},[]);var Q=i.useRef();Q.current=q;var te=i.useRef();te.current=V,i.useEffect(function(){if(x){var ne,Y=function(de){var ce=U.current,ge=ce.dragging,he=ce.pageY,Oe=ce.startTop;Yt.cancel(ne);var je=L.current.getBoundingClientRect(),pe=g/(f?je.width:je.height);if(ge){var we=(Ey(de,f)-he)*pe,Se=Oe;!B&&f?Se-=we:Se+=we;var Ce=Q.current,De=te.current,Ae=De?Se/De:0,Ye=Math.ceil(Ae*Ce);Ye=Math.max(Ye,0),Ye=Math.min(Ye,Ce),ne=Yt(function(){d(Ye,f)})}},ie=function(){w(!1),u()};return window.addEventListener("mousemove",Y,{passive:!0}),window.addEventListener("touchmove",Y,{passive:!0}),window.addEventListener("mouseup",ie,{passive:!0}),window.addEventListener("touchend",ie,{passive:!0}),function(){window.removeEventListener("mousemove",Y),window.removeEventListener("touchmove",Y),window.removeEventListener("mouseup",ie),window.removeEventListener("touchend",ie),Yt.cancel(ne)}}},[x]),i.useEffect(function(){return W(),function(){clearTimeout(F.current)}},[a]),i.useImperativeHandle(t,function(){return{delayHidden:W}});var X="".concat(n,"-scrollbar"),ae={position:"absolute",visibility:z?null:"hidden"},re={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return f?(Object.assign(ae,{height:8,left:0,right:0,bottom:0}),Object.assign(re,ee({height:"100%",width:v},B?"left":"right",G))):(Object.assign(ae,ee({width:8,top:0,bottom:0},B?"right":"left",0)),Object.assign(re,{width:"100%",height:v,top:G})),i.createElement("div",{ref:L,className:ue(X,ee(ee(ee({},"".concat(X,"-horizontal"),f),"".concat(X,"-vertical"),!f),"".concat(X,"-visible"),z)),style:se(se({},ae),p),onMouseDown:K,onMouseMove:W},i.createElement("div",{ref:k,className:ue("".concat(X,"-thumb"),ee({},"".concat(X,"-thumb-moving"),x)),style:se(se({},re),b),onMouseDown:Z}))}),NL=20;function yE(){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,NL),Math.floor(n)}var ML=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],TL=[],PL={overflowY:"auto",overflowAnchor:"none"};function zL(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,l=e.height,c=e.itemHeight,u=e.fullHeight,d=u===void 0?!0:u,f=e.style,v=e.data,g=e.children,p=e.itemKey,b=e.virtual,C=e.direction,S=e.scrollWidth,h=e.component,x=h===void 0?"div":h,w=e.onScroll,E=e.onVirtualScroll,j=e.onVisibleChange,R=e.innerProps,I=e.extraRender,O=e.styles,M=e.showScrollBar,N=M===void 0?"optional":M,P=Lt(e,ML),B=i.useCallback(function(st){return typeof p=="function"?p(st):st==null?void 0:st[p]},[p]),L=EL(B),k=fe(L,4),D=k[0],H=k[1],z=k[2],_=k[3],F=!!(b!==!1&&l&&c),W=i.useMemo(function(){return Object.values(z.maps).reduce(function(st,Ct){return st+Ct},0)},[z.id,z.maps]),q=F&&v&&(Math.max(c*v.length,W)>l||!!S),V=C==="rtl",G=ue(r,ee({},"".concat(r,"-rtl"),V),a),K=v||TL,U=i.useRef(),Z=i.useRef(),Q=i.useRef(),te=i.useState(0),X=fe(te,2),ae=X[0],re=X[1],ne=i.useState(0),Y=fe(ne,2),ie=Y[0],le=Y[1],de=i.useState(!1),ce=fe(de,2),ge=ce[0],he=ce[1],Oe=function(){he(!0)},je=function(){he(!1)},pe={getKey:B};function we(st){re(function(Ct){var ht;typeof st=="function"?ht=st(Ct):ht=st;var Xe=dt(ht);return U.current.scrollTop=Xe,Xe})}var Se=i.useRef({start:0,end:K.length}),Ce=i.useRef(),De=SL(K,B),Ae=fe(De,1),Ye=Ae[0];Ce.current=Ye;var Ke=i.useMemo(function(){if(!F)return{scrollHeight:void 0,start:0,end:K.length-1,offset:void 0};if(!q){var st;return{scrollHeight:((st=Z.current)===null||st===void 0?void 0:st.offsetHeight)||0,start:0,end:K.length-1,offset:void 0}}for(var Ct=0,ht,Xe,Qe,ut=K.length,zt=0;zt<ut;zt+=1){var Kt=K[zt],vt=B(Kt),Nt=z.get(vt),Ft=Ct+(Nt===void 0?c:Nt);Ft>=ae&&ht===void 0&&(ht=zt,Xe=Ct),Ft>ae+l&&Qe===void 0&&(Qe=zt),Ct=Ft}return ht===void 0&&(ht=0,Xe=0,Qe=Math.ceil(l/c)),Qe===void 0&&(Qe=K.length-1),Qe=Math.min(Qe+1,K.length-1),{scrollHeight:Ct,start:ht,end:Qe,offset:Xe}},[q,F,ae,K,_,l]),Fe=Ke.scrollHeight,Ge=Ke.start,Te=Ke.end,Ee=Ke.offset;Se.current.start=Ge,Se.current.end=Te,i.useLayoutEffect(function(){var st=z.getRecord();if(st.size===1){var Ct=Array.from(st.keys())[0],ht=st.get(Ct),Xe=K[Ge];if(Xe&&ht===void 0){var Qe=B(Xe);if(Qe===Ct){var ut=z.get(Ct),zt=ut-c;we(function(Kt){return Kt+zt})}}}z.resetRecord()},[Fe]);var _e=i.useState({width:0,height:l}),Re=fe(_e,2),Pe=Re[0],be=Re[1],$e=function(Ct){be({width:Ct.offsetWidth,height:Ct.offsetHeight})},Me=i.useRef(),Le=i.useRef(),et=i.useMemo(function(){return yE(Pe.width,S)},[Pe.width,S]),bt=i.useMemo(function(){return yE(Pe.height,Fe)},[Pe.height,Fe]),We=Fe-l,tt=i.useRef(We);tt.current=We;function dt(st){var Ct=st;return Number.isNaN(tt.current)||(Ct=Math.min(Ct,tt.current)),Ct=Math.max(Ct,0),Ct}var at=ae<=0,pt=ae>=We,Pt=ie<=0,Et=ie>=S,ct=K6(at,pt,Pt,Et),St=function(){return{x:V?-ie:ie,y:ae}},yt=i.useRef(St()),Je=Xt(function(st){if(E){var Ct=se(se({},St()),st);(yt.current.x!==Ct.x||yt.current.y!==Ct.y)&&(E(Ct),yt.current=Ct)}});function Ve(st,Ct){var ht=st;Ct?(fo.flushSync(function(){le(ht)}),Je()):we(ht)}function Ue(st){var Ct=st.currentTarget.scrollTop;Ct!==ae&&we(Ct),w==null||w(st),Je()}var mt=function(Ct){var ht=Ct,Xe=S?S-Pe.width:0;return ht=Math.max(ht,0),ht=Math.min(ht,Xe),ht},Mt=Xt(function(st,Ct){Ct?(fo.flushSync(function(){le(function(ht){var Xe=ht+(V?-st:st);return mt(Xe)})}),Je()):we(function(ht){var Xe=ht+st;return Xe})}),It=xL(F,at,pt,Pt,Et,!!S,Mt),Vt=fe(It,2),ft=Vt[0],lt=Vt[1];OL(F,U,function(st,Ct,ht,Xe){var Qe=Xe;return ct(st,Ct,ht)?!1:!Qe||!Qe._virtualHandled?(Qe&&(Qe._virtualHandled=!0),ft({preventDefault:function(){},deltaX:st?Ct:0,deltaY:st?0:Ct}),!0):!1}),RL(q,U,function(st){we(function(Ct){return Ct+st})}),nn(function(){function st(ht){var Xe=at&&ht.detail<0,Qe=pt&&ht.detail>0;F&&!Xe&&!Qe&&ht.preventDefault()}var Ct=U.current;return Ct.addEventListener("wheel",ft,{passive:!1}),Ct.addEventListener("DOMMouseScroll",lt,{passive:!0}),Ct.addEventListener("MozMousePixelScroll",st,{passive:!1}),function(){Ct.removeEventListener("wheel",ft),Ct.removeEventListener("DOMMouseScroll",lt),Ct.removeEventListener("MozMousePixelScroll",st)}},[F,at,pt]),nn(function(){if(S){var st=mt(ie);le(st),Je({x:st})}},[Pe.width,S]);var At=function(){var Ct,ht;(Ct=Me.current)===null||Ct===void 0||Ct.delayHidden(),(ht=Le.current)===null||ht===void 0||ht.delayHidden()},Ut=IL(U,K,z,c,B,function(){return H(!0)},we,At);i.useImperativeHandle(t,function(){return{nativeElement:Q.current,getScrollInfo:St,scrollTo:function(Ct){function ht(Xe){return Xe&&$t(Xe)==="object"&&("left"in Xe||"top"in Xe)}ht(Ct)?(Ct.left!==void 0&&le(mt(Ct.left)),Ut(Ct.top)):Ut(Ct)}}}),nn(function(){if(j){var st=K.slice(Ge,Te+1);j(st,K)}},[Ge,Te,K]);var rn=$L(K,B,z,c),Qt=I==null?void 0:I({start:Ge,end:Te,virtual:q,offsetX:ie,offsetY:Ee,rtl:V,getSize:rn}),vn=yL(K,Ge,Te,S,ie,D,g,pe),qt=null;l&&(qt=se(ee({},d?"height":"maxHeight",l),PL),F&&(qt.overflowY="hidden",S&&(qt.overflowX="hidden"),ge&&(qt.pointerEvents="none")));var un={};return V&&(un.dir="rtl"),i.createElement("div",ye({ref:Q,style:se(se({},f),{},{position:"relative"}),className:G},un,P),i.createElement(ma,{onResize:$e},i.createElement(x,{className:"".concat(r,"-holder"),style:qt,ref:U,onScroll:Ue,onMouseEnter:At},i.createElement(W6,{prefixCls:r,height:Fe,offsetX:ie,offsetY:Ee,scrollWidth:S,onInnerResize:H,ref:Z,innerProps:R,rtl:V,extra:Qt},vn))),q&&Fe>l&&i.createElement(bE,{ref:Me,prefixCls:r,scrollOffset:ae,scrollRange:Fe,rtl:V,onScroll:Ve,onStartMove:Oe,onStopMove:je,spinSize:bt,containerSize:Pe.height,style:O==null?void 0:O.verticalScrollBar,thumbStyle:O==null?void 0:O.verticalScrollBarThumb,showScrollBar:N}),q&&S>Pe.width&&i.createElement(bE,{ref:Le,prefixCls:r,scrollOffset:ie,scrollRange:S,rtl:V,onScroll:Ve,onStartMove:Oe,onStopMove:je,spinSize:et,containerSize:Pe.width,horizontal:!0,style:O==null?void 0:O.horizontalScrollBar,thumbStyle:O==null?void 0:O.horizontalScrollBarThumb,showScrollBar:N}))}var wg=i.forwardRef(zL);wg.displayName="List";function DL(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var _L=["disabled","title","children","style","className"];function CE(e){return typeof e=="string"||typeof e=="number"}var AL=function(t,n){var r=z6(),a=r.prefixCls,l=r.id,c=r.open,u=r.multiple,d=r.mode,f=r.searchValue,v=r.toggleOpen,g=r.notFoundContent,p=r.onPopupScroll,b=i.useContext(P1),C=b.maxCount,S=b.flattenOptions,h=b.onActiveValue,x=b.defaultActiveFirstOption,w=b.onSelect,E=b.menuItemSelectedIcon,j=b.rawValues,R=b.fieldNames,I=b.virtual,O=b.direction,M=b.listHeight,N=b.listItemHeight,P=b.optionRender,B="".concat(a,"-item"),L=ps(function(){return S},[c,S],function(ne,Y){return Y[0]&&ne[1]!==Y[1]}),k=i.useRef(null),D=i.useMemo(function(){return u&&xy(C)&&(j==null?void 0:j.size)>=C},[u,C,j==null?void 0:j.size]),H=function(Y){Y.preventDefault()},z=function(Y){var ie;(ie=k.current)===null||ie===void 0||ie.scrollTo(typeof Y=="number"?{index:Y}:Y)},_=i.useCallback(function(ne){return d==="combobox"?!1:j.has(ne)},[d,Ne(j).toString(),j.size]),F=function(Y){for(var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,le=L.length,de=0;de<le;de+=1){var ce=(Y+de*ie+le)%le,ge=L[ce]||{},he=ge.group,Oe=ge.data;if(!he&&!(Oe!=null&&Oe.disabled)&&(_(Oe.value)||!D))return ce}return-1},W=i.useState(function(){return F(0)}),q=fe(W,2),V=q[0],G=q[1],K=function(Y){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;G(Y);var le={source:ie?"keyboard":"mouse"},de=L[Y];if(!de){h(null,-1,le);return}h(de.value,Y,le)};i.useEffect(function(){K(x!==!1?F(0):-1)},[L.length,f]);var U=i.useCallback(function(ne){return d==="combobox"?String(ne).toLowerCase()===f.toLowerCase():j.has(ne)},[d,f,Ne(j).toString(),j.size]);i.useEffect(function(){var ne=setTimeout(function(){if(!u&&c&&j.size===1){var ie=Array.from(j)[0],le=L.findIndex(function(de){var ce=de.data;return f?String(ce.value).startsWith(f):ce.value===ie});le!==-1&&(K(le),z(le))}});if(c){var Y;(Y=k.current)===null||Y===void 0||Y.scrollTo(void 0)}return function(){return clearTimeout(ne)}},[c,f]);var Z=function(Y){Y!==void 0&&w(Y,{selected:!j.has(Y)}),u||v(!1)};if(i.useImperativeHandle(n,function(){return{onKeyDown:function(Y){var ie=Y.which,le=Y.ctrlKey;switch(ie){case ot.N:case ot.P:case ot.UP:case ot.DOWN:{var de=0;if(ie===ot.UP?de=-1:ie===ot.DOWN?de=1:DL()&&le&&(ie===ot.N?de=1:ie===ot.P&&(de=-1)),de!==0){var ce=F(V+de,de);z(ce),K(ce,!0)}break}case ot.TAB:case ot.ENTER:{var ge,he=L[V];he&&!(he!=null&&(ge=he.data)!==null&&ge!==void 0&&ge.disabled)&&!D?Z(he.value):Z(void 0),c&&Y.preventDefault();break}case ot.ESC:v(!1),c&&Y.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Y){z(Y)}}}),L.length===0)return i.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(B,"-empty"),onMouseDown:H},g);var Q=Object.keys(R).map(function(ne){return R[ne]}),te=function(Y){return Y.label};function X(ne,Y){var ie=ne.group;return{role:ie?"presentation":"option",id:"".concat(l,"_list_").concat(Y)}}var ae=function(Y){var ie=L[Y];if(!ie)return null;var le=ie.data||{},de=le.value,ce=ie.group,ge=Rr(le,!0),he=te(ie);return ie?i.createElement("div",ye({"aria-label":typeof he=="string"&&!ce?he:null},ge,{key:Y},X(ie,Y),{"aria-selected":U(de)}),de):null},re={role:"listbox",id:"".concat(l,"_list")};return i.createElement(i.Fragment,null,I&&i.createElement("div",ye({},re,{style:{height:0,width:0,overflow:"hidden"}}),ae(V-1),ae(V),ae(V+1)),i.createElement(wg,{itemKey:"key",ref:k,data:L,height:M,itemHeight:N,fullHeight:!1,onMouseDown:H,onScroll:p,virtual:I,direction:O,innerProps:I?null:re},function(ne,Y){var ie=ne.group,le=ne.groupOption,de=ne.data,ce=ne.label,ge=ne.value,he=de.key;if(ie){var Oe,je=(Oe=de.title)!==null&&Oe!==void 0?Oe:CE(ce)?ce.toString():void 0;return i.createElement("div",{className:ue(B,"".concat(B,"-group"),de.className),title:je},ce!==void 0?ce:he)}var pe=de.disabled,we=de.title;de.children;var Se=de.style,Ce=de.className,De=Lt(de,_L),Ae=wn(De,Q),Ye=_(ge),Ke=pe||!Ye&&D,Fe="".concat(B,"-option"),Ge=ue(B,Fe,Ce,ee(ee(ee(ee({},"".concat(Fe,"-grouped"),le),"".concat(Fe,"-active"),V===Y&&!Ke),"".concat(Fe,"-disabled"),Ke),"".concat(Fe,"-selected"),Ye)),Te=te(ne),Ee=!E||typeof E=="function"||Ye,_e=typeof Te=="number"?Te:Te||ge,Re=CE(_e)?_e.toString():void 0;return we!==void 0&&(Re=we),i.createElement("div",ye({},Rr(Ae),I?{}:X(ne,Y),{"aria-selected":U(ge),className:Ge,title:Re,onMouseMove:function(){V===Y||Ke||K(Y)},onClick:function(){Ke||Z(ge)},style:Se}),i.createElement("div",{className:"".concat(Fe,"-content")},typeof P=="function"?P(ne,{index:Y}):_e),i.isValidElement(E)||Ye,Ee&&i.createElement($g,{className:"".concat(B,"-option-state"),customizeIcon:E,customizeIconProps:{value:ge,disabled:Ke,isSelected:Ye}},Ye?"✓":null))}))},BL=i.forwardRef(AL);const kL=(function(e,t){var n=i.useRef({values:new Map,options:new Map}),r=i.useMemo(function(){var l=n.current,c=l.values,u=l.options,d=e.map(function(g){if(g.label===void 0){var p;return se(se({},g),{},{label:(p=c.get(g.value))===null||p===void 0?void 0:p.label})}return g}),f=new Map,v=new Map;return d.forEach(function(g){f.set(g.value,g),v.set(g.value,t.get(g.value)||u.get(g.value))}),n.current.values=f,n.current.options=v,d},[e,t]),a=i.useCallback(function(l){return t.get(l)||n.current.options.get(l)},[t]);return[r,a]});function P0(e,t){return L6(e).join("").toUpperCase().includes(t)}const LL=(function(e,t,n,r,a){return i.useMemo(function(){if(!n||r===!1)return e;var l=t.options,c=t.label,u=t.value,d=[],f=typeof r=="function",v=n.toUpperCase(),g=f?r:function(b,C){return a?P0(C[a],v):C[l]?P0(C[c!=="children"?c:"label"],v):P0(C[u],v)},p=f?function(b){return $y(b)}:function(b){return b};return e.forEach(function(b){if(b[l]){var C=g(n,p(b));if(C)d.push(b);else{var S=b[l].filter(function(h){return g(n,p(h))});S.length&&d.push(se(se({},b),{},ee({},l,S)))}return}g(n,p(b))&&d.push(b)}),d},[e,r,a,n,t])});var SE=0,HL=aa();function FL(){var e;return HL?(e=SE,SE+=1):e="TEST_OR_SSR",e}function U6(e){var t=i.useState(),n=fe(t,2),r=n[0],a=n[1];return i.useEffect(function(){a("rc_select_".concat(FL()))},[]),e||r}var VL=["children","value"],WL=["children"];function KL(e){var t=e,n=t.key,r=t.props,a=r.children,l=r.value,c=Lt(r,VL);return se({key:n,value:l!==void 0?l:n,children:a},c)}function q6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Xr(e).map(function(n,r){if(!i.isValidElement(n)||!n.type)return null;var a=n,l=a.type.isSelectOptGroup,c=a.key,u=a.props,d=u.children,f=Lt(u,WL);return t||!l?KL(n):se(se({key:"__RC_SELECT_GRP__".concat(c===null?r:c,"__"),label:c},f),{},{options:q6(d)})}).filter(function(n){return n})}var UL=function(t,n,r,a,l){return i.useMemo(function(){var c=t,u=!t;u&&(c=q6(n));var d=new Map,f=new Map,v=function(b,C,S){S&&typeof S=="string"&&b.set(C[S],C)},g=function p(b){for(var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=0;S<b.length;S+=1){var h=b[S];!h[r.options]||C?(d.set(h[r.value],h),v(f,h,r.label),v(f,h,a),v(f,h,l)):p(h[r.options],!0)}};return g(c),{options:c,valueOptions:d,labelOptions:f}},[t,n,r,a,l])};function xE(e){var t=i.useRef();t.current=e;var n=i.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var qL=["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"],GL=["inputValue"];function XL(e){return!e||$t(e)!=="object"}var YL=i.forwardRef(function(e,t){var n=e.id,r=e.mode,a=e.prefixCls,l=a===void 0?"rc-select":a,c=e.backfill,u=e.fieldNames,d=e.inputValue,f=e.searchValue,v=e.onSearch,g=e.autoClearSearchValue,p=g===void 0?!0:g,b=e.onSelect,C=e.onDeselect,S=e.dropdownMatchSelectWidth,h=S===void 0?!0:S,x=e.filterOption,w=e.filterSort,E=e.optionFilterProp,j=e.optionLabelProp,R=e.options,I=e.optionRender,O=e.children,M=e.defaultActiveFirstOption,N=e.menuItemSelectedIcon,P=e.virtual,B=e.direction,L=e.listHeight,k=L===void 0?200:L,D=e.listItemHeight,H=D===void 0?20:D,z=e.labelRender,_=e.value,F=e.defaultValue,W=e.labelInValue,q=e.onChange,V=e.maxCount,G=Lt(e,qL),K=U6(n),U=wy(r),Z=!!(!R&&O),Q=i.useMemo(function(){return x===void 0&&r==="combobox"?!1:x},[x,r]),te=i.useMemo(function(){return F6(u,Z)},[JSON.stringify(u),Z]),X=bn("",{value:f!==void 0?f:d,postState:function(Ve){return Ve||""}}),ae=fe(X,2),re=ae[0],ne=ae[1],Y=UL(R,O,te,E,j),ie=Y.valueOptions,le=Y.labelOptions,de=Y.options,ce=i.useCallback(function(Je){var Ve=L6(Je);return Ve.map(function(Ue){var mt,Mt,It,Vt,ft;if(XL(Ue))mt=Ue;else{var lt;It=Ue.key,Mt=Ue.label,mt=(lt=Ue.value)!==null&<!==void 0?lt:It}var At=ie.get(mt);if(At){var Ut;Mt===void 0&&(Mt=At==null?void 0:At[j||te.label]),It===void 0&&(It=(Ut=At==null?void 0:At.key)!==null&&Ut!==void 0?Ut:mt),Vt=At==null?void 0:At.disabled,ft=At==null?void 0:At.title}return{label:Mt,value:mt,key:It,disabled:Vt,title:ft}})},[te,j,ie]),ge=bn(F,{value:_}),he=fe(ge,2),Oe=he[0],je=he[1],pe=i.useMemo(function(){var Je,Ve=U&&Oe===null?[]:Oe,Ue=ce(Ve);return r==="combobox"&&Vk((Je=Ue[0])===null||Je===void 0?void 0:Je.value)?[]:Ue},[Oe,ce,r,U]),we=kL(pe,ie),Se=fe(we,2),Ce=Se[0],De=Se[1],Ae=i.useMemo(function(){if(!r&&Ce.length===1){var Je=Ce[0];if(Je.value===null&&(Je.label===null||Je.label===void 0))return[]}return Ce.map(function(Ve){var Ue;return se(se({},Ve),{},{label:(Ue=typeof z=="function"?z(Ve):Ve.label)!==null&&Ue!==void 0?Ue:Ve.value})})},[r,Ce,z]),Ye=i.useMemo(function(){return new Set(Ce.map(function(Je){return Je.value}))},[Ce]);i.useEffect(function(){if(r==="combobox"){var Je,Ve=(Je=Ce[0])===null||Je===void 0?void 0:Je.value;ne(Fk(Ve)?String(Ve):"")}},[Ce]);var Ke=xE(function(Je,Ve){var Ue=Ve??Je;return ee(ee({},te.value,Je),te.label,Ue)}),Fe=i.useMemo(function(){if(r!=="tags")return de;var Je=Ne(de),Ve=function(mt){return ie.has(mt)};return Ne(Ce).sort(function(Ue,mt){return Ue.value<mt.value?-1:1}).forEach(function(Ue){var mt=Ue.value;Ve(mt)||Je.push(Ke(mt,Ue.label))}),Je},[Ke,de,ie,Ce,r]),Ge=LL(Fe,te,re,Q,E),Te=i.useMemo(function(){return r!=="tags"||!re||Ge.some(function(Je){return Je[E||"value"]===re})||Ge.some(function(Je){return Je[te.value]===re})?Ge:[Ke(re)].concat(Ne(Ge))},[Ke,E,r,Ge,re,te]),Ee=function Je(Ve){var Ue=Ne(Ve).sort(function(mt,Mt){return w(mt,Mt,{searchValue:re})});return Ue.map(function(mt){return Array.isArray(mt.options)?se(se({},mt),{},{options:mt.options.length>0?Je(mt.options):mt.options}):mt})},_e=i.useMemo(function(){return w?Ee(Te):Te},[Te,w,re]),Re=i.useMemo(function(){return mL(_e,{fieldNames:te,childrenAsData:Z})},[_e,te,Z]),Pe=function(Ve){var Ue=ce(Ve);if(je(Ue),q&&(Ue.length!==Ce.length||Ue.some(function(It,Vt){var ft;return((ft=Ce[Vt])===null||ft===void 0?void 0:ft.value)!==(It==null?void 0:It.value)}))){var mt=W?Ue:Ue.map(function(It){return It.value}),Mt=Ue.map(function(It){return $y(De(It.value))});q(U?mt:mt[0],U?Mt:Mt[0])}},be=i.useState(null),$e=fe(be,2),Me=$e[0],Le=$e[1],et=i.useState(0),bt=fe(et,2),We=bt[0],tt=bt[1],dt=M!==void 0?M:r!=="combobox",at=i.useCallback(function(Je,Ve){var Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},mt=Ue.source,Mt=mt===void 0?"keyboard":mt;tt(Ve),c&&r==="combobox"&&Je!==null&&Mt==="keyboard"&&Le(String(Je))},[c,r]),pt=function(Ve,Ue,mt){var Mt=function(){var qt,un=De(Ve);return[W?{label:un==null?void 0:un[te.label],value:Ve,key:(qt=un==null?void 0:un.key)!==null&&qt!==void 0?qt:Ve}:Ve,$y(un)]};if(Ue&&b){var It=Mt(),Vt=fe(It,2),ft=Vt[0],lt=Vt[1];b(ft,lt)}else if(!Ue&&C&&mt!=="clear"){var At=Mt(),Ut=fe(At,2),rn=Ut[0],Qt=Ut[1];C(rn,Qt)}},Pt=xE(function(Je,Ve){var Ue,mt=U?Ve.selected:!0;mt?Ue=U?[].concat(Ne(Ce),[Je]):[Je]:Ue=Ce.filter(function(Mt){return Mt.value!==Je}),Pe(Ue),pt(Je,mt),r==="combobox"?Le(""):(!wy||p)&&(ne(""),Le(""))}),Et=function(Ve,Ue){Pe(Ve);var mt=Ue.type,Mt=Ue.values;(mt==="remove"||mt==="clear")&&Mt.forEach(function(It){pt(It.value,!1,mt)})},ct=function(Ve,Ue){if(ne(Ve),Le(null),Ue.source==="submit"){var mt=(Ve||"").trim();if(mt){var Mt=Array.from(new Set([].concat(Ne(Ye),[mt])));Pe(Mt),pt(mt,!0),ne("")}return}Ue.source!=="blur"&&(r==="combobox"&&Pe(Ve),v==null||v(Ve))},St=function(Ve){var Ue=Ve;r!=="tags"&&(Ue=Ve.map(function(Mt){var It=le.get(Mt);return It==null?void 0:It.value}).filter(function(Mt){return Mt!==void 0}));var mt=Array.from(new Set([].concat(Ne(Ye),Ne(Ue))));Pe(mt),mt.forEach(function(Mt){pt(Mt,!0)})},yt=i.useMemo(function(){var Je=P!==!1&&h!==!1;return se(se({},Y),{},{flattenOptions:Re,onActiveValue:at,defaultActiveFirstOption:dt,onSelect:Pt,menuItemSelectedIcon:N,rawValues:Ye,fieldNames:te,virtual:Je,direction:B,listHeight:k,listItemHeight:H,childrenAsData:Z,maxCount:V,optionRender:I})},[V,Y,Re,at,dt,Pt,N,Ye,te,P,h,B,k,H,Z,I]);return i.createElement(P1.Provider,{value:yt},i.createElement(V6,ye({},G,{id:K,prefixCls:l,ref:t,omitDomProps:GL,mode:r,displayValues:Ae,onDisplayValuesChange:Et,direction:B,searchValue:re,onSearch:ct,autoClearSearchValue:p,onSearchSplit:St,dropdownMatchSelectWidth:h,OptionList:BL,emptyOptions:!Re.length,activeValue:Me,activeDescendantId:"".concat(K,"_list_").concat(We)})))}),_1=YL;_1.Option=D1;_1.OptGroup=z1;function Ci(e,t,n){return ue({[`${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 yl=(e,t)=>t||e,QL=()=>{const[,e]=ia(),[t]=Pa("Empty"),r=new pn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return i.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(t==null?void 0:t.description)||"Empty"),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(24 31.67)"},i.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),i.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"}),i.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)"}),i.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"}),i.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"})),i.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"}),i.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},i.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),i.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ZL=()=>{const[,e]=ia(),[t]=Pa("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:l}=e,{borderColor:c,shadowColor:u,contentColor:d}=i.useMemo(()=>({borderColor:new pn(n).onBackground(l).toHexString(),shadowColor:new pn(r).onBackground(l).toHexString(),contentColor:new pn(a).onBackground(l).toHexString()}),[n,r,a,l]);return i.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(t==null?void 0:t.description)||"Empty"),i.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i.createElement("ellipse",{fill:u,cx:"32",cy:"33",rx:"32",ry:"7"}),i.createElement("g",{fillRule:"nonzero",stroke:c},i.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"}),i.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:d}))))},JL=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:l,lineHeight:c}=e;return{[t]:{marginInline:r,fontSize:l,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}}}}},eH=sn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=tn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return JL(a)});var tH=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 G6=i.createElement(QL,null),X6=i.createElement(ZL,null),Gn=e=>{var t;const{className:n,rootClassName:r,prefixCls:a,image:l,description:c,children:u,imageStyle:d,style:f,classNames:v,styles:g}=e,p=tH(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:b,direction:C,className:S,style:h,classNames:x,styles:w,image:E}=fr("empty"),j=b("empty",a),[R,I,O]=eH(j),[M]=Pa("Empty"),N=typeof c<"u"?c:M==null?void 0:M.description,P=typeof N=="string"?N:"empty",B=(t=l??E)!==null&&t!==void 0?t:G6;let L=null;return typeof B=="string"?L=i.createElement("img",{draggable:!1,alt:P,src:B}):L=B,R(i.createElement("div",Object.assign({className:ue(I,O,j,S,{[`${j}-normal`]:B===X6,[`${j}-rtl`]:C==="rtl"},n,r,x.root,v==null?void 0:v.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),h),g==null?void 0:g.root),f)},p),i.createElement("div",{className:ue(`${j}-image`,x.image,v==null?void 0:v.image),style:Object.assign(Object.assign(Object.assign({},d),w.image),g==null?void 0:g.image)},L),N&&i.createElement("div",{className:ue(`${j}-description`,x.description,v==null?void 0:v.description),style:Object.assign(Object.assign({},w.description),g==null?void 0:g.description)},N),u&&i.createElement("div",{className:ue(`${j}-footer`,x.footer,v==null?void 0:v.footer),style:Object.assign(Object.assign({},w.footer),g==null?void 0:g.footer)},u)))};Gn.PRESENTED_IMAGE_DEFAULT=G6;Gn.PRESENTED_IMAGE_SIMPLE=X6;const uf=e=>{const{componentName:t}=e,{getPrefixCls:n}=i.useContext(Rt),r=n("empty");switch(t){case"Table":case"List":return ve.createElement(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ve.createElement(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ve.createElement(Gn,null)}},Cl=(e,t,n)=>{var r,a;const{variant:l,[e]:c}=i.useContext(Rt),u=i.useContext(d6),d=c==null?void 0:c.variant;let f;typeof t<"u"?f=t:n===!1?f="borderless":f=(a=(r=u??d)!==null&&r!==void 0?r:l)!==null&&a!==void 0?a:"outlined";const v=Cz.includes(f);return[f,v]},nH=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 Y6(e,t){return e||nH(t)}const $E=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"}},rH=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,l=`&${t}-slide-up-appear${t}-slide-up-appear-active`,c=`&${t}-slide-up-leave${t}-slide-up-leave-active`,u=`${n}-dropdown-placement-`,d=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},dn(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,[`
|
|
235
|
+
${a}${u}bottomLeft,
|
|
236
|
+
${l}${u}bottomLeft
|
|
237
|
+
`]:{animationName:ug},[`
|
|
238
|
+
${a}${u}topLeft,
|
|
239
|
+
${l}${u}topLeft,
|
|
240
|
+
${a}${u}topRight,
|
|
241
|
+
${l}${u}topRight
|
|
242
|
+
`]:{animationName:fg},[`${c}${u}bottomLeft`]:{animationName:dg},[`
|
|
243
|
+
${c}${u}topLeft,
|
|
244
|
+
${c}${u}topRight
|
|
245
|
+
`]:{animationName:mg},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},$E(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"},Ua),"&-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({},$E(e)),{color:e.colorTextDisabled})}),[`${d}:has(+ ${d})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${d}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},qo(e,"slide-up"),qo(e,"slide-down"),Dc(e,"move-up"),Dc(e,"move-down")]},Q6=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,l=e.max(e.calc(n).sub(r).equal(),0),c=e.max(e.calc(l).sub(a).equal(),0);return{basePadding:l,containerPadding:c,itemHeight:oe(t),itemLineHeight:oe(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},aH=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},Z6=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:l,multipleItemColorDisabled:c,multipleItemBorderColorDisabled:u,colorIcon:d,colorIconHover:f,INTERNAL_FIXED_ITEM_MARGIN:v}=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:v,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(v).mul(2).equal(),paddingInlineStart:l,paddingInlineEnd:e.calc(l).div(2).equal(),[`${t}-disabled&`]:{color:c,borderColor:u,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(l).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},hs()),{display:"inline-flex",alignItems:"center",color:d,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:f}})}}}},oH=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,l=e.multipleSelectItemHeight,c=aH(e),u=t?`${n}-${t}`:"",d=Q6(e);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},Z6(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:d.basePadding,paddingBlock:d.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${oe(r)} 0`,lineHeight:oe(l),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:d.itemHeight,lineHeight:oe(d.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:oe(l),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal()},[`${a}-item + ${a}-item,
|
|
246
|
+
${n}-prefix + ${n}-selection-wrap
|
|
247
|
+
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${a}-item-suffix`]:{minHeight:d.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:l,fontFamily:e.fontFamily,lineHeight:oe(l),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(d.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function z0(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
248
|
+
&${n}-show-arrow ${n}-selector,
|
|
249
|
+
&${n}-allow-clear ${n}-selector
|
|
250
|
+
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[oH(e,t),a]}const iH=e=>{const{componentCls:t}=e,n=tn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=tn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[z0(e),z0(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},z0(r,"lg")]};function D0(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,l=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({},dn(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:oe(l)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
251
|
+
${n}-selection-item,
|
|
252
|
+
${n}-selection-placeholder
|
|
253
|
+
`]:{display:"block",padding:0,lineHeight:oe(l),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"'}}),[`
|
|
254
|
+
&${n}-show-arrow ${n}-selection-item,
|
|
255
|
+
&${n}-show-arrow ${n}-selection-search,
|
|
256
|
+
&${n}-show-arrow ${n}-selection-placeholder
|
|
257
|
+
`]:{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 ${oe(r)}`,[`${n}-selection-search-input`]:{height:l,fontSize:e.fontSize},"&:after":{lineHeight:oe(l)}}},[`&${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 ${oe(r)}`,"&:after":{display:"none"}}}}}}}function lH(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[D0(e),D0(tn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${oe(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
258
|
+
&${t}-show-arrow ${t}-selection-item,
|
|
259
|
+
&${t}-show-arrow ${t}-selection-placeholder
|
|
260
|
+
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},D0(tn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const sH=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:l,controlHeightLG:c,paddingXXS:u,controlPaddingHorizontal:d,zIndexPopupBase:f,colorText:v,fontWeightStrong:g,controlItemBgActive:p,controlItemBgHover:b,colorBgContainer:C,colorFillSecondary:S,colorBgContainerDisabled:h,colorTextDisabled:x,colorPrimaryHover:w,colorPrimary:E,controlOutline:j}=e,R=u*2,I=r*2,O=Math.min(a-R,a-I),M=Math.min(l-R,l-I),N=Math.min(c-R,c-I);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(u/2),zIndexPopup:f+50,optionSelectedColor:v,optionSelectedFontWeight:g,optionSelectedBg:p,optionActiveBg:b,optionPadding:`${(a-t*n)/2}px ${d}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:C,clearBg:C,singleItemHeightLG:c,multipleItemBg:S,multipleItemBorderColor:"transparent",multipleItemHeight:O,multipleItemHeightSM:M,multipleItemHeightLG:N,multipleSelectorBgDisabled:h,multipleItemColorDisabled:x,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:w,activeBorderColor:E,activeOutlineColor:j,selectAffixPadding:u}},J6=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${oe(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 ${oe(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},wE=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},J6(e,t))}),cH=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},J6(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),wE(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),wE(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:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),ej=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${oe(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}}}},EE=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ej(e,t))}),uH=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ej(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),EE(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),EE(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:`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),dH=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${oe(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:`${oe(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}}}}),tj=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${oe(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},OE=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},tj(e,t))}),fH=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},tj(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),OE(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),OE(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:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),mH=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},cH(e)),uH(e)),dH(e)),fH(e))}),vH=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"}}}},gH=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"}}}},pH=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e,l={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},dn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},vH(e)),gH(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ua),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ua),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},hs()),{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)":l,"&:hover":l}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},hH=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},pH(e),lH(e),iH(e),rH(e),{[`${t}-rtl`]:{direction:"rtl"}},Cs(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},nj=sn("Select",(e,{rootPrefixCls:t})=>{const n=tn(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[hH(n),mH(n)]},sH,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var bH={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"},yH=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:bH}))},Ss=i.forwardRef(yH),CH={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"},SH=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:CH}))},Eg=i.forwardRef(SH),xH={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"},$H=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:xH}))},xs=i.forwardRef($H);function A1({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:a,multiple:l,hasFeedback:c,prefixCls:u,showSuffixIcon:d,feedbackIcon:f,showArrow:v,componentName:g}){const p=t??i.createElement(hl,null),b=x=>e===null&&!c&&!v?null:i.createElement(i.Fragment,null,d!==!1&&x,c&&f);let C=null;if(e!==void 0)C=b(e);else if(a)C=b(i.createElement(Io,{spin:!0}));else{const x=`${u}-suffix`;C=({open:w,showSearch:E})=>b(w&&E?i.createElement(xs,{className:x}):i.createElement(Eg,{className:x}))}let S=null;n!==void 0?S=n:l?S=i.createElement(Ss,null):S=null;let h=null;return r!==void 0?h=r:h=i.createElement(Po,null),{clearIcon:p,suffixIcon:C,itemIcon:S,removeIcon:h}}function rj(e){return ve.useMemo(()=>{if(e)return(...t)=>ve.createElement(Xo,{space:!0},e.apply(void 0,t))},[e])}function aj(e,t){return t!==void 0?t:e!==null}var wH=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 oj="SECRET_COMBOBOX_MODE_DO_NOT_USE",EH=(e,t)=>{var n,r,a,l,c;const{prefixCls:u,bordered:d,className:f,rootClassName:v,getPopupContainer:g,popupClassName:p,dropdownClassName:b,listHeight:C=256,placement:S,listItemHeight:h,size:x,disabled:w,notFoundContent:E,status:j,builtinPlacements:R,dropdownMatchSelectWidth:I,popupMatchSelectWidth:O,direction:M,style:N,allowClear:P,variant:B,dropdownStyle:L,transitionName:k,tagRender:D,maxCount:H,prefix:z,dropdownRender:_,popupRender:F,onDropdownVisibleChange:W,onOpenChange:q,styles:V,classNames:G}=e,K=wH(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:U,getPrefixCls:Z,renderEmpty:Q,direction:te,virtual:X,popupMatchSelectWidth:ae,popupOverflow:re}=i.useContext(Rt),{showSearch:ne,style:Y,styles:ie,className:le,classNames:de}=fr("select"),[,ce]=ia(),ge=h??(ce==null?void 0:ce.controlHeight),he=Z("select",u),Oe=Z(),je=M??te,{compactSize:pe,compactItemClassnames:we}=Do(he,je),[Se,Ce]=Cl("select",B,d),De=cr(he),[Ae,Ye,Ke]=nj(he,De),Fe=i.useMemo(()=>{const{mode:mt}=e;if(mt!=="combobox")return mt===oj?"combobox":mt},[e.mode]),Ge=Fe==="multiple"||Fe==="tags",Te=aj(e.suffixIcon,e.showArrow),Ee=(n=O??I)!==null&&n!==void 0?n:ae,_e=((r=V==null?void 0:V.popup)===null||r===void 0?void 0:r.root)||((a=ie.popup)===null||a===void 0?void 0:a.root)||L,Re=rj(F||_),Pe=q||W,{status:be,hasFeedback:$e,isFormItemInput:Me,feedbackIcon:Le}=i.useContext(Wr),et=yl(be,j);let bt;E!==void 0?bt=E:Fe==="combobox"?bt=null:bt=(Q==null?void 0:Q("Select"))||i.createElement(uf,{componentName:"Select"});const{suffixIcon:We,itemIcon:tt,removeIcon:dt,clearIcon:at}=A1(Object.assign(Object.assign({},K),{multiple:Ge,hasFeedback:$e,feedbackIcon:Le,showSuffixIcon:Te,prefixCls:he,componentName:"Select"})),pt=P===!0?{clearIcon:at}:P,Pt=wn(K,["suffixIcon","itemIcon"]),Et=ue(((l=G==null?void 0:G.popup)===null||l===void 0?void 0:l.root)||((c=de==null?void 0:de.popup)===null||c===void 0?void 0:c.root)||p||b,{[`${he}-dropdown-${je}`]:je==="rtl"},v,de.root,G==null?void 0:G.root,Ke,De,Ye),ct=Nr(mt=>{var Mt;return(Mt=x??pe)!==null&&Mt!==void 0?Mt:mt}),St=i.useContext(Vr),yt=w??St,Je=ue({[`${he}-lg`]:ct==="large",[`${he}-sm`]:ct==="small",[`${he}-rtl`]:je==="rtl",[`${he}-${Se}`]:Ce,[`${he}-in-form-item`]:Me},Ci(he,et,$e),we,le,f,de.root,G==null?void 0:G.root,v,Ke,De,Ye),Ve=i.useMemo(()=>S!==void 0?S:je==="rtl"?"bottomRight":"bottomLeft",[S,je]),[Ue]=zo("SelectLike",_e==null?void 0:_e.zIndex);return Ae(i.createElement(_1,Object.assign({ref:t,virtual:X,showSearch:ne},Pt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ie.root),V==null?void 0:V.root),Y),N),dropdownMatchSelectWidth:Ee,transitionName:Uo(Oe,"slide-up",k),builtinPlacements:Y6(R,re),listHeight:C,listItemHeight:ge,mode:Fe,prefixCls:he,placement:Ve,direction:je,prefix:z,suffixIcon:We,menuItemSelectedIcon:tt,removeIcon:dt,allowClear:pt,notFoundContent:bt,className:Je,getPopupContainer:g||U,dropdownClassName:Et,disabled:yt,dropdownStyle:Object.assign(Object.assign({},_e),{zIndex:Ue}),maxCount:Ge?H:void 0,tagRender:Ge?D:void 0,dropdownRender:Re,onDropdownVisibleChange:Pe})))},ir=i.forwardRef(EH),OH=Qc(ir,"dropdownAlign");ir.SECRET_COMBOBOX_MODE_DO_NOT_USE=oj;ir.Option=D1;ir.OptGroup=z1;ir._InternalPanelDoNotUseOrYouWillBeFired=OH;const{Option:RE}=ir;function jE(e){return(e==null?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const RH=(e,t)=>{var n,r;const{prefixCls:a,className:l,popupClassName:c,dropdownClassName:u,children:d,dataSource:f,dropdownStyle:v,dropdownRender:g,popupRender:p,onDropdownVisibleChange:b,onOpenChange:C,styles:S,classNames:h}=e,x=Xr(d),w=((n=S==null?void 0:S.popup)===null||n===void 0?void 0:n.root)||v,E=((r=h==null?void 0:h.popup)===null||r===void 0?void 0:r.root)||c||u,j=p||g,R=C||b;let I;x.length===1&&i.isValidElement(x[0])&&!jE(x[0])&&([I]=x);const O=I?()=>I:void 0;let M;x.length&&jE(x[0])?M=d:M=f?f.map(L=>{if(i.isValidElement(L))return L;switch(typeof L){case"string":return i.createElement(RE,{key:L,value:L},L);case"object":{const{value:k}=L;return i.createElement(RE,{key:k,value:k},L.text)}default:return}}):[];const{getPrefixCls:N}=i.useContext(Rt),P=N("select",a),[B]=zo("SelectLike",w==null?void 0:w.zIndex);return i.createElement(ir,Object.assign({ref:t,suffixIcon:null},wn(e,["dataSource","dropdownClassName","popupClassName"]),{prefixCls:P,classNames:{popup:{root:E},root:h==null?void 0:h.root},styles:{popup:{root:Object.assign(Object.assign({},w),{zIndex:B})},root:S==null?void 0:S.root},className:ue(`${P}-auto-complete`,l),mode:ir.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:j,onOpenChange:R,getInputElement:O}),M)},ij=i.forwardRef(RH),{Option:jH}=ir,IH=Qc(ij,"dropdownAlign",e=>wn(e,["visible"])),zv=ij;zv.Option=jH;zv._InternalPanelDoNotUseOrYouWillBeFired=IH;const lj=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},sj=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},us=["xxl","xl","lg","md","sm","xs"],NH=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)`}),MH=e=>{const t=e,n=[].concat(us).reverse();return n.forEach((r,a)=>{const l=r.toUpperCase(),c=`screen${l}Min`,u=`screen${l}`;if(!(t[c]<=t[u]))throw new Error(`${c}<=${u} fails : !(${t[c]}<=${t[u]})`);if(a<n.length-1){const d=`screen${l}Max`;if(!(t[u]<=t[d]))throw new Error(`${u}<=${d} fails : !(${t[u]}<=${t[d]})`);const v=`screen${n[a+1].toUpperCase()}Min`;if(!(t[d]<=t[v]))throw new Error(`${d}<=${v} fails : !(${t[d]}<=${t[v]})`)}}),e},TH=()=>{const[,e]=ia(),t=NH(MH(e));return ve.useMemo(()=>{const n=new Map;let r=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(l){return a=l,n.forEach(c=>c(a)),n.size>=1},subscribe(l){return n.size||this.register(),r+=1,n.set(r,l),l(a),r},unsubscribe(l){n.delete(l),n.size||this.unregister()},register(){Object.entries(t).forEach(([l,c])=>{const u=({matches:f})=>{this.dispatch(Object.assign(Object.assign({},a),{[l]:f}))},d=window.matchMedia(c);lj(d,u),this.matchHandlers[c]={mql:d,listener:u},u(d)})},unregister(){Object.values(t).forEach(l=>{const c=this.matchHandlers[l];sj(c==null?void 0:c.mql,c==null?void 0:c.listener)}),n.clear()}}},[t])};function Og(e=!0,t={}){const n=i.useRef(t),[,r]=h1(),a=TH();return nn(()=>{const l=a.subscribe(c=>{n.current=c,e&&r()});return()=>a.unsubscribe(l)},[]),n.current}const _c=e=>e?typeof e=="function"?e():e:null;function B1(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,l=e.bodyClassName,c=e.className,u=e.style;return i.createElement("div",{className:ue("".concat(n,"-content"),c),style:u},i.createElement("div",{className:ue("".concat(n,"-inner"),l),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var uc={shiftX:64,adjustY:1},dc={adjustX:1,shiftY:!0},lo=[0,0],PH={left:{points:["cr","cl"],overflow:dc,offset:[-4,0],targetOffset:lo},right:{points:["cl","cr"],overflow:dc,offset:[4,0],targetOffset:lo},top:{points:["bc","tc"],overflow:uc,offset:[0,-4],targetOffset:lo},bottom:{points:["tc","bc"],overflow:uc,offset:[0,4],targetOffset:lo},topLeft:{points:["bl","tl"],overflow:uc,offset:[0,-4],targetOffset:lo},leftTop:{points:["tr","tl"],overflow:dc,offset:[-4,0],targetOffset:lo},topRight:{points:["br","tr"],overflow:uc,offset:[0,-4],targetOffset:lo},rightTop:{points:["tl","tr"],overflow:dc,offset:[4,0],targetOffset:lo},bottomRight:{points:["tr","br"],overflow:uc,offset:[0,4],targetOffset:lo},rightBottom:{points:["bl","br"],overflow:dc,offset:[4,0],targetOffset:lo},bottomLeft:{points:["tl","bl"],overflow:uc,offset:[0,4],targetOffset:lo},leftBottom:{points:["br","bl"],overflow:dc,offset:[-4,0],targetOffset:lo}},zH=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],DH=function(t,n){var r=t.overlayClassName,a=t.trigger,l=a===void 0?["hover"]:a,c=t.mouseEnterDelay,u=c===void 0?0:c,d=t.mouseLeaveDelay,f=d===void 0?.1:d,v=t.overlayStyle,g=t.prefixCls,p=g===void 0?"rc-tooltip":g,b=t.children,C=t.onVisibleChange,S=t.afterVisibleChange,h=t.transitionName,x=t.animation,w=t.motion,E=t.placement,j=E===void 0?"right":E,R=t.align,I=R===void 0?{}:R,O=t.destroyTooltipOnHide,M=O===void 0?!1:O,N=t.defaultVisible,P=t.getTooltipContainer,B=t.overlayInnerStyle;t.arrowContent;var L=t.overlay,k=t.id,D=t.showArrow,H=D===void 0?!0:D,z=t.classNames,_=t.styles,F=Lt(t,zH),W=af(k),q=i.useRef(null);i.useImperativeHandle(n,function(){return q.current});var V=se({},F);"visible"in t&&(V.popupVisible=t.visible);var G=function(){return i.createElement(B1,{key:"content",prefixCls:p,id:W,bodyClassName:z==null?void 0:z.body,overlayInnerStyle:se(se({},B),_==null?void 0:_.body)},L)},K=function(){var Z=i.Children.only(b),Q=(Z==null?void 0:Z.props)||{},te=se(se({},Q),{},{"aria-describedby":L?W:null});return i.cloneElement(b,te)};return i.createElement(cf,ye({popupClassName:ue(r,z==null?void 0:z.root),prefixCls:p,popup:G,action:l,builtinPlacements:PH,popupPlacement:j,ref:q,popupAlign:I,getPopupContainer:P,onPopupVisibleChange:C,afterPopupVisibleChange:S,popupTransitionName:h,popupAnimation:x,popupMotion:w,defaultPopupVisible:N,autoDestroy:M,mouseLeaveDelay:f,popupStyle:se(se({},v),_==null?void 0:_.root),mouseEnterDelay:u,arrow:H},V),K())};const _H=i.forwardRef(DH);function Rg(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,l=0,c=a,u=r*1/Math.sqrt(2),d=a-r*(1-1/Math.sqrt(2)),f=a-n*(1/Math.sqrt(2)),v=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),g=2*a-f,p=v,b=2*a-u,C=d,S=2*a-l,h=c,x=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),w=r*(Math.sqrt(2)-1),E=`polygon(${w}px 100%, 50% ${w}px, ${2*a-w}px 100%, ${w}px 100%)`,j=`path('M ${l} ${c} A ${r} ${r} 0 0 0 ${u} ${d} L ${f} ${v} A ${n} ${n} 0 0 1 ${g} ${p} L ${b} ${C} A ${r} ${r} 0 0 0 ${S} ${h} Z')`;return{arrowShadowWidth:x,arrowPath:j,arrowPolygon:E}}const cj=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:l,arrowShadowWidth:c,borderRadiusXS:u,calc:d}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:d(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:c,height:c,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${oe(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},uj=8;function jg(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?uj:r}}function _m(e,t){return e?t:{}}function k1(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:l,arrowOffsetHorizontal:c}=e,{arrowDistance:u=0,arrowPlacement:d={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"},cj(e,t,a)),{"&:before":{background:t}})]},_m(!!d.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% - ${oe(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),_m(!!d.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% - ${oe(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),_m(!!d.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:l},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:l}})),_m(!!d.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:l},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:l}}))}}function AH(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},l={};switch(e){case"top":case"bottom":l.shiftX=t.arrowOffsetHorizontal*2+n,l.shiftY=!0,l.adjustY=!0;break;case"left":case"right":l.shiftY=t.arrowOffsetVertical*2+n,l.shiftX=!0,l.adjustX=!0;break}const c=Object.assign(Object.assign({},l),a);return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const IE={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"]}},BH={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"]}},kH=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function dj(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:l,visibleFirst:c}=e,u=t/2,d={},f=jg({contentRadius:l,limitVerticalRadius:!0});return Object.keys(IE).forEach(v=>{const g=r&&BH[v]||IE[v],p=Object.assign(Object.assign({},g),{offset:[0,0],dynamicInset:!0});switch(d[v]=p,kH.has(v)&&(p.autoArrow=!1),v){case"top":case"topLeft":case"topRight":p.offset[1]=-u-a;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=u+a;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-u-a;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=u+a;break}if(r)switch(v){case"topLeft":case"bottomLeft":p.offset[0]=-f.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":p.offset[0]=f.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":p.offset[1]=-f.arrowOffsetHorizontal*2+u;break;case"leftBottom":case"rightBottom":p.offset[1]=f.arrowOffsetHorizontal*2-u;break}p.overflow=AH(v,f,t,n),c&&(p.htmlRegion="visibleFirst")}),d}const LH=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:a,tooltipBg:l,tooltipBorderRadius:c,zIndexPopup:u,controlHeight:d,boxShadowSecondary:f,paddingSM:v,paddingXS:g,arrowOffsetHorizontal:p,sizePopupArrow:b}=e,C=t(c).add(b).add(p).equal(),S=t(c).mul(2).add(b).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},dn(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":l,[`${n}-inner`]:{minWidth:S,minHeight:d,padding:`${oe(e.calc(v).div(2).equal())} ${oe(g)}`,color:`var(--ant-tooltip-color, ${a})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:l,borderRadius:c,boxShadow:f,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:C},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(c,uj)}},[`${n}-content`]:{position:"relative"}}),ag(e,(h,{darkColor:x})=>({[`&${n}-${h}`]:{[`${n}-inner`]:{backgroundColor:x},[`${n}-arrow`]:{"--antd-arrow-background-color":x}}}))),{"&-rtl":{direction:"rtl"}})},k1(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},HH=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},jg({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Rg(tn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),fj=(e,t=!0)=>sn("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:l,colorBgSpotlight:c}=r,u=tn(r,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:a,tooltipBg:c});return[LH(u),nf(r,"zoom-big-fast")]},HH,{resetStyle:!1,injectStyle:t})(e),FH=ul.map(e=>`${e}-inverse`),VH=["success","processing","error","default","warning"];function Ig(e,t=!0){return t?[].concat(Ne(FH),Ne(ul)).includes(e):ul.includes(e)}function WH(e){return VH.includes(e)}function mj(e,t){const n=Ig(t),r=ue({[`${e}-${t}`]:t&&n}),a={},l={},c=bA(t).toRgb(),d=(.299*c.r+.587*c.g+.114*c.b)/255<.5?"#FFF":"#000";return t&&!n&&(a.background=t,a["--ant-tooltip-color"]=d,l["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:l}}const KH=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:l,overlayInnerStyle:c}=e,{getPrefixCls:u}=i.useContext(Rt),d=u("tooltip",t),[f,v,g]=fj(d),p=mj(d,l),b=p.arrowStyle,C=Object.assign(Object.assign({},c),p.overlayStyle),S=ue(v,g,d,`${d}-pure`,`${d}-placement-${r}`,n,p.className);return f(i.createElement("div",{className:S,style:b},i.createElement("div",{className:`${d}-arrow`}),i.createElement(B1,Object.assign({},e,{className:v,prefixCls:d,overlayInnerStyle:C}),a)))};var UH=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 qH=i.forwardRef((e,t)=>{var n,r;const{prefixCls:a,openClassName:l,getTooltipContainer:c,color:u,overlayInnerStyle:d,children:f,afterOpenChange:v,afterVisibleChange:g,destroyTooltipOnHide:p,destroyOnHidden:b,arrow:C=!0,title:S,overlay:h,builtinPlacements:x,arrowPointAtCenter:w=!1,autoAdjustOverflow:E=!0,motion:j,getPopupContainer:R,placement:I="top",mouseEnterDelay:O=.1,mouseLeaveDelay:M=.1,overlayStyle:N,rootClassName:P,overlayClassName:B,styles:L,classNames:k}=e,D=UH(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"]),H=!!C,[,z]=ia(),{getPopupContainer:_,getPrefixCls:F,direction:W,className:q,style:V,classNames:G,styles:K}=fr("tooltip"),U=Qo(),Z=i.useRef(null),Q=()=>{var Te;(Te=Z.current)===null||Te===void 0||Te.forceAlign()};i.useImperativeHandle(t,()=>{var Te,Ee;return{forceAlign:Q,forcePopupAlign:()=>{U.deprecated(!1,"forcePopupAlign","forceAlign"),Q()},nativeElement:(Te=Z.current)===null||Te===void 0?void 0:Te.nativeElement,popupElement:(Ee=Z.current)===null||Ee===void 0?void 0:Ee.popupElement}});const[te,X]=bn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ae=!S&&!h&&S!==0,re=Te=>{var Ee,_e;X(ae?!1:Te),ae||((Ee=e.onOpenChange)===null||Ee===void 0||Ee.call(e,Te),(_e=e.onVisibleChange)===null||_e===void 0||_e.call(e,Te))},ne=i.useMemo(()=>{var Te,Ee;let _e=w;return typeof C=="object"&&(_e=(Ee=(Te=C.pointAtCenter)!==null&&Te!==void 0?Te:C.arrowPointAtCenter)!==null&&Ee!==void 0?Ee:w),x||dj({arrowPointAtCenter:_e,autoAdjustOverflow:E,arrowWidth:H?z.sizePopupArrow:0,borderRadius:z.borderRadius,offset:z.marginXXS,visibleFirst:!0})},[w,C,x,z]),Y=i.useMemo(()=>S===0?S:h||S||"",[h,S]),ie=i.createElement(Xo,{space:!0},typeof Y=="function"?Y():Y),le=F("tooltip",a),de=F(),ce=e["data-popover-inject"];let ge=te;!("open"in e)&&!("visible"in e)&&ae&&(ge=!1);const he=i.isValidElement(f)&&!$R(f)?f:i.createElement("span",null,f),Oe=he.props,je=!Oe.className||typeof Oe.className=="string"?ue(Oe.className,l||`${le}-open`):Oe.className,[pe,we,Se]=fj(le,!ce),Ce=mj(le,u),De=Ce.arrowStyle,Ae=ue(B,{[`${le}-rtl`]:W==="rtl"},Ce.className,P,we,Se,q,G.root,k==null?void 0:k.root),Ye=ue(G.body,k==null?void 0:k.body),[Ke,Fe]=zo("Tooltip",D.zIndex),Ge=i.createElement(_H,Object.assign({},D,{zIndex:Ke,showArrow:H,placement:I,mouseEnterDelay:O,mouseLeaveDelay:M,prefixCls:le,classNames:{root:Ae,body:Ye},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},De),K.root),V),N),L==null?void 0:L.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},K.body),d),L==null?void 0:L.body),Ce.overlayStyle)},getTooltipContainer:R||c||_,ref:Z,builtinPlacements:ne,overlay:ie,visible:ge,onVisibleChange:re,afterVisibleChange:v??g,arrowContent:i.createElement("span",{className:`${le}-arrow-content`}),motion:{motionName:Uo(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:b??!!p}),ge?$r(he,{className:je}):he);return pe(i.createElement(ig.Provider,{value:Fe},Ge))}),Vn=qH;Vn._InternalPanelDoNotUseOrYouWillBeFired=KH;const GH=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:l,boxShadowSecondary:c,colorTextHeading:u,borderRadiusLG:d,zIndexPopup:f,titleMarginBottom:v,colorBgElevated:g,popoverBg:p,titleBorderBottom:b,innerContentPadding:C,titlePadding:S}=e;return[{[t]:Object.assign(Object.assign({},dn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:f,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":g,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:d,boxShadow:c,padding:l},[`${t}-title`]:{minWidth:r,marginBottom:v,color:u,fontWeight:a,borderBottom:b,padding:S},[`${t}-inner-content`]:{color:n,padding:C}})},k1(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},XH=e=>{const{componentCls:t}=e;return{[t]:ul.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},YH=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:l,zIndexPopupBase:c,borderRadiusLG:u,marginXS:d,lineType:f,colorSplit:v,paddingSM:g}=e,p=n-r,b=p/2,C=p/2-t,S=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:c+30},Rg(e)),jg({contentRadius:u,limitVerticalRadius:!0})),{innerPadding:l?0:12,titleMarginBottom:l?0:d,titlePadding:l?`${b}px ${S}px ${C}px`:0,titleBorderBottom:l?`${t}px ${f} ${v}`:"none",innerContentPadding:l?`${g}px ${S}px`:0})},vj=sn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=tn(e,{popoverBg:t,popoverColor:n});return[GH(r),XH(r),nf(r,"zoom-big")]},YH,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var QH=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 gj=({title:e,content:t,prefixCls:n})=>!e&&!t?null:i.createElement(i.Fragment,null,e&&i.createElement("div",{className:`${n}-title`},e),t&&i.createElement("div",{className:`${n}-inner-content`},t)),ZH=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:l="top",title:c,content:u,children:d}=e,f=_c(c),v=_c(u),g=ue(t,n,`${n}-pure`,`${n}-placement-${l}`,r);return i.createElement("div",{className:g,style:a},i.createElement("div",{className:`${n}-arrow`}),i.createElement(B1,Object.assign({},e,{className:t,prefixCls:n}),d||i.createElement(gj,{prefixCls:n,title:f,content:v})))},pj=e=>{const{prefixCls:t,className:n}=e,r=QH(e,["prefixCls","className"]),{getPrefixCls:a}=i.useContext(Rt),l=a("popover",t),[c,u,d]=vj(l);return c(i.createElement(ZH,Object.assign({},r,{prefixCls:l,hashId:u,className:ue(n,d)})))};var JH=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 eF=i.forwardRef((e,t)=>{var n,r;const{prefixCls:a,title:l,content:c,overlayClassName:u,placement:d="top",trigger:f="hover",children:v,mouseEnterDelay:g=.1,mouseLeaveDelay:p=.1,onOpenChange:b,overlayStyle:C={},styles:S,classNames:h}=e,x=JH(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,className:E,style:j,classNames:R,styles:I}=fr("popover"),O=w("popover",a),[M,N,P]=vj(O),B=w(),L=ue(u,N,P,E,R.root,h==null?void 0:h.root),k=ue(R.body,h==null?void 0:h.body),[D,H]=bn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),z=(V,G)=>{H(V,!0),b==null||b(V,G)},_=V=>{V.keyCode===ot.ESC&&z(!1,V)},F=V=>{z(V)},W=_c(l),q=_c(c);return M(i.createElement(Vn,Object.assign({placement:d,trigger:f,mouseEnterDelay:g,mouseLeaveDelay:p},x,{prefixCls:O,classNames:{root:L,body:k},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},I.root),j),C),S==null?void 0:S.root),body:Object.assign(Object.assign({},I.body),S==null?void 0:S.body)},ref:t,open:D,onOpenChange:F,overlay:W||q?i.createElement(gj,{prefixCls:O,title:W,content:q}):null,transitionName:Uo(B,"zoom-big",x.transitionName),"data-popover-inject":!0}),$r(v,{onKeyDown:V=>{var G,K;i.isValidElement(v)&&((K=v==null?void 0:(G=v.props).onKeyDown)===null||K===void 0||K.call(G,V)),_(V)}})))}),L1=eF;L1._InternalPanelDoNotUseOrYouWillBeFired=pj;var tF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},nF=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:tF}))},rF=i.forwardRef(nF);const aF=new Jt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),oF=new Jt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),iF=new Jt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),lF=new Jt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),sF=new Jt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),cF=new Jt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),uF=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:a,textFontSize:l,textFontSizeSM:c,statusSize:u,dotSize:d,textFontWeight:f,indicatorHeight:v,indicatorHeightSM:g,marginXS:p,calc:b}=e,C=`${r}-scroll-number`,S=ag(e,(h,{darkColor:x})=>({[`&${t} ${t}-color-${h}`]:{background:x,[`&:not(${t}-count)`]:{color:x},"a:hover &":{background:x}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},dn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:v,height:v,color:e.badgeTextColor,fontWeight:f,fontSize:l,lineHeight:oe(v),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:b(v).div(2).equal(),boxShadow:`0 0 0 ${oe(a)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:g,height:g,fontSize:c,lineHeight:oe(g),borderRadius:b(g).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${oe(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:d,minWidth:d,height:d,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${oe(a)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${C}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:cF,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:u,height:u,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:a,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:aF,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),S),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:oF,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:iF,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:lF,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:sF,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${C}-custom-component, ${t}-count`]:{transform:"none"},[`${C}-custom-component, ${C}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[C]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${C}-only`]:{position:"relative",display:"inline-block",height:v,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${C}-only-unit`]:{height:v,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${C}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${C}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},hj=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:a}=e,l=t,c=n,u=e.colorTextLightSolid,d=e.colorError,f=e.colorErrorHover;return tn(e,{badgeFontHeight:l,badgeShadowSize:c,badgeTextColor:u,badgeColor:d,badgeColorHover:f,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},bj=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:a}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*a,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},dF=sn("Badge",e=>{const t=hj(e);return uF(t)},bj),fF=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:a,calc:l}=e,c=`${t}-ribbon`,u=`${t}-ribbon-wrapper`,d=ag(e,(f,{darkColor:v})=>({[`&${c}-color-${f}`]:{background:v,color:v}}));return{[u]:{position:"relative"},[c]:Object.assign(Object.assign(Object.assign(Object.assign({},dn(e)),{position:"absolute",top:r,padding:`0 ${oe(e.paddingXS)}`,color:e.colorPrimary,lineHeight:oe(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${c}-text`]:{color:e.badgeTextColor},[`${c}-corner`]:{position:"absolute",top:"100%",width:a,height:a,color:"currentcolor",border:`${oe(l(a).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),d),{[`&${c}-placement-end`]:{insetInlineEnd:l(a).mul(-1).equal(),borderEndEndRadius:0,[`${c}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${c}-placement-start`]:{insetInlineStart:l(a).mul(-1).equal(),borderEndStartRadius:0,[`${c}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},mF=sn(["Badge","Ribbon"],e=>{const t=hj(e);return fF(t)},bj),vF=e=>{const{className:t,prefixCls:n,style:r,color:a,children:l,text:c,placement:u="end",rootClassName:d}=e,{getPrefixCls:f,direction:v}=i.useContext(Rt),g=f("ribbon",n),p=`${g}-wrapper`,[b,C,S]=mF(g,p),h=Ig(a,!1),x=ue(g,`${g}-placement-${u}`,{[`${g}-rtl`]:v==="rtl",[`${g}-color-${a}`]:h},t),w={},E={};return a&&!h&&(w.background=a,E.color=a),b(i.createElement("div",{className:ue(p,d,C,S)},l,i.createElement("div",{className:ue(x,C),style:Object.assign(Object.assign({},w),r)},i.createElement("span",{className:`${g}-text`},c),i.createElement("div",{className:`${g}-corner`,style:E}))))},NE=e=>{const{prefixCls:t,value:n,current:r,offset:a=0}=e;let l;return a&&(l={position:"absolute",top:`${a}00%`,left:0}),i.createElement("span",{style:l,className:ue(`${t}-only-unit`,{current:r})},n)};function gF(e,t,n){let r=e,a=0;for(;(r+10)%10!==t;)r+=n,a+=n;return a}const pF=e=>{const{prefixCls:t,count:n,value:r}=e,a=Number(r),l=Math.abs(n),[c,u]=i.useState(a),[d,f]=i.useState(l),v=()=>{u(a),f(l)};i.useEffect(()=>{const b=setTimeout(v,1e3);return()=>clearTimeout(b)},[a]);let g,p;if(c===a||Number.isNaN(a)||Number.isNaN(c))g=[i.createElement(NE,Object.assign({},e,{key:a,current:!0}))],p={transition:"none"};else{g=[];const b=a+10,C=[];for(let w=a;w<=b;w+=1)C.push(w);const S=d<l?1:-1,h=C.findIndex(w=>w%10===c);g=(S<0?C.slice(0,h+1):C.slice(h)).map((w,E)=>{const j=w%10;return i.createElement(NE,Object.assign({},e,{key:w,value:j,offset:S<0?E-h:E,current:E===h}))}),p={transform:`translateY(${-gF(c,a,S)}00%)`}}return i.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:v},g)};var hF=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 bF=i.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:a,motionClassName:l,style:c,title:u,show:d,component:f="sup",children:v}=e,g=hF(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=i.useContext(Rt),b=p("scroll-number",n),C=Object.assign(Object.assign({},g),{"data-show":d,style:c,className:ue(b,a,l),title:u});let S=r;if(r&&Number(r)%1===0){const h=String(r).split("");S=i.createElement("bdi",null,h.map((x,w)=>i.createElement(pF,{prefixCls:b,count:Number(r),value:x,key:h.length-w})))}return c!=null&&c.borderColor&&(C.style=Object.assign(Object.assign({},c),{boxShadow:`0 0 0 1px ${c.borderColor} inset`})),v?$r(v,h=>({className:ue(`${b}-custom-component`,h==null?void 0:h.className,l)})):i.createElement(f,Object.assign({},C,{ref:t}),S)});var yF=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 CF=i.forwardRef((e,t)=>{var n,r,a,l,c;const{prefixCls:u,scrollNumberPrefixCls:d,children:f,status:v,text:g,color:p,count:b=null,overflowCount:C=99,dot:S=!1,size:h="default",title:x,offset:w,style:E,className:j,rootClassName:R,classNames:I,styles:O,showZero:M=!1}=e,N=yF(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:P,direction:B,badge:L}=i.useContext(Rt),k=P("badge",u),[D,H,z]=dF(k),_=b>C?`${C}+`:b,F=_==="0"||_===0||g==="0"||g===0,W=b===null||F&&!M,q=(v!=null||p!=null)&&W,V=v!=null||!F,G=S&&!F,K=G?"":_,U=i.useMemo(()=>((K==null||K==="")&&(g==null||g==="")||F&&!M)&&!G,[K,F,M,G,g]),Z=i.useRef(b);U||(Z.current=b);const Q=Z.current,te=i.useRef(K);U||(te.current=K);const X=te.current,ae=i.useRef(G);U||(ae.current=G);const re=i.useMemo(()=>{if(!w)return Object.assign(Object.assign({},L==null?void 0:L.style),E);const Oe={marginTop:w[1]};return B==="rtl"?Oe.left=Number.parseInt(w[0],10):Oe.right=-Number.parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},Oe),L==null?void 0:L.style),E)},[B,w,E,L==null?void 0:L.style]),ne=x??(typeof Q=="string"||typeof Q=="number"?Q:void 0),Y=!U&&(g===0?M:!!g&&g!==!0),ie=Y?i.createElement("span",{className:`${k}-status-text`},g):null,le=!Q||typeof Q!="object"?void 0:$r(Q,Oe=>({style:Object.assign(Object.assign({},re),Oe.style)})),de=Ig(p,!1),ce=ue(I==null?void 0:I.indicator,(n=L==null?void 0:L.classNames)===null||n===void 0?void 0:n.indicator,{[`${k}-status-dot`]:q,[`${k}-status-${v}`]:!!v,[`${k}-color-${p}`]:de}),ge={};p&&!de&&(ge.color=p,ge.background=p);const he=ue(k,{[`${k}-status`]:q,[`${k}-not-a-wrapper`]:!f,[`${k}-rtl`]:B==="rtl"},j,R,L==null?void 0:L.className,(r=L==null?void 0:L.classNames)===null||r===void 0?void 0:r.root,I==null?void 0:I.root,H,z);if(!f&&q&&(g||V||!W)){const Oe=re.color;return D(i.createElement("span",Object.assign({},N,{className:he,style:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.root),(a=L==null?void 0:L.styles)===null||a===void 0?void 0:a.root),re)}),i.createElement("span",{className:ce,style:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.indicator),(l=L==null?void 0:L.styles)===null||l===void 0?void 0:l.indicator),ge)}),Y&&i.createElement("span",{style:{color:Oe},className:`${k}-status-text`},g)))}return D(i.createElement("span",Object.assign({ref:t},N,{className:he,style:Object.assign(Object.assign({},(c=L==null?void 0:L.styles)===null||c===void 0?void 0:c.root),O==null?void 0:O.root)}),f,i.createElement(Qr,{visible:!U,motionName:`${k}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Oe})=>{var je,pe;const we=P("scroll-number",d),Se=ae.current,Ce=ue(I==null?void 0:I.indicator,(je=L==null?void 0:L.classNames)===null||je===void 0?void 0:je.indicator,{[`${k}-dot`]:Se,[`${k}-count`]:!Se,[`${k}-count-sm`]:h==="small",[`${k}-multiple-words`]:!Se&&X&&X.toString().length>1,[`${k}-status-${v}`]:!!v,[`${k}-color-${p}`]:de});let De=Object.assign(Object.assign(Object.assign({},O==null?void 0:O.indicator),(pe=L==null?void 0:L.styles)===null||pe===void 0?void 0:pe.indicator),re);return p&&!de&&(De=De||{},De.background=p),i.createElement(bF,{prefixCls:we,show:!U,motionClassName:Oe,className:Ce,count:X,title:ne,style:De,key:"scrollNumber"},le)}),ie))}),Ka=CF;Ka.Ribbon=vF;var SF={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"},xF=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:SF}))},Ac=i.forwardRef(xF),$F=ot.ESC,wF=ot.TAB;function EF(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,l=e.overlayRef,c=i.useRef(!1),u=function(){if(t){var g,p;(g=n.current)===null||g===void 0||(p=g.focus)===null||p===void 0||p.call(g),r==null||r(!1)}},d=function(){var g;return(g=l.current)!==null&&g!==void 0&&g.focus?(l.current.focus(),c.current=!0,!0):!1},f=function(g){switch(g.keyCode){case $F:u();break;case wF:{var p=!1;c.current||(p=d()),p?g.preventDefault():u();break}}};i.useEffect(function(){return t?(window.addEventListener("keydown",f),a&&Yt(d,3),function(){window.removeEventListener("keydown",f),c.current=!1}):function(){c.current=!1}},[t])}var OF=i.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,l=i.useMemo(function(){var u;return typeof n=="function"?u=n():u=n,u},[n]),c=Ir(t,pl(l));return ve.createElement(ve.Fragment,null,r&&ve.createElement("div",{className:"".concat(a,"-arrow")}),ve.cloneElement(l,{ref:Oo(l)?c:void 0}))}),fc={adjustX:1,adjustY:1},mc=[0,0],RF={topLeft:{points:["bl","tl"],overflow:fc,offset:[0,-4],targetOffset:mc},top:{points:["bc","tc"],overflow:fc,offset:[0,-4],targetOffset:mc},topRight:{points:["br","tr"],overflow:fc,offset:[0,-4],targetOffset:mc},bottomLeft:{points:["tl","bl"],overflow:fc,offset:[0,4],targetOffset:mc},bottom:{points:["tc","bc"],overflow:fc,offset:[0,4],targetOffset:mc},bottomRight:{points:["tr","br"],overflow:fc,offset:[0,4],targetOffset:mc}},jF=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function IF(e,t){var n,r=e.arrow,a=r===void 0?!1:r,l=e.prefixCls,c=l===void 0?"rc-dropdown":l,u=e.transitionName,d=e.animation,f=e.align,v=e.placement,g=v===void 0?"bottomLeft":v,p=e.placements,b=p===void 0?RF:p,C=e.getPopupContainer,S=e.showAction,h=e.hideAction,x=e.overlayClassName,w=e.overlayStyle,E=e.visible,j=e.trigger,R=j===void 0?["hover"]:j,I=e.autoFocus,O=e.overlay,M=e.children,N=e.onVisibleChange,P=Lt(e,jF),B=ve.useState(),L=fe(B,2),k=L[0],D=L[1],H="visible"in e?E:k,z=ve.useRef(null),_=ve.useRef(null),F=ve.useRef(null);ve.useImperativeHandle(t,function(){return z.current});var W=function(X){D(X),N==null||N(X)};EF({visible:H,triggerRef:F,onVisibleChange:W,autoFocus:I,overlayRef:_});var q=function(X){var ae=e.onOverlayClick;D(!1),ae&&ae(X)},V=function(){return ve.createElement(OF,{ref:_,overlay:O,prefixCls:c,arrow:a})},G=function(){return typeof O=="function"?V:V()},K=function(){var X=e.minOverlayWidthMatchTrigger,ae=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?X:!ae},U=function(){var X=e.openClassName;return X!==void 0?X:"".concat(c,"-open")},Z=ve.cloneElement(M,{className:ue((n=M.props)===null||n===void 0?void 0:n.className,H&&U()),ref:Oo(M)?Ir(F,pl(M)):void 0}),Q=h;return!Q&&R.indexOf("contextMenu")!==-1&&(Q=["click"]),ve.createElement(cf,ye({builtinPlacements:b},P,{prefixCls:c,ref:z,popupClassName:ue(x,ee({},"".concat(c,"-show-arrow"),a)),popupStyle:w,action:R,showAction:S,hideAction:Q,popupPlacement:g,popupAlign:f,popupTransitionName:u,popupAnimation:d,popupVisible:H,stretch:K()?"minWidth":"",popup:G(),onPopupVisibleChange:W,onPopupClick:q,getPopupContainer:C}),Z)}const yj=ve.forwardRef(IF),NF=e=>typeof e!="object"&&typeof e!="function"||e===null;var Cj=i.createContext(null);function Sj(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function xj(e){var t=i.useContext(Cj);return Sj(t,e)}var MF=["children","locked"],No=i.createContext(null);function TF(e,t){var n=se({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function Hd(e){var t=e.children,n=e.locked,r=Lt(e,MF),a=i.useContext(No),l=ps(function(){return TF(a,r)},[a,r],function(c,u){return!n&&(c[0]!==u[0]||!Ro(c[1],u[1],!0))});return i.createElement(No.Provider,{value:l},t)}var PF=[],$j=i.createContext(null);function Ng(){return i.useContext($j)}var wj=i.createContext(PF);function Zc(e){var t=i.useContext(wj);return i.useMemo(function(){return e!==void 0?[].concat(Ne(t),[e]):t},[t,e])}var Ej=i.createContext(null),H1=i.createContext({});function ME(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Gc(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),l=Number(a),c=null;return a&&!Number.isNaN(l)?c=l:r&&c===null&&(c=0),r&&e.disabled&&(c=null),c!==null&&(c>=0||t&&c<0)}return!1}function zF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ne(e.querySelectorAll("*")).filter(function(r){return ME(r,t)});return ME(e,t)&&n.unshift(e),n}var Oy=ot.LEFT,Ry=ot.RIGHT,jy=ot.UP,cv=ot.DOWN,uv=ot.ENTER,Oj=ot.ESC,ed=ot.HOME,td=ot.END,TE=[jy,cv,Oy,Ry];function DF(e,t,n,r){var a,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===uv)return{inlineTrigger:!0};var f=ee(ee({},jy,l),cv,c),v=ee(ee(ee(ee({},Oy,n?c:l),Ry,n?l:c),cv,u),uv,u),g=ee(ee(ee(ee(ee(ee({},jy,l),cv,c),uv,u),Oj,d),Oy,n?u:d),Ry,n?d:u),p={inline:f,horizontal:v,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g},b=(a=p["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(b){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function _F(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function AF(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function F1(e,t){var n=zF(e,!0);return n.filter(function(r){return t.has(r)})}function PE(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=F1(e,t),l=a.length,c=a.findIndex(function(u){return n===u});return r<0?c===-1?c=l-1:c-=1:r>0&&(c+=1),c=(c+l)%l,a[c]}var Iy=function(t,n){var r=new Set,a=new Map,l=new Map;return t.forEach(function(c){var u=document.querySelector("[data-menu-id='".concat(Sj(n,c),"']"));u&&(r.add(u),l.set(u,c),a.set(c,u))}),{elements:r,key2element:a,element2key:l}};function BF(e,t,n,r,a,l,c,u,d,f){var v=i.useRef(),g=i.useRef();g.current=t;var p=function(){Yt.cancel(v.current)};return i.useEffect(function(){return function(){p()}},[]),function(b){var C=b.which;if([].concat(TE,[uv,Oj,ed,td]).includes(C)){var S=l(),h=Iy(S,r),x=h,w=x.elements,E=x.key2element,j=x.element2key,R=E.get(t),I=AF(R,w),O=j.get(I),M=DF(e,c(O,!0).length===1,n,C);if(!M&&C!==ed&&C!==td)return;(TE.includes(C)||[ed,td].includes(C))&&b.preventDefault();var N=function(_){if(_){var F=_,W=_.querySelector("a");W!=null&&W.getAttribute("href")&&(F=W);var q=j.get(_);u(q),p(),v.current=Yt(function(){g.current===q&&F.focus()})}};if([ed,td].includes(C)||M.sibling||!I){var P;!I||e==="inline"?P=a.current:P=_F(I);var B,L=F1(P,w);C===ed?B=L[0]:C===td?B=L[L.length-1]:B=PE(P,w,I,M.offset),N(B)}else if(M.inlineTrigger)d(O);else if(M.offset>0)d(O,!0),p(),v.current=Yt(function(){h=Iy(S,r);var z=I.getAttribute("aria-controls"),_=document.getElementById(z),F=PE(_,h.elements);N(F)},5);else if(M.offset<0){var k=c(O,!0),D=k[k.length-2],H=E.get(D);d(D,!1),N(H)}}f==null||f(b)}}function kF(e){Promise.resolve().then(e)}var V1="__RC_UTIL_PATH_SPLIT__",zE=function(t){return t.join(V1)},LF=function(t){return t.split(V1)},Ny="rc-menu-more";function HF(){var e=i.useState({}),t=fe(e,2),n=t[1],r=i.useRef(new Map),a=i.useRef(new Map),l=i.useState([]),c=fe(l,2),u=c[0],d=c[1],f=i.useRef(0),v=i.useRef(!1),g=function(){v.current||n({})},p=i.useCallback(function(E,j){var R=zE(j);a.current.set(R,E),r.current.set(E,R),f.current+=1;var I=f.current;kF(function(){I===f.current&&g()})},[]),b=i.useCallback(function(E,j){var R=zE(j);a.current.delete(R),r.current.delete(E)},[]),C=i.useCallback(function(E){d(E)},[]),S=i.useCallback(function(E,j){var R=r.current.get(E)||"",I=LF(R);return j&&u.includes(I[0])&&I.unshift(Ny),I},[u]),h=i.useCallback(function(E,j){return E.filter(function(R){return R!==void 0}).some(function(R){var I=S(R,!0);return I.includes(j)})},[S]),x=function(){var j=Ne(r.current.keys());return u.length&&j.push(Ny),j},w=i.useCallback(function(E){var j="".concat(r.current.get(E)).concat(V1),R=new Set;return Ne(a.current.keys()).forEach(function(I){I.startsWith(j)&&R.add(a.current.get(I))}),R},[]);return i.useEffect(function(){return function(){v.current=!0}},[]),{registerPath:p,unregisterPath:b,refreshOverflowKeys:C,isSubPathKey:h,getKeyPath:S,getKeys:x,getSubPathKeys:w}}function dd(e){var t=i.useRef(e);t.current=e;var n=i.useCallback(function(){for(var r,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(l))},[]);return e?n:void 0}var FF=Math.random().toFixed(5).toString().slice(2),DE=0;function VF(e){var t=bn(e,{value:e}),n=fe(t,2),r=n[0],a=n[1];return i.useEffect(function(){DE+=1;var l="".concat(FF,"-").concat(DE);a("rc-menu-uuid-".concat(l))},[]),r}function Rj(e,t,n,r){var a=i.useContext(No),l=a.activeKey,c=a.onActive,u=a.onInactive,d={active:l===e};return t||(d.onMouseEnter=function(f){n==null||n({key:e,domEvent:f}),c(e)},d.onMouseLeave=function(f){r==null||r({key:e,domEvent:f}),u(e)}),d}function jj(e){var t=i.useContext(No),n=t.mode,r=t.rtl,a=t.inlineIndent;if(n!=="inline")return null;var l=e;return r?{paddingRight:l*a}:{paddingLeft:l*a}}function Ij(e){var t=e.icon,n=e.props,r=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=i.createElement(t,se({},n)):typeof t!="boolean"&&(a=t),a||r||null)}var WF=["item"];function Dv(e){var t=e.item,n=Lt(e,WF);return Object.defineProperty(n,"item",{get:function(){return Xn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var KF=["title","attribute","elementRef"],UF=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],qF=["active"],GF=(function(e){Xa(n,e);var t=go(n);function n(){return ur(this,n),t.apply(this,arguments)}return dr(n,[{key:"render",value:function(){var a=this.props,l=a.title,c=a.attribute,u=a.elementRef,d=Lt(a,KF),f=wn(d,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Xn(!c,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),i.createElement(wo.Item,ye({},c,{title:typeof l=="string"?l:void 0},f,{ref:u}))}}]),n})(i.Component),XF=i.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.eventKey;e.warnKey;var l=e.disabled,c=e.itemIcon,u=e.children,d=e.role,f=e.onMouseEnter,v=e.onMouseLeave,g=e.onClick,p=e.onKeyDown,b=e.onFocus,C=Lt(e,UF),S=xj(a),h=i.useContext(No),x=h.prefixCls,w=h.onItemClick,E=h.disabled,j=h.overflowDisabled,R=h.itemIcon,I=h.selectedKeys,O=h.onActive,M=i.useContext(H1),N=M._internalRenderMenuItem,P="".concat(x,"-item"),B=i.useRef(),L=i.useRef(),k=E||l,D=Si(t,L),H=Zc(a),z=function(ae){return{key:a,keyPath:Ne(H).reverse(),item:B.current,domEvent:ae}},_=c||R,F=Rj(a,k,f,v),W=F.active,q=Lt(F,qF),V=I.includes(a),G=jj(H.length),K=function(ae){if(!k){var re=z(ae);g==null||g(Dv(re)),w(re)}},U=function(ae){if(p==null||p(ae),ae.which===ot.ENTER){var re=z(ae);g==null||g(Dv(re)),w(re)}},Z=function(ae){O(a),b==null||b(ae)},Q={};e.role==="option"&&(Q["aria-selected"]=V);var te=i.createElement(GF,ye({ref:B,elementRef:D,role:d===null?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":j&&S?null:S},wn(C,["extra"]),q,Q,{component:"li","aria-disabled":l,style:se(se({},G),n),className:ue(P,ee(ee(ee({},"".concat(P,"-active"),W),"".concat(P,"-selected"),V),"".concat(P,"-disabled"),k),r),onClick:K,onKeyDown:U,onFocus:Z}),u,i.createElement(Ij,{props:se(se({},e),{},{isSelected:V}),icon:_}));return N&&(te=N(te,e,{selected:V})),te});function YF(e,t){var n=e.eventKey,r=Ng(),a=Zc(n);return i.useEffect(function(){if(r)return r.registerPath(n,a),function(){r.unregisterPath(n,a)}},[a]),r?null:i.createElement(XF,ye({},e,{ref:t}))}const df=i.forwardRef(YF);var QF=["className","children"],ZF=function(t,n){var r=t.className,a=t.children,l=Lt(t,QF),c=i.useContext(No),u=c.prefixCls,d=c.mode,f=c.rtl;return i.createElement("ul",ye({className:ue(u,f&&"".concat(u,"-rtl"),"".concat(u,"-sub"),"".concat(u,"-").concat(d==="inline"?"inline":"vertical"),r),role:"menu"},l,{"data-menu-list":!0,ref:n}),a)},W1=i.forwardRef(ZF);W1.displayName="SubMenuList";function K1(e,t){return Xr(e).map(function(n,r){if(i.isValidElement(n)){var a,l,c=n.key,u=(a=(l=n.props)===null||l===void 0?void 0:l.eventKey)!==null&&a!==void 0?a:c,d=u==null;d&&(u="tmp_key-".concat([].concat(Ne(t),[r]).join("-")));var f={key:u,eventKey:u};return i.cloneElement(n,f)}return n})}var ha={adjustX:1,adjustY:1},JF={topLeft:{points:["bl","tl"],overflow:ha},topRight:{points:["br","tr"],overflow:ha},bottomLeft:{points:["tl","bl"],overflow:ha},bottomRight:{points:["tr","br"],overflow:ha},leftTop:{points:["tr","tl"],overflow:ha},leftBottom:{points:["br","bl"],overflow:ha},rightTop:{points:["tl","tr"],overflow:ha},rightBottom:{points:["bl","br"],overflow:ha}},eV={topLeft:{points:["bl","tl"],overflow:ha},topRight:{points:["br","tr"],overflow:ha},bottomLeft:{points:["tl","bl"],overflow:ha},bottomRight:{points:["tr","br"],overflow:ha},rightTop:{points:["tr","tl"],overflow:ha},rightBottom:{points:["br","bl"],overflow:ha},leftTop:{points:["tl","tr"],overflow:ha},leftBottom:{points:["bl","br"],overflow:ha}};function Nj(e,t,n){if(t)return t;if(n)return n[e]||n.other}var tV={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function nV(e){var t=e.prefixCls,n=e.visible,r=e.children,a=e.popup,l=e.popupStyle,c=e.popupClassName,u=e.popupOffset,d=e.disabled,f=e.mode,v=e.onVisibleChange,g=i.useContext(No),p=g.getPopupContainer,b=g.rtl,C=g.subMenuOpenDelay,S=g.subMenuCloseDelay,h=g.builtinPlacements,x=g.triggerSubMenuAction,w=g.forceSubMenuRender,E=g.rootClassName,j=g.motion,R=g.defaultMotions,I=i.useState(!1),O=fe(I,2),M=O[0],N=O[1],P=se(b?se({},eV):se({},JF),h),B=tV[f],L=Nj(f,j,R),k=i.useRef(L);f!=="inline"&&(k.current=L);var D=se(se({},k.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),H=i.useRef();return i.useEffect(function(){return H.current=Yt(function(){N(n)}),function(){Yt.cancel(H.current)}},[n]),i.createElement(cf,{prefixCls:t,popupClassName:ue("".concat(t,"-popup"),ee({},"".concat(t,"-rtl"),b),c,E),stretch:f==="horizontal"?"minWidth":null,getPopupContainer:p,builtinPlacements:P,popupPlacement:B,popupVisible:M,popup:a,popupStyle:l,popupAlign:u&&{offset:u},action:d?[]:[x],mouseEnterDelay:C,mouseLeaveDelay:S,onPopupVisibleChange:v,forceRender:w,popupMotion:D,fresh:!0},r)}function rV(e){var t=e.id,n=e.open,r=e.keyPath,a=e.children,l="inline",c=i.useContext(No),u=c.prefixCls,d=c.forceSubMenuRender,f=c.motion,v=c.defaultMotions,g=c.mode,p=i.useRef(!1);p.current=g===l;var b=i.useState(!p.current),C=fe(b,2),S=C[0],h=C[1],x=p.current?n:!1;i.useEffect(function(){p.current&&h(!1)},[g]);var w=se({},Nj(l,f,v));r.length>1&&(w.motionAppear=!1);var E=w.onVisibleChanged;return w.onVisibleChanged=function(j){return!p.current&&!j&&h(!0),E==null?void 0:E(j)},S?null:i.createElement(Hd,{mode:l,locked:!p.current},i.createElement(Qr,ye({visible:x},w,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(j){var R=j.className,I=j.style;return i.createElement(W1,{id:t,className:R,style:I},a)}))}var aV=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],oV=["active"],iV=i.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.title,l=e.eventKey;e.warnKey;var c=e.disabled,u=e.internalPopupClose,d=e.children,f=e.itemIcon,v=e.expandIcon,g=e.popupClassName,p=e.popupOffset,b=e.popupStyle,C=e.onClick,S=e.onMouseEnter,h=e.onMouseLeave,x=e.onTitleClick,w=e.onTitleMouseEnter,E=e.onTitleMouseLeave,j=Lt(e,aV),R=xj(l),I=i.useContext(No),O=I.prefixCls,M=I.mode,N=I.openKeys,P=I.disabled,B=I.overflowDisabled,L=I.activeKey,k=I.selectedKeys,D=I.itemIcon,H=I.expandIcon,z=I.onItemClick,_=I.onOpenChange,F=I.onActive,W=i.useContext(H1),q=W._internalRenderSubMenuItem,V=i.useContext(Ej),G=V.isSubPathKey,K=Zc(),U="".concat(O,"-submenu"),Z=P||c,Q=i.useRef(),te=i.useRef(),X=f??D,ae=v??H,re=N.includes(l),ne=!B&&re,Y=G(k,l),ie=Rj(l,Z,w,E),le=ie.active,de=Lt(ie,oV),ce=i.useState(!1),ge=fe(ce,2),he=ge[0],Oe=ge[1],je=function(be){Z||Oe(be)},pe=function(be){je(!0),S==null||S({key:l,domEvent:be})},we=function(be){je(!1),h==null||h({key:l,domEvent:be})},Se=i.useMemo(function(){return le||(M!=="inline"?he||G([L],l):!1)},[M,le,L,he,l,G]),Ce=jj(K.length),De=function(be){Z||(x==null||x({key:l,domEvent:be}),M==="inline"&&_(l,!re))},Ae=dd(function(Pe){C==null||C(Dv(Pe)),z(Pe)}),Ye=function(be){M!=="inline"&&_(l,be)},Ke=function(){F(l)},Fe=R&&"".concat(R,"-popup"),Ge=i.useMemo(function(){return i.createElement(Ij,{icon:M!=="horizontal"?ae:void 0,props:se(se({},e),{},{isOpen:ne,isSubMenu:!0})},i.createElement("i",{className:"".concat(U,"-arrow")}))},[M,ae,e,ne,U]),Te=i.createElement("div",ye({role:"menuitem",style:Ce,className:"".concat(U,"-title"),tabIndex:Z?null:-1,ref:Q,title:typeof a=="string"?a:null,"data-menu-id":B&&R?null:R,"aria-expanded":ne,"aria-haspopup":!0,"aria-controls":Fe,"aria-disabled":Z,onClick:De,onFocus:Ke},de),a,Ge),Ee=i.useRef(M);if(M!=="inline"&&K.length>1?Ee.current="vertical":Ee.current=M,!B){var _e=Ee.current;Te=i.createElement(nV,{mode:_e,prefixCls:U,visible:!u&&ne&&M!=="inline",popupClassName:g,popupOffset:p,popupStyle:b,popup:i.createElement(Hd,{mode:_e==="horizontal"?"vertical":_e},i.createElement(W1,{id:Fe,ref:te},d)),disabled:Z,onVisibleChange:Ye},Te)}var Re=i.createElement(wo.Item,ye({ref:t,role:"none"},j,{component:"li",style:n,className:ue(U,"".concat(U,"-").concat(M),r,ee(ee(ee(ee({},"".concat(U,"-open"),ne),"".concat(U,"-active"),Se),"".concat(U,"-selected"),Y),"".concat(U,"-disabled"),Z)),onMouseEnter:pe,onMouseLeave:we}),Te,!B&&i.createElement(rV,{id:Fe,open:ne,keyPath:K},d));return q&&(Re=q(Re,e,{selected:Y,active:Se,open:ne,disabled:Z})),i.createElement(Hd,{onItemClick:Ae,mode:M==="horizontal"?"vertical":M,itemIcon:X,expandIcon:ae},Re)}),Mg=i.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Zc(n),l=K1(r,a),c=Ng();i.useEffect(function(){if(c)return c.registerPath(n,a),function(){c.unregisterPath(n,a)}},[a]);var u;return c?u=l:u=i.createElement(iV,ye({ref:t},e),l),i.createElement(wj.Provider,{value:a},u)});function U1(e){var t=e.className,n=e.style,r=i.useContext(No),a=r.prefixCls,l=Ng();return l?null:i.createElement("li",{role:"separator",className:ue("".concat(a,"-item-divider"),t),style:n})}var lV=["className","title","eventKey","children"],sV=i.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,l=Lt(e,lV),c=i.useContext(No),u=c.prefixCls,d="".concat(u,"-item-group");return i.createElement("li",ye({ref:t,role:"presentation"},l,{onClick:function(v){return v.stopPropagation()},className:ue(d,n)}),i.createElement("div",{role:"presentation",className:"".concat(d,"-title"),title:typeof r=="string"?r:void 0},r),i.createElement("ul",{role:"group",className:"".concat(d,"-list")},a))}),q1=i.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Zc(n),l=K1(r,a),c=Ng();return c?l:i.createElement(sV,ye({ref:t},wn(e,["warnKey"])),l)}),cV=["label","children","key","type","extra"];function My(e,t,n){var r=t.item,a=t.group,l=t.submenu,c=t.divider;return(e||[]).map(function(u,d){if(u&&$t(u)==="object"){var f=u,v=f.label,g=f.children,p=f.key,b=f.type,C=f.extra,S=Lt(f,cV),h=p??"tmp-".concat(d);return g||b==="group"?b==="group"?i.createElement(a,ye({key:h},S,{title:v}),My(g,t,n)):i.createElement(l,ye({key:h},S,{title:v}),My(g,t,n)):b==="divider"?i.createElement(c,ye({key:h},S)):i.createElement(r,ye({key:h},S,{extra:C}),v,(!!C||C===0)&&i.createElement("span",{className:"".concat(n,"-item-extra")},C))}return null}).filter(function(u){return u})}function _E(e,t,n,r,a){var l=e,c=se({divider:U1,item:df,group:q1,submenu:Mg},r);return t&&(l=My(t,c,a)),K1(l,n)}var uV=["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"],Ll=[],dV=i.forwardRef(function(e,t){var n,r=e,a=r.prefixCls,l=a===void 0?"rc-menu":a,c=r.rootClassName,u=r.style,d=r.className,f=r.tabIndex,v=f===void 0?0:f,g=r.items,p=r.children,b=r.direction,C=r.id,S=r.mode,h=S===void 0?"vertical":S,x=r.inlineCollapsed,w=r.disabled,E=r.disabledOverflow,j=r.subMenuOpenDelay,R=j===void 0?.1:j,I=r.subMenuCloseDelay,O=I===void 0?.1:I,M=r.forceSubMenuRender,N=r.defaultOpenKeys,P=r.openKeys,B=r.activeKey,L=r.defaultActiveFirst,k=r.selectable,D=k===void 0?!0:k,H=r.multiple,z=H===void 0?!1:H,_=r.defaultSelectedKeys,F=r.selectedKeys,W=r.onSelect,q=r.onDeselect,V=r.inlineIndent,G=V===void 0?24:V,K=r.motion,U=r.defaultMotions,Z=r.triggerSubMenuAction,Q=Z===void 0?"hover":Z,te=r.builtinPlacements,X=r.itemIcon,ae=r.expandIcon,re=r.overflowedIndicator,ne=re===void 0?"...":re,Y=r.overflowedIndicatorPopupClassName,ie=r.getPopupContainer,le=r.onClick,de=r.onOpenChange,ce=r.onKeyDown;r.openAnimation,r.openTransitionName;var ge=r._internalRenderMenuItem,he=r._internalRenderSubMenuItem,Oe=r._internalComponents,je=Lt(r,uV),pe=i.useMemo(function(){return[_E(p,g,Ll,Oe,l),_E(p,g,Ll,{},l)]},[p,g,Oe]),we=fe(pe,2),Se=we[0],Ce=we[1],De=i.useState(!1),Ae=fe(De,2),Ye=Ae[0],Ke=Ae[1],Fe=i.useRef(),Ge=VF(C),Te=b==="rtl",Ee=bn(N,{value:P,postState:function(Bt){return Bt||Ll}}),_e=fe(Ee,2),Re=_e[0],Pe=_e[1],be=function(Bt){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function an(){Pe(Bt),de==null||de(Bt)}kt?fo.flushSync(an):an()},$e=i.useState(Re),Me=fe($e,2),Le=Me[0],et=Me[1],bt=i.useRef(!1),We=i.useMemo(function(){return(h==="inline"||h==="vertical")&&x?["vertical",x]:[h,!1]},[h,x]),tt=fe(We,2),dt=tt[0],at=tt[1],pt=dt==="inline",Pt=i.useState(dt),Et=fe(Pt,2),ct=Et[0],St=Et[1],yt=i.useState(at),Je=fe(yt,2),Ve=Je[0],Ue=Je[1];i.useEffect(function(){St(dt),Ue(at),bt.current&&(pt?Pe(Le):be(Ll))},[dt,at]);var mt=i.useState(0),Mt=fe(mt,2),It=Mt[0],Vt=Mt[1],ft=It>=Se.length-1||ct!=="horizontal"||E;i.useEffect(function(){pt&&et(Re)},[Re]),i.useEffect(function(){return bt.current=!0,function(){bt.current=!1}},[]);var lt=HF(),At=lt.registerPath,Ut=lt.unregisterPath,rn=lt.refreshOverflowKeys,Qt=lt.isSubPathKey,vn=lt.getKeyPath,qt=lt.getKeys,un=lt.getSubPathKeys,st=i.useMemo(function(){return{registerPath:At,unregisterPath:Ut}},[At,Ut]),Ct=i.useMemo(function(){return{isSubPathKey:Qt}},[Qt]);i.useEffect(function(){rn(ft?Ll:Se.slice(It+1).map(function(Cn){return Cn.key}))},[It,ft]);var ht=bn(B||L&&((n=Se[0])===null||n===void 0?void 0:n.key),{value:B}),Xe=fe(ht,2),Qe=Xe[0],ut=Xe[1],zt=dd(function(Cn){ut(Cn)}),Kt=dd(function(){ut(void 0)});i.useImperativeHandle(t,function(){return{list:Fe.current,focus:function(Bt){var kt,an=qt(),Tt=Iy(an,Ge),Dt=Tt.elements,mn=Tt.key2element,jn=Tt.element2key,Yn=F1(Fe.current,Dt),Sr=Qe??(Yn[0]?jn.get(Yn[0]):(kt=Se.find(function(cn){return!cn.props.disabled}))===null||kt===void 0?void 0:kt.key),Qn=mn.get(Sr);if(Sr&&Qn){var wr;Qn==null||(wr=Qn.focus)===null||wr===void 0||wr.call(Qn,Bt)}}}});var vt=bn(_||[],{value:F,postState:function(Bt){return Array.isArray(Bt)?Bt:Bt==null?Ll:[Bt]}}),Nt=fe(vt,2),Ft=Nt[0],xn=Nt[1],_n=function(Bt){if(D){var kt=Bt.key,an=Ft.includes(kt),Tt;z?an?Tt=Ft.filter(function(mn){return mn!==kt}):Tt=[].concat(Ne(Ft),[kt]):Tt=[kt],xn(Tt);var Dt=se(se({},Bt),{},{selectedKeys:Tt});an?q==null||q(Dt):W==null||W(Dt)}!z&&Re.length&&ct!=="inline"&&be(Ll)},Pn=dd(function(Cn){le==null||le(Dv(Cn)),_n(Cn)}),Wn=dd(function(Cn,Bt){var kt=Re.filter(function(Tt){return Tt!==Cn});if(Bt)kt.push(Cn);else if(ct!=="inline"){var an=un(Cn);kt=kt.filter(function(Tt){return!an.has(Tt)})}Ro(Re,kt,!0)||be(kt,!0)}),Rn=function(Bt,kt){var an=kt??!Re.includes(Bt);Wn(Bt,an)},An=BF(ct,Qe,Te,Ge,Fe,qt,vn,ut,Rn,ce);i.useEffect(function(){Ke(!0)},[]);var Cr=i.useMemo(function(){return{_internalRenderMenuItem:ge,_internalRenderSubMenuItem:he}},[ge,he]),Mr=ct!=="horizontal"||E?Se:Se.map(function(Cn,Bt){return i.createElement(Hd,{key:Cn.key,overflowDisabled:Bt>It},Cn)}),pr=i.createElement(wo,ye({id:C,ref:Fe,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:df,className:ue(l,"".concat(l,"-root"),"".concat(l,"-").concat(ct),d,ee(ee({},"".concat(l,"-inline-collapsed"),Ve),"".concat(l,"-rtl"),Te),c),dir:b,style:u,role:"menu",tabIndex:v,data:Mr,renderRawItem:function(Bt){return Bt},renderRawRest:function(Bt){var kt=Bt.length,an=kt?Se.slice(-kt):null;return i.createElement(Mg,{eventKey:Ny,title:ne,disabled:ft,internalPopupClose:kt===0,popupClassName:Y},an)},maxCount:ct!=="horizontal"||E?wo.INVALIDATE:wo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Bt){Vt(Bt)},onKeyDown:An},je));return i.createElement(H1.Provider,{value:Cr},i.createElement(Cj.Provider,{value:Ge},i.createElement(Hd,{prefixCls:l,rootClassName:c,mode:ct,openKeys:Re,rtl:Te,disabled:w,motion:Ye?K:null,defaultMotions:Ye?U:null,activeKey:Qe,onActive:zt,onInactive:Kt,selectedKeys:Ft,inlineIndent:G,subMenuOpenDelay:R,subMenuCloseDelay:O,forceSubMenuRender:M,builtinPlacements:te,triggerSubMenuAction:Q,getPopupContainer:ie,itemIcon:X,expandIcon:ae,onItemClick:Pn,onOpenChange:Wn},i.createElement(Ej.Provider,{value:Ct},pr),i.createElement("div",{style:{display:"none"},"aria-hidden":!0},i.createElement($j.Provider,{value:st},Ce)))))}),Jc=dV;Jc.Item=df;Jc.SubMenu=Mg;Jc.ItemGroup=q1;Jc.Divider=U1;var fV={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"},mV=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:fV}))},vV=i.forwardRef(mV);const Mj=i.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),gV=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:a,headerHeight:l,headerPadding:c,headerColor:u,footerPadding:d,fontSize:f,bodyBg:v,headerBg:g}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:v,"&, *":{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:l,padding:c,color:u,lineHeight:oe(l),background:g,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:f,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Tj=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:l,marginXXS:c,colorTextLightSolid:u,colorBgContainer:d}=e,f=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${f}px`,headerColor:a,footerPadding:`${l}px ${f}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+c*2,triggerBg:"#002140",triggerColor:u,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:d,lightTriggerBg:d,lightTriggerColor:a}},Pj=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],zj=sn("Layout",gV,Tj,{deprecatedTokens:Pj}),pV=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:a,antCls:l,triggerHeight:c,triggerColor:u,triggerBg:d,headerHeight:f,zeroTriggerWidth:v,zeroTriggerHeight:g,borderRadiusLG:p,lightSiderBg:b,lightTriggerColor:C,lightTriggerBg:S,bodyBg:h}=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,[`${l}-menu${l}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:c,color:u,lineHeight:oe(c),textAlign:"center",background:d,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:f,insetInlineEnd:e.calc(v).mul(-1).equal(),zIndex:1,width:v,height:g,color:u,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${oe(p)} ${oe(p)} 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(v).mul(-1).equal(),borderRadius:`${oe(p)} 0 0 ${oe(p)}`}},"&-light":{background:b,[`${t}-trigger`]:{color:C,background:S},[`${t}-zero-width-trigger`]:{color:C,background:S,border:`1px solid ${h}`,borderInlineStart:0}}}}},hV=sn(["Layout","Sider"],pV,Tj,{deprecatedTokens:Pj});var bV=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 AE={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},yV=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Tg=i.createContext({}),CV=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),Dj=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:l,defaultCollapsed:c=!1,theme:u="dark",style:d={},collapsible:f=!1,reverseArrow:v=!1,width:g=200,collapsedWidth:p=80,zeroWidthTriggerStyle:b,breakpoint:C,onCollapse:S,onBreakpoint:h}=e,x=bV(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=i.useContext(Mj),[E,j]=i.useState("collapsed"in e?e.collapsed:c),[R,I]=i.useState(!1);i.useEffect(()=>{"collapsed"in e&&j(e.collapsed)},[e.collapsed]);const O=(X,ae)=>{"collapsed"in e||j(X),S==null||S(X,ae)},{getPrefixCls:M,direction:N}=i.useContext(Rt),P=M("layout-sider",n),[B,L,k]=hV(P),D=i.useRef(null);D.current=X=>{I(X.matches),h==null||h(X.matches),E!==X.matches&&O(X.matches,"responsive")},i.useEffect(()=>{function X(re){var ne;return(ne=D.current)===null||ne===void 0?void 0:ne.call(D,re)}let ae;return typeof(window==null?void 0:window.matchMedia)<"u"&&C&&C in AE&&(ae=window.matchMedia(`screen and (max-width: ${AE[C]})`),lj(ae,X),X(ae)),()=>{sj(ae,X)}},[C]),i.useEffect(()=>{const X=CV("ant-sider-");return w.addSider(X),()=>w.removeSider(X)},[]);const H=()=>{O(!E,"clickTrigger")},z=wn(x,["collapsed"]),_=E?p:g,F=yV(_)?`${_}px`:String(_),W=Number.parseFloat(String(p||0))===0?i.createElement("span",{onClick:H,className:ue(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${v?"right":"left"}`),style:b},a||i.createElement(vV,null)):null,q=N==="rtl"==!v,K={expanded:q?i.createElement(dl,null):i.createElement(Ac,null),collapsed:q?i.createElement(Ac,null):i.createElement(dl,null)}[E?"collapsed":"expanded"],U=a!==null?W||i.createElement("div",{className:`${P}-trigger`,onClick:H,style:{width:F}},a||K):null,Z=Object.assign(Object.assign({},d),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),Q=ue(P,`${P}-${u}`,{[`${P}-collapsed`]:!!E,[`${P}-has-trigger`]:f&&a!==null&&!W,[`${P}-below`]:!!R,[`${P}-zero-width`]:Number.parseFloat(F)===0},r,L,k),te=i.useMemo(()=>({siderCollapsed:E}),[E]);return B(i.createElement(Tg.Provider,{value:te},i.createElement("aside",Object.assign({className:Q},z,{style:Z,ref:t}),i.createElement("div",{className:`${P}-children`},l),f||R&&W?U:null)))});var SV={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"},xV=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:SV}))},G1=i.forwardRef(xV);const _v=i.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var $V=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 _j=e=>{const{prefixCls:t,className:n,dashed:r}=e,a=$V(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=i.useContext(Rt),c=l("menu",t),u=ue({[`${c}-item-divider-dashed`]:!!r},n);return i.createElement(U1,Object.assign({className:u},a))},Aj=e=>{var t;const{className:n,children:r,icon:a,title:l,danger:c,extra:u}=e,{prefixCls:d,firstLevel:f,direction:v,disableMenuItemTitleTooltip:g,inlineCollapsed:p}=i.useContext(_v),b=E=>{const j=r==null?void 0:r[0],R=i.createElement("span",{className:ue(`${d}-title-content`,{[`${d}-title-content-with-extra`]:!!u||u===0})},r);return(!a||i.isValidElement(r)&&r.type==="span")&&r&&E&&f&&typeof j=="string"?i.createElement("div",{className:`${d}-inline-collapsed-noicon`},j.charAt(0)):R},{siderCollapsed:C}=i.useContext(Tg);let S=l;typeof l>"u"?S=f?r:"":l===!1&&(S="");const h={title:S};!C&&!p&&(h.title=null,h.open=!1);const x=Xr(r).length;let w=i.createElement(df,Object.assign({},wn(e,["title","icon","danger"]),{className:ue({[`${d}-item-danger`]:c,[`${d}-item-only-child`]:(a?x+1:x)===1},n),title:typeof l=="string"?l:void 0}),$r(a,{className:ue(i.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:void 0,`${d}-item-icon`)}),b(p));return g||(w=i.createElement(Vn,Object.assign({},h,{placement:v==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}}),w)),w};var wV=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 Av=i.createContext(null),Bj=i.forwardRef((e,t)=>{const{children:n}=e,r=wV(e,["children"]),a=i.useContext(Av),l=i.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),c=hP(n),u=Si(t,c?pl(n):null);return i.createElement(Av.Provider,{value:l},i.createElement(Xo,{space:!0},c?i.cloneElement(n,{ref:u}):n))}),EV=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:l,lineType:c,itemPaddingInline:u}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${oe(l)} ${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,
|
|
261
|
+
> ${t}-item-active,
|
|
262
|
+
> ${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"}}}},OV=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
263
|
+
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${oe(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${oe(t)})`}}}}),BE=e=>jo(e),kE=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,subMenuItemSelectedColor:l,groupTitleColor:c,itemBg:u,subMenuItemBg:d,itemSelectedBg:f,activeBarHeight:v,activeBarWidth:g,activeBarBorderWidth:p,motionDurationSlow:b,motionEaseInOut:C,motionEaseOut:S,itemPaddingInline:h,motionDurationMid:x,itemHoverColor:w,lineType:E,colorSplit:j,itemDisabledColor:R,dangerItemColor:I,dangerItemHoverColor:O,dangerItemSelectedColor:M,dangerItemActiveBg:N,dangerItemSelectedBg:P,popupBg:B,itemHoverBg:L,itemActiveBg:k,menuSubMenuBg:D,horizontalItemSelectedColor:H,horizontalItemSelectedBg:z,horizontalItemBorderRadius:_,horizontalItemHoverBg:F}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:u,[`&${n}-root:focus-visible`]:Object.assign({},BE(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:c}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:l},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},BE(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${R} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:w}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:L},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:L},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:I,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:N}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:M},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:f,[`&${n}-item-danger`]:{backgroundColor:P}},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:B},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:B},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:_,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${oe(v)} solid transparent`,transition:`border-color ${b} ${C}`,content:'""'},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:v,borderBottomColor:H}},"&-selected":{color:H,backgroundColor:z,"&:hover":{backgroundColor:z},"&::after":{borderBottomWidth:v,borderBottomColor:H}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${oe(p)} ${E} ${j}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:d},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${oe(g)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${x} ${S}`,`opacity ${x} ${S}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:M}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${x} ${C}`,`opacity ${x} ${C}`].join(",")}}}}}},LE=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:l,marginXS:c,itemMarginBlock:u,itemWidth:d,itemPaddingInline:f}=e,v=e.calc(l).add(a).add(c).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:oe(n),paddingInline:f,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:u,width:d},[`> ${t}-item,
|
|
264
|
+
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:oe(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
265
|
+
${t}-submenu-title`]:{paddingInlineEnd:v}}},RV=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:l,controlHeightLG:c,motionEaseOut:u,paddingXL:d,itemMarginInline:f,fontSizeLG:v,motionDurationFast:g,motionDurationSlow:p,paddingXS:b,boxShadowSecondary:C,collapsedWidth:S,collapsedIconSize:h}=e,x={height:r,lineHeight:oe(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},LE(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},LE(e)),{boxShadow:C})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${oe(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 ${p}`,`background ${p}`,`padding ${g} ${u}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:x,[`& ${t}-item-group-title`]:{paddingInlineStart:d}},[`${t}-item`]:x}},{[`${t}-inline-collapsed`]:{width:S,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:v,textAlign:"center"}}},[`> ${t}-item,
|
|
266
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
267
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
268
|
+
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${oe(e.calc(h).div(2).equal())} - ${oe(f)})`,textOverflow:"clip",[`
|
|
269
|
+
${t}-submenu-arrow,
|
|
270
|
+
${t}-submenu-expand-icon
|
|
271
|
+
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:oe(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({},Ua),{paddingInline:b})}}]},HE=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:l,iconCls:c,iconSize:u,iconMarginInlineEnd:d}=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} ${l}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:d,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},hs()),[`&${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"}}}},FE=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:l,menuArrowOffset:c}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).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(${oe(e.calc(c).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${oe(c)})`}}}}},jV=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:l,motionEaseInOut:c,paddingXS:u,padding:d,colorSplit:f,lineWidth:v,zIndexPopup:g,borderRadiusLG:p,subMenuItemBorderRadius:b,menuArrowSize:C,menuArrowOffset:S,lineType:h,groupTitleLineHeight:x,groupTitleFontSize:w}=e;return[{"":{[n]:Object.assign(Object.assign({},Ko()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dn(e)),Ko()),{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:`${oe(u)} ${oe(d)}`,fontSize:w,lineHeight:x,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 ${l} ${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:f,borderStyle:h,borderWidth:0,borderTopWidth:v,marginBlock:v,padding:0,"&-dashed":{borderStyle:"dashed"}}}),HE(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${oe(e.calc(r).mul(2).equal())} ${oe(d)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:g,borderRadius:p,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:p},HE(e)),FE(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}}}),FE(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
272
|
+
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${oe(S)})`},"&::after":{transform:`rotate(45deg) translateX(${oe(e.calc(S).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${oe(e.calc(C).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${oe(e.calc(S).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${oe(S)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},IV=e=>{var t,n,r;const{colorPrimary:a,colorError:l,colorTextDisabled:c,colorErrorBg:u,colorText:d,colorTextDescription:f,colorBgContainer:v,colorFillAlter:g,colorFillContent:p,lineWidth:b,lineWidthBold:C,controlItemBgActive:S,colorBgTextHover:h,controlHeightLG:x,lineHeight:w,colorBgElevated:E,marginXXS:j,padding:R,fontSize:I,controlHeightSM:O,fontSizeLG:M,colorTextLightSolid:N,colorErrorHover:P}=e,B=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,L=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:b,k=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,D=new pn(N).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:d,itemColor:d,colorItemTextHover:d,itemHoverColor:d,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:f,groupTitleColor:f,colorItemTextSelected:a,itemSelectedColor:a,subMenuItemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:v,itemBg:v,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:p,itemActiveBg:S,colorSubItemBg:g,subMenuItemBg:g,colorItemBgSelected:S,itemSelectedBg:S,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:B,colorActiveBarHeight:C,activeBarHeight:C,colorActiveBarBorderSize:b,activeBarBorderWidth:L,colorItemTextDisabled:c,itemDisabledColor:c,colorDangerItemText:l,dangerItemColor:l,colorDangerItemTextHover:l,dangerItemHoverColor:l,colorDangerItemTextSelected:l,dangerItemSelectedColor:l,colorDangerItemBgActive:u,dangerItemActiveBg:u,colorDangerItemBgSelected:u,dangerItemSelectedBg:u,itemMarginInline:k,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:x,groupTitleLineHeight:w,collapsedWidth:x*2,popupBg:E,itemMarginBlock:j,itemPaddingInline:R,horizontalLineHeight:`${x*1.15}px`,iconSize:I,iconMarginInlineEnd:O-I,collapsedIconSize:M,groupTitleFontSize:I,darkItemDisabledColor:new pn(N).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:N,darkItemSelectedBg:a,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:D,darkItemHoverColor:N,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:l,itemWidth:B?`calc(100% + ${L}px)`:`calc(100% - ${k*2}px)`}},NV=(e,t=e,n=!0)=>sn("Menu",a=>{const{colorBgElevated:l,controlHeightLG:c,fontSize:u,darkItemColor:d,darkDangerItemColor:f,darkItemBg:v,darkSubMenuItemBg:g,darkItemSelectedColor:p,darkItemSelectedBg:b,darkDangerItemSelectedBg:C,darkItemHoverBg:S,darkGroupTitleColor:h,darkItemHoverColor:x,darkItemDisabledColor:w,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:j,darkDangerItemActiveBg:R,popupBg:I,darkPopupBg:O}=a,M=a.calc(u).div(7).mul(5).equal(),N=tn(a,{menuArrowSize:M,menuHorizontalHeight:a.calc(c).mul(1.15).equal(),menuArrowOffset:a.calc(M).mul(.25).equal(),menuSubMenuBg:l,calc:a.calc,popupBg:I}),P=tn(N,{itemColor:d,itemHoverColor:x,groupTitleColor:h,itemSelectedColor:p,subMenuItemSelectedColor:p,itemBg:v,popupBg:O,subMenuItemBg:g,itemActiveBg:"transparent",itemSelectedBg:b,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:S,itemDisabledColor:w,dangerItemColor:f,dangerItemHoverColor:E,dangerItemSelectedColor:j,dangerItemActiveBg:R,dangerItemSelectedBg:C,menuSubMenuBg:g,horizontalItemSelectedColor:p,horizontalItemSelectedBg:b});return[jV(N),EV(N),RV(N),kE(N,"light"),kE(P,"dark"),OV(N),tf(N),qo(N,"slide-up"),qo(N,"slide-down"),nf(N,"zoom-big")]},IV,{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),kj=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:l}=e,c=i.useContext(_v),{prefixCls:u,inlineCollapsed:d,theme:f}=c,v=Zc();let g;if(!r)g=d&&!v.length&&a&&typeof a=="string"?i.createElement("div",{className:`${u}-inline-collapsed-noicon`},a.charAt(0)):i.createElement("span",{className:`${u}-title-content`},a);else{const C=i.isValidElement(a)&&a.type==="span";g=i.createElement(i.Fragment,null,$r(r,{className:ue(i.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${u}-item-icon`)}),C?a:i.createElement("span",{className:`${u}-title-content`},a))}const p=i.useMemo(()=>Object.assign(Object.assign({},c),{firstLevel:!1}),[c]),[b]=zo("Menu");return i.createElement(_v.Provider,{value:p},i.createElement(Mg,Object.assign({},wn(e,["icon"]),{title:g,popupClassName:ue(u,n,`${u}-${l||f}`),popupStyle:Object.assign({zIndex:b},e.popupStyle)})))};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};function _0(e){return e===null||e===!1}const TV={item:Aj,submenu:kj,divider:_j},PV=i.forwardRef((e,t)=>{var n;const r=i.useContext(Av),a=r||{},{getPrefixCls:l,getPopupContainer:c,direction:u,menu:d}=i.useContext(Rt),f=l(),{prefixCls:v,className:g,style:p,theme:b="light",expandIcon:C,_internalDisableMenuItemTitleTooltip:S,inlineCollapsed:h,siderCollapsed:x,rootClassName:w,mode:E,selectable:j,onClick:R,overflowedIndicatorPopupClassName:I}=e,O=MV(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),M=wn(O,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:E});const N=Xt((...G)=>{var K;R==null||R.apply(void 0,G),(K=a.onClick)===null||K===void 0||K.call(a)}),P=a.mode||E,B=j??a.selectable,L=h??x,k={horizontal:{motionName:`${f}-slide-up`},inline:zc(f),other:{motionName:`${f}-zoom-big`}},D=l("menu",v||a.prefixCls),H=cr(D),[z,_,F]=NV(D,H,!r),W=ue(`${D}-${b}`,d==null?void 0:d.className,g),q=i.useMemo(()=>{var G,K;if(typeof C=="function"||_0(C))return C||null;if(typeof a.expandIcon=="function"||_0(a.expandIcon))return a.expandIcon||null;if(typeof(d==null?void 0:d.expandIcon)=="function"||_0(d==null?void 0:d.expandIcon))return(d==null?void 0:d.expandIcon)||null;const U=(G=C??(a==null?void 0:a.expandIcon))!==null&&G!==void 0?G:d==null?void 0:d.expandIcon;return $r(U,{className:ue(`${D}-submenu-expand-icon`,i.isValidElement(U)?(K=U.props)===null||K===void 0?void 0:K.className:void 0)})},[C,a==null?void 0:a.expandIcon,d==null?void 0:d.expandIcon,D]),V=i.useMemo(()=>({prefixCls:D,inlineCollapsed:L||!1,direction:u,firstLevel:!0,theme:b,mode:P,disableMenuItemTitleTooltip:S}),[D,L,u,S,b]);return z(i.createElement(Av.Provider,{value:null},i.createElement(_v.Provider,{value:V},i.createElement(Jc,Object.assign({getPopupContainer:c,overflowedIndicator:i.createElement(G1,null),overflowedIndicatorPopupClassName:ue(D,`${D}-${b}`,I),mode:P,selectable:B,onClick:N},M,{inlineCollapsed:L,style:Object.assign(Object.assign({},d==null?void 0:d.style),p),className:W,prefixCls:D,direction:u,defaultMotions:k,expandIcon:q,ref:t,rootClassName:ue(w,_,a.rootClassName,F,H),_internalComponents:TV})))))}),fl=i.forwardRef((e,t)=>{const n=i.useRef(null),r=i.useContext(Tg);return i.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var l;(l=n.current)===null||l===void 0||l.focus(a)}})),i.createElement(PV,Object.assign({ref:n},e,r))});fl.Item=Aj;fl.SubMenu=kj;fl.Divider=_j;fl.ItemGroup=q1;const zV=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,l=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},DV=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:l,antCls:c,iconCls:u,motionDurationMid:d,paddingBlock:f,fontSize:v,dropdownEdgeChildPadding:g,colorTextDisabled:p,fontSizeIcon:b,controlPaddingHorizontal:C,colorBgElevated:S}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(l).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 ${d}`}},[`${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,
|
|
273
|
+
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
274
|
+
&${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottom,
|
|
275
|
+
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottom,
|
|
276
|
+
&${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottomRight,
|
|
277
|
+
&${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:ug},[`&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topLeft,
|
|
278
|
+
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topLeft,
|
|
279
|
+
&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-top,
|
|
280
|
+
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-top,
|
|
281
|
+
&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topRight,
|
|
282
|
+
&${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topRight`]:{animationName:fg},[`&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
283
|
+
&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottom,
|
|
284
|
+
&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:dg},[`&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topLeft,
|
|
285
|
+
&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-top,
|
|
286
|
+
&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topRight`]:{animationName:mg}}},k1(e,S,{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({},dn(e)),{[n]:Object.assign(Object.assign({padding:g,listStyleType:"none",backgroundColor:S,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},qa(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${oe(f)} ${oe(C)}`,color:e.colorTextDescription,transition:`all ${d}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:v,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 ${d}`,"&: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:`${oe(f)} ${oe(C)}`,color:e.colorText,fontWeight:"normal",fontSize:v,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${d}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},qa(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:S,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${oe(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 ${oe(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(C).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:S,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[qo(e,"slide-up"),qo(e,"slide-down"),Dc(e,"move-up"),Dc(e,"move-down"),nf(e,"zoom-big")]]},_V=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},jg({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Rg(e)),AV=sn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,l=tn(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[DV(l),zV(l)]},_V,{resetStyle:!1}),Pg=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:l,trigger:c,disabled:u,dropdownRender:d,popupRender:f,getPopupContainer:v,overlayClassName:g,rootClassName:p,overlayStyle:b,open:C,onOpenChange:S,visible:h,onVisibleChange:x,mouseEnterDelay:w=.15,mouseLeaveDelay:E=.1,autoAdjustOverflow:j=!0,placement:R="",overlay:I,transitionName:O,destroyOnHidden:M,destroyPopupOnHide:N}=e,{getPopupContainer:P,getPrefixCls:B,direction:L,dropdown:k}=i.useContext(Rt),D=f||d;Qo();const H=i.useMemo(()=>{const ge=B();return O!==void 0?O:R.includes("top")?`${ge}-slide-down`:`${ge}-slide-up`},[B,R,O]),z=i.useMemo(()=>R?R.includes("Center")?R.slice(0,R.indexOf("Center")):R:L==="rtl"?"bottomRight":"bottomLeft",[R,L]),_=B("dropdown",a),F=cr(_),[W,q,V]=AV(_,F),[,G]=ia(),K=i.Children.only(NF(l)?i.createElement("span",null,l):l),U=$r(K,{className:ue(`${_}-trigger`,{[`${_}-rtl`]:L==="rtl"},K.props.className),disabled:(t=K.props.disabled)!==null&&t!==void 0?t:u}),Z=u?[]:c,Q=!!(Z!=null&&Z.includes("contextMenu")),[te,X]=bn(!1,{value:C??h}),ae=Xt(ge=>{S==null||S(ge,{source:"trigger"}),x==null||x(ge),X(ge)}),re=ue(g,p,q,V,F,k==null?void 0:k.className,{[`${_}-rtl`]:L==="rtl"}),ne=dj({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:j,offset:G.marginXXS,arrowWidth:r?G.sizePopupArrow:0,borderRadius:G.borderRadius}),Y=Xt(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(S==null||S(!1,{source:"menu"}),X(!1))}),ie=()=>{let ge;return n!=null&&n.items?ge=i.createElement(fl,Object.assign({},n)):typeof I=="function"?ge=I():ge=I,D&&(ge=D(ge)),ge=i.Children.only(typeof ge=="string"?i.createElement("span",null,ge):ge),i.createElement(Bj,{prefixCls:`${_}-menu`,rootClassName:ue(V,F),expandIcon:i.createElement("span",{className:`${_}-menu-submenu-arrow`},L==="rtl"?i.createElement(Ac,{className:`${_}-menu-submenu-arrow-icon`}):i.createElement(dl,{className:`${_}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Y,validator:({mode:he})=>{}},ge)},[le,de]=zo("Dropdown",b==null?void 0:b.zIndex);let ce=i.createElement(yj,Object.assign({alignPoint:Q},wn(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:E,visible:te,builtinPlacements:ne,arrow:!!r,overlayClassName:re,prefixCls:_,getPopupContainer:v||P,transitionName:H,trigger:Z,overlay:ie,placement:z,onVisibleChange:ae,overlayStyle:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.style),b),{zIndex:le}),autoDestroy:M??N}),U);return le&&(ce=i.createElement(ig.Provider,{value:de},ce)),W(ce)},BV=Qc(Pg,"align",void 0,"dropdown",e=>e),kV=e=>i.createElement(BV,Object.assign({},e),i.createElement("span",null));Pg._InternalPanelDoNotUseOrYouWillBeFired=kV;var dv={exports:{}},LV=dv.exports,VE;function HV(){return VE||(VE=1,(function(e,t){(function(n,r){e.exports=r()})(LV,(function(){var n=1e3,r=6e4,a=36e5,l="millisecond",c="second",u="minute",d="hour",f="day",v="week",g="month",p="quarter",b="year",C="date",S="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|YYYY|YY|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,w={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(D){var H=["th","st","nd","rd"],z=D%100;return"["+D+(H[(z-20)%10]||H[z]||H[0])+"]"}},E=function(D,H,z){var _=String(D);return!_||_.length>=H?D:""+Array(H+1-_.length).join(z)+D},j={s:E,z:function(D){var H=-D.utcOffset(),z=Math.abs(H),_=Math.floor(z/60),F=z%60;return(H<=0?"+":"-")+E(_,2,"0")+":"+E(F,2,"0")},m:function D(H,z){if(H.date()<z.date())return-D(z,H);var _=12*(z.year()-H.year())+(z.month()-H.month()),F=H.clone().add(_,g),W=z-F<0,q=H.clone().add(_+(W?-1:1),g);return+(-(_+(z-F)/(W?F-q:q-F))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:g,y:b,w:v,d:f,D:C,h:d,m:u,s:c,ms:l,Q:p}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},R="en",I={};I[R]=w;var O="$isDayjsObject",M=function(D){return D instanceof L||!(!D||!D[O])},N=function D(H,z,_){var F;if(!H)return R;if(typeof H=="string"){var W=H.toLowerCase();I[W]&&(F=W),z&&(I[W]=z,F=W);var q=H.split("-");if(!F&&q.length>1)return D(q[0])}else{var V=H.name;I[V]=H,F=V}return!_&&F&&(R=F),F||!_&&R},P=function(D,H){if(M(D))return D.clone();var z=typeof H=="object"?H:{};return z.date=D,z.args=arguments,new L(z)},B=j;B.l=N,B.i=M,B.w=function(D,H){return P(D,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var L=(function(){function D(z){this.$L=N(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[O]=!0}var H=D.prototype;return H.parse=function(z){this.$d=(function(_){var F=_.date,W=_.utc;if(F===null)return new Date(NaN);if(B.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var q=F.match(h);if(q){var V=q[2]-1||0,G=(q[7]||"0").substring(0,3);return W?new Date(Date.UTC(q[1],V,q[3]||1,q[4]||0,q[5]||0,q[6]||0,G)):new Date(q[1],V,q[3]||1,q[4]||0,q[5]||0,q[6]||0,G)}}return new Date(F)})(z),this.init()},H.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},H.$utils=function(){return B},H.isValid=function(){return this.$d.toString()!==S},H.isSame=function(z,_){var F=P(z);return this.startOf(_)<=F&&F<=this.endOf(_)},H.isAfter=function(z,_){return P(z)<this.startOf(_)},H.isBefore=function(z,_){return this.endOf(_)<P(z)},H.$g=function(z,_,F){return B.u(z)?this[_]:this.set(F,z)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(z,_){var F=this,W=!!B.u(_)||_,q=B.p(z),V=function(ae,re){var ne=B.w(F.$u?Date.UTC(F.$y,re,ae):new Date(F.$y,re,ae),F);return W?ne:ne.endOf(f)},G=function(ae,re){return B.w(F.toDate()[ae].apply(F.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(re)),F)},K=this.$W,U=this.$M,Z=this.$D,Q="set"+(this.$u?"UTC":"");switch(q){case b:return W?V(1,0):V(31,11);case g:return W?V(1,U):V(0,U+1);case v:var te=this.$locale().weekStart||0,X=(K<te?K+7:K)-te;return V(W?Z-X:Z+(6-X),U);case f:case C:return G(Q+"Hours",0);case d:return G(Q+"Minutes",1);case u:return G(Q+"Seconds",2);case c:return G(Q+"Milliseconds",3);default:return this.clone()}},H.endOf=function(z){return this.startOf(z,!1)},H.$set=function(z,_){var F,W=B.p(z),q="set"+(this.$u?"UTC":""),V=(F={},F[f]=q+"Date",F[C]=q+"Date",F[g]=q+"Month",F[b]=q+"FullYear",F[d]=q+"Hours",F[u]=q+"Minutes",F[c]=q+"Seconds",F[l]=q+"Milliseconds",F)[W],G=W===f?this.$D+(_-this.$W):_;if(W===g||W===b){var K=this.clone().set(C,1);K.$d[V](G),K.init(),this.$d=K.set(C,Math.min(this.$D,K.daysInMonth())).$d}else V&&this.$d[V](G);return this.init(),this},H.set=function(z,_){return this.clone().$set(z,_)},H.get=function(z){return this[B.p(z)]()},H.add=function(z,_){var F,W=this;z=Number(z);var q=B.p(_),V=function(U){var Z=P(W);return B.w(Z.date(Z.date()+Math.round(U*z)),W)};if(q===g)return this.set(g,this.$M+z);if(q===b)return this.set(b,this.$y+z);if(q===f)return V(1);if(q===v)return V(7);var G=(F={},F[u]=r,F[d]=a,F[c]=n,F)[q]||1,K=this.$d.getTime()+z*G;return B.w(K,this)},H.subtract=function(z,_){return this.add(-1*z,_)},H.format=function(z){var _=this,F=this.$locale();if(!this.isValid())return F.invalidDate||S;var W=z||"YYYY-MM-DDTHH:mm:ssZ",q=B.z(this),V=this.$H,G=this.$m,K=this.$M,U=F.weekdays,Z=F.months,Q=F.meridiem,te=function(re,ne,Y,ie){return re&&(re[ne]||re(_,W))||Y[ne].slice(0,ie)},X=function(re){return B.s(V%12||12,re,"0")},ae=Q||function(re,ne,Y){var ie=re<12?"AM":"PM";return Y?ie.toLowerCase():ie};return W.replace(x,(function(re,ne){return ne||(function(Y){switch(Y){case"YY":return String(_.$y).slice(-2);case"YYYY":return B.s(_.$y,4,"0");case"M":return K+1;case"MM":return B.s(K+1,2,"0");case"MMM":return te(F.monthsShort,K,Z,3);case"MMMM":return te(Z,K);case"D":return _.$D;case"DD":return B.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return te(F.weekdaysMin,_.$W,U,2);case"ddd":return te(F.weekdaysShort,_.$W,U,3);case"dddd":return U[_.$W];case"H":return String(V);case"HH":return B.s(V,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return ae(V,G,!0);case"A":return ae(V,G,!1);case"m":return String(G);case"mm":return B.s(G,2,"0");case"s":return String(_.$s);case"ss":return B.s(_.$s,2,"0");case"SSS":return B.s(_.$ms,3,"0");case"Z":return q}return null})(re)||q.replace(":","")}))},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(z,_,F){var W,q=this,V=B.p(_),G=P(z),K=(G.utcOffset()-this.utcOffset())*r,U=this-G,Z=function(){return B.m(q,G)};switch(V){case b:W=Z()/12;break;case g:W=Z();break;case p:W=Z()/3;break;case v:W=(U-K)/6048e5;break;case f:W=(U-K)/864e5;break;case d:W=U/a;break;case u:W=U/r;break;case c:W=U/n;break;default:W=U}return F?W:B.a(W)},H.daysInMonth=function(){return this.endOf(g).$D},H.$locale=function(){return I[this.$L]},H.locale=function(z,_){if(!z)return this.$L;var F=this.clone(),W=N(z,_,!0);return W&&(F.$L=W),F},H.clone=function(){return B.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},D})(),k=L.prototype;return P.prototype=k,[["$ms",l],["$s",c],["$m",u],["$H",d],["$W",f],["$M",g],["$y",b],["$D",C]].forEach((function(D){k[D[1]]=function(H){return this.$g(H,D[0],D[1])}})),P.extend=function(D,H){return D.$i||(D(H,L,P),D.$i=!0),P},P.locale=N,P.isDayjs=M,P.unix=function(D){return P(1e3*D)},P.en=I[R],P.Ls=I,P.p={},P}))})(dv)),dv.exports}var FV=HV();const fa=Mo(FV);var fv={exports:{}},VV=fv.exports,WE;function WV(){return WE||(WE=1,(function(e,t){(function(n,r){e.exports=r()})(VV,(function(){return function(n,r){r.prototype.weekday=function(a){var l=this.$locale().weekStart||0,c=this.$W,u=(c<l?c+7:c)-l;return this.$utils().u(a)?u:this.subtract(u,"day").add(a,"day")}}}))})(fv)),fv.exports}var KV=WV();const UV=Mo(KV);var mv={exports:{}},qV=mv.exports,KE;function GV(){return KE||(KE=1,(function(e,t){(function(n,r){e.exports=r()})(qV,(function(){return function(n,r,a){var l=r.prototype,c=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,p,b,C,S){var h=g.name?g:g.$locale(),x=c(h[p]),w=c(h[b]),E=x||w.map((function(R){return R.slice(0,C)}));if(!S)return E;var j=h.weekStart;return E.map((function(R,I){return E[(I+(j||0))%7]}))},d=function(){return a.Ls[a.locale()]},f=function(g,p){return g.formats[p]||(function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,S,h){return S||h.slice(1)}))})(g.formats[p.toUpperCase()])},v=function(){var g=this;return{months:function(p){return p?p.format("MMMM"):u(g,"months")},monthsShort:function(p){return p?p.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(g,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return f(g.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return v.bind(this)()},a.localeData=function(){var g=d();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(p){return f(g,p)},meridiem:g.meridiem,ordinal:g.ordinal}},a.months=function(){return u(d(),"months")},a.monthsShort=function(){return u(d(),"monthsShort","months",3)},a.weekdays=function(g){return u(d(),"weekdays",null,null,g)},a.weekdaysShort=function(g){return u(d(),"weekdaysShort","weekdays",3,g)},a.weekdaysMin=function(g){return u(d(),"weekdaysMin","weekdays",2,g)}}}))})(mv)),mv.exports}var XV=GV();const YV=Mo(XV);var vv={exports:{}},QV=vv.exports,UE;function ZV(){return UE||(UE=1,(function(e,t){(function(n,r){e.exports=r()})(QV,(function(){var n="week",r="year";return function(a,l,c){var u=l.prototype;u.week=function(d){if(d===void 0&&(d=null),d!==null)return this.add(7*(d-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var v=c(this).startOf(r).add(1,r).date(f),g=c(this).endOf(n);if(v.isBefore(g))return 1}var p=c(this).startOf(r).date(f).startOf(n).subtract(1,"millisecond"),b=this.diff(p,n,!0);return b<0?c(this).startOf("week").week():Math.ceil(b)},u.weeks=function(d){return d===void 0&&(d=null),this.week(d)}}}))})(vv)),vv.exports}var JV=ZV();const eW=Mo(JV);var gv={exports:{}},tW=gv.exports,qE;function nW(){return qE||(qE=1,(function(e,t){(function(n,r){e.exports=r()})(tW,(function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),l=this.week(),c=this.year();return l===1&&a===11?c+1:a===0&&l>=52?c-1:c}}}))})(gv)),gv.exports}var rW=nW();const aW=Mo(rW);var pv={exports:{}},oW=pv.exports,GE;function iW(){return GE||(GE=1,(function(e,t){(function(n,r){e.exports=r()})(oW,(function(){return function(n,r){var a=r.prototype,l=a.format;a.format=function(c){var u=this,d=this.$locale();if(!this.isValid())return l.bind(this)(c);var f=this.$utils(),v=(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(g){switch(g){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),g==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),g==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return g}}));return l.bind(this)(v)}}}))})(pv)),pv.exports}var lW=iW();const sW=Mo(lW);var hv={exports:{}},cW=hv.exports,XE;function uW(){return XE||(XE=1,(function(e,t){(function(n,r){e.exports=r()})(cW,(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/,l=/\d\d/,c=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,d={},f=function(h){return(h=+h)+(h>68?1900:2e3)},v=function(h){return function(x){this[h]=+x}},g=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=(function(x){if(!x||x==="Z")return 0;var w=x.match(/([+-]|\d\d)/g),E=60*w[1]+(+w[2]||0);return E===0?0:w[0]==="+"?-E:E})(h)}],p=function(h){var x=d[h];return x&&(x.indexOf?x:x.s.concat(x.f))},b=function(h,x){var w,E=d.meridiem;if(E){for(var j=1;j<=24;j+=1)if(h.indexOf(E(j,0,x))>-1){w=j>12;break}}else w=h===(x?"pm":"PM");return w},C={A:[u,function(h){this.afternoon=b(h,!1)}],a:[u,function(h){this.afternoon=b(h,!0)}],Q:[a,function(h){this.month=3*(h-1)+1}],S:[a,function(h){this.milliseconds=100*+h}],SS:[l,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[c,v("seconds")],ss:[c,v("seconds")],m:[c,v("minutes")],mm:[c,v("minutes")],H:[c,v("hours")],h:[c,v("hours")],HH:[c,v("hours")],hh:[c,v("hours")],D:[c,v("day")],DD:[l,v("day")],Do:[u,function(h){var x=d.ordinal,w=h.match(/\d+/);if(this.day=w[0],x)for(var E=1;E<=31;E+=1)x(E).replace(/\[|\]/g,"")===h&&(this.day=E)}],w:[c,v("week")],ww:[l,v("week")],M:[c,v("month")],MM:[l,v("month")],MMM:[u,function(h){var x=p("months"),w=(p("monthsShort")||x.map((function(E){return E.slice(0,3)}))).indexOf(h)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[u,function(h){var x=p("months").indexOf(h)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,v("year")],YY:[l,function(h){this.year=f(h)}],YYYY:[/\d{4}/,v("year")],Z:g,ZZ:g};function S(h){var x,w;x=h,w=d&&d.formats;for(var E=(h=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(P,B,L){var k=L&&L.toUpperCase();return B||w[L]||n[L]||w[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,H,z){return H||z.slice(1)}))}))).match(r),j=E.length,R=0;R<j;R+=1){var I=E[R],O=C[I],M=O&&O[0],N=O&&O[1];E[R]=N?{regex:M,parser:N}:I.replace(/^\[|\]$/g,"")}return function(P){for(var B={},L=0,k=0;L<j;L+=1){var D=E[L];if(typeof D=="string")k+=D.length;else{var H=D.regex,z=D.parser,_=P.slice(k),F=H.exec(_)[0];z.call(B,F),P=P.replace(F,"")}}return(function(W){var q=W.afternoon;if(q!==void 0){var V=W.hours;q?V<12&&(W.hours+=12):V===12&&(W.hours=0),delete W.afternoon}})(B),B}}return function(h,x,w){w.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(f=h.parseTwoDigitYear);var E=x.prototype,j=E.parse;E.parse=function(R){var I=R.date,O=R.utc,M=R.args;this.$u=O;var N=M[1];if(typeof N=="string"){var P=M[2]===!0,B=M[3]===!0,L=P||B,k=M[2];B&&(k=M[2]),d=this.$locale(),!P&&k&&(d=w.Ls[k]),this.$d=(function(_,F,W,q){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*_);var V=S(F)(_),G=V.year,K=V.month,U=V.day,Z=V.hours,Q=V.minutes,te=V.seconds,X=V.milliseconds,ae=V.zone,re=V.week,ne=new Date,Y=U||(G||K?1:ne.getDate()),ie=G||ne.getFullYear(),le=0;G&&!K||(le=K>0?K-1:ne.getMonth());var de,ce=Z||0,ge=Q||0,he=te||0,Oe=X||0;return ae?new Date(Date.UTC(ie,le,Y,ce,ge,he,Oe+60*ae.offset*1e3)):W?new Date(Date.UTC(ie,le,Y,ce,ge,he,Oe)):(de=new Date(ie,le,Y,ce,ge,he,Oe),re&&(de=q(de).week(re).toDate()),de)}catch{return new Date("")}})(I,N,O,w),this.init(),k&&k!==!0&&(this.$L=this.locale(k).$L),L&&I!=this.format(N)&&(this.$d=new Date("")),d={}}else if(N instanceof Array)for(var D=N.length,H=1;H<=D;H+=1){M[1]=N[H-1];var z=w.apply(this,M);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}H===D&&(this.$d=new Date(""))}else j.call(this,R)}}}))})(hv)),hv.exports}var dW=uW();const fW=Mo(dW);fa.extend(fW);fa.extend(sW);fa.extend(UV);fa.extend(YV);fa.extend(eW);fa.extend(aW);fa.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(l){var c=(l||"").replace("Wo","wo");return r.bind(this)(c)}});var mW={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"},Hl=function(t){var n=mW[t];return n||t.split("_")[0]},vW={getNow:function(){var t=fa();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return fa(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 fa().locale(Hl(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Hl(t)).weekday(0)},getWeek:function(t,n){return n.locale(Hl(t)).week()},getShortWeekDays:function(t){return fa().locale(Hl(t)).localeData().weekdaysMin()},getShortMonths:function(t){return fa().locale(Hl(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Hl(t)).format(r)},parse:function(t,n,r){for(var a=Hl(t),l=0;l<r.length;l+=1){var c=r[l],u=n;if(c.includes("wo")||c.includes("Wo")){for(var d=u.split("-")[0],f=u.split("-")[1],v=fa(d,"YYYY").startOf("year").locale(a),g=0;g<=52;g+=1){var p=v.add(g,"week");if(p.format("Wo")===f)return p}return null}var b=fa(u,c,!0).locale(a);if(b.isValid())return b}return null}}};function gW(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var _o=i.createContext(null),pW={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 Lj(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,a=e.popupAlign,l=e.transitionName,c=e.getPopupContainer,u=e.children,d=e.range,f=e.placement,v=e.builtinPlacements,g=v===void 0?pW:v,p=e.direction,b=e.visible,C=e.onClose,S=i.useContext(_o),h=S.prefixCls,x="".concat(h,"-dropdown"),w=gW(f,p==="rtl");return i.createElement(cf,{showAction:[],hideAction:["click"],popupPlacement:w,builtinPlacements:g,prefixCls:x,popupTransitionName:l,popup:t,popupAlign:a,popupVisible:b,popupClassName:ue(r,ee(ee({},"".concat(x,"-range"),d),"".concat(x,"-rtl"),p==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:c,onPopupVisibleChange:function(j){j||C()}},u)}function X1(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 $s(e){return e==null?[]:Array.isArray(e)?e:[e]}function xd(e,t,n){var r=Ne(e);return r[t]=n,r}function zg(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(a){e[a]!==void 0&&(n[a]=e[a])}),n}function Hj(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 Fj(e,t,n){var r=n!==void 0?n:t[t.length-1],a=t.find(function(l){return e[l]});return r!==a?e[a]:void 0}function Vj(e){return zg(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function Y1(e,t,n,r){var a=i.useMemo(function(){return e||function(c,u){var d=c;return t&&u.type==="date"?t(d,u.today):n&&u.type==="month"?n(d,u.locale):u.originNode}},[e,n,t]),l=i.useCallback(function(c,u){return a(c,se(se({},u),{},{range:r}))},[a,r]);return l}function Wj(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=i.useState([!1,!1]),a=fe(r,2),l=a[0],c=a[1],u=function(v,g){c(function(p){return xd(p,g,v)})},d=i.useMemo(function(){return l.map(function(f,v){if(f)return!0;var g=e[v];return g?!!(!n[v]&&!g||g&&t(g,{activeIndex:v})):!1})},[e,l,t,n]);return[d,u]}function Kj(e,t,n,r,a){var l="",c=[];return e&&c.push(a?"hh":"HH"),t&&c.push("mm"),n&&c.push("ss"),l=c.join(":"),r&&(l+=".SSS"),a&&(l+=" A"),l}function hW(e,t,n,r,a,l){var c=e.fieldDateTimeFormat,u=e.fieldDateFormat,d=e.fieldTimeFormat,f=e.fieldMonthFormat,v=e.fieldYearFormat,g=e.fieldWeekFormat,p=e.fieldQuarterFormat,b=e.yearFormat,C=e.cellYearFormat,S=e.cellQuarterFormat,h=e.dayFormat,x=e.cellDateFormat,w=Kj(t,n,r,a,l);return se(se({},e),{},{fieldDateTimeFormat:c||"YYYY-MM-DD ".concat(w),fieldDateFormat:u||"YYYY-MM-DD",fieldTimeFormat:d||w,fieldMonthFormat:f||"YYYY-MM",fieldYearFormat:v||"YYYY",fieldWeekFormat:g||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:b||"YYYY",cellYearFormat:C||"YYYY",cellQuarterFormat:S||"[Q]Q",cellDateFormat:x||h||"D"})}function Uj(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,l=t.showMillisecond,c=t.use12Hours;return ve.useMemo(function(){return hW(e,n,r,a,l,c)},[e,n,r,a,l,c])}function nd(e,t,n){return n??t.some(function(r){return e.includes(r)})}var bW=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function yW(e){var t=zg(e,bW),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=$t(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function CW(e){return e&&typeof e=="string"}function qj(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function Gj(e,t,n,r,a){var l=t,c=n,u=r;if(!e&&!l&&!c&&!u&&!a)l=!0,c=!0,u=!0;else if(e){var d,f,v,g=[l,c,u].some(function(C){return C===!1}),p=[l,c,u].some(function(C){return C===!0}),b=g?!0:!p;l=(d=l)!==null&&d!==void 0?d:b,c=(f=c)!==null&&f!==void 0?f:b,u=(v=u)!==null&&v!==void 0?v:b}return[l,c,u,a]}function Xj(e){var t=e.showTime,n=yW(e),r=fe(n,2),a=r[0],l=r[1],c=t&&$t(t)==="object"?t:{},u=se(se({defaultOpenValue:c.defaultOpenValue||c.defaultValue},a),c),d=u.showMillisecond,f=u.showHour,v=u.showMinute,g=u.showSecond,p=qj(f,v,g,d),b=Gj(p,f,v,g,d),C=fe(b,3);return f=C[0],v=C[1],g=C[2],[u,se(se({},u),{},{showHour:f,showMinute:v,showSecond:g,showMillisecond:d}),u.format,l]}function Yj(e,t,n,r,a){var l=e==="time";if(e==="datetime"||l){for(var c=r,u=Hj(e,a,null),d=u,f=[t,n],v=0;v<f.length;v+=1){var g=$s(f[v])[0];if(CW(g)){d=g;break}}var p=c.showHour,b=c.showMinute,C=c.showSecond,S=c.showMillisecond,h=c.use12Hours,x=nd(d,["a","A","LT","LLL","LTS"],h),w=qj(p,b,C,S);w||(p=nd(d,["H","h","k","LT","LLL"]),b=nd(d,["m","LT","LLL"]),C=nd(d,["s","LTS"]),S=nd(d,["SSS"]));var E=Gj(w,p,b,C,S),j=fe(E,3);p=j[0],b=j[1],C=j[2];var R=t||Kj(p,b,C,S,x);return se(se({},c),{},{format:R,showHour:p,showMinute:b,showSecond:C,showMillisecond:S,use12Hours:x})}return null}function SW(e,t,n){if(t===!1)return null;var r=t&&$t(t)==="object"?t:{};return r.clearIcon||n||i.createElement("span",{className:"".concat(e,"-clear-btn")})}var A0=7;function Sl(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function Ty(e,t,n){return Sl(t,n,function(){var r=Math.floor(e.getYear(t)/10),a=Math.floor(e.getYear(n)/10);return r===a})}function ds(e,t,n){return Sl(t,n,function(){return e.getYear(t)===e.getYear(n)})}function YE(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function xW(e,t,n){return Sl(t,n,function(){return ds(e,t,n)&&YE(e,t)===YE(e,n)})}function Q1(e,t,n){return Sl(t,n,function(){return ds(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function Z1(e,t,n){return Sl(t,n,function(){return ds(e,t,n)&&Q1(e,t,n)&&e.getDate(t)===e.getDate(n)})}function Qj(e,t,n){return Sl(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function Zj(e,t,n){return Sl(t,n,function(){return Z1(e,t,n)&&Qj(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function fd(e,t,n,r){return Sl(n,r,function(){var a=e.locale.getWeekFirstDate(t,n),l=e.locale.getWeekFirstDate(t,r);return ds(e,a,l)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function ba(e,t,n,r,a){switch(a){case"date":return Z1(e,n,r);case"week":return fd(e,t.locale,n,r);case"month":return Q1(e,n,r);case"quarter":return xW(e,n,r);case"year":return ds(e,n,r);case"decade":return Ty(e,n,r);case"time":return Qj(e,n,r);default:return Zj(e,n,r)}}function Dg(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Am(e,t,n,r,a){return ba(e,t,n,r,a)?!0:e.isAfter(n,r)}function $W(e,t,n){var r=t.locale.getWeekFirstDay(e),a=t.setDate(n,1),l=t.getWeekDay(a),c=t.addDate(a,r-l);return t.getMonth(c)===t.getMonth(n)&&t.getDate(c)>1&&(c=t.addDate(c,-7)),c}function Gr(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 Bv(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],l=["setHour","setMinute","setSecond","setMillisecond"];return l.forEach(function(c,u){n?r=e[c](r,e[a[u]](n)):r=e[c](r,0)}),r}function wW(e,t,n,r,a){var l=Xt(function(c,u){return!!(n&&n(c,u)||r&&e.isAfter(r,c)&&!ba(e,t,r,c,u.type)||a&&e.isAfter(c,a)&&!ba(e,t,a,c,u.type))});return l}function EW(e,t,n){return i.useMemo(function(){var r=Hj(e,t,n),a=$s(r),l=a[0],c=$t(l)==="object"&&l.type==="mask"?l.format:null;return[a.map(function(u){return typeof u=="string"||typeof u=="function"?u:u.format}),c]},[e,t,n])}function OW(e,t,n){return typeof e[0]=="function"||n?!0:t}function RW(e,t,n,r){var a=Xt(function(l,c){var u=se({type:t},c);if(delete u.activeIndex,!e.isValidate(l)||n&&n(l,u))return!0;if((t==="date"||t==="time")&&r){var d,f=c&&c.activeIndex===1?"end":"start",v=((d=r.disabledTime)===null||d===void 0?void 0:d.call(r,l,f,{from:u.from}))||{},g=v.disabledHours,p=v.disabledMinutes,b=v.disabledSeconds,C=v.disabledMilliseconds,S=r.disabledHours,h=r.disabledMinutes,x=r.disabledSeconds,w=g||S,E=p||h,j=b||x,R=e.getHour(l),I=e.getMinute(l),O=e.getSecond(l),M=e.getMillisecond(l);if(w&&w().includes(R)||E&&E(R).includes(I)||j&&j(R,I).includes(O)||C&&C(R,I,O).includes(M))return!0}return!1});return a}function Bm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=i.useMemo(function(){var r=e&&$s(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function Jj(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,l=a===void 0?"date":a,c=e.prefixCls,u=c===void 0?"rc-picker":c,d=e.styles,f=d===void 0?{}:d,v=e.classNames,g=v===void 0?{}:v,p=e.order,b=p===void 0?!0:p,C=e.components,S=C===void 0?{}:C,h=e.inputRender,x=e.allowClear,w=e.clearIcon,E=e.needConfirm,j=e.multiple,R=e.format,I=e.inputReadOnly,O=e.disabledDate,M=e.minDate,N=e.maxDate,P=e.showTime,B=e.value,L=e.defaultValue,k=e.pickerValue,D=e.defaultPickerValue,H=Bm(B),z=Bm(L),_=Bm(k),F=Bm(D),W=l==="date"&&P?"datetime":l,q=W==="time"||W==="datetime",V=q||j,G=E??q,K=Xj(e),U=fe(K,4),Z=U[0],Q=U[1],te=U[2],X=U[3],ae=Uj(r,Q),re=i.useMemo(function(){return Yj(W,te,X,Z,ae)},[W,te,X,Z,ae]),ne=i.useMemo(function(){return se(se({},e),{},{prefixCls:u,locale:ae,picker:l,styles:f,classNames:g,order:b,components:se({input:h},S),clearIcon:SW(u,x,w),showTime:re,value:H,defaultValue:z,pickerValue:_,defaultPickerValue:F},t==null?void 0:t())},[e]),Y=EW(W,ae,R),ie=fe(Y,2),le=ie[0],de=ie[1],ce=OW(le,I,j),ge=wW(n,r,O,M,N),he=RW(n,l,ge,re),Oe=i.useMemo(function(){return se(se({},ne),{},{needConfirm:G,inputReadOnly:ce,disabledDate:ge})},[ne,G,ce,ge]);return[Oe,W,V,le,de,he]}function jW(e,t,n){var r=bn(t,{value:e}),a=fe(r,2),l=a[0],c=a[1],u=ve.useRef(e),d=ve.useRef(),f=function(){Yt.cancel(d.current)},v=Xt(function(){c(u.current),n&&l!==u.current&&n(u.current)}),g=Xt(function(p,b){f(),u.current=p,p||b?v():d.current=Yt(v)});return ve.useEffect(function(){return f},[]),[l,g]}function eI(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(v){return v})?!1:e,l=jW(a,t||!1,r),c=fe(l,2),u=c[0],d=c[1];function f(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!g.inherit||u)&&d(v,g.force)}return[u,f]}function tI(e){var t=i.useRef();return i.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var l;(l=t.current)===null||l===void 0||l.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function nI(e,t){return i.useMemo(function(){return e||(t?(Xn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=fe(n,2),a=r[0],l=r[1];return{label:a,value:l}})):[])},[e,t])}function J1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=i.useRef(t);r.current=t,ts(function(){if(e)r.current(e);else{var a=Yt(function(){r.current(e)},n);return function(){Yt.cancel(a)}}},[e])}function rI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=i.useState(0),a=fe(r,2),l=a[0],c=a[1],u=i.useState(!1),d=fe(u,2),f=d[0],v=d[1],g=i.useRef([]),p=i.useRef(null),b=i.useRef(null),C=function(j){p.current=j},S=function(j){return p.current===j},h=function(j){v(j)},x=function(j){return j&&(b.current=j),b.current},w=function(j){var R=g.current,I=new Set(R.filter(function(M){return j[M]||t[M]})),O=R[R.length-1]===0?1:0;return I.size>=2||e[O]?null:O};return J1(f||n,function(){f||(g.current=[],C(null))}),i.useEffect(function(){f&&g.current.push(l)},[f,l]),[f,h,x,l,c,w,g.current,C,S]}function IW(e,t,n,r,a,l){var c=n[n.length-1],u=function(f,v){var g=fe(e,2),p=g[0],b=g[1],C=se(se({},v),{},{from:Fj(e,n)});return c===1&&t[0]&&p&&!ba(r,a,p,f,C.type)&&r.isAfter(p,f)||c===0&&t[1]&&b&&!ba(r,a,b,f,C.type)&&r.isAfter(f,b)?!0:l==null?void 0:l(f,C)};return u}function md(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 B0=[];function aI(e,t,n,r,a,l,c,u){var d=arguments.length>8&&arguments[8]!==void 0?arguments[8]:B0,f=arguments.length>9&&arguments[9]!==void 0?arguments[9]:B0,v=arguments.length>10&&arguments[10]!==void 0?arguments[10]:B0,g=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,b=arguments.length>13?arguments[13]:void 0,C=c==="time",S=l||0,h=function(_){var F=e.getNow();return C&&(F=Bv(e,F)),d[_]||n[_]||F},x=fe(f,2),w=x[0],E=x[1],j=bn(function(){return h(0)},{value:w}),R=fe(j,2),I=R[0],O=R[1],M=bn(function(){return h(1)},{value:E}),N=fe(M,2),P=N[0],B=N[1],L=i.useMemo(function(){var z=[I,P][S];return C?z:Bv(e,z,v[S])},[C,I,P,S,e,v]),k=function(_){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",W=[O,B][S];W(_);var q=[I,P];q[S]=_,g&&(!ba(e,t,I,q[0],c)||!ba(e,t,P,q[1],c))&&g(q,{source:F,range:S===1?"end":"start",mode:r})},D=function(_,F){if(u){var W={date:"month",week:"month",month:"year",quarter:"year"},q=W[c];if(q&&!ba(e,t,_,F,q))return md(e,c,F,-1);if(c==="year"&&_){var V=Math.floor(e.getYear(_)/10),G=Math.floor(e.getYear(F)/10);if(V!==G)return md(e,c,F,-1)}}return F},H=i.useRef(null);return nn(function(){if(a&&!d[S]){var z=C?null:e.getNow();if(H.current!==null&&H.current!==S?z=[I,P][S^1]:n[S]?z=S===0?n[0]:D(n[0],n[1]):n[S^1]&&(z=n[S^1]),z){p&&e.isAfter(p,z)&&(z=p);var _=u?md(e,c,z,1):z;b&&e.isAfter(_,b)&&(z=u?md(e,c,b,-1):b),k(z,"reset")}}},[a,S,n[S]]),i.useEffect(function(){a?H.current=S:H.current=null},[a,S]),nn(function(){a&&d&&d[S]&&k(d[S],"reset")},[a,S]),[L,k]}function oI(e,t){var n=i.useRef(e),r=i.useState({}),a=fe(r,2),l=a[1],c=function(f){return f&&t!==void 0?t:n.current},u=function(f){n.current=f,l({})};return[c,u,c(!0)]}var NW=[];function iI(e,t,n){var r=function(c){return c.map(function(u){return Gr(u,{generateConfig:e,locale:t,format:n[0]})})},a=function(c,u){for(var d=Math.max(c.length,u.length),f=-1,v=0;v<d;v+=1){var g=c[v]||null,p=u[v]||null;if(g!==p&&!Zj(e,g,p)){f=v;break}}return[f<0,f!==0]};return[r,a]}function lI(e,t){return Ne(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function MW(e){var t=oI(e),n=fe(t,2),r=n[0],a=n[1],l=Xt(function(){a(e)});return i.useEffect(function(){l()},[e]),[r,a]}function sI(e,t,n,r,a,l,c,u,d){var f=bn(l,{value:c}),v=fe(f,2),g=v[0],p=v[1],b=g||NW,C=MW(b),S=fe(C,2),h=S[0],x=S[1],w=iI(e,t,n),E=fe(w,2),j=E[0],R=E[1],I=Xt(function(M){var N=Ne(M);if(r)for(var P=0;P<2;P+=1)N[P]=N[P]||null;else a&&(N=lI(N.filter(function(z){return z}),e));var B=R(h(),N),L=fe(B,2),k=L[0],D=L[1];if(!k&&(x(N),u)){var H=j(N);u(N,H,{range:D?"end":"start"})}}),O=function(){d&&d(h())};return[b,p,h,I,O]}function cI(e,t,n,r,a,l,c,u,d,f){var v=e.generateConfig,g=e.locale,p=e.picker,b=e.onChange,C=e.allowEmpty,S=e.order,h=l.some(function(k){return k})?!1:S,x=iI(v,g,c),w=fe(x,2),E=w[0],j=w[1],R=oI(t),I=fe(R,2),O=I[0],M=I[1],N=Xt(function(){M(t)});i.useEffect(function(){N()},[t]);var P=Xt(function(k){var D=k===null,H=Ne(k||O());if(D)for(var z=Math.max(l.length,H.length),_=0;_<z;_+=1)l[_]||(H[_]=null);h&&H[0]&&H[1]&&(H=lI(H,v)),a(H);var F=H,W=fe(F,2),q=W[0],V=W[1],G=!q,K=!V,U=C?(!G||C[0])&&(!K||C[1]):!0,Z=!S||G||K||ba(v,g,q,V,p)||v.isAfter(V,q),Q=(l[0]||!q||!f(q,{activeIndex:0}))&&(l[1]||!V||!f(V,{from:q,activeIndex:1})),te=D||U&&Z&&Q;if(te){n(H);var X=j(H,t),ae=fe(X,1),re=ae[0];b&&!re&&b(D&&H.every(function(ne){return!ne})?null:H,E(H))}return te}),B=Xt(function(k,D){var H=xd(O(),k,r()[k]);M(H),D&&P()}),L=!u&&!d;return J1(!L,function(){L&&(P(),a(t),N())},2),[B,P]}function uI(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 TW(e,t,n,r,a,l){var c=e;function u(g,p,b){var C=l[g](c),S=b.find(function(E){return E.value===C});if(!S||S.disabled){var h=b.filter(function(E){return!E.disabled}),x=Ne(h).reverse(),w=x.find(function(E){return E.value<=C})||h[0];w&&(C=w.value,c=l[p](c,C))}return C}var d=u("getHour","setHour",t()),f=u("getMinute","setMinute",n(d)),v=u("getSecond","setSecond",r(d,f));return u("getMillisecond","setMillisecond",a(d,f,v)),c}function km(){return[]}function Lm(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]:[],l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,c=[],u=n>=1?n|0:1,d=e;d<=t;d+=u){var f=a.includes(d);(!f||!r)&&c.push({label:X1(d,l),value:d,disabled:f})}return c}function eC(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,l=r.hourStep,c=l===void 0?1:l,u=r.minuteStep,d=u===void 0?1:u,f=r.secondStep,v=f===void 0?1:f,g=r.millisecondStep,p=g===void 0?100:g,b=r.hideDisabledOptions,C=r.disabledTime,S=r.disabledHours,h=r.disabledMinutes,x=r.disabledSeconds,w=i.useMemo(function(){return n||e.getNow()},[n,e]),E=i.useCallback(function(F){var W=(C==null?void 0:C(F))||{};return[W.disabledHours||S||km,W.disabledMinutes||h||km,W.disabledSeconds||x||km,W.disabledMilliseconds||km]},[C,S,h,x]),j=i.useMemo(function(){return E(w)},[w,E]),R=fe(j,4),I=R[0],O=R[1],M=R[2],N=R[3],P=i.useCallback(function(F,W,q,V){var G=Lm(0,23,c,b,F()),K=a?G.map(function(te){return se(se({},te),{},{label:X1(te.value%12||12,2)})}):G,U=function(X){return Lm(0,59,d,b,W(X))},Z=function(X,ae){return Lm(0,59,v,b,q(X,ae))},Q=function(X,ae,re){return Lm(0,999,p,b,V(X,ae,re),3)};return[K,U,Z,Q]},[b,c,a,p,d,v]),B=i.useMemo(function(){return P(I,O,M,N)},[P,I,O,M,N]),L=fe(B,4),k=L[0],D=L[1],H=L[2],z=L[3],_=function(W,q){var V=function(){return k},G=D,K=H,U=z;if(q){var Z=E(q),Q=fe(Z,4),te=Q[0],X=Q[1],ae=Q[2],re=Q[3],ne=P(te,X,ae,re),Y=fe(ne,4),ie=Y[0],le=Y[1],de=Y[2],ce=Y[3];V=function(){return ie},G=le,K=de,U=ce}var ge=TW(W,V,G,K,U,e);return ge};return[_,k,D,H,z]}function PW(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,l=e.showTime,c=e.onSubmit,u=e.onNow,d=e.invalid,f=e.needConfirm,v=e.generateConfig,g=e.disabledDate,p=i.useContext(_o),b=p.prefixCls,C=p.locale,S=p.button,h=S===void 0?"button":S,x=v.getNow(),w=eC(v,l,x),E=fe(w,1),j=E[0],R=r==null?void 0:r(t),I=g(x,{type:t}),O=function(){if(!I){var D=j(x);u(D)}},M="".concat(b,"-now"),N="".concat(M,"-btn"),P=a&&i.createElement("li",{className:M},i.createElement("a",{className:ue(N,I&&"".concat(N,"-disabled")),"aria-disabled":I,onClick:O},n==="date"?C.today:C.now)),B=f&&i.createElement("li",{className:"".concat(b,"-ok")},i.createElement(h,{disabled:d,onClick:c},C.ok)),L=(P||B)&&i.createElement("ul",{className:"".concat(b,"-ranges")},P,B);return!R&&!L?null:i.createElement("div",{className:"".concat(b,"-footer")},R&&i.createElement("div",{className:"".concat(b,"-footer-extra")},R),L)}function dI(e,t,n){function r(a,l){var c=a.findIndex(function(d){return ba(e,t,d,l,n)});if(c===-1)return[].concat(Ne(a),[l]);var u=Ne(a);return u.splice(c,1),u}return r}var ws=i.createContext(null);function _g(){return i.useContext(ws)}function eu(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,l=e.disabledDate,c=e.minDate,u=e.maxDate,d=e.cellRender,f=e.hoverValue,v=e.hoverRangeValue,g=e.onHover,p=e.values,b=e.pickerValue,C=e.onSelect,S=e.prevIcon,h=e.nextIcon,x=e.superPrevIcon,w=e.superNextIcon,E=r.getNow(),j={now:E,values:p,pickerValue:b,prefixCls:n,disabledDate:l,minDate:c,maxDate:u,cellRender:d,hoverValue:f,hoverRangeValue:v,onHover:g,locale:a,generateConfig:r,onSelect:C,panelType:t,prevIcon:S,nextIcon:h,superPrevIcon:x,superNextIcon:w};return[j,E]}var sl=i.createContext({});function ff(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,l=e.prefixColumn,c=e.rowClassName,u=e.titleFormat,d=e.getCellText,f=e.getCellClassName,v=e.headerCells,g=e.cellSelection,p=g===void 0?!0:g,b=e.disabledDate,C=_g(),S=C.prefixCls,h=C.panelType,x=C.now,w=C.disabledDate,E=C.cellRender,j=C.onHover,R=C.hoverValue,I=C.hoverRangeValue,O=C.generateConfig,M=C.values,N=C.locale,P=C.onSelect,B=b||w,L="".concat(S,"-cell"),k=i.useContext(sl),D=k.onCellDblClick,H=function(K){return M.some(function(U){return U&&ba(O,N,K,U,h)})},z=[],_=0;_<t;_+=1){for(var F=[],W=void 0,q=function(){var K=_*n+V,U=a(r,K),Z=B==null?void 0:B(U,{type:h});V===0&&(W=U,l&&F.push(l(W)));var Q=!1,te=!1,X=!1;if(p&&I){var ae=fe(I,2),re=ae[0],ne=ae[1];Q=Dg(O,re,ne,U),te=ba(O,N,U,re,h),X=ba(O,N,U,ne,h)}var Y=u?Gr(U,{locale:N,format:u,generateConfig:O}):void 0,ie=i.createElement("div",{className:"".concat(L,"-inner")},d(U));F.push(i.createElement("td",{key:V,title:Y,className:ue(L,se(ee(ee(ee(ee(ee(ee({},"".concat(L,"-disabled"),Z),"".concat(L,"-hover"),(R||[]).some(function(le){return ba(O,N,U,le,h)})),"".concat(L,"-in-range"),Q&&!te&&!X),"".concat(L,"-range-start"),te),"".concat(L,"-range-end"),X),"".concat(S,"-cell-selected"),!I&&h!=="week"&&H(U)),f(U))),onClick:function(){Z||P(U)},onDoubleClick:function(){!Z&&D&&D()},onMouseEnter:function(){Z||j==null||j(U)},onMouseLeave:function(){Z||j==null||j(null)}},E?E(U,{prefixCls:S,originNode:ie,today:x,type:h,locale:N}):ie))},V=0;V<n;V+=1)q();z.push(i.createElement("tr",{key:_,className:c==null?void 0:c(W)},F))}return i.createElement("div",{className:"".concat(S,"-body")},i.createElement("table",{className:"".concat(S,"-content")},v&&i.createElement("thead",null,i.createElement("tr",null,v)),i.createElement("tbody",null,z)))}var Hm={visibility:"hidden"};function tu(e){var t=e.offset,n=e.superOffset,r=e.onChange,a=e.getStart,l=e.getEnd,c=e.children,u=_g(),d=u.prefixCls,f=u.prevIcon,v=f===void 0?"‹":f,g=u.nextIcon,p=g===void 0?"›":g,b=u.superPrevIcon,C=b===void 0?"«":b,S=u.superNextIcon,h=S===void 0?"»":S,x=u.minDate,w=u.maxDate,E=u.generateConfig,j=u.locale,R=u.pickerValue,I=u.panelType,O="".concat(d,"-header"),M=i.useContext(sl),N=M.hidePrev,P=M.hideNext,B=M.hideHeader,L=i.useMemo(function(){if(!x||!t||!l)return!1;var G=l(t(-1,R));return!Am(E,j,G,x,I)},[x,t,R,l,E,j,I]),k=i.useMemo(function(){if(!x||!n||!l)return!1;var G=l(n(-1,R));return!Am(E,j,G,x,I)},[x,n,R,l,E,j,I]),D=i.useMemo(function(){if(!w||!t||!a)return!1;var G=a(t(1,R));return!Am(E,j,w,G,I)},[w,t,R,a,E,j,I]),H=i.useMemo(function(){if(!w||!n||!a)return!1;var G=a(n(1,R));return!Am(E,j,w,G,I)},[w,n,R,a,E,j,I]),z=function(K){t&&r(t(K,R))},_=function(K){n&&r(n(K,R))};if(B)return null;var F="".concat(O,"-prev-btn"),W="".concat(O,"-next-btn"),q="".concat(O,"-super-prev-btn"),V="".concat(O,"-super-next-btn");return i.createElement("div",{className:O},n&&i.createElement("button",{type:"button","aria-label":j.previousYear,onClick:function(){return _(-1)},tabIndex:-1,className:ue(q,k&&"".concat(q,"-disabled")),disabled:k,style:N?Hm:{}},C),t&&i.createElement("button",{type:"button","aria-label":j.previousMonth,onClick:function(){return z(-1)},tabIndex:-1,className:ue(F,L&&"".concat(F,"-disabled")),disabled:L,style:N?Hm:{}},v),i.createElement("div",{className:"".concat(O,"-view")},c),t&&i.createElement("button",{type:"button","aria-label":j.nextMonth,onClick:function(){return z(1)},tabIndex:-1,className:ue(W,D&&"".concat(W,"-disabled")),disabled:D,style:P?Hm:{}},p),n&&i.createElement("button",{type:"button","aria-label":j.nextYear,onClick:function(){return _(1)},tabIndex:-1,className:ue(V,H&&"".concat(V,"-disabled")),disabled:H,style:P?Hm:{}},h))}function Ag(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,a=e.locale,l=e.generateConfig,c=e.pickerValue,u=e.onPickerValueChange,d=e.onModeChange,f=e.mode,v=f===void 0?"date":f,g=e.disabledDate,p=e.onSelect,b=e.onHover,C=e.showWeek,S="".concat(t,"-").concat(r,"-panel"),h="".concat(t,"-cell"),x=v==="week",w=eu(e,v),E=fe(w,2),j=E[0],R=E[1],I=l.locale.getWeekFirstDay(a.locale),O=l.setDate(c,1),M=$W(a.locale,l,O),N=l.getMonth(c),P=C===void 0?x:C,B=P?function(G){var K=g==null?void 0:g(G,{type:"week"});return i.createElement("td",{key:"week",className:ue(h,"".concat(h,"-week"),ee({},"".concat(h,"-disabled"),K)),onClick:function(){K||p(G)},onMouseEnter:function(){K||b==null||b(G)},onMouseLeave:function(){K||b==null||b(null)}},i.createElement("div",{className:"".concat(h,"-inner")},l.locale.getWeek(a.locale,G)))}:null,L=[],k=a.shortWeekDays||(l.locale.getShortWeekDays?l.locale.getShortWeekDays(a.locale):[]);B&&L.push(i.createElement("th",{key:"empty"},i.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},a.week)));for(var D=0;D<A0;D+=1)L.push(i.createElement("th",{key:D},k[(D+I)%A0]));var H=function(K,U){return l.addDate(K,U)},z=function(K){return Gr(K,{locale:a,format:a.cellDateFormat,generateConfig:l})},_=function(K){var U=ee(ee({},"".concat(t,"-cell-in-view"),Q1(l,K,c)),"".concat(t,"-cell-today"),Z1(l,K,R));return U},F=a.shortMonths||(l.locale.getShortMonths?l.locale.getShortMonths(a.locale):[]),W=i.createElement("button",{type:"button","aria-label":a.yearSelect,key:"year",onClick:function(){d("year",c)},tabIndex:-1,className:"".concat(t,"-year-btn")},Gr(c,{locale:a,format:a.yearFormat,generateConfig:l})),q=i.createElement("button",{type:"button","aria-label":a.monthSelect,key:"month",onClick:function(){d("month",c)},tabIndex:-1,className:"".concat(t,"-month-btn")},a.monthFormat?Gr(c,{locale:a,format:a.monthFormat,generateConfig:l}):F[N]),V=a.monthBeforeYear?[q,W]:[W,q];return i.createElement(ws.Provider,{value:j},i.createElement("div",{className:ue(S,C&&"".concat(S,"-show-week"))},i.createElement(tu,{offset:function(K){return l.addMonth(c,K)},superOffset:function(K){return l.addYear(c,K)},onChange:u,getStart:function(K){return l.setDate(K,1)},getEnd:function(K){var U=l.setDate(K,1);return U=l.addMonth(U,1),l.addDate(U,-1)}},V),i.createElement(ff,ye({titleFormat:a.fieldDateFormat},e,{colNum:A0,rowNum:6,baseDate:M,headerCells:L,getCellDate:H,getCellText:z,getCellClassName:_,prefixColumn:B,cellSelection:!x}))))}var zW=1/3;function DW(e,t){var n=i.useRef(!1),r=i.useRef(null),a=i.useRef(null),l=function(){return n.current},c=function(){Yt.cancel(r.current),n.current=!1},u=i.useRef(),d=function(){var g=e.current;if(a.current=null,u.current=0,g){var p=g.querySelector('[data-value="'.concat(t,'"]')),b=g.querySelector("li"),C=function S(){c(),n.current=!0,u.current+=1;var h=g.scrollTop,x=b.offsetTop,w=p.offsetTop,E=w-x;if(w===0&&p!==b||!Gc(g)){u.current<=5&&(r.current=Yt(S));return}var j=h+(E-h)*zW,R=Math.abs(E-j);if(a.current!==null&&a.current<R){c();return}if(a.current=R,R<=1){g.scrollTop=E,c();return}g.scrollTop=j,r.current=Yt(S)};p&&b&&C()}},f=Xt(d);return[f,c,l]}var _W=300;function AW(e){return e.map(function(t){var n=t.value,r=t.label,a=t.disabled;return[n,r,a].join(",")}).join(";")}function rd(e){var t=e.units,n=e.value,r=e.optionalValue,a=e.type,l=e.onChange,c=e.onHover,u=e.onDblClick,d=e.changeOnScroll,f=_g(),v=f.prefixCls,g=f.cellRender,p=f.now,b=f.locale,C="".concat(v,"-time-panel"),S="".concat(v,"-time-panel-cell"),h=i.useRef(null),x=i.useRef(),w=function(){clearTimeout(x.current)},E=DW(h,n??r),j=fe(E,3),R=j[0],I=j[1],O=j[2];nn(function(){return R(),w(),function(){I(),w()}},[n,r,AW(t)]);var M=function(B){w();var L=B.target;!O()&&d&&(x.current=setTimeout(function(){var k=h.current,D=k.querySelector("li").offsetTop,H=Array.from(k.querySelectorAll("li")),z=H.map(function(V){return V.offsetTop-D}),_=z.map(function(V,G){return t[G].disabled?Number.MAX_SAFE_INTEGER:Math.abs(V-L.scrollTop)}),F=Math.min.apply(Math,Ne(_)),W=_.findIndex(function(V){return V===F}),q=t[W];q&&!q.disabled&&l(q.value)},_W))},N="".concat(C,"-column");return i.createElement("ul",{className:N,ref:h,"data-type":a,onScroll:M},t.map(function(P){var B=P.label,L=P.value,k=P.disabled,D=i.createElement("div",{className:"".concat(S,"-inner")},B);return i.createElement("li",{key:L,className:ue(S,ee(ee({},"".concat(S,"-selected"),n===L),"".concat(S,"-disabled"),k)),onClick:function(){k||l(L)},onDoubleClick:function(){!k&&u&&u()},onMouseEnter:function(){c(L)},onMouseLeave:function(){c(null)},"data-value":L},g?g(L,{prefixCls:v,originNode:D,today:p,type:"time",subType:a,locale:b}):D)}))}function Gi(e){return e<12}function BW(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,a=e.showMillisecond,l=e.use12Hours,c=e.changeOnScroll,u=_g(),d=u.prefixCls,f=u.values,v=u.generateConfig,g=u.locale,p=u.onSelect,b=u.onHover,C=b===void 0?function(){}:b,S=u.pickerValue,h=(f==null?void 0:f[0])||null,x=i.useContext(sl),w=x.onCellDblClick,E=eC(v,e,h),j=fe(E,5),R=j[0],I=j[1],O=j[2],M=j[3],N=j[4],P=function(Me){var Le=h&&v[Me](h),et=S&&v[Me](S);return[Le,et]},B=P("getHour"),L=fe(B,2),k=L[0],D=L[1],H=P("getMinute"),z=fe(H,2),_=z[0],F=z[1],W=P("getSecond"),q=fe(W,2),V=q[0],G=q[1],K=P("getMillisecond"),U=fe(K,2),Z=U[0],Q=U[1],te=k===null?null:Gi(k)?"am":"pm",X=i.useMemo(function(){return l?Gi(k)?I.filter(function($e){return Gi($e.value)}):I.filter(function($e){return!Gi($e.value)}):I},[k,I,l]),ae=function(Me,Le){var et,bt=Me.filter(function(We){return!We.disabled});return Le??(bt==null||(et=bt[0])===null||et===void 0?void 0:et.value)},re=ae(I,k),ne=i.useMemo(function(){return O(re)},[O,re]),Y=ae(ne,_),ie=i.useMemo(function(){return M(re,Y)},[M,re,Y]),le=ae(ie,V),de=i.useMemo(function(){return N(re,Y,le)},[N,re,Y,le]),ce=ae(de,Z),ge=i.useMemo(function(){if(!l)return[];var $e=v.getNow(),Me=v.setHour($e,6),Le=v.setHour($e,18),et=function(We,tt){var dt=g.cellMeridiemFormat;return dt?Gr(We,{generateConfig:v,locale:g,format:dt}):tt};return[{label:et(Me,"AM"),value:"am",disabled:I.every(function(bt){return bt.disabled||!Gi(bt.value)})},{label:et(Le,"PM"),value:"pm",disabled:I.every(function(bt){return bt.disabled||Gi(bt.value)})}]},[I,l,v,g]),he=function(Me){var Le=R(Me);p(Le)},Oe=i.useMemo(function(){var $e=h||S||v.getNow(),Me=function(et){return et!=null};return Me(k)?($e=v.setHour($e,k),$e=v.setMinute($e,_),$e=v.setSecond($e,V),$e=v.setMillisecond($e,Z)):Me(D)?($e=v.setHour($e,D),$e=v.setMinute($e,F),$e=v.setSecond($e,G),$e=v.setMillisecond($e,Q)):Me(re)&&($e=v.setHour($e,re),$e=v.setMinute($e,Y),$e=v.setSecond($e,le),$e=v.setMillisecond($e,ce)),$e},[h,S,k,_,V,Z,re,Y,le,ce,D,F,G,Q,v]),je=function(Me,Le){return Me===null?null:v[Le](Oe,Me)},pe=function(Me){return je(Me,"setHour")},we=function(Me){return je(Me,"setMinute")},Se=function(Me){return je(Me,"setSecond")},Ce=function(Me){return je(Me,"setMillisecond")},De=function(Me){return Me===null?null:Me==="am"&&!Gi(k)?v.setHour(Oe,k-12):Me==="pm"&&Gi(k)?v.setHour(Oe,k+12):Oe},Ae=function(Me){he(pe(Me))},Ye=function(Me){he(we(Me))},Ke=function(Me){he(Se(Me))},Fe=function(Me){he(Ce(Me))},Ge=function(Me){he(De(Me))},Te=function(Me){C(pe(Me))},Ee=function(Me){C(we(Me))},_e=function(Me){C(Se(Me))},Re=function(Me){C(Ce(Me))},Pe=function(Me){C(De(Me))},be={onDblClick:w,changeOnScroll:c};return i.createElement("div",{className:"".concat(d,"-content")},t&&i.createElement(rd,ye({units:X,value:k,optionalValue:D,type:"hour",onChange:Ae,onHover:Te},be)),n&&i.createElement(rd,ye({units:ne,value:_,optionalValue:F,type:"minute",onChange:Ye,onHover:Ee},be)),r&&i.createElement(rd,ye({units:ie,value:V,optionalValue:G,type:"second",onChange:Ke,onHover:_e},be)),a&&i.createElement(rd,ye({units:de,value:Z,optionalValue:Q,type:"millisecond",onChange:Fe,onHover:Re},be)),l&&i.createElement(rd,ye({units:ge,value:te,type:"meridiem",onChange:Ge,onHover:Pe},be)))}function fI(e){var t=e.prefixCls,n=e.value,r=e.locale,a=e.generateConfig,l=e.showTime,c=l||{},u=c.format,d="".concat(t,"-time-panel"),f=eu(e,"time"),v=fe(f,1),g=v[0];return i.createElement(ws.Provider,{value:g},i.createElement("div",{className:ue(d)},i.createElement(tu,null,n?Gr(n,{locale:r,format:u,generateConfig:a}):" "),i.createElement(BW,l)))}function kW(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,a=e.onSelect,l=e.value,c=e.pickerValue,u=e.onHover,d="".concat(t,"-datetime-panel"),f=eC(n,r),v=fe(f,1),g=v[0],p=function(h){return l?Bv(n,h,l):Bv(n,h,c)},b=function(h){u==null||u(h&&p(h))},C=function(h){var x=p(h);a(g(x,x))};return i.createElement("div",{className:d},i.createElement(Ag,ye({},e,{onSelect:C,onHover:b})),i.createElement(fI,e))}function LW(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,l=e.disabledDate,c=e.onPickerValueChange,u="".concat(t,"-decade-panel"),d=eu(e,"decade"),f=fe(d,1),v=f[0],g=function(I){var O=Math.floor(r.getYear(I)/100)*100;return r.setYear(I,O)},p=function(I){var O=g(I);return r.addYear(O,99)},b=g(a),C=p(a),S=r.addYear(b,-10),h=function(I,O){return r.addYear(I,O*10)},x=function(I){var O=n.cellYearFormat,M=Gr(I,{locale:n,format:O,generateConfig:r}),N=Gr(r.addYear(I,9),{locale:n,format:O,generateConfig:r});return"".concat(M,"-").concat(N)},w=function(I){return ee({},"".concat(t,"-cell-in-view"),Ty(r,I,b)||Ty(r,I,C)||Dg(r,b,C,I))},E=l?function(R,I){var O=r.setDate(R,1),M=r.setMonth(O,0),N=r.setYear(M,Math.floor(r.getYear(M)/10)*10),P=r.addYear(N,10),B=r.addDate(P,-1);return l(N,I)&&l(B,I)}:null,j="".concat(Gr(b,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(Gr(C,{locale:n,format:n.yearFormat,generateConfig:r}));return i.createElement(ws.Provider,{value:v},i.createElement("div",{className:u},i.createElement(tu,{superOffset:function(I){return r.addYear(a,I*100)},onChange:c,getStart:g,getEnd:p},j),i.createElement(ff,ye({},e,{disabledDate:E,colNum:3,rowNum:4,baseDate:S,getCellDate:h,getCellText:x,getCellClassName:w}))))}function HW(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,l=e.disabledDate,c=e.onPickerValueChange,u=e.onModeChange,d="".concat(t,"-month-panel"),f=eu(e,"month"),v=fe(f,1),g=v[0],p=r.setMonth(a,0),b=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),C=function(j,R){return r.addMonth(j,R)},S=function(j){var R=r.getMonth(j);return n.monthFormat?Gr(j,{locale:n,format:n.monthFormat,generateConfig:r}):b[R]},h=function(){return ee({},"".concat(t,"-cell-in-view"),!0)},x=l?function(E,j){var R=r.setDate(E,1),I=r.setMonth(R,r.getMonth(R)+1),O=r.addDate(I,-1);return l(R,j)&&l(O,j)}:null,w=i.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){u("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Gr(a,{locale:n,format:n.yearFormat,generateConfig:r}));return i.createElement(ws.Provider,{value:g},i.createElement("div",{className:d},i.createElement(tu,{superOffset:function(j){return r.addYear(a,j)},onChange:c,getStart:function(j){return r.setMonth(j,0)},getEnd:function(j){return r.setMonth(j,11)}},w),i.createElement(ff,ye({},e,{disabledDate:x,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:p,getCellDate:C,getCellText:S,getCellClassName:h}))))}function FW(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,l=e.onPickerValueChange,c=e.onModeChange,u="".concat(t,"-quarter-panel"),d=eu(e,"quarter"),f=fe(d,1),v=f[0],g=r.setMonth(a,0),p=function(x,w){return r.addMonth(x,w*3)},b=function(x){return Gr(x,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},C=function(){return ee({},"".concat(t,"-cell-in-view"),!0)},S=i.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){c("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Gr(a,{locale:n,format:n.yearFormat,generateConfig:r}));return i.createElement(ws.Provider,{value:v},i.createElement("div",{className:u},i.createElement(tu,{superOffset:function(x){return r.addYear(a,x)},onChange:l,getStart:function(x){return r.setMonth(x,0)},getEnd:function(x){return r.setMonth(x,11)}},S),i.createElement(ff,ye({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:g,getCellDate:p,getCellText:b,getCellClassName:C}))))}function VW(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,a=e.value,l=e.hoverValue,c=e.hoverRangeValue,u=r.locale,d="".concat(t,"-week-panel-row"),f=function(g){var p={};if(c){var b=fe(c,2),C=b[0],S=b[1],h=fd(n,u,C,g),x=fd(n,u,S,g);p["".concat(d,"-range-start")]=h,p["".concat(d,"-range-end")]=x,p["".concat(d,"-range-hover")]=!h&&!x&&Dg(n,C,S,g)}return l&&(p["".concat(d,"-hover")]=l.some(function(w){return fd(n,u,g,w)})),ue(d,ee({},"".concat(d,"-selected"),!c&&fd(n,u,a,g)),p)};return i.createElement(Ag,ye({},e,{mode:"week",panelName:"week",rowClassName:f}))}function WW(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,a=e.pickerValue,l=e.disabledDate,c=e.onPickerValueChange,u=e.onModeChange,d="".concat(t,"-year-panel"),f=eu(e,"year"),v=fe(f,1),g=v[0],p=function(O){var M=Math.floor(r.getYear(O)/10)*10;return r.setYear(O,M)},b=function(O){var M=p(O);return r.addYear(M,9)},C=p(a),S=b(a),h=r.addYear(C,-1),x=function(O,M){return r.addYear(O,M)},w=function(O){return Gr(O,{locale:n,format:n.cellYearFormat,generateConfig:r})},E=function(O){return ee({},"".concat(t,"-cell-in-view"),ds(r,O,C)||ds(r,O,S)||Dg(r,C,S,O))},j=l?function(I,O){var M=r.setMonth(I,0),N=r.setDate(M,1),P=r.addYear(N,1),B=r.addDate(P,-1);return l(N,O)&&l(B,O)}:null,R=i.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){u("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},Gr(C,{locale:n,format:n.yearFormat,generateConfig:r}),"-",Gr(S,{locale:n,format:n.yearFormat,generateConfig:r}));return i.createElement(ws.Provider,{value:g},i.createElement("div",{className:d},i.createElement(tu,{superOffset:function(O){return r.addYear(a,O*10)},onChange:c,getStart:p,getEnd:b},R),i.createElement(ff,ye({},e,{disabledDate:j,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:h,getCellDate:x,getCellText:w,getCellClassName:E}))))}var KW={date:Ag,datetime:kW,week:VW,month:HW,quarter:FW,year:WW,decade:LW,time:fI};function UW(e,t){var n,r=e.locale,a=e.generateConfig,l=e.direction,c=e.prefixCls,u=e.tabIndex,d=u===void 0?0:u,f=e.multiple,v=e.defaultValue,g=e.value,p=e.onChange,b=e.onSelect,C=e.defaultPickerValue,S=e.pickerValue,h=e.onPickerValueChange,x=e.mode,w=e.onPanelChange,E=e.picker,j=E===void 0?"date":E,R=e.showTime,I=e.hoverValue,O=e.hoverRangeValue,M=e.cellRender,N=e.dateRender,P=e.monthCellRender,B=e.components,L=B===void 0?{}:B,k=e.hideHeader,D=((n=i.useContext(_o))===null||n===void 0?void 0:n.prefixCls)||c||"rc-picker",H=i.useRef();i.useImperativeHandle(t,function(){return{nativeElement:H.current}});var z=Xj(e),_=fe(z,4),F=_[0],W=_[1],q=_[2],V=_[3],G=Uj(r,W),K=j==="date"&&R?"datetime":j,U=i.useMemo(function(){return Yj(K,q,V,F,G)},[K,q,V,F,G]),Z=a.getNow(),Q=bn(j,{value:x,postState:function(Pe){return Pe||"date"}}),te=fe(Q,2),X=te[0],ae=te[1],re=X==="date"&&U?"datetime":X,ne=dI(a,r,K),Y=bn(v,{value:g}),ie=fe(Y,2),le=ie[0],de=ie[1],ce=i.useMemo(function(){var Re=$s(le).filter(function(Pe){return Pe});return f?Re:Re.slice(0,1)},[le,f]),ge=Xt(function(Re){de(Re),p&&(Re===null||ce.length!==Re.length||ce.some(function(Pe,be){return!ba(a,r,Pe,Re[be],K)}))&&(p==null||p(f?Re:Re[0]))}),he=Xt(function(Re){if(b==null||b(Re),X===j){var Pe=f?ne(ce,Re):[Re];ge(Pe)}}),Oe=bn(C||ce[0]||Z,{value:S}),je=fe(Oe,2),pe=je[0],we=je[1];i.useEffect(function(){ce[0]&&!S&&we(ce[0])},[ce[0]]);var Se=function(Pe,be){w==null||w(Pe||S,be||X)},Ce=function(Pe){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;we(Pe),h==null||h(Pe),be&&Se(Pe)},De=function(Pe,be){ae(Pe),be&&Ce(be),Se(be,Pe)},Ae=function(Pe){if(he(Pe),Ce(Pe),X!==j){var be=["decade","year"],$e=[].concat(be,["month"]),Me={quarter:[].concat(be,["quarter"]),week:[].concat(Ne($e),["week"]),date:[].concat(Ne($e),["date"])},Le=Me[j]||$e,et=Le.indexOf(X),bt=Le[et+1];bt&&De(bt,Pe)}},Ye=i.useMemo(function(){var Re,Pe;if(Array.isArray(O)){var be=fe(O,2);Re=be[0],Pe=be[1]}else Re=O;return!Re&&!Pe?null:(Re=Re||Pe,Pe=Pe||Re,a.isAfter(Re,Pe)?[Pe,Re]:[Re,Pe])},[O,a]),Ke=Y1(M,N,P),Fe=L[re]||KW[re]||Ag,Ge=i.useContext(sl),Te=i.useMemo(function(){return se(se({},Ge),{},{hideHeader:k})},[Ge,k]),Ee="".concat(D,"-panel"),_e=zg(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return i.createElement(sl.Provider,{value:Te},i.createElement("div",{ref:H,tabIndex:d,className:ue(Ee,ee({},"".concat(Ee,"-rtl"),l==="rtl"))},i.createElement(Fe,ye({},_e,{showTime:U,prefixCls:D,locale:G,generateConfig:a,onModeChange:De,pickerValue:pe,onPickerValueChange:function(Pe){Ce(Pe,!0)},value:ce[0],onSelect:Ae,values:ce,cellRender:Ke,hoverRangeValue:Ye,hoverValue:I}))))}var k0=i.memo(i.forwardRef(UW));function qW(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,l=e.needConfirm,c=e.onSubmit,u=e.range,d=e.hoverValue,f=i.useContext(_o),v=f.prefixCls,g=f.generateConfig,p=i.useCallback(function(w,E){return md(g,t,w,E)},[g,t]),b=i.useMemo(function(){return p(r,1)},[r,p]),C=function(E){a(p(E,-1))},S={onCellDblClick:function(){l&&c()}},h=t==="time",x=se(se({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:h});return u?x.hoverRangeValue=d:x.hoverValue=d,n?i.createElement("div",{className:"".concat(v,"-panels")},i.createElement(sl.Provider,{value:se(se({},S),{},{hideNext:!0})},i.createElement(k0,x)),i.createElement(sl.Provider,{value:se(se({},S),{},{hidePrev:!0})},i.createElement(k0,ye({},x,{pickerValue:b,onPickerValueChange:C})))):i.createElement(sl.Provider,{value:se({},S)},i.createElement(k0,x))}function QE(e){return typeof e=="function"?e():e}function GW(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?i.createElement("div",{className:"".concat(t,"-presets")},i.createElement("ul",null,n.map(function(l,c){var u=l.label,d=l.value;return i.createElement("li",{key:c,onClick:function(){r(QE(d))},onMouseEnter:function(){a(QE(d))},onMouseLeave:function(){a(null)}},u)}))):null}function mI(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,l=e.range,c=e.multiple,u=e.activeInfo,d=u===void 0?[0,0,0]:u,f=e.presets,v=e.onPresetHover,g=e.onPresetSubmit,p=e.onFocus,b=e.onBlur,C=e.onPanelMouseDown,S=e.direction,h=e.value,x=e.onSelect,w=e.isInvalid,E=e.defaultOpenValue,j=e.onOk,R=e.onSubmit,I=i.useContext(_o),O=I.prefixCls,M="".concat(O,"-panel"),N=S==="rtl",P=i.useRef(null),B=i.useRef(null),L=i.useState(0),k=fe(L,2),D=k[0],H=k[1],z=i.useState(0),_=fe(z,2),F=_[0],W=_[1],q=i.useState(0),V=fe(q,2),G=V[0],K=V[1],U=function(Ae){Ae.width&&H(Ae.width)},Z=fe(d,3),Q=Z[0],te=Z[1],X=Z[2],ae=i.useState(0),re=fe(ae,2),ne=re[0],Y=re[1];i.useEffect(function(){Y(10)},[Q]),i.useEffect(function(){if(l&&B.current){var De,Ae=((De=P.current)===null||De===void 0?void 0:De.offsetWidth)||0,Ye=B.current.getBoundingClientRect();if(!Ye.height||Ye.right<0){Y(function(Te){return Math.max(0,Te-1)});return}var Ke=(N?te-Ae:Q)-Ye.left;if(K(Ke),D&&D<X){var Fe=N?Ye.right-(te-Ae+D):Q+Ae-Ye.left-D,Ge=Math.max(0,Fe);W(Ge)}else W(0)}},[ne,N,D,Q,te,X,l]);function ie(De){return De.filter(function(Ae){return Ae})}var le=i.useMemo(function(){return ie($s(h))},[h]),de=r==="time"&&!le.length,ce=i.useMemo(function(){return de?ie([E]):le},[de,le,E]),ge=de?E:le,he=i.useMemo(function(){return ce.length?ce.some(function(De){return w(De)}):!0},[ce,w]),Oe=function(){de&&x(E),j(),R()},je=i.createElement("div",{className:"".concat(O,"-panel-layout")},i.createElement(GW,{prefixCls:O,presets:f,onClick:g,onHover:v}),i.createElement("div",null,i.createElement(qW,ye({},e,{value:ge})),i.createElement(PW,ye({},e,{showNow:c?!1:a,invalid:he,onSubmit:Oe}))));t&&(je=t(je));var pe="".concat(M,"-container"),we="marginLeft",Se="marginRight",Ce=i.createElement("div",{onMouseDown:C,tabIndex:-1,className:ue(pe,"".concat(O,"-").concat(n,"-panel-container")),style:ee(ee({},N?Se:we,F),N?we:Se,"auto"),onFocus:p,onBlur:b},je);return l&&(Ce=i.createElement("div",{onMouseDown:C,ref:B,className:ue("".concat(O,"-range-wrapper"),"".concat(O,"-").concat(r,"-range-wrapper"))},i.createElement("div",{ref:P,className:"".concat(O,"-range-arrow"),style:{left:G}}),i.createElement(ma,{onResize:U},Ce))),Ce}function vI(e,t){var n=e.format,r=e.maskFormat,a=e.generateConfig,l=e.locale,c=e.preserveInvalidOnBlur,u=e.inputReadOnly,d=e.required,f=e["aria-required"],v=e.onSubmit,g=e.onFocus,p=e.onBlur,b=e.onInputChange,C=e.onInvalid,S=e.open,h=e.onOpenChange,x=e.onKeyDown,w=e.onChange,E=e.activeHelp,j=e.name,R=e.autoComplete,I=e.id,O=e.value,M=e.invalid,N=e.placeholder,P=e.disabled,B=e.activeIndex,L=e.allHelp,k=e.picker,D=function(G,K){var U=a.locale.parse(l.locale,G,[K]);return U&&a.isValidate(U)?U:null},H=n[0],z=i.useCallback(function(V){return Gr(V,{locale:l,format:H,generateConfig:a})},[l,a,H]),_=i.useMemo(function(){return O.map(z)},[O,z]),F=i.useMemo(function(){var V=k==="time"?8:10,G=typeof H=="function"?H(a.getNow()).length:H.length;return Math.max(V,G)+2},[H,k,a]),W=function(G){for(var K=0;K<n.length;K+=1){var U=n[K];if(typeof U=="string"){var Z=D(G,U);if(Z)return Z}}return!1},q=function(G){function K(Q){return G!==void 0?Q[G]:Q}var U=Rr(e,{aria:!0,data:!0}),Z=se(se({},U),{},{format:r,validateFormat:function(te){return!!W(te)},preserveInvalidOnBlur:c,readOnly:u,required:d,"aria-required":f,name:j,autoComplete:R,size:F,id:K(I),value:K(_)||"",invalid:K(M),placeholder:K(N),active:B===G,helped:L||E&&B===G,disabled:K(P),onFocus:function(te){g(te,G)},onBlur:function(te){p(te,G)},onSubmit:v,onChange:function(te){b();var X=W(te);if(X){C(!1,G),w(X,G);return}C(!!te,G)},onHelp:function(){h(!0,{index:G})},onKeyDown:function(te){var X=!1;if(x==null||x(te,function(){X=!0}),!te.defaultPrevented&&!X)switch(te.key){case"Escape":h(!1,{index:G});break;case"Enter":S||h(!0);break}}},t==null?void 0:t({valueTexts:_}));return Object.keys(Z).forEach(function(Q){Z[Q]===void 0&&delete Z[Q]}),Z};return[q,z]}var XW=["onMouseEnter","onMouseLeave"];function gI(e){return i.useMemo(function(){return zg(e,XW)},[e])}var YW=["icon","type"],QW=["onClear"];function Bg(e){var t=e.icon,n=e.type,r=Lt(e,YW),a=i.useContext(_o),l=a.prefixCls;return t?i.createElement("span",ye({className:"".concat(l,"-").concat(n)},r),t):null}function Py(e){var t=e.onClear,n=Lt(e,QW);return i.createElement(Bg,ye({},n,{type:"clear",role:"button",onMouseDown:function(a){a.preventDefault()},onClick:function(a){a.stopPropagation(),t()}}))}var L0=["YYYY","MM","DD","HH","mm","ss","SSS"],ZE="顧",ZW=(function(){function e(t){ur(this,e),ee(this,"format",void 0),ee(this,"maskFormat",void 0),ee(this,"cells",void 0),ee(this,"maskCells",void 0),this.format=t;var n=L0.map(function(u){return"(".concat(u,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(u){return ZE.repeat(u.length)});var a=new RegExp("(".concat(L0.join("|"),")")),l=(t.split(a)||[]).filter(function(u){return u}),c=0;this.cells=l.map(function(u){var d=L0.includes(u),f=c,v=c+u.length;return c=v,{text:u,mask:d,start:f,end:v}}),this.maskCells=this.cells.filter(function(u){return u.mask})}return dr(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},a=r.start,l=r.end;return[a||0,l||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var a=this.maskFormat[r],l=n[r];if(!l||a!==ZE&&a!==l)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,l=0;l<this.maskCells.length;l+=1){var c=this.maskCells[l],u=c.start,d=c.end;if(n>=u&&n<=d)return l;var f=Math.min(Math.abs(n-u),Math.abs(n-d));f<r&&(r=f,a=l)}return a}}]),e})();function JW(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 eK=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],zy=i.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,a=r===void 0?!0:r,l=e.suffixIcon,c=e.format,u=e.validateFormat,d=e.onChange;e.onInput;var f=e.helped,v=e.onHelp,g=e.onSubmit,p=e.onKeyDown,b=e.preserveInvalidOnBlur,C=b===void 0?!1:b,S=e.invalid,h=e.clearIcon,x=Lt(e,eK),w=e.value,E=e.onFocus,j=e.onBlur,R=e.onMouseUp,I=i.useContext(_o),O=I.prefixCls,M=I.input,N=M===void 0?"input":M,P="".concat(O,"-input"),B=i.useState(!1),L=fe(B,2),k=L[0],D=L[1],H=i.useState(w),z=fe(H,2),_=z[0],F=z[1],W=i.useState(""),q=fe(W,2),V=q[0],G=q[1],K=i.useState(null),U=fe(K,2),Z=U[0],Q=U[1],te=i.useState(null),X=fe(te,2),ae=X[0],re=X[1],ne=_||"";i.useEffect(function(){F(w)},[w]);var Y=i.useRef(),ie=i.useRef();i.useImperativeHandle(t,function(){return{nativeElement:Y.current,inputElement:ie.current,focus:function(Re){ie.current.focus(Re)},blur:function(){ie.current.blur()}}});var le=i.useMemo(function(){return new ZW(c||"")},[c]),de=i.useMemo(function(){return f?[0,0]:le.getSelection(Z)},[le,Z,f]),ce=fe(de,2),ge=ce[0],he=ce[1],Oe=function(Re){Re&&Re!==c&&Re!==w&&v()},je=Xt(function(_e){u(_e)&&d(_e),F(_e),Oe(_e)}),pe=function(Re){if(!c){var Pe=Re.target.value;Oe(Pe),F(Pe),d(Pe)}},we=function(Re){var Pe=Re.clipboardData.getData("text");u(Pe)&&je(Pe)},Se=i.useRef(!1),Ce=function(){Se.current=!0},De=function(Re){var Pe=Re.target,be=Pe.selectionStart,$e=le.getMaskCellIndex(be);Q($e),re({}),R==null||R(Re),Se.current=!1},Ae=function(Re){D(!0),Q(0),G(""),E(Re)},Ye=function(Re){j(Re)},Ke=function(Re){D(!1),Ye(Re)};J1(n,function(){!n&&!C&&F(w)});var Fe=function(Re){Re.key==="Enter"&&u(ne)&&g(),p==null||p(Re)},Ge=function(Re){Fe(Re);var Pe=Re.key,be=null,$e=null,Me=he-ge,Le=c.slice(ge,he),et=function(dt){Q(function(at){var pt=at+dt;return pt=Math.max(pt,0),pt=Math.min(pt,le.size()-1),pt})},bt=function(dt){var at=JW(Le),pt=fe(at,3),Pt=pt[0],Et=pt[1],ct=pt[2],St=ne.slice(ge,he),yt=Number(St);if(isNaN(yt))return String(ct||(dt>0?Pt:Et));var Je=yt+dt,Ve=Et-Pt+1;return String(Pt+(Ve+Je-Pt)%Ve)};switch(Pe){case"Backspace":case"Delete":be="",$e=Le;break;case"ArrowLeft":be="",et(-1);break;case"ArrowRight":be="",et(1);break;case"ArrowUp":be="",$e=bt(1);break;case"ArrowDown":be="",$e=bt(-1);break;default:isNaN(Number(Pe))||(be=V+Pe,$e=be);break}if(be!==null&&(G(be),be.length>=Me&&(et(1),G(""))),$e!==null){var We=ne.slice(0,ge)+X1($e,Me)+ne.slice(he);je(We.slice(0,c.length))}re({})},Te=i.useRef();nn(function(){if(!(!k||!c||Se.current)){if(!le.match(ne)){je(c);return}return ie.current.setSelectionRange(ge,he),Te.current=Yt(function(){ie.current.setSelectionRange(ge,he)}),function(){Yt.cancel(Te.current)}}},[le,c,k,ne,Z,ge,he,ae,je]);var Ee=c?{onFocus:Ae,onBlur:Ke,onKeyDown:Ge,onMouseDown:Ce,onMouseUp:De,onPaste:we}:{};return i.createElement("div",{ref:Y,className:ue(P,ee(ee({},"".concat(P,"-active"),n&&a),"".concat(P,"-placeholder"),f))},i.createElement(N,ye({ref:ie,"aria-invalid":S,autoComplete:"off"},x,{onKeyDown:Fe,onBlur:Ye},Ee,{value:ne,onChange:pe})),i.createElement(Bg,{type:"suffix",icon:l}),h)}),tK=["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"],nK=["index"];function rK(e,t){var n=e.id,r=e.prefix,a=e.clearIcon,l=e.suffixIcon,c=e.separator,u=c===void 0?"~":c,d=e.activeIndex;e.activeHelp,e.allHelp;var f=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var v=e.placeholder,g=e.className,p=e.style,b=e.onClick,C=e.onClear,S=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var h=e.disabled,x=e.invalid;e.inputReadOnly;var w=e.direction;e.onOpenChange;var E=e.onActiveInfo;e.placement;var j=e.onMouseDown;e.required,e["aria-required"];var R=e.autoFocus,I=e.tabIndex,O=Lt(e,tK),M=w==="rtl",N=i.useContext(_o),P=N.prefixCls,B=i.useMemo(function(){if(typeof n=="string")return[n];var ae=n||{};return[ae.start,ae.end]},[n]),L=i.useRef(),k=i.useRef(),D=i.useRef(),H=function(re){var ne;return(ne=[k,D][re])===null||ne===void 0?void 0:ne.current};i.useImperativeHandle(t,function(){return{nativeElement:L.current,focus:function(re){if($t(re)==="object"){var ne,Y=re||{},ie=Y.index,le=ie===void 0?0:ie,de=Lt(Y,nK);(ne=H(le))===null||ne===void 0||ne.focus(de)}else{var ce;(ce=H(re??0))===null||ce===void 0||ce.focus()}},blur:function(){var re,ne;(re=H(0))===null||re===void 0||re.blur(),(ne=H(1))===null||ne===void 0||ne.blur()}}});var z=gI(O),_=i.useMemo(function(){return Array.isArray(v)?v:[v,v]},[v]),F=vI(se(se({},e),{},{id:B,placeholder:_})),W=fe(F,1),q=W[0],V=i.useState({position:"absolute",width:0}),G=fe(V,2),K=G[0],U=G[1],Z=Xt(function(){var ae=H(d);if(ae){var re=ae.nativeElement.getBoundingClientRect(),ne=L.current.getBoundingClientRect(),Y=re.left-ne.left;U(function(ie){return se(se({},ie),{},{width:re.width,left:Y})}),E([re.left,re.right,ne.width])}});i.useEffect(function(){Z()},[d]);var Q=a&&(S[0]&&!h[0]||S[1]&&!h[1]),te=R&&!h[0],X=R&&!te&&!h[1];return i.createElement(ma,{onResize:Z},i.createElement("div",ye({},z,{className:ue(P,"".concat(P,"-range"),ee(ee(ee(ee({},"".concat(P,"-focused"),f),"".concat(P,"-disabled"),h.every(function(ae){return ae})),"".concat(P,"-invalid"),x.some(function(ae){return ae})),"".concat(P,"-rtl"),M),g),style:p,ref:L,onClick:b,onMouseDown:function(re){var ne=re.target;ne!==k.current.inputElement&&ne!==D.current.inputElement&&re.preventDefault(),j==null||j(re)}}),r&&i.createElement("div",{className:"".concat(P,"-prefix")},r),i.createElement(zy,ye({ref:k},q(0),{autoFocus:te,tabIndex:I,"date-range":"start"})),i.createElement("div",{className:"".concat(P,"-range-separator")},u),i.createElement(zy,ye({ref:D},q(1),{autoFocus:X,tabIndex:I,"date-range":"end"})),i.createElement("div",{className:"".concat(P,"-active-bar"),style:K}),i.createElement(Bg,{type:"suffix",icon:l}),Q&&i.createElement(Py,{icon:a,onClear:C})))}var aK=i.forwardRef(rK);function JE(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Fm(e){return e===1?"end":"start"}function oK(e,t){var n=Jj(e,function(){var cn=e.disabled,gt=e.allowEmpty,jt=JE(cn,!1),fn=JE(gt,!1);return{disabled:jt,allowEmpty:fn}}),r=fe(n,6),a=r[0],l=r[1],c=r[2],u=r[3],d=r[4],f=r[5],v=a.prefixCls,g=a.styles,p=a.classNames,b=a.defaultValue,C=a.value,S=a.needConfirm,h=a.onKeyDown,x=a.disabled,w=a.allowEmpty,E=a.disabledDate,j=a.minDate,R=a.maxDate,I=a.defaultOpen,O=a.open,M=a.onOpenChange,N=a.locale,P=a.generateConfig,B=a.picker,L=a.showNow,k=a.showToday,D=a.showTime,H=a.mode,z=a.onPanelChange,_=a.onCalendarChange,F=a.onOk,W=a.defaultPickerValue,q=a.pickerValue,V=a.onPickerValueChange,G=a.inputReadOnly,K=a.suffixIcon,U=a.onFocus,Z=a.onBlur,Q=a.presets,te=a.ranges,X=a.components,ae=a.cellRender,re=a.dateRender,ne=a.monthCellRender,Y=a.onClick,ie=tI(t),le=eI(O,I,x,M),de=fe(le,2),ce=de[0],ge=de[1],he=function(gt,jt){(x.some(function(fn){return!fn})||!gt)&&ge(gt,jt)},Oe=sI(P,N,u,!0,!1,b,C,_,F),je=fe(Oe,5),pe=je[0],we=je[1],Se=je[2],Ce=je[3],De=je[4],Ae=Se(),Ye=rI(x,w,ce),Ke=fe(Ye,9),Fe=Ke[0],Ge=Ke[1],Te=Ke[2],Ee=Ke[3],_e=Ke[4],Re=Ke[5],Pe=Ke[6],be=Ke[7],$e=Ke[8],Me=function(gt,jt){Ge(!0),U==null||U(gt,{range:Fm(jt??Ee)})},Le=function(gt,jt){Ge(!1),Z==null||Z(gt,{range:Fm(jt??Ee)})},et=i.useMemo(function(){if(!D)return null;var cn=D.disabledTime,gt=cn?function(jt){var fn=Fm(Ee),zn=Fj(Ae,Pe,Ee);return cn(jt,fn,{from:zn})}:void 0;return se(se({},D),{},{disabledTime:gt})},[D,Ee,Ae,Pe]),bt=bn([B,B],{value:H}),We=fe(bt,2),tt=We[0],dt=We[1],at=tt[Ee]||B,pt=at==="date"&&et?"datetime":at,Pt=pt===B&&pt!=="time",Et=uI(B,at,L,k,!0),ct=cI(a,pe,we,Se,Ce,x,u,Fe,ce,f),St=fe(ct,2),yt=St[0],Je=St[1],Ve=IW(Ae,x,Pe,P,N,E),Ue=Wj(Ae,f,w),mt=fe(Ue,2),Mt=mt[0],It=mt[1],Vt=aI(P,N,Ae,tt,ce,Ee,l,Pt,W,q,et==null?void 0:et.defaultOpenValue,V,j,R),ft=fe(Vt,2),lt=ft[0],At=ft[1],Ut=Xt(function(cn,gt,jt){var fn=xd(tt,Ee,gt);if((fn[0]!==tt[0]||fn[1]!==tt[1])&&dt(fn),z&&jt!==!1){var zn=Ne(Ae);cn&&(zn[Ee]=cn),z(zn,fn)}}),rn=function(gt,jt){return xd(Ae,jt,gt)},Qt=function(gt,jt){var fn=Ae;gt&&(fn=rn(gt,Ee)),be(Ee);var zn=Re(fn);Ce(fn),yt(Ee,zn===null),zn===null?he(!1,{force:!0}):jt||ie.current.focus({index:zn})},vn=function(gt){var jt,fn=gt.target.getRootNode();if(!ie.current.nativeElement.contains((jt=fn.activeElement)!==null&&jt!==void 0?jt:document.activeElement)){var zn=x.findIndex(function(Zn){return!Zn});zn>=0&&ie.current.focus({index:zn})}he(!0),Y==null||Y(gt)},qt=function(){Je(null),he(!1,{force:!0})},un=i.useState(null),st=fe(un,2),Ct=st[0],ht=st[1],Xe=i.useState(null),Qe=fe(Xe,2),ut=Qe[0],zt=Qe[1],Kt=i.useMemo(function(){return ut||Ae},[Ae,ut]);i.useEffect(function(){ce||zt(null)},[ce]);var vt=i.useState([0,0,0]),Nt=fe(vt,2),Ft=Nt[0],xn=Nt[1],_n=nI(Q,te),Pn=function(gt){zt(gt),ht("preset")},Wn=function(gt){var jt=Je(gt);jt&&he(!1,{force:!0})},Rn=function(gt){Qt(gt)},An=function(gt){zt(gt?rn(gt,Ee):null),ht("cell")},Cr=function(gt){he(!0),Me(gt)},Mr=function(){Te("panel")},pr=function(gt){var jt=xd(Ae,Ee,gt);Ce(jt),!S&&!c&&l===pt&&Qt(gt)},Cn=function(){he(!1)},Bt=Y1(ae,re,ne,Fm(Ee)),kt=Ae[Ee]||null,an=Xt(function(cn){return f(cn,{activeIndex:Ee})}),Tt=i.useMemo(function(){var cn=Rr(a,!1),gt=wn(a,[].concat(Ne(Object.keys(cn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return gt},[a]),Dt=i.createElement(mI,ye({},Tt,{showNow:Et,showTime:et,range:!0,multiplePanel:Pt,activeInfo:Ft,disabledDate:Ve,onFocus:Cr,onBlur:Le,onPanelMouseDown:Mr,picker:B,mode:at,internalMode:pt,onPanelChange:Ut,format:d,value:kt,isInvalid:an,onChange:null,onSelect:pr,pickerValue:lt,defaultOpenValue:$s(D==null?void 0:D.defaultOpenValue)[Ee],onPickerValueChange:At,hoverValue:Kt,onHover:An,needConfirm:S,onSubmit:Qt,onOk:De,presets:_n,onPresetHover:Pn,onPresetSubmit:Wn,onNow:Rn,cellRender:Bt})),mn=function(gt,jt){var fn=rn(gt,jt);Ce(fn)},jn=function(){Te("input")},Yn=function(gt,jt){var fn=Pe.length,zn=Pe[fn-1];if(fn&&zn!==jt&&S&&!w[zn]&&!$e(zn)&&Ae[zn]){ie.current.focus({index:zn});return}Te("input"),he(!0,{inherit:!0}),Ee!==jt&&ce&&!S&&c&&Qt(null,!0),_e(jt),Me(gt,jt)},Sr=function(gt,jt){if(he(!1),!S&&Te()==="input"){var fn=Re(Ae);yt(Ee,fn===null)}Le(gt,jt)},Qn=function(gt,jt){gt.key==="Tab"&&Qt(null,!0),h==null||h(gt,jt)},wr=i.useMemo(function(){return{prefixCls:v,locale:N,generateConfig:P,button:X.button,input:X.input}},[v,N,P,X.button,X.input]);return nn(function(){ce&&Ee!==void 0&&Ut(null,B,!1)},[ce,Ee,B]),nn(function(){var cn=Te();!ce&&cn==="input"&&(he(!1),Qt(null,!0)),!ce&&c&&!S&&cn==="panel"&&(he(!0),Qt())},[ce]),i.createElement(_o.Provider,{value:wr},i.createElement(Lj,ye({},Vj(a),{popupElement:Dt,popupStyle:g.popup,popupClassName:p.popup,visible:ce,onClose:Cn,range:!0}),i.createElement(aK,ye({},a,{ref:ie,suffixIcon:K,activeIndex:Fe||ce?Ee:null,activeHelp:!!ut,allHelp:!!ut&&Ct==="preset",focused:Fe,onFocus:Yn,onBlur:Sr,onKeyDown:Qn,onSubmit:Qt,value:Kt,maskFormat:d,onChange:mn,onInputChange:jn,format:u,inputReadOnly:G,disabled:x,open:ce,onOpenChange:he,onClick:vn,onClear:qt,invalid:Mt,onInvalid:It,onActiveInfo:xn}))))}var iK=i.forwardRef(oK);function lK(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,l=a===void 0?"×":a,c=e.formatDate,u=e.disabled,d=e.maxTagCount,f=e.placeholder,v="".concat(t,"-selector"),g="".concat(t,"-selection"),p="".concat(g,"-overflow");function b(h,x){return i.createElement("span",{className:ue("".concat(g,"-item")),title:typeof h=="string"?h:null},i.createElement("span",{className:"".concat(g,"-item-content")},h),!u&&x&&i.createElement("span",{onMouseDown:function(E){E.preventDefault()},onClick:x,className:"".concat(g,"-item-remove")},l))}function C(h){var x=c(h),w=function(j){j&&j.stopPropagation(),r(h)};return b(x,w)}function S(h){var x="+ ".concat(h.length," ...");return b(x)}return i.createElement("div",{className:v},i.createElement(wo,{prefixCls:p,data:n,renderItem:C,renderRest:S,itemKey:function(x){return c(x)},maxCount:d}),!n.length&&i.createElement("span",{className:"".concat(t,"-selection-placeholder")},f))}var sK=["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 cK(e,t){e.id;var n=e.open,r=e.prefix,a=e.clearIcon,l=e.suffixIcon;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var u=e.locale,d=e.generateConfig,f=e.placeholder,v=e.className,g=e.style,p=e.onClick,b=e.onClear,C=e.internalPicker,S=e.value,h=e.onChange,x=e.onSubmit;e.onInputChange;var w=e.multiple,E=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var j=e.disabled,R=e.invalid;e.inputReadOnly;var I=e.direction;e.onOpenChange;var O=e.onMouseDown;e.required,e["aria-required"];var M=e.autoFocus,N=e.tabIndex,P=e.removeIcon,B=Lt(e,sK),L=I==="rtl",k=i.useContext(_o),D=k.prefixCls,H=i.useRef(),z=i.useRef();i.useImperativeHandle(t,function(){return{nativeElement:H.current,focus:function(te){var X;(X=z.current)===null||X===void 0||X.focus(te)},blur:function(){var te;(te=z.current)===null||te===void 0||te.blur()}}});var _=gI(B),F=function(te){h([te])},W=function(te){var X=S.filter(function(ae){return ae&&!ba(d,u,ae,te,C)});h(X),n||x()},q=vI(se(se({},e),{},{onChange:F}),function(Q){var te=Q.valueTexts;return{value:te[0]||"",active:c}}),V=fe(q,2),G=V[0],K=V[1],U=!!(a&&S.length&&!j),Z=w?i.createElement(i.Fragment,null,i.createElement(lK,{prefixCls:D,value:S,onRemove:W,formatDate:K,maxTagCount:E,disabled:j,removeIcon:P,placeholder:f}),i.createElement("input",{className:"".concat(D,"-multiple-input"),value:S.map(K).join(","),ref:z,readOnly:!0,autoFocus:M,tabIndex:N}),i.createElement(Bg,{type:"suffix",icon:l}),U&&i.createElement(Py,{icon:a,onClear:b})):i.createElement(zy,ye({ref:z},G(),{autoFocus:M,tabIndex:N,suffixIcon:l,clearIcon:U&&i.createElement(Py,{icon:a,onClear:b}),showActiveCls:!1}));return i.createElement("div",ye({},_,{className:ue(D,ee(ee(ee(ee(ee({},"".concat(D,"-multiple"),w),"".concat(D,"-focused"),c),"".concat(D,"-disabled"),j),"".concat(D,"-invalid"),R),"".concat(D,"-rtl"),L),v),style:g,ref:H,onClick:p,onMouseDown:function(te){var X,ae=te.target;ae!==((X=z.current)===null||X===void 0?void 0:X.inputElement)&&te.preventDefault(),O==null||O(te)}}),r&&i.createElement("div",{className:"".concat(D,"-prefix")},r),Z)}var uK=i.forwardRef(cK);function dK(e,t){var n=Jj(e),r=fe(n,6),a=r[0],l=r[1],c=r[2],u=r[3],d=r[4],f=r[5],v=a,g=v.prefixCls,p=v.styles,b=v.classNames,C=v.order,S=v.defaultValue,h=v.value,x=v.needConfirm,w=v.onChange,E=v.onKeyDown,j=v.disabled,R=v.disabledDate,I=v.minDate,O=v.maxDate,M=v.defaultOpen,N=v.open,P=v.onOpenChange,B=v.locale,L=v.generateConfig,k=v.picker,D=v.showNow,H=v.showToday,z=v.showTime,_=v.mode,F=v.onPanelChange,W=v.onCalendarChange,q=v.onOk,V=v.multiple,G=v.defaultPickerValue,K=v.pickerValue,U=v.onPickerValueChange,Z=v.inputReadOnly,Q=v.suffixIcon,te=v.removeIcon,X=v.onFocus,ae=v.onBlur,re=v.presets,ne=v.components,Y=v.cellRender,ie=v.dateRender,le=v.monthCellRender,de=v.onClick,ce=tI(t);function ge(Tt){return Tt===null?null:V?Tt:Tt[0]}var he=dI(L,B,l),Oe=eI(N,M,[j],P),je=fe(Oe,2),pe=je[0],we=je[1],Se=function(Dt,mn,jn){if(W){var Yn=se({},jn);delete Yn.range,W(ge(Dt),ge(mn),Yn)}},Ce=function(Dt){q==null||q(ge(Dt))},De=sI(L,B,u,!1,C,S,h,Se,Ce),Ae=fe(De,5),Ye=Ae[0],Ke=Ae[1],Fe=Ae[2],Ge=Ae[3],Te=Ae[4],Ee=Fe(),_e=rI([j]),Re=fe(_e,4),Pe=Re[0],be=Re[1],$e=Re[2],Me=Re[3],Le=function(Dt){be(!0),X==null||X(Dt,{})},et=function(Dt){be(!1),ae==null||ae(Dt,{})},bt=bn(k,{value:_}),We=fe(bt,2),tt=We[0],dt=We[1],at=tt==="date"&&z?"datetime":tt,pt=uI(k,tt,D,H),Pt=w&&function(Tt,Dt){w(ge(Tt),ge(Dt))},Et=cI(se(se({},a),{},{onChange:Pt}),Ye,Ke,Fe,Ge,[],u,Pe,pe,f),ct=fe(Et,2),St=ct[1],yt=Wj(Ee,f),Je=fe(yt,2),Ve=Je[0],Ue=Je[1],mt=i.useMemo(function(){return Ve.some(function(Tt){return Tt})},[Ve]),Mt=function(Dt,mn){if(U){var jn=se(se({},mn),{},{mode:mn.mode[0]});delete jn.range,U(Dt[0],jn)}},It=aI(L,B,Ee,[tt],pe,Me,l,!1,G,K,$s(z==null?void 0:z.defaultOpenValue),Mt,I,O),Vt=fe(It,2),ft=Vt[0],lt=Vt[1],At=Xt(function(Tt,Dt,mn){if(dt(Dt),F&&mn!==!1){var jn=Tt||Ee[Ee.length-1];F(jn,Dt)}}),Ut=function(){St(Fe()),we(!1,{force:!0})},rn=function(Dt){!j&&!ce.current.nativeElement.contains(document.activeElement)&&ce.current.focus(),we(!0),de==null||de(Dt)},Qt=function(){St(null),we(!1,{force:!0})},vn=i.useState(null),qt=fe(vn,2),un=qt[0],st=qt[1],Ct=i.useState(null),ht=fe(Ct,2),Xe=ht[0],Qe=ht[1],ut=i.useMemo(function(){var Tt=[Xe].concat(Ne(Ee)).filter(function(Dt){return Dt});return V?Tt:Tt.slice(0,1)},[Ee,Xe,V]),zt=i.useMemo(function(){return!V&&Xe?[Xe]:Ee.filter(function(Tt){return Tt})},[Ee,Xe,V]);i.useEffect(function(){pe||Qe(null)},[pe]);var Kt=nI(re),vt=function(Dt){Qe(Dt),st("preset")},Nt=function(Dt){var mn=V?he(Fe(),Dt):[Dt],jn=St(mn);jn&&!V&&we(!1,{force:!0})},Ft=function(Dt){Nt(Dt)},xn=function(Dt){Qe(Dt),st("cell")},_n=function(Dt){we(!0),Le(Dt)},Pn=function(Dt){if($e("panel"),!(V&&at!==k)){var mn=V?he(Fe(),Dt):[Dt];Ge(mn),!x&&!c&&l===at&&Ut()}},Wn=function(){we(!1)},Rn=Y1(Y,ie,le),An=i.useMemo(function(){var Tt=Rr(a,!1),Dt=wn(a,[].concat(Ne(Object.keys(Tt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return se(se({},Dt),{},{multiple:a.multiple})},[a]),Cr=i.createElement(mI,ye({},An,{showNow:pt,showTime:z,disabledDate:R,onFocus:_n,onBlur:et,picker:k,mode:tt,internalMode:at,onPanelChange:At,format:d,value:Ee,isInvalid:f,onChange:null,onSelect:Pn,pickerValue:ft,defaultOpenValue:z==null?void 0:z.defaultOpenValue,onPickerValueChange:lt,hoverValue:ut,onHover:xn,needConfirm:x,onSubmit:Ut,onOk:Te,presets:Kt,onPresetHover:vt,onPresetSubmit:Nt,onNow:Ft,cellRender:Rn})),Mr=function(Dt){Ge(Dt)},pr=function(){$e("input")},Cn=function(Dt){$e("input"),we(!0,{inherit:!0}),Le(Dt)},Bt=function(Dt){we(!1),et(Dt)},kt=function(Dt,mn){Dt.key==="Tab"&&Ut(),E==null||E(Dt,mn)},an=i.useMemo(function(){return{prefixCls:g,locale:B,generateConfig:L,button:ne.button,input:ne.input}},[g,B,L,ne.button,ne.input]);return nn(function(){pe&&Me!==void 0&&At(null,k,!1)},[pe,Me,k]),nn(function(){var Tt=$e();!pe&&Tt==="input"&&(we(!1),Ut()),!pe&&c&&!x&&Tt==="panel"&&Ut()},[pe]),i.createElement(_o.Provider,{value:an},i.createElement(Lj,ye({},Vj(a),{popupElement:Cr,popupStyle:p.popup,popupClassName:b.popup,visible:pe,onClose:Wn}),i.createElement(uK,ye({},a,{ref:ce,suffixIcon:Q,removeIcon:te,activeHelp:!!Xe,allHelp:!!Xe&&un==="preset",focused:Pe,onFocus:Cn,onBlur:Bt,onKeyDown:kt,onSubmit:Ut,value:zt,maskFormat:d,onChange:Mr,onInputChange:pr,internalPicker:l,format:u,inputReadOnly:Z,disabled:j,open:pe,onOpenChange:we,onClick:rn,onClear:Qt,invalid:mt,onInvalid:function(Dt){Ue(Dt,0)}}))))}var fK=i.forwardRef(dK);const pI=i.createContext(null),mK=pI.Provider,hI=i.createContext(null),vK=hI.Provider;var gK=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],bI=i.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,l=e.style,c=e.checked,u=e.disabled,d=e.defaultChecked,f=d===void 0?!1:d,v=e.type,g=v===void 0?"checkbox":v,p=e.title,b=e.onChange,C=Lt(e,gK),S=i.useRef(null),h=i.useRef(null),x=bn(f,{value:c}),w=fe(x,2),E=w[0],j=w[1];i.useImperativeHandle(t,function(){return{focus:function(M){var N;(N=S.current)===null||N===void 0||N.focus(M)},blur:function(){var M;(M=S.current)===null||M===void 0||M.blur()},input:S.current,nativeElement:h.current}});var R=ue(r,a,ee(ee({},"".concat(r,"-checked"),E),"".concat(r,"-disabled"),u)),I=function(M){u||("checked"in e||j(M.target.checked),b==null||b({target:se(se({},e),{},{type:g,checked:M.target.checked}),stopPropagation:function(){M.stopPropagation()},preventDefault:function(){M.preventDefault()},nativeEvent:M.nativeEvent}))};return i.createElement("span",{className:R,title:p,style:l,ref:h},i.createElement("input",ye({},C,{className:"".concat(r,"-input"),ref:S,onChange:I,disabled:u,checked:!!E,type:g})),i.createElement("span",{className:"".concat(r,"-inner")}))});function yI(e){const t=ve.useRef(null),n=()=>{Yt.cancel(t.current),t.current=null};return[()=>{n(),t.current=Yt(()=>{t.current=null})},l=>{t.current&&(l.stopPropagation(),n()),e==null||e(l)}]}const pK=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},dn(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"}})}},hK=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:l,motionDurationMid:c,motionEaseInOutCirc:u,colorBgContainer:d,colorBorder:f,lineWidth:v,colorBgContainerDisabled:g,colorTextDisabled:p,paddingXS:b,dotColorDisabled:C,lineType:S,radioColor:h,radioBgColor:x,calc:w}=e,E=`${t}-inner`,R=w(a).sub(w(4).mul(2)),I=w(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},dn(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:`${oe(v)} ${S} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},dn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
287
|
+
&:hover ${E}`]:{borderColor:r},[`${t}-input:focus-visible + ${E}`]:jo(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:I,height:I,marginBlockStart:w(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:w(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:I,transform:"scale(0)",opacity:0,transition:`all ${l} ${u}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:I,height:I,backgroundColor:d,borderColor:f,borderStyle:"solid",borderWidth:v,borderRadius:"50%",transition:`all ${c}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[E]:{borderColor:r,backgroundColor:x,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${l} ${u}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[E]:{backgroundColor:g,borderColor:f,cursor:"not-allowed","&::after":{backgroundColor:C}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[E]:{"&::after":{transform:`scale(${w(R).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:b,paddingInlineEnd:b}})}},bK=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:l,colorBorder:c,motionDurationMid:u,buttonPaddingInline:d,fontSize:f,buttonBg:v,fontSizeLG:g,controlHeightLG:p,controlHeightSM:b,paddingXS:C,borderRadius:S,borderRadiusSM:h,borderRadiusLG:x,buttonCheckedBg:w,buttonSolidCheckedColor:E,colorTextDisabled:j,colorBgContainerDisabled:R,buttonCheckedBgDisabled:I,buttonCheckedColorDisabled:O,colorPrimary:M,colorPrimaryHover:N,colorPrimaryActive:P,buttonSolidCheckedBg:B,buttonSolidCheckedHoverBg:L,buttonSolidCheckedActiveBg:k,calc:D}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:d,paddingBlock:0,color:t,fontSize:f,lineHeight:oe(D(n).sub(D(a).mul(2)).equal()),background:v,border:`${oe(a)} ${l} ${c}`,borderBlockStartWidth:D(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:D(a).mul(-1).equal()},"&:first-child":{borderInlineStart:`${oe(a)} ${l} ${c}`,borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S},"&:first-child:last-child":{borderRadius:S},[`${r}-group-large &`]:{height:p,fontSize:g,lineHeight:oe(D(p).sub(D(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${r}-group-small &`]:{height:b,paddingInline:D(C).sub(a).equal(),paddingBlock:0,lineHeight:oe(D(b).sub(D(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},"&:hover":{position:"relative",color:M},"&:has(:focus-visible)":jo(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:M,background:w,borderColor:M,"&::before":{backgroundColor:M},"&:first-child":{borderColor:M},"&: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:E,background:B,borderColor:B,"&:hover":{color:E,background:L,borderColor:L},"&:active":{color:E,background:k,borderColor:k}},"&-disabled":{color:j,backgroundColor:R,borderColor:c,cursor:"not-allowed","&:first-child, &:hover":{color:j,backgroundColor:R,borderColor:c}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:I,borderColor:c,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},yK=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:l,colorText:c,colorBgContainer:u,colorTextDisabled:d,controlItemBgActiveDisabled:f,colorTextLightSolid:v,colorPrimary:g,colorPrimaryHover:p,colorPrimaryActive:b,colorWhite:C}=e,S=4,h=l,x=t?h-S*2:h-(S+a)*2;return{radioSize:h,dotSize:x,dotColorDisabled:d,buttonSolidCheckedColor:v,buttonSolidCheckedBg:g,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:b,buttonBg:u,buttonCheckedBg:u,buttonColor:c,buttonCheckedBgDisabled:f,buttonCheckedColorDisabled:d,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?g:C,radioBgColor:t?u:g}},CI=sn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${oe(n)} ${t}`,l=tn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[pK(l),hK(l),bK(l)]},yK,{unitless:{radioSize:!0,dotSize:!0}});var CK=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 SK=(e,t)=>{var n,r;const a=i.useContext(pI),l=i.useContext(hI),{getPrefixCls:c,direction:u,radio:d}=i.useContext(Rt),f=i.useRef(null),v=Ir(t,f),{isFormItemInput:g}=i.useContext(Wr),p=z=>{var _,F;(_=e.onChange)===null||_===void 0||_.call(e,z),(F=a==null?void 0:a.onChange)===null||F===void 0||F.call(a,z)},{prefixCls:b,className:C,rootClassName:S,children:h,style:x,title:w}=e,E=CK(e,["prefixCls","className","rootClassName","children","style","title"]),j=c("radio",b),R=((a==null?void 0:a.optionType)||l)==="button",I=R?`${j}-button`:j,O=cr(j),[M,N,P]=CI(j,O),B=Object.assign({},E),L=i.useContext(Vr);a&&(B.name=a.name,B.onChange=p,B.checked=e.value===a.value,B.disabled=(n=B.disabled)!==null&&n!==void 0?n:a.disabled),B.disabled=(r=B.disabled)!==null&&r!==void 0?r:L;const k=ue(`${I}-wrapper`,{[`${I}-wrapper-checked`]:B.checked,[`${I}-wrapper-disabled`]:B.disabled,[`${I}-wrapper-rtl`]:u==="rtl",[`${I}-wrapper-in-form-item`]:g,[`${I}-wrapper-block`]:!!(a!=null&&a.block)},d==null?void 0:d.className,C,S,N,P,O),[D,H]=yI(B.onClick);return M(i.createElement(ef,{component:"Radio",disabled:B.disabled},i.createElement("label",{className:k,style:Object.assign(Object.assign({},d==null?void 0:d.style),x),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:w,onClick:D},i.createElement(bI,Object.assign({},B,{className:ue(B.className,{[sg]:!R}),type:"radio",prefixCls:I,ref:v,onClick:H})),h!==void 0?i.createElement("span",{className:`${I}-label`},h):null)))},kv=i.forwardRef(SK),xK=["parentNode"],$K="form_item";function $d(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function SI(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:xK.includes(n)?`${$K}_${n}`:n}function xI(e,t,n,r,a,l){let c=r;return l!==void 0?c=l:n.validating?c="validating":e.length?c="error":t.length?c="warning":(n.touched||a&&n.validated)&&(c="success"),c}var wK=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 Dy(e){return $d(e).join("_")}function eO(e,t){const n=t.getFieldInstance(e),r=Qd(n);if(r)return r;const a=SI($d(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function $I(e){const[t]=M1(),n=i.useRef({}),r=i.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>l=>{const c=Dy(a);l?n.current[c]=l:delete n.current[c]}},scrollToField:(a,l={})=>{const{focus:c}=l,u=wK(l,["focus"]),d=eO(a,r);d&&(s_(d,Object.assign({scrollMode:"if-needed",block:"nearest"},u)),c&&r.focusField(a))},focusField:a=>{var l,c;const u=r.getFieldInstance(a);typeof(u==null?void 0:u.focus)=="function"?u.focus():(c=(l=eO(a,r))===null||l===void 0?void 0:l.focus)===null||c===void 0||c.call(l)},getFieldInstance:a=>{const l=Dy(a);return n.current[l]}}),[e,t]);return[r]}const EK=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=i.useContext(Rt),{name:a}=i.useContext(Wr),l=af(Dy(a)),{prefixCls:c,className:u,rootClassName:d,options:f,buttonStyle:v="outline",disabled:g,children:p,size:b,style:C,id:S,optionType:h,name:x=l,defaultValue:w,value:E,block:j=!1,onChange:R,onMouseEnter:I,onMouseLeave:O,onFocus:M,onBlur:N}=e,[P,B]=bn(w,{value:E}),L=i.useCallback(K=>{const U=P,Z=K.target.value;"value"in e||B(Z),Z!==U&&(R==null||R(K))},[P,B,R]),k=n("radio",c),D=`${k}-group`,H=cr(k),[z,_,F]=CI(k,H);let W=p;f&&f.length>0&&(W=f.map(K=>typeof K=="string"||typeof K=="number"?i.createElement(kv,{key:K.toString(),prefixCls:k,disabled:g,value:K,checked:P===K},K):i.createElement(kv,{key:`radio-group-value-options-${K.value}`,prefixCls:k,disabled:K.disabled||g,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 q=Nr(b),V=ue(D,`${D}-${v}`,{[`${D}-${q}`]:q,[`${D}-rtl`]:r==="rtl",[`${D}-block`]:j},u,d,_,F,H),G=i.useMemo(()=>({onChange:L,value:P,disabled:g,name:x,optionType:h,block:j}),[L,P,g,x,h,j]);return z(i.createElement("div",Object.assign({},Rr(e,{aria:!0,data:!0}),{className:V,style:C,onMouseEnter:I,onMouseLeave:O,onFocus:M,onBlur:N,id:S,ref:t}),i.createElement(mK,{value:G},W)))}),OK=i.memo(EK);var RK=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 jK=(e,t)=>{const{getPrefixCls:n}=i.useContext(Rt),{prefixCls:r}=e,a=RK(e,["prefixCls"]),l=n("radio",r);return i.createElement(vK,{value:"button"},i.createElement(kv,Object.assign({prefixCls:l},a,{type:"radio",ref:t})))},IK=i.forwardRef(jK),_r=kv;_r.Button=IK;_r.Group=OK;_r.__ANT_RADIO=!0;function Es(e){return tn(e,{inputAffixPadding:e.paddingXXS})}const Os=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:l,controlHeightLG:c,fontSizeLG:u,lineHeightLG:d,paddingSM:f,controlPaddingHorizontalSM:v,controlPaddingHorizontal:g,colorFillAlter:p,colorPrimaryHover:b,colorPrimary:C,controlOutlineWidth:S,controlOutline:h,colorErrorOutline:x,colorWarningOutline:w,colorBgContainer:E,inputFontSize:j,inputFontSizeLG:R,inputFontSizeSM:I}=e,O=j||n,M=I||O,N=R||u,P=Math.round((t-O*r)/2*10)/10-a,B=Math.round((l-M*r)/2*10)/10-a,L=Math.ceil((c-N*d)/2*10)/10-a;return{paddingBlock:Math.max(P,0),paddingBlockSM:Math.max(B,0),paddingBlockLG:Math.max(L,0),paddingInline:f-a,paddingInlineSM:v-a,paddingInlineLG:g-a,addonBg:p,activeBorderColor:C,hoverBorderColor:b,activeShadow:`0 0 0 ${S}px ${h}`,errorActiveShadow:`0 0 0 ${S}px ${x}`,warningActiveShadow:`0 0 0 ${S}px ${w}`,hoverBg:E,activeBg:E,inputFontSize:O,inputFontSizeLG:N,inputFontSizeSM:M}},NK=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),kg=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({},NK(tn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),tC=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),tO=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},tC(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),nC=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tC(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},kg(e))}),tO(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),tO(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),nO=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),wI=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},nO(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),nO(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},kg(e))}})}),rC=(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)}},EI=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},rO=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},EI(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),aC=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},EI(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},kg(e))}),rO(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),rO(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),aO=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),OI=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},aO(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),aO(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),RI=(e,t)=>({background:e.colorBgContainer,borderWidth:`${oe(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),oO=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},RI(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`}}),oC=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},RI(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"}}),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)}),iC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),jI=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${oe(t)} ${oe(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},lC=e=>({padding:`${oe(e.paddingBlockSM)} ${oe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),mf=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${oe(e.paddingBlock)} ${oe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},iC(e.colorTextPlaceholder)),{"&-lg":Object.assign({},jI(e)),"&-sm":Object.assign({},lC(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),II=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({},jI(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},lC(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 ${oe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${oe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${oe(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:`${oe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${oe(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"},Ko()),{[`${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},[`
|
|
288
|
+
& > ${t}-affix-wrapper,
|
|
289
|
+
& > ${t}-number-affix-wrapper,
|
|
290
|
+
& > ${n}-picker-range
|
|
291
|
+
`]:{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,
|
|
292
|
+
& > ${n}-select-auto-complete ${t},
|
|
293
|
+
& > ${n}-cascader-picker ${t},
|
|
294
|
+
& > ${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,
|
|
295
|
+
& > ${n}-select:first-child > ${n}-select-selector,
|
|
296
|
+
& > ${n}-select-auto-complete:first-child ${t},
|
|
297
|
+
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
298
|
+
& > ${n}-select:last-child > ${n}-select-selector,
|
|
299
|
+
& > ${n}-cascader-picker:last-child ${t},
|
|
300
|
+
& > ${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}}}})}},MK=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({},dn(e)),mf(e)),nC(e)),aC(e)),rC(e)),oC(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"}})}},TK=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 ${oe(e.inputAffixPadding)}`}}}},PK=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:l,colorIconHover:c,iconCls:u}=e,d=`${t}-affix-wrapper`,f=`${t}-affix-wrapper-disabled`;return{[d]:Object.assign(Object.assign(Object.assign(Object.assign({},mf(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}}}),TK(e)),{[`${u}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:c}}}),[`${t}-underlined`]:{borderRadius:0},[f]:{[`${u}${t}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},zK=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},dn(e)),II(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}}},wI(e)),OI(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}}})})}},DK=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,
|
|
301
|
+
> ${t},
|
|
302
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},_K=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},NI=sn(["Input","Shared"],e=>{const t=tn(e,Es(e));return[MK(t),PK(t)]},Os,{resetFont:!1}),MI=sn(["Input","Component"],e=>{const t=tn(e,Es(e));return[zK(t),DK(t),_K(t),Cs(t)]},Os,{resetFont:!1}),H0=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",l=Q6(e);return[{[`${n}-multiple${a}`]:{paddingBlock:l.containerPadding,paddingInlineStart:l.basePadding,minHeight:r,[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:oe(l.itemLineHeight)}}}]},AK=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=tn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),l=tn(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[H0(a,"small"),H0(e),H0(l,"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"}}},Z6(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},BK=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:l,cellHoverBg:c,lineWidth:u,lineType:d,colorPrimary:f,cellActiveWithRangeBg:v,colorTextLightSolid:g,colorTextDisabled:p,cellBgDisabled:b,colorFillSecondary:C}=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:oe(r),borderRadius:a,transition:`background ${l}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
|
|
303
|
+
&: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:`${oe(u)} ${d} ${f}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range,
|
|
304
|
+
&-in-view${t}-range-start,
|
|
305
|
+
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:v}},[`&-in-view${t}-selected,
|
|
306
|
+
&-in-view${t}-range-start,
|
|
307
|
+
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:g,background:f},[`&${t}-disabled ${n}`]:{background:C}},[`&-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:p,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:b}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},kK=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:l,cellWidth:c,paddingSM:u,paddingXS:d,paddingXXS:f,colorBgContainer:v,lineWidth:g,lineType:p,borderRadiusLG:b,colorPrimary:C,colorTextHeading:S,colorSplit:h,pickerControlIconBorderWidth:x,colorIcon:w,textHeight:E,motionDurationMid:j,colorIconHover:R,fontWeightStrong:I,cellHeight:O,pickerCellPaddingVertical:M,colorTextDisabled:N,colorText:P,fontSize:B,motionDurationSlow:L,withoutTimeCellHeight:k,pickerQuarterPanelContentHeight:D,borderRadiusSM:H,colorTextLightSolid:z,cellHoverBg:_,timeColumnHeight:F,timeColumnWidth:W,timeCellHeight:q,controlItemBgActive:V,marginXXS:G,pickerDatePanelPaddingHorizontal:K,pickerControlIconMargin:U}=e,Z=e.calc(c).mul(7).add(e.calc(K).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:v,borderRadius:b,outline:"none","&-focused":{borderColor:C},"&-rtl":{[`${t}-prev-icon,
|
|
308
|
+
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
|
|
309
|
+
${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:Z},"&-header":{display:"flex",padding:`0 ${oe(d)}`,color:S,borderBottom:`${oe(g)} ${p} ${h}`,"> *":{flex:"none"},button:{padding:0,color:w,lineHeight:oe(E),background:"transparent",border:0,cursor:"pointer",transition:`color ${j}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:B,"&:hover":{color:R},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:I,lineHeight:oe(E),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:d},"&:hover":{color:C}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:l,height:l,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:l,height:l,border:"0 solid currentcolor",borderBlockStartWidth:x,borderInlineStartWidth:x,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:U,insetInlineStart:U,display:"inline-block",width:l,height:l,border:"0 solid currentcolor",borderBlockStartWidth:x,borderInlineStartWidth:x,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:O,fontWeight:"normal"},th:{height:e.calc(O).add(e.calc(M).mul(2)).equal(),color:P,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${oe(M)} 0`,color:N,cursor:"pointer","&-in-view":{color:P}},BK(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(k).mul(4).equal()},[r]:{padding:`0 ${oe(d)}`}},"&-quarter-panel":{[`${t}-content`]:{height:D}},"&-decade-panel":{[r]:{padding:`0 ${oe(e.calc(d).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${oe(d)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${oe(d)} ${oe(K)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${j}`},"&:first-child:before":{borderStartStartRadius:H,borderEndStartRadius:H},"&:last-child:before":{borderStartEndRadius:H,borderEndEndRadius:H}},"&:hover td:before":{background:_},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:C},[`&${t}-cell-week`]:{color:new pn(z).setA(.5).toHexString()},[r]:{color:z}}},"&-range-hover td:before":{background:V}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${oe(d)} ${oe(u)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${oe(g)} ${p} ${h}`},[`${t}-date-panel,
|
|
310
|
+
${t}-time-panel`]:{transition:`opacity ${L}`},"&-active":{[`${t}-date-panel,
|
|
311
|
+
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:F},"&-column":{flex:"1 0 auto",width:W,margin:`${oe(f)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${j}`,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% - ${oe(q)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${oe(g)} ${p} ${h}`},"&-active":{background:new pn(V).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:G,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(W).sub(e.calc(G).mul(2)).equal(),height:q,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(W).sub(q).div(2).equal(),color:P,lineHeight:oe(q),borderRadius:H,cursor:"pointer",transition:`background ${j}`,"&:hover":{background:_}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:V}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:N,background:"transparent",cursor:"not-allowed"}}}}}}}}},LK=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:l,colorPrimary:c,cellActiveWithRangeBg:u,colorPrimaryBorder:d,lineType:f,colorSplit:v}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${oe(r)} ${f} ${v}`,"&-extra":{padding:`0 ${oe(a)}`,lineHeight:oe(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${oe(r)} ${f} ${v}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:oe(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:oe(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${l}-tag-blue`]:{color:c,background:u,borderColor:d,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},HK=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()}},FK=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:l,lineWidth:c}=e,u=l*2,d=c*2,f=Math.min(n-u,n-d),v=Math.min(r-u,r-d),g=Math.min(a-u,a-d);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new pn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new pn(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:f,multipleItemHeightSM:v,multipleItemHeightLG:g,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},VK=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Os(e)),FK(e)),Rg(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),WK=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},nC(e)),oC(e)),aC(e)),rC(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${oe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},F0=(e,t)=>({padding:`${oe(e)} ${oe(t)}`}),KK=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}}}}},UK=e=>{var t;const{componentCls:n,antCls:r,paddingInline:a,lineWidth:l,lineType:c,colorBorder:u,borderRadius:d,motionDurationMid:f,colorTextDisabled:v,colorTextPlaceholder:g,colorTextQuaternary:p,fontSizeLG:b,inputFontSizeLG:C,fontSizeSM:S,inputFontSizeSM:h,controlHeightSM:x,paddingInlineSM:w,paddingXS:E,marginXS:j,colorIcon:R,lineWidthBold:I,colorPrimary:O,motionDurationSlow:M,zIndexPopup:N,paddingXXS:P,sizePopupArrow:B,colorBgElevated:L,borderRadiusLG:k,boxShadowSecondary:D,borderRadiusSM:H,colorSplit:z,cellHoverBg:_,presetsWidth:F,presetsMaxWidth:W,boxShadowPopoverArrow:q,fontHeight:V,lineHeightLG:G}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},dn(e)),F0(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:d,transition:`border ${f}, box-shadow ${f}, background ${f}`,[`${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 ${f}`},iC(g)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:v,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:g}}},"&-large":Object.assign(Object.assign({},F0(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:C??b,lineHeight:G}}),"&-small":Object.assign(Object.assign({},F0(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:h??S}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(E).div(2).equal(),color:p,lineHeight:1,pointerEvents:"none",transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:j}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:p,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:R}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:b,color:p,fontSize:b,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:R},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(l).mul(-1).equal(),height:I,background:O,opacity:0,transition:`all ${M} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${oe(E)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:a},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:w}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},dn(e)),kK(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,
|
|
312
|
+
&${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
|
|
313
|
+
&${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,
|
|
314
|
+
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
|
|
315
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
|
|
316
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:fg},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
|
|
317
|
+
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
|
|
318
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
|
|
319
|
+
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:ug},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
|
|
320
|
+
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:mg},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
|
|
321
|
+
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:dg},[`${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 ${M} ease-out`},cj(e,L,q)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:L,borderRadius:k,boxShadow:D,transition:`margin ${M}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:F,maxWidth:W,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:E,borderInlineEnd:`${oe(l)} ${c} ${z}`,li:Object.assign(Object.assign({},Ua),{borderRadius:H,paddingInline:E,paddingBlock:e.calc(x).sub(V).div(2).equal(),cursor:"pointer",transition:`all ${M}`,"+ li":{marginTop:j},"&:hover":{background:_}})}},[`${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:`${oe(e.calc(B).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},qo(e,"slide-up"),qo(e,"slide-down"),Dc(e,"move-up"),Dc(e,"move-down")]},TI=sn("DatePicker",e=>{const t=tn(Es(e),HK(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[LK(t),UK(t),WK(t),KK(t),AK(t),Cs(e,{focusElCls:`${e.componentCls}-focused`})]},VK);var qK={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"},GK=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:qK}))},ra=i.forwardRef(GK);const Lg=i.createContext(null);var XK=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,l=t.indicator,c=l===void 0?{}:l,u=c.size,d=c.align,f=d===void 0?"center":d,v=i.useState(),g=fe(v,2),p=g[0],b=g[1],C=i.useRef(),S=ve.useCallback(function(x){return typeof u=="function"?u(x):typeof u=="number"?u:x},[u]);function h(){Yt.cancel(C.current)}return i.useEffect(function(){var x={};if(n)if(r){x.width=S(n.width);var w=a?"right":"left";f==="start"&&(x[w]=n[w]),f==="center"&&(x[w]=n[w]+n.width/2,x.transform=a?"translateX(50%)":"translateX(-50%)"),f==="end"&&(x[w]=n[w]+n.width,x.transform="translateX(-100%)")}else x.height=S(n.height),f==="start"&&(x.top=n.top),f==="center"&&(x.top=n.top+n.height/2,x.transform="translateY(-50%)"),f==="end"&&(x.top=n.top+n.height,x.transform="translateY(-100%)");return h(),C.current=Yt(function(){var E=p&&x&&Object.keys(x).every(function(j){var R=x[j],I=p[j];return typeof R=="number"&&typeof I=="number"?Math.round(R)===Math.round(I):R===I});E||b(x)}),h},[JSON.stringify(n),r,a,f,S]),{style:p}},iO={width:0,height:0,left:0,top:0};function YK(e,t,n){return i.useMemo(function(){for(var r,a=new Map,l=t.get((r=e[0])===null||r===void 0?void 0:r.key)||iO,c=l.left+l.width,u=0;u<e.length;u+=1){var d=e[u].key,f=t.get(d);if(!f){var v;f=t.get((v=e[u-1])===null||v===void 0?void 0:v.key)||iO}var g=a.get(d)||se({},f);g.right=c-g.left-g.width,a.set(d,g)}return a},[e.map(function(r){return r.key}).join("_"),t,n])}function lO(e,t){var n=i.useRef(e),r=i.useState({}),a=fe(r,2),l=a[1];function c(u){var d=typeof u=="function"?u(n.current):u;d!==n.current&&t(d,n.current),n.current=d,l({})}return[n.current,c]}var QK=.1,sO=.01,bv=20,cO=Math.pow(.995,bv);function ZK(e,t){var n=i.useState(),r=fe(n,2),a=r[0],l=r[1],c=i.useState(0),u=fe(c,2),d=u[0],f=u[1],v=i.useState(0),g=fe(v,2),p=g[0],b=g[1],C=i.useState(),S=fe(C,2),h=S[0],x=S[1],w=i.useRef();function E(N){var P=N.touches[0],B=P.screenX,L=P.screenY;l({x:B,y:L}),window.clearInterval(w.current)}function j(N){if(a){var P=N.touches[0],B=P.screenX,L=P.screenY;l({x:B,y:L});var k=B-a.x,D=L-a.y;t(k,D);var H=Date.now();f(H),b(H-d),x({x:k,y:D})}}function R(){if(a&&(l(null),x(null),h)){var N=h.x/p,P=h.y/p,B=Math.abs(N),L=Math.abs(P);if(Math.max(B,L)<QK)return;var k=N,D=P;w.current=window.setInterval(function(){if(Math.abs(k)<sO&&Math.abs(D)<sO){window.clearInterval(w.current);return}k*=cO,D*=cO,t(k*bv,D*bv)},bv)}}var I=i.useRef();function O(N){var P=N.deltaX,B=N.deltaY,L=0,k=Math.abs(P),D=Math.abs(B);k===D?L=I.current==="x"?P:B:k>D?(L=P,I.current="x"):(L=B,I.current="y"),t(-L,-L)&&N.preventDefault()}var M=i.useRef(null);M.current={onTouchStart:E,onTouchMove:j,onTouchEnd:R,onWheel:O},i.useEffect(function(){function N(k){M.current.onTouchStart(k)}function P(k){M.current.onTouchMove(k)}function B(k){M.current.onTouchEnd(k)}function L(k){M.current.onWheel(k)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",B,{passive:!0}),e.current.addEventListener("touchstart",N,{passive:!0}),e.current.addEventListener("wheel",L,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",B)}},[])}function PI(e){var t=i.useState(0),n=fe(t,2),r=n[0],a=n[1],l=i.useRef(0),c=i.useRef();return c.current=e,ts(function(){var u;(u=c.current)===null||u===void 0||u.call(c)},[r]),function(){l.current===r&&(l.current+=1,a(l.current))}}function JK(e){var t=i.useRef([]),n=i.useState({}),r=fe(n,2),a=r[1],l=i.useRef(typeof e=="function"?e():e),c=PI(function(){var d=l.current;t.current.forEach(function(f){d=f(d)}),t.current=[],l.current=d,a({})});function u(d){t.current.push(d),c()}return[l.current,u]}var uO={width:0,height:0,left:0,top:0,right:0};function eU(e,t,n,r,a,l,c){var u=c.tabs,d=c.tabPosition,f=c.rtl,v,g,p;return["top","bottom"].includes(d)?(v="width",g=f?"right":"left",p=Math.abs(n)):(v="height",g="top",p=-n),i.useMemo(function(){if(!u.length)return[0,0];for(var b=u.length,C=b,S=0;S<b;S+=1){var h=e.get(u[S].key)||uO;if(Math.floor(h[g]+h[v])>Math.floor(p+t)){C=S-1;break}}for(var x=0,w=b-1;w>=0;w-=1){var E=e.get(u[w].key)||uO;if(E[g]<p){x=w+1;break}}return x>C?[0,-1]:[x,C]},[e,t,r,a,l,p,d,u.map(function(b){return b.key}).join("_"),f])}function dO(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var tU="TABS_DQ";function zI(e){return String(e).replace(/"/g,tU)}function sC(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var DI=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,l=e.style;return!r||r.showAdd===!1?null:i.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:l,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(u){r.onEdit("add",{event:u})}},r.addIcon||"+")}),fO=i.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var l,c={};return $t(a)==="object"&&!i.isValidElement(a)?c=a:c.right=a,n==="right"&&(l=c.right),n==="left"&&(l=c.left),l?i.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},l):null}),nU=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,l=e.locale,c=e.mobile,u=e.more,d=u===void 0?{}:u,f=e.style,v=e.className,g=e.editable,p=e.tabBarGutter,b=e.rtl,C=e.removeAriaLabel,S=e.onTabClick,h=e.getPopupContainer,x=e.popupClassName,w=i.useState(!1),E=fe(w,2),j=E[0],R=E[1],I=i.useState(null),O=fe(I,2),M=O[0],N=O[1],P=d.icon,B=P===void 0?"More":P,L="".concat(r,"-more-popup"),k="".concat(n,"-dropdown"),D=M!==null?"".concat(L,"-").concat(M):null,H=l==null?void 0:l.dropdownAriaLabel;function z(K,U){K.preventDefault(),K.stopPropagation(),g.onEdit("remove",{key:U,event:K})}var _=i.createElement(Jc,{onClick:function(U){var Z=U.key,Q=U.domEvent;S(Z,Q),R(!1)},prefixCls:"".concat(k,"-menu"),id:L,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[M],"aria-label":H!==void 0?H:"expanded dropdown"},a.map(function(K){var U=K.closable,Z=K.disabled,Q=K.closeIcon,te=K.key,X=K.label,ae=sC(U,Q,g,Z);return i.createElement(df,{key:te,id:"".concat(L,"-").concat(te),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(te),disabled:Z},i.createElement("span",null,X),ae&&i.createElement("button",{type:"button","aria-label":C||"remove",tabIndex:0,className:"".concat(k,"-menu-item-remove"),onClick:function(ne){ne.stopPropagation(),z(ne,te)}},Q||g.removeIcon||"×"))}));function F(K){for(var U=a.filter(function(ae){return!ae.disabled}),Z=U.findIndex(function(ae){return ae.key===M})||0,Q=U.length,te=0;te<Q;te+=1){Z=(Z+K+Q)%Q;var X=U[Z];if(!X.disabled){N(X.key);return}}}function W(K){var U=K.which;if(!j){[ot.DOWN,ot.SPACE,ot.ENTER].includes(U)&&(R(!0),K.preventDefault());return}switch(U){case ot.UP:F(-1),K.preventDefault();break;case ot.DOWN:F(1),K.preventDefault();break;case ot.ESC:R(!1);break;case ot.SPACE:case ot.ENTER:M!==null&&S(M,K);break}}i.useEffect(function(){var K=document.getElementById(D);K&&K.scrollIntoView&&K.scrollIntoView(!1)},[M]),i.useEffect(function(){j||N(null)},[j]);var q=ee({},b?"marginRight":"marginLeft",p);a.length||(q.visibility="hidden",q.order=1);var V=ue(ee({},"".concat(k,"-rtl"),b)),G=c?null:i.createElement(yj,ye({prefixCls:k,overlay:_,visible:a.length?j:!1,onVisibleChange:R,overlayClassName:ue(V,x),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},d),i.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:q,"aria-haspopup":"listbox","aria-controls":L,id:"".concat(r,"-more"),"aria-expanded":j,onKeyDown:W},B));return i.createElement("div",{className:ue("".concat(n,"-nav-operations"),v),style:f,ref:t},G,i.createElement(DI,{prefixCls:n,locale:l,editable:g}))});const rU=i.memo(nU,function(e,t){return t.tabMoving});var aU=function(t){var n=t.prefixCls,r=t.id,a=t.active,l=t.focus,c=t.tab,u=c.key,d=c.label,f=c.disabled,v=c.closeIcon,g=c.icon,p=t.closable,b=t.renderWrapper,C=t.removeAriaLabel,S=t.editable,h=t.onClick,x=t.onFocus,w=t.onBlur,E=t.onKeyDown,j=t.onMouseDown,R=t.onMouseUp,I=t.style,O=t.tabCount,M=t.currentPosition,N="".concat(n,"-tab"),P=sC(p,v,S,f);function B(z){f||h(z)}function L(z){z.preventDefault(),z.stopPropagation(),S.onEdit("remove",{key:u,event:z})}var k=i.useMemo(function(){return g&&typeof d=="string"?i.createElement("span",null,d):d},[d,g]),D=i.useRef(null);i.useEffect(function(){l&&D.current&&D.current.focus()},[l]);var H=i.createElement("div",{key:u,"data-node-key":zI(u),className:ue(N,ee(ee(ee(ee({},"".concat(N,"-with-remove"),P),"".concat(N,"-active"),a),"".concat(N,"-disabled"),f),"".concat(N,"-focus"),l)),style:I,onClick:B},i.createElement("div",{ref:D,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":f,tabIndex:f?null:a?0:-1,onClick:function(_){_.stopPropagation(),B(_)},onKeyDown:E,onMouseDown:j,onMouseUp:R,onFocus:x,onBlur:w},l&&i.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(M," of ").concat(O)),g&&i.createElement("span",{className:"".concat(N,"-icon")},g),d&&k),P&&i.createElement("button",{type:"button",role:"tab","aria-label":C||"remove",tabIndex:a?0:-1,className:"".concat(N,"-remove"),onClick:function(_){_.stopPropagation(),L(_)}},v||S.removeIcon||"×"));return b?b(H):H},oU=function(t,n){var r=t.offsetWidth,a=t.offsetHeight,l=t.offsetTop,c=t.offsetLeft,u=t.getBoundingClientRect(),d=u.width,f=u.height,v=u.left,g=u.top;return Math.abs(d-r)<1?[d,f,v-n.left,g-n.top]:[r,a,c,l]},vc=function(t){var n=t.current||{},r=n.offsetWidth,a=r===void 0?0:r,l=n.offsetHeight,c=l===void 0?0:l;if(t.current){var u=t.current.getBoundingClientRect(),d=u.width,f=u.height;if(Math.abs(d-a)<1)return[d,f]}return[a,c]},Vm=function(t,n){return t[n?0:1]},mO=i.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.id,l=e.animated,c=e.activeKey,u=e.rtl,d=e.extra,f=e.editable,v=e.locale,g=e.tabPosition,p=e.tabBarGutter,b=e.children,C=e.onTabClick,S=e.onTabScroll,h=e.indicator,x=i.useContext(Lg),w=x.prefixCls,E=x.tabs,j=i.useRef(null),R=i.useRef(null),I=i.useRef(null),O=i.useRef(null),M=i.useRef(null),N=i.useRef(null),P=i.useRef(null),B=g==="top"||g==="bottom",L=lO(0,function(Qe,ut){B&&S&&S({direction:Qe>ut?"left":"right"})}),k=fe(L,2),D=k[0],H=k[1],z=lO(0,function(Qe,ut){!B&&S&&S({direction:Qe>ut?"top":"bottom"})}),_=fe(z,2),F=_[0],W=_[1],q=i.useState([0,0]),V=fe(q,2),G=V[0],K=V[1],U=i.useState([0,0]),Z=fe(U,2),Q=Z[0],te=Z[1],X=i.useState([0,0]),ae=fe(X,2),re=ae[0],ne=ae[1],Y=i.useState([0,0]),ie=fe(Y,2),le=ie[0],de=ie[1],ce=JK(new Map),ge=fe(ce,2),he=ge[0],Oe=ge[1],je=YK(E,he,Q[0]),pe=Vm(G,B),we=Vm(Q,B),Se=Vm(re,B),Ce=Vm(le,B),De=Math.floor(pe)<Math.floor(we+Se),Ae=De?pe-Ce:pe-Se,Ye="".concat(w,"-nav-operations-hidden"),Ke=0,Fe=0;B&&u?(Ke=0,Fe=Math.max(0,we-Ae)):(Ke=Math.min(0,Ae-we),Fe=0);function Ge(Qe){return Qe<Ke?Ke:Qe>Fe?Fe:Qe}var Te=i.useRef(null),Ee=i.useState(),_e=fe(Ee,2),Re=_e[0],Pe=_e[1];function be(){Pe(Date.now())}function $e(){Te.current&&clearTimeout(Te.current)}ZK(O,function(Qe,ut){function zt(Kt,vt){Kt(function(Nt){var Ft=Ge(Nt+vt);return Ft})}return De?(B?zt(H,Qe):zt(W,ut),$e(),be(),!0):!1}),i.useEffect(function(){return $e(),Re&&(Te.current=setTimeout(function(){Pe(0)},100)),$e},[Re]);var Me=eU(je,Ae,B?D:F,we,Se,Ce,se(se({},e),{},{tabs:E})),Le=fe(Me,2),et=Le[0],bt=Le[1],We=Xt(function(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,ut=je.get(Qe)||{width:0,height:0,left:0,right:0,top:0};if(B){var zt=D;u?ut.right<D?zt=ut.right:ut.right+ut.width>D+Ae&&(zt=ut.right+ut.width-Ae):ut.left<-D?zt=-ut.left:ut.left+ut.width>-D+Ae&&(zt=-(ut.left+ut.width-Ae)),W(0),H(Ge(zt))}else{var Kt=F;ut.top<-F?Kt=-ut.top:ut.top+ut.height>-F+Ae&&(Kt=-(ut.top+ut.height-Ae)),H(0),W(Ge(Kt))}}),tt=i.useState(),dt=fe(tt,2),at=dt[0],pt=dt[1],Pt=i.useState(!1),Et=fe(Pt,2),ct=Et[0],St=Et[1],yt=E.filter(function(Qe){return!Qe.disabled}).map(function(Qe){return Qe.key}),Je=function(ut){var zt=yt.indexOf(at||c),Kt=yt.length,vt=(zt+ut+Kt)%Kt,Nt=yt[vt];pt(Nt)},Ve=function(ut,zt){var Kt=yt.indexOf(ut),vt=E.find(function(Ft){return Ft.key===ut}),Nt=sC(vt==null?void 0:vt.closable,vt==null?void 0:vt.closeIcon,f,vt==null?void 0:vt.disabled);Nt&&(zt.preventDefault(),zt.stopPropagation(),f.onEdit("remove",{key:ut,event:zt}),Kt===yt.length-1?Je(-1):Je(1))},Ue=function(ut,zt){St(!0),zt.button===1&&Ve(ut,zt)},mt=function(ut){var zt=ut.code,Kt=u&&B,vt=yt[0],Nt=yt[yt.length-1];switch(zt){case"ArrowLeft":{B&&Je(Kt?1:-1);break}case"ArrowRight":{B&&Je(Kt?-1:1);break}case"ArrowUp":{ut.preventDefault(),B||Je(-1);break}case"ArrowDown":{ut.preventDefault(),B||Je(1);break}case"Home":{ut.preventDefault(),pt(vt);break}case"End":{ut.preventDefault(),pt(Nt);break}case"Enter":case"Space":{ut.preventDefault(),C(at??c,ut);break}case"Backspace":case"Delete":{Ve(at,ut);break}}},Mt={};B?Mt[u?"marginRight":"marginLeft"]=p:Mt.marginTop=p;var It=E.map(function(Qe,ut){var zt=Qe.key;return i.createElement(aU,{id:a,prefixCls:w,key:zt,tab:Qe,style:ut===0?void 0:Mt,closable:Qe.closable,editable:f,active:zt===c,focus:zt===at,renderWrapper:b,removeAriaLabel:v==null?void 0:v.removeAriaLabel,tabCount:yt.length,currentPosition:ut+1,onClick:function(vt){C(zt,vt)},onKeyDown:mt,onFocus:function(){ct||pt(zt),We(zt),be(),O.current&&(u||(O.current.scrollLeft=0),O.current.scrollTop=0)},onBlur:function(){pt(void 0)},onMouseDown:function(vt){return Ue(zt,vt)},onMouseUp:function(){St(!1)}})}),Vt=function(){return Oe(function(){var ut,zt=new Map,Kt=(ut=M.current)===null||ut===void 0?void 0:ut.getBoundingClientRect();return E.forEach(function(vt){var Nt,Ft=vt.key,xn=(Nt=M.current)===null||Nt===void 0?void 0:Nt.querySelector('[data-node-key="'.concat(zI(Ft),'"]'));if(xn){var _n=oU(xn,Kt),Pn=fe(_n,4),Wn=Pn[0],Rn=Pn[1],An=Pn[2],Cr=Pn[3];zt.set(Ft,{width:Wn,height:Rn,left:An,top:Cr})}}),zt})};i.useEffect(function(){Vt()},[E.map(function(Qe){return Qe.key}).join("_")]);var ft=PI(function(){var Qe=vc(j),ut=vc(R),zt=vc(I);K([Qe[0]-ut[0]-zt[0],Qe[1]-ut[1]-zt[1]]);var Kt=vc(P);ne(Kt);var vt=vc(N);de(vt);var Nt=vc(M);te([Nt[0]-Kt[0],Nt[1]-Kt[1]]),Vt()}),lt=E.slice(0,et),At=E.slice(bt+1),Ut=[].concat(Ne(lt),Ne(At)),rn=je.get(c),Qt=XK({activeTabOffset:rn,horizontal:B,indicator:h,rtl:u}),vn=Qt.style;i.useEffect(function(){We()},[c,Ke,Fe,dO(rn),dO(je),B]),i.useEffect(function(){ft()},[u]);var qt=!!Ut.length,un="".concat(w,"-nav-wrap"),st,Ct,ht,Xe;return B?u?(Ct=D>0,st=D!==Fe):(st=D<0,Ct=D!==Ke):(ht=F<0,Xe=F!==Ke),i.createElement(ma,{onResize:ft},i.createElement("div",{ref:Si(t,j),role:"tablist","aria-orientation":B?"horizontal":"vertical",className:ue("".concat(w,"-nav"),n),style:r,onKeyDown:function(){be()}},i.createElement(fO,{ref:R,position:"left",extra:d,prefixCls:w}),i.createElement(ma,{onResize:ft},i.createElement("div",{className:ue(un,ee(ee(ee(ee({},"".concat(un,"-ping-left"),st),"".concat(un,"-ping-right"),Ct),"".concat(un,"-ping-top"),ht),"".concat(un,"-ping-bottom"),Xe)),ref:O},i.createElement(ma,{onResize:ft},i.createElement("div",{ref:M,className:"".concat(w,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(F,"px)"),transition:Re?"none":void 0}},It,i.createElement(DI,{ref:P,prefixCls:w,locale:v,editable:f,style:se(se({},It.length===0?void 0:Mt),{},{visibility:qt?"hidden":null})}),i.createElement("div",{className:ue("".concat(w,"-ink-bar"),ee({},"".concat(w,"-ink-bar-animated"),l.inkBar)),style:vn}))))),i.createElement(rU,ye({},e,{removeAriaLabel:v==null?void 0:v.removeAriaLabel,ref:N,prefixCls:w,tabs:Ut,className:!qt&&Ye,tabMoving:!!Re})),i.createElement(fO,{ref:I,position:"right",extra:d,prefixCls:w})))}),_I=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,l=e.id,c=e.active,u=e.tabKey,d=e.children;return i.createElement("div",{id:l&&"".concat(l,"-panel-").concat(u),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(u),"aria-hidden":!c,style:a,className:ue(n,c&&"".concat(n,"-active"),r),ref:t},d)}),iU=["renderTabBar"],lU=["label","key"],sU=function(t){var n=t.renderTabBar,r=Lt(t,iU),a=i.useContext(Lg),l=a.tabs;if(n){var c=se(se({},r),{},{panes:l.map(function(u){var d=u.label,f=u.key,v=Lt(u,lU);return i.createElement(_I,ye({tab:d,key:f,tabKey:f},v))})});return n(c,mO)}return i.createElement(mO,r)},cU=["key","forceRender","style","className","destroyInactiveTabPane"],uU=function(t){var n=t.id,r=t.activeKey,a=t.animated,l=t.tabPosition,c=t.destroyInactiveTabPane,u=i.useContext(Lg),d=u.prefixCls,f=u.tabs,v=a.tabPane,g="".concat(d,"-tabpane");return i.createElement("div",{className:ue("".concat(d,"-content-holder"))},i.createElement("div",{className:ue("".concat(d,"-content"),"".concat(d,"-content-").concat(l),ee({},"".concat(d,"-content-animated"),v))},f.map(function(p){var b=p.key,C=p.forceRender,S=p.style,h=p.className,x=p.destroyInactiveTabPane,w=Lt(p,cU),E=b===r;return i.createElement(Qr,ye({key:b,visible:E,forceRender:C,removeOnLeave:!!(c||x),leavedClassName:"".concat(g,"-hidden")},a.tabPaneMotion),function(j,R){var I=j.style,O=j.className;return i.createElement(_I,ye({},w,{prefixCls:g,id:n,tabKey:b,animated:v,active:E,style:se(se({},S),I),className:ue(h,O),ref:R}))})})))};function dU(){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=se({inkBar:!0},$t(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var fU=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],vO=0,mU=i.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,l=e.className,c=e.items,u=e.direction,d=e.activeKey,f=e.defaultActiveKey,v=e.editable,g=e.animated,p=e.tabPosition,b=p===void 0?"top":p,C=e.tabBarGutter,S=e.tabBarStyle,h=e.tabBarExtraContent,x=e.locale,w=e.more,E=e.destroyInactiveTabPane,j=e.renderTabBar,R=e.onChange,I=e.onTabClick,O=e.onTabScroll,M=e.getPopupContainer,N=e.popupClassName,P=e.indicator,B=Lt(e,fU),L=i.useMemo(function(){return(c||[]).filter(function(le){return le&&$t(le)==="object"&&"key"in le})},[c]),k=u==="rtl",D=dU(g),H=i.useState(!1),z=fe(H,2),_=z[0],F=z[1];i.useEffect(function(){F(xg())},[]);var W=bn(function(){var le;return(le=L[0])===null||le===void 0?void 0:le.key},{value:d,defaultValue:f}),q=fe(W,2),V=q[0],G=q[1],K=i.useState(function(){return L.findIndex(function(le){return le.key===V})}),U=fe(K,2),Z=U[0],Q=U[1];i.useEffect(function(){var le=L.findIndex(function(ce){return ce.key===V});if(le===-1){var de;le=Math.max(0,Math.min(Z,L.length-1)),G((de=L[le])===null||de===void 0?void 0:de.key)}Q(le)},[L.map(function(le){return le.key}).join("_"),V,Z]);var te=bn(null,{value:n}),X=fe(te,2),ae=X[0],re=X[1];i.useEffect(function(){n||(re("rc-tabs-".concat(vO)),vO+=1)},[]);function ne(le,de){I==null||I(le,de);var ce=le!==V;G(le),ce&&(R==null||R(le))}var Y={id:ae,activeKey:V,animated:D,tabPosition:b,rtl:k,mobile:_},ie=se(se({},Y),{},{editable:v,locale:x,more:w,tabBarGutter:C,onTabClick:ne,onTabScroll:O,extra:h,style:S,panes:null,getPopupContainer:M,popupClassName:N,indicator:P});return i.createElement(Lg.Provider,{value:{tabs:L,prefixCls:a}},i.createElement("div",ye({ref:t,id:n,className:ue(a,"".concat(a,"-").concat(b),ee(ee(ee({},"".concat(a,"-mobile"),_),"".concat(a,"-editable"),v),"".concat(a,"-rtl"),k),l)},B),i.createElement(sU,ye({},ie,{renderTabBar:j})),i.createElement(uU,ye({destroyInactiveTabPane:E},Y,{animated:D}))))});const vU={motionAppear:!1,motionEnter:!0,motionLeave:!0};function gU(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({},vU),{motionName:Uo(e,"switch")})),n}var pU=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 hU(e){return e.filter(t=>t)}function bU(e,t){if(e)return e.map(r=>{var a;const l=(a=r.destroyOnHidden)!==null&&a!==void 0?a:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:l})});const n=Xr(t).map(r=>{if(i.isValidElement(r)){const{key:a,props:l}=r,c=l||{},{tab:u}=c,d=pU(c,["tab"]);return Object.assign(Object.assign({key:String(a)},d),{label:u})}return null});return hU(n)}const yU=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}`}}}}},[qo(e,"slide-up"),qo(e,"slide-down")]]},CU=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:l,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${oe(e.lineWidth)} ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:jo(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:oe(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:oe(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${oe(e.borderRadiusLG)} 0 0 ${oe(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 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},SU=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},dn(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:`${oe(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({},Ua),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${oe(e.paddingXXS)} ${oe(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"}}})}})}},xU=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:l,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:`${oe(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
322
|
+
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,
|
|
323
|
+
> 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:l,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:oe(u(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${oe(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:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},$U=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:a,cardHeightLG:l,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 ${oe(e.borderRadius)} ${oe(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${oe(e.borderRadius)} ${oe(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${oe(e.borderRadius)} ${oe(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${oe(e.borderRadius)} 0 0 ${oe(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:l,minHeight:l}}}}}},wU=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:l,horizontalItemPadding:c,itemSelectedColor:u,itemColor:d}=e,f=`${t}-tab`;return{[f]:{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:d,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${f}-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}},qa(e)),"&:hover":{color:r},[`&${f}-active ${f}-btn`]:{color:u,textShadow:e.tabsActiveTextShadow},[`&${f}-focus ${f}-btn:focus-visible`]:jo(e),[`&${f}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${f}-disabled ${f}-btn, &${f}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${f}-remove ${a}`]:{margin:0,verticalAlign:"middle"},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${f} + ${f}`]:{margin:{_skip_check_:!0,value:l}}}},EU=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:l}=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:oe(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:oe(e.marginXS)},marginLeft:{_skip_check_:!0,value:oe(l(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"}}}}},OU=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:l,itemActiveColor:c,colorBorderSecondary:u}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},dn(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:`${oe(e.lineWidth)} ${e.lineType} ${u}`,borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:c}},qa(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),wU(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},qa(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"}}}}}},RU=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:a,controlHeightLG:l}=e,c=t||l,u=n||a,d=r||l+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:c,cardHeightSM:u,cardHeightLG:d,cardPadding:`${(c-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(u-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(d-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}},jU=sn("Tabs",e=>{const t=tn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${oe(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${oe(e.horizontalItemGutter)}`});return[$U(t),EU(t),xU(t),SU(t),CU(t),OU(t),yU(t)]},RU),IU=()=>null;var NU=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 MU=i.forwardRef((e,t)=>{var n,r,a,l,c,u,d,f,v,g,p;const{type:b,className:C,rootClassName:S,size:h,onEdit:x,hideAdd:w,centered:E,addIcon:j,removeIcon:R,moreIcon:I,more:O,popupClassName:M,children:N,items:P,animated:B,style:L,indicatorSize:k,indicator:D,destroyInactiveTabPane:H,destroyOnHidden:z}=e,_=NU(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:F}=_,{direction:W,tabs:q,getPrefixCls:V,getPopupContainer:G}=i.useContext(Rt),K=V("tabs",F),U=cr(K),[Z,Q,te]=jU(K,U),X=i.useRef(null);i.useImperativeHandle(t,()=>({nativeElement:X.current}));let ae;b==="editable-card"&&(ae={onEdit:(ce,{key:ge,event:he})=>{x==null||x(ce==="add"?he:ge,ce)},removeIcon:(n=R??(q==null?void 0:q.removeIcon))!==null&&n!==void 0?n:i.createElement(Po,null),addIcon:(j??(q==null?void 0:q.addIcon))||i.createElement(ra,null),showAdd:w!==!0});const re=V(),ne=Nr(h),Y=bU(P,N),ie=gU(K,B),le=Object.assign(Object.assign({},q==null?void 0:q.style),L),de={align:(r=D==null?void 0:D.align)!==null&&r!==void 0?r:(a=q==null?void 0:q.indicator)===null||a===void 0?void 0:a.align,size:(d=(c=(l=D==null?void 0:D.size)!==null&&l!==void 0?l:k)!==null&&c!==void 0?c:(u=q==null?void 0:q.indicator)===null||u===void 0?void 0:u.size)!==null&&d!==void 0?d:q==null?void 0:q.indicatorSize};return Z(i.createElement(mU,Object.assign({ref:X,direction:W,getPopupContainer:G},_,{items:Y,className:ue({[`${K}-${ne}`]:ne,[`${K}-card`]:["card","editable-card"].includes(b),[`${K}-editable-card`]:b==="editable-card",[`${K}-centered`]:E},q==null?void 0:q.className,C,S,Q,te,U),popupClassName:ue(M,Q,te,U),style:le,editable:ae,more:Object.assign({icon:(p=(g=(v=(f=q==null?void 0:q.more)===null||f===void 0?void 0:f.icon)!==null&&v!==void 0?v:q==null?void 0:q.moreIcon)!==null&&g!==void 0?g:I)!==null&&p!==void 0?p:i.createElement(G1,null),transitionName:`${re}-slide-up`},O),prefixCls:K,animated:ie,indicator:de,destroyInactiveTabPane:z??H})))}),Zo=MU;Zo.TabPane=IU;var TU=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 AI=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=TU(e,["prefixCls","className","hoverable"]);const{getPrefixCls:l}=i.useContext(Rt),c=l("card",t),u=ue(`${c}-grid`,n,{[`${c}-grid-hoverable`]:r});return i.createElement("div",Object.assign({},a,{className:u}))},PU=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:a,tabsMarginBottom:l}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${oe(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`},Ko()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Ua),{[`
|
|
324
|
+
> ${n}-typography,
|
|
325
|
+
> ${n}-typography-edit-content
|
|
326
|
+
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:l,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},zU=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
327
|
+
${oe(a)} 0 0 0 ${n},
|
|
328
|
+
0 ${oe(a)} 0 0 ${n},
|
|
329
|
+
${oe(a)} ${oe(a)} 0 0 ${n},
|
|
330
|
+
${oe(a)} 0 0 0 ${n} inset,
|
|
331
|
+
0 ${oe(a)} 0 0 ${n} inset;
|
|
332
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},DU=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:l,actionsBg:c}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:c,borderTop:`${oe(e.lineWidth)} ${e.lineType} ${l}`,display:"flex",borderRadius:`0 0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)}`},Ko()),{"& > 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:oe(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:oe(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${oe(e.lineWidth)} ${e.lineType} ${l}`}}})},_U=e=>Object.assign(Object.assign({margin:`${oe(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Ko()),{"&-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},Ua),"&-description":{color:e.colorTextDescription}}),AU=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:a}=e;return{[`${t}-head`]:{padding:`0 ${oe(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${oe(e.padding)} ${oe(a)}`}}},BU=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},kU=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:l,bodyPadding:c,extraColor:u}=e;return{[t]:Object.assign(Object.assign({},dn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:l},[`${t}-head`]:PU(e),[`${t}-extra`]:{marginInlineStart:"auto",color:u,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:c,borderRadius:`0 0 ${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)}`},[`${t}-grid`]:zU(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${oe(e.borderRadiusLG)} ${oe(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:DU(e),[`${t}-meta`]:_U(e)}),[`${t}-bordered`]:{border:`${oe(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:`${oe(e.borderRadiusLG)} ${oe(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`]:AU(e),[`${t}-loading`]:BU(e),[`${t}-rtl`]:{direction:"rtl"}}},LU=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:a,headerFontSizeSM:l}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${oe(r)}`,fontSize:l,[`> ${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"}}}}},HU=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}},FU=sn("Card",e=>{const t=tn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[kU(t),LU(t)]},HU);var gO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const VU=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return i.createElement("ul",{className:t,style:r},n.map((a,l)=>{const c=`action-${l}`;return i.createElement("li",{style:{width:`${100/n.length}%`},key:c},i.createElement("span",null,a))}))},WU=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:l,extra:c,headStyle:u={},bodyStyle:d={},title:f,loading:v,bordered:g,variant:p,size:b,type:C,cover:S,actions:h,tabList:x,children:w,activeTabKey:E,defaultActiveTabKey:j,tabBarExtraContent:R,hoverable:I,tabProps:O={},classNames:M,styles:N}=e,P=gO(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:B,direction:L,card:k}=i.useContext(Rt),[D]=Cl("card",p,g),H=je=>{var pe;(pe=e.onTabChange)===null||pe===void 0||pe.call(e,je)},z=je=>{var pe;return ue((pe=k==null?void 0:k.classNames)===null||pe===void 0?void 0:pe[je],M==null?void 0:M[je])},_=je=>{var pe;return Object.assign(Object.assign({},(pe=k==null?void 0:k.styles)===null||pe===void 0?void 0:pe[je]),N==null?void 0:N[je])},F=i.useMemo(()=>{let je=!1;return i.Children.forEach(w,pe=>{(pe==null?void 0:pe.type)===AI&&(je=!0)}),je},[w]),W=B("card",n),[q,V,G]=FU(W),K=i.createElement(bl,{loading:!0,active:!0,paragraph:{rows:4},title:!1},w),U=E!==void 0,Z=Object.assign(Object.assign({},O),{[U?"activeKey":"defaultActiveKey"]:U?E:j,tabBarExtraContent:R});let Q;const te=Nr(b),X=!te||te==="default"?"large":te,ae=x?i.createElement(Zo,Object.assign({size:X},Z,{className:`${W}-head-tabs`,onChange:H,items:x.map(je=>{var{tab:pe}=je,we=gO(je,["tab"]);return Object.assign({label:pe},we)})})):null;if(f||c||ae){const je=ue(`${W}-head`,z("header")),pe=ue(`${W}-head-title`,z("title")),we=ue(`${W}-extra`,z("extra")),Se=Object.assign(Object.assign({},u),_("header"));Q=i.createElement("div",{className:je,style:Se},i.createElement("div",{className:`${W}-head-wrapper`},f&&i.createElement("div",{className:pe,style:_("title")},f),c&&i.createElement("div",{className:we,style:_("extra")},c)),ae)}const re=ue(`${W}-cover`,z("cover")),ne=S?i.createElement("div",{className:re,style:_("cover")},S):null,Y=ue(`${W}-body`,z("body")),ie=Object.assign(Object.assign({},d),_("body")),le=i.createElement("div",{className:Y,style:ie},v?K:w),de=ue(`${W}-actions`,z("actions")),ce=h!=null&&h.length?i.createElement(VU,{actionClasses:de,actionStyle:_("actions"),actions:h}):null,ge=wn(P,["onTabChange"]),he=ue(W,k==null?void 0:k.className,{[`${W}-loading`]:v,[`${W}-bordered`]:D!=="borderless",[`${W}-hoverable`]:I,[`${W}-contain-grid`]:F,[`${W}-contain-tabs`]:x==null?void 0:x.length,[`${W}-${te}`]:te,[`${W}-type-${C}`]:!!C,[`${W}-rtl`]:L==="rtl"},r,a,V,G),Oe=Object.assign(Object.assign({},k==null?void 0:k.style),l);return q(i.createElement("div",Object.assign({ref:t},ge,{className:he,style:Oe}),Q,ne,le,ce))});var KU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const UU=e=>{const{prefixCls:t,className:n,avatar:r,title:a,description:l}=e,c=KU(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:u}=i.useContext(Rt),d=u("card",t),f=ue(`${d}-meta`,n),v=r?i.createElement("div",{className:`${d}-meta-avatar`},r):null,g=a?i.createElement("div",{className:`${d}-meta-title`},a):null,p=l?i.createElement("div",{className:`${d}-meta-description`},l):null,b=g||p?i.createElement("div",{className:`${d}-meta-detail`},g,p):null;return i.createElement("div",Object.assign({},c,{className:f}),v,b)},Mn=WU;Mn.Grid=AI;Mn.Meta=UU;function qU(e,t,n){var r=n||{},a=r.noTrailing,l=a===void 0?!1:a,c=r.noLeading,u=c===void 0?!1:c,d=r.debounceMode,f=d===void 0?void 0:d,v,g=!1,p=0;function b(){v&&clearTimeout(v)}function C(h){var x=h||{},w=x.upcomingOnly,E=w===void 0?!1:w;b(),g=!E}function S(){for(var h=arguments.length,x=new Array(h),w=0;w<h;w++)x[w]=arguments[w];var E=this,j=Date.now()-p;if(g)return;function R(){p=Date.now(),t.apply(E,x)}function I(){v=void 0}!u&&f&&!v&&R(),b(),f===void 0&&j>e?u?(p=Date.now(),l||(v=setTimeout(f?I:R,e))):R():l!==!0&&(v=setTimeout(f?I:R,f===void 0?e-j:e))}return S.cancel=C,S}function GU(e,t,n){var r={},a=r.atBegin,l=a===void 0?!1:a;return qU(e,t,{debounceMode:l!==!1})}var nu=i.createContext({}),Rc="__rc_cascader_search_mark__",XU=function(t,n,r){var a=r.label,l=a===void 0?"":a;return n.some(function(c){return String(c[l]).toLowerCase().includes(t.toLowerCase())})},YU=function(t,n,r,a){return n.map(function(l){return l[a.label]}).join(" / ")},QU=function(t,n,r,a,l,c){var u=l.filter,d=u===void 0?XU:u,f=l.render,v=f===void 0?YU:f,g=l.limit,p=g===void 0?50:g,b=l.sort;return i.useMemo(function(){var C=[];if(!t)return[];function S(h,x){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;h.forEach(function(E){if(!(!b&&p!==!1&&p>0&&C.length>=p)){var j=[].concat(Ne(x),[E]),R=E[r.children],I=w||E.disabled;if((!R||R.length===0||c)&&d(t,j,{label:r.label})){var O;C.push(se(se({},E),{},(O={disabled:I},ee(O,r.label,v(t,j,a,r)),ee(O,Rc,j),ee(O,r.children,void 0),O)))}R&&S(E[r.children],j,I)}})}return S(n,[]),b&&C.sort(function(h,x){return b(h[Rc],x[Rc],t,r)}),p!==!1&&p>0?C.slice(0,p):C},[t,n,r,a,v,c,d,b,p])},cC="__RC_CASCADER_SPLIT__",BI="SHOW_PARENT",kI="SHOW_CHILD";function Eo(e){return e.join(cC)}function Bc(e){return e.map(Eo)}function ZU(e){return e.split(cC)}function LI(e){var t=e||{},n=t.label,r=t.value,a=t.children,l=r||"value";return{label:n||"label",value:l,key:l,children:a||"children"}}function vd(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function JU(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function HI(e,t){return e.map(function(n){var r;return(r=n[Rc])===null||r===void 0?void 0:r.map(function(a){return a[t.value]})})}function eq(e){return Array.isArray(e)&&Array.isArray(e[0])}function Lv(e){return e?eq(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function FI(e,t,n){var r=new Set(e),a=t();return e.filter(function(l){var c=a[l],u=c?c.parent:null,d=c?c.children:null;return c&&c.node.disabled?!0:n===kI?!(d&&d.some(function(f){return f.key&&r.has(f.key)})):!(u&&!u.node.disabled&&r.has(u.key))})}function kc(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=t,l=[],c=function(){var f,v,g,p=e[u],b=(f=a)===null||f===void 0?void 0:f.findIndex(function(S){var h=S[n.value];return r?String(h)===String(p):h===p}),C=b!==-1?(v=a)===null||v===void 0?void 0:v[b]:null;l.push({value:(g=C==null?void 0:C[n.value])!==null&&g!==void 0?g:p,index:b,option:C}),a=C==null?void 0:C[n.children]},u=0;u<e.length;u+=1)c();return l}const tq=(function(e,t,n,r,a){return i.useMemo(function(){var l=a||function(c){var u=r?c.slice(-1):c,d=" / ";return u.every(function(f){return["string","number"].includes($t(f))})?u.join(d):u.reduce(function(f,v,g){var p=i.isValidElement(v)?i.cloneElement(v,{key:g}):v;return g===0?[p]:[].concat(Ne(f),[d,p])},[])};return e.map(function(c){var u,d=kc(c,t,n),f=l(d.map(function(g){var p,b=g.option,C=g.value;return(p=b==null?void 0:b[n.label])!==null&&p!==void 0?p:C}),d.map(function(g){var p=g.option;return p})),v=Eo(c);return{label:f,value:v,key:v,valueCells:c,disabled:(u=d[d.length-1])===null||u===void 0||(u=u.option)===null||u===void 0?void 0:u.disabled}})},[e,t,n,a,r])});function VI(e,t){return i.useCallback(function(n){var r=[],a=[];return n.forEach(function(l){var c=kc(l,e,t);c.every(function(u){return u.option})?a.push(l):r.push(l)}),[a,r]},[e,t])}function Ta(e,t){return e[t]}var nq=["children"];function WI(e,t){return"".concat(e,"-").concat(t)}function rq(e){return e&&e.type&&e.type.isTreeNode}function vf(e,t){return e??t}function Lc(e){var t=e||{},n=t.title,r=t._title,a=t.key,l=t.children,c=n||"title";return{title:c,_title:r||[c],key:a||"key",children:l||"children"}}function KI(e){function t(n){var r=Xr(n);return r.map(function(a){if(!rq(a))return Xn(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var l=a.key,c=a.props,u=c.children,d=Lt(c,nq),f=se({key:l},d),v=t(u);return v.length&&(f.children=v),f}).filter(function(a){return a})}return t(e)}function V0(e,t,n){var r=Lc(n),a=r._title,l=r.key,c=r.children,u=new Set(t===!0?[]:t),d=[];function f(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return v.map(function(p,b){for(var C=WI(g?g.pos:"0",b),S=vf(p[l],C),h,x=0;x<a.length;x+=1){var w=a[x];if(p[w]!==void 0){h=p[w];break}}var E=Object.assign(wn(p,[].concat(Ne(a),[l,c])),{title:h,key:S,parent:g,pos:C,children:null,data:p,isStart:[].concat(Ne(g?g.isStart:[]),[b===0]),isEnd:[].concat(Ne(g?g.isEnd:[]),[b===v.length-1])});return d.push(E),t===!0||u.has(S)?E.children=f(p[c]||[],E):E.children=[],E})}return f(e),d}function aq(e,t,n){var r={};$t(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var a=r,l=a.childrenPropName,c=a.externalGetKey,u=a.fieldNames,d=Lc(u),f=d.key,v=d.children,g=l||v,p;c?typeof c=="string"?p=function(S){return S[c]}:typeof c=="function"&&(p=function(S){return c(S)}):p=function(S,h){return vf(S[f],h)};function b(C,S,h,x){var w=C?C[g]:e,E=C?WI(h.pos,S):"0",j=C?[].concat(Ne(x),[C]):[];if(C){var R=p(C,E),I={node:C,index:S,pos:E,key:R,parentPos:h.node?h.pos:null,level:h.level+1,nodes:j};t(I)}w&&w.forEach(function(O,M){b(O,M,{node:C,pos:E,level:h?h.level+1:-1},j)})}b(null)}function Hg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,l=t.externalGetKey,c=t.childrenPropName,u=t.fieldNames,d=arguments.length>2?arguments[2]:void 0,f=l||d,v={},g={},p={posEntities:v,keyEntities:g};return n&&(p=n(p)||p),aq(e,function(b){var C=b.node,S=b.index,h=b.pos,x=b.key,w=b.parentPos,E=b.level,j=b.nodes,R={node:C,nodes:j,index:S,key:x,pos:h,level:E},I=vf(x,h);v[h]=R,g[I]=R,R.parent=v[w],R.parent&&(R.parent.children=R.parent.children||[],R.parent.children.push(R)),r&&r(R,p)},{externalGetKey:f,childrenPropName:c,fieldNames:u}),a&&a(p),p}function wd(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,l=t.loadingKeys,c=t.checkedKeys,u=t.halfCheckedKeys,d=t.dragOverNodeKey,f=t.dropPosition,v=t.keyEntities,g=Ta(v,e),p={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:l.indexOf(e)!==-1,checked:c.indexOf(e)!==-1,halfChecked:u.indexOf(e)!==-1,pos:String(g?g.pos:""),dragOver:d===e&&f===0,dragOverGapTop:d===e&&f===-1,dragOverGapBottom:d===e&&f===1};return p}function Hr(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,l=e.loaded,c=e.loading,u=e.halfChecked,d=e.dragOver,f=e.dragOverGapTop,v=e.dragOverGapBottom,g=e.pos,p=e.active,b=e.eventKey,C=se(se({},t),{},{expanded:n,selected:r,checked:a,loaded:l,loading:c,halfChecked:u,dragOver:d,dragOverGapTop:f,dragOverGapBottom:v,pos:g,active:p,key:b});return"props"in C||Object.defineProperty(C,"props",{get:function(){return Xn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),C}const oq=(function(e,t){var n=i.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=i.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=Hg(e,{fieldNames:t,initWrapper:function(l){return se(se({},l),{},{pathKeyEntities:{}})},processEntity:function(l,c){var u=l.nodes.map(function(d){return d[t.value]}).join(cC);c.pathKeyEntities[u]=l,l.key=u}})),n.current.info.pathKeyEntities},[t,e]);return r});function UI(e,t){var n=i.useMemo(function(){return t||[]},[t]),r=oq(n,e),a=i.useCallback(function(l){var c=r();return l.map(function(u){var d=c[u].nodes;return d.map(function(f){return f[e.value]})})},[r,e]);return[n,r,a]}function iq(e){return i.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&$t(e)==="object"&&(t=se(se({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function qI(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function lq(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function sq(e,t,n,r){for(var a=new Set(e),l=new Set,c=0;c<=n;c+=1){var u=t.get(c)||new Set;u.forEach(function(g){var p=g.key,b=g.node,C=g.children,S=C===void 0?[]:C;a.has(p)&&!r(b)&&S.filter(function(h){return!r(h.node)}).forEach(function(h){a.add(h.key)})})}for(var d=new Set,f=n;f>=0;f-=1){var v=t.get(f)||new Set;v.forEach(function(g){var p=g.parent,b=g.node;if(!(r(b)||!g.parent||d.has(g.parent.key))){if(r(g.parent.node)){d.add(p.key);return}var C=!0,S=!1;(p.children||[]).filter(function(h){return!r(h.node)}).forEach(function(h){var x=h.key,w=a.has(x);C&&!w&&(C=!1),!S&&(w||l.has(x))&&(S=!0)}),C&&a.add(p.key),S&&l.add(p.key),d.add(p.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(qI(l,a))}}function cq(e,t,n,r,a){for(var l=new Set(e),c=new Set(t),u=0;u<=r;u+=1){var d=n.get(u)||new Set;d.forEach(function(p){var b=p.key,C=p.node,S=p.children,h=S===void 0?[]:S;!l.has(b)&&!c.has(b)&&!a(C)&&h.filter(function(x){return!a(x.node)}).forEach(function(x){l.delete(x.key)})})}c=new Set;for(var f=new Set,v=r;v>=0;v-=1){var g=n.get(v)||new Set;g.forEach(function(p){var b=p.parent,C=p.node;if(!(a(C)||!p.parent||f.has(p.parent.key))){if(a(p.parent.node)){f.add(b.key);return}var S=!0,h=!1;(b.children||[]).filter(function(x){return!a(x.node)}).forEach(function(x){var w=x.key,E=l.has(w);S&&!E&&(S=!1),!h&&(E||c.has(w))&&(h=!0)}),S||l.delete(b.key),h&&c.add(b.key),f.add(b.key)}})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(qI(c,l))}}function bi(e,t,n,r){var a=[],l;r?l=r:l=lq;var c=new Set(e.filter(function(v){var g=!!Ta(n,v);return g||a.push(v),g})),u=new Map,d=0;Object.keys(n).forEach(function(v){var g=n[v],p=g.level,b=u.get(p);b||(b=new Set,u.set(p,b)),b.add(g),d=Math.max(d,p)}),Xn(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(v){return"'".concat(v,"'")}).join(", ")));var f;return t===!0?f=sq(c,u,d,l):f=cq(c,t.halfCheckedKeys,u,d,l),f}function GI(e,t,n,r,a,l,c,u){return function(d){if(!e)t(d);else{var f=Eo(d),v=Bc(n),g=Bc(r),p=v.includes(f),b=a.some(function(I){return Eo(I)===f}),C=n,S=a;if(b&&!p)S=a.filter(function(I){return Eo(I)!==f});else{var h=p?v.filter(function(I){return I!==f}):[].concat(Ne(v),[f]),x=l(),w;if(p){var E=bi(h,{halfCheckedKeys:g},x);w=E.checkedKeys}else{var j=bi(h,!0,x);w=j.checkedKeys}var R=FI(w,l,u);C=c(R)}t([].concat(Ne(S),Ne(C)))}}}function XI(e,t,n,r,a){return i.useMemo(function(){var l=a(t),c=fe(l,2),u=c[0],d=c[1];if(!e||!t.length)return[u,[],d];var f=Bc(u),v=n(),g=bi(f,!0,v),p=g.checkedKeys,b=g.halfCheckedKeys;return[r(p),r(b),d]},[e,t,n,r,a])}var uq=i.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function dq(e){var t,n=e.prefixCls,r=e.checked,a=e.halfChecked,l=e.disabled,c=e.onClick,u=e.disableCheckbox,d=i.useContext(nu),f=d.checkable,v=typeof f!="boolean"?f:null;return i.createElement("span",{className:ue("".concat(n),(t={},ee(t,"".concat(n,"-checked"),r),ee(t,"".concat(n,"-indeterminate"),!r&&a),ee(t,"".concat(n,"-disabled"),l||u),t)),onClick:c},v)}var YI="__cascader_fix_label__";function fq(e){var t=e.prefixCls,n=e.multiple,r=e.options,a=e.activeValue,l=e.prevValuePath,c=e.onToggleOpen,u=e.onSelect,d=e.onActive,f=e.checkedSet,v=e.halfCheckedSet,g=e.loadingKeys,p=e.isSelectable,b=e.disabled,C="".concat(t,"-menu"),S="".concat(t,"-menu-item"),h=i.useContext(nu),x=h.fieldNames,w=h.changeOnSelect,E=h.expandTrigger,j=h.expandIcon,R=h.loadingIcon,I=h.dropdownMenuColumnStyle,O=h.optionRender,M=E==="hover",N=function(L){return b||L},P=i.useMemo(function(){return r.map(function(B){var L,k=B.disabled,D=B.disableCheckbox,H=B[Rc],z=(L=B[YI])!==null&&L!==void 0?L:B[x.label],_=B[x.value],F=vd(B,x),W=H?H.map(function(U){return U[x.value]}):[].concat(Ne(l),[_]),q=Eo(W),V=g.includes(q),G=f.has(q),K=v.has(q);return{disabled:k,label:z,value:_,isLeaf:F,isLoading:V,checked:G,halfChecked:K,option:B,disableCheckbox:D,fullPath:W,fullPathKey:q}})},[r,f,x,v,g,l]);return i.createElement("ul",{className:C,role:"menu"},P.map(function(B){var L,k=B.disabled,D=B.label,H=B.value,z=B.isLeaf,_=B.isLoading,F=B.checked,W=B.halfChecked,q=B.option,V=B.fullPath,G=B.fullPathKey,K=B.disableCheckbox,U=function(){if(!N(k)){var X=Ne(V);M&&z&&X.pop(),d(X)}},Z=function(){p(q)&&!N(k)&&u(V,z)},Q;return typeof q.title=="string"?Q=q.title:typeof D=="string"&&(Q=D),i.createElement("li",{key:G,className:ue(S,(L={},ee(L,"".concat(S,"-expand"),!z),ee(L,"".concat(S,"-active"),a===H||a===G),ee(L,"".concat(S,"-disabled"),N(k)),ee(L,"".concat(S,"-loading"),_),L)),style:I,role:"menuitemcheckbox",title:Q,"aria-checked":F,"data-path-key":G,onClick:function(){U(),!K&&(!n||z)&&Z()},onDoubleClick:function(){w&&c(!1)},onMouseEnter:function(){M&&U()},onMouseDown:function(X){X.preventDefault()}},n&&i.createElement(dq,{prefixCls:"".concat(t,"-checkbox"),checked:F,halfChecked:W,disabled:N(k)||K,disableCheckbox:K,onClick:function(X){K||(X.stopPropagation(),Z())}}),i.createElement("div",{className:"".concat(S,"-content")},O?O(q):D),!_&&j&&!z&&i.createElement("div",{className:"".concat(S,"-expand-icon")},j),_&&R&&i.createElement("div",{className:"".concat(S,"-loading-icon")},R))}))}var mq=function(t,n){var r=i.useContext(nu),a=r.values,l=a[0],c=i.useState([]),u=fe(c,2),d=u[0],f=u[1];return i.useEffect(function(){t||f(l||[])},[n,l]),[d,f]};const vq=(function(e,t,n,r,a,l,c){var u=c.direction,d=c.searchValue,f=c.toggleOpen,v=c.open,g=u==="rtl",p=i.useMemo(function(){for(var I=-1,O=t,M=[],N=[],P=r.length,B=HI(t,n),L=function(_){var F=O.findIndex(function(W,q){return(B[q]?Eo(B[q]):W[n.value])===r[_]});if(F===-1)return 1;I=F,M.push(I),N.push(r[_]),O=O[I][n.children]},k=0;k<P&&O&&!L(k);k+=1);for(var D=t,H=0;H<M.length-1;H+=1)D=D[M[H]][n.children];return[N,I,D,B]},[r,n,t]),b=fe(p,4),C=b[0],S=b[1],h=b[2],x=b[3],w=function(O){a(O)},E=function(O){var M=h.length,N=S;N===-1&&O<0&&(N=M);for(var P=0;P<M;P+=1){N=(N+O+M)%M;var B=h[N];if(B&&!B.disabled){var L=C.slice(0,-1).concat(x[N]?Eo(x[N]):B[n.value]);w(L);return}}},j=function(){if(C.length>1){var O=C.slice(0,-1);w(O)}else f(!1)},R=function(){var O,M=((O=h[S])===null||O===void 0?void 0:O[n.children])||[],N=M.find(function(B){return!B.disabled});if(N){var P=[].concat(Ne(C),[N[n.value]]);w(P)}};i.useImperativeHandle(e,function(){return{onKeyDown:function(O){var M=O.which;switch(M){case ot.UP:case ot.DOWN:{var N=0;M===ot.UP?N=-1:M===ot.DOWN&&(N=1),N!==0&&E(N);break}case ot.LEFT:{if(d)break;g?R():j();break}case ot.RIGHT:{if(d)break;g?j():R();break}case ot.BACKSPACE:{d||j();break}case ot.ENTER:{if(C.length){var P=h[S],B=(P==null?void 0:P[Rc])||[];B.length?l(B.map(function(L){return L[n.value]}),B[B.length-1]):l(C,h[S])}break}case ot.ESC:f(!1),v&&O.stopPropagation()}},onKeyUp:function(){}}})});var QI=i.forwardRef(function(e,t){var n,r,a,l=e.prefixCls,c=e.multiple,u=e.searchValue,d=e.toggleOpen,f=e.notFoundContent,v=e.direction,g=e.open,p=e.disabled,b=i.useRef(null),C=v==="rtl",S=i.useContext(nu),h=S.options,x=S.values,w=S.halfValues,E=S.fieldNames,j=S.changeOnSelect,R=S.onSelect,I=S.searchOptions,O=S.dropdownPrefixCls,M=S.loadData,N=S.expandTrigger,P=O||l,B=i.useState([]),L=fe(B,2),k=L[0],D=L[1],H=function(le){if(!(!M||u)){var de=kc(le,h,E),ce=de.map(function(Oe){var je=Oe.option;return je}),ge=ce[ce.length-1];if(ge&&!vd(ge,E)){var he=Eo(le);D(function(Oe){return[].concat(Ne(Oe),[he])}),M(ce)}}};i.useEffect(function(){k.length&&k.forEach(function(ie){var le=ZU(ie),de=kc(le,h,E,!0).map(function(ge){var he=ge.option;return he}),ce=de[de.length-1];(!ce||ce[E.children]||vd(ce,E))&&D(function(ge){return ge.filter(function(he){return he!==ie})})})},[h,k,E]);var z=i.useMemo(function(){return new Set(Bc(x))},[x]),_=i.useMemo(function(){return new Set(Bc(w))},[w]),F=mq(c,g),W=fe(F,2),q=W[0],V=W[1],G=function(le){V(le),H(le)},K=function(le){if(p)return!1;var de=le.disabled,ce=vd(le,E);return!de&&(ce||j||c)},U=function(le,de){var ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;R(le),!c&&(de||j&&(N==="hover"||ce))&&d(!1)},Z=i.useMemo(function(){return u?I:h},[u,I,h]),Q=i.useMemo(function(){for(var ie=[{options:Z}],le=Z,de=HI(le,E),ce=function(){var Oe=q[ge],je=le.find(function(we,Se){return(de[Se]?Eo(de[Se]):we[E.value])===Oe}),pe=je==null?void 0:je[E.children];if(!(pe!=null&&pe.length))return 1;le=pe,ie.push({options:pe})},ge=0;ge<q.length&&!ce();ge+=1);return ie},[Z,q,E]),te=function(le,de){K(de)&&U(le,vd(de,E),!0)};vq(t,Z,E,q,G,te,{direction:v,searchValue:u,toggleOpen:d,open:g}),i.useEffect(function(){if(!u)for(var ie=0;ie<q.length;ie+=1){var le,de=q.slice(0,ie+1),ce=Eo(de),ge=(le=b.current)===null||le===void 0?void 0:le.querySelector('li[data-path-key="'.concat(ce.replace(/\\{0,2}"/g,'\\"'),'"]'));ge&&JU(ge)}},[q,u]);var X=!((n=Q[0])!==null&&n!==void 0&&(n=n.options)!==null&&n!==void 0&&n.length),ae=[(r={},ee(r,E.value,"__EMPTY__"),ee(r,YI,f),ee(r,"disabled",!0),r)],re=se(se({},e),{},{multiple:!X&&c,onSelect:U,onActive:G,onToggleOpen:d,checkedSet:z,halfCheckedSet:_,loadingKeys:k,isSelectable:K}),ne=X?[{options:ae}]:Q,Y=ne.map(function(ie,le){var de=q.slice(0,le),ce=q[le];return i.createElement(fq,ye({key:le},re,{prefixCls:P,options:ie.options,prevValuePath:de,activeValue:ce}))});return i.createElement(uq,{open:g},i.createElement("div",{className:ue("".concat(P,"-menus"),(a={},ee(a,"".concat(P,"-menu-empty"),X),ee(a,"".concat(P,"-rtl"),C),a)),ref:b},Y))}),gq=i.forwardRef(function(e,t){var n=z6();return i.createElement(QI,ye({},e,n,{ref:t}))});function pq(){}function ZI(e){var t,n=e,r=n.prefixCls,a=r===void 0?"rc-cascader":r,l=n.style,c=n.className,u=n.options,d=n.checkable,f=n.defaultValue,v=n.value,g=n.fieldNames,p=n.changeOnSelect,b=n.onChange,C=n.showCheckedStrategy,S=n.loadData,h=n.expandTrigger,x=n.expandIcon,w=x===void 0?">":x,E=n.loadingIcon,j=n.direction,R=n.notFoundContent,I=R===void 0?"Not Found":R,O=n.disabled,M=!!d,N=bn(f,{value:v,postState:Lv}),P=fe(N,2),B=P[0],L=P[1],k=i.useMemo(function(){return LI(g)},[JSON.stringify(g)]),D=UI(k,u),H=fe(D,3),z=H[0],_=H[1],F=H[2],W=VI(z,k),q=XI(M,B,_,F,W),V=fe(q,3),G=V[0],K=V[1],U=V[2],Z=Xt(function(ne){if(L(ne),b){var Y=Lv(ne),ie=Y.map(function(ce){return kc(ce,z,k).map(function(ge){return ge.option})}),le=M?Y:Y[0],de=M?ie:ie[0];b(le,de)}}),Q=GI(M,Z,G,K,U,_,F,C),te=Xt(function(ne){Q(ne)}),X=i.useMemo(function(){return{options:z,fieldNames:k,values:G,halfValues:K,changeOnSelect:p,onSelect:te,checkable:d,searchOptions:[],dropdownPrefixCls:void 0,loadData:S,expandTrigger:h,expandIcon:w,loadingIcon:E,dropdownMenuColumnStyle:void 0}},[z,k,G,K,p,te,d,S,h,w,E]),ae="".concat(a,"-panel"),re=!z.length;return i.createElement(nu.Provider,{value:X},i.createElement("div",{className:ue(ae,(t={},ee(t,"".concat(ae,"-rtl"),j==="rtl"),ee(t,"".concat(ae,"-empty"),re),t),c),style:l},re?I:i.createElement(QI,{prefixCls:a,searchValue:"",multiple:M,toggleOpen:pq,open:!0,direction:j,disabled:O})))}var hq=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","onOpenChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],gf=i.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-cascader":r,l=e.fieldNames,c=e.defaultValue,u=e.value,d=e.changeOnSelect,f=e.onChange,v=e.displayRender,g=e.checkable,p=e.autoClearSearchValue,b=p===void 0?!0:p,C=e.searchValue,S=e.onSearch,h=e.showSearch,x=e.expandTrigger,w=e.options,E=e.dropdownPrefixCls,j=e.loadData,R=e.popupVisible,I=e.open,O=e.popupClassName,M=e.dropdownClassName,N=e.dropdownMenuColumnStyle,P=e.dropdownStyle,B=e.popupPlacement,L=e.placement,k=e.onDropdownVisibleChange,D=e.onPopupVisibleChange,H=e.onOpenChange,z=e.expandIcon,_=z===void 0?">":z,F=e.loadingIcon,W=e.children,q=e.dropdownMatchSelectWidth,V=q===void 0?!1:q,G=e.showCheckedStrategy,K=G===void 0?BI:G,U=e.optionRender,Z=Lt(e,hq),Q=U6(n),te=!!g,X=bn(c,{value:u,postState:Lv}),ae=fe(X,2),re=ae[0],ne=ae[1],Y=i.useMemo(function(){return LI(l)},[JSON.stringify(l)]),ie=UI(Y,w),le=fe(ie,3),de=le[0],ce=le[1],ge=le[2],he=bn("",{value:C,postState:function(Et){return Et||""}}),Oe=fe(he,2),je=Oe[0],pe=Oe[1],we=function(Et,ct){pe(Et),ct.source!=="blur"&&S&&S(Et)},Se=iq(h),Ce=fe(Se,2),De=Ce[0],Ae=Ce[1],Ye=QU(je,de,Y,E||a,Ae,d||te),Ke=VI(de,Y),Fe=XI(te,re,ce,ge,Ke),Ge=fe(Fe,3),Te=Ge[0],Ee=Ge[1],_e=Ge[2],Re=i.useMemo(function(){var Pt=Bc(Te),Et=FI(Pt,ce,K);return[].concat(Ne(_e),Ne(ge(Et)))},[Te,ce,ge,_e,K]),Pe=tq(Re,de,Y,te,v),be=Xt(function(Pt){if(ne(Pt),f){var Et=Lv(Pt),ct=Et.map(function(Je){return kc(Je,de,Y).map(function(Ve){return Ve.option})}),St=te?Et:Et[0],yt=te?ct:ct[0];f(St,yt)}}),$e=GI(te,be,Te,Ee,_e,ce,ge,K),Me=Xt(function(Pt){(!te||b)&&pe(""),$e(Pt)}),Le=function(Et,ct){if(ct.type==="clear"){be([]);return}var St=ct.values[0],yt=St.valueCells;Me(yt)},et=I!==void 0?I:R,bt=M||O,We=L||B,tt=function(Et){H==null||H(Et),k==null||k(Et),D==null||D(Et)},dt=i.useMemo(function(){return{options:de,fieldNames:Y,values:Te,halfValues:Ee,changeOnSelect:d,onSelect:Me,checkable:g,searchOptions:Ye,dropdownPrefixCls:E,loadData:j,expandTrigger:x,expandIcon:_,loadingIcon:F,dropdownMenuColumnStyle:N,optionRender:U}},[de,Y,Te,Ee,d,Me,g,Ye,E,j,x,_,F,N,U]),at=!(je?Ye:de).length,pt=je&&Ae.matchInputWidth||at?{}:{minWidth:"auto"};return i.createElement(nu.Provider,{value:dt},i.createElement(V6,ye({},Z,{ref:t,id:Q,prefixCls:a,autoClearSearchValue:b,dropdownMatchSelectWidth:V,dropdownStyle:se(se({},pt),P),displayValues:Pe,onDisplayValuesChange:Le,mode:te?"multiple":void 0,searchValue:je,onSearch:we,showSearch:De,OptionList:gq,emptyOptions:at,open:et,dropdownClassName:bt,placement:We,onDropdownVisibleChange:tt,getRawInputElement:function(){return W}})))});gf.SHOW_PARENT=BI;gf.SHOW_CHILD=kI;gf.Panel=ZI;function JI(e,t){const{getPrefixCls:n,direction:r,renderEmpty:a}=i.useContext(Rt),l=t||r,c=n("select",e),u=n("cascader",e);return[c,u,l,a]}function eN(e,t){return i.useMemo(()=>t?i.createElement("span",{className:`${e}-checkbox-inner`}):!1,[e,t])}const tN=(e,t,n)=>{let r=n;n||(r=t?i.createElement(Ac,null):i.createElement(dl,null));const a=i.useMemo(()=>i.createElement("span",{className:`${e}-menu-item-loading-icon`},i.createElement(Io,{spin:!0})),[e]);return i.useMemo(()=>[r,a],[r,a])},bq=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},dn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},dn(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({},dn(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`]:jo(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${oe(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:`${oe(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}})},{[`
|
|
333
|
+
${n}:not(${n}-disabled),
|
|
334
|
+
${t}:not(${t}-disabled)
|
|
335
|
+
`]:{[`&: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}`}}},[`
|
|
336
|
+
${n}-checked:not(${n}-disabled),
|
|
337
|
+
${t}-checked:not(${t}-disabled)
|
|
338
|
+
`]:{[`&: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 uC(e,t){const n=tn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return bq(n)}const nN=sn("Checkbox",(e,{prefixCls:t})=>[uC(t,e)]),rN=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,a=`
|
|
339
|
+
&${r}-expand ${r}-expand-icon,
|
|
340
|
+
${r}-loading-icon
|
|
341
|
+
`;return[uC(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},Ua),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[a]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[a]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},yq=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},rN(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Cs(e)]},aN=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},oN=sn("Cascader",yq,aN,{unitless:{optionSelectedFontWeight:!0}}),Cq=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[rN(e),{display:"inline-flex",border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},Sq=aR(["Cascader","Panel"],Cq,aN);function xq(e){const{prefixCls:t,className:n,multiple:r,rootClassName:a,notFoundContent:l,direction:c,expandIcon:u,disabled:d}=e,f=i.useContext(Vr),v=d??f,[g,p,b,C]=JI(t,c),S=cr(p),[h,x,w]=oN(p,S);Sq(p);const E=b==="rtl",[j,R]=tN(g,E,u),I=l||(C==null?void 0:C("Cascader"))||i.createElement(uf,{componentName:"Cascader"}),O=eN(p,r);return h(i.createElement(ZI,Object.assign({},e,{checkable:O,prefixCls:p,className:ue(n,x,a,w,S),notFoundContent:I,direction:b,expandIcon:j,loadingIcon:R,disabled:v})))}var $q=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{SHOW_CHILD:wq,SHOW_PARENT:Eq}=gf;function Oq(e,t,n){const r=e.toLowerCase().split(t).reduce((c,u,d)=>d===0?[u]:[].concat(Ne(c),[t,u]),[]),a=[];let l=0;return r.forEach((c,u)=>{const d=l+c.length;let f=e.slice(l,d);l=d,u%2===1&&(f=i.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${u}`},f)),a.push(f)}),a}const Rq=(e,t,n,r)=>{const a=[],l=e.toLowerCase();return t.forEach((c,u)=>{u!==0&&a.push(" / ");let d=c[r.label];const f=typeof d;(f==="string"||f==="number")&&(d=Oq(String(d),l,n)),a.push(d)}),a},ru=i.forwardRef((e,t)=>{var n,r,a,l;const{prefixCls:c,size:u,disabled:d,className:f,rootClassName:v,multiple:g,bordered:p=!0,transitionName:b,choiceTransitionName:C="",popupClassName:S,dropdownClassName:h,expandIcon:x,placement:w,showSearch:E,allowClear:j=!0,notFoundContent:R,direction:I,getPopupContainer:O,status:M,showArrow:N,builtinPlacements:P,style:B,variant:L,dropdownRender:k,onDropdownVisibleChange:D,dropdownMenuColumnStyle:H,popupRender:z,dropdownStyle:_,popupMenuColumnStyle:F,onOpenChange:W,styles:q,classNames:V}=e,G=$q(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant","dropdownRender","onDropdownVisibleChange","dropdownMenuColumnStyle","popupRender","dropdownStyle","popupMenuColumnStyle","onOpenChange","styles","classNames"]),K=wn(G,["suffixIcon"]),{getPrefixCls:U,getPopupContainer:Z,className:Q,style:te,classNames:X,styles:ae}=fr("cascader"),{popupOverflow:re}=i.useContext(Rt),{status:ne,hasFeedback:Y,isFormItemInput:ie,feedbackIcon:le}=i.useContext(Wr),de=yl(ne,M),[ce,ge,he,Oe]=JI(c,I),je=he==="rtl",pe=U(),we=cr(ce),[Se,Ce,De]=nj(ce,we),Ae=cr(ge),[Ye]=oN(ge,Ae),{compactSize:Ke,compactItemClassnames:Fe}=Do(ce,I),[Ge,Te]=Cl("cascader",L,p),Ee=R||(Oe==null?void 0:Oe("Cascader"))||i.createElement(uf,{componentName:"Cascader"}),_e=ue(((n=V==null?void 0:V.popup)===null||n===void 0?void 0:n.root)||((r=X.popup)===null||r===void 0?void 0:r.root)||S||h,`${ge}-dropdown`,{[`${ge}-dropdown-rtl`]:he==="rtl"},v,we,X.root,V==null?void 0:V.root,Ae,Ce,De),Re=rj(z||k),Pe=F||H,be=W||D,$e=((a=q==null?void 0:q.popup)===null||a===void 0?void 0:a.root)||((l=ae.popup)===null||l===void 0?void 0:l.root)||_,Me=i.useMemo(()=>{if(!E)return E;let Ve={render:Rq};return typeof E=="object"&&(Ve=Object.assign(Object.assign({},Ve),E)),Ve},[E]),Le=Nr(Ve=>{var Ue;return(Ue=u??Ke)!==null&&Ue!==void 0?Ue:Ve}),et=i.useContext(Vr),bt=d??et,[We,tt]=tN(ce,je,x),dt=eN(ge,g),at=aj(e.suffixIcon,N),{suffixIcon:pt,removeIcon:Pt,clearIcon:Et}=A1(Object.assign(Object.assign({},e),{hasFeedback:Y,feedbackIcon:le,showSuffixIcon:at,multiple:g,prefixCls:ce,componentName:"Cascader"})),ct=i.useMemo(()=>w!==void 0?w:je?"bottomRight":"bottomLeft",[w,je]),St=j===!0?{clearIcon:Et}:j,[yt]=zo("SelectLike",$e==null?void 0:$e.zIndex),Je=i.createElement(gf,Object.assign({prefixCls:ce,className:ue(!c&&ge,{[`${ce}-lg`]:Le==="large",[`${ce}-sm`]:Le==="small",[`${ce}-rtl`]:je,[`${ce}-${Ge}`]:Te,[`${ce}-in-form-item`]:ie},Ci(ce,de,Y),Fe,Q,f,v,V==null?void 0:V.root,X.root,we,Ae,Ce,De),disabled:bt,style:Object.assign(Object.assign(Object.assign(Object.assign({},ae.root),q==null?void 0:q.root),te),B)},K,{builtinPlacements:Y6(P,re),direction:he,placement:ct,notFoundContent:Ee,allowClear:St,showSearch:Me,expandIcon:We,suffixIcon:pt,removeIcon:Pt,loadingIcon:tt,checkable:dt,dropdownClassName:_e,dropdownPrefixCls:c||ge,dropdownStyle:Object.assign(Object.assign({},$e),{zIndex:yt}),dropdownRender:Re,dropdownMenuColumnStyle:Pe,onOpenChange:be,choiceTransitionName:Uo(pe,"",C),transitionName:Uo(pe,"slide-up",b),getPopupContainer:O||Z,ref:t}));return Ye(Se(Je))}),jq=Qc(ru,"dropdownAlign",e=>wn(e,["visible"]));ru.SHOW_PARENT=Eq;ru.SHOW_CHILD=wq;ru.Panel=xq;ru._InternalPanelDoNotUseOrYouWillBeFired=jq;const iN=ve.createContext(null);var Iq=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 Nq=(e,t)=>{var n;const{prefixCls:r,className:a,rootClassName:l,children:c,indeterminate:u=!1,style:d,onMouseEnter:f,onMouseLeave:v,skipGroup:g=!1,disabled:p}=e,b=Iq(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:C,direction:S,checkbox:h}=i.useContext(Rt),x=i.useContext(iN),{isFormItemInput:w}=i.useContext(Wr),E=i.useContext(Vr),j=(n=(x==null?void 0:x.disabled)||p)!==null&&n!==void 0?n:E,R=i.useRef(b.value),I=i.useRef(null),O=Ir(t,I);i.useEffect(()=>{x==null||x.registerValue(b.value)},[]),i.useEffect(()=>{if(!g)return b.value!==R.current&&(x==null||x.cancelValue(R.current),x==null||x.registerValue(b.value),R.current=b.value),()=>x==null?void 0:x.cancelValue(b.value)},[b.value]),i.useEffect(()=>{var F;!((F=I.current)===null||F===void 0)&&F.input&&(I.current.input.indeterminate=u)},[u]);const M=C("checkbox",r),N=cr(M),[P,B,L]=nN(M,N),k=Object.assign({},b);x&&!g&&(k.onChange=(...F)=>{b.onChange&&b.onChange.apply(b,F),x.toggleOption&&x.toggleOption({label:c,value:b.value})},k.name=x.name,k.checked=x.value.includes(b.value));const D=ue(`${M}-wrapper`,{[`${M}-rtl`]:S==="rtl",[`${M}-wrapper-checked`]:k.checked,[`${M}-wrapper-disabled`]:j,[`${M}-wrapper-in-form-item`]:w},h==null?void 0:h.className,a,l,L,N,B),H=ue({[`${M}-indeterminate`]:u},sg,B),[z,_]=yI(k.onClick);return P(i.createElement(ef,{component:"Checkbox",disabled:j},i.createElement("label",{className:D,style:Object.assign(Object.assign({},h==null?void 0:h.style),d),onMouseEnter:f,onMouseLeave:v,onClick:z},i.createElement(bI,Object.assign({},k,{onClick:_,prefixCls:M,className:H,disabled:j,ref:O})),c!=null&&i.createElement("span",{className:`${M}-label`},c))))},lN=i.forwardRef(Nq);var Mq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Tq=i.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:a=[],prefixCls:l,className:c,rootClassName:u,style:d,onChange:f}=e,v=Mq(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:g,direction:p}=i.useContext(Rt),[b,C]=i.useState(v.value||n||[]),[S,h]=i.useState([]);i.useEffect(()=>{"value"in v&&C(v.value||[])},[v.value]);const x=i.useMemo(()=>a.map(H=>typeof H=="string"||typeof H=="number"?{label:H,value:H}:H),[a]),w=H=>{h(z=>z.filter(_=>_!==H))},E=H=>{h(z=>[].concat(Ne(z),[H]))},j=H=>{const z=b.indexOf(H.value),_=Ne(b);z===-1?_.push(H.value):_.splice(z,1),"value"in v||C(_),f==null||f(_.filter(F=>S.includes(F)).sort((F,W)=>{const q=x.findIndex(G=>G.value===F),V=x.findIndex(G=>G.value===W);return q-V}))},R=g("checkbox",l),I=`${R}-group`,O=cr(R),[M,N,P]=nN(R,O),B=wn(v,["value","disabled"]),L=a.length?x.map(H=>i.createElement(lN,{prefixCls:R,key:H.value.toString(),disabled:"disabled"in H?H.disabled:v.disabled,value:H.value,checked:b.includes(H.value),onChange:H.onChange,className:ue(`${I}-item`,H.className),style:H.style,title:H.title,id:H.id,required:H.required},H.label)):r,k=i.useMemo(()=>({toggleOption:j,value:b,disabled:v.disabled,name:v.name,registerValue:E,cancelValue:w}),[j,b,v.disabled,v.name,E,w]),D=ue(I,{[`${I}-rtl`]:p==="rtl"},c,u,P,O,N);return M(i.createElement("div",Object.assign({className:D,style:d},B,{ref:t}),i.createElement(iN.Provider,{value:k},L)))}),ya=lN;ya.Group=Tq;ya.__ANT_CHECKBOX=!0;const sN=i.createContext({});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};function pO(e){return e==="auto"?"1 1 auto":typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const zq=["xs","sm","md","lg","xl","xxl"],na=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=i.useContext(Rt),{gutter:a,wrap:l}=i.useContext(sN),{prefixCls:c,span:u,order:d,offset:f,push:v,pull:g,className:p,children:b,flex:C,style:S}=e,h=Pq(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),x=n("col",c),[w,E,j]=IB(x),R={};let I={};zq.forEach(N=>{let P={};const B=e[N];typeof B=="number"?P.span=B:typeof B=="object"&&(P=B||{}),delete h[N],I=Object.assign(Object.assign({},I),{[`${x}-${N}-${P.span}`]:P.span!==void 0,[`${x}-${N}-order-${P.order}`]:P.order||P.order===0,[`${x}-${N}-offset-${P.offset}`]:P.offset||P.offset===0,[`${x}-${N}-push-${P.push}`]:P.push||P.push===0,[`${x}-${N}-pull-${P.pull}`]:P.pull||P.pull===0,[`${x}-rtl`]:r==="rtl"}),P.flex&&(I[`${x}-${N}-flex`]=!0,R[`--${x}-${N}-flex`]=pO(P.flex))});const O=ue(x,{[`${x}-${u}`]:u!==void 0,[`${x}-order-${d}`]:d,[`${x}-offset-${f}`]:f,[`${x}-push-${v}`]:v,[`${x}-pull-${g}`]:g},p,I,E,j),M={};if(a!=null&&a[0]){const N=typeof a[0]=="number"?`${a[0]/2}px`:`calc(${a[0]} / 2)`;M.paddingLeft=N,M.paddingRight=N}return C&&(M.flex=pO(C),l===!1&&!M.minWidth&&(M.minWidth=0)),w(i.createElement("div",Object.assign({},h,{style:Object.assign(Object.assign(Object.assign({},M),S),R),className:O,ref:t}),b))});function Dq(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((l,c)=>{if(typeof l=="object"&&l!==null)for(let u=0;u<us.length;u++){const d=us[u];if(a[d]&&l[d]!==void 0){n[c]=l[d];break}}else n[c]=l}),n}var _q=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 hO(e,t){const[n,r]=i.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let l=0;l<us.length;l++){const c=us[l];if(!t||!t[c])continue;const u=e[c];if(u!==void 0){r(u);return}}};return i.useEffect(()=>{a()},[JSON.stringify(e),t]),n}const Hc=i.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:l,style:c,children:u,gutter:d=0,wrap:f}=e,v=_q(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:p}=i.useContext(Rt),b=Og(!0,null),C=hO(a,b),S=hO(r,b),h=g("row",n),[x,w,E]=jB(h),j=Dq(d,b),R=ue(h,{[`${h}-no-wrap`]:f===!1,[`${h}-${S}`]:S,[`${h}-${C}`]:C,[`${h}-rtl`]:p==="rtl"},l,w,E),I={};if(j!=null&&j[0]){const P=typeof j[0]=="number"?`${j[0]/-2}px`:`calc(${j[0]} / -2)`;I.marginLeft=P,I.marginRight=P}const[O,M]=j;I.rowGap=M;const N=i.useMemo(()=>({gutter:[O,M],wrap:f}),[O,M,f]);return x(i.createElement(sN.Provider,{value:N},i.createElement("div",Object.assign({},v,{className:R,style:Object.assign(Object.assign({},I),c),ref:t}),u)))}),Aq=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},Bq=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:l,orientationMargin:c,verticalMarginInline:u}=e;return{[t]:Object.assign(Object.assign({},dn(e)),{borderBlockStart:`${oe(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:u,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${oe(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${oe(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${oe(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:`${oe(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:l},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${oe(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:`${oe(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}}})}},kq=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Lq=sn("Divider",e=>{const t=tn(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[Bq(t),Aq(t)]},kq,{unitless:{orientationMargin:!0}});var Hq=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={small:"sm",middle:"md"},dC=e=>{const{getPrefixCls:t,direction:n,className:r,style:a}=fr("divider"),{prefixCls:l,type:c="horizontal",orientation:u="center",orientationMargin:d,className:f,rootClassName:v,children:g,dashed:p,variant:b="solid",plain:C,style:S,size:h}=e,x=Hq(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),w=t("divider",l),[E,j,R]=Lq(w),I=Nr(h),O=Fq[I],M=!!g,N=i.useMemo(()=>u==="left"?n==="rtl"?"end":"start":u==="right"?n==="rtl"?"start":"end":u,[n,u]),P=N==="start"&&d!=null,B=N==="end"&&d!=null,L=ue(w,r,j,R,`${w}-${c}`,{[`${w}-with-text`]:M,[`${w}-with-text-${N}`]:M,[`${w}-dashed`]:!!p,[`${w}-${b}`]:b!=="solid",[`${w}-plain`]:!!C,[`${w}-rtl`]:n==="rtl",[`${w}-no-default-orientation-margin-start`]:P,[`${w}-no-default-orientation-margin-end`]:B,[`${w}-${O}`]:!!O},f,v),k=i.useMemo(()=>typeof d=="number"?d:/^\d+$/.test(d)?Number(d):d,[d]),D={marginInlineStart:P?k:void 0,marginInlineEnd:B?k:void 0};return E(i.createElement("div",Object.assign({className:L,style:Object.assign(Object.assign({},a),S)},x,{role:"separator"}),g&&c!=="vertical"&&i.createElement("span",{className:`${w}-inner-text`,style:D},g)))};var bO=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},Ho=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Vq(e){var t=e.prefixCls,n=e.containerRef,r=e.value,a=e.getValueIndex,l=e.motionName,c=e.onMotionStart,u=e.onMotionEnd,d=e.direction,f=e.vertical,v=f===void 0?!1:f,g=i.useRef(null),p=i.useState(r),b=fe(p,2),C=b[0],S=b[1],h=function(H){var z,_=a(H),F=(z=n.current)===null||z===void 0?void 0:z.querySelectorAll(".".concat(t,"-item"))[_];return(F==null?void 0:F.offsetParent)&&F},x=i.useState(null),w=fe(x,2),E=w[0],j=w[1],R=i.useState(null),I=fe(R,2),O=I[0],M=I[1];nn(function(){if(C!==r){var D=h(C),H=h(r),z=bO(D,v),_=bO(H,v);S(r),j(z),M(_),D&&H?c():u()}},[r]);var N=i.useMemo(function(){if(v){var D;return Ho((D=E==null?void 0:E.top)!==null&&D!==void 0?D:0)}return Ho(d==="rtl"?-(E==null?void 0:E.right):E==null?void 0:E.left)},[v,d,E]),P=i.useMemo(function(){if(v){var D;return Ho((D=O==null?void 0:O.top)!==null&&D!==void 0?D:0)}return Ho(d==="rtl"?-(O==null?void 0:O.right):O==null?void 0:O.left)},[v,d,O]),B=function(){return v?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},L=function(){return v?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},k=function(){j(null),M(null),u()};return!E||!O?null:i.createElement(Qr,{visible:!0,motionName:l,motionAppear:!0,onAppearStart:B,onAppearActive:L,onVisibleChanged:k},function(D,H){var z=D.className,_=D.style,F=se(se({},_),{},{"--thumb-start-left":N,"--thumb-start-width":Ho(E==null?void 0:E.width),"--thumb-active-left":P,"--thumb-active-width":Ho(O==null?void 0:O.width),"--thumb-start-top":N,"--thumb-start-height":Ho(E==null?void 0:E.height),"--thumb-active-top":P,"--thumb-active-height":Ho(O==null?void 0:O.height)}),W={ref:Ir(g,H),style:F,className:ue("".concat(t,"-thumb"),z)};return i.createElement("div",W)})}var Wq=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function Kq(e){if(typeof e.title<"u")return e.title;if($t(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function Uq(e){return e.map(function(t){if($t(t)==="object"&&t!==null){var n=Kq(t);return se(se({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var qq=function(t){var n=t.prefixCls,r=t.className,a=t.disabled,l=t.checked,c=t.label,u=t.title,d=t.value,f=t.name,v=t.onChange,g=t.onFocus,p=t.onBlur,b=t.onKeyDown,C=t.onKeyUp,S=t.onMouseDown,h=function(w){a||v(w,d)};return i.createElement("label",{className:ue(r,ee({},"".concat(n,"-item-disabled"),a)),onMouseDown:S},i.createElement("input",{name:f,className:"".concat(n,"-item-input"),type:"radio",disabled:a,checked:l,onChange:h,onFocus:g,onBlur:p,onKeyDown:b,onKeyUp:C}),i.createElement("div",{className:"".concat(n,"-item-label"),title:u},c))},Gq=i.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-segmented":r,l=e.direction,c=e.vertical,u=e.options,d=u===void 0?[]:u,f=e.disabled,v=e.defaultValue,g=e.value,p=e.name,b=e.onChange,C=e.className,S=C===void 0?"":C,h=e.motionName,x=h===void 0?"thumb-motion":h,w=Lt(e,Wq),E=i.useRef(null),j=i.useMemo(function(){return Ir(E,t)},[E,t]),R=i.useMemo(function(){return Uq(d)},[d]),I=bn((n=R[0])===null||n===void 0?void 0:n.value,{value:g,defaultValue:v}),O=fe(I,2),M=O[0],N=O[1],P=i.useState(!1),B=fe(P,2),L=B[0],k=B[1],D=function(ne,Y){N(Y),b==null||b(Y)},H=wn(w,["children"]),z=i.useState(!1),_=fe(z,2),F=_[0],W=_[1],q=i.useState(!1),V=fe(q,2),G=V[0],K=V[1],U=function(){K(!0)},Z=function(){K(!1)},Q=function(){W(!1)},te=function(ne){ne.key==="Tab"&&W(!0)},X=function(ne){var Y=R.findIndex(function(ce){return ce.value===M}),ie=R.length,le=(Y+ne+ie)%ie,de=R[le];de&&(N(de.value),b==null||b(de.value))},ae=function(ne){switch(ne.key){case"ArrowLeft":case"ArrowUp":X(-1);break;case"ArrowRight":case"ArrowDown":X(1);break}};return i.createElement("div",ye({role:"radiogroup","aria-label":"segmented control",tabIndex:f?void 0:0,"aria-orientation":c?"vertical":"horizontal"},H,{className:ue(a,ee(ee(ee({},"".concat(a,"-rtl"),l==="rtl"),"".concat(a,"-disabled"),f),"".concat(a,"-vertical"),c),S),ref:j}),i.createElement("div",{className:"".concat(a,"-group")},i.createElement(Vq,{vertical:c,prefixCls:a,value:M,containerRef:E,motionName:"".concat(a,"-").concat(x),direction:l,getValueIndex:function(ne){return R.findIndex(function(Y){return Y.value===ne})},onMotionStart:function(){k(!0)},onMotionEnd:function(){k(!1)}}),R.map(function(re){return i.createElement(qq,ye({},re,{name:p,key:re.value,prefixCls:a,className:ue(re.className,"".concat(a,"-item"),ee(ee({},"".concat(a,"-item-selected"),re.value===M&&!L),"".concat(a,"-item-focused"),G&&F&&re.value===M)),checked:re.value===M,onChange:D,onFocus:U,onBlur:Z,onKeyDown:ae,onKeyUp:te,onMouseDown:Q,disabled:!!f||!!re.disabled}))})))}),Xq=Gq;function yO(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function CO(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Yq=Object.assign({overflow:"hidden"},Ua),Qq=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dn(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`}),qa(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${oe(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},CO(e)),{color:e.itemSelectedColor}),"&-focused":jo(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:oe(n),padding:`0 ${oe(e.segmentedPaddingHorizontal)}`},Yq),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},CO(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${oe(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:oe(r),padding:`0 ${oe(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:a,lineHeight:oe(a),padding:`0 ${oe(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),yO(`&-disabled ${t}-item`,e)),yO(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}},Zq=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:a,colorFill:l,lineWidthBold:c,colorBgLayout:u}=e;return{trackPadding:c,trackBg:u,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:a,itemActiveBg:l,itemSelectedColor:n}},Jq=sn("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=tn(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return Qq(r)},Zq);var SO=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 eG(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const tG=i.forwardRef((e,t)=>{const n=af(),{prefixCls:r,className:a,rootClassName:l,block:c,options:u=[],size:d="middle",style:f,vertical:v,shape:g="default",name:p=n}=e,b=SO(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:C,direction:S,className:h,style:x}=fr("segmented"),w=C("segmented",r),[E,j,R]=Jq(w),I=Nr(d),O=i.useMemo(()=>u.map(P=>{if(eG(P)){const{icon:B,label:L}=P,k=SO(P,["icon","label"]);return Object.assign(Object.assign({},k),{label:i.createElement(i.Fragment,null,i.createElement("span",{className:`${w}-item-icon`},B),L&&i.createElement("span",null,L))})}return P}),[u,w]),M=ue(a,l,h,{[`${w}-block`]:c,[`${w}-sm`]:I==="small",[`${w}-lg`]:I==="large",[`${w}-vertical`]:v,[`${w}-shape-${g}`]:g==="round"},j,R),N=Object.assign(Object.assign({},x),f);return E(i.createElement(Xq,Object.assign({},b,{name:p,className:M,style:N,options:O,ref:t,prefixCls:w,direction:S,vertical:v})))}),nG=tG;var rG={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"},aG=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:rG}))},oG=i.forwardRef(aG);function _y(){return typeof BigInt=="function"}function cN(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function rs(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("."),l=a[0]||"0",c=a[1]||"0";l==="0"&&c==="0"&&(n=!1);var u=n?"-":"";return{negative:n,negativeStr:u,trimStr:r,integerStr:l,decimalStr:c,fullStr:"".concat(u).concat(r)}}function Fg(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function uN(e){var t=e.toLowerCase().split("e"),n=fe(t,2),r=n[0],a=n[1],l=a===void 0?"0":a,c=r.startsWith("-"),u=c?r.slice(1):r,d=u.split("."),f=fe(d,2),v=f[0],g=v===void 0?"0":v,p=f[1],b=p===void 0?"":p,C="".concat(g).concat(b).replace(/^0+/,"")||"0";return{decimal:b,digits:C,exponent:Number(l),integer:g,negative:c}}function iG(e){var t=e.decimal,n=e.digits,r=e.exponent,a=e.integer,l=e.negative;if(n==="0")return"0";var c=a.replace(/^0+/,"").length,u=(t.match(/^0*/)||[""])[0].length,d=c||-u,f=d+r,v="";return f<=0?v="0.".concat("0".repeat(-f)).concat(n):f>=n.length?v="".concat(n).concat("0".repeat(f-n.length)):v="".concat(n.slice(0,f),".").concat(n.slice(f)),"".concat(l?"-":"").concat(v)}function dN(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function Gl(e){var t=String(e);return Fg(e)?dN(uN(t)):t.includes(".")&&fC(t)?t.length-t.indexOf(".")-1:0}function Vg(e){var t=String(e);if(Fg(e)){if(e>Number.MAX_SAFE_INTEGER)return String(_y()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(_y()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var n=uN(t),r=dN(n);t=r>100?iG(n):e.toFixed(r)}return rs(t).fullStr}function fC(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 lG=(function(){function e(t){if(ur(this,e),ee(this,"origin",""),ee(this,"negative",void 0),ee(this,"integer",void 0),ee(this,"decimal",void 0),ee(this,"decimalLen",void 0),ee(this,"empty",void 0),ee(this,"nan",void 0),cN(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Fg(n)&&(n=Number(n)),n=typeof n=="string"?n:Vg(n),fC(n)){var r=rs(n);this.negative=r.negative;var a=r.trimStr.split(".");this.integer=BigInt(a[0]);var l=a[1]||"0";this.decimal=BigInt(l),this.decimalLen=l.length}else this.nan=!0}return dr(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 l=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),c=this.alignDecimal(l),u=n.alignDecimal(l),d=r(c,u).toString(),f=a(l),v=rs(d),g=v.negativeStr,p=v.trimStr,b="".concat(g).concat(p.padStart(f+1,"0"));return new e("".concat(b.slice(0,-f),".").concat(b.slice(-f)))}},{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,l){return a+l},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,l){return a*l},function(a){return a*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":rs("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),sG=(function(){function e(t){if(ur(this,e),ee(this,"origin",""),ee(this,"number",void 0),ee(this,"empty",void 0),cN(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return dr(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 l=Math.max(Gl(this.number),Gl(r));return new e(a.toFixed(l))}},{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 l=Math.max(Gl(this.number),Gl(r));return new e(a.toFixed(l))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Fg(this.number)&&Gl(this.number)>100?String(this.number):Vg(this.number):this.origin}}]),e})();function Co(e){return _y()?new lG(e):new sG(e)}function yv(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=rs(e),l=a.negativeStr,c=a.integerStr,u=a.decimalStr,d="".concat(t).concat(u),f="".concat(l).concat(c);if(n>=0){var v=Number(u[n]);if(v>=5&&!r){var g=Co(e).add("".concat(l,"0.").concat("0".repeat(n)).concat(10-v));return yv(g.toString(),t,n,r)}return n===0?f:"".concat(f).concat(t).concat(u.padEnd(n,"0").slice(0,n))}return d===".0"?f:"".concat(f).concat(d)}function cG(e){return!!(e.addonBefore||e.addonAfter)}function uG(e){return!!(e.prefix||e.suffix||e.allowClear)}function xO(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 Hv(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=xO(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=xO(t,e,r),n(a);return}n(a)}}function mC(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 vC=ve.forwardRef(function(e,t){var n,r,a,l=e.inputElement,c=e.children,u=e.prefixCls,d=e.prefix,f=e.suffix,v=e.addonBefore,g=e.addonAfter,p=e.className,b=e.style,C=e.disabled,S=e.readOnly,h=e.focused,x=e.triggerFocus,w=e.allowClear,E=e.value,j=e.handleReset,R=e.hidden,I=e.classes,O=e.classNames,M=e.dataAttrs,N=e.styles,P=e.components,B=e.onClear,L=c??l,k=(P==null?void 0:P.affixWrapper)||"span",D=(P==null?void 0:P.groupWrapper)||"span",H=(P==null?void 0:P.wrapper)||"span",z=(P==null?void 0:P.groupAddon)||"span",_=i.useRef(null),F=function(de){var ce;(ce=_.current)!==null&&ce!==void 0&&ce.contains(de.target)&&(x==null||x())},W=uG(e),q=i.cloneElement(L,{value:E,className:ue((n=L.props)===null||n===void 0?void 0:n.className,!W&&(O==null?void 0:O.variant))||null}),V=i.useRef(null);if(ve.useImperativeHandle(t,function(){return{nativeElement:V.current||_.current}}),W){var G=null;if(w){var K=!C&&!S&&E,U="".concat(u,"-clear-icon"),Z=$t(w)==="object"&&w!==null&&w!==void 0&&w.clearIcon?w.clearIcon:"✖";G=ve.createElement("button",{type:"button",tabIndex:-1,onClick:function(de){j==null||j(de),B==null||B()},onMouseDown:function(de){return de.preventDefault()},className:ue(U,ee(ee({},"".concat(U,"-hidden"),!K),"".concat(U,"-has-suffix"),!!f))},Z)}var Q="".concat(u,"-affix-wrapper"),te=ue(Q,ee(ee(ee(ee(ee({},"".concat(u,"-disabled"),C),"".concat(Q,"-disabled"),C),"".concat(Q,"-focused"),h),"".concat(Q,"-readonly"),S),"".concat(Q,"-input-with-clear-btn"),f&&w&&E),I==null?void 0:I.affixWrapper,O==null?void 0:O.affixWrapper,O==null?void 0:O.variant),X=(f||w)&&ve.createElement("span",{className:ue("".concat(u,"-suffix"),O==null?void 0:O.suffix),style:N==null?void 0:N.suffix},G,f);q=ve.createElement(k,ye({className:te,style:N==null?void 0:N.affixWrapper,onClick:F},M==null?void 0:M.affixWrapper,{ref:_}),d&&ve.createElement("span",{className:ue("".concat(u,"-prefix"),O==null?void 0:O.prefix),style:N==null?void 0:N.prefix},d),q,X)}if(cG(e)){var ae="".concat(u,"-group"),re="".concat(ae,"-addon"),ne="".concat(ae,"-wrapper"),Y=ue("".concat(u,"-wrapper"),ae,I==null?void 0:I.wrapper,O==null?void 0:O.wrapper),ie=ue(ne,ee({},"".concat(ne,"-disabled"),C),I==null?void 0:I.group,O==null?void 0:O.groupWrapper);q=ve.createElement(D,{className:ie,ref:V},ve.createElement(H,{className:Y},v&&ve.createElement(z,{className:re},v),q,g&&ve.createElement(z,{className:re},g)))}return ve.cloneElement(q,{className:ue((r=q.props)===null||r===void 0?void 0:r.className,p)||null,style:se(se({},(a=q.props)===null||a===void 0?void 0:a.style),b),hidden:R})}),dG=["show"];function fN(e,t){return i.useMemo(function(){var n={};t&&(n.show=$t(t)==="object"&&t.formatter?t.formatter:!!t),n=se(se({},n),e);var r=n,a=r.show,l=Lt(r,dG);return se(se({},l),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:l.strategy||function(c){return c.length}})},[e,t])}var fG=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],mG=i.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,l=e.onBlur,c=e.onPressEnter,u=e.onKeyDown,d=e.onKeyUp,f=e.prefixCls,v=f===void 0?"rc-input":f,g=e.disabled,p=e.htmlSize,b=e.className,C=e.maxLength,S=e.suffix,h=e.showCount,x=e.count,w=e.type,E=w===void 0?"text":w,j=e.classes,R=e.classNames,I=e.styles,O=e.onCompositionStart,M=e.onCompositionEnd,N=Lt(e,fG),P=i.useState(!1),B=fe(P,2),L=B[0],k=B[1],D=i.useRef(!1),H=i.useRef(!1),z=i.useRef(null),_=i.useRef(null),F=function(Ce){z.current&&mC(z.current,Ce)},W=bn(e.defaultValue,{value:e.value}),q=fe(W,2),V=q[0],G=q[1],K=V==null?"":String(V),U=i.useState(null),Z=fe(U,2),Q=Z[0],te=Z[1],X=fN(x,h),ae=X.max||C,re=X.strategy(K),ne=!!ae&&re>ae;i.useImperativeHandle(t,function(){var Se;return{focus:F,blur:function(){var De;(De=z.current)===null||De===void 0||De.blur()},setSelectionRange:function(De,Ae,Ye){var Ke;(Ke=z.current)===null||Ke===void 0||Ke.setSelectionRange(De,Ae,Ye)},select:function(){var De;(De=z.current)===null||De===void 0||De.select()},input:z.current,nativeElement:((Se=_.current)===null||Se===void 0?void 0:Se.nativeElement)||z.current}}),i.useEffect(function(){H.current&&(H.current=!1),k(function(Se){return Se&&g?!1:Se})},[g]);var Y=function(Ce,De,Ae){var Ye=De;if(!D.current&&X.exceedFormatter&&X.max&&X.strategy(De)>X.max){if(Ye=X.exceedFormatter(De,{max:X.max}),De!==Ye){var Ke,Fe;te([((Ke=z.current)===null||Ke===void 0?void 0:Ke.selectionStart)||0,((Fe=z.current)===null||Fe===void 0?void 0:Fe.selectionEnd)||0])}}else if(Ae.source==="compositionEnd")return;G(Ye),z.current&&Hv(z.current,Ce,r,Ye)};i.useEffect(function(){if(Q){var Se;(Se=z.current)===null||Se===void 0||Se.setSelectionRange.apply(Se,Ne(Q))}},[Q]);var ie=function(Ce){Y(Ce,Ce.target.value,{source:"change"})},le=function(Ce){D.current=!1,Y(Ce,Ce.currentTarget.value,{source:"compositionEnd"}),M==null||M(Ce)},de=function(Ce){c&&Ce.key==="Enter"&&!H.current&&(H.current=!0,c(Ce)),u==null||u(Ce)},ce=function(Ce){Ce.key==="Enter"&&(H.current=!1),d==null||d(Ce)},ge=function(Ce){k(!0),a==null||a(Ce)},he=function(Ce){H.current&&(H.current=!1),k(!1),l==null||l(Ce)},Oe=function(Ce){G(""),F(),z.current&&Hv(z.current,Ce,r)},je=ne&&"".concat(v,"-out-of-range"),pe=function(){var Ce=wn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ve.createElement("input",ye({autoComplete:n},Ce,{onChange:ie,onFocus:ge,onBlur:he,onKeyDown:de,onKeyUp:ce,className:ue(v,ee({},"".concat(v,"-disabled"),g),R==null?void 0:R.input),style:I==null?void 0:I.input,ref:z,size:p,type:E,onCompositionStart:function(Ae){D.current=!0,O==null||O(Ae)},onCompositionEnd:le}))},we=function(){var Ce=Number(ae)>0;if(S||X.show){var De=X.showFormatter?X.showFormatter({value:K,count:re,maxLength:ae}):"".concat(re).concat(Ce?" / ".concat(ae):"");return ve.createElement(ve.Fragment,null,X.show&&ve.createElement("span",{className:ue("".concat(v,"-show-count-suffix"),ee({},"".concat(v,"-show-count-has-suffix"),!!S),R==null?void 0:R.count),style:se({},I==null?void 0:I.count)},De),S)}return null};return ve.createElement(vC,ye({},N,{prefixCls:v,className:ue(b,je),handleReset:Oe,value:K,focused:L,triggerFocus:F,suffix:we(),disabled:g,classes:j,classNames:R,styles:I,ref:_}),pe())});function vG(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var l=r[a];return typeof l=="function"?l.bind(r):l}}):e}function gG(e,t){var n=i.useRef(null);function r(){try{var l=e.selectionStart,c=e.selectionEnd,u=e.value,d=u.substring(0,l),f=u.substring(c);n.current={start:l,end:c,value:u,beforeTxt:d,afterTxt:f}}catch{}}function a(){if(e&&n.current&&t)try{var l=e.value,c=n.current,u=c.beforeTxt,d=c.afterTxt,f=c.start,v=l.length;if(l.startsWith(u))v=u.length;else if(l.endsWith(d))v=l.length-n.current.afterTxt.length;else{var g=u[f-1],p=l.indexOf(g,f-1);p!==-1&&(v=p+1)}e.setSelectionRange(v,v)}catch(b){Xn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(b.message))}}return[r,a]}var pG=function(){var t=i.useState(!1),n=fe(t,2),r=n[0],a=n[1];return nn(function(){a(xg())},[]),r},hG=200,bG=600;function yG(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,l=e.downDisabled,c=e.onStep,u=i.useRef(),d=i.useRef([]),f=i.useRef();f.current=c;var v=function(){clearTimeout(u.current)},g=function(E,j){E.preventDefault(),v(),f.current(j);function R(){f.current(j),u.current=setTimeout(R,hG)}u.current=setTimeout(R,bG)};i.useEffect(function(){return function(){v(),d.current.forEach(function(w){return Yt.cancel(w)})}},[]);var p=pG();if(p)return null;var b="".concat(t,"-handler"),C=ue(b,"".concat(b,"-up"),ee({},"".concat(b,"-up-disabled"),a)),S=ue(b,"".concat(b,"-down"),ee({},"".concat(b,"-down-disabled"),l)),h=function(){return d.current.push(Yt(v))},x={unselectable:"on",role:"button",onMouseUp:h,onMouseLeave:h};return i.createElement("div",{className:"".concat(b,"-wrap")},i.createElement("span",ye({},x,{onMouseDown:function(E){g(E,!0)},"aria-label":"Increase Value","aria-disabled":a,className:C}),n||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),i.createElement("span",ye({},x,{onMouseDown:function(E){g(E,!1)},"aria-label":"Decrease Value","aria-disabled":l,className:S}),r||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function $O(e){var t=typeof e=="number"?Vg(e):rs(e).fullStr,n=t.includes(".");return n?rs(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const CG=(function(){var e=i.useRef(0),t=function(){Yt.cancel(e.current)};return i.useEffect(function(){return t},[]),function(n){t(),e.current=Yt(function(){n()})}});var SG=["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"],xG=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],wO=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},EO=function(t){var n=Co(t);return n.isInvalidate()?null:n},$G=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,l=e.min,c=e.max,u=e.step,d=u===void 0?1:u,f=e.defaultValue,v=e.value,g=e.disabled,p=e.readOnly,b=e.upHandler,C=e.downHandler,S=e.keyboard,h=e.changeOnWheel,x=h===void 0?!1:h,w=e.controls,E=w===void 0?!0:w;e.classNames;var j=e.stringMode,R=e.parser,I=e.formatter,O=e.precision,M=e.decimalSeparator,N=e.onChange,P=e.onInput,B=e.onPressEnter,L=e.onStep,k=e.changeOnBlur,D=k===void 0?!0:k,H=e.domRef,z=Lt(e,SG),_="".concat(n,"-input"),F=i.useRef(null),W=i.useState(!1),q=fe(W,2),V=q[0],G=q[1],K=i.useRef(!1),U=i.useRef(!1),Z=i.useRef(!1),Q=i.useState(function(){return Co(v??f)}),te=fe(Q,2),X=te[0],ae=te[1];function re(We){v===void 0&&ae(We)}var ne=i.useCallback(function(We,tt){if(!tt)return O>=0?O:Math.max(Gl(We),Gl(d))},[O,d]),Y=i.useCallback(function(We){var tt=String(We);if(R)return R(tt);var dt=tt;return M&&(dt=dt.replace(M,".")),dt.replace(/[^\w.-]+/g,"")},[R,M]),ie=i.useRef(""),le=i.useCallback(function(We,tt){if(I)return I(We,{userTyping:tt,input:String(ie.current)});var dt=typeof We=="number"?Vg(We):We;if(!tt){var at=ne(dt,tt);if(fC(dt)&&(M||at>=0)){var pt=M||".";dt=yv(dt,pt,at)}}return dt},[I,ne,M]),de=i.useState(function(){var We=f??v;return X.isInvalidate()&&["string","number"].includes($t(We))?Number.isNaN(We)?"":We:le(X.toString(),!1)}),ce=fe(de,2),ge=ce[0],he=ce[1];ie.current=ge;function Oe(We,tt){he(le(We.isInvalidate()?We.toString(!1):We.toString(!tt),tt))}var je=i.useMemo(function(){return EO(c)},[c,O]),pe=i.useMemo(function(){return EO(l)},[l,O]),we=i.useMemo(function(){return!je||!X||X.isInvalidate()?!1:je.lessEquals(X)},[je,X]),Se=i.useMemo(function(){return!pe||!X||X.isInvalidate()?!1:X.lessEquals(pe)},[pe,X]),Ce=gG(F.current,V),De=fe(Ce,2),Ae=De[0],Ye=De[1],Ke=function(tt){return je&&!tt.lessEquals(je)?je:pe&&!pe.lessEquals(tt)?pe:null},Fe=function(tt){return!Ke(tt)},Ge=function(tt,dt){var at=tt,pt=Fe(at)||at.isEmpty();if(!at.isEmpty()&&!dt&&(at=Ke(at)||at,pt=!0),!p&&!g&&pt){var Pt=at.toString(),Et=ne(Pt,dt);return Et>=0&&(at=Co(yv(Pt,".",Et)),Fe(at)||(at=Co(yv(Pt,".",Et,!0)))),at.equals(X)||(re(at),N==null||N(at.isEmpty()?null:wO(j,at)),v===void 0&&Oe(at,dt)),at}return X},Te=CG(),Ee=function We(tt){if(Ae(),ie.current=tt,he(tt),!U.current){var dt=Y(tt),at=Co(dt);at.isNaN()||Ge(at,!0)}P==null||P(tt),Te(function(){var pt=tt;R||(pt=tt.replace(/。/g,".")),pt!==tt&&We(pt)})},_e=function(){U.current=!0},Re=function(){U.current=!1,Ee(F.current.value)},Pe=function(tt){Ee(tt.target.value)},be=function(tt){var dt;if(!(tt&&we||!tt&&Se)){K.current=!1;var at=Co(Z.current?$O(d):d);tt||(at=at.negate());var pt=(X||Co(0)).add(at.toString()),Pt=Ge(pt,!1);L==null||L(wO(j,Pt),{offset:Z.current?$O(d):d,type:tt?"up":"down"}),(dt=F.current)===null||dt===void 0||dt.focus()}},$e=function(tt){var dt=Co(Y(ge)),at;dt.isNaN()?at=Ge(X,tt):at=Ge(dt,tt),v!==void 0?Oe(X,!1):at.isNaN()||Oe(at,!1)},Me=function(){K.current=!0},Le=function(tt){var dt=tt.key,at=tt.shiftKey;K.current=!0,Z.current=at,dt==="Enter"&&(U.current||(K.current=!1),$e(!1),B==null||B(tt)),S!==!1&&!U.current&&["Up","ArrowUp","Down","ArrowDown"].includes(dt)&&(be(dt==="Up"||dt==="ArrowUp"),tt.preventDefault())},et=function(){K.current=!1,Z.current=!1};i.useEffect(function(){if(x&&V){var We=function(at){be(at.deltaY<0),at.preventDefault()},tt=F.current;if(tt)return tt.addEventListener("wheel",We,{passive:!1}),function(){return tt.removeEventListener("wheel",We)}}});var bt=function(){D&&$e(!1),G(!1),K.current=!1};return ts(function(){X.isInvalidate()||Oe(X,!1)},[O,I]),ts(function(){var We=Co(v);ae(We);var tt=Co(Y(ge));(!We.equals(tt)||!K.current||I)&&Oe(We,K.current)},[v]),ts(function(){I&&Ye()},[ge]),i.createElement("div",{ref:H,className:ue(n,r,ee(ee(ee(ee(ee({},"".concat(n,"-focused"),V),"".concat(n,"-disabled"),g),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),X.isNaN()),"".concat(n,"-out-of-range"),!X.isInvalidate()&&!Fe(X))),style:a,onFocus:function(){G(!0)},onBlur:bt,onKeyDown:Le,onKeyUp:et,onCompositionStart:_e,onCompositionEnd:Re,onBeforeInput:Me},E&&i.createElement(yG,{prefixCls:n,upNode:b,downNode:C,upDisabled:we,downDisabled:Se,onStep:be}),i.createElement("div",{className:"".concat(_,"-wrap")},i.createElement("input",ye({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":X.isInvalidate()?null:X.toString(),step:d},z,{ref:Ir(F,t),className:_,value:ge,onChange:Pe,disabled:g,readOnly:p}))))}),wG=i.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,l=a===void 0?"rc-input-number":a,c=e.value,u=e.prefix,d=e.suffix,f=e.addonBefore,v=e.addonAfter,g=e.className,p=e.classNames,b=Lt(e,xG),C=i.useRef(null),S=i.useRef(null),h=i.useRef(null),x=function(E){h.current&&mC(h.current,E)};return i.useImperativeHandle(t,function(){return vG(h.current,{focus:x,nativeElement:C.current.nativeElement||S.current})}),i.createElement(vC,{className:g,triggerFocus:x,prefixCls:l,value:c,disabled:n,style:r,prefix:u,suffix:d,addonAfter:v,addonBefore:f,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:C},i.createElement($G,ye({prefixCls:l,disabled:n,ref:h,domRef:S,className:p==null?void 0:p.input},b)))});const EG=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({},Os(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new pn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},OO=({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}}}},OG=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:l,inputFontSizeLG:c,controlHeightLG:u,controlHeightSM:d,colorError:f,paddingInlineSM:v,paddingBlockSM:g,paddingBlockLG:p,paddingInlineLG:b,colorIcon:C,motionDurationMid:S,handleHoverColor:h,handleOpacity:x,paddingInline:w,paddingBlock:E,handleBg:j,handleActiveBg:R,colorTextDisabled:I,borderRadiusSM:O,borderRadiusLG:M,controlWidth:N,handleBorderColor:P,filledHandleBg:B,lineHeightLG:L,calc:k}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dn(e)),mf(e)),{display:"inline-block",width:N,margin:0,padding:0,borderRadius:a}),nC(e,{[`${t}-handler-wrap`]:{background:j,[`${t}-handler-down`]:{borderBlockStart:`${oe(n)} ${r} ${P}`}}})),aC(e,{[`${t}-handler-wrap`]:{background:B,[`${t}-handler-down`]:{borderBlockStart:`${oe(n)} ${r} ${P}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:j}}})),oC(e,{[`${t}-handler-wrap`]:{background:j,[`${t}-handler-down`]:{borderBlockStart:`${oe(n)} ${r} ${P}`}}})),rC(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:c,lineHeight:L,borderRadius:M,[`input${t}-input`]:{height:k(u).sub(k(n).mul(2)).equal(),padding:`${oe(p)} ${oe(b)}`}},"&-sm":{padding:0,fontSize:l,borderRadius:O,[`input${t}-input`]:{height:k(d).sub(k(n).mul(2)).equal(),padding:`${oe(g)} ${oe(v)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:f}}},"&-group":Object.assign(Object.assign(Object.assign({},dn(e)),II(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:M,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:O}}},wI(e)),OI(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({},dn(e)),{width:"100%",padding:`${oe(E)} ${oe(w)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${S} linear`,appearance:"textfield",fontSize:"inherit"}),iC(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:x,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${S}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
342
|
+
${t}-handler-up-inner,
|
|
343
|
+
${t}-handler-down-inner
|
|
344
|
+
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:C,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${oe(n)} ${r} ${P}`,transition:`all ${S} linear`,"&:active":{background:R},"&:hover":{height:"60%",[`
|
|
345
|
+
${t}-handler-up-inner,
|
|
346
|
+
${t}-handler-down-inner
|
|
347
|
+
`]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},hs()),{color:C,transition:`all ${S} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},OO(e,"lg")),OO(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
|
|
348
|
+
${t}-handler-up-disabled,
|
|
349
|
+
${t}-handler-down-disabled
|
|
350
|
+
`]:{cursor:"not-allowed"},[`
|
|
351
|
+
${t}-handler-up-disabled:hover &-handler-up-inner,
|
|
352
|
+
${t}-handler-down-disabled:hover &-handler-down-inner
|
|
353
|
+
`]:{color:I}})}]},RG=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:l,borderRadiusLG:c,borderRadiusSM:u,paddingInlineLG:d,paddingInlineSM:f,paddingBlockLG:v,paddingBlockSM:g,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${oe(n)} 0`}},mf(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:l,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:c,paddingInlineStart:d,[`input${t}-input`]:{padding:`${oe(v)} 0`}},"&-sm":{borderRadius:u,paddingInlineStart:f,[`input${t}-input`]:{padding:`${oe(g)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:a,transition:`margin ${p}`}},[`&: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}}},jG=sn("InputNumber",e=>{const t=tn(e,Es(e));return[OG(t),RG(t),Cs(t)]},EG,{unitless:{handleOpacity:!0},resetFont:!1});var IG=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 mN=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=i.useContext(Rt),a=i.useRef(null);i.useImperativeHandle(t,()=>a.current);const{className:l,rootClassName:c,size:u,disabled:d,prefixCls:f,addonBefore:v,addonAfter:g,prefix:p,suffix:b,bordered:C,readOnly:S,status:h,controls:x,variant:w}=e,E=IG(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),j=n("input-number",f),R=cr(j),[I,O,M]=jG(j,R),{compactSize:N,compactItemClassnames:P}=Do(j,r);let B=i.createElement(oG,{className:`${j}-handler-up-inner`}),L=i.createElement(Eg,{className:`${j}-handler-down-inner`});const k=typeof x=="boolean"?x:void 0;typeof x=="object"&&(B=typeof x.upIcon>"u"?B:i.createElement("span",{className:`${j}-handler-up-inner`},x.upIcon),L=typeof x.downIcon>"u"?L:i.createElement("span",{className:`${j}-handler-down-inner`},x.downIcon));const{hasFeedback:D,status:H,isFormItemInput:z,feedbackIcon:_}=i.useContext(Wr),F=yl(H,h),W=Nr(X=>{var ae;return(ae=u??N)!==null&&ae!==void 0?ae:X}),q=i.useContext(Vr),V=d??q,[G,K]=Cl("inputNumber",w,C),U=D&&i.createElement(i.Fragment,null,_),Z=ue({[`${j}-lg`]:W==="large",[`${j}-sm`]:W==="small",[`${j}-rtl`]:r==="rtl",[`${j}-in-form-item`]:z},O),Q=`${j}-group`,te=i.createElement(wG,Object.assign({ref:a,disabled:V,className:ue(M,R,l,c,P),upHandler:B,downHandler:L,prefixCls:j,readOnly:S,controls:k,prefix:p,suffix:U||b,addonBefore:v&&i.createElement(Xo,{form:!0,space:!0},v),addonAfter:g&&i.createElement(Xo,{form:!0,space:!0},g),classNames:{input:Z,variant:ue({[`${j}-${G}`]:K},Ci(j,F,D)),affixWrapper:ue({[`${j}-affix-wrapper-sm`]:W==="small",[`${j}-affix-wrapper-lg`]:W==="large",[`${j}-affix-wrapper-rtl`]:r==="rtl",[`${j}-affix-wrapper-without-controls`]:x===!1||V||S},O),wrapper:ue({[`${Q}-rtl`]:r==="rtl"},O),groupWrapper:ue({[`${j}-group-wrapper-sm`]:W==="small",[`${j}-group-wrapper-lg`]:W==="large",[`${j}-group-wrapper-rtl`]:r==="rtl",[`${j}-group-wrapper-${G}`]:K},Ci(`${j}-group-wrapper`,F,D),O)}},E));return I(te)}),Fv=mN,NG=e=>i.createElement(To,{theme:{components:{InputNumber:{handleVisible:!0}}}},i.createElement(mN,Object.assign({},e)));Fv._InternalPanelDoNotUseOrYouWillBeFired=NG;const vN=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ve.createElement(hl,null)}),t};function gN(e,t){const n=i.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,l,c,u;!((a=e.current)===null||a===void 0)&&a.input&&((l=e.current)===null||l===void 0?void 0:l.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 i.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function MG(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}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 pf=i.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:a,size:l,disabled:c,onBlur:u,onFocus:d,suffix:f,allowClear:v,addonAfter:g,addonBefore:p,className:b,style:C,styles:S,rootClassName:h,onChange:x,classNames:w,variant:E,_skipAddonWarning:j}=e,R=TG(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:I,direction:O,allowClear:M,autoComplete:N,className:P,style:B,classNames:L,styles:k}=fr("input"),D=I("input",n),H=i.useRef(null),z=cr(D),[_,F,W]=NI(D,h),[q]=MI(D,z),{compactSize:V,compactItemClassnames:G}=Do(D,O),K=Nr(Oe=>{var je;return(je=l??V)!==null&&je!==void 0?je:Oe}),U=ve.useContext(Vr),Z=c??U,{status:Q,hasFeedback:te,feedbackIcon:X}=i.useContext(Wr),ae=yl(Q,a),re=MG(e)||!!te;i.useRef(re);const ne=gN(H,!0),Y=Oe=>{ne(),u==null||u(Oe)},ie=Oe=>{ne(),d==null||d(Oe)},le=Oe=>{ne(),x==null||x(Oe)},de=(te||f)&&ve.createElement(ve.Fragment,null,f,te&&X),ce=vN(v??M),[ge,he]=Cl("input",E,r);return _(q(ve.createElement(mG,Object.assign({ref:Ir(t,H),prefixCls:D,autoComplete:N},R,{disabled:Z,onBlur:Y,onFocus:ie,style:Object.assign(Object.assign({},B),C),styles:Object.assign(Object.assign({},k),S),suffix:de,allowClear:ce,className:ue(b,h,W,z,G,P),onChange:le,addonBefore:p&&ve.createElement(Xo,{form:!0,space:!0},p),addonAfter:g&&ve.createElement(Xo,{form:!0,space:!0},g),classNames:Object.assign(Object.assign(Object.assign({},w),L),{input:ue({[`${D}-sm`]:K==="small",[`${D}-lg`]:K==="large",[`${D}-rtl`]:O==="rtl"},w==null?void 0:w.input,L.input,F),variant:ue({[`${D}-${ge}`]:he},Ci(D,ae)),affixWrapper:ue({[`${D}-affix-wrapper-sm`]:K==="small",[`${D}-affix-wrapper-lg`]:K==="large",[`${D}-affix-wrapper-rtl`]:O==="rtl"},F),wrapper:ue({[`${D}-group-rtl`]:O==="rtl"},F),groupWrapper:ue({[`${D}-group-wrapper-sm`]:K==="small",[`${D}-group-wrapper-lg`]:K==="large",[`${D}-group-wrapper-rtl`]:O==="rtl",[`${D}-group-wrapper-${ge}`]:he},Ci(`${D}-group-wrapper`,ae,te),F)})}))))});function Ay(e,t,n){return(e-t)/(n-t)}function gC(e,t,n,r){var a=Ay(t,n,r),l={};switch(e){case"rtl":l.right="".concat(a*100,"%"),l.transform="translateX(50%)";break;case"btt":l.bottom="".concat(a*100,"%"),l.transform="translateY(50%)";break;case"ttb":l.top="".concat(a*100,"%"),l.transform="translateY(-50%)";break;default:l.left="".concat(a*100,"%"),l.transform="translateX(-50%)";break}return l}function Xl(e,t){return Array.isArray(e)?e[t]:e}var Rs=i.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),PG=i.createContext({}),zG=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],RO=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,a=e.valueIndex,l=e.onStartMove,c=e.onDelete,u=e.style,d=e.render,f=e.dragging,v=e.draggingDelete,g=e.onOffsetChange,p=e.onChangeComplete,b=e.onFocus,C=e.onMouseEnter,S=Lt(e,zG),h=i.useContext(Rs),x=h.min,w=h.max,E=h.direction,j=h.disabled,R=h.keyboard,I=h.range,O=h.tabIndex,M=h.ariaLabelForHandle,N=h.ariaLabelledByForHandle,P=h.ariaRequired,B=h.ariaValueTextFormatterForHandle,L=h.styles,k=h.classNames,D="".concat(n,"-handle"),H=function(Z){j||l(Z,a)},z=function(Z){b==null||b(Z,a)},_=function(Z){C(Z,a)},F=function(Z){if(!j&&R){var Q=null;switch(Z.which||Z.keyCode){case ot.LEFT:Q=E==="ltr"||E==="btt"?-1:1;break;case ot.RIGHT:Q=E==="ltr"||E==="btt"?1:-1;break;case ot.UP:Q=E!=="ttb"?1:-1;break;case ot.DOWN:Q=E!=="ttb"?-1:1;break;case ot.HOME:Q="min";break;case ot.END:Q="max";break;case ot.PAGE_UP:Q=2;break;case ot.PAGE_DOWN:Q=-2;break;case ot.BACKSPACE:case ot.DELETE:c==null||c(a);break}Q!==null&&(Z.preventDefault(),g(Q,a))}},W=function(Z){switch(Z.which||Z.keyCode){case ot.LEFT:case ot.RIGHT:case ot.UP:case ot.DOWN:case ot.HOME:case ot.END:case ot.PAGE_UP:case ot.PAGE_DOWN:p==null||p();break}},q=gC(E,r,x,w),V={};if(a!==null){var G;V={tabIndex:j?null:Xl(O,a),role:"slider","aria-valuemin":x,"aria-valuemax":w,"aria-valuenow":r,"aria-disabled":j,"aria-label":Xl(M,a),"aria-labelledby":Xl(N,a),"aria-required":Xl(P,a),"aria-valuetext":(G=Xl(B,a))===null||G===void 0?void 0:G(r),"aria-orientation":E==="ltr"||E==="rtl"?"horizontal":"vertical",onMouseDown:H,onTouchStart:H,onFocus:z,onMouseEnter:_,onKeyDown:F,onKeyUp:W}}var K=i.createElement("div",ye({ref:t,className:ue(D,ee(ee(ee({},"".concat(D,"-").concat(a+1),a!==null&&I),"".concat(D,"-dragging"),f),"".concat(D,"-dragging-delete"),v),k.handle),style:se(se(se({},q),u),L.handle)},V,S));return d&&(K=d(K,{index:a,prefixCls:n,value:r,dragging:f,draggingDelete:v})),K}),DG=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],_G=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.onStartMove,l=e.onOffsetChange,c=e.values,u=e.handleRender,d=e.activeHandleRender,f=e.draggingIndex,v=e.draggingDelete,g=e.onFocus,p=Lt(e,DG),b=i.useRef({}),C=i.useState(!1),S=fe(C,2),h=S[0],x=S[1],w=i.useState(-1),E=fe(w,2),j=E[0],R=E[1],I=function(B){R(B),x(!0)},O=function(B,L){I(L),g==null||g(B)},M=function(B,L){I(L)};i.useImperativeHandle(t,function(){return{focus:function(B){var L;(L=b.current[B])===null||L===void 0||L.focus()},hideHelp:function(){fo.flushSync(function(){x(!1)})}}});var N=se({prefixCls:n,onStartMove:a,onOffsetChange:l,render:u,onFocus:O,onMouseEnter:M},p);return i.createElement(i.Fragment,null,c.map(function(P,B){var L=f===B;return i.createElement(RO,ye({ref:function(D){D?b.current[B]=D:delete b.current[B]},dragging:L,draggingDelete:L&&v,style:Xl(r,B),key:B,value:P,valueIndex:B},N))}),d&&h&&i.createElement(RO,ye({key:"a11y"},N,{value:c[j],valueIndex:null,dragging:f!==-1,draggingDelete:v,render:d,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),AG=function(t){var n=t.prefixCls,r=t.style,a=t.children,l=t.value,c=t.onClick,u=i.useContext(Rs),d=u.min,f=u.max,v=u.direction,g=u.includedStart,p=u.includedEnd,b=u.included,C="".concat(n,"-text"),S=gC(v,l,d,f);return i.createElement("span",{className:ue(C,ee({},"".concat(C,"-active"),b&&g<=l&&l<=p)),style:se(se({},S),r),onMouseDown:function(x){x.stopPropagation()},onClick:function(){c(l)}},a)},BG=function(t){var n=t.prefixCls,r=t.marks,a=t.onClick,l="".concat(n,"-mark");return r.length?i.createElement("div",{className:l},r.map(function(c){var u=c.value,d=c.style,f=c.label;return i.createElement(AG,{key:u,prefixCls:l,style:d,value:u,onClick:a},f)})):null},kG=function(t){var n=t.prefixCls,r=t.value,a=t.style,l=t.activeStyle,c=i.useContext(Rs),u=c.min,d=c.max,f=c.direction,v=c.included,g=c.includedStart,p=c.includedEnd,b="".concat(n,"-dot"),C=v&&g<=r&&r<=p,S=se(se({},gC(f,r,u,d)),typeof a=="function"?a(r):a);return C&&(S=se(se({},S),typeof l=="function"?l(r):l)),i.createElement("span",{className:ue(b,ee({},"".concat(b,"-active"),C)),style:S})},LG=function(t){var n=t.prefixCls,r=t.marks,a=t.dots,l=t.style,c=t.activeStyle,u=i.useContext(Rs),d=u.min,f=u.max,v=u.step,g=i.useMemo(function(){var p=new Set;if(r.forEach(function(C){p.add(C.value)}),a&&v!==null)for(var b=d;b<=f;)p.add(b),b+=v;return Array.from(p)},[d,f,v,a,r]);return i.createElement("div",{className:"".concat(n,"-step")},g.map(function(p){return i.createElement(kG,{prefixCls:n,key:p,value:p,style:l,activeStyle:c})}))},jO=function(t){var n=t.prefixCls,r=t.style,a=t.start,l=t.end,c=t.index,u=t.onStartMove,d=t.replaceCls,f=i.useContext(Rs),v=f.direction,g=f.min,p=f.max,b=f.disabled,C=f.range,S=f.classNames,h="".concat(n,"-track"),x=Ay(a,g,p),w=Ay(l,g,p),E=function(O){!b&&u&&u(O,-1)},j={};switch(v){case"rtl":j.right="".concat(x*100,"%"),j.width="".concat(w*100-x*100,"%");break;case"btt":j.bottom="".concat(x*100,"%"),j.height="".concat(w*100-x*100,"%");break;case"ttb":j.top="".concat(x*100,"%"),j.height="".concat(w*100-x*100,"%");break;default:j.left="".concat(x*100,"%"),j.width="".concat(w*100-x*100,"%")}var R=d||ue(h,ee(ee({},"".concat(h,"-").concat(c+1),c!==null&&C),"".concat(n,"-track-draggable"),u),S.track);return i.createElement("div",{className:R,style:se(se({},j),r),onMouseDown:E,onTouchStart:E})},HG=function(t){var n=t.prefixCls,r=t.style,a=t.values,l=t.startPoint,c=t.onStartMove,u=i.useContext(Rs),d=u.included,f=u.range,v=u.min,g=u.styles,p=u.classNames,b=i.useMemo(function(){if(!f){if(a.length===0)return[];var S=l??v,h=a[0];return[{start:Math.min(S,h),end:Math.max(S,h)}]}for(var x=[],w=0;w<a.length-1;w+=1)x.push({start:a[w],end:a[w+1]});return x},[a,f,l,v]);if(!d)return null;var C=b!=null&&b.length&&(p.tracks||g.tracks)?i.createElement(jO,{index:null,prefixCls:n,start:b[0].start,end:b[b.length-1].end,replaceCls:ue(p.tracks,"".concat(n,"-tracks")),style:g.tracks}):null;return i.createElement(i.Fragment,null,C,b.map(function(S,h){var x=S.start,w=S.end;return i.createElement(jO,{index:h,prefixCls:n,style:se(se({},Xl(r,h)),g.track),start:x,end:w,key:h,onStartMove:c})}))},FG=130;function IO(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function VG(e,t,n,r,a,l,c,u,d,f,v){var g=i.useState(null),p=fe(g,2),b=p[0],C=p[1],S=i.useState(-1),h=fe(S,2),x=h[0],w=h[1],E=i.useState(!1),j=fe(E,2),R=j[0],I=j[1],O=i.useState(n),M=fe(O,2),N=M[0],P=M[1],B=i.useState(n),L=fe(B,2),k=L[0],D=L[1],H=i.useRef(null),z=i.useRef(null),_=i.useRef(null),F=i.useContext(PG),W=F.onDragStart,q=F.onDragChange;nn(function(){x===-1&&P(n)},[n,x]),i.useEffect(function(){return function(){document.removeEventListener("mousemove",H.current),document.removeEventListener("mouseup",z.current),_.current&&(_.current.removeEventListener("touchmove",H.current),_.current.removeEventListener("touchend",z.current))}},[]);var V=function(Q,te,X){te!==void 0&&C(te),P(Q);var ae=Q;X&&(ae=Q.filter(function(re,ne){return ne!==x})),c(ae),q&&q({rawValues:Q,deleteIndex:X?x:-1,draggingIndex:x,draggingValue:te})},G=Xt(function(Z,Q,te){if(Z===-1){var X=k[0],ae=k[k.length-1],re=r-X,ne=a-ae,Y=Q*(a-r);Y=Math.max(Y,re),Y=Math.min(Y,ne);var ie=l(X+Y);Y=ie-X;var le=k.map(function(he){return he+Y});V(le)}else{var de=(a-r)*Q,ce=Ne(N);ce[Z]=k[Z];var ge=d(ce,de,Z,"dist");V(ge.values,ge.value,te)}}),K=function(Q,te,X){Q.stopPropagation();var ae=X||n,re=ae[te];w(te),C(re),D(ae),P(ae),I(!1);var ne=IO(Q),Y=ne.pageX,ie=ne.pageY,le=!1;W&&W({rawValues:ae,draggingIndex:te,draggingValue:re});var de=function(he){he.preventDefault();var Oe=IO(he),je=Oe.pageX,pe=Oe.pageY,we=je-Y,Se=pe-ie,Ce=e.current.getBoundingClientRect(),De=Ce.width,Ae=Ce.height,Ye,Ke;switch(t){case"btt":Ye=-Se/Ae,Ke=we;break;case"ttb":Ye=Se/Ae,Ke=we;break;case"rtl":Ye=-we/De,Ke=Se;break;default:Ye=we/De,Ke=Se}le=f?Math.abs(Ke)>FG&&v<N.length:!1,I(le),G(te,Ye,le)},ce=function ge(he){he.preventDefault(),document.removeEventListener("mouseup",ge),document.removeEventListener("mousemove",de),_.current&&(_.current.removeEventListener("touchmove",H.current),_.current.removeEventListener("touchend",z.current)),H.current=null,z.current=null,_.current=null,u(le),w(-1),I(!1)};document.addEventListener("mouseup",ce),document.addEventListener("mousemove",de),Q.currentTarget.addEventListener("touchend",ce),Q.currentTarget.addEventListener("touchmove",de),H.current=de,z.current=ce,_.current=Q.currentTarget},U=i.useMemo(function(){var Z=Ne(n).sort(function(re,ne){return re-ne}),Q=Ne(N).sort(function(re,ne){return re-ne}),te={};Q.forEach(function(re){te[re]=(te[re]||0)+1}),Z.forEach(function(re){te[re]=(te[re]||0)-1});var X=f?1:0,ae=Object.values(te).reduce(function(re,ne){return re+Math.abs(ne)},0);return ae<=X?N:n},[n,N,f]);return[x,b,R,U,K]}function WG(e,t,n,r,a,l){var c=i.useCallback(function(b){return Math.max(e,Math.min(t,b))},[e,t]),u=i.useCallback(function(b){if(n!==null){var C=e+Math.round((c(b)-e)/n)*n,S=function(E){return(String(E).split(".")[1]||"").length},h=Math.max(S(n),S(t),S(e)),x=Number(C.toFixed(h));return e<=x&&x<=t?x:null}return null},[n,e,t,c]),d=i.useCallback(function(b){var C=c(b),S=r.map(function(w){return w.value});n!==null&&S.push(u(b)),S.push(e,t);var h=S[0],x=t-e;return S.forEach(function(w){var E=Math.abs(C-w);E<=x&&(h=w,x=E)}),h},[e,t,r,n,c,u]),f=function b(C,S,h){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof S=="number"){var w,E=C[h],j=E+S,R=[];r.forEach(function(P){R.push(P.value)}),R.push(e,t),R.push(u(E));var I=S>0?1:-1;x==="unit"?R.push(u(E+I*n)):R.push(u(j)),R=R.filter(function(P){return P!==null}).filter(function(P){return S<0?P<=E:P>=E}),x==="unit"&&(R=R.filter(function(P){return P!==E}));var O=x==="unit"?E:j;w=R[0];var M=Math.abs(w-O);if(R.forEach(function(P){var B=Math.abs(P-O);B<M&&(w=P,M=B)}),w===void 0)return S<0?e:t;if(x==="dist")return w;if(Math.abs(S)>1){var N=Ne(C);return N[h]=w,b(N,S-I,h,x)}return w}else{if(S==="min")return e;if(S==="max")return t}},v=function(C,S,h){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",w=C[h],E=f(C,S,h,x);return{value:E,changed:E!==w}},g=function(C){return l===null&&C===0||typeof l=="number"&&C<l},p=function(C,S,h){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",w=C.map(d),E=w[h],j=f(w,S,h,x);if(w[h]=j,a===!1){var R=l||0;h>0&&w[h-1]!==E&&(w[h]=Math.max(w[h],w[h-1]+R)),h<w.length-1&&w[h+1]!==E&&(w[h]=Math.min(w[h],w[h+1]-R))}else if(typeof l=="number"||l===null){for(var I=h+1;I<w.length;I+=1)for(var O=!0;g(w[I]-w[I-1])&&O;){var M=v(w,1,I);w[I]=M.value,O=M.changed}for(var N=h;N>0;N-=1)for(var P=!0;g(w[N]-w[N-1])&&P;){var B=v(w,-1,N-1);w[N-1]=B.value,P=B.changed}for(var L=w.length-1;L>0;L-=1)for(var k=!0;g(w[L]-w[L-1])&&k;){var D=v(w,-1,L-1);w[L-1]=D.value,k=D.changed}for(var H=0;H<w.length-1;H+=1)for(var z=!0;g(w[H+1]-w[H])&&z;){var _=v(w,1,H+1);w[H+1]=_.value,z=_.changed}}return{value:w[h],values:w}};return[d,p]}function KG(e){return i.useMemo(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack,r=e.minCount,a=e.maxCount;return[!0,t,!t&&n,r||0,a]},[e])}var UG=i.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-slider":n,a=e.className,l=e.style,c=e.classNames,u=e.styles,d=e.id,f=e.disabled,v=f===void 0?!1:f,g=e.keyboard,p=g===void 0?!0:g,b=e.autoFocus,C=e.onFocus,S=e.onBlur,h=e.min,x=h===void 0?0:h,w=e.max,E=w===void 0?100:w,j=e.step,R=j===void 0?1:j,I=e.value,O=e.defaultValue,M=e.range,N=e.count,P=e.onChange,B=e.onBeforeChange,L=e.onAfterChange,k=e.onChangeComplete,D=e.allowCross,H=D===void 0?!0:D,z=e.pushable,_=z===void 0?!1:z,F=e.reverse,W=e.vertical,q=e.included,V=q===void 0?!0:q,G=e.startPoint,K=e.trackStyle,U=e.handleStyle,Z=e.railStyle,Q=e.dotStyle,te=e.activeDotStyle,X=e.marks,ae=e.dots,re=e.handleRender,ne=e.activeHandleRender,Y=e.track,ie=e.tabIndex,le=ie===void 0?0:ie,de=e.ariaLabelForHandle,ce=e.ariaLabelledByForHandle,ge=e.ariaRequired,he=e.ariaValueTextFormatterForHandle,Oe=i.useRef(null),je=i.useRef(null),pe=i.useMemo(function(){return W?F?"ttb":"btt":F?"rtl":"ltr"},[F,W]),we=KG(M),Se=fe(we,5),Ce=Se[0],De=Se[1],Ae=Se[2],Ye=Se[3],Ke=Se[4],Fe=i.useMemo(function(){return isFinite(x)?x:0},[x]),Ge=i.useMemo(function(){return isFinite(E)?E:100},[E]),Te=i.useMemo(function(){return R!==null&&R<=0?1:R},[R]),Ee=i.useMemo(function(){return typeof _=="boolean"?_?Te:!1:_>=0?_:!1},[_,Te]),_e=i.useMemo(function(){return Object.keys(X||{}).map(function(ht){var Xe=X[ht],Qe={value:Number(ht)};return Xe&&$t(Xe)==="object"&&!i.isValidElement(Xe)&&("label"in Xe||"style"in Xe)?(Qe.style=Xe.style,Qe.label=Xe.label):Qe.label=Xe,Qe}).filter(function(ht){var Xe=ht.label;return Xe||typeof Xe=="number"}).sort(function(ht,Xe){return ht.value-Xe.value})},[X]),Re=WG(Fe,Ge,Te,_e,H,Ee),Pe=fe(Re,2),be=Pe[0],$e=Pe[1],Me=bn(O,{value:I}),Le=fe(Me,2),et=Le[0],bt=Le[1],We=i.useMemo(function(){var ht=et==null?[]:Array.isArray(et)?et:[et],Xe=fe(ht,1),Qe=Xe[0],ut=Qe===void 0?Fe:Qe,zt=et===null?[]:[ut];if(Ce){if(zt=Ne(ht),N||et===void 0){var Kt=N>=0?N+1:2;for(zt=zt.slice(0,Kt);zt.length<Kt;){var vt;zt.push((vt=zt[zt.length-1])!==null&&vt!==void 0?vt:Fe)}}zt.sort(function(Nt,Ft){return Nt-Ft})}return zt.forEach(function(Nt,Ft){zt[Ft]=be(Nt)}),zt},[et,Ce,Fe,N,be]),tt=function(Xe){return Ce?Xe:Xe[0]},dt=Xt(function(ht){var Xe=Ne(ht).sort(function(Qe,ut){return Qe-ut});P&&!Ro(Xe,We,!0)&&P(tt(Xe)),bt(Xe)}),at=Xt(function(ht){ht&&Oe.current.hideHelp();var Xe=tt(We);L==null||L(Xe),Xn(!L,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),k==null||k(Xe)}),pt=function(Xe){if(!(v||!De||We.length<=Ye)){var Qe=Ne(We);Qe.splice(Xe,1),B==null||B(tt(Qe)),dt(Qe);var ut=Math.max(0,Xe-1);Oe.current.hideHelp(),Oe.current.focus(ut)}},Pt=VG(je,pe,We,Fe,Ge,be,dt,at,$e,De,Ye),Et=fe(Pt,5),ct=Et[0],St=Et[1],yt=Et[2],Je=Et[3],Ve=Et[4],Ue=function(Xe,Qe){if(!v){var ut=Ne(We),zt=0,Kt=0,vt=Ge-Fe;We.forEach(function(Pn,Wn){var Rn=Math.abs(Xe-Pn);Rn<=vt&&(vt=Rn,zt=Wn),Pn<Xe&&(Kt=Wn)});var Nt=zt;De&&vt!==0&&(!Ke||We.length<Ke)?(ut.splice(Kt+1,0,Xe),Nt=Kt+1):ut[zt]=Xe,Ce&&!We.length&&N===void 0&&ut.push(Xe);var Ft=tt(ut);if(B==null||B(Ft),dt(ut),Qe){var xn,_n;(xn=document.activeElement)===null||xn===void 0||(_n=xn.blur)===null||_n===void 0||_n.call(xn),Oe.current.focus(Nt),Ve(Qe,Nt,ut)}else L==null||L(Ft),Xn(!L,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),k==null||k(Ft)}},mt=function(Xe){Xe.preventDefault();var Qe=je.current.getBoundingClientRect(),ut=Qe.width,zt=Qe.height,Kt=Qe.left,vt=Qe.top,Nt=Qe.bottom,Ft=Qe.right,xn=Xe.clientX,_n=Xe.clientY,Pn;switch(pe){case"btt":Pn=(Nt-_n)/zt;break;case"ttb":Pn=(_n-vt)/zt;break;case"rtl":Pn=(Ft-xn)/ut;break;default:Pn=(xn-Kt)/ut}var Wn=Fe+Pn*(Ge-Fe);Ue(be(Wn),Xe)},Mt=i.useState(null),It=fe(Mt,2),Vt=It[0],ft=It[1],lt=function(Xe,Qe){if(!v){var ut=$e(We,Xe,Qe);B==null||B(tt(We)),dt(ut.values),ft(ut.value)}};i.useEffect(function(){if(Vt!==null){var ht=We.indexOf(Vt);ht>=0&&Oe.current.focus(ht)}ft(null)},[Vt]);var At=i.useMemo(function(){return Ae&&Te===null?!1:Ae},[Ae,Te]),Ut=Xt(function(ht,Xe){Ve(ht,Xe),B==null||B(tt(We))}),rn=ct!==-1;i.useEffect(function(){if(!rn){var ht=We.lastIndexOf(St);Oe.current.focus(ht)}},[rn]);var Qt=i.useMemo(function(){return Ne(Je).sort(function(ht,Xe){return ht-Xe})},[Je]),vn=i.useMemo(function(){return Ce?[Qt[0],Qt[Qt.length-1]]:[Fe,Qt[0]]},[Qt,Ce,Fe]),qt=fe(vn,2),un=qt[0],st=qt[1];i.useImperativeHandle(t,function(){return{focus:function(){Oe.current.focus(0)},blur:function(){var Xe,Qe=document,ut=Qe.activeElement;(Xe=je.current)!==null&&Xe!==void 0&&Xe.contains(ut)&&(ut==null||ut.blur())}}}),i.useEffect(function(){b&&Oe.current.focus(0)},[]);var Ct=i.useMemo(function(){return{min:Fe,max:Ge,direction:pe,disabled:v,keyboard:p,step:Te,included:V,includedStart:un,includedEnd:st,range:Ce,tabIndex:le,ariaLabelForHandle:de,ariaLabelledByForHandle:ce,ariaRequired:ge,ariaValueTextFormatterForHandle:he,styles:u||{},classNames:c||{}}},[Fe,Ge,pe,v,p,Te,V,un,st,Ce,le,de,ce,ge,he,u,c]);return i.createElement(Rs.Provider,{value:Ct},i.createElement("div",{ref:je,className:ue(r,a,ee(ee(ee(ee({},"".concat(r,"-disabled"),v),"".concat(r,"-vertical"),W),"".concat(r,"-horizontal"),!W),"".concat(r,"-with-marks"),_e.length)),style:l,onMouseDown:mt,id:d},i.createElement("div",{className:ue("".concat(r,"-rail"),c==null?void 0:c.rail),style:se(se({},Z),u==null?void 0:u.rail)}),Y!==!1&&i.createElement(HG,{prefixCls:r,style:K,values:We,startPoint:G,onStartMove:At?Ut:void 0}),i.createElement(LG,{prefixCls:r,marks:_e,dots:ae,style:Q,activeStyle:te}),i.createElement(_G,{ref:Oe,prefixCls:r,style:U,values:Je,draggingIndex:ct,draggingDelete:yt,onStartMove:Ut,onOffsetChange:lt,onFocus:C,onBlur:S,handleRender:re,activeHandleRender:ne,onChangeComplete:at,onDelete:De?pt:void 0}),i.createElement(BG,{prefixCls:r,marks:_e,onClick:Ue})))});const qG=i.createContext({}),NO=i.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:a}=e,l=i.useRef(null),c=n&&!r,u=i.useRef(null);function d(){Yt.cancel(u.current),u.current=null}function f(){u.current=Yt(()=>{var v;(v=l.current)===null||v===void 0||v.forceAlign(),u.current=null})}return i.useEffect(()=>(c?f():d(),d),[c,e.title,a]),i.createElement(Vn,Object.assign({ref:Ir(l,t)},e,{open:c}))}),GG=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:a,marginFull:l,marginPart:c,colorFillContentHover:u,handleColorDisabled:d,calc:f,handleSize:v,handleSizeHover:g,handleActiveColor:p,handleActiveOutlineColor:b,handleLineWidth:C,handleLineWidthHover:S,motionDurationMid:h}=e;return{[t]:Object.assign(Object.assign({},dn(e)),{position:"relative",height:r,margin:`${oe(c)} ${oe(l)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${oe(l)} ${oe(c)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${h}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${h}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:u},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${oe(C)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:v,height:v,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:f(C).mul(-1).equal(),insetBlockStart:f(C).mul(-1).equal(),width:f(v).add(f(C).mul(2)).equal(),height:f(v).add(f(C).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:v,height:v,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${oe(C)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
|
354
|
+
inset-inline-start ${h},
|
|
355
|
+
inset-block-start ${h},
|
|
356
|
+
width ${h},
|
|
357
|
+
height ${h},
|
|
358
|
+
box-shadow ${h},
|
|
359
|
+
outline ${h}
|
|
360
|
+
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:f(g).sub(v).div(2).add(S).mul(-1).equal(),insetBlockStart:f(g).sub(v).div(2).add(S).mul(-1).equal(),width:f(g).add(f(S).mul(2)).equal(),height:f(g).add(f(S).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${oe(S)} ${p}`,outline:`6px solid ${b}`,width:g,height:g,insetInlineStart:e.calc(v).sub(g).div(2).equal(),insetBlockStart:e.calc(v).sub(g).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:a,height:a,backgroundColor:e.colorBgElevated,border:`${oe(C)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
|
|
361
|
+
${t}-dot
|
|
362
|
+
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:v,height:v,boxShadow:`0 0 0 ${oe(C)} ${d}`,insetInlineStart:0,insetBlockStart:0},[`
|
|
363
|
+
${t}-mark-text,
|
|
364
|
+
${t}-dot
|
|
365
|
+
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},pN=(e,t)=>{const{componentCls:n,railSize:r,handleSize:a,dotSize:l,marginFull:c,calc:u}=e,d=t?"paddingBlock":"paddingInline",f=t?"width":"height",v=t?"height":"width",g=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",b=u(r).mul(3).sub(a).div(2).equal(),C=u(a).sub(r).div(2).equal(),S=t?{borderWidth:`${oe(C)} 0`,transform:`translateY(${oe(u(C).mul(-1).equal())})`}:{borderWidth:`0 ${oe(C)}`,transform:`translateX(${oe(e.calc(C).mul(-1).equal())})`};return{[d]:r,[v]:u(r).mul(3).equal(),[`${n}-rail`]:{[f]:"100%",[v]:r},[`${n}-track,${n}-tracks`]:{[v]:r},[`${n}-track-draggable`]:Object.assign({},S),[`${n}-handle`]:{[g]:b},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:u(r).mul(3).add(t?0:c).equal(),[f]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:r,[f]:"100%",[v]:r},[`${n}-dot`]:{position:"absolute",[g]:u(r).sub(l).div(2).equal()}}},XG=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},pN(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},YG=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},pN(e,!1)),{height:"100%"})}},QG=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,a=e.lineWidth+1,l=e.lineWidth+1*1.5,c=e.colorPrimary,u=new pn(c).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:a,handleLineWidthHover:l,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:c,handleActiveOutlineColor:u,handleColorDisabled:new pn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},ZG=sn("Slider",e=>{const t=tn(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[GG(t),XG(t),YG(t)]},QG);function W0(){const[e,t]=i.useState(!1),n=i.useRef(null),r=()=>{Yt.cancel(n.current)},a=l=>{r(),l?t(l):n.current=Yt(()=>{t(l)})};return i.useEffect(()=>r,[]),[e,a]}var JG=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 eX(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const tX=ve.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:a,rootClassName:l,style:c,disabled:u,tooltipPrefixCls:d,tipFormatter:f,tooltipVisible:v,getTooltipPopupContainer:g,tooltipPlacement:p,tooltip:b={},onChangeComplete:C,classNames:S,styles:h}=e,x=JG(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:w}=e,{getPrefixCls:E,direction:j,className:R,style:I,classNames:O,styles:M,getPopupContainer:N}=fr("slider"),P=ve.useContext(Vr),B=u??P,{handleRender:L,direction:k}=ve.useContext(qG),H=(k||j)==="rtl",[z,_]=W0(),[F,W]=W0(),q=Object.assign({},b),{open:V,placement:G,getPopupContainer:K,prefixCls:U,formatter:Z}=q,Q=V??v,te=(z||F)&&Q!==!1,X=eX(Z,f),[ae,re]=W0(),ne=Ce=>{C==null||C(Ce),re(!1)},Y=(Ce,De)=>Ce||(De?H?"left":"right":"top"),ie=E("slider",n),[le,de,ce]=ZG(ie),ge=ue(a,R,O.root,S==null?void 0:S.root,l,{[`${ie}-rtl`]:H,[`${ie}-lock`]:ae},de,ce);H&&!x.vertical&&(x.reverse=!x.reverse),ve.useEffect(()=>{const Ce=()=>{Yt(()=>{W(!1)},1)};return document.addEventListener("mouseup",Ce),()=>{document.removeEventListener("mouseup",Ce)}},[]);const he=r&&!Q,Oe=L||((Ce,De)=>{const{index:Ae}=De,Ye=Ce.props;function Ke(Ee,_e,Re){var Pe,be,$e,Me;Re&&((be=(Pe=x)[Ee])===null||be===void 0||be.call(Pe,_e)),(Me=($e=Ye)[Ee])===null||Me===void 0||Me.call($e,_e)}const Fe=Object.assign(Object.assign({},Ye),{onMouseEnter:Ee=>{_(!0),Ke("onMouseEnter",Ee)},onMouseLeave:Ee=>{_(!1),Ke("onMouseLeave",Ee)},onMouseDown:Ee=>{W(!0),re(!0),Ke("onMouseDown",Ee)},onFocus:Ee=>{var _e;W(!0),(_e=x.onFocus)===null||_e===void 0||_e.call(x,Ee),Ke("onFocus",Ee,!0)},onBlur:Ee=>{var _e;W(!1),(_e=x.onBlur)===null||_e===void 0||_e.call(x,Ee),Ke("onBlur",Ee,!0)}}),Ge=ve.cloneElement(Ce,Fe),Te=(!!Q||te)&&X!==null;return he?Ge:ve.createElement(NO,Object.assign({},q,{prefixCls:E("tooltip",U??d),title:X?X(De.value):"",value:De.value,open:Te,placement:Y(G??p,w),key:Ae,classNames:{root:`${ie}-tooltip`},getPopupContainer:K||g||N}),Ge)}),je=he?(Ce,De)=>{const Ae=ve.cloneElement(Ce,{style:Object.assign(Object.assign({},Ce.props.style),{visibility:"hidden"})});return ve.createElement(NO,Object.assign({},q,{prefixCls:E("tooltip",U??d),title:X?X(De.value):"",open:X!==null&&te,placement:Y(G??p,w),key:"tooltip",classNames:{root:`${ie}-tooltip`},getPopupContainer:K||g||N,draggingDelete:De.draggingDelete}),Ae)}:void 0,pe=Object.assign(Object.assign(Object.assign(Object.assign({},M.root),I),h==null?void 0:h.root),c),we=Object.assign(Object.assign({},M.tracks),h==null?void 0:h.tracks),Se=ue(O.tracks,S==null?void 0:S.tracks);return le(ve.createElement(UG,Object.assign({},x,{classNames:Object.assign({handle:ue(O.handle,S==null?void 0:S.handle),rail:ue(O.rail,S==null?void 0:S.rail),track:ue(O.track,S==null?void 0:S.track)},Se?{tracks:Se}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},M.handle),h==null?void 0:h.handle),rail:Object.assign(Object.assign({},M.rail),h==null?void 0:h.rail),track:Object.assign(Object.assign({},M.track),h==null?void 0:h.track)},Object.keys(we).length?{tracks:we}:{}),step:x.step,range:r,className:ge,style:pe,disabled:B,ref:t,prefixCls:ie,handleRender:Oe,activeHandleRender:je,onChangeComplete:ne})))});var nX={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"},rX=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:nX}))},aX=i.forwardRef(rX);const hN=(e,t,n,r,a)=>{const{classNames:l,styles:c}=fr(e),[u,d]=x_([l,t],[c,n],{popup:{_default:"root"}});return i.useMemo(()=>{var f,v;const g=Object.assign(Object.assign({},u),{popup:Object.assign(Object.assign({},u.popup),{root:ue((f=u.popup)===null||f===void 0?void 0:f.root,r)})}),p=Object.assign(Object.assign({},d),{popup:Object.assign(Object.assign({},d.popup),{root:Object.assign(Object.assign({},(v=d.popup)===null||v===void 0?void 0:v.root),a)})});return[g,p]},[u,d,r,a])};function oX(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 iX(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 bN(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=A1(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[i.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[lX,sX]=["week","WeekPicker"],[cX,uX]=["month","MonthPicker"],[dX,fX]=["year","YearPicker"],[mX,vX]=["quarter","QuarterPicker"],[pC,MO]=["time","TimePicker"];var gX={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"},pX=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:gX}))},hX=i.forwardRef(pX),bX={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"},yX=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:bX}))},Fc=i.forwardRef(yX);const yN=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?ve.createElement(ve.Fragment,null,e===pC?ve.createElement(Fc,null):ve.createElement(hX,null),t&&n):r,CX=e=>i.createElement(nt,Object.assign({size:"small",type:"primary"},e));function CN(e){return i.useMemo(()=>Object.assign({button:CX},e),[e])}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};const xX=e=>i.forwardRef((n,r)=>{var a;const{prefixCls:l,getPopupContainer:c,components:u,className:d,style:f,placement:v,size:g,disabled:p,bordered:b=!0,placeholder:C,popupStyle:S,popupClassName:h,dropdownClassName:x,status:w,rootClassName:E,variant:j,picker:R,styles:I,classNames:O,suffixIcon:M}=n,N=SX(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),P=R===pC?"timePicker":"datePicker",B=i.useRef(null),{getPrefixCls:L,direction:k,getPopupContainer:D,rangePicker:H}=i.useContext(Rt),z=L("picker",l),{compactSize:_,compactItemClassnames:F}=Do(z,k),W=L(),[q,V]=Cl("rangePicker",j,b),G=cr(z),[K,U,Z]=TI(z,G),[Q,te]=hN(P,O,I,h||x,S),[X]=bN(n,z),ae=CN(u),re=Nr(pe=>{var we;return(we=g??_)!==null&&we!==void 0?we:pe}),ne=i.useContext(Vr),Y=p??ne,ie=i.useContext(Wr),{hasFeedback:le,status:de,feedbackIcon:ce}=ie,ge=i.createElement(yN,{picker:R,hasFeedback:le,feedbackIcon:ce,suffixIcon:M});i.useImperativeHandle(r,()=>B.current);const[he]=Pa("Calendar",Ev),Oe=Object.assign(Object.assign({},he),n.locale),[je]=zo("DatePicker",(a=te.popup.root)===null||a===void 0?void 0:a.zIndex);return K(i.createElement(Xo,{space:!0},i.createElement(iK,Object.assign({separator:i.createElement("span",{"aria-label":"to",className:`${z}-separator`},i.createElement(aX,null)),disabled:Y,ref:B,placement:v,placeholder:iX(Oe,R,C),suffixIcon:ge,prevIcon:i.createElement("span",{className:`${z}-prev-icon`}),nextIcon:i.createElement("span",{className:`${z}-next-icon`}),superPrevIcon:i.createElement("span",{className:`${z}-super-prev-icon`}),superNextIcon:i.createElement("span",{className:`${z}-super-next-icon`}),transitionName:`${W}-slide-up`,picker:R},N,{className:ue({[`${z}-${re}`]:re,[`${z}-${q}`]:V},Ci(z,yl(de,w),le),U,F,d,H==null?void 0:H.className,Z,G,E,Q.root),style:Object.assign(Object.assign(Object.assign({},H==null?void 0:H.style),f),te.root),locale:Oe.lang,prefixCls:z,getPopupContainer:c||D,generateConfig:e,components:ae,direction:k,classNames:{popup:ue(U,Z,G,E,Q.popup.root)},styles:{popup:Object.assign(Object.assign({},te.popup.root),{zIndex:je})},allowClear:X}))))});var $X=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 wX=e=>{const t=(d,f)=>{const v=f===MO?"timePicker":"datePicker";return i.forwardRef((p,b)=>{var C;const{prefixCls:S,getPopupContainer:h,components:x,style:w,className:E,rootClassName:j,size:R,bordered:I,placement:O,placeholder:M,popupStyle:N,popupClassName:P,dropdownClassName:B,disabled:L,status:k,variant:D,onCalendarChange:H,styles:z,classNames:_,suffixIcon:F}=p,W=$X(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:q,direction:V,getPopupContainer:G,[v]:K}=i.useContext(Rt),U=q("picker",S),{compactSize:Z,compactItemClassnames:Q}=Do(U,V),te=i.useRef(null),[X,ae]=Cl("datePicker",D,I),re=cr(U),[ne,Y,ie]=TI(U,re);i.useImperativeHandle(b,()=>te.current);const le={showToday:!0},de=d||p.picker,ce=q(),{onSelect:ge,multiple:he}=W,Oe=ge&&d==="time"&&!he,je=($e,Me,Le)=>{H==null||H($e,Me,Le),Oe&&ge($e)},[pe,we]=hN(v,_,z,P||B,N),[Se,Ce]=bN(p,U),De=CN(x),Ae=Nr($e=>{var Me;return(Me=R??Z)!==null&&Me!==void 0?Me:$e}),Ye=i.useContext(Vr),Ke=L??Ye,Fe=i.useContext(Wr),{hasFeedback:Ge,status:Te,feedbackIcon:Ee}=Fe,_e=i.createElement(yN,{picker:de,hasFeedback:Ge,feedbackIcon:Ee,suffixIcon:F}),[Re]=Pa("DatePicker",Ev),Pe=Object.assign(Object.assign({},Re),p.locale),[be]=zo("DatePicker",(C=we.popup.root)===null||C===void 0?void 0:C.zIndex);return ne(i.createElement(Xo,{space:!0},i.createElement(fK,Object.assign({ref:te,placeholder:oX(Pe,de,M),suffixIcon:_e,placement:O,prevIcon:i.createElement("span",{className:`${U}-prev-icon`}),nextIcon:i.createElement("span",{className:`${U}-next-icon`}),superPrevIcon:i.createElement("span",{className:`${U}-super-prev-icon`}),superNextIcon:i.createElement("span",{className:`${U}-super-next-icon`}),transitionName:`${ce}-slide-up`,picker:d,onCalendarChange:je},le,W,{locale:Pe.lang,className:ue({[`${U}-${Ae}`]:Ae,[`${U}-${X}`]:ae},Ci(U,yl(Te,k),Ge),Y,Q,K==null?void 0:K.className,E,ie,re,j,pe.root),style:Object.assign(Object.assign(Object.assign({},K==null?void 0:K.style),w),we.root),prefixCls:U,getPopupContainer:h||G,generateConfig:e,components:De,direction:V,disabled:Ke,classNames:{popup:ue(Y,ie,re,j,pe.popup.root)},styles:{popup:Object.assign(Object.assign({},we.popup.root),{zIndex:be})},allowClear:Se,removeIcon:Ce}))))})},n=t(),r=t(lX,sX),a=t(cX,uX),l=t(dX,fX),c=t(mX,vX),u=t(pC,MO);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:l,TimePicker:u,QuarterPicker:c}},SN=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:l,QuarterPicker:c}=wX(e),u=xX(e),d=t;return d.WeekPicker=n,d.MonthPicker=r,d.YearPicker=a,d.RangePicker=u,d.TimePicker=l,d.QuarterPicker=c,d},au=SN(vW),EX=Qc(au,"popupAlign",void 0,"picker");au._InternalPanelDoNotUseOrYouWillBeFired=EX;const OX=Qc(au.RangePicker,"popupAlign",void 0,"picker");au._InternalRangePanelDoNotUseOrYouWillBeFired=OX;au.generatePicker=SN;function TO(e){return["small","middle","large"].includes(e)}function PO(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const RX=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:a,paddingXS:l,fontSizeLG:c,fontSizeSM:u,borderRadiusLG:d,borderRadiusSM:f,colorBgContainerDisabled:v,lineWidth:g}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:v,borderWidth:g,borderStyle:"solid",borderColor:a,borderRadius:n,"&-large":{fontSize:c,borderRadius:d},"&-small":{paddingInline:l,borderRadius:f,fontSize:u},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},Cs(e,{focus:!1})]}},jX=sn(["Space","Addon"],e=>[RX(e)]);var IX=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 NX=ve.forwardRef((e,t)=>{const{className:n,children:r,style:a,prefixCls:l}=e,c=IX(e,["className","children","style","prefixCls"]),{getPrefixCls:u,direction:d}=ve.useContext(Rt),f=u("space-addon",l),[v,g,p]=jX(f),{compactItemClassnames:b,compactSize:C}=Do(f,d),S=ue(f,g,b,p,{[`${f}-${C}`]:C},n);return v(ve.createElement("div",Object.assign({ref:t,className:S,style:a},c),r))}),xN=ve.createContext({latestIndex:0}),MX=xN.Provider,TX=({className:e,index:t,children:n,split:r,style:a})=>{const{latestIndex:l}=i.useContext(xN);return n==null?null:i.createElement(i.Fragment,null,i.createElement("div",{className:e,style:a},n),t<l&&r&&i.createElement("span",{className:`${e}-split`},r))},PX=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"}}}},zX=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}}}},DX=sn("Space",e=>{const t=tn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[PX(t),zX(t)]},()=>({}),{resetStyle:!1});var _X=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 AX=i.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,size:l,className:c,style:u,classNames:d,styles:f}=fr("space"),{size:v=l??"small",align:g,className:p,rootClassName:b,children:C,direction:S="horizontal",prefixCls:h,split:x,style:w,wrap:E=!1,classNames:j,styles:R}=e,I=_X(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[O,M]=Array.isArray(v)?v:[v,v],N=TO(M),P=TO(O),B=PO(M),L=PO(O),k=Xr(C,{keepEmpty:!0}),D=g===void 0&&S==="horizontal"?"center":g,H=r("space",h),[z,_,F]=DX(H),W=ue(H,c,_,`${H}-${S}`,{[`${H}-rtl`]:a==="rtl",[`${H}-align-${D}`]:D,[`${H}-gap-row-${M}`]:N,[`${H}-gap-col-${O}`]:P},p,b,F),q=ue(`${H}-item`,(n=j==null?void 0:j.item)!==null&&n!==void 0?n:d.item),V=Object.assign(Object.assign({},f.item),R==null?void 0:R.item),G=k.map((Z,Q)=>{const te=(Z==null?void 0:Z.key)||`${q}-${Q}`;return i.createElement(TX,{className:q,key:te,index:Q,split:x,style:V},Z)}),K=i.useMemo(()=>({latestIndex:k.reduce((Q,te,X)=>te!=null?X:Q,0)}),[k]);if(k.length===0)return null;const U={};return E&&(U.flexWrap="wrap"),!P&&L&&(U.columnGap=O),!N&&B&&(U.rowGap=M),z(i.createElement("div",Object.assign({ref:t,className:W,style:Object.assign(Object.assign(Object.assign({},U),u),w)},I),i.createElement(MX,{value:K},G)))}),Ot=AX;Ot.Compact=v7;Ot.Addon=NX;var BX=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 $N=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=i.useContext(Rt),{prefixCls:a,type:l="default",danger:c,disabled:u,loading:d,onClick:f,htmlType:v,children:g,className:p,menu:b,arrow:C,autoFocus:S,overlay:h,trigger:x,align:w,open:E,onOpenChange:j,placement:R,getPopupContainer:I,href:O,icon:M=i.createElement(G1,null),title:N,buttonsRender:P=ne=>ne,mouseEnterDelay:B,mouseLeaveDelay:L,overlayClassName:k,overlayStyle:D,destroyOnHidden:H,destroyPopupOnHide:z,dropdownRender:_,popupRender:F}=e,W=BX(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"]),q=n("dropdown",a),V=`${q}-button`,K={menu:b,arrow:C,autoFocus:S,align:w,disabled:u,trigger:u?[]:x,onOpenChange:j,getPopupContainer:I||t,mouseEnterDelay:B,mouseLeaveDelay:L,overlayClassName:k,overlayStyle:D,destroyOnHidden:H,popupRender:F||_},{compactSize:U,compactItemClassnames:Z}=Do(q,r),Q=ue(V,Z,p);"destroyPopupOnHide"in e&&(K.destroyPopupOnHide=z),"overlay"in e&&(K.overlay=h),"open"in e&&(K.open=E),"placement"in e?K.placement=R:K.placement=r==="rtl"?"bottomLeft":"bottomRight";const te=i.createElement(nt,{type:l,danger:c,disabled:u,loading:d,onClick:f,htmlType:v,href:O,title:N},g),X=i.createElement(nt,{type:l,danger:c,icon:M}),[ae,re]=P([te,X]);return i.createElement(Ot.Compact,Object.assign({className:Q,size:U,block:!0},W),ae,i.createElement(Pg,Object.assign({},K),re))};$N.__ANT_BUTTON=!0;const as=Pg;as.Button=$N;const hC=ve.createContext(void 0),{Provider:kX}=hC;function wN(e){return e==null?null:typeof e=="object"&&!i.isValidElement(e)?e:{title:e}}var LX={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 42h216v494zM504 618H320c-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-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},HX=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:LX}))},Wg=i.forwardRef(HX),FX=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 VX=e=>{const{icon:t,description:n,prefixCls:r,className:a}=e,l=FX(e,["icon","description","prefixCls","className"]),c=ve.createElement("div",{className:`${r}-icon`},ve.createElement(Wg,null));return ve.createElement("div",Object.assign({},l,{className:ue(a,`${r}-content`)}),t||n?ve.createElement(ve.Fragment,null,t&&ve.createElement("div",{className:`${r}-icon`},t),n&&ve.createElement("div",{className:`${r}-description`},n)):c)},WX=i.memo(VX),zO=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2),KX=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:a,calc:l}=e,c=new Jt("antFloatButtonMoveTopIn",{"0%":{transform:`translate3d(0, ${oe(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new Jt("antFloatButtonMoveTopOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${oe(n)}, 0)`,transformOrigin:"0 0",opacity:0}}),d=new Jt("antFloatButtonMoveRightIn",{"0%":{transform:`translate3d(${oe(l(n).mul(-1).equal())}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f=new Jt("antFloatButtonMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${oe(l(n).mul(-1).equal())}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),v=new Jt("antFloatButtonMoveBottomIn",{"0%":{transform:`translate3d(0, ${oe(l(n).mul(-1).equal())}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new Jt("antFloatButtonMoveBottomOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${oe(l(n).mul(-1).equal())}, 0)`,transformOrigin:"0 0",opacity:0}}),p=new Jt("antFloatButtonMoveLeftIn",{"0%":{transform:`translate3d(${oe(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),b=new Jt("antFloatButtonMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${oe(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),C=`${t}-group`;return[{[C]:{[`&${C}-top ${C}-wrap`]:ll(`${C}-wrap`,c,u,r,!0),[`&${C}-bottom ${C}-wrap`]:ll(`${C}-wrap`,v,g,r,!0),[`&${C}-left ${C}-wrap`]:ll(`${C}-wrap`,p,b,r,!0),[`&${C}-right ${C}-wrap`]:ll(`${C}-wrap`,d,f,r,!0)}},{[`${C}-wrap`]:{[`&${C}-wrap-enter, &${C}-wrap-appear`]:{opacity:0,animationTimingFunction:a},[`&${C}-wrap-leave`]:{opacity:1,animationTimingFunction:a}}}]},UX=e=>{const{antCls:t,componentCls:n,floatButtonSize:r,margin:a,borderRadiusLG:l,borderRadiusSM:c,badgeOffset:u,floatButtonBodyPadding:d,zIndexPopupBase:f,calc:v}=e,g=`${n}-group`;return{[g]:Object.assign(Object.assign({},dn(e)),{zIndex:f,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"none",position:"fixed",height:"auto",boxShadow:"none",minWidth:r,minHeight:r,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,borderRadius:l,[`${g}-wrap`]:{zIndex:-1,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},[`&${g}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${g}-top > ${g}-wrap`]:{flexDirection:"column",top:"auto",bottom:v(r).add(a).equal(),"&::after":{content:'""',position:"absolute",width:"100%",height:a,bottom:v(a).mul(-1).equal()}},[`${g}-bottom > ${g}-wrap`]:{flexDirection:"column",top:v(r).add(a).equal(),bottom:"auto","&::after":{content:'""',position:"absolute",width:"100%",height:a,top:v(a).mul(-1).equal()}},[`${g}-right > ${g}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:v(r).add(a).equal()},right:{_skip_check_:!0,value:"auto"},"&::after":{content:'""',position:"absolute",width:a,height:"100%",left:{_skip_check_:!0,value:v(a).mul(-1).equal()}}},[`${g}-left > ${g}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:v(r).add(a).equal()},"&::after":{content:'""',position:"absolute",width:a,height:"100%",right:{_skip_check_:!0,value:v(a).mul(-1).equal()}}},[`${g}-circle`]:{gap:a,[`${g}-wrap`]:{gap:a}},[`${g}-square`]:{[`${n}-square`]:{padding:0,borderRadius:0,[`&${g}-trigger`]:{borderRadius:l},"&:first-child":{borderStartStartRadius:l,borderStartEndRadius:l},"&:last-child":{borderEndStartRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:v(v(d).add(u)).mul(-1).equal(),insetInlineEnd:v(v(d).add(u)).mul(-1).equal()}}},[`${g}-wrap`]:{borderRadius:l,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",borderRadius:0,padding:d,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:c}}}},[`${g}-top > ${g}-wrap, ${g}-bottom > ${g}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:l,borderStartEndRadius:l},"&:last-child":{borderEndStartRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${g}-left > ${g}-wrap, ${g}-right > ${g}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:l,borderEndStartRadius:l},"&:last-child":{borderStartEndRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:"none",borderInlineEnd:`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${g}-circle-shadow`]:{boxShadow:"none"},[`${g}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:d,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:c}}}}},qX=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:r,floatButtonIconSize:a,floatButtonSize:l,borderRadiusLG:c,badgeOffset:u,dotOffsetInSquare:d,dotOffsetInCircle:f,zIndexPopupBase:v,calc:g}=e;return{[n]:Object.assign(Object.assign({},dn(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:v,display:"block",width:l,height:l,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:g(u).mul(-1).equal(),insetInlineEnd:g(u).mul(-1).equal()}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:l,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${oe(g(r).div(2).equal())} ${oe(r)}`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:a,fontSize:a,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:l,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:f,insetInlineEnd:f}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:l,borderRadius:c,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:d,insetInlineEnd:d}},[`${n}-body`]:{height:"auto",borderRadius:c}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:oe(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:oe(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},GX=e=>({dotOffsetInCircle:zO(e.controlHeightLG/2),dotOffsetInSquare:zO(e.borderRadiusLG)}),EN=sn("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:a,marginLG:l,fontSize:c,fontSizeIcon:u,controlItemBgHover:d,paddingXXS:f,calc:v}=e,g=tn(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:d,floatButtonFontSize:c,floatButtonIconSize:v(u).mul(1.5).equal(),floatButtonSize:r,floatButtonInsetBlockEnd:a,floatButtonInsetInlineEnd:l,floatButtonBodySize:v(r).sub(v(f).mul(2)).equal(),floatButtonBodyPadding:f,badgeOffset:v(f).mul(1.5).equal()});return[UX(g),qX(g),w1(e),KX(g)]},GX);var XX=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 Kg="float-btn",YX=ve.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:l,type:c="default",shape:u="circle",icon:d,description:f,tooltip:v,htmlType:g="button",badge:p={}}=e,b=XX(e,["prefixCls","className","rootClassName","style","type","shape","icon","description","tooltip","htmlType","badge"]),{getPrefixCls:C,direction:S}=i.useContext(Rt),h=i.useContext(hC),x=C(Kg,n),w=cr(x),[E,j,R]=EN(x,w),I=h||u,O=ue(j,R,w,x,r,a,`${x}-${c}`,`${x}-${I}`,{[`${x}-rtl`]:S==="rtl"}),[M]=zo("FloatButton",l==null?void 0:l.zIndex),N=Object.assign(Object.assign({},l),{zIndex:M}),P=wn(p,["title","children","status","text"]);let B=ve.createElement("div",{className:`${x}-body`},ve.createElement(WX,{prefixCls:x,description:f,icon:d}));"badge"in e&&(B=ve.createElement(Ka,Object.assign({},P),B));const L=wN(v);return L&&(B=ve.createElement(Vn,Object.assign({},L),B)),E(e.href?ve.createElement("a",Object.assign({ref:t},b,{className:O,style:N}),B):ve.createElement("button",Object.assign({ref:t},b,{className:O,style:N,type:g}),B))}),xl=YX;var QX=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 ZX=ve.createElement(rF,null),ON=ve.forwardRef((e,t)=>{var n;const{backTopIcon:r}=fr("floatButton"),{prefixCls:a,className:l,type:c="default",shape:u="circle",visibilityHeight:d=400,icon:f,target:v,onClick:g,duration:p=450}=e,b=QX(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),C=(n=f??r)!==null&&n!==void 0?n:ZX,[S,h]=i.useState(d===0),x=ve.useRef(null);ve.useImperativeHandle(t,()=>({nativeElement:x.current}));const w=()=>{var B;return((B=x.current)===null||B===void 0?void 0:B.ownerDocument)||window},E=qP(B=>{const L=ER(B.target);h(L>=d)});i.useEffect(()=>{const L=(v||w)();return E({target:L}),L==null||L.addEventListener("scroll",E),()=>{E.cancel(),L==null||L.removeEventListener("scroll",E)}},[v]);const j=B=>{OR(0,{getContainer:v||w,duration:p}),g==null||g(B)},{getPrefixCls:R}=i.useContext(Rt),I=R(Kg,a),O=R(),N=i.useContext(hC)||u,P=Object.assign({prefixCls:I,icon:C,type:c,shape:N},b);return ve.createElement(Qr,{visible:S,motionName:`${O}-fade`},({className:B},L)=>ve.createElement(xl,Object.assign({ref:Ir(x,L)},P,{onClick:j,className:ue(l,B)})))});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 RN=e=>{var t;const{prefixCls:n,className:r,style:a,shape:l="circle",type:c="default",placement:u="top",icon:d=ve.createElement(Wg,null),closeIcon:f,description:v,trigger:g,children:p,onOpenChange:b,open:C,onClick:S}=e,h=JX(e,["prefixCls","className","style","shape","type","placement","icon","closeIcon","description","trigger","children","onOpenChange","open","onClick"]),{direction:x,getPrefixCls:w,closeIcon:E}=fr("floatButtonGroup"),j=(t=f??E)!==null&&t!==void 0?t:ve.createElement(Po,null),R=w(Kg,n),I=cr(R),[O,M,N]=EN(R,I),P=`${R}-group`,B=g&&["click","hover"].includes(g),L=u&&["top","left","right","bottom"].includes(u),k=ue(P,M,N,I,r,{[`${P}-rtl`]:x==="rtl",[`${P}-${l}`]:l,[`${P}-${l}-shadow`]:!B,[`${P}-${u}`]:B&&L}),[D]=zo("FloatButton",a==null?void 0:a.zIndex),H=Object.assign(Object.assign({},a),{zIndex:D}),z=ue(M,`${P}-wrap`),[_,F]=bn(!1,{value:C}),W=ve.useRef(null),q=g==="hover",V=g==="click",G=Xt(Q=>{_!==Q&&(F(Q),b==null||b(Q))}),K=()=>{q&&G(!0)},U=()=>{q&&G(!1)},Z=Q=>{V&&G(!_),S==null||S(Q)};return ve.useEffect(()=>{if(V){const Q=te=>{var X;!((X=W.current)===null||X===void 0)&&X.contains(te.target)||G(!1)};return document.addEventListener("click",Q,{capture:!0}),()=>document.removeEventListener("click",Q,{capture:!0})}},[V]),O(ve.createElement(kX,{value:l},ve.createElement("div",{ref:W,className:k,style:H,onMouseEnter:K,onMouseLeave:U},B?ve.createElement(ve.Fragment,null,ve.createElement(Qr,{visible:_,motionName:`${P}-wrap`},({className:Q})=>ve.createElement("div",{className:ue(Q,z)},p)),ve.createElement(xl,Object.assign({type:c,icon:_?j:d,description:v,"aria-label":e["aria-label"],className:`${P}-trigger`,onClick:Z},h))):p)))};var jN=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 DO=e=>{var{backTop:t}=e,n=jN(e,["backTop"]);return t?i.createElement(ON,Object.assign({},n,{visibilityHeight:0})):i.createElement(xl,Object.assign({},n))},eY=e=>{var{className:t,items:n}=e,r=jN(e,["className","items"]);const{prefixCls:a}=r,{getPrefixCls:l}=i.useContext(Rt),u=`${l(Kg,a)}-pure`;return n?i.createElement(RN,Object.assign({className:ue(t,u)},r),n.map((d,f)=>i.createElement(DO,Object.assign({key:f},d)))):i.createElement(DO,Object.assign({className:ue(t,u)},r))};xl.BackTop=ON;xl.Group=RN;xl._InternalPanelDoNotUseOrYouWillBeFired=eY;function Vv(e){const[t,n]=i.useState(e);return i.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const tY=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},
|
|
366
|
+
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
367
|
+
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)"}}}}},nY=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${oe(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 ${oe(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),_O=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},rY=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},dn(e)),nY(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},_O(e,e.controlHeightSM)),"&-large":Object.assign({},_O(e,e.controlHeightLG))})}},aY=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:a,labelRequiredMarkColor:l,labelColor:c,labelFontSize:u,labelHeight:d,labelColonMarginInlineStart:f,labelColonMarginInlineEnd:v,itemMarginBottom:g}=e;return{[t]:Object.assign(Object.assign({},dn(e)),{marginBottom:g,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
368
|
+
&-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:d,color:c,fontSize:u,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:l,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:f,marginInlineEnd:v},[`&${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:E1,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Yl=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),oY=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,
|
|
369
|
+
${t}-col-xl-24${n}-label`]:Yl(e)}}},iY=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,
|
|
370
|
+
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},lY=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Yl(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},sY=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,
|
|
371
|
+
${r}-col-24${n}-label,
|
|
372
|
+
${r}-col-xl-24${n}-label`]:Yl(e)},[`@media (max-width: ${oe(e.screenXSMax)})`]:[lY(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Yl(e)}}}],[`@media (max-width: ${oe(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Yl(e)}}},[`@media (max-width: ${oe(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Yl(e)}}},[`@media (max-width: ${oe(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Yl(e)}}}}},cY=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}),IN=(e,t)=>tn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),bC=sn("Form",(e,{rootPrefixCls:t})=>{const n=IN(e,t);return[rY(n),aY(n),tY(n),oY(n),iY(n),sY(n),tf(n),E1]},cY,{order:-1e3}),AO=[];function K0(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const NN=({help:e,helpStatus:t,errors:n=AO,warnings:r=AO,className:a,fieldId:l,onVisibleChanged:c})=>{const{prefixCls:u}=i.useContext(T1),d=`${u}-item-explain`,f=cr(u),[v,g,p]=bC(u,f),b=i.useMemo(()=>zc(u),[u]),C=Vv(n),S=Vv(r),h=i.useMemo(()=>e!=null?[K0(e,"help",t)]:[].concat(Ne(C.map((E,j)=>K0(E,"error","error",j))),Ne(S.map((E,j)=>K0(E,"warning","warning",j)))),[e,t,C,S]),x=i.useMemo(()=>{const E={};return h.forEach(({key:j})=>{E[j]=(E[j]||0)+1}),h.map((j,R)=>Object.assign(Object.assign({},j),{key:E[j.key]>1?`${j.key}-fallback-${R}`:j.key}))},[h]),w={};return l&&(w.id=`${l}_help`),v(i.createElement(Qr,{motionDeadline:b.motionDeadline,motionName:`${u}-show-help`,visible:!!x.length,onVisibleChanged:c},E=>{const{className:j,style:R}=E;return i.createElement("div",Object.assign({},w,{className:ue(d,j,p,f,a,g),style:R}),i.createElement(g1,Object.assign({keys:x},zc(u),{motionName:`${u}-show-help-item`,component:!1}),I=>{const{key:O,error:M,errorStatus:N,className:P,style:B}=I;return i.createElement("div",{key:O,className:ue(P,{[`${d}-${N}`]:N}),style:B},M)}))}))};var uY=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 dY=(e,t)=>{const n=i.useContext(Vr),{getPrefixCls:r,direction:a,requiredMark:l,colon:c,scrollToFirstError:u,className:d,style:f}=fr("form"),{prefixCls:v,className:g,rootClassName:p,size:b,disabled:C=n,form:S,colon:h,labelAlign:x,labelWrap:w,labelCol:E,wrapperCol:j,hideRequiredMark:R,layout:I="horizontal",scrollToFirstError:O,requiredMark:M,onFinishFailed:N,name:P,style:B,feedbackIcons:L,variant:k}=e,D=uY(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),H=Nr(b),z=i.useContext(F3),_=i.useMemo(()=>M!==void 0?M:R?!1:l!==void 0?l:!0,[R,M,l]),F=h??c,W=r("form",v),q=cr(W),[V,G,K]=bC(W,q),U=ue(W,`${W}-${I}`,{[`${W}-hide-required-mark`]:_===!1,[`${W}-rtl`]:a==="rtl",[`${W}-${H}`]:H},K,q,G,d,g,p),[Z]=$I(S),{__INTERNAL__:Q}=Z;Q.name=P;const te=i.useMemo(()=>({name:P,labelAlign:x,labelCol:E,labelWrap:w,wrapperCol:j,layout:I,colon:F,requiredMark:_,itemRef:Q.itemRef,form:Z,feedbackIcons:L}),[P,x,E,j,I,F,_,Z,L]),X=i.useRef(null);i.useImperativeHandle(t,()=>{var ne;return Object.assign(Object.assign({},Z),{nativeElement:(ne=X.current)===null||ne===void 0?void 0:ne.nativeElement})});const ae=(ne,Y)=>{if(ne){let ie={block:"nearest"};typeof ne=="object"&&(ie=Object.assign(Object.assign({},ie),ne)),Z.scrollToField(Y,ie)}},re=ne=>{if(N==null||N(ne),ne.errorFields.length){const Y=ne.errorFields[0].name;if(O!==void 0){ae(O,Y);return}u!==void 0&&ae(u,Y)}};return V(i.createElement(d6.Provider,{value:k},i.createElement(f1,{disabled:C},i.createElement(ls.Provider,{value:H},i.createElement(c6,{validateMessages:z},i.createElement(yi.Provider,{value:te},i.createElement(u6,{status:!0},i.createElement(Xc,Object.assign({id:P},D,{name:P,onFinishFailed:re,form:Z,ref:X,style:Object.assign(Object.assign({},f),B),className:U})))))))))},fY=i.forwardRef(dY);function mY(e){if(typeof e=="function")return e;const t=Xr(e);return t.length<=1?t[0]:t}const MN=()=>{const{status:e,errors:t=[],warnings:n=[]}=i.useContext(Wr);return{status:e,errors:t,warnings:n}};MN.Context=Wr;function vY(e){const[t,n]=i.useState(e),r=i.useRef(null),a=i.useRef([]),l=i.useRef(!1);i.useEffect(()=>(l.current=!1,()=>{l.current=!0,Yt.cancel(r.current),r.current=null}),[]);function c(u){l.current||(r.current===null&&(a.current=[],r.current=Yt(()=>{r.current=null,n(d=>{let f=d;return a.current.forEach(v=>{f=v(f)}),f})})),a.current.push(u))}return[t,c]}function gY(){const{itemRef:e}=i.useContext(yi),t=i.useRef({});function n(r,a){const l=a&&typeof a=="object"&&pl(a),c=r.join("_");return(t.current.name!==c||t.current.originRef!==l)&&(t.current.name=c,t.current.originRef=l,t.current.ref=Ir(e(r),l)),t.current.ref}return n}const pY=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},hY=Uc(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=IN(e,t);return pY(n)});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};const yY=24,CY=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:a,children:l,errors:c,warnings:u,_internalItemRender:d,extra:f,help:v,fieldId:g,marginBottom:p,onErrorVisibleChanged:b,label:C}=e,S=`${t}-item`,h=i.useContext(yi),x=i.useMemo(()=>{let D=Object.assign({},a||h.wrapperCol||{});return C===null&&!r&&!a&&h.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(z=>{const _=z?[z]:[],F=$a(h.labelCol,_),W=typeof F=="object"?F:{},q=$a(D,_),V=typeof q=="object"?q:{};"span"in W&&!("offset"in V)&&W.span<yY&&(D=co(D,[].concat(_,["offset"]),W.span))}),D},[a,h.wrapperCol,h.labelCol,C,r]),w=ue(`${S}-control`,x.className),E=i.useMemo(()=>{const{labelCol:D,wrapperCol:H}=h;return bY(h,["labelCol","wrapperCol"])},[h]),j=i.useRef(null),[R,I]=i.useState(0);nn(()=>{f&&j.current?I(j.current.clientHeight):I(0)},[f]);const O=i.createElement("div",{className:`${S}-control-input`},i.createElement("div",{className:`${S}-control-input-content`},l)),M=i.useMemo(()=>({prefixCls:t,status:n}),[t,n]),N=p!==null||c.length||u.length?i.createElement(T1.Provider,{value:M},i.createElement(NN,{fieldId:g,errors:c,warnings:u,help:v,helpStatus:n,className:`${S}-explain-connected`,onVisibleChanged:b})):null,P={};g&&(P.id=`${g}_extra`);const B=f?i.createElement("div",Object.assign({},P,{className:`${S}-extra`,ref:j}),f):null,L=N||B?i.createElement("div",{className:`${S}-additional`,style:p?{minHeight:p+R}:{}},N,B):null,k=d&&d.mark==="pro_table_render"&&d.render?d.render(e,{input:O,errorList:N,extra:B}):i.createElement(i.Fragment,null,O,L);return i.createElement(yi.Provider,{value:E},i.createElement(na,Object.assign({},x,{className:w}),k),i.createElement(hY,{prefixCls:t}))};var SY={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"},xY=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:SY}))},$Y=i.forwardRef(xY),wY=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 EY=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:a,colon:l,required:c,requiredMark:u,tooltip:d,vertical:f})=>{var v;const[g]=Pa("Form"),{labelAlign:p,labelCol:b,labelWrap:C,colon:S}=i.useContext(yi);if(!t)return null;const h=r||b||{},x=a||p,w=`${e}-item-label`,E=ue(w,x==="left"&&`${w}-left`,h.className,{[`${w}-wrap`]:!!C});let j=t;const R=l===!0||S!==!1&&l!==!1;R&&!f&&typeof t=="string"&&t.trim()&&(j=t.replace(/[:|:]\s*$/,""));const O=wN(d);if(O){const{icon:k=i.createElement($Y,null)}=O,D=wY(O,["icon"]),H=i.createElement(Vn,Object.assign({},D),i.cloneElement(k,{className:`${e}-item-tooltip`,title:"",onClick:z=>{z.preventDefault()},tabIndex:null}));j=i.createElement(i.Fragment,null,j,H)}const M=u==="optional",N=typeof u=="function",P=u===!1;N?j=u(j,{required:!!c}):M&&!c&&(j=i.createElement(i.Fragment,null,j,i.createElement("span",{className:`${e}-item-optional`,title:""},(g==null?void 0:g.optional)||((v=vo.Form)===null||v===void 0?void 0:v.optional))));let B;P?B="hidden":(M||N)&&(B="optional");const L=ue({[`${e}-item-required`]:c,[`${e}-item-required-mark-${B}`]:B,[`${e}-item-no-colon`]:!R});return i.createElement(na,Object.assign({},h,{className:E}),i.createElement("label",{htmlFor:n,className:L,title:typeof t=="string"?t:""},j))},OY={success:bs,warning:ys,error:hl,validating:Io};function TN({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:a,prefixCls:l,meta:c,noStyle:u,name:d}){const f=`${l}-item`,{feedbackIcons:v}=i.useContext(yi),g=xI(t,n,c,null,!!r,a),{isFormItemInput:p,status:b,hasFeedback:C,feedbackIcon:S,name:h}=i.useContext(Wr),x=i.useMemo(()=>{var w;let E;if(r){const R=r!==!0&&r.icons||v,I=g&&((w=R==null?void 0:R({status:g,errors:t,warnings:n}))===null||w===void 0?void 0:w[g]),O=g?OY[g]:null;E=I!==!1&&O?i.createElement("span",{className:ue(`${f}-feedback-icon`,`${f}-feedback-icon-${g}`)},I||i.createElement(O,null)):null}const j={status:g||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:E,isFormItemInput:!0,name:d};return u&&(j.status=(g??b)||"",j.isFormItemInput=p,j.hasFeedback=!!(r??C),j.feedbackIcon=r!==void 0?j.feedbackIcon:S,j.name=d??h),j},[g,r,u,p,b]);return i.createElement(Wr.Provider,{value:x},e)}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};function jY(e){const{prefixCls:t,className:n,rootClassName:r,style:a,help:l,errors:c,warnings:u,validateStatus:d,meta:f,hasFeedback:v,hidden:g,children:p,fieldId:b,required:C,isRequired:S,onSubItemMetaChange:h,layout:x,name:w}=e,E=RY(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),j=`${t}-item`,{requiredMark:R,layout:I}=i.useContext(yi),O=x||I,M=O==="vertical",N=i.useRef(null),P=Vv(c),B=Vv(u),L=l!=null,k=!!(L||c.length||u.length),D=!!N.current&&Gc(N.current),[H,z]=i.useState(null);nn(()=>{if(k&&N.current){const V=getComputedStyle(N.current);z(Number.parseInt(V.marginBottom,10))}},[k,D]);const _=V=>{V||z(null)},W=((V=!1)=>{const G=V?P:f.errors,K=V?B:f.warnings;return xI(G,K,f,"",!!v,d)})(),q=ue(j,n,r,{[`${j}-with-help`]:L||P.length||B.length,[`${j}-has-feedback`]:W&&v,[`${j}-has-success`]:W==="success",[`${j}-has-warning`]:W==="warning",[`${j}-has-error`]:W==="error",[`${j}-is-validating`]:W==="validating",[`${j}-hidden`]:g,[`${j}-${O}`]:O});return i.createElement("div",{className:q,style:a,ref:N},i.createElement(Hc,Object.assign({className:`${j}-row`},wn(E,["_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"])),i.createElement(EY,Object.assign({htmlFor:b},e,{requiredMark:R,required:C??S,prefixCls:t,vertical:M})),i.createElement(CY,Object.assign({},e,f,{errors:P,warnings:B,prefixCls:t,status:W,help:l,marginBottom:H,onErrorVisibleChanged:_}),i.createElement(s6.Provider,{value:h},i.createElement(TN,{prefixCls:t,meta:f,errors:f.errors,warnings:f.warnings,hasFeedback:v,validateStatus:W,name:w},p)))),!!H&&i.createElement("div",{className:`${j}-margin-offset`,style:{marginBottom:-H}}))}const IY="__SPLIT__";function NY(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const l=e[a],c=t[a];return l===c||typeof l=="function"||typeof c=="function"})}const MY=i.memo(({children:e})=>e,(e,t)=>NY(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function BO(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function TY(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:l,shouldUpdate:c,rules:u,children:d,required:f,label:v,messageVariables:g,trigger:p="onChange",validateTrigger:b,hidden:C,help:S,layout:h}=e,{getPrefixCls:x}=i.useContext(Rt),{name:w}=i.useContext(yi),E=mY(d),j=typeof E=="function",R=i.useContext(s6),{validateTrigger:I}=i.useContext(cs),O=b!==void 0?b:I,M=t!=null,N=x("form",l),P=cr(N),[B,L,k]=bC(N,P);Qo();const D=i.useContext(kd),H=i.useRef(null),[z,_]=vY({}),[F,W]=ss(()=>BO()),q=te=>{const X=D==null?void 0:D.getKey(te.name);if(W(te.destroy?BO():te,!0),n&&S!==!1&&R){let ae=te.name;if(te.destroy)ae=H.current||ae;else if(X!==void 0){const[re,ne]=X;ae=[re].concat(Ne(ne)),H.current=ae}R(te,ae)}},V=(te,X)=>{_(ae=>{const re=Object.assign({},ae),Y=[].concat(Ne(te.name.slice(0,-1)),Ne(X)).join(IY);return te.destroy?delete re[Y]:re[Y]=te,re})},[G,K]=i.useMemo(()=>{const te=Ne(F.errors),X=Ne(F.warnings);return Object.values(z).forEach(ae=>{te.push.apply(te,Ne(ae.errors||[])),X.push.apply(X,Ne(ae.warnings||[]))}),[te,X]},[z,F.errors,F.warnings]),U=gY();function Z(te,X,ae){return n&&!C?i.createElement(TN,{prefixCls:N,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:G,warnings:K,noStyle:!0,name:t},te):i.createElement(jY,Object.assign({key:"row"},e,{className:ue(r,k,P,L),prefixCls:N,fieldId:X,isRequired:ae,errors:G,warnings:K,meta:F,onSubItemMetaChange:V,layout:h,name:t}),te)}if(!M&&!j&&!a)return B(Z(E));let Q={};return typeof v=="string"?Q.label=v:t&&(Q.label=String(t)),g&&(Q=Object.assign(Object.assign({},Q),g)),B(i.createElement(N1,Object.assign({},e,{messageVariables:Q,trigger:p,validateTrigger:O,onMetaChange:q}),(te,X,ae)=>{const re=$d(t).length&&X?X.name:[],ne=SI(re,w),Y=f!==void 0?f:!!(u!=null&&u.some(de=>{if(de&&typeof de=="object"&&de.required&&!de.warningOnly)return!0;if(typeof de=="function"){const ce=de(ae);return(ce==null?void 0:ce.required)&&!(ce!=null&&ce.warningOnly)}return!1})),ie=Object.assign({},te);let le=null;if(Array.isArray(E)&&M)le=E;else if(!(j&&(!(c||a)||M))){if(!(a&&!j&&!M))if(i.isValidElement(E)){const de=Object.assign(Object.assign({},E.props),ie);if(de.id||(de.id=ne),S||G.length>0||K.length>0||e.extra){const he=[];(S||G.length>0)&&he.push(`${ne}_help`),e.extra&&he.push(`${ne}_extra`),de["aria-describedby"]=he.join(" ")}G.length>0&&(de["aria-invalid"]="true"),Y&&(de["aria-required"]="true"),Oo(E)&&(de.ref=U(re,E)),new Set([].concat(Ne($d(p)),Ne($d(O)))).forEach(he=>{de[he]=(...Oe)=>{var je,pe,we,Se,Ce;(we=ie[he])===null||we===void 0||(je=we).call.apply(je,[ie].concat(Oe)),(Ce=(Se=E.props)[he])===null||Ce===void 0||(pe=Ce).call.apply(pe,[Se].concat(Oe))}});const ge=[de["aria-required"],de["aria-invalid"],de["aria-describedby"]];le=i.createElement(MY,{control:ie,update:E,childProps:ge},$r(E,de))}else j&&(c||a)&&!M?le=E(ae):le=E}return Z(le,ne,Y)}))}const PN=TY;PN.useStatus=MN;var PY=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 zY=e=>{var{prefixCls:t,children:n}=e,r=PY(e,["prefixCls","children"]);const{getPrefixCls:a}=i.useContext(Rt),l=a("form",t),c=i.useMemo(()=>({prefixCls:l,status:"error"}),[l]);return i.createElement(a6,Object.assign({},r),(u,d,f)=>i.createElement(T1.Provider,{value:c},n(u.map(v=>Object.assign(Object.assign({},v),{fieldKey:v.key})),d,{errors:f.errors,warnings:f.warnings})))};function DY(){const{form:e}=i.useContext(yi);return e}const on=fY;on.Item=PN;on.List=zY;on.ErrorList=NN;on.useForm=$I;on.useFormInstance=DY;on.useWatch=l6;on.Provider=c6;on.create=()=>{};var _Y={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"},AY=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:_Y}))},yC=i.forwardRef(AY);function kO(e,t,n,r){var a=Rd.unstable_batchedUpdates?function(c){Rd.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)}}}var BY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},kY=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:BY}))},LY=i.forwardRef(kY);const HY=e=>{const{getPrefixCls:t,direction:n}=i.useContext(Rt),{prefixCls:r,className:a}=e,l=t("input-group",r),c=t("input"),[u,d,f]=MI(c),v=ue(l,f,{[`${l}-lg`]:e.size==="large",[`${l}-sm`]:e.size==="small",[`${l}-compact`]:e.compact,[`${l}-rtl`]:n==="rtl"},d,a),g=i.useContext(Wr),p=i.useMemo(()=>Object.assign(Object.assign({},g),{isFormItemInput:!1}),[g]);return u(i.createElement("span",{className:v,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},i.createElement(Wr.Provider,{value:p},e.children)))},FY=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}}}},VY=sn(["Input","OTP"],e=>{const t=tn(e,Es(e));return FY(t)},Os);var WY=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 KY=i.forwardRef((e,t)=>{const{className:n,value:r,onChange:a,onActiveChange:l,index:c,mask:u}=e,d=WY(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:f}=i.useContext(Rt),v=f("otp"),g=typeof u=="string"?u:r,p=i.useRef(null);i.useImperativeHandle(t,()=>p.current);const b=h=>{a(c,h.target.value)},C=()=>{Yt(()=>{var h;const x=(h=p.current)===null||h===void 0?void 0:h.input;document.activeElement===x&&x&&x.select()})},S=h=>{const{key:x,ctrlKey:w,metaKey:E}=h;x==="ArrowLeft"?l(c-1):x==="ArrowRight"?l(c+1):x==="z"&&(w||E)?h.preventDefault():x==="Backspace"&&!r&&l(c-1),C()};return i.createElement("span",{className:`${v}-input-wrapper`,role:"presentation"},u&&r!==""&&r!==void 0&&i.createElement("span",{className:`${v}-mask-icon`,"aria-hidden":"true"},g),i.createElement(pf,Object.assign({"aria-label":`OTP Input ${c+1}`,type:u===!0?"password":"text"},d,{ref:p,value:r,onInput:b,onFocus:C,onKeyDown:S,onMouseDown:C,onMouseUp:C,className:ue(n,{[`${v}-mask-input`]:u})})))});var UY=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 Wm(e){return(e||"").split("")}const qY=e=>{const{index:t,prefixCls:n,separator:r}=e,a=typeof r=="function"?r(t):r;return a?i.createElement("span",{className:`${n}-separator`},a):null},GY=i.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:a,defaultValue:l,value:c,onChange:u,formatter:d,separator:f,variant:v,disabled:g,status:p,autoFocus:b,mask:C,type:S,onInput:h,inputMode:x}=e,w=UY(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:E,direction:j}=i.useContext(Rt),R=E("otp",n),I=Rr(w,{aria:!0,data:!0,attr:!0}),[O,M,N]=VY(R),P=Nr(U=>a??U),B=i.useContext(Wr),L=yl(B.status,p),k=i.useMemo(()=>Object.assign(Object.assign({},B),{status:L,hasFeedback:!1,feedbackIcon:null}),[B,L]),D=i.useRef(null),H=i.useRef({});i.useImperativeHandle(t,()=>({focus:()=>{var U;(U=H.current[0])===null||U===void 0||U.focus()},blur:()=>{var U;for(let Z=0;Z<r;Z+=1)(U=H.current[Z])===null||U===void 0||U.blur()},nativeElement:D.current}));const z=U=>d?d(U):U,[_,F]=i.useState(()=>Wm(z(l||"")));i.useEffect(()=>{c!==void 0&&F(Wm(c))},[c]);const W=Xt(U=>{F(U),h&&h(U),u&&U.length===r&&U.every(Z=>Z)&&U.some((Z,Q)=>_[Q]!==Z)&&u(U.join(""))}),q=Xt((U,Z)=>{let Q=Ne(_);for(let X=0;X<U;X+=1)Q[X]||(Q[X]="");Z.length<=1?Q[U]=Z:Q=Q.slice(0,U).concat(Wm(Z)),Q=Q.slice(0,r);for(let X=Q.length-1;X>=0&&!Q[X];X-=1)Q.pop();const te=z(Q.map(X=>X||" ").join(""));return Q=Wm(te).map((X,ae)=>X===" "&&!Q[ae]?Q[ae]:X),Q}),V=(U,Z)=>{var Q;const te=q(U,Z),X=Math.min(U+Z.length,r-1);X!==U&&te[U]!==void 0&&((Q=H.current[X])===null||Q===void 0||Q.focus()),W(te)},G=U=>{var Z;(Z=H.current[U])===null||Z===void 0||Z.focus()},K={variant:v,disabled:g,status:L,mask:C,type:S,inputMode:x};return O(i.createElement("div",Object.assign({},I,{ref:D,className:ue(R,{[`${R}-sm`]:P==="small",[`${R}-lg`]:P==="large",[`${R}-rtl`]:j==="rtl"},N,M),role:"group"}),i.createElement(Wr.Provider,{value:k},Array.from({length:r}).map((U,Z)=>{const Q=`otp-${Z}`,te=_[Z]||"";return i.createElement(i.Fragment,{key:Q},i.createElement(KY,Object.assign({ref:X=>{H.current[Z]=X},index:Z,size:P,htmlSize:1,className:`${R}-input`,onChange:V,value:te,onActiveChange:G,autoFocus:Z===0&&b},K)),Z<r-1&&i.createElement(qY,{separator:f,index:Z,prefixCls:R}))}))))});var XY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},YY=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:XY}))},QY=i.forwardRef(YY),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 JY=e=>e?i.createElement(yC,null):i.createElement(QY,null),eQ={click:"onClick",hover:"onMouseOver"},tQ=i.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:l=JY,suffix:c}=e,u=i.useContext(Vr),d=n??u,f=typeof a=="object"&&a.visible!==void 0,[v,g]=i.useState(()=>f?a.visible:!1),p=i.useRef(null);i.useEffect(()=>{f&&g(a.visible)},[f,a]);const b=gN(p),C=()=>{var B;if(d)return;v&&b();const L=!v;g(L),typeof a=="object"&&((B=a.onVisibleChange)===null||B===void 0||B.call(a,L))},S=B=>{const L=eQ[r]||"",k=l(v),D={[L]:C,className:`${B}-icon`,key:"passwordIcon",onMouseDown:H=>{H.preventDefault()},onMouseUp:H=>{H.preventDefault()}};return i.cloneElement(i.isValidElement(k)?k:i.createElement("span",null,k),D)},{className:h,prefixCls:x,inputPrefixCls:w,size:E}=e,j=ZY(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:R}=i.useContext(Rt),I=R("input",w),O=R("input-password",x),M=a&&S(O),N=ue(O,h,{[`${O}-${E}`]:!!E}),P=Object.assign(Object.assign({},wn(j,["suffix","iconRender","visibilityToggle"])),{type:v?"text":"password",className:N,prefixCls:I,suffix:i.createElement(i.Fragment,null,M,c)});return E&&(P.size=E),i.createElement(pf,Object.assign({ref:Ir(t,p)},P))});var nQ=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 rQ=i.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:a,size:l,suffix:c,enterButton:u=!1,addonAfter:d,loading:f,disabled:v,onSearch:g,onChange:p,onCompositionStart:b,onCompositionEnd:C,variant:S,onPressEnter:h}=e,x=nQ(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:w,direction:E}=i.useContext(Rt),j=i.useRef(!1),R=w("input-search",n),I=w("input",r),{compactSize:O}=Do(R,E),M=Nr(K=>{var U;return(U=l??O)!==null&&U!==void 0?U:K}),N=i.useRef(null),P=K=>{K!=null&&K.target&&K.type==="click"&&g&&g(K.target.value,K,{source:"clear"}),p==null||p(K)},B=K=>{var U;document.activeElement===((U=N.current)===null||U===void 0?void 0:U.input)&&K.preventDefault()},L=K=>{var U,Z;g&&g((Z=(U=N.current)===null||U===void 0?void 0:U.input)===null||Z===void 0?void 0:Z.value,K,{source:"input"})},k=K=>{j.current||f||(h==null||h(K),L(K))},D=typeof u=="boolean"?i.createElement(xs,null):null,H=`${R}-button`;let z;const _=u||{},F=_.type&&_.type.__ANT_BUTTON===!0;F||_.type==="button"?z=$r(_,Object.assign({onMouseDown:B,onClick:K=>{var U,Z;(Z=(U=_==null?void 0:_.props)===null||U===void 0?void 0:U.onClick)===null||Z===void 0||Z.call(U,K),L(K)},key:"enterButton"},F?{className:H,size:M}:{})):z=i.createElement(nt,{className:H,color:u?"primary":"default",size:M,disabled:v,key:"enterButton",onMouseDown:B,onClick:L,loading:f,icon:D,variant:S==="borderless"||S==="filled"||S==="underlined"?"text":u?"solid":void 0},u),d&&(z=[z,$r(d,{key:"addonAfter"})]);const W=ue(R,{[`${R}-rtl`]:E==="rtl",[`${R}-${M}`]:!!M,[`${R}-with-button`]:!!u},a),q=K=>{j.current=!0,b==null||b(K)},V=K=>{j.current=!1,C==null||C(K)},G=Object.assign(Object.assign({},x),{className:W,prefixCls:I,type:"search",size:M,variant:S,onPressEnter:k,onCompositionStart:q,onCompositionEnd:V,addonAfter:z,suffix:c,onChange:P,disabled:v,_skipAddonWarning:!0});return i.createElement(pf,Object.assign({ref:Ir(N,t)},G))});var aQ=`
|
|
373
|
+
min-height:0 !important;
|
|
374
|
+
max-height:none !important;
|
|
375
|
+
height:0 !important;
|
|
376
|
+
visibility:hidden !important;
|
|
377
|
+
overflow:hidden !important;
|
|
378
|
+
position:absolute !important;
|
|
379
|
+
z-index:-1000 !important;
|
|
380
|
+
top:0 !important;
|
|
381
|
+
right:0 !important;
|
|
382
|
+
pointer-events: none !important;
|
|
383
|
+
`,oQ=["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"],U0={},Va;function iQ(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&&U0[n])return U0[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),c=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u=oQ.map(function(f){return"".concat(f,":").concat(r.getPropertyValue(f))}).join(";"),d={sizingStyle:u,paddingSize:l,borderSize:c,boxSizing:a};return t&&n&&(U0[n]=d),d}function lQ(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;Va||(Va=document.createElement("textarea"),Va.setAttribute("tab-index","-1"),Va.setAttribute("aria-hidden","true"),Va.setAttribute("name","hiddenTextarea"),document.body.appendChild(Va)),e.getAttribute("wrap")?Va.setAttribute("wrap",e.getAttribute("wrap")):Va.removeAttribute("wrap");var a=iQ(e,t),l=a.paddingSize,c=a.borderSize,u=a.boxSizing,d=a.sizingStyle;Va.setAttribute("style","".concat(d,";").concat(aQ)),Va.value=e.value||e.placeholder||"";var f=void 0,v=void 0,g,p=Va.scrollHeight;if(u==="border-box"?p+=c:u==="content-box"&&(p-=l),n!==null||r!==null){Va.value=" ";var b=Va.scrollHeight-l;n!==null&&(f=b*n,u==="border-box"&&(f=f+l+c),p=Math.max(f,p)),r!==null&&(v=b*r,u==="border-box"&&(v=v+l+c),g=p>v?"":"hidden",p=Math.min(v,p))}var C={height:p,overflowY:g,resize:"none"};return f&&(C.minHeight=f),v&&(C.maxHeight=v),C}var sQ=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],q0=0,G0=1,X0=2,cQ=i.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,l=n.value,c=n.autoSize,u=n.onResize,d=n.className,f=n.style,v=n.disabled,g=n.onChange;n.onInternalAutoSize;var p=Lt(n,sQ),b=bn(a,{value:l,postState:function(K){return K??""}}),C=fe(b,2),S=C[0],h=C[1],x=function(K){h(K.target.value),g==null||g(K)},w=i.useRef();i.useImperativeHandle(t,function(){return{textArea:w.current}});var E=i.useMemo(function(){return c&&$t(c)==="object"?[c.minRows,c.maxRows]:[]},[c]),j=fe(E,2),R=j[0],I=j[1],O=!!c,M=i.useState(X0),N=fe(M,2),P=N[0],B=N[1],L=i.useState(),k=fe(L,2),D=k[0],H=k[1],z=function(){B(q0)};nn(function(){O&&z()},[l,R,I,O]),nn(function(){if(P===q0)B(G0);else if(P===G0){var G=lQ(w.current,!1,R,I);B(X0),H(G)}},[P]);var _=i.useRef(),F=function(){Yt.cancel(_.current)},W=function(K){P===X0&&(u==null||u(K),c&&(F(),_.current=Yt(function(){z()})))};i.useEffect(function(){return F},[]);var q=O?D:null,V=se(se({},f),q);return(P===q0||P===G0)&&(V.overflowY="hidden",V.overflowX="hidden"),i.createElement(ma,{onResize:W,disabled:!(c||u)},i.createElement("textarea",ye({},p,{ref:w,style:V,className:ue(r,d,ee({},"".concat(r,"-disabled"),v)),disabled:v,value:S,onChange:x})))}),uQ=["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"],dQ=ve.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,l=e.onFocus,c=e.onBlur,u=e.onChange,d=e.allowClear,f=e.maxLength,v=e.onCompositionStart,g=e.onCompositionEnd,p=e.suffix,b=e.prefixCls,C=b===void 0?"rc-textarea":b,S=e.showCount,h=e.count,x=e.className,w=e.style,E=e.disabled,j=e.hidden,R=e.classNames,I=e.styles,O=e.onResize,M=e.onClear,N=e.onPressEnter,P=e.readOnly,B=e.autoSize,L=e.onKeyDown,k=Lt(e,uQ),D=bn(r,{value:a,defaultValue:r}),H=fe(D,2),z=H[0],_=H[1],F=z==null?"":String(z),W=ve.useState(!1),q=fe(W,2),V=q[0],G=q[1],K=ve.useRef(!1),U=ve.useState(null),Z=fe(U,2),Q=Z[0],te=Z[1],X=i.useRef(null),ae=i.useRef(null),re=function(){var Re;return(Re=ae.current)===null||Re===void 0?void 0:Re.textArea},ne=function(){re().focus()};i.useImperativeHandle(t,function(){var _e;return{resizableTextArea:ae.current,focus:ne,blur:function(){re().blur()},nativeElement:((_e=X.current)===null||_e===void 0?void 0:_e.nativeElement)||re()}}),i.useEffect(function(){G(function(_e){return!E&&_e})},[E]);var Y=ve.useState(null),ie=fe(Y,2),le=ie[0],de=ie[1];ve.useEffect(function(){if(le){var _e;(_e=re()).setSelectionRange.apply(_e,Ne(le))}},[le]);var ce=fN(h,S),ge=(n=ce.max)!==null&&n!==void 0?n:f,he=Number(ge)>0,Oe=ce.strategy(F),je=!!ge&&Oe>ge,pe=function(Re,Pe){var be=Pe;!K.current&&ce.exceedFormatter&&ce.max&&ce.strategy(Pe)>ce.max&&(be=ce.exceedFormatter(Pe,{max:ce.max}),Pe!==be&&de([re().selectionStart||0,re().selectionEnd||0])),_(be),Hv(Re.currentTarget,Re,u,be)},we=function(Re){K.current=!0,v==null||v(Re)},Se=function(Re){K.current=!1,pe(Re,Re.currentTarget.value),g==null||g(Re)},Ce=function(Re){pe(Re,Re.target.value)},De=function(Re){Re.key==="Enter"&&N&&N(Re),L==null||L(Re)},Ae=function(Re){G(!0),l==null||l(Re)},Ye=function(Re){G(!1),c==null||c(Re)},Ke=function(Re){_(""),ne(),Hv(re(),Re,u)},Fe=p,Ge;ce.show&&(ce.showFormatter?Ge=ce.showFormatter({value:F,count:Oe,maxLength:ge}):Ge="".concat(Oe).concat(he?" / ".concat(ge):""),Fe=ve.createElement(ve.Fragment,null,Fe,ve.createElement("span",{className:ue("".concat(C,"-data-count"),R==null?void 0:R.count),style:I==null?void 0:I.count},Ge)));var Te=function(Re){var Pe;O==null||O(Re),(Pe=re())!==null&&Pe!==void 0&&Pe.style.height&&te(!0)},Ee=!B&&!S&&!d;return ve.createElement(vC,{ref:X,value:F,allowClear:d,handleReset:Ke,suffix:Fe,prefixCls:C,classNames:se(se({},R),{},{affixWrapper:ue(R==null?void 0:R.affixWrapper,ee(ee({},"".concat(C,"-show-count"),S),"".concat(C,"-textarea-allow-clear"),d))}),disabled:E,focused:V,className:ue(x,je&&"".concat(C,"-out-of-range")),style:se(se({},w),Q&&!Ee?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ge=="string"?Ge:void 0}},hidden:j,readOnly:P,onClear:M},ve.createElement(cQ,ye({},k,{autoSize:B,maxLength:f,onKeyDown:De,onChange:Ce,onFocus:Ae,onBlur:Ye,onCompositionStart:we,onCompositionEnd:Se,className:ue(R==null?void 0:R.textarea),style:se(se({},I==null?void 0:I.textarea),{},{resize:w==null?void 0:w.resize}),disabled:E,prefixCls:C,onResize:Te,ref:ae,readOnly:P})))});const fQ=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"}},[`
|
|
384
|
+
&-allow-clear > ${t},
|
|
385
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
386
|
+
`]:{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}}}}}},mQ=sn(["Input","TextArea"],e=>{const t=tn(e,Es(e));return fQ(t)},Os,{resetFont:!1});var vQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const zN=i.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:a=!0,size:l,disabled:c,status:u,allowClear:d,classNames:f,rootClassName:v,className:g,style:p,styles:b,variant:C,showCount:S,onMouseDown:h,onResize:x}=e,w=vQ(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:E,direction:j,allowClear:R,autoComplete:I,className:O,style:M,classNames:N,styles:P}=fr("textArea"),B=i.useContext(Vr),L=c??B,{status:k,hasFeedback:D,feedbackIcon:H}=i.useContext(Wr),z=yl(k,u),_=i.useRef(null);i.useImperativeHandle(t,()=>{var ce;return{resizableTextArea:(ce=_.current)===null||ce===void 0?void 0:ce.resizableTextArea,focus:ge=>{var he,Oe;mC((Oe=(he=_.current)===null||he===void 0?void 0:he.resizableTextArea)===null||Oe===void 0?void 0:Oe.textArea,ge)},blur:()=>{var ge;return(ge=_.current)===null||ge===void 0?void 0:ge.blur()}}});const F=E("input",r),W=cr(F),[q,V,G]=NI(F,v),[K]=mQ(F,W),{compactSize:U,compactItemClassnames:Z}=Do(F,j),Q=Nr(ce=>{var ge;return(ge=l??U)!==null&&ge!==void 0?ge:ce}),[te,X]=Cl("textArea",C,a),ae=vN(d??R),[re,ne]=i.useState(!1),[Y,ie]=i.useState(!1),le=ce=>{ne(!0),h==null||h(ce);const ge=()=>{ne(!1),document.removeEventListener("mouseup",ge)};document.addEventListener("mouseup",ge)},de=ce=>{var ge,he;if(x==null||x(ce),re&&typeof getComputedStyle=="function"){const Oe=(he=(ge=_.current)===null||ge===void 0?void 0:ge.nativeElement)===null||he===void 0?void 0:he.querySelector("textarea");Oe&&getComputedStyle(Oe).resize==="both"&&ie(!0)}};return q(K(i.createElement(dQ,Object.assign({autoComplete:I},w,{style:Object.assign(Object.assign({},M),p),styles:Object.assign(Object.assign({},P),b),disabled:L,allowClear:ae,className:ue(G,W,g,v,Z,O,Y&&`${F}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},f),N),{textarea:ue({[`${F}-sm`]:Q==="small",[`${F}-lg`]:Q==="large"},V,f==null?void 0:f.textarea,N.textarea,re&&`${F}-mouse-active`),variant:ue({[`${F}-${te}`]:X},Ci(F,z)),affixWrapper:ue(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:j==="rtl",[`${F}-affix-wrapper-sm`]:Q==="small",[`${F}-affix-wrapper-lg`]:Q==="large",[`${F}-textarea-show-count`]:S||((n=e.count)===null||n===void 0?void 0:n.show)},V)}),prefixCls:F,suffix:D&&i.createElement("span",{className:`${F}-textarea-suffix`},H),showCount:S,ref:_,onResize:de,onMouseDown:le}))))}),hn=pf;hn.Group=HY;hn.Search=rQ;hn.TextArea=zN;hn.Password=tQ;hn.OTP=GY;function gQ(e,t,n){return typeof n=="boolean"?n:e.length?!0:Xr(t).some(a=>a.type===Dj)}var DN=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 Ug({suffixCls:e,tagName:t,displayName:n}){return r=>i.forwardRef((l,c)=>i.createElement(r,Object.assign({ref:c,suffixCls:e,tagName:t},l)))}const CC=i.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:l}=e,c=DN(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=i.useContext(Rt),d=u("layout",n),[f,v,g]=zj(d),p=r?`${d}-${r}`:d;return f(i.createElement(l,Object.assign({className:ue(n||p,a,v,g),ref:t},c)))}),pQ=i.forwardRef((e,t)=>{const{direction:n}=i.useContext(Rt),[r,a]=i.useState([]),{prefixCls:l,className:c,rootClassName:u,children:d,hasSider:f,tagName:v,style:g}=e,p=DN(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),b=wn(p,["suffixCls"]),{getPrefixCls:C,className:S,style:h}=fr("layout"),x=C("layout",l),w=gQ(r,d,f),[E,j,R]=zj(x),I=ue(x,{[`${x}-has-sider`]:w,[`${x}-rtl`]:n==="rtl"},S,c,u,j,R),O=i.useMemo(()=>({siderHook:{addSider:M=>{a(N=>[].concat(Ne(N),[M]))},removeSider:M=>{a(N=>N.filter(P=>P!==M))}}}),[]);return E(i.createElement(Mj.Provider,{value:O},i.createElement(v,Object.assign({ref:t,className:I,style:Object.assign(Object.assign({},h),g)},b),d)))}),hQ=Ug({tagName:"div",displayName:"Layout"})(pQ),bQ=Ug({suffixCls:"header",tagName:"header",displayName:"Header"})(CC),yQ=Ug({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(CC),CQ=Ug({suffixCls:"content",tagName:"main",displayName:"Content"})(CC),ml=hQ;ml.Header=bQ;ml.Footer=yQ;ml.Content=CQ;ml.Sider=Dj;ml._InternalSiderContext=Tg;var SQ={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"},xQ=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:SQ}))},LO=i.forwardRef(xQ),$Q={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"},wQ=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:$Q}))},HO=i.forwardRef(wQ),EQ={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:"页码"},OQ=[10,20,50,100],RQ=function(t){var n=t.pageSizeOptions,r=n===void 0?OQ:n,a=t.locale,l=t.changeSize,c=t.pageSize,u=t.goButton,d=t.quickGo,f=t.rootPrefixCls,v=t.disabled,g=t.buildOptionText,p=t.showSizeChanger,b=t.sizeChangerRender,C=ve.useState(""),S=fe(C,2),h=S[0],x=S[1],w=function(){return!h||Number.isNaN(h)?void 0:Number(h)},E=typeof g=="function"?g:function(L){return"".concat(L," ").concat(a.items_per_page)},j=function(k){x(k.target.value)},R=function(k){u||h===""||(x(""),!(k.relatedTarget&&(k.relatedTarget.className.indexOf("".concat(f,"-item-link"))>=0||k.relatedTarget.className.indexOf("".concat(f,"-item"))>=0))&&(d==null||d(w())))},I=function(k){h!==""&&(k.keyCode===ot.ENTER||k.type==="click")&&(x(""),d==null||d(w()))},O=function(){return r.some(function(k){return k.toString()===c.toString()})?r:r.concat([c]).sort(function(k,D){var H=Number.isNaN(Number(k))?0:Number(k),z=Number.isNaN(Number(D))?0:Number(D);return H-z})},M="".concat(f,"-options");if(!p&&!d)return null;var N=null,P=null,B=null;return p&&b&&(N=b({disabled:v,size:c,onSizeChange:function(k){l==null||l(Number(k))},"aria-label":a.page_size,className:"".concat(M,"-size-changer"),options:O().map(function(L){return{label:E(L),value:L}})})),d&&(u&&(B=typeof u=="boolean"?ve.createElement("button",{type:"button",onClick:I,onKeyUp:I,disabled:v,className:"".concat(M,"-quick-jumper-button")},a.jump_to_confirm):ve.createElement("span",{onClick:I,onKeyUp:I},u)),P=ve.createElement("div",{className:"".concat(M,"-quick-jumper")},a.jump_to,ve.createElement("input",{disabled:v,type:"text",value:h,onChange:j,onKeyUp:I,onBlur:R,"aria-label":a.page}),a.page,B)),ve.createElement("li",{className:M},N,P)},ad=function(t){var n=t.rootPrefixCls,r=t.page,a=t.active,l=t.className,c=t.showTitle,u=t.onClick,d=t.onKeyPress,f=t.itemRender,v="".concat(n,"-item"),g=ue(v,"".concat(v,"-").concat(r),ee(ee({},"".concat(v,"-active"),a),"".concat(v,"-disabled"),!r),l),p=function(){u(r)},b=function(h){d(h,u,r)},C=f(r,"page",ve.createElement("a",{rel:"nofollow"},r));return C?ve.createElement("li",{title:c?String(r):null,className:g,onClick:p,onKeyDown:b,tabIndex:0},C):null},jQ=function(t,n,r){return r};function FO(){}function VO(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Fl(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var IQ=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,a=t.selectPrefixCls,l=a===void 0?"rc-select":a,c=t.className,u=t.current,d=t.defaultCurrent,f=d===void 0?1:d,v=t.total,g=v===void 0?0:v,p=t.pageSize,b=t.defaultPageSize,C=b===void 0?10:b,S=t.onChange,h=S===void 0?FO:S,x=t.hideOnSinglePage,w=t.align,E=t.showPrevNextJumpers,j=E===void 0?!0:E,R=t.showQuickJumper,I=t.showLessItems,O=t.showTitle,M=O===void 0?!0:O,N=t.onShowSizeChange,P=N===void 0?FO:N,B=t.locale,L=B===void 0?EQ:B,k=t.style,D=t.totalBoundaryShowSizeChanger,H=D===void 0?50:D,z=t.disabled,_=t.simple,F=t.showTotal,W=t.showSizeChanger,q=W===void 0?g>H:W,V=t.sizeChangerRender,G=t.pageSizeOptions,K=t.itemRender,U=K===void 0?jQ:K,Z=t.jumpPrevIcon,Q=t.jumpNextIcon,te=t.prevIcon,X=t.nextIcon,ae=ve.useRef(null),re=bn(10,{value:p,defaultValue:C}),ne=fe(re,2),Y=ne[0],ie=ne[1],le=bn(1,{value:u,defaultValue:f,postState:function(Nt){return Math.max(1,Math.min(Nt,Fl(void 0,Y,g)))}}),de=fe(le,2),ce=de[0],ge=de[1],he=ve.useState(ce),Oe=fe(he,2),je=Oe[0],pe=Oe[1];i.useEffect(function(){pe(ce)},[ce]);var we=Math.max(1,ce-(I?3:5)),Se=Math.min(Fl(void 0,Y,g),ce+(I?3:5));function Ce(vt,Nt){var Ft=vt||ve.createElement("button",{type:"button","aria-label":Nt,className:"".concat(r,"-item-link")});return typeof vt=="function"&&(Ft=ve.createElement(vt,se({},t))),Ft}function De(vt){var Nt=vt.target.value,Ft=Fl(void 0,Y,g),xn;return Nt===""?xn=Nt:Number.isNaN(Number(Nt))?xn=je:Nt>=Ft?xn=Ft:xn=Number(Nt),xn}function Ae(vt){return VO(vt)&&vt!==ce&&VO(g)&&g>0}var Ye=g>Y?R:!1;function Ke(vt){(vt.keyCode===ot.UP||vt.keyCode===ot.DOWN)&&vt.preventDefault()}function Fe(vt){var Nt=De(vt);switch(Nt!==je&&pe(Nt),vt.keyCode){case ot.ENTER:Ee(Nt);break;case ot.UP:Ee(Nt-1);break;case ot.DOWN:Ee(Nt+1);break}}function Ge(vt){Ee(De(vt))}function Te(vt){var Nt=Fl(vt,Y,g),Ft=ce>Nt&&Nt!==0?Nt:ce;ie(vt),pe(Ft),P==null||P(ce,vt),ge(Ft),h==null||h(Ft,vt)}function Ee(vt){if(Ae(vt)&&!z){var Nt=Fl(void 0,Y,g),Ft=vt;return vt>Nt?Ft=Nt:vt<1&&(Ft=1),Ft!==je&&pe(Ft),ge(Ft),h==null||h(Ft,Y),Ft}return ce}var _e=ce>1,Re=ce<Fl(void 0,Y,g);function Pe(){_e&&Ee(ce-1)}function be(){Re&&Ee(ce+1)}function $e(){Ee(we)}function Me(){Ee(Se)}function Le(vt,Nt){if(vt.key==="Enter"||vt.charCode===ot.ENTER||vt.keyCode===ot.ENTER){for(var Ft=arguments.length,xn=new Array(Ft>2?Ft-2:0),_n=2;_n<Ft;_n++)xn[_n-2]=arguments[_n];Nt.apply(void 0,xn)}}function et(vt){Le(vt,Pe)}function bt(vt){Le(vt,be)}function We(vt){Le(vt,$e)}function tt(vt){Le(vt,Me)}function dt(vt){var Nt=U(vt,"prev",Ce(te,"prev page"));return ve.isValidElement(Nt)?ve.cloneElement(Nt,{disabled:!_e}):Nt}function at(vt){var Nt=U(vt,"next",Ce(X,"next page"));return ve.isValidElement(Nt)?ve.cloneElement(Nt,{disabled:!Re}):Nt}function pt(vt){(vt.type==="click"||vt.keyCode===ot.ENTER)&&Ee(je)}var Pt=null,Et=Rr(t,{aria:!0,data:!0}),ct=F&&ve.createElement("li",{className:"".concat(r,"-total-text")},F(g,[g===0?0:(ce-1)*Y+1,ce*Y>g?g:ce*Y])),St=null,yt=Fl(void 0,Y,g);if(x&&g<=Y)return null;var Je=[],Ve={rootPrefixCls:r,onClick:Ee,onKeyPress:Le,showTitle:M,itemRender:U,page:-1},Ue=ce-1>0?ce-1:0,mt=ce+1<yt?ce+1:yt,Mt=R&&R.goButton,It=$t(_)==="object"?_.readOnly:!_,Vt=Mt,ft=null;_&&(Mt&&(typeof Mt=="boolean"?Vt=ve.createElement("button",{type:"button",onClick:pt,onKeyUp:pt},L.jump_to_confirm):Vt=ve.createElement("span",{onClick:pt,onKeyUp:pt},Mt),Vt=ve.createElement("li",{title:M?"".concat(L.jump_to).concat(ce,"/").concat(yt):null,className:"".concat(r,"-simple-pager")},Vt)),ft=ve.createElement("li",{title:M?"".concat(ce,"/").concat(yt):null,className:"".concat(r,"-simple-pager")},It?je:ve.createElement("input",{type:"text","aria-label":L.jump_to,value:je,disabled:z,onKeyDown:Ke,onKeyUp:Fe,onChange:Fe,onBlur:Ge,size:3}),ve.createElement("span",{className:"".concat(r,"-slash")},"/"),yt));var lt=I?1:2;if(yt<=3+lt*2){yt||Je.push(ve.createElement(ad,ye({},Ve,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var At=1;At<=yt;At+=1)Je.push(ve.createElement(ad,ye({},Ve,{key:At,page:At,active:ce===At})))}else{var Ut=I?L.prev_3:L.prev_5,rn=I?L.next_3:L.next_5,Qt=U(we,"jump-prev",Ce(Z,"prev page")),vn=U(Se,"jump-next",Ce(Q,"next page"));j&&(Pt=Qt?ve.createElement("li",{title:M?Ut:null,key:"prev",onClick:$e,tabIndex:0,onKeyDown:We,className:ue("".concat(r,"-jump-prev"),ee({},"".concat(r,"-jump-prev-custom-icon"),!!Z))},Qt):null,St=vn?ve.createElement("li",{title:M?rn:null,key:"next",onClick:Me,tabIndex:0,onKeyDown:tt,className:ue("".concat(r,"-jump-next"),ee({},"".concat(r,"-jump-next-custom-icon"),!!Q))},vn):null);var qt=Math.max(1,ce-lt),un=Math.min(ce+lt,yt);ce-1<=lt&&(un=1+lt*2),yt-ce<=lt&&(qt=yt-lt*2);for(var st=qt;st<=un;st+=1)Je.push(ve.createElement(ad,ye({},Ve,{key:st,page:st,active:ce===st})));if(ce-1>=lt*2&&ce!==3&&(Je[0]=ve.cloneElement(Je[0],{className:ue("".concat(r,"-item-after-jump-prev"),Je[0].props.className)}),Je.unshift(Pt)),yt-ce>=lt*2&&ce!==yt-2){var Ct=Je[Je.length-1];Je[Je.length-1]=ve.cloneElement(Ct,{className:ue("".concat(r,"-item-before-jump-next"),Ct.props.className)}),Je.push(St)}qt!==1&&Je.unshift(ve.createElement(ad,ye({},Ve,{key:1,page:1}))),un!==yt&&Je.push(ve.createElement(ad,ye({},Ve,{key:yt,page:yt})))}var ht=dt(Ue);if(ht){var Xe=!_e||!yt;ht=ve.createElement("li",{title:M?L.prev_page:null,onClick:Pe,tabIndex:Xe?null:0,onKeyDown:et,className:ue("".concat(r,"-prev"),ee({},"".concat(r,"-disabled"),Xe)),"aria-disabled":Xe},ht)}var Qe=at(mt);if(Qe){var ut,zt;_?(ut=!Re,zt=_e?0:null):(ut=!Re||!yt,zt=ut?null:0),Qe=ve.createElement("li",{title:M?L.next_page:null,onClick:be,tabIndex:zt,onKeyDown:bt,className:ue("".concat(r,"-next"),ee({},"".concat(r,"-disabled"),ut)),"aria-disabled":ut},Qe)}var Kt=ue(r,c,ee(ee(ee(ee(ee({},"".concat(r,"-start"),w==="start"),"".concat(r,"-center"),w==="center"),"".concat(r,"-end"),w==="end"),"".concat(r,"-simple"),_),"".concat(r,"-disabled"),z));return ve.createElement("ul",ye({className:Kt,style:k,ref:ae},Et),ct,ht,_?ft:Je,Qe,ve.createElement(RQ,{locale:L,rootPrefixCls:r,disabled:z,selectPrefixCls:l,changeSize:Te,pageSize:Y,pageSizeOptions:G,quickGo:Ye?Ee:null,goButton:Vt,showSizeChanger:q,sizeChangerRender:V}))};const NQ=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}}}}},MQ=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:oe(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:oe(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:oe(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"}}},[`
|
|
387
|
+
&${t}-mini ${t}-prev ${t}-item-link,
|
|
388
|
+
&${t}-mini ${t}-next ${t}-item-link
|
|
389
|
+
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:oe(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:oe(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:oe(e.itemSizeSM),input:Object.assign(Object.assign({},lC(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},TQ=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:oe(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:oe(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 ${oe(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${oe(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:`${oe(e.inputOutlineOffset)} 0 ${oe(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:oe(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:oe(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},PQ=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}}},[`
|
|
390
|
+
${t}-prev,
|
|
391
|
+
${t}-jump-prev,
|
|
392
|
+
${t}-jump-next
|
|
393
|
+
`]:{marginInlineEnd:e.marginXS},[`
|
|
394
|
+
${t}-prev,
|
|
395
|
+
${t}-next,
|
|
396
|
+
${t}-jump-prev,
|
|
397
|
+
${t}-jump-next
|
|
398
|
+
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:oe(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:`${oe(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:oe(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},mf(e)),tC(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},kg(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},zQ=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:oe(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${oe(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${oe(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.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},DQ=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dn(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:oe(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),zQ(e)),PQ(e)),TQ(e)),MQ(e)),NQ(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"}}},_Q=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},qa(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},jo(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:jo(e)}}}},_N=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Os(e)),AN=e=>tn(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"},Es(e)),AQ=sn("Pagination",e=>{const t=AN(e);return[DQ(t),_Q(t)]},_N),BQ=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:`${oe(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}}}}},kQ=Uc(["Pagination","bordered"],e=>{const t=AN(e);return BQ(t)},_N);function WO(e){return i.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var LQ=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 BN=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:l,style:c,size:u,locale:d,responsive:f,showSizeChanger:v,selectComponentClass:g,pageSizeOptions:p}=e,b=LQ(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:C}=Og(f),[,S]=ia(),{getPrefixCls:h,direction:x,showSizeChanger:w,className:E,style:j}=fr("pagination"),R=h("pagination",n),[I,O,M]=AQ(R),N=Nr(u),P=N==="small"||!!(C&&!N&&f),[B]=Pa("Pagination",V3),L=Object.assign(Object.assign({},B),d),[k,D]=WO(v),[H,z]=WO(w),_=k??H,F=D??z,W=g||ir,q=i.useMemo(()=>p?p.map(Q=>Number(Q)):void 0,[p]),V=Q=>{var te;const{disabled:X,size:ae,onSizeChange:re,"aria-label":ne,className:Y,options:ie}=Q,{className:le,onChange:de}=F||{},ce=(te=ie.find(ge=>String(ge.value)===String(ae)))===null||te===void 0?void 0:te.value;return i.createElement(W,Object.assign({disabled:X,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ge=>ge.parentNode,"aria-label":ne,options:ie},F,{value:ce,onChange:(ge,he)=>{re==null||re(ge),de==null||de(ge,he)},size:P?"small":"middle",className:ue(Y,le)}))},G=i.useMemo(()=>{const Q=i.createElement("span",{className:`${R}-item-ellipsis`},"•••"),te=i.createElement("button",{className:`${R}-item-link`,type:"button",tabIndex:-1},x==="rtl"?i.createElement(dl,null):i.createElement(Ac,null)),X=i.createElement("button",{className:`${R}-item-link`,type:"button",tabIndex:-1},x==="rtl"?i.createElement(Ac,null):i.createElement(dl,null)),ae=i.createElement("a",{className:`${R}-item-link`},i.createElement("div",{className:`${R}-item-container`},x==="rtl"?i.createElement(HO,{className:`${R}-item-link-icon`}):i.createElement(LO,{className:`${R}-item-link-icon`}),Q)),re=i.createElement("a",{className:`${R}-item-link`},i.createElement("div",{className:`${R}-item-container`},x==="rtl"?i.createElement(LO,{className:`${R}-item-link-icon`}):i.createElement(HO,{className:`${R}-item-link-icon`}),Q));return{prevIcon:te,nextIcon:X,jumpPrevIcon:ae,jumpNextIcon:re}},[x,R]),K=h("select",r),U=ue({[`${R}-${t}`]:!!t,[`${R}-mini`]:P,[`${R}-rtl`]:x==="rtl",[`${R}-bordered`]:S.wireframe},E,a,l,O,M),Z=Object.assign(Object.assign({},j),c);return I(i.createElement(i.Fragment,null,S.wireframe&&i.createElement(kQ,{prefixCls:R}),i.createElement(IQ,Object.assign({},G,b,{style:Z,prefixCls:R,selectPrefixCls:K,className:U,locale:L,pageSizeOptions:q,showSizeChanger:_,sizeChangerRender:V}))))},Wv=100,kN=Wv/5,LN=Wv/2-kN/2,Y0=LN*2*Math.PI,KO=50,UO=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return i.createElement("circle",{className:ue(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:LN,cx:KO,cy:KO,strokeWidth:kN,style:n})},HQ=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,a=`${r}-hidden`,[l,c]=i.useState(!1);nn(()=>{e!==0&&c(!0)},[e!==0]);const u=Math.max(Math.min(e,100),0);if(!l)return null;const d={strokeDashoffset:`${Y0/4}`,strokeDasharray:`${Y0*u/100} ${Y0*(100-u)/100}`};return i.createElement("span",{className:ue(r,`${n}-progress`,u<=0&&a)},i.createElement("svg",{viewBox:`0 0 ${Wv} ${Wv}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u},i.createElement(UO,{dotClassName:n,hasCircleCls:!0}),i.createElement(UO,{dotClassName:n,style:d})))};function FQ(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,l=`${a}-hidden`;return i.createElement(i.Fragment,null,i.createElement("span",{className:ue(a,n>0&&l)},i.createElement("span",{className:ue(r,`${t}-dot-spin`)},[1,2,3,4].map(c=>i.createElement("i",{className:`${t}-dot-item`,key:c})))),i.createElement(HQ,{prefixCls:t,percent:n}))}function VQ(e){var t;const{prefixCls:n,indicator:r,percent:a}=e,l=`${n}-dot`;return r&&i.isValidElement(r)?$r(r,{className:ue((t=r.props)===null||t===void 0?void 0:t.className,l),percent:a}):i.createElement(FQ,{prefixCls:n,percent:a})}const WQ=new Jt("antSpinMove",{to:{opacity:1}}),KQ=new Jt("antRotate",{to:{transform:"rotate(405deg)"}}),UQ=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},dn(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:WQ,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:KQ,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"}})}},qQ=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},GQ=sn("Spin",e=>{const t=tn(e,{spinDotDefault:e.colorTextDescription});return UQ(t)},qQ),XQ=200,qO=[[30,.05],[70,.03],[96,.01]];function YQ(e,t){const[n,r]=i.useState(0),a=i.useRef(null),l=t==="auto";return i.useEffect(()=>(l&&e&&(r(0),a.current=setInterval(()=>{r(c=>{const u=100-c;for(let d=0;d<qO.length;d+=1){const[f,v]=qO[d];if(c<=f)return c+u*v}return c})},XQ)),()=>{a.current&&(clearInterval(a.current),a.current=null)}),[l,e]),l?n:t}var QQ=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 HN;function ZQ(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Ga=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:a=0,className:l,rootClassName:c,size:u="default",tip:d,wrapperClassName:f,style:v,children:g,fullscreen:p=!1,indicator:b,percent:C}=e,S=QQ(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:h,direction:x,className:w,style:E,indicator:j}=fr("spin"),R=h("spin",n),[I,O,M]=GQ(R),[N,P]=i.useState(()=>r&&!ZQ(r,a)),B=YQ(N,C);i.useEffect(()=>{if(r){const F=GU(a,()=>{P(!0)});return F(),()=>{var W;(W=F==null?void 0:F.cancel)===null||W===void 0||W.call(F)}}P(!1)},[a,r]);const L=i.useMemo(()=>typeof g<"u"&&!p,[g,p]),k=ue(R,w,{[`${R}-sm`]:u==="small",[`${R}-lg`]:u==="large",[`${R}-spinning`]:N,[`${R}-show-text`]:!!d,[`${R}-rtl`]:x==="rtl"},l,!p&&c,O,M),D=ue(`${R}-container`,{[`${R}-blur`]:N}),H=(t=b??j)!==null&&t!==void 0?t:HN,z=Object.assign(Object.assign({},E),v),_=i.createElement("div",Object.assign({},S,{style:z,className:k,"aria-live":"polite","aria-busy":N}),i.createElement(VQ,{prefixCls:R,indicator:H,percent:B}),d&&(L||p)?i.createElement("div",{className:`${R}-text`},d):null);return I(L?i.createElement("div",Object.assign({},S,{className:ue(`${R}-nested-loading`,f,O,M)}),N&&i.createElement("div",{key:"loading"},_),i.createElement("div",{className:D,key:"container"},g)):p?i.createElement("div",{className:ue(`${R}-fullscreen`,{[`${R}-fullscreen-show`]:N},c,O,M)},_):_)};Ga.setDefaultIndicator=e=>{HN=e};const SC=ve.createContext({});SC.Consumer;var FN=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 JQ=e=>{var{prefixCls:t,className:n,avatar:r,title:a,description:l}=e,c=FN(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:u}=i.useContext(Rt),d=u("list",t),f=ue(`${d}-item-meta`,n),v=ve.createElement("div",{className:`${d}-item-meta-content`},a&&ve.createElement("h4",{className:`${d}-item-meta-title`},a),l&&ve.createElement("div",{className:`${d}-item-meta-description`},l));return ve.createElement("div",Object.assign({},c,{className:f}),r&&ve.createElement("div",{className:`${d}-item-meta-avatar`},r),(a||l)&&v)},eZ=ve.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:a,extra:l,styles:c,className:u,classNames:d,colStyle:f}=e,v=FN(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:g,itemLayout:p}=i.useContext(SC),{getPrefixCls:b,list:C}=i.useContext(Rt),S=O=>{var M,N;return ue((N=(M=C==null?void 0:C.item)===null||M===void 0?void 0:M.classNames)===null||N===void 0?void 0:N[O],d==null?void 0:d[O])},h=O=>{var M,N;return Object.assign(Object.assign({},(N=(M=C==null?void 0:C.item)===null||M===void 0?void 0:M.styles)===null||N===void 0?void 0:N[O]),c==null?void 0:c[O])},x=()=>{let O=!1;return i.Children.forEach(r,M=>{typeof M=="string"&&(O=!0)}),O&&i.Children.count(r)>1},w=()=>p==="vertical"?!!l:!x(),E=b("list",n),j=a&&a.length>0&&ve.createElement("ul",{className:ue(`${E}-item-action`,S("actions")),key:"actions",style:h("actions")},a.map((O,M)=>ve.createElement("li",{key:`${E}-item-action-${M}`},O,M!==a.length-1&&ve.createElement("em",{className:`${E}-item-action-split`})))),R=g?"div":"li",I=ve.createElement(R,Object.assign({},v,g?{}:{ref:t},{className:ue(`${E}-item`,{[`${E}-item-no-flex`]:!w()},u)}),p==="vertical"&&l?[ve.createElement("div",{className:`${E}-item-main`,key:"content"},r,j),ve.createElement("div",{className:ue(`${E}-item-extra`,S("extra")),key:"extra",style:h("extra")},l)]:[r,j,$r(l,{key:"extra"})]);return g?ve.createElement(na,{ref:t,flex:1,style:f},I):I}),VN=eZ;VN.Meta=JQ;const tZ=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:a,itemPaddingSM:l,itemPaddingLG:c,marginLG:u,borderRadiusLG:d}=e,f=oe(e.calc(d).sub(e.lineWidth).equal());return{[t]:{border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:d,[`${n}-header`]:{borderRadius:`${f} ${f} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${f} ${f}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${oe(a)} ${oe(u)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:l}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:c}}}},nZ=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:a,marginSM:l,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:l}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${oe(c)}`}}}}}},rZ=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:a,paddingSM:l,marginLG:c,padding:u,itemPadding:d,colorPrimary:f,itemPaddingSM:v,itemPaddingLG:g,paddingXS:p,margin:b,colorText:C,colorTextDescription:S,motionDurationSlow:h,lineWidth:x,headerBg:w,footerBg:E,emptyTextPadding:j,metaMarginBottom:R,avatarMarginRight:I,titleMarginBottom:O,descriptionFontSize:M}=e;return{[t]:Object.assign(Object.assign({},dn(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:w},[`${t}-footer`]:{background:E},[`${t}-header, ${t}-footer`]:{paddingBlock:l},[`${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:d,color:C,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:I},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:C},[`${t}-item-meta-title`]:{margin:`0 0 ${oe(e.marginXXS)} 0`,color:C,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:C,transition:`all ${h}`,"&:hover":{color:f}}},[`${t}-item-meta-description`]:{color:S,fontSize:M,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 ${oe(p)}`,color:S,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:x,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${oe(u)} 0`,color:S,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:j,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:R,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:O,color:C,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:u,marginInlineStart:"auto","> li":{padding:`0 ${oe(u)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${oe(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:`${oe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:g},[`${t}-sm ${t}-item`]:{padding:v},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},aZ=e=>({contentWidth:220,itemPadding:`${oe(e.paddingContentVertical)} 0`,itemPaddingSM:`${oe(e.paddingContentVerticalSM)} ${oe(e.paddingContentHorizontal)}`,itemPaddingLG:`${oe(e.paddingContentVerticalLG)} ${oe(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),oZ=sn("List",e=>{const t=tn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[rZ(t),tZ(t),nZ(t)]},aZ);var iZ=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 lZ(e,t){const{pagination:n=!1,prefixCls:r,bordered:a=!1,split:l=!0,className:c,rootClassName:u,style:d,children:f,itemLayout:v,loadMore:g,grid:p,dataSource:b=[],size:C,header:S,footer:h,loading:x=!1,rowKey:w,renderItem:E,locale:j}=e,R=iZ(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),I=n&&typeof n=="object"?n:{},[O,M]=i.useState(I.defaultCurrent||1),[N,P]=i.useState(I.defaultPageSize||10),{getPrefixCls:B,direction:L,className:k,style:D}=fr("list"),{renderEmpty:H}=i.useContext(Rt),z={current:1,total:0,position:"bottom"},_=we=>(Se,Ce)=>{var De;M(Se),P(Ce),n&&((De=n==null?void 0:n[we])===null||De===void 0||De.call(n,Se,Ce))},F=_("onChange"),W=_("onShowSizeChange"),q=(we,Se)=>{if(!E)return null;let Ce;return typeof w=="function"?Ce=w(we):w?Ce=we[w]:Ce=we.key,Ce||(Ce=`list-item-${Se}`),i.createElement(i.Fragment,{key:Ce},E(we,Se))},V=!!(g||n||h),G=B("list",r),[K,U,Z]=oZ(G);let Q=x;typeof Q=="boolean"&&(Q={spinning:Q});const te=!!(Q!=null&&Q.spinning),X=Nr(C);let ae="";switch(X){case"large":ae="lg";break;case"small":ae="sm";break}const re=ue(G,{[`${G}-vertical`]:v==="vertical",[`${G}-${ae}`]:ae,[`${G}-split`]:l,[`${G}-bordered`]:a,[`${G}-loading`]:te,[`${G}-grid`]:!!p,[`${G}-something-after-last-item`]:V,[`${G}-rtl`]:L==="rtl"},k,c,u,U,Z),ne=Ad(z,{total:b.length,current:O,pageSize:N},n||{}),Y=Math.ceil(ne.total/ne.pageSize);ne.current=Math.min(ne.current,Y);const ie=n&&i.createElement("div",{className:ue(`${G}-pagination`)},i.createElement(BN,Object.assign({align:"end"},ne,{onChange:F,onShowSizeChange:W})));let le=Ne(b);n&&b.length>(ne.current-1)*ne.pageSize&&(le=Ne(b).splice((ne.current-1)*ne.pageSize,ne.pageSize));const de=Object.keys(p||{}).some(we=>["xs","sm","md","lg","xl","xxl"].includes(we)),ce=Og(de),ge=i.useMemo(()=>{for(let we=0;we<us.length;we+=1){const Se=us[we];if(ce[Se])return Se}},[ce]),he=i.useMemo(()=>{if(!p)return;const we=ge&&p[ge]?p[ge]:p.column;if(we)return{width:`${100/we}%`,maxWidth:`${100/we}%`}},[JSON.stringify(p),ge]);let Oe=te&&i.createElement("div",{style:{minHeight:53}});if(le.length>0){const we=le.map(q);Oe=p?i.createElement(Hc,{gutter:p.gutter},i.Children.map(we,Se=>i.createElement("div",{key:Se==null?void 0:Se.key,style:he},Se))):i.createElement("ul",{className:`${G}-items`},we)}else!f&&!te&&(Oe=i.createElement("div",{className:`${G}-empty-text`},(j==null?void 0:j.emptyText)||(H==null?void 0:H("List"))||i.createElement(uf,{componentName:"List"})));const je=ne.position,pe=i.useMemo(()=>({grid:p,itemLayout:v}),[JSON.stringify(p),v]);return K(i.createElement(SC.Provider,{value:pe},i.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},D),d),className:re},R),(je==="top"||je==="both")&&ie,S&&i.createElement("div",{className:`${G}-header`},S),i.createElement(Ga,Object.assign({},Q),Oe,f),h&&i.createElement("div",{className:`${G}-footer`},h),g||(je==="bottom"||je==="both")&&ie)))}const sZ=i.forwardRef(lZ),By=sZ;By.Item=VN;const cZ=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let so=null,Jl=e=>e(),Fd=[],Vd={};function GO(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=Vd,l=(e==null?void 0:e())||document.body;return{getContainer:()=>l,duration:t,rtl:n,maxCount:r,top:a}}const uZ=ve.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=i.useContext(Rt),l=Vd.prefixCls||a("message"),c=i.useContext(Cy),[u,d]=_R(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),c.message));return ve.useImperativeHandle(t,()=>{const f=Object.assign({},u);return Object.keys(f).forEach(v=>{f[v]=(...g)=>(r(),u[v].apply(u,g))}),{instance:f,sync:r}}),d}),dZ=ve.forwardRef((e,t)=>{const[n,r]=ve.useState(GO),a=()=>{r(GO)};ve.useEffect(a,[]);const l=bR(),c=l.getRootPrefixCls(),u=l.getIconPrefixCls(),d=l.getTheme(),f=ve.createElement(uZ,{ref:t,sync:a,messageConfig:n});return ve.createElement(To,{prefixCls:c,iconPrefixCls:u,theme:d},l.holderRender?l.holderRender(f):f)}),qg=()=>{if(!so){const e=document.createDocumentFragment(),t={fragment:e};so=t,Jl(()=>{S1()(ve.createElement(dZ,{ref:r=>{const{instance:a,sync:l}=r||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=l,qg())})}}),e)});return}so.instance&&(Fd.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Jl(()=>{const r=so.instance.open(Object.assign(Object.assign({},Vd),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Jl(()=>{so==null||so.instance.destroy(e.key)});break;default:Jl(()=>{var r;const a=(r=so.instance)[t].apply(r,Ne(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),Fd=[])};function fZ(e){Vd=Object.assign(Object.assign({},Vd),e),Jl(()=>{var t;(t=so==null?void 0:so.sync)===null||t===void 0||t.call(so)})}function mZ(e){const t=y1(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:l=>{r=l}};return Fd.push(a),()=>{r?Jl(()=>{r()}):a.skipped=!0}});return qg(),t}function vZ(e,t){const n=y1(r=>{let a;const l={type:e,args:t,resolve:r,setCloseFn:c=>{a=c}};return Fd.push(l),()=>{a?Jl(()=>{a()}):l.skipped=!0}});return qg(),n}const gZ=e=>{Fd.push({type:"destroy",key:e}),qg()},pZ=["success","info","warning","error","loading"],hZ={open:mZ,destroy:gZ,config:fZ,useMessage:AR,_InternalPanelDoNotUseOrYouWillBeFired:D_},kn=hZ;pZ.forEach(e=>{kn[e]=(...t)=>vZ(e,t)});var bZ=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 yZ=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:l,title:c,children:u,footer:d}=e,f=bZ(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:v}=i.useContext(Rt),g=v(),p=t||v("modal"),b=cr(g),[C,S,h]=b6(p,b),x=`${p}-confirm`;let w={};return l?w={closable:a??!1,title:"",footer:"",children:i.createElement(C6,Object.assign({},e,{prefixCls:p,confirmPrefixCls:x,rootPrefixCls:g,content:u}))}:w={closable:a??!0,title:c,footer:d!==null&&i.createElement(v6,Object.assign({},e)),children:u},C(i.createElement(ZR,Object.assign({prefixCls:p,className:ue(S,`${p}-pure-panel`,l&&x,l&&`${x}-${l}`,n,h,b)},f,{closeIcon:m6(p,r),closable:a},w)))},CZ=T6(yZ);function WN(e){return lf(w6(e))}const yr=y6;yr.useModal=I6;yr.info=function(t){return lf(E6(t))};yr.success=function(t){return lf(O6(t))};yr.error=function(t){return lf(R6(t))};yr.warning=WN;yr.warn=WN;yr.confirm=function(t){return lf(j6(t))};yr.destroyAll=function(){for(;Zl.length;){const t=Zl.pop();t&&t()}};yr.config=HB;yr._InternalPanelDoNotUseOrYouWillBeFired=CZ;const SZ=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:a,colorText:l,colorWarning:c,marginXXS:u,marginXS:d,fontSize:f,fontWeightStrong:v,colorTextHeading:g}=e;return{[t]:{zIndex:a,[`&${r}-popover`]:{fontSize:f},[`${t}-message`]:{marginBottom:d,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:c,fontSize:f,lineHeight:1,marginInlineEnd:d},[`${t}-title`]:{fontWeight:v,color:g,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:u,color:l}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:d}}}}},xZ=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},KN=sn("Popconfirm",e=>SZ(e),xZ,{resetStyle:!1});var $Z=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 UN=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:a,description:l,cancelText:c,okText:u,okType:d="primary",icon:f=i.createElement(ys,null),showCancel:v=!0,close:g,onConfirm:p,onCancel:b,onPopupClick:C}=e,{getPrefixCls:S}=i.useContext(Rt),[h]=Pa("Popconfirm",vo.Popconfirm),x=_c(a),w=_c(l);return i.createElement("div",{className:`${t}-inner-content`,onClick:C},i.createElement("div",{className:`${t}-message`},f&&i.createElement("span",{className:`${t}-message-icon`},f),i.createElement("div",{className:`${t}-message-text`},x&&i.createElement("div",{className:`${t}-title`},x),w&&i.createElement("div",{className:`${t}-description`},w))),i.createElement("div",{className:`${t}-buttons`},v&&i.createElement(nt,Object.assign({onClick:b,size:"small"},r),c||(h==null?void 0:h.cancelText)),i.createElement(R1,{buttonProps:Object.assign(Object.assign({size:"small"},x1(d)),n),actionFn:p,close:g,prefixCls:S("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},u||(h==null?void 0:h.okText))))},wZ=e=>{const{prefixCls:t,placement:n,className:r,style:a}=e,l=$Z(e,["prefixCls","placement","className","style"]),{getPrefixCls:c}=i.useContext(Rt),u=c("popconfirm",t),[d]=KN(u);return d(i.createElement(pj,{placement:n,className:ue(u,r),style:a,content:i.createElement(UN,Object.assign({prefixCls:u},l))}))};var EZ=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 OZ=i.forwardRef((e,t)=>{var n,r;const{prefixCls:a,placement:l="top",trigger:c="click",okType:u="primary",icon:d=i.createElement(ys,null),children:f,overlayClassName:v,onOpenChange:g,onVisibleChange:p,overlayStyle:b,styles:C,classNames:S}=e,h=EZ(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:x,className:w,style:E,classNames:j,styles:R}=fr("popconfirm"),[I,O]=bn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),M=(_,F)=>{O(_,!0),p==null||p(_),g==null||g(_,F)},N=_=>{M(!1,_)},P=_=>{var F;return(F=e.onConfirm)===null||F===void 0?void 0:F.call(void 0,_)},B=_=>{var F;M(!1,_),(F=e.onCancel)===null||F===void 0||F.call(void 0,_)},L=(_,F)=>{const{disabled:W=!1}=e;W||M(_,F)},k=x("popconfirm",a),D=ue(k,w,v,j.root,S==null?void 0:S.root),H=ue(j.body,S==null?void 0:S.body),[z]=KN(k);return z(i.createElement(L1,Object.assign({},wn(h,["title"]),{trigger:c,placement:l,onOpenChange:L,open:I,ref:t,classNames:{root:D,body:H},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},R.root),E),b),C==null?void 0:C.root),body:Object.assign(Object.assign({},R.body),C==null?void 0:C.body)},content:i.createElement(UN,Object.assign({okType:u,icon:d},e,{prefixCls:k,close:N,onConfirm:P,onCancel:B})),"data-popover-inject":!0}),f))}),uo=OZ;uo._InternalPanelDoNotUseOrYouWillBeFired=wZ;var RZ={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},jZ=function(){var t=i.useRef([]),n=i.useRef(null);return i.useEffect(function(){var r=Date.now(),a=!1;t.current.forEach(function(l){if(l){a=!0;var c=l.style;c.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(c.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},XO=0,IZ=aa();function NZ(){var e;return IZ?(e=XO,XO+=1):e="TEST_OR_SSR",e}const MZ=(function(e){var t=i.useState(),n=fe(t,2),r=n[0],a=n[1];return i.useEffect(function(){a("rc_progress_".concat(NZ()))},[]),e||r});var YO=function(t){var n=t.bg,r=t.children;return i.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function QO(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 TZ=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,l=e.radius,c=e.style,u=e.ptg,d=e.strokeLinecap,f=e.strokeWidth,v=e.size,g=e.gapDegree,p=r&&$t(r)==="object",b=p?"#FFF":void 0,C=v/2,S=i.createElement("circle",{className:"".concat(n,"-circle-path"),r:l,cx:C,cy:C,stroke:b,strokeLinecap:d,strokeWidth:f,opacity:u===0?0:1,style:c,ref:t});if(!p)return S;var h="".concat(a,"-conic"),x=g?"".concat(180+g/2,"deg"):"0deg",w=QO(r,(360-g)/360),E=QO(r,1),j="conic-gradient(from ".concat(x,", ").concat(w.join(", "),")"),R="linear-gradient(to ".concat(g?"bottom":"top",", ").concat(E.join(", "),")");return i.createElement(i.Fragment,null,i.createElement("mask",{id:h},S),i.createElement("foreignObject",{x:0,y:0,width:v,height:v,mask:"url(#".concat(h,")")},i.createElement(YO,{bg:R},i.createElement(YO,{bg:j}))))}),gd=100,Q0=function(t,n,r,a,l,c,u,d,f,v){var g=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-c)/360),b=c===0?0:{bottom:0,top:180,left:90,right:-90}[u],C=(100-a)/100*n;f==="round"&&a!==100&&(C+=v/2,C>=n&&(C=n-.01));var S=gd/2;return{stroke:typeof d=="string"?d:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:C+g,transform:"rotate(".concat(l+p+b,"deg)"),transformOrigin:"".concat(S,"px ").concat(S,"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}},PZ=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ZO(e){var t=e??[];return Array.isArray(t)?t:[t]}var zZ=function(t){var n=se(se({},RZ),t),r=n.id,a=n.prefixCls,l=n.steps,c=n.strokeWidth,u=n.trailWidth,d=n.gapDegree,f=d===void 0?0:d,v=n.gapPosition,g=n.trailColor,p=n.strokeLinecap,b=n.style,C=n.className,S=n.strokeColor,h=n.percent,x=Lt(n,PZ),w=gd/2,E=MZ(r),j="".concat(E,"-gradient"),R=w-c/2,I=Math.PI*2*R,O=f>0?90+f/2:-90,M=I*((360-f)/360),N=$t(l)==="object"?l:{count:l,gap:2},P=N.count,B=N.gap,L=ZO(h),k=ZO(S),D=k.find(function(V){return V&&$t(V)==="object"}),H=D&&$t(D)==="object",z=H?"butt":p,_=Q0(I,M,0,100,O,f,v,g,z,c),F=jZ(),W=function(){var G=0;return L.map(function(K,U){var Z=k[U]||k[k.length-1],Q=Q0(I,M,G,K,O,f,v,Z,z,c);return G+=K,i.createElement(TZ,{key:U,color:Z,ptg:K,radius:R,prefixCls:a,gradientId:j,style:Q,strokeLinecap:z,strokeWidth:c,gapDegree:f,ref:function(X){F[U]=X},size:gd})}).reverse()},q=function(){var G=Math.round(P*(L[0]/100)),K=100/P,U=0;return new Array(P).fill(null).map(function(Z,Q){var te=Q<=G-1?k[0]:g,X=te&&$t(te)==="object"?"url(#".concat(j,")"):void 0,ae=Q0(I,M,U,K,O,f,v,te,"butt",c,B);return U+=(M-ae.strokeDashoffset+B)*100/M,i.createElement("circle",{key:Q,className:"".concat(a,"-circle-path"),r:R,cx:w,cy:w,stroke:X,strokeWidth:c,opacity:1,style:ae,ref:function(ne){F[Q]=ne}})})};return i.createElement("svg",ye({className:ue("".concat(a,"-circle"),C),viewBox:"0 0 ".concat(gd," ").concat(gd),style:b,id:r,role:"presentation"},x),!P&&i.createElement("circle",{className:"".concat(a,"-circle-trail"),r:R,cx:w,cy:w,stroke:g,strokeLinecap:z,strokeWidth:u||c,style:_}),P?q():W())};function cl(e){return!e||e<0?0:e>100?100:e}function Kv({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const DZ=({percent:e,success:t,successPercent:n})=>{const r=cl(Kv({success:t,successPercent:n}));return[r,cl(cl(e)-r)]},_Z=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||wc.green,t||null]},Gg=(e,t,n)=>{var r,a,l,c;let u=-1,d=-1;if(t==="step"){const f=n.steps,v=n.strokeWidth;typeof e=="string"||typeof e>"u"?(u=e==="small"?2:14,d=v??8):typeof e=="number"?[u,d]=[e,e]:[u=14,d=8]=Array.isArray(e)?e:[e.width,e.height],u*=f}else if(t==="line"){const f=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?d=f||(e==="small"?6:8):typeof e=="number"?[u,d]=[e,e]:[u=-1,d=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[u,d]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[u,d]=[e,e]:Array.isArray(e)&&(u=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,d=(c=(l=e[0])!==null&&l!==void 0?l:e[1])!==null&&c!==void 0?c:120));return[u,d]},AZ=3,BZ=e=>AZ/e*100,kZ=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:l,width:c=120,type:u,children:d,success:f,size:v=c,steps:g}=e,[p,b]=Gg(v,"circle");let{strokeWidth:C}=e;C===void 0&&(C=Math.max(BZ(p),6));const S={width:p,height:b,fontSize:p*.15+6},h=i.useMemo(()=>{if(l||l===0)return l;if(u==="dashboard")return 75},[l,u]),x=DZ(e),w=a||u==="dashboard"&&"bottom"||void 0,E=Object.prototype.toString.call(e.strokeColor)==="[object Object]",j=_Z({success:f,strokeColor:e.strokeColor}),R=ue(`${t}-inner`,{[`${t}-circle-gradient`]:E}),I=i.createElement(zZ,{steps:g,percent:g?x[1]:x,strokeWidth:C,trailWidth:C,strokeColor:g?j[1]:j,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:h,gapPosition:w}),O=p<=20,M=i.createElement("div",{className:R,style:S},I,!O&&d);return O?i.createElement(Vn,{title:d},M):M},Uv="--progress-line-stroke-color",qN="--progress-percent",JO=e=>{const t=e?"100%":"-100%";return new Jt(`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}})},LZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},dn(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(${Uv})`]},height:"100%",width:`calc(1 / var(${qN}) * 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 ${oe(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:JO(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:JO(!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}}})}},HZ=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"}}}},FZ=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}}}}}},VZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},WZ=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),KZ=sn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=tn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[LZ(n),HZ(n),FZ(n),VZ(n)]},WZ);var UZ=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 qZ=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(", ")},GZ=(e,t)=>{const{from:n=wc.blue,to:r=wc.blue,direction:a=t==="rtl"?"to left":"to right"}=e,l=UZ(e,["from","to","direction"]);if(Object.keys(l).length!==0){const u=qZ(l),d=`linear-gradient(${a}, ${u})`;return{background:d,[Uv]:d}}const c=`linear-gradient(${a}, ${n}, ${r})`;return{background:c,[Uv]:c}},XZ=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:l,strokeColor:c,strokeLinecap:u="round",children:d,trailColor:f=null,percentPosition:v,success:g}=e,{align:p,type:b}=v,C=c&&typeof c!="string"?GZ(c,n):{[Uv]:c,background:c},S=u==="square"||u==="butt"?0:void 0,h=a??[-1,l||(a==="small"?6:8)],[x,w]=Gg(h,"line",{strokeWidth:l}),E={backgroundColor:f||void 0,borderRadius:S},j=Object.assign(Object.assign({width:`${cl(r)}%`,height:w,borderRadius:S},C),{[qN]:cl(r)/100}),R=Kv(e),I={width:`${cl(R)}%`,height:w,borderRadius:S,backgroundColor:g==null?void 0:g.strokeColor},O={width:x<0?"100%":x},M=i.createElement("div",{className:`${t}-inner`,style:E},i.createElement("div",{className:ue(`${t}-bg`,`${t}-bg-${b}`),style:j},b==="inner"&&d),R!==void 0&&i.createElement("div",{className:`${t}-success-bg`,style:I})),N=b==="outer"&&p==="start",P=b==="outer"&&p==="end";return b==="outer"&&p==="center"?i.createElement("div",{className:`${t}-layout-bottom`},M,d):i.createElement("div",{className:`${t}-outer`,style:O},N&&d,M,P&&d)},YZ=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:a=0,strokeWidth:l=8,strokeColor:c,trailColor:u=null,prefixCls:d,children:f}=e,v=r(n*(a/100)),p=t??[t==="small"?2:14,l],[b,C]=Gg(p,"step",{steps:n,strokeWidth:l}),S=b/n,h=Array.from({length:n});for(let x=0;x<n;x++){const w=Array.isArray(c)?c[x]:c;h[x]=i.createElement("div",{key:x,className:ue(`${d}-steps-item`,{[`${d}-steps-item-active`]:x<=v-1}),style:{backgroundColor:x<=v-1?w:u,width:S,height:C}})}return i.createElement("div",{className:`${d}-steps-outer`},h,f)};var QZ=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 ZZ=["normal","exception","active","success"],GN=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,steps:l,strokeColor:c,percent:u=0,size:d="default",showInfo:f=!0,type:v="line",status:g,format:p,style:b,percentPosition:C={}}=e,S=QZ(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:h="end",type:x="outer"}=C,w=Array.isArray(c)?c[0]:c,E=typeof c=="string"||Array.isArray(c)?c:void 0,j=i.useMemo(()=>{if(w){const W=typeof w=="string"?w:Object.values(w)[0];return new pn(W).isLight()}return!1},[c]),R=i.useMemo(()=>{var W,q;const V=Kv(e);return Number.parseInt(V!==void 0?(W=V??0)===null||W===void 0?void 0:W.toString():(q=u??0)===null||q===void 0?void 0:q.toString(),10)},[u,e.success,e.successPercent]),I=i.useMemo(()=>!ZZ.includes(g)&&R>=100?"success":g||"normal",[g,R]),{getPrefixCls:O,direction:M,progress:N}=i.useContext(Rt),P=O("progress",n),[B,L,k]=KZ(P),D=v==="line",H=D&&!l,z=i.useMemo(()=>{if(!f)return null;const W=Kv(e);let q;const V=p||(K=>`${K}%`),G=D&&j&&x==="inner";return x==="inner"||p||I!=="exception"&&I!=="success"?q=V(cl(u),cl(W)):I==="exception"?q=D?i.createElement(hl,null):i.createElement(Po,null):I==="success"&&(q=D?i.createElement(bs,null):i.createElement(Ss,null)),i.createElement("span",{className:ue(`${P}-text`,{[`${P}-text-bright`]:G,[`${P}-text-${h}`]:H,[`${P}-text-${x}`]:H}),title:typeof q=="string"?q:void 0},q)},[f,u,R,I,v,P,p]);let _;v==="line"?_=l?i.createElement(YZ,Object.assign({},e,{strokeColor:E,prefixCls:P,steps:typeof l=="object"?l.count:l}),z):i.createElement(XZ,Object.assign({},e,{strokeColor:w,prefixCls:P,direction:M,percentPosition:{align:h,type:x}}),z):(v==="circle"||v==="dashboard")&&(_=i.createElement(kZ,Object.assign({},e,{strokeColor:w,prefixCls:P,progressStatus:I}),z));const F=ue(P,`${P}-status-${I}`,{[`${P}-${v==="dashboard"&&"circle"||v}`]:v!=="line",[`${P}-inline-circle`]:v==="circle"&&Gg(d,"circle")[0]<=20,[`${P}-line`]:H,[`${P}-line-align-${h}`]:H,[`${P}-line-position-${x}`]:H,[`${P}-steps`]:l,[`${P}-show-info`]:f,[`${P}-${d}`]:typeof d=="string",[`${P}-rtl`]:M==="rtl"},N==null?void 0:N.className,r,a,L,k);return B(i.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},N==null?void 0:N.style),b),className:F,role:"progressbar","aria-valuenow":R,"aria-valuemin":0,"aria-valuemax":100},wn(S,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),_))});var JZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},eJ=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:JZ}))},fs=i.forwardRef(eJ);const tJ=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:a,groupSeparator:l="",prefixCls:c}=e;let u;if(typeof n=="function")u=n(t);else{const d=String(t),f=d.match(/^(-?)(\d*)(\.(\d+))?$/);if(!f||d==="-")u=d;else{const v=f[1];let g=f[2]||"0",p=f[4]||"";g=g.replace(/\B(?=(\d{3})+(?!\d))/g,l),typeof r=="number"&&(p=p.padEnd(r,"0").slice(0,r>0?r:0)),p&&(p=`${a}${p}`),u=[i.createElement("span",{key:"int",className:`${c}-content-value-int`},v,g),p&&i.createElement("span",{key:"decimal",className:`${c}-content-value-decimal`},p)]}}return i.createElement("span",{className:`${c}-content-value`},u)},nJ=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:a,titleFontSize:l,colorTextHeading:c,contentFontSize:u,fontFamily:d}=e;return{[t]:Object.assign(Object.assign({},dn(e)),{[`${t}-title`]:{marginBottom:n,color:a,fontSize:l},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:c,fontSize:u,fontFamily:d,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},rJ=e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}},aJ=sn("Statistic",e=>{const t=tn(e,{});return nJ(t)},rJ);var oJ=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 es=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:l,valueStyle:c,value:u=0,title:d,valueRender:f,prefix:v,suffix:g,loading:p=!1,formatter:b,precision:C,decimalSeparator:S=".",groupSeparator:h=",",onMouseEnter:x,onMouseLeave:w}=e,E=oJ(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:j,direction:R,className:I,style:O}=fr("statistic"),M=j("statistic",n),[N,P,B]=aJ(M),L=i.createElement(tJ,{decimalSeparator:S,groupSeparator:h,prefixCls:M,formatter:b,precision:C,value:u}),k=ue(M,{[`${M}-rtl`]:R==="rtl"},I,r,a,P,B),D=i.useRef(null);i.useImperativeHandle(t,()=>({nativeElement:D.current}));const H=Rr(E,{aria:!0,data:!0});return N(i.createElement("div",Object.assign({},H,{ref:D,className:k,style:Object.assign(Object.assign({},O),l),onMouseEnter:x,onMouseLeave:w}),d&&i.createElement("div",{className:`${M}-title`},d),i.createElement(bl,{paragraph:!1,loading:p,className:`${M}-skeleton`,active:!0},i.createElement("div",{style:c,className:`${M}-content`},v&&i.createElement("span",{className:`${M}-content-prefix`},v),f?f(L):L,g&&i.createElement("span",{className:`${M}-content-suffix`},g)))))}),iJ=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function lJ(e,t){let n=e;const r=/\[[^\]]*]/g,a=(t.match(r)||[]).map(d=>d.slice(1,-1)),l=t.replace(r,"[]"),c=iJ.reduce((d,[f,v])=>{if(d.includes(f)){const g=Math.floor(n/v);return n-=g*v,d.replace(new RegExp(`${f}+`,"g"),p=>{const b=p.length;return g.toString().padStart(b,"0")})}return d},l);let u=0;return c.replace(r,()=>{const d=a[u];return u+=1,d})}function sJ(e,t,n){const{format:r=""}=t,a=new Date(e).getTime(),l=Date.now(),c=Math.max(n?a-l:l-a,0);return lJ(c,r)}var cJ=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 uJ(e){return new Date(e).getTime()}const XN=e=>{const{value:t,format:n="HH:mm:ss",onChange:r,onFinish:a,type:l}=e,c=cJ(e,["value","format","onChange","onFinish","type"]),u=l==="countdown",[d,f]=i.useState(null),v=Xt(()=>{const b=Date.now(),C=uJ(t);f({});const S=u?C-b:b-C;return r==null||r(S),u&&C<b?(a==null||a(),!1):!0});i.useEffect(()=>{let b;const C=()=>Yt.cancel(b),S=()=>{b=Yt(()=>{v()&&S()})};return S(),C},[t,u]),i.useEffect(()=>{f({})},[]);const g=(b,C)=>d?sJ(b,Object.assign(Object.assign({},C),{format:n}),u):"-",p=b=>$r(b,{title:void 0});return i.createElement(es,Object.assign({},c,{value:t,valueRender:p,formatter:g}))},dJ=e=>i.createElement(XN,Object.assign({},e,{type:"countdown"})),fJ=i.memo(dJ);es.Timer=XN;es.Countdown=fJ;var mJ=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],YN=i.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,l=e.className,c=e.checked,u=e.defaultChecked,d=e.disabled,f=e.loadingIcon,v=e.checkedChildren,g=e.unCheckedChildren,p=e.onClick,b=e.onChange,C=e.onKeyDown,S=Lt(e,mJ),h=bn(!1,{value:c,defaultValue:u}),x=fe(h,2),w=x[0],E=x[1];function j(M,N){var P=w;return d||(P=M,E(P),b==null||b(P,N)),P}function R(M){M.which===ot.LEFT?j(!1,M):M.which===ot.RIGHT&&j(!0,M),C==null||C(M)}function I(M){var N=j(!w,M);p==null||p(N,M)}var O=ue(a,l,(n={},ee(n,"".concat(a,"-checked"),w),ee(n,"".concat(a,"-disabled"),d),n));return i.createElement("button",ye({},S,{type:"button",role:"switch","aria-checked":w,disabled:d,className:O,ref:t,onKeyDown:R,onClick:I}),f,i.createElement("span",{className:"".concat(a,"-inner")},i.createElement("span",{className:"".concat(a,"-inner-checked")},v),i.createElement("span",{className:"".concat(a,"-inner-unchecked")},g)))});YN.displayName="Switch";const vJ=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:l,innerMaxMarginSM:c,handleSizeSM:u,calc:d}=e,f=`${t}-inner`,v=oe(d(u).add(d(r).mul(2)).equal()),g=oe(d(c).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:oe(n),[`${t}-inner`]:{paddingInlineStart:c,paddingInlineEnd:l,[`${f}-checked, ${f}-unchecked`]:{minHeight:n},[`${f}-checked`]:{marginInlineStart:`calc(-100% + ${v} - ${g})`,marginInlineEnd:`calc(100% - ${v} + ${g})`},[`${f}-unchecked`]:{marginTop:d(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:u,height:u},[`${t}-loading-icon`]:{top:d(d(u).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:l,paddingInlineEnd:c,[`${f}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${f}-unchecked`]:{marginInlineStart:`calc(100% - ${v} + ${g})`,marginInlineEnd:`calc(-100% + ${v} - ${g})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${oe(d(u).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${f}`]:{[`${f}-unchecked`]:{marginInlineStart:d(e.marginXXS).div(2).equal(),marginInlineEnd:d(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${f}`]:{[`${f}-checked`]:{marginInlineStart:d(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:d(e.marginXXS).div(2).equal()}}}}}}},gJ=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}}}},pJ=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:l,calc:c}=e,u=`${t}-handle`;return{[t]:{[u]:{position:"absolute",top:n,insetInlineStart:n,width:l,height:l,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:c(l).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${u}`]:{insetInlineStart:`calc(100% - ${oe(c(l).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${u}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${u}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},hJ=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:l,handleSize:c,calc:u}=e,d=`${t}-inner`,f=oe(u(c).add(u(r).mul(2)).equal()),v=oe(u(l).mul(2).equal());return{[t]:{[d]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:l,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${d}-checked, ${d}-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},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${f} - ${v})`,marginInlineEnd:`calc(100% - ${f} + ${v})`},[`${d}-unchecked`]:{marginTop:u(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${d}`]:{paddingInlineStart:a,paddingInlineEnd:l,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${f} + ${v})`,marginInlineEnd:`calc(-100% + ${f} - ${v})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:u(r).mul(2).equal(),marginInlineEnd:u(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:u(r).mul(-1).mul(2).equal(),marginInlineEnd:u(r).mul(2).equal()}}}}}},bJ=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},dn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:oe(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}}),qa(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"}})}},yJ=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,l=t*n,c=r/2,u=2,d=l-u*2,f=c-u*2;return{trackHeight:l,trackHeightSM:c,trackMinWidth:d*2+u*4,trackMinWidthSM:f*2+u*2,trackPadding:u,handleBg:a,handleSize:d,handleSizeSM:f,handleShadow:`0 2px 4px 0 ${new pn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:d/2,innerMaxMargin:d+u+u*2,innerMinMarginSM:f/2,innerMaxMarginSM:f+u+u*2}},CJ=sn("Switch",e=>{const t=tn(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[bJ(t),hJ(t),pJ(t),gJ(t),vJ(t)]},yJ);var SJ=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 xJ=i.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:a,loading:l,className:c,rootClassName:u,style:d,checked:f,value:v,defaultChecked:g,defaultValue:p,onChange:b}=e,C=SJ(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[S,h]=bn(!1,{value:f??v,defaultValue:g??p}),{getPrefixCls:x,direction:w,switch:E}=i.useContext(Rt),j=i.useContext(Vr),R=(a??j)||l,I=x("switch",n),O=i.createElement("div",{className:`${I}-handle`},l&&i.createElement(Io,{className:`${I}-loading-icon`})),[M,N,P]=CJ(I),B=Nr(r),L=ue(E==null?void 0:E.className,{[`${I}-small`]:B==="small",[`${I}-loading`]:l,[`${I}-rtl`]:w==="rtl"},c,u,N,P),k=Object.assign(Object.assign({},E==null?void 0:E.style),d),D=(...H)=>{h(H[0]),b==null||b.apply(void 0,H)};return M(i.createElement(ef,{component:"Switch",disabled:R},i.createElement(YN,Object.assign({},C,{checked:S,onChange:D,prefixCls:I,className:L,style:k,disabled:R,ref:t,loadingIcon:O}))))}),Wd=xJ;Wd.__ANT_SWITCH=!0;var rl={},hf="rc-table-internal-hook";function xC(e){var t=i.createContext(void 0),n=function(a){var l=a.value,c=a.children,u=i.useRef(l);u.current=l;var d=i.useState(function(){return{getValue:function(){return u.current},listeners:new Set}}),f=fe(d,1),v=f[0];return nn(function(){fo.unstable_batchedUpdates(function(){v.listeners.forEach(function(g){g(l)})})},[l]),i.createElement(t.Provider,{value:v},c)};return{Context:t,Provider:n,defaultValue:e}}function oa(e,t){var n=Xt(typeof t=="function"?t:function(g){if(t===void 0)return g;if(!Array.isArray(t))return g[t];var p={};return t.forEach(function(b){p[b]=g[b]}),p}),r=i.useContext(e==null?void 0:e.Context),a=r||{},l=a.listeners,c=a.getValue,u=i.useRef();u.current=n(r?c():e==null?void 0:e.defaultValue);var d=i.useState({}),f=fe(d,2),v=f[1];return nn(function(){if(!r)return;function g(p){var b=n(p);Ro(u.current,b,!0)||v({})}return l.add(g),function(){l.delete(g)}},[r]),u.current}function $J(){var e=i.createContext(null);function t(){return i.useContext(e)}function n(a,l){var c=Oo(a),u=function(f,v){var g=c?{ref:v}:{},p=i.useRef(0),b=i.useRef(f),C=t();return C!==null?i.createElement(a,ye({},f,g)):((!l||l(b.current,f))&&(p.current+=1),b.current=f,i.createElement(e.Provider,{value:p.current},i.createElement(a,ye({},f,g))))};return c?i.forwardRef(u):u}function r(a,l){var c=Oo(a),u=function(f,v){var g=c?{ref:v}:{};return t(),i.createElement(a,ye({},f,g))};return c?i.memo(i.forwardRef(u),l):i.memo(u,l)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var $C=$J(),QN=$C.makeImmutable,ou=$C.responseImmutable,wJ=$C.useImmutableMark,Sa=xC(),ZN=i.createContext({renderWithProps:!1}),EJ="RC_TABLE_KEY";function OJ(e){return e==null?[]:Array.isArray(e)?e:[e]}function Xg(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},l=a.key,c=a.dataIndex,u=l||OJ(c).join("-")||EJ;n[u];)u="".concat(u,"_next");n[u]=!0,t.push(u)}),t}function ky(e){return e!=null}function RJ(e){return typeof e=="number"&&!Number.isNaN(e)}function jJ(e){return e&&$t(e)==="object"&&!Array.isArray(e)&&!i.isValidElement(e)}function IJ(e,t,n,r,a,l){var c=i.useContext(ZN),u=wJ(),d=ps(function(){if(ky(r))return[r];var f=t==null||t===""?[]:Array.isArray(t)?t:[t],v=$a(e,f),g=v,p=void 0;if(a){var b=a(v,e,n);jJ(b)?(g=b.children,p=b.props,c.renderWithProps=!0):g=b}return[g,p]},[u,e,r,t,a,n],function(f,v){if(l){var g=fe(f,2),p=g[1],b=fe(v,2),C=b[1];return l(C,p)}return c.renderWithProps?!0:!Ro(f,v,!0)});return d}function NJ(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function MJ(e,t){return oa(Sa,function(n){var r=NJ(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var TJ=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,l,c=n===!0?{showTitle:!0}:n;return c&&(c.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?l=a.toString():i.isValidElement(a)&&typeof a.props.children=="string"&&(l=a.props.children)),l};function PJ(e){var t,n,r,a,l,c,u,d,f=e.component,v=e.children,g=e.ellipsis,p=e.scope,b=e.prefixCls,C=e.className,S=e.align,h=e.record,x=e.render,w=e.dataIndex,E=e.renderIndex,j=e.shouldCellUpdate,R=e.index,I=e.rowType,O=e.colSpan,M=e.rowSpan,N=e.fixLeft,P=e.fixRight,B=e.firstFixLeft,L=e.lastFixLeft,k=e.firstFixRight,D=e.lastFixRight,H=e.appendNode,z=e.additionalProps,_=z===void 0?{}:z,F=e.isSticky,W="".concat(b,"-cell"),q=oa(Sa,["supportSticky","allColumnsFixedLeft","rowHoverable"]),V=q.supportSticky,G=q.allColumnsFixedLeft,K=q.rowHoverable,U=IJ(h,w,E,v,x,j),Z=fe(U,2),Q=Z[0],te=Z[1],X={},ae=typeof N=="number"&&V,re=typeof P=="number"&&V;ae&&(X.position="sticky",X.left=N),re&&(X.position="sticky",X.right=P);var ne=(t=(n=(r=te==null?void 0:te.colSpan)!==null&&r!==void 0?r:_.colSpan)!==null&&n!==void 0?n:O)!==null&&t!==void 0?t:1,Y=(a=(l=(c=te==null?void 0:te.rowSpan)!==null&&c!==void 0?c:_.rowSpan)!==null&&l!==void 0?l:M)!==null&&a!==void 0?a:1,ie=MJ(R,Y),le=fe(ie,2),de=le[0],ce=le[1],ge=Xt(function(Ce){var De;h&&ce(R,R+Y-1),_==null||(De=_.onMouseEnter)===null||De===void 0||De.call(_,Ce)}),he=Xt(function(Ce){var De;h&&ce(-1,-1),_==null||(De=_.onMouseLeave)===null||De===void 0||De.call(_,Ce)});if(ne===0||Y===0)return null;var Oe=(u=_.title)!==null&&u!==void 0?u:TJ({rowType:I,ellipsis:g,children:Q}),je=ue(W,C,(d={},ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(d,"".concat(W,"-fix-left"),ae&&V),"".concat(W,"-fix-left-first"),B&&V),"".concat(W,"-fix-left-last"),L&&V),"".concat(W,"-fix-left-all"),L&&G&&V),"".concat(W,"-fix-right"),re&&V),"".concat(W,"-fix-right-first"),k&&V),"".concat(W,"-fix-right-last"),D&&V),"".concat(W,"-ellipsis"),g),"".concat(W,"-with-append"),H),"".concat(W,"-fix-sticky"),(ae||re)&&F&&V),ee(d,"".concat(W,"-row-hover"),!te&&de)),_.className,te==null?void 0:te.className),pe={};S&&(pe.textAlign=S);var we=se(se(se(se({},te==null?void 0:te.style),X),pe),_.style),Se=Q;return $t(Se)==="object"&&!Array.isArray(Se)&&!i.isValidElement(Se)&&(Se=null),g&&(L||k)&&(Se=i.createElement("span",{className:"".concat(W,"-content")},Se)),i.createElement(f,ye({},te,_,{className:je,style:we,title:Oe,scope:p,onMouseEnter:K?ge:void 0,onMouseLeave:K?he:void 0,colSpan:ne!==1?ne:null,rowSpan:Y!==1?Y:null}),H,Se)}const iu=i.memo(PJ);function wC(e,t,n,r,a){var l=n[e]||{},c=n[t]||{},u,d;l.fixed==="left"?u=r.left[a==="rtl"?t:e]:c.fixed==="right"&&(d=r.right[a==="rtl"?e:t]);var f=!1,v=!1,g=!1,p=!1,b=n[t+1],C=n[e-1],S=b&&!b.fixed||C&&!C.fixed||n.every(function(j){return j.fixed==="left"});if(a==="rtl"){if(u!==void 0){var h=C&&C.fixed==="left";p=!h&&S}else if(d!==void 0){var x=b&&b.fixed==="right";g=!x&&S}}else if(u!==void 0){var w=b&&b.fixed==="left";f=!w&&S}else if(d!==void 0){var E=C&&C.fixed==="right";v=!E&&S}return{fixLeft:u,fixRight:d,lastFixLeft:f,firstFixRight:v,lastFixRight:g,firstFixLeft:p,isSticky:r.isSticky}}var JN=i.createContext({});function zJ(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,l=a===void 0?1:a,c=e.rowSpan,u=e.align,d=oa(Sa,["prefixCls","direction"]),f=d.prefixCls,v=d.direction,g=i.useContext(JN),p=g.scrollColumnIndex,b=g.stickyOffsets,C=g.flattenColumns,S=n+l-1,h=S+1===p?l+1:l,x=wC(n,n+h-1,C,b,v);return i.createElement(iu,ye({className:t,index:n,component:"td",prefixCls:f,record:null,dataIndex:null,align:u,colSpan:h,rowSpan:c,render:function(){return r}},x))}var DJ=["children"];function _J(e){var t=e.children,n=Lt(e,DJ);return i.createElement("tr",n,t)}function Yg(e){var t=e.children;return t}Yg.Row=_J;Yg.Cell=zJ;function AJ(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=oa(Sa,"prefixCls"),l=r.length-1,c=r[l],u=i.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:c!=null&&c.scrollbar?l:null}},[c,r,l,n]);return i.createElement(JN.Provider,{value:u},i.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const Km=ou(AJ);var eM=Yg;function BJ(e){return null}function kJ(e){return null}function tM(e,t,n,r,a,l,c){var u=l(t,c);e.push({record:t,indent:n,index:c,rowKey:u});var d=a==null?void 0:a.has(u);if(t&&Array.isArray(t[r])&&d)for(var f=0;f<t[r].length;f+=1)tM(e,t[r][f],n+1,r,a,l,f)}function nM(e,t,n,r){var a=i.useMemo(function(){if(n!=null&&n.size){for(var l=[],c=0;c<(e==null?void 0:e.length);c+=1){var u=e[c];tM(l,u,0,t,n,r,c)}return l}return e==null?void 0:e.map(function(d,f){return{record:d,indent:0,index:f,rowKey:r(d,f)}})},[e,t,n,r]);return a}function rM(e,t,n,r){var a=oa(Sa,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),l=a.flattenColumns,c=a.expandableType,u=a.expandedKeys,d=a.childrenColumnName,f=a.onTriggerExpand,v=a.rowExpandable,g=a.onRow,p=a.expandRowByClick,b=a.rowClassName,C=c==="nest",S=c==="row"&&(!v||v(e)),h=S||C,x=u&&u.has(t),w=d&&e&&e[d],E=Xt(f),j=g==null?void 0:g(e,n),R=j==null?void 0:j.onClick,I=function(P){p&&h&&f(e,P);for(var B=arguments.length,L=new Array(B>1?B-1:0),k=1;k<B;k++)L[k-1]=arguments[k];R==null||R.apply(void 0,[P].concat(L))},O;typeof b=="string"?O=b:typeof b=="function"&&(O=b(e,n,r));var M=Xg(l);return se(se({},a),{},{columnsKey:M,nestExpandable:C,expanded:x,hasNestChildren:w,record:e,onTriggerExpand:E,rowSupportExpand:S,expandable:h,rowProps:se(se({},j),{},{className:ue(O,j==null?void 0:j.className),onClick:I})})}function aM(e){var t=e.prefixCls,n=e.children,r=e.component,a=e.cellComponent,l=e.className,c=e.expanded,u=e.colSpan,d=e.isEmpty,f=e.stickyOffset,v=f===void 0?0:f,g=oa(Sa,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),p=g.scrollbarSize,b=g.fixHeader,C=g.fixColumn,S=g.componentWidth,h=g.horizonScroll,x=n;return(d?h&&S:C)&&(x=i.createElement("div",{style:{width:S-v-(b&&!d?p:0),position:"sticky",left:v,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},x)),i.createElement(r,{className:l,style:{display:c?null:"none"}},i.createElement(iu,{component:a,prefixCls:t,colSpan:u},x))}function LJ(e){var t=e.prefixCls,n=e.record,r=e.onExpand,a=e.expanded,l=e.expandable,c="".concat(t,"-row-expand-icon");if(!l)return i.createElement("span",{className:ue(c,"".concat(t,"-row-spaced"))});var u=function(f){r(n,f),f.stopPropagation()};return i.createElement("span",{className:ue(c,ee(ee({},"".concat(t,"-row-expanded"),a),"".concat(t,"-row-collapsed"),!a)),onClick:u})}function HJ(e,t,n){var r=[];function a(l){(l||[]).forEach(function(c,u){r.push(t(c,u)),a(c[n])})}return a(e),r}function oM(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function iM(e,t,n,r,a){var l,c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,d=e.record,f=e.prefixCls,v=e.columnsKey,g=e.fixedInfoList,p=e.expandIconColumnIndex,b=e.nestExpandable,C=e.indentSize,S=e.expandIcon,h=e.expanded,x=e.hasNestChildren,w=e.onTriggerExpand,E=e.expandable,j=e.expandedKeys,R=v[n],I=g[n],O;n===(p||0)&&b&&(O=i.createElement(i.Fragment,null,i.createElement("span",{style:{paddingLeft:"".concat(C*r,"px")},className:"".concat(f,"-row-indent indent-level-").concat(r)}),S({prefixCls:f,expanded:h,expandable:x,record:d,onExpand:w})));var M=((l=t.onCell)===null||l===void 0?void 0:l.call(t,d,a))||{};if(u){var N=M.rowSpan,P=N===void 0?1:N;if(E&&P&&n<u){for(var B=P,L=a;L<a+P;L+=1){var k=c[L];j.has(k)&&(B+=1)}M.rowSpan=B}}return{key:R,fixedInfo:I,appendCellNode:O,additionalCellProps:M}}function FJ(e){var t=e.className,n=e.style,r=e.record,a=e.index,l=e.renderIndex,c=e.rowKey,u=e.rowKeys,d=e.indent,f=d===void 0?0:d,v=e.rowComponent,g=e.cellComponent,p=e.scopeCellComponent,b=e.expandedRowInfo,C=rM(r,c,a,f),S=C.prefixCls,h=C.flattenColumns,x=C.expandedRowClassName,w=C.expandedRowRender,E=C.rowProps,j=C.expanded,R=C.rowSupportExpand,I=i.useRef(!1);I.current||(I.current=j);var O=oM(x,r,a,f),M=i.createElement(v,ye({},E,{"data-row-key":c,className:ue(t,"".concat(S,"-row"),"".concat(S,"-row-level-").concat(f),E==null?void 0:E.className,ee({},O,f>=1)),style:se(se({},n),E==null?void 0:E.style)}),h.map(function(B,L){var k=B.render,D=B.dataIndex,H=B.className,z=iM(C,B,L,f,a,u,b==null?void 0:b.offset),_=z.key,F=z.fixedInfo,W=z.appendCellNode,q=z.additionalCellProps;return i.createElement(iu,ye({className:H,ellipsis:B.ellipsis,align:B.align,scope:B.rowScope,component:B.rowScope?p:g,prefixCls:S,key:_,record:r,index:a,renderIndex:l,dataIndex:D,render:k,shouldCellUpdate:B.shouldCellUpdate},F,{appendNode:W,additionalProps:q}))})),N;if(R&&(I.current||j)){var P=w(r,a,f+1,j);N=i.createElement(aM,{expanded:j,className:ue("".concat(S,"-expanded-row"),"".concat(S,"-expanded-row-level-").concat(f+1),O),prefixCls:S,component:v,cellComponent:g,colSpan:b?b.colSpan:h.length,stickyOffset:b==null?void 0:b.sticky,isEmpty:!1},P)}return i.createElement(i.Fragment,null,M,N)}const VJ=ou(FJ);function WJ(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,a=e.title,l=i.useRef();return nn(function(){l.current&&n(t,l.current.offsetWidth)},[]),i.createElement(ma,{data:t},i.createElement("th",{ref:l,className:"".concat(r,"-measure-cell")},i.createElement("div",{className:"".concat(r,"-measure-cell-content")},a||" ")))}function KJ(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,a=e.columns,l=i.useRef(null),c=oa(Sa,["measureRowRender"]),u=c.measureRowRender,d=i.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:l,tabIndex:-1},i.createElement(ma.Collection,{onBatchResize:function(v){Gc(l.current)&&v.forEach(function(g){var p=g.data,b=g.size;r(p,b.offsetWidth)})}},n.map(function(f){var v=a.find(function(b){return b.key===f}),g=v==null?void 0:v.title,p=i.isValidElement(g)?i.cloneElement(g,{ref:null}):g;return i.createElement(WJ,{prefixCls:t,key:f,columnKey:f,onColumnResize:r,title:p})})));return u?u(d):d}function UJ(e){var t=e.data,n=e.measureColumnWidth,r=oa(Sa,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),a=r.prefixCls,l=r.getComponent,c=r.onColumnResize,u=r.flattenColumns,d=r.getRowKey,f=r.expandedKeys,v=r.childrenColumnName,g=r.emptyNode,p=r.expandedRowOffset,b=p===void 0?0:p,C=r.colWidths,S=nM(t,v,f,d),h=i.useMemo(function(){return S.map(function(N){return N.rowKey})},[S]),x=i.useRef({renderWithProps:!1}),w=i.useMemo(function(){for(var N=u.length-b,P=0,B=0;B<b;B+=1)P+=C[B]||0;return{offset:b,colSpan:N,sticky:P}},[u.length,b,C]),E=l(["body","wrapper"],"tbody"),j=l(["body","row"],"tr"),R=l(["body","cell"],"td"),I=l(["body","cell"],"th"),O;t.length?O=S.map(function(N,P){var B=N.record,L=N.indent,k=N.index,D=N.rowKey;return i.createElement(VJ,{key:D,rowKey:D,rowKeys:h,record:B,index:P,renderIndex:k,rowComponent:j,cellComponent:R,scopeCellComponent:I,indent:L,expandedRowInfo:w})}):O=i.createElement(aM,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:j,cellComponent:R,colSpan:u.length,isEmpty:!0},g);var M=Xg(u);return i.createElement(ZN.Provider,{value:x.current},i.createElement(E,{className:"".concat(a,"-tbody")},n&&i.createElement(KJ,{prefixCls:a,columnsKey:M,onColumnResize:c,columns:u}),O))}const qJ=ou(UJ);var GJ=["expandable"],Ed="RC_TABLE_INTERNAL_COL_DEFINE";function XJ(e){var t=e.expandable,n=Lt(e,GJ),r;return"expandable"in e?r=se(se({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var YJ=["columnType"];function lM(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,a=oa(Sa,["tableLayout"]),l=a.tableLayout,c=[],u=r||n.length,d=!1,f=u-1;f>=0;f-=1){var v=t[f],g=n&&n[f],p=void 0,b=void 0;if(g&&(p=g[Ed],l==="auto"&&(b=g.minWidth)),v||b||p||d){var C=p||{};C.columnType;var S=Lt(C,YJ);c.unshift(i.createElement("col",ye({key:f,style:{width:v,minWidth:b}},S))),d=!0}}return c.length>0?i.createElement("colgroup",null,c):null}var QJ=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function ZJ(e,t){return i.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 JJ=i.forwardRef(function(e,t){var n=e.className,r=e.noData,a=e.columns,l=e.flattenColumns,c=e.colWidths,u=e.colGroup,d=e.columCount,f=e.stickyOffsets,v=e.direction,g=e.fixHeader,p=e.stickyTopOffset,b=e.stickyBottomOffset,C=e.stickyClassName,S=e.scrollX,h=e.tableLayout,x=h===void 0?"fixed":h,w=e.onScroll,E=e.children,j=Lt(e,QJ),R=oa(Sa,["prefixCls","scrollbarSize","isSticky","getComponent"]),I=R.prefixCls,O=R.scrollbarSize,M=R.isSticky,N=R.getComponent,P=N(["header","table"],"table"),B=M&&!g?0:O,L=i.useRef(null),k=i.useCallback(function(V){Id(t,V),Id(L,V)},[]);i.useEffect(function(){function V(K){var U=K,Z=U.currentTarget,Q=U.deltaX;Q&&(w({currentTarget:Z,scrollLeft:Z.scrollLeft+Q}),K.preventDefault())}var G=L.current;return G==null||G.addEventListener("wheel",V,{passive:!1}),function(){G==null||G.removeEventListener("wheel",V)}},[]);var D=l[l.length-1],H={fixed:D?D.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(I,"-cell-scrollbar")}}},z=i.useMemo(function(){return B?[].concat(Ne(a),[H]):a},[B,a]),_=i.useMemo(function(){return B?[].concat(Ne(l),[H]):l},[B,l]),F=i.useMemo(function(){var V=f.right,G=f.left;return se(se({},f),{},{left:v==="rtl"?[].concat(Ne(G.map(function(K){return K+B})),[0]):G,right:v==="rtl"?V:[].concat(Ne(V.map(function(K){return K+B})),[0]),isSticky:M})},[B,f,M]),W=ZJ(c,d),q=i.useMemo(function(){var V=!W||!W.length||W.every(function(G){return!G});return r||V},[r,W]);return i.createElement("div",{style:se({overflow:"hidden"},M?{top:p,bottom:b}:{}),ref:k,className:ue(n,ee({},C,!!C))},i.createElement(P,{style:{tableLayout:x,minWidth:"100%",width:S}},q?u:i.createElement(lM,{colWidths:[].concat(Ne(W),[B]),columCount:d+1,columns:_}),E(se(se({},j),{},{stickyOffsets:F,columns:z,flattenColumns:_}))))});const e4=i.memo(JJ);var eee=function(t){var n=t.cells,r=t.stickyOffsets,a=t.flattenColumns,l=t.rowComponent,c=t.cellComponent,u=t.onHeaderRow,d=t.index,f=oa(Sa,["prefixCls","direction"]),v=f.prefixCls,g=f.direction,p;u&&(p=u(n.map(function(C){return C.column}),d));var b=Xg(n.map(function(C){return C.column}));return i.createElement(l,p,n.map(function(C,S){var h=C.column,x=wC(C.colStart,C.colEnd,a,r,g),w;return h&&h.onHeaderCell&&(w=C.column.onHeaderCell(h)),i.createElement(iu,ye({},C,{scope:h.title?C.colSpan>1?"colgroup":"col":null,ellipsis:h.ellipsis,align:h.align,component:c,prefixCls:v,key:b[S]},x,{additionalProps:w,rowType:"header"}))}))};function tee(e){var t=[];function n(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[d]=t[d]||[];var f=u,v=c.filter(Boolean).map(function(g){var p={key:g.key,className:g.className||"",children:g.title,column:g,colStart:f},b=1,C=g.children;return C&&C.length>0&&(b=n(C,f,d+1).reduce(function(S,h){return S+h},0),p.hasSubColumns=!0),"colSpan"in g&&(b=g.colSpan),"rowSpan"in g&&(p.rowSpan=g.rowSpan),p.colSpan=b,p.colEnd=p.colStart+b-1,t[d].push(p),f+=b,b});return v}n(e,0);for(var r=t.length,a=function(u){t[u].forEach(function(d){!("rowSpan"in d)&&!d.hasSubColumns&&(d.rowSpan=r-u)})},l=0;l<r;l+=1)a(l);return t}var nee=function(t){var n=t.stickyOffsets,r=t.columns,a=t.flattenColumns,l=t.onHeaderRow,c=oa(Sa,["prefixCls","getComponent"]),u=c.prefixCls,d=c.getComponent,f=i.useMemo(function(){return tee(r)},[r]),v=d(["header","wrapper"],"thead"),g=d(["header","row"],"tr"),p=d(["header","cell"],"th");return i.createElement(v,{className:"".concat(u,"-thead")},f.map(function(b,C){var S=i.createElement(eee,{key:C,flattenColumns:a,cells:b,stickyOffsets:n,rowComponent:g,cellComponent:p,onHeaderRow:l,index:C});return S}))};const t4=ou(nee);function n4(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 ree(e,t,n){return i.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(p){var b=n4(t,p.width);b?r+=b:a+=1});var l=Math.max(t,n),c=Math.max(l-r,a),u=a,d=c/a,f=0,v=e.map(function(p){var b=se({},p),C=n4(t,b.width);if(C)b.width=C;else{var S=Math.floor(d);b.width=u===1?c:S,c-=S,u-=1}return f+=b.width,b});if(f<l){var g=l/f;c=l,v.forEach(function(p,b){var C=Math.floor(p.width*g);p.width=b===v.length-1?c:C,c-=C})}return[v,Math.max(f,l)]}return[e,t]},[e,t,n])}var aee=["children"],oee=["fixed"];function EC(e){return Xr(e).filter(function(t){return i.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,a=r.children,l=Lt(r,aee),c=se({key:n},l);return a&&(c.children=EC(a)),c})}function sM(e){return e.filter(function(t){return t&&$t(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?se(se({},t),{},{children:sM(n)}):t})}function Ly(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&$t(n)==="object"}).reduce(function(n,r,a){var l=r.fixed,c=l===!0?"left":l,u="".concat(t,"-").concat(a),d=r.children;return d&&d.length>0?[].concat(Ne(n),Ne(Ly(d,u).map(function(f){var v;return se(se({},f),{},{fixed:(v=f.fixed)!==null&&v!==void 0?v:c})}))):[].concat(Ne(n),[se(se({key:u},r),{},{fixed:c})])},[])}function iee(e){return e.map(function(t){var n=t.fixed,r=Lt(t,oee),a=n;return n==="left"?a="right":n==="right"&&(a="left"),se({fixed:a},r)})}function lee(e,t){var n=e.prefixCls,r=e.columns,a=e.children,l=e.expandable,c=e.expandedKeys,u=e.columnTitle,d=e.getRowKey,f=e.onTriggerExpand,v=e.expandIcon,g=e.rowExpandable,p=e.expandIconColumnIndex,b=e.expandedRowOffset,C=b===void 0?0:b,S=e.direction,h=e.expandRowByClick,x=e.columnWidth,w=e.fixed,E=e.scrollWidth,j=e.clientWidth,R=i.useMemo(function(){var D=r||EC(a)||[];return sM(D.slice())},[r,a]),I=i.useMemo(function(){if(l){var D=R.slice();if(!D.includes(rl)){var H=p||0,z=H===0&&w==="right"?R.length:H;z>=0&&D.splice(z,0,rl)}var _=D.indexOf(rl);D=D.filter(function(V,G){return V!==rl||G===_});var F=R[_],W;w?W=w:W=F?F.fixed:null;var q=ee(ee(ee(ee(ee(ee({},Ed,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",u),"fixed",W),"className","".concat(n,"-row-expand-icon-cell")),"width",x),"render",function(G,K,U){var Z=d(K,U),Q=c.has(Z),te=g?g(K):!0,X=v({prefixCls:n,expanded:Q,expandable:te,record:K,onExpand:f});return h?i.createElement("span",{onClick:function(re){return re.stopPropagation()}},X):X});return D.map(function(V,G){var K=V===rl?q:V;return G<C?se(se({},K),{},{fixed:K.fixed||"left"}):K})}return R.filter(function(V){return V!==rl})},[l,R,d,c,v,S,C]),O=i.useMemo(function(){var D=I;return t&&(D=t(D)),D.length||(D=[{render:function(){return null}}]),D},[t,I,S]),M=i.useMemo(function(){return S==="rtl"?iee(Ly(O)):Ly(O)},[O,S,E]),N=i.useMemo(function(){for(var D=-1,H=M.length-1;H>=0;H-=1){var z=M[H].fixed;if(z==="left"||z===!0){D=H;break}}if(D>=0)for(var _=0;_<=D;_+=1){var F=M[_].fixed;if(F!=="left"&&F!==!0)return!0}var W=M.findIndex(function(G){var K=G.fixed;return K==="right"});if(W>=0)for(var q=W;q<M.length;q+=1){var V=M[q].fixed;if(V!=="right")return!0}return!1},[M]),P=ree(M,E,j),B=fe(P,2),L=B[0],k=B[1];return[O,L,k,N]}function see(e,t,n){var r=XJ(e),a=r.expandIcon,l=r.expandedRowKeys,c=r.defaultExpandedRowKeys,u=r.defaultExpandAllRows,d=r.expandedRowRender,f=r.onExpand,v=r.onExpandedRowsChange,g=r.childrenColumnName,p=a||LJ,b=g||"children",C=i.useMemo(function(){return d?"row":e.expandable&&e.internalHooks===hf&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(R){return R&&$t(R)==="object"&&R[b]})?"nest":!1},[!!d,t]),S=i.useState(function(){return c||(u?HJ(t,n,b):[])}),h=fe(S,2),x=h[0],w=h[1],E=i.useMemo(function(){return new Set(l||x||[])},[l,x]),j=i.useCallback(function(R){var I=n(R,t.indexOf(R)),O,M=E.has(I);M?(E.delete(I),O=Ne(E)):O=[].concat(Ne(E),[I]),w(O),f&&f(!M,R),v&&v(O)},[n,E,t,f,v]);return[r,C,E,p,b,j]}function cee(e,t,n){var r=e.map(function(a,l){return wC(l,l,e,t,n)});return ps(function(){return r},[r],function(a,l){return!Ro(a,l)})}function uee(e){var t=i.useRef(e),n=i.useState({}),r=fe(n,2),a=r[1],l=i.useRef(null),c=i.useRef([]);function u(d){c.current.push(d);var f=Promise.resolve();l.current=f,f.then(function(){if(l.current===f){var v=c.current,g=t.current;c.current=[],v.forEach(function(p){t.current=p(t.current)}),l.current=null,g!==t.current&&a({})}})}return i.useEffect(function(){return function(){l.current=null}},[]),[t.current,u]}function dee(e){var t=i.useRef(null),n=i.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 l(){return t.current}return i.useEffect(function(){return r},[]),[a,l]}function fee(){var e=i.useState(-1),t=fe(e,2),n=t[0],r=t[1],a=i.useState(-1),l=fe(a,2),c=l[0],u=l[1],d=i.useCallback(function(f,v){r(f),u(v)},[]);return[n,c,d]}var r4=aa()?window:null;function mee(e,t){var n=$t(e)==="object"?e:{},r=n.offsetHeader,a=r===void 0?0:r,l=n.offsetSummary,c=l===void 0?0:l,u=n.offsetScroll,d=u===void 0?0:u,f=n.getContainer,v=f===void 0?function(){return r4}:f,g=v()||r4,p=!!e;return i.useMemo(function(){return{isSticky:p,stickyClassName:p?"".concat(t,"-sticky-holder"):"",offsetHeader:a,offsetSummary:c,offsetScroll:d,container:g}},[p,d,a,c,t,g])}function vee(e,t,n){var r=i.useMemo(function(){var a=t.length,l=function(f,v,g){for(var p=[],b=0,C=f;C!==v;C+=g)p.push(b),t[C].fixed&&(b+=e[C]||0);return p},c=l(0,a,1),u=l(a-1,-1,-1).reverse();return n==="rtl"?{left:u,right:c}:{left:c,right:u}},[e,t,n]);return r}function a4(e){var t=e.className,n=e.children;return i.createElement("div",{className:t},n)}function o4(e){var t=Qd(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 gee=function(t,n){var r,a,l=t.scrollBodyRef,c=t.onScroll,u=t.offsetScroll,d=t.container,f=t.direction,v=oa(Sa,"prefixCls"),g=((r=l.current)===null||r===void 0?void 0:r.scrollWidth)||0,p=((a=l.current)===null||a===void 0?void 0:a.clientWidth)||0,b=g&&p*(p/g),C=i.useRef(),S=uee({scrollLeft:0,isHiddenScrollBar:!0}),h=fe(S,2),x=h[0],w=h[1],E=i.useRef({delta:0,x:0}),j=i.useState(!1),R=fe(j,2),I=R[0],O=R[1],M=i.useRef(null);i.useEffect(function(){return function(){Yt.cancel(M.current)}},[]);var N=function(){O(!1)},P=function(H){H.persist(),E.current.delta=H.pageX-x.scrollLeft,E.current.x=0,O(!0),H.preventDefault()},B=function(H){var z,_=H||((z=window)===null||z===void 0?void 0:z.event),F=_.buttons;if(!I||F===0){I&&O(!1);return}var W=E.current.x+H.pageX-E.current.x-E.current.delta,q=f==="rtl";W=Math.max(q?b-p:0,Math.min(q?0:p-b,W));var V=!q||Math.abs(W)+Math.abs(b)<p;V&&(c({scrollLeft:W/p*(g+2)}),E.current.x=H.pageX)},L=function(){Yt.cancel(M.current),M.current=Yt(function(){if(l.current){var H=o4(l.current).top,z=H+l.current.offsetHeight,_=d===window?document.documentElement.scrollTop+window.innerHeight:o4(d).top+d.clientHeight;w(function(F){return se(se({},F),{},{isHiddenScrollBar:z-Dw()<=_||H>=_-u})})}})},k=function(H){w(function(z){return se(se({},z),{},{scrollLeft:g?H/g*p:0})})};return i.useImperativeHandle(n,function(){return{setScrollLeft:k,checkScrollBarVisible:L}}),i.useEffect(function(){var D=kO(document.body,"mouseup",N,!1),H=kO(document.body,"mousemove",B,!1);return L(),function(){D.remove(),H.remove()}},[b,I]),i.useEffect(function(){if(l.current){for(var D=[],H=Qd(l.current);H;)D.push(H),H=H.parentElement;return D.forEach(function(z){return z.addEventListener("scroll",L,!1)}),window.addEventListener("resize",L,!1),window.addEventListener("scroll",L,!1),d.addEventListener("scroll",L,!1),function(){D.forEach(function(z){return z.removeEventListener("scroll",L)}),window.removeEventListener("resize",L),window.removeEventListener("scroll",L),d.removeEventListener("scroll",L)}}},[d]),i.useEffect(function(){x.isHiddenScrollBar||w(function(D){var H=l.current;return H?se(se({},D),{},{scrollLeft:H.scrollLeft/H.scrollWidth*H.clientWidth}):D})},[x.isHiddenScrollBar]),g<=p||!b||x.isHiddenScrollBar?null:i.createElement("div",{style:{height:Dw(),width:p,bottom:u},className:"".concat(v,"-sticky-scroll")},i.createElement("div",{onMouseDown:P,ref:C,className:ue("".concat(v,"-sticky-scroll-bar"),ee({},"".concat(v,"-sticky-scroll-bar-active"),I)),style:{width:"".concat(b,"px"),transform:"translate3d(".concat(x.scrollLeft,"px, 0, 0)")}}))};const pee=i.forwardRef(gee);var cM="rc-table",hee=[],bee={};function yee(){return"No Data"}function Cee(e,t){var n=se({rowKey:"key",prefixCls:cM,emptyText:yee},e),r=n.prefixCls,a=n.className,l=n.rowClassName,c=n.style,u=n.data,d=n.rowKey,f=n.scroll,v=n.tableLayout,g=n.direction,p=n.title,b=n.footer,C=n.summary,S=n.caption,h=n.id,x=n.showHeader,w=n.components,E=n.emptyText,j=n.onRow,R=n.onHeaderRow,I=n.measureRowRender,O=n.onScroll,M=n.internalHooks,N=n.transformColumns,P=n.internalRefs,B=n.tailor,L=n.getContainerWidth,k=n.sticky,D=n.rowHoverable,H=D===void 0?!0:D,z=u||hee,_=!!z.length,F=M===hf,W=i.useCallback(function(gt,jt){return $a(w,gt)||jt},[w]),q=i.useMemo(function(){return typeof d=="function"?d:function(gt){var jt=gt&>[d];return jt}},[d]),V=W(["body"]),G=fee(),K=fe(G,3),U=K[0],Z=K[1],Q=K[2],te=see(n,z,q),X=fe(te,6),ae=X[0],re=X[1],ne=X[2],Y=X[3],ie=X[4],le=X[5],de=f==null?void 0:f.x,ce=i.useState(0),ge=fe(ce,2),he=ge[0],Oe=ge[1],je=lee(se(se(se({},n),ae),{},{expandable:!!ae.expandedRowRender,columnTitle:ae.columnTitle,expandedKeys:ne,getRowKey:q,onTriggerExpand:le,expandIcon:Y,expandIconColumnIndex:ae.expandIconColumnIndex,direction:g,scrollWidth:F&&B&&typeof de=="number"?de:null,clientWidth:he}),F?N:null),pe=fe(je,4),we=pe[0],Se=pe[1],Ce=pe[2],De=pe[3],Ae=Ce??de,Ye=i.useMemo(function(){return{columns:we,flattenColumns:Se}},[we,Se]),Ke=i.useRef(),Fe=i.useRef(),Ge=i.useRef(),Te=i.useRef();i.useImperativeHandle(t,function(){return{nativeElement:Ke.current,scrollTo:function(jt){var fn;if(Ge.current instanceof HTMLElement){var zn=jt.index,Zn=jt.top,Kn=jt.key;if(RJ(Zn)){var Kr;(Kr=Ge.current)===null||Kr===void 0||Kr.scrollTo({top:Zn})}else{var Zr,Tr=Kn??q(z[zn]);(Zr=Ge.current.querySelector('[data-row-key="'.concat(Tr,'"]')))===null||Zr===void 0||Zr.scrollIntoView()}}else(fn=Ge.current)!==null&&fn!==void 0&&fn.scrollTo&&Ge.current.scrollTo(jt)}}});var Ee=i.useRef(),_e=i.useState(!1),Re=fe(_e,2),Pe=Re[0],be=Re[1],$e=i.useState(!1),Me=fe($e,2),Le=Me[0],et=Me[1],bt=i.useState(new Map),We=fe(bt,2),tt=We[0],dt=We[1],at=Xg(Se),pt=at.map(function(gt){return tt.get(gt)}),Pt=i.useMemo(function(){return pt},[pt.join("_")]),Et=vee(Pt,Se,g),ct=f&&ky(f.y),St=f&&ky(Ae)||!!ae.fixed,yt=St&&Se.some(function(gt){var jt=gt.fixed;return jt}),Je=i.useRef(),Ve=mee(k,r),Ue=Ve.isSticky,mt=Ve.offsetHeader,Mt=Ve.offsetSummary,It=Ve.offsetScroll,Vt=Ve.stickyClassName,ft=Ve.container,lt=i.useMemo(function(){return C==null?void 0:C(z)},[C,z]),At=(ct||Ue)&&i.isValidElement(lt)&<.type===Yg&<.props.fixed,Ut,rn,Qt;ct&&(rn={overflowY:_?"scroll":"auto",maxHeight:f.y}),St&&(Ut={overflowX:"auto"},ct||(rn={overflowY:"hidden"}),Qt={width:Ae===!0?"auto":Ae,minWidth:"100%"});var vn=i.useCallback(function(gt,jt){dt(function(fn){if(fn.get(gt)!==jt){var zn=new Map(fn);return zn.set(gt,jt),zn}return fn})},[]),qt=dee(),un=fe(qt,2),st=un[0],Ct=un[1];function ht(gt,jt){jt&&(typeof jt=="function"?jt(gt):jt.scrollLeft!==gt&&(jt.scrollLeft=gt,jt.scrollLeft!==gt&&setTimeout(function(){jt.scrollLeft=gt},0)))}var Xe=Xt(function(gt){var jt=gt.currentTarget,fn=gt.scrollLeft,zn=g==="rtl",Zn=typeof fn=="number"?fn:jt.scrollLeft,Kn=jt||bee;if(!Ct()||Ct()===Kn){var Kr;st(Kn),ht(Zn,Fe.current),ht(Zn,Ge.current),ht(Zn,Ee.current),ht(Zn,(Kr=Je.current)===null||Kr===void 0?void 0:Kr.setScrollLeft)}var Zr=jt||Fe.current;if(Zr){var Tr=F&&B&&typeof Ae=="number"?Ae:Zr.scrollWidth,la=Zr.clientWidth;if(Tr===la){be(!1),et(!1);return}zn?(be(-Zn<Tr-la),et(-Zn>0)):(be(Zn>0),et(Zn<Tr-la))}}),Qe=Xt(function(gt){Xe(gt),O==null||O(gt)}),ut=function(){if(St&&Ge.current){var jt;Xe({currentTarget:Qd(Ge.current),scrollLeft:(jt=Ge.current)===null||jt===void 0?void 0:jt.scrollLeft})}else be(!1),et(!1)},zt=function(jt){var fn,zn=jt.width;(fn=Je.current)===null||fn===void 0||fn.checkScrollBarVisible();var Zn=Ke.current?Ke.current.offsetWidth:zn;F&&L&&Ke.current&&(Zn=L(Ke.current,Zn)||Zn),Zn!==he&&(ut(),Oe(Zn))},Kt=i.useRef(!1);i.useEffect(function(){Kt.current&&ut()},[St,u,we.length]),i.useEffect(function(){Kt.current=!0},[]);var vt=i.useState(0),Nt=fe(vt,2),Ft=Nt[0],xn=Nt[1],_n=i.useState(!0),Pn=fe(_n,2),Wn=Pn[0],Rn=Pn[1];nn(function(){(!B||!F)&&(Ge.current instanceof Element?xn(iy(Ge.current).width):xn(iy(Te.current).width)),Rn(hy("position","sticky"))},[]),i.useEffect(function(){F&&P&&(P.body.current=Ge.current)});var An=i.useCallback(function(gt){return i.createElement(i.Fragment,null,i.createElement(t4,gt),At==="top"&&i.createElement(Km,gt,lt))},[At,lt]),Cr=i.useCallback(function(gt){return i.createElement(Km,gt,lt)},[lt]),Mr=W(["table"],"table"),pr=i.useMemo(function(){return v||(yt?Ae==="max-content"?"auto":"fixed":ct||Ue||Se.some(function(gt){var jt=gt.ellipsis;return jt})?"fixed":"auto")},[ct,yt,Se,v,Ue]),Cn,Bt={colWidths:Pt,columCount:Se.length,stickyOffsets:Et,onHeaderRow:R,fixHeader:ct,scroll:f},kt=i.useMemo(function(){return _?null:typeof E=="function"?E():E},[_,E]),an=i.createElement(qJ,{data:z,measureColumnWidth:ct||St||Ue}),Tt=i.createElement(lM,{colWidths:Se.map(function(gt){var jt=gt.width;return jt}),columns:Se}),Dt=S!=null?i.createElement("caption",{className:"".concat(r,"-caption")},S):void 0,mn=Rr(n,{data:!0}),jn=Rr(n,{aria:!0});if(ct||Ue){var Yn;typeof V=="function"?(Yn=V(z,{scrollbarSize:Ft,ref:Ge,onScroll:Xe}),Bt.colWidths=Se.map(function(gt,jt){var fn=gt.width,zn=jt===Se.length-1?fn-Ft:fn;return typeof zn=="number"&&!Number.isNaN(zn)?zn:0})):Yn=i.createElement("div",{style:se(se({},Ut),rn),onScroll:Qe,ref:Ge,className:ue("".concat(r,"-body"))},i.createElement(Mr,ye({style:se(se({},Qt),{},{tableLayout:pr})},jn),Dt,Tt,an,!At&<&&i.createElement(Km,{stickyOffsets:Et,flattenColumns:Se},lt)));var Sr=se(se(se({noData:!z.length},Bt),Ye),{},{direction:g,stickyClassName:Vt,scrollX:Ae,tableLayout:pr,onScroll:Xe});Cn=i.createElement(i.Fragment,null,x!==!1&&i.createElement(e4,ye({},Sr,{stickyTopOffset:mt,className:"".concat(r,"-header"),ref:Fe,colGroup:Tt}),An),Yn,At&&At!=="top"&&i.createElement(e4,ye({},Sr,{stickyBottomOffset:Mt,className:"".concat(r,"-summary"),ref:Ee,colGroup:Tt}),Cr),Ue&&Ge.current&&Ge.current instanceof Element&&i.createElement(pee,{ref:Je,offsetScroll:It,scrollBodyRef:Ge,onScroll:Xe,container:ft,direction:g}))}else Cn=i.createElement("div",{style:se(se({},Ut),rn),className:ue("".concat(r,"-content")),onScroll:Xe,ref:Ge},i.createElement(Mr,ye({style:se(se({},Qt),{},{tableLayout:pr})},jn),Dt,Tt,x!==!1&&i.createElement(t4,ye({},Bt,Ye)),an,lt&&i.createElement(Km,{stickyOffsets:Et,flattenColumns:Se},lt)));var Qn=i.createElement("div",ye({className:ue(r,a,ee(ee(ee(ee(ee(ee(ee(ee(ee(ee({},"".concat(r,"-rtl"),g==="rtl"),"".concat(r,"-ping-left"),Pe),"".concat(r,"-ping-right"),Le),"".concat(r,"-layout-fixed"),v==="fixed"),"".concat(r,"-fixed-header"),ct),"".concat(r,"-fixed-column"),yt),"".concat(r,"-fixed-column-gapped"),yt&&De),"".concat(r,"-scroll-horizontal"),St),"".concat(r,"-has-fix-left"),Se[0]&&Se[0].fixed),"".concat(r,"-has-fix-right"),Se[Se.length-1]&&Se[Se.length-1].fixed==="right")),style:c,id:h,ref:Ke},mn),p&&i.createElement(a4,{className:"".concat(r,"-title")},p(z)),i.createElement("div",{ref:Te,className:"".concat(r,"-container")},Cn),b&&i.createElement(a4,{className:"".concat(r,"-footer")},b(z)));St&&(Qn=i.createElement(ma,{onResize:zt},Qn));var wr=cee(Se,Et,g),cn=i.useMemo(function(){return{scrollX:Ae,prefixCls:r,getComponent:W,scrollbarSize:Ft,direction:g,fixedInfoList:wr,isSticky:Ue,supportSticky:Wn,componentWidth:he,fixHeader:ct,fixColumn:yt,horizonScroll:St,tableLayout:pr,rowClassName:l,expandedRowClassName:ae.expandedRowClassName,expandIcon:Y,expandableType:re,expandRowByClick:ae.expandRowByClick,expandedRowRender:ae.expandedRowRender,expandedRowOffset:ae.expandedRowOffset,onTriggerExpand:le,expandIconColumnIndex:ae.expandIconColumnIndex,indentSize:ae.indentSize,allColumnsFixedLeft:Se.every(function(gt){return gt.fixed==="left"}),emptyNode:kt,columns:we,flattenColumns:Se,onColumnResize:vn,colWidths:Pt,hoverStartRow:U,hoverEndRow:Z,onHover:Q,rowExpandable:ae.rowExpandable,onRow:j,getRowKey:q,expandedKeys:ne,childrenColumnName:ie,rowHoverable:H,measureRowRender:I}},[Ae,r,W,Ft,g,wr,Ue,Wn,he,ct,yt,St,pr,l,ae.expandedRowClassName,Y,re,ae.expandRowByClick,ae.expandedRowRender,ae.expandedRowOffset,le,ae.expandIconColumnIndex,ae.indentSize,kt,we,Se,vn,Pt,U,Z,Q,ae.rowExpandable,j,q,ne,ie,H,I]);return i.createElement(Sa.Provider,{value:cn},Qn)}var See=i.forwardRef(Cee);function uM(e){return QN(See,e)}var lu=uM();lu.EXPAND_COLUMN=rl;lu.INTERNAL_HOOKS=hf;lu.Column=BJ;lu.ColumnGroup=kJ;lu.Summary=eM;var OC=xC(null),dM=xC(null);function xee(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function $ee(e){var t=e.rowInfo,n=e.column,r=e.colIndex,a=e.indent,l=e.index,c=e.component,u=e.renderIndex,d=e.record,f=e.style,v=e.className,g=e.inverse,p=e.getHeight,b=n.render,C=n.dataIndex,S=n.className,h=n.width,x=oa(dM,["columnsOffset"]),w=x.columnsOffset,E=iM(t,n,r,a,l),j=E.key,R=E.fixedInfo,I=E.appendCellNode,O=E.additionalCellProps,M=O.style,N=O.colSpan,P=N===void 0?1:N,B=O.rowSpan,L=B===void 0?1:B,k=r-1,D=xee(k,P,w),H=P>1?h-D:0,z=se(se(se({},M),f),{},{flex:"0 0 ".concat(D,"px"),width:"".concat(D,"px"),marginRight:H,pointerEvents:"auto"}),_=i.useMemo(function(){return g?L<=1:P===0||L===0||L>1},[L,P,g]);_?z.visibility="hidden":g&&(z.height=p==null?void 0:p(L));var F=_?function(){return null}:b,W={};return(L===0||P===0)&&(W.rowSpan=1,W.colSpan=1),i.createElement(iu,ye({className:ue(S,v),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:c,prefixCls:t.prefixCls,key:j,record:d,index:l,renderIndex:u,dataIndex:C,render:F,shouldCellUpdate:n.shouldCellUpdate},R,{appendNode:I,additionalProps:se(se({},O),{},{style:z},W)}))}var wee=["data","index","className","rowKey","style","extra","getHeight"],Eee=i.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,l=e.rowKey,c=e.style,u=e.extra,d=e.getHeight,f=Lt(e,wee),v=n.record,g=n.indent,p=n.index,b=oa(Sa,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),C=b.scrollX,S=b.flattenColumns,h=b.prefixCls,x=b.fixColumn,w=b.componentWidth,E=oa(OC,["getComponent"]),j=E.getComponent,R=rM(v,l,r,g),I=j(["body","row"],"div"),O=j(["body","cell"],"div"),M=R.rowSupportExpand,N=R.expanded,P=R.rowProps,B=R.expandedRowRender,L=R.expandedRowClassName,k;if(M&&N){var D=B(v,r,g+1,N),H=oM(L,v,r,g),z={};x&&(z={style:ee({},"--virtual-width","".concat(w,"px"))});var _="".concat(h,"-expanded-row-cell");k=i.createElement(I,{className:ue("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(g+1),H)},i.createElement(iu,{component:O,prefixCls:h,className:ue(_,ee({},"".concat(_,"-fixed"),x)),additionalProps:z},D))}var F=se(se({},c),{},{width:C});u&&(F.position="absolute",F.pointerEvents="none");var W=i.createElement(I,ye({},P,f,{"data-row-key":l,ref:M?null:t,className:ue(a,"".concat(h,"-row"),P==null?void 0:P.className,ee({},"".concat(h,"-row-extra"),u)),style:se(se({},F),P==null?void 0:P.style)}),S.map(function(q,V){return i.createElement($ee,{key:V,component:O,rowInfo:R,column:q,colIndex:V,indent:g,index:r,renderIndex:p,record:v,inverse:u,getHeight:d})}));return M?i.createElement("div",{ref:t},W,k):W}),i4=ou(Eee),Oee=i.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=oa(Sa,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),l=a.flattenColumns,c=a.onColumnResize,u=a.getRowKey,d=a.expandedKeys,f=a.prefixCls,v=a.childrenColumnName,g=a.scrollX,p=a.direction,b=oa(OC),C=b.sticky,S=b.scrollY,h=b.listItemHeight,x=b.getComponent,w=b.onScroll,E=i.useRef(),j=nM(n,v,d,u),R=i.useMemo(function(){var k=0;return l.map(function(D){var H=D.width,z=D.minWidth,_=D.key,F=Math.max(H||0,z||0);return k+=F,[_,F,k]})},[l]),I=i.useMemo(function(){return R.map(function(k){return k[2]})},[R]);i.useEffect(function(){R.forEach(function(k){var D=fe(k,2),H=D[0],z=D[1];c(H,z)})},[R]),i.useImperativeHandle(t,function(){var k,D={scrollTo:function(z){var _;(_=E.current)===null||_===void 0||_.scrollTo(z)},nativeElement:(k=E.current)===null||k===void 0?void 0:k.nativeElement};return Object.defineProperty(D,"scrollLeft",{get:function(){var z;return((z=E.current)===null||z===void 0?void 0:z.getScrollInfo().x)||0},set:function(z){var _;(_=E.current)===null||_===void 0||_.scrollTo({left:z})}}),Object.defineProperty(D,"scrollTop",{get:function(){var z;return((z=E.current)===null||z===void 0?void 0:z.getScrollInfo().y)||0},set:function(z){var _;(_=E.current)===null||_===void 0||_.scrollTo({top:z})}}),D});var O=function(D,H){var z,_=(z=j[H])===null||z===void 0?void 0:z.record,F=D.onCell;if(F){var W,q=F(_,H);return(W=q==null?void 0:q.rowSpan)!==null&&W!==void 0?W:1}return 1},M=function(D){var H=D.start,z=D.end,_=D.getSize,F=D.offsetY;if(z<0)return null;for(var W=l.filter(function(ne){return O(ne,H)===0}),q=H,V=function(Y){if(W=W.filter(function(ie){return O(ie,Y)===0}),!W.length)return q=Y,1},G=H;G>=0&&!V(G);G-=1);for(var K=l.filter(function(ne){return O(ne,z)!==1}),U=z,Z=function(Y){if(K=K.filter(function(ie){return O(ie,Y)!==1}),!K.length)return U=Math.max(Y-1,z),1},Q=z;Q<j.length&&!Z(Q);Q+=1);for(var te=[],X=function(Y){var ie=j[Y];if(!ie)return 1;l.some(function(le){return O(le,Y)>1})&&te.push(Y)},ae=q;ae<=U;ae+=1)X(ae);var re=te.map(function(ne){var Y=j[ne],ie=u(Y.record,ne),le=function(ge){var he=ne+ge-1,Oe=u(j[he].record,he),je=_(ie,Oe);return je.bottom-je.top},de=_(ie);return i.createElement(i4,{key:ne,data:Y,rowKey:ie,index:ne,style:{top:-F+de.top},extra:!0,getHeight:le})});return re},N=i.useMemo(function(){return{columnsOffset:I}},[I]),P="".concat(f,"-tbody"),B=x(["body","wrapper"]),L={};return C&&(L.position="sticky",L.bottom=0,$t(C)==="object"&&C.offsetScroll&&(L.bottom=C.offsetScroll)),i.createElement(dM.Provider,{value:N},i.createElement(wg,{fullHeight:!1,ref:E,prefixCls:"".concat(P,"-virtual"),styles:{horizontalScrollBar:L},className:P,height:S,itemHeight:h||24,data:j,itemKey:function(D){return u(D.record)},component:B,scrollWidth:g,direction:p,onVirtualScroll:function(D){var H,z=D.x;r({currentTarget:(H=E.current)===null||H===void 0?void 0:H.nativeElement,scrollLeft:z})},onScroll:w,extraRender:M},function(k,D,H){var z=u(k.record,D);return i.createElement(i4,{data:k,rowKey:z,index:D,style:H.style})}))}),Ree=ou(Oee),jee=function(t,n){var r=n.ref,a=n.onScroll;return i.createElement(Ree,{ref:r,data:t,onScroll:a})};function Iee(e,t){var n=e.data,r=e.columns,a=e.scroll,l=e.sticky,c=e.prefixCls,u=c===void 0?cM:c,d=e.className,f=e.listItemHeight,v=e.components,g=e.onScroll,p=a||{},b=p.x,C=p.y;typeof b!="number"&&(b=1),typeof C!="number"&&(C=500);var S=Xt(function(w,E){return $a(v,w)||E}),h=Xt(g),x=i.useMemo(function(){return{sticky:l,scrollY:C,listItemHeight:f,getComponent:S,onScroll:h}},[l,C,f,S,h]);return i.createElement(OC.Provider,{value:x},i.createElement(lu,ye({},e,{className:ue(d,"".concat(u,"-virtual")),scroll:se(se({},a),{},{x:b}),components:se(se({},v),{},{body:n!=null&&n.length?jee:void 0}),columns:r,internalHooks:hf,tailor:!0,ref:t})))}var Nee=i.forwardRef(Iee);function fM(e){return QN(Nee,e)}fM();const Mee=e=>null,Tee=e=>null;var RC=i.createContext(null),Pee=i.createContext({}),zee=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,l=t.isEnd,c="".concat(n,"-indent-unit"),u=[],d=0;d<r;d+=1)u.push(i.createElement("span",{key:d,className:ue(c,ee(ee({},"".concat(c,"-start"),a[d]),"".concat(c,"-end"),l[d]))}));return i.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},u)};const Dee=i.memo(zee);var _ee=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],l4="open",s4="close",Aee="---",Kd=function(t){var n,r,a,l=t.eventKey,c=t.className,u=t.style,d=t.dragOver,f=t.dragOverGapTop,v=t.dragOverGapBottom,g=t.isLeaf,p=t.isStart,b=t.isEnd,C=t.expanded,S=t.selected,h=t.checked,x=t.halfChecked,w=t.loading,E=t.domRef,j=t.active,R=t.data,I=t.onMouseMove,O=t.selectable,M=Lt(t,_ee),N=ve.useContext(RC),P=ve.useContext(Pee),B=ve.useRef(null),L=ve.useState(!1),k=fe(L,2),D=k[0],H=k[1],z=!!(N.disabled||t.disabled||(n=P.nodeDisabled)!==null&&n!==void 0&&n.call(P,R)),_=ve.useMemo(function(){return!N.checkable||t.checkable===!1?!1:N.checkable},[N.checkable,t.checkable]),F=function(Ee){z||N.onNodeSelect(Ee,Hr(t))},W=function(Ee){z||!_||t.disableCheckbox||N.onNodeCheck(Ee,Hr(t),!h)},q=ve.useMemo(function(){return typeof O=="boolean"?O:N.selectable},[O,N.selectable]),V=function(Ee){N.onNodeClick(Ee,Hr(t)),q?F(Ee):W(Ee)},G=function(Ee){N.onNodeDoubleClick(Ee,Hr(t))},K=function(Ee){N.onNodeMouseEnter(Ee,Hr(t))},U=function(Ee){N.onNodeMouseLeave(Ee,Hr(t))},Z=function(Ee){N.onNodeContextMenu(Ee,Hr(t))},Q=ve.useMemo(function(){return!!(N.draggable&&(!N.draggable.nodeDraggable||N.draggable.nodeDraggable(R)))},[N.draggable,R]),te=function(Ee){Ee.stopPropagation(),H(!0),N.onNodeDragStart(Ee,t);try{Ee.dataTransfer.setData("text/plain","")}catch{}},X=function(Ee){Ee.preventDefault(),Ee.stopPropagation(),N.onNodeDragEnter(Ee,t)},ae=function(Ee){Ee.preventDefault(),Ee.stopPropagation(),N.onNodeDragOver(Ee,t)},re=function(Ee){Ee.stopPropagation(),N.onNodeDragLeave(Ee,t)},ne=function(Ee){Ee.stopPropagation(),H(!1),N.onNodeDragEnd(Ee,t)},Y=function(Ee){Ee.preventDefault(),Ee.stopPropagation(),H(!1),N.onNodeDrop(Ee,t)},ie=function(Ee){w||N.onNodeExpand(Ee,Hr(t))},le=ve.useMemo(function(){var Te=Ta(N.keyEntities,l)||{},Ee=Te.children;return!!(Ee||[]).length},[N.keyEntities,l]),de=ve.useMemo(function(){return g===!1?!1:g||!N.loadData&&!le||N.loadData&&t.loaded&&!le},[g,N.loadData,le,t.loaded]);ve.useEffect(function(){w||typeof N.loadData=="function"&&C&&!de&&!t.loaded&&N.onNodeLoad(Hr(t))},[w,N.loadData,N.onNodeLoad,C,de,t]);var ce=ve.useMemo(function(){var Te;return(Te=N.draggable)!==null&&Te!==void 0&&Te.icon?ve.createElement("span",{className:"".concat(N.prefixCls,"-draggable-icon")},N.draggable.icon):null},[N.draggable]),ge=function(Ee){var _e=t.switcherIcon||N.switcherIcon;return typeof _e=="function"?_e(se(se({},t),{},{isLeaf:Ee})):_e},he=function(){if(de){var Ee=ge(!0);return Ee!==!1?ve.createElement("span",{className:ue("".concat(N.prefixCls,"-switcher"),"".concat(N.prefixCls,"-switcher-noop"))},Ee):null}var _e=ge(!1);return _e!==!1?ve.createElement("span",{onClick:ie,className:ue("".concat(N.prefixCls,"-switcher"),"".concat(N.prefixCls,"-switcher_").concat(C?l4:s4))},_e):null},Oe=ve.useMemo(function(){if(!_)return null;var Te=typeof _!="boolean"?_:null;return ve.createElement("span",{className:ue("".concat(N.prefixCls,"-checkbox"),ee(ee(ee({},"".concat(N.prefixCls,"-checkbox-checked"),h),"".concat(N.prefixCls,"-checkbox-indeterminate"),!h&&x),"".concat(N.prefixCls,"-checkbox-disabled"),z||t.disableCheckbox)),onClick:W,role:"checkbox","aria-checked":x?"mixed":h,"aria-disabled":z||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},Te)},[_,h,x,z,t.disableCheckbox,t.title]),je=ve.useMemo(function(){return de?null:C?l4:s4},[de,C]),pe=ve.useMemo(function(){return ve.createElement("span",{className:ue("".concat(N.prefixCls,"-iconEle"),"".concat(N.prefixCls,"-icon__").concat(je||"docu"),ee({},"".concat(N.prefixCls,"-icon_loading"),w))})},[N.prefixCls,je,w]),we=ve.useMemo(function(){var Te=!!N.draggable,Ee=!t.disabled&&Te&&N.dragOverNodeKey===l;return Ee?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]),Se=ve.useMemo(function(){var Te=t.title,Ee=Te===void 0?Aee:Te,_e="".concat(N.prefixCls,"-node-content-wrapper"),Re;if(N.showIcon){var Pe=t.icon||N.icon;Re=Pe?ve.createElement("span",{className:ue("".concat(N.prefixCls,"-iconEle"),"".concat(N.prefixCls,"-icon__customize"))},typeof Pe=="function"?Pe(t):Pe):pe}else N.loadData&&w&&(Re=pe);var be;return typeof Ee=="function"?be=Ee(R):N.titleRender?be=N.titleRender(R):be=Ee,ve.createElement("span",{ref:B,title:typeof Ee=="string"?Ee:"",className:ue(_e,"".concat(_e,"-").concat(je||"normal"),ee({},"".concat(N.prefixCls,"-node-selected"),!z&&(S||D))),onMouseEnter:K,onMouseLeave:U,onContextMenu:Z,onClick:V,onDoubleClick:G},Re,ve.createElement("span",{className:"".concat(N.prefixCls,"-title")},be),we)},[N.prefixCls,N.showIcon,t,N.icon,pe,N.titleRender,R,je,K,U,Z,V,G]),Ce=Rr(M,{aria:!0,data:!0}),De=Ta(N.keyEntities,l)||{},Ae=De.level,Ye=b[b.length-1],Ke=!z&&Q,Fe=N.draggingNodeKey===l,Ge=O!==void 0?{"aria-selected":!!O}:void 0;return ve.createElement("div",ye({ref:E,role:"treeitem","aria-expanded":g?void 0:C,className:ue(c,"".concat(N.prefixCls,"-treenode"),(a={},ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(a,"".concat(N.prefixCls,"-treenode-disabled"),z),"".concat(N.prefixCls,"-treenode-switcher-").concat(C?"open":"close"),!g),"".concat(N.prefixCls,"-treenode-checkbox-checked"),h),"".concat(N.prefixCls,"-treenode-checkbox-indeterminate"),x),"".concat(N.prefixCls,"-treenode-selected"),S),"".concat(N.prefixCls,"-treenode-loading"),w),"".concat(N.prefixCls,"-treenode-active"),j),"".concat(N.prefixCls,"-treenode-leaf-last"),Ye),"".concat(N.prefixCls,"-treenode-draggable"),Q),"dragging",Fe),ee(ee(ee(ee(ee(ee(ee(a,"drop-target",N.dropTargetKey===l),"drop-container",N.dropContainerKey===l),"drag-over",!z&&d),"drag-over-gap-top",!z&&f),"drag-over-gap-bottom",!z&&v),"filter-node",(r=N.filterTreeNode)===null||r===void 0?void 0:r.call(N,Hr(t))),"".concat(N.prefixCls,"-treenode-leaf"),de))),style:u,draggable:Ke,onDragStart:Ke?te:void 0,onDragEnter:Q?X:void 0,onDragOver:Q?ae:void 0,onDragLeave:Q?re:void 0,onDrop:Q?Y:void 0,onDragEnd:Q?ne:void 0,onMouseMove:I},Ge,Ce),ve.createElement(Dee,{prefixCls:N.prefixCls,level:Ae,isStart:p,isEnd:b}),ce,he(),Oe,Se)};Kd.isTreeNode=1;function Vo(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function pi(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function jC(e){return e.split("-")}function Bee(e,t){var n=[],r=Ta(t,e);function a(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(c){var u=c.key,d=c.children;n.push(u),a(d)})}return a(r.children),n}function kee(e){if(e.parent){var t=jC(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Lee(e){var t=jC(e.pos);return Number(t[t.length-1])===0}function c4(e,t,n,r,a,l,c,u,d,f){var v,g=e.clientX,p=e.clientY,b=e.target.getBoundingClientRect(),C=b.top,S=b.height,h=(f==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-g),x=(h-12)/r,w=d.filter(function(z){var _;return(_=u[z])===null||_===void 0||(_=_.children)===null||_===void 0?void 0:_.length}),E=Ta(u,n.eventKey);if(p<C+S/2){var j=c.findIndex(function(z){return z.key===E.key}),R=j<=0?0:j-1,I=c[R].key;E=Ta(u,I)}var O=E.key,M=E,N=E.key,P=0,B=0;if(!w.includes(O))for(var L=0;L<x&&kee(E);L+=1)E=E.parent,B+=1;var k=t.data,D=E.node,H=!0;return Lee(E)&&E.level===0&&p<C+S/2&&l({dragNode:k,dropNode:D,dropPosition:-1})&&E.key===n.eventKey?P=-1:(M.children||[]).length&&w.includes(N)?l({dragNode:k,dropNode:D,dropPosition:0})?P=0:H=!1:B===0?x>-1.5?l({dragNode:k,dropNode:D,dropPosition:1})?P=1:H=!1:l({dragNode:k,dropNode:D,dropPosition:0})?P=0:l({dragNode:k,dropNode:D,dropPosition:1})?P=1:H=!1:l({dragNode:k,dropNode:D,dropPosition:1})?P=1:H=!1,{dropPosition:P,dropLevelOffset:B,dropTargetKey:E.key,dropTargetPos:E.pos,dragOverNodeKey:N,dropContainerKey:P===0?null:((v=E.parent)===null||v===void 0?void 0:v.key)||null,dropAllowed:H}}function u4(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Z0(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if($t(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Xn(!1,"`checkedKeys` is not an array or an object"),null;return t}function Hy(e,t){var n=new Set;function r(a){if(!n.has(a)){var l=Ta(t,a);if(l){n.add(a);var c=l.parent,u=l.node;u.disabled||c&&r(c.key)}}}return(e||[]).forEach(function(a){r(a)}),Ne(n)}const nl={},Fy="SELECT_ALL",Vy="SELECT_INVERT",Wy="SELECT_NONE",d4=[],mM=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&mM(e,r[e],n)}),n),Hee=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:l,getTitleCheckboxProps:c,onChange:u,onSelect:d,onSelectAll:f,onSelectInvert:v,onSelectNone:g,onSelectMultiple:p,columnWidth:b,type:C,selections:S,fixed:h,renderCell:x,hideSelectAll:w,checkStrictly:E=!0}=t||{},{prefixCls:j,data:R,pageData:I,getRecordByKey:O,getRowKey:M,expandType:N,childrenColumnName:P,locale:B,getPopupContainer:L}=e,k=Qo(),[D,H]=$_(Y=>Y),[z,_]=bn(r||a||d4,{value:r}),F=i.useRef(new Map),W=i.useCallback(Y=>{if(n){const ie=new Map;Y.forEach(le=>{let de=O(le);!de&&F.current.has(le)&&(de=F.current.get(le)),ie.set(le,de)}),F.current=ie}},[O,n]);i.useEffect(()=>{W(z)},[z]);const q=i.useMemo(()=>mM(P,I),[P,I]),{keyEntities:V}=i.useMemo(()=>{if(E)return{keyEntities:null};let Y=R;if(n){const ie=new Set(q.map((de,ce)=>M(de,ce))),le=Array.from(F.current).reduce((de,[ce,ge])=>ie.has(ce)?de:de.concat(ge),[]);Y=[].concat(Ne(Y),Ne(le))}return Hg(Y,{externalGetKey:M,childrenPropName:P})},[R,M,E,P,n,q]),G=i.useMemo(()=>{const Y=new Map;return q.forEach((ie,le)=>{const de=M(ie,le),ce=(l?l(ie):null)||{};Y.set(de,ce)}),Y},[q,M,l]),K=i.useCallback(Y=>{const ie=M(Y);let le;return G.has(ie)?le=G.get(M(Y)):le=l?l(Y):void 0,!!(le!=null&&le.disabled)},[G,M]),[U,Z]=i.useMemo(()=>{if(E)return[z||[],[]];const{checkedKeys:Y,halfCheckedKeys:ie}=bi(z,!0,V,K);return[Y||[],ie]},[z,E,V,K]),Q=i.useMemo(()=>{const Y=C==="radio"?U.slice(0,1):U;return new Set(Y)},[U,C]),te=i.useMemo(()=>C==="radio"?new Set:new Set(Z),[Z,C]);i.useEffect(()=>{t||_(d4)},[!!t]);const X=i.useCallback((Y,ie)=>{let le,de;W(Y),n?(le=Y,de=Y.map(ce=>F.current.get(ce))):(le=[],de=[],Y.forEach(ce=>{const ge=O(ce);ge!==void 0&&(le.push(ce),de.push(ge))})),_(le),u==null||u(le,de,{type:ie})},[_,O,u,n]),ae=i.useCallback((Y,ie,le,de)=>{if(d){const ce=le.map(ge=>O(ge));d(O(Y),ie,ce,de)}X(le,"single")},[d,O,X]),re=i.useMemo(()=>!S||w?null:(S===!0?[Fy,Vy,Wy]:S).map(ie=>ie===Fy?{key:"all",text:B.selectionAll,onSelect(){X(R.map((le,de)=>M(le,de)).filter(le=>{const de=G.get(le);return!(de!=null&&de.disabled)||Q.has(le)}),"all")}}:ie===Vy?{key:"invert",text:B.selectInvert,onSelect(){const le=new Set(Q);I.forEach((ce,ge)=>{const he=M(ce,ge),Oe=G.get(he);Oe!=null&&Oe.disabled||(le.has(he)?le.delete(he):le.add(he))});const de=Array.from(le);v&&(k.deprecated(!1,"onSelectInvert","onChange"),v(de)),X(de,"invert")}}:ie===Wy?{key:"none",text:B.selectNone,onSelect(){g==null||g(),X(Array.from(Q).filter(le=>{const de=G.get(le);return de==null?void 0:de.disabled}),"none")}}:ie).map(ie=>Object.assign(Object.assign({},ie),{onSelect:(...le)=>{var de,ce;(ce=ie.onSelect)===null||ce===void 0||(de=ce).call.apply(de,[ie].concat(le)),H(null)}})),[S,Q,I,M,v,X]);return[i.useCallback(Y=>{var ie;if(!t)return Y.filter(Te=>Te!==nl);let le=Ne(Y);const de=new Set(Q),ce=q.map(M).filter(Te=>!G.get(Te).disabled),ge=ce.every(Te=>de.has(Te)),he=ce.some(Te=>de.has(Te)),Oe=()=>{const Te=[];ge?ce.forEach(_e=>{de.delete(_e),Te.push(_e)}):ce.forEach(_e=>{de.has(_e)||(de.add(_e),Te.push(_e))});const Ee=Array.from(de);f==null||f(!ge,Ee.map(_e=>O(_e)),Te.map(_e=>O(_e))),X(Ee,"all"),H(null)};let je,pe;if(C!=="radio"){let Te;if(re){const Le={getPopupContainer:L,items:re.map((et,bt)=>{const{key:We,text:tt,onSelect:dt}=et;return{key:We??bt,onClick:()=>{dt==null||dt(ce)},label:tt}})};Te=i.createElement("div",{className:`${j}-selection-extra`},i.createElement(as,{menu:Le,getPopupContainer:L},i.createElement("span",null,i.createElement(Eg,null))))}const Ee=q.map((Le,et)=>{const bt=M(Le,et),We=G.get(bt)||{};return Object.assign({checked:de.has(bt)},We)}).filter(({disabled:Le})=>Le),_e=!!Ee.length&&Ee.length===q.length,Re=_e&&Ee.every(({checked:Le})=>Le),Pe=_e&&Ee.some(({checked:Le})=>Le),be=(c==null?void 0:c())||{},{onChange:$e,disabled:Me}=be;pe=i.createElement(ya,Object.assign({"aria-label":Te?"Custom selection":"Select all"},be,{checked:_e?Re:!!q.length&&ge,indeterminate:_e?!Re&&Pe:!ge&&he,onChange:Le=>{Oe(),$e==null||$e(Le)},disabled:Me??(q.length===0||_e),skipGroup:!0})),je=!w&&i.createElement("div",{className:`${j}-selection`},pe,Te)}let we;C==="radio"?we=(Te,Ee,_e)=>{const Re=M(Ee,_e),Pe=de.has(Re),be=G.get(Re);return{node:i.createElement(_r,Object.assign({},be,{checked:Pe,onClick:$e=>{var Me;$e.stopPropagation(),(Me=be==null?void 0:be.onClick)===null||Me===void 0||Me.call(be,$e)},onChange:$e=>{var Me;de.has(Re)||ae(Re,!0,[Re],$e.nativeEvent),(Me=be==null?void 0:be.onChange)===null||Me===void 0||Me.call(be,$e)}})),checked:Pe}}:we=(Te,Ee,_e)=>{var Re;const Pe=M(Ee,_e),be=de.has(Pe),$e=te.has(Pe),Me=G.get(Pe);let Le;return N==="nest"?Le=$e:Le=(Re=Me==null?void 0:Me.indeterminate)!==null&&Re!==void 0?Re:$e,{node:i.createElement(ya,Object.assign({},Me,{indeterminate:Le,checked:be,skipGroup:!0,onClick:et=>{var bt;et.stopPropagation(),(bt=Me==null?void 0:Me.onClick)===null||bt===void 0||bt.call(Me,et)},onChange:et=>{var bt;const{nativeEvent:We}=et,{shiftKey:tt}=We,dt=ce.indexOf(Pe),at=U.some(pt=>ce.includes(pt));if(tt&&E&&at){const pt=D(dt,ce,de),Pt=Array.from(de);p==null||p(!be,Pt.map(Et=>O(Et)),pt.map(Et=>O(Et))),X(Pt,"multiple")}else{const pt=U;if(E){const Pt=be?Vo(pt,Pe):pi(pt,Pe);ae(Pe,!be,Pt,We)}else{const Pt=bi([].concat(Ne(pt),[Pe]),!0,V,K),{checkedKeys:Et,halfCheckedKeys:ct}=Pt;let St=Et;if(be){const yt=new Set(Et);yt.delete(Pe),St=bi(Array.from(yt),{halfCheckedKeys:ct},V,K).checkedKeys}ae(Pe,!be,St,We)}}H(be?null:dt),(bt=Me==null?void 0:Me.onChange)===null||bt===void 0||bt.call(Me,et)}})),checked:be}};const Se=(Te,Ee,_e)=>{const{node:Re,checked:Pe}=we(Te,Ee,_e);return x?x(Pe,Ee,_e,Re):Re};if(!le.includes(nl))if(le.findIndex(Te=>{var Ee;return((Ee=Te[Ed])===null||Ee===void 0?void 0:Ee.columnType)==="EXPAND_COLUMN"})===0){const[Te,...Ee]=le;le=[Te,nl].concat(Ne(Ee))}else le=[nl].concat(Ne(le));const Ce=le.indexOf(nl);le=le.filter((Te,Ee)=>Te!==nl||Ee===Ce);const De=le[Ce-1],Ae=le[Ce+1];let Ye=h;Ye===void 0&&((Ae==null?void 0:Ae.fixed)!==void 0?Ye=Ae.fixed:(De==null?void 0:De.fixed)!==void 0&&(Ye=De.fixed)),Ye&&De&&((ie=De[Ed])===null||ie===void 0?void 0:ie.columnType)==="EXPAND_COLUMN"&&De.fixed===void 0&&(De.fixed=Ye);const Ke=ue(`${j}-selection-col`,{[`${j}-selection-col-with-dropdown`]:S&&C==="checkbox"}),Fe=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(pe):t.columnTitle:je,Ge={fixed:Ye,width:b,className:`${j}-selection-column`,title:Fe(),render:Se,onCell:t.onCell,align:t.align,[Ed]:{className:Ke}};return le.map(Te=>Te===nl?Ge:Te)},[M,q,t,U,Q,te,b,re,N,G,p,ae,K]),Q]};function Fee(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:l,expandable:c}=t,u=`${n}-row-expand-icon`;return i.createElement("button",{type:"button",onClick:d=>{r(a,d),d.stopPropagation()},className:ue(u,{[`${u}-spaced`]:!c,[`${u}-expanded`]:c&&l,[`${u}-collapsed`]:c&&!l}),"aria-label":l?e.collapse:e.expand,"aria-expanded":l})}}function Vee(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let l=r;if(a){const c=getComputedStyle(a),u=Number.parseInt(c.borderLeftWidth,10),d=Number.parseInt(c.borderRightWidth,10);l=r-u-d}return l}}const vl=(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 su(e,t){return t?`${t}-${e}`:`${e}`}const Qg=(e,t)=>typeof e=="function"?e(t):e,Wee=(e,t)=>{const n=Qg(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};var Kee={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"},Uee=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Kee}))},qee=i.forwardRef(Uee),Gee=function(t){var n=t.dropPosition,r=t.dropLevelOffset,a=t.indent,l={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:l.top=0,l.left=-r*a;break;case 1:l.bottom=0,l.left=-r*a;break;case 0:l.bottom=0,l.left=a;break}return ve.createElement("div",{style:l})};function vM(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Xee(e,t){var n=i.useState(!1),r=fe(n,2),a=r[0],l=r[1];nn(function(){if(a)return e(),function(){t()}},[a]),nn(function(){return l(!0),function(){l(!1)}},[])}var Yee=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Qee=i.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.motion,l=e.motionNodes,c=e.motionType,u=e.onMotionStart,d=e.onMotionEnd,f=e.active,v=e.treeNodeRequiredProps,g=Lt(e,Yee),p=i.useState(!0),b=fe(p,2),C=b[0],S=b[1],h=i.useContext(RC),x=h.prefixCls,w=l&&c!=="hide";nn(function(){l&&w!==C&&S(w)},[l]);var E=function(){l&&u()},j=i.useRef(!1),R=function(){l&&!j.current&&(j.current=!0,d())};Xee(E,R);var I=function(M){w===M&&R()};return l?i.createElement(Qr,ye({ref:t,visible:C},a,{motionAppear:c==="show",onVisibleChanged:I}),function(O,M){var N=O.className,P=O.style;return i.createElement("div",{ref:M,className:ue("".concat(x,"-treenode-motion"),N),style:P},l.map(function(B){var L=Object.assign({},(vM(B.data),B.data)),k=B.title,D=B.key,H=B.isStart,z=B.isEnd;delete L.children;var _=wd(D,v);return i.createElement(Kd,ye({},L,_,{title:k,active:f,data:B.data,key:D,isStart:H,isEnd:z}))}))}):i.createElement(Kd,ye({domRef:t,className:n,style:r},g,{active:f}))});function Zee(){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(l,c){var u=new Map;l.forEach(function(f){u.set(f,!0)});var d=c.filter(function(f){return!u.has(f)});return d.length===1?d[0]:null}return n<r?{add:!0,key:a(e,t)}:{add:!1,key:a(t,e)}}function f4(e,t,n){var r=e.findIndex(function(u){return u.key===n}),a=e[r+1],l=t.findIndex(function(u){return u.key===n});if(a){var c=t.findIndex(function(u){return u.key===a.key});return t.slice(l+1,c)}return t.slice(l+1)}var Jee=["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"],m4={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ete=function(){},ms="RC_TREE_MOTION_".concat(Math.random()),Ky={key:ms},gM={key:ms,level:0,index:0,pos:"0",node:Ky,nodes:[Ky]},v4={parent:null,children:[],pos:gM.pos,data:Ky,title:null,key:ms,isStart:[],isEnd:[]};function g4(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function p4(e){var t=e.key,n=e.pos;return vf(t,n)}function tte(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 nte=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,l=e.selectedKeys,c=e.checkedKeys,u=e.loadedKeys,d=e.loadingKeys,f=e.halfCheckedKeys,v=e.keyEntities,g=e.disabled,p=e.dragging,b=e.dragOverNodeKey,C=e.dropPosition,S=e.motion,h=e.height,x=e.itemHeight,w=e.virtual,E=e.scrollWidth,j=e.focusable,R=e.activeItem,I=e.focused,O=e.tabIndex,M=e.onKeyDown,N=e.onFocus,P=e.onBlur,B=e.onActiveChange,L=e.onListChangeStart,k=e.onListChangeEnd,D=Lt(e,Jee),H=i.useRef(null),z=i.useRef(null);i.useImperativeHandle(t,function(){return{scrollTo:function(we){H.current.scrollTo(we)},getIndentWidth:function(){return z.current.offsetWidth}}});var _=i.useState(a),F=fe(_,2),W=F[0],q=F[1],V=i.useState(r),G=fe(V,2),K=G[0],U=G[1],Z=i.useState(r),Q=fe(Z,2),te=Q[0],X=Q[1],ae=i.useState([]),re=fe(ae,2),ne=re[0],Y=re[1],ie=i.useState(null),le=fe(ie,2),de=le[0],ce=le[1],ge=i.useRef(r);ge.current=r;function he(){var pe=ge.current;U(pe),X(pe),Y([]),ce(null),k()}nn(function(){q(a);var pe=Zee(W,a);if(pe.key!==null)if(pe.add){var we=K.findIndex(function(Ke){var Fe=Ke.key;return Fe===pe.key}),Se=g4(f4(K,r,pe.key),w,h,x),Ce=K.slice();Ce.splice(we+1,0,v4),X(Ce),Y(Se),ce("show")}else{var De=r.findIndex(function(Ke){var Fe=Ke.key;return Fe===pe.key}),Ae=g4(f4(r,K,pe.key),w,h,x),Ye=r.slice();Ye.splice(De+1,0,v4),X(Ye),Y(Ae),ce("hide")}else K!==r&&(U(r),X(r))},[a,r]),i.useEffect(function(){p||he()},[p]);var Oe=S?te:r,je={expandedKeys:a,selectedKeys:l,loadedKeys:u,loadingKeys:d,checkedKeys:c,halfCheckedKeys:f,dragOverNodeKey:b,dropPosition:C,keyEntities:v};return i.createElement(i.Fragment,null,I&&R&&i.createElement("span",{style:m4,"aria-live":"assertive"},tte(R)),i.createElement("div",null,i.createElement("input",{style:m4,disabled:j===!1||g,tabIndex:j!==!1?O:null,onKeyDown:M,onFocus:N,onBlur:P,value:"",onChange:ete,"aria-label":"for screen reader"})),i.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},i.createElement("div",{className:"".concat(n,"-indent")},i.createElement("div",{ref:z,className:"".concat(n,"-indent-unit")}))),i.createElement(wg,ye({},D,{data:Oe,itemKey:p4,height:h,fullHeight:!1,virtual:w,itemHeight:x,scrollWidth:E,prefixCls:"".concat(n,"-list"),ref:H,role:"tree",onVisibleChange:function(we){we.every(function(Se){return p4(Se)!==ms})&&he()}}),function(pe){var we=pe.pos,Se=Object.assign({},(vM(pe.data),pe.data)),Ce=pe.title,De=pe.key,Ae=pe.isStart,Ye=pe.isEnd,Ke=vf(De,we);delete Se.key,delete Se.children;var Fe=wd(Ke,je);return i.createElement(Qee,ye({},Se,Fe,{title:Ce,active:!!R&&De===R.key,pos:we,data:pe.data,isStart:Ae,isEnd:Ye,motion:S,motionNodes:De===ms?ne:null,motionType:de,onMotionStart:L,onMotionEnd:he,treeNodeRequiredProps:je,onMouseMove:function(){B(null)}}))}))}),rte=10,IC=(function(e){Xa(n,e);var t=go(n);function n(){var r;ur(this,n);for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return r=t.call.apply(t,[this].concat(l)),ee(xt(r),"destroyed",!1),ee(xt(r),"delayedDragEnterLogic",void 0),ee(xt(r),"loadingRetryTimes",{}),ee(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:Lc()}),ee(xt(r),"dragStartMousePosition",null),ee(xt(r),"dragNodeProps",null),ee(xt(r),"currentMouseOverDroppableNodeKey",null),ee(xt(r),"listRef",i.createRef()),ee(xt(r),"onNodeDragStart",function(u,d){var f=r.state,v=f.expandedKeys,g=f.keyEntities,p=r.props.onDragStart,b=d.eventKey;r.dragNodeProps=d,r.dragStartMousePosition={x:u.clientX,y:u.clientY};var C=Vo(v,b);r.setState({draggingNodeKey:b,dragChildrenKeys:Bee(b,g),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(C),window.addEventListener("dragend",r.onWindowDragEnd),p==null||p({event:u,node:Hr(d)})}),ee(xt(r),"onNodeDragEnter",function(u,d){var f=r.state,v=f.expandedKeys,g=f.keyEntities,p=f.dragChildrenKeys,b=f.flattenNodes,C=f.indent,S=r.props,h=S.onDragEnter,x=S.onExpand,w=S.allowDrop,E=S.direction,j=d.pos,R=d.eventKey;if(r.currentMouseOverDroppableNodeKey!==R&&(r.currentMouseOverDroppableNodeKey=R),!r.dragNodeProps){r.resetDragState();return}var I=c4(u,r.dragNodeProps,d,C,r.dragStartMousePosition,w,b,g,v,E),O=I.dropPosition,M=I.dropLevelOffset,N=I.dropTargetKey,P=I.dropContainerKey,B=I.dropTargetPos,L=I.dropAllowed,k=I.dragOverNodeKey;if(p.includes(N)||!L){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(D){clearTimeout(r.delayedDragEnterLogic[D])}),r.dragNodeProps.eventKey!==d.eventKey&&(u.persist(),r.delayedDragEnterLogic[j]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var D=Ne(v),H=Ta(g,d.eventKey);H&&(H.children||[]).length&&(D=pi(v,d.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(D),x==null||x(D,{node:Hr(d),expanded:!0,nativeEvent:u.nativeEvent})}},800)),r.dragNodeProps.eventKey===N&&M===0){r.resetDragState();return}r.setState({dragOverNodeKey:k,dropPosition:O,dropLevelOffset:M,dropTargetKey:N,dropContainerKey:P,dropTargetPos:B,dropAllowed:L}),h==null||h({event:u,node:Hr(d),expandedKeys:v})}),ee(xt(r),"onNodeDragOver",function(u,d){var f=r.state,v=f.dragChildrenKeys,g=f.flattenNodes,p=f.keyEntities,b=f.expandedKeys,C=f.indent,S=r.props,h=S.onDragOver,x=S.allowDrop,w=S.direction;if(r.dragNodeProps){var E=c4(u,r.dragNodeProps,d,C,r.dragStartMousePosition,x,g,p,b,w),j=E.dropPosition,R=E.dropLevelOffset,I=E.dropTargetKey,O=E.dropContainerKey,M=E.dropTargetPos,N=E.dropAllowed,P=E.dragOverNodeKey;v.includes(I)||!N||(r.dragNodeProps.eventKey===I&&R===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():j===r.state.dropPosition&&R===r.state.dropLevelOffset&&I===r.state.dropTargetKey&&O===r.state.dropContainerKey&&M===r.state.dropTargetPos&&N===r.state.dropAllowed&&P===r.state.dragOverNodeKey||r.setState({dropPosition:j,dropLevelOffset:R,dropTargetKey:I,dropContainerKey:O,dropTargetPos:M,dropAllowed:N,dragOverNodeKey:P}),h==null||h({event:u,node:Hr(d)}))}}),ee(xt(r),"onNodeDragLeave",function(u,d){r.currentMouseOverDroppableNodeKey===d.eventKey&&!u.currentTarget.contains(u.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var f=r.props.onDragLeave;f==null||f({event:u,node:Hr(d)})}),ee(xt(r),"onWindowDragEnd",function(u){r.onNodeDragEnd(u,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),ee(xt(r),"onNodeDragEnd",function(u,d){var f=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),f==null||f({event:u,node:Hr(d)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),ee(xt(r),"onNodeDrop",function(u,d){var f,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=r.state,p=g.dragChildrenKeys,b=g.dropPosition,C=g.dropTargetKey,S=g.dropTargetPos,h=g.dropAllowed;if(h){var x=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),C!==null){var w=se(se({},wd(C,r.getTreeNodeRequiredProps())),{},{active:((f=r.getActiveItem())===null||f===void 0?void 0:f.key)===C,data:Ta(r.state.keyEntities,C).node}),E=p.includes(C);Xn(!E,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var j=jC(S),R={event:u,node:Hr(w),dragNode:r.dragNodeProps?Hr(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(p),dropToGap:b!==0,dropPosition:b+Number(j[j.length-1])};v||x==null||x(R),r.dragNodeProps=null}}}),ee(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}),ee(xt(r),"triggerExpandActionExpand",function(u,d){var f=r.state,v=f.expandedKeys,g=f.flattenNodes,p=d.expanded,b=d.key,C=d.isLeaf;if(!(C||u.shiftKey||u.metaKey||u.ctrlKey)){var S=g.filter(function(x){return x.key===b})[0],h=Hr(se(se({},wd(b,r.getTreeNodeRequiredProps())),{},{data:S.data}));r.setExpandedKeys(p?Vo(v,b):pi(v,b)),r.onNodeExpand(u,h)}}),ee(xt(r),"onNodeClick",function(u,d){var f=r.props,v=f.onClick,g=f.expandAction;g==="click"&&r.triggerExpandActionExpand(u,d),v==null||v(u,d)}),ee(xt(r),"onNodeDoubleClick",function(u,d){var f=r.props,v=f.onDoubleClick,g=f.expandAction;g==="doubleClick"&&r.triggerExpandActionExpand(u,d),v==null||v(u,d)}),ee(xt(r),"onNodeSelect",function(u,d){var f=r.state.selectedKeys,v=r.state,g=v.keyEntities,p=v.fieldNames,b=r.props,C=b.onSelect,S=b.multiple,h=d.selected,x=d[p.key],w=!h;w?S?f=pi(f,x):f=[x]:f=Vo(f,x);var E=f.map(function(j){var R=Ta(g,j);return R?R.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:f}),C==null||C(f,{event:"select",selected:w,node:d,selectedNodes:E,nativeEvent:u.nativeEvent})}),ee(xt(r),"onNodeCheck",function(u,d,f){var v=r.state,g=v.keyEntities,p=v.checkedKeys,b=v.halfCheckedKeys,C=r.props,S=C.checkStrictly,h=C.onCheck,x=d.key,w,E={event:"check",node:d,checked:f,nativeEvent:u.nativeEvent};if(S){var j=f?pi(p,x):Vo(p,x),R=Vo(b,x);w={checked:j,halfChecked:R},E.checkedNodes=j.map(function(B){return Ta(g,B)}).filter(Boolean).map(function(B){return B.node}),r.setUncontrolledState({checkedKeys:j})}else{var I=bi([].concat(Ne(p),[x]),!0,g),O=I.checkedKeys,M=I.halfCheckedKeys;if(!f){var N=new Set(O);N.delete(x);var P=bi(Array.from(N),{halfCheckedKeys:M},g);O=P.checkedKeys,M=P.halfCheckedKeys}w=O,E.checkedNodes=[],E.checkedNodesPositions=[],E.halfCheckedKeys=M,O.forEach(function(B){var L=Ta(g,B);if(L){var k=L.node,D=L.pos;E.checkedNodes.push(k),E.checkedNodesPositions.push({node:k,pos:D})}}),r.setUncontrolledState({checkedKeys:O},!1,{halfCheckedKeys:M})}h==null||h(w,E)}),ee(xt(r),"onNodeLoad",function(u){var d,f=u.key,v=r.state.keyEntities,g=Ta(v,f);if(!(g!=null&&(d=g.children)!==null&&d!==void 0&&d.length)){var p=new Promise(function(b,C){r.setState(function(S){var h=S.loadedKeys,x=h===void 0?[]:h,w=S.loadingKeys,E=w===void 0?[]:w,j=r.props,R=j.loadData,I=j.onLoad;if(!R||x.includes(f)||E.includes(f))return null;var O=R(u);return O.then(function(){var M=r.state.loadedKeys,N=pi(M,f);I==null||I(N,{event:"load",node:u}),r.setUncontrolledState({loadedKeys:N}),r.setState(function(P){return{loadingKeys:Vo(P.loadingKeys,f)}}),b()}).catch(function(M){if(r.setState(function(P){return{loadingKeys:Vo(P.loadingKeys,f)}}),r.loadingRetryTimes[f]=(r.loadingRetryTimes[f]||0)+1,r.loadingRetryTimes[f]>=rte){var N=r.state.loadedKeys;Xn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:pi(N,f)}),b()}C(M)}),{loadingKeys:pi(E,f)}})});return p.catch(function(){}),p}}),ee(xt(r),"onNodeMouseEnter",function(u,d){var f=r.props.onMouseEnter;f==null||f({event:u,node:d})}),ee(xt(r),"onNodeMouseLeave",function(u,d){var f=r.props.onMouseLeave;f==null||f({event:u,node:d})}),ee(xt(r),"onNodeContextMenu",function(u,d){var f=r.props.onRightClick;f&&(u.preventDefault(),f({event:u,node:d}))}),ee(xt(r),"onFocus",function(){var u=r.props.onFocus;r.setState({focused:!0});for(var d=arguments.length,f=new Array(d),v=0;v<d;v++)f[v]=arguments[v];u==null||u.apply(void 0,f)}),ee(xt(r),"onBlur",function(){var u=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var d=arguments.length,f=new Array(d),v=0;v<d;v++)f[v]=arguments[v];u==null||u.apply(void 0,f)}),ee(xt(r),"getTreeNodeRequiredProps",function(){var u=r.state,d=u.expandedKeys,f=u.selectedKeys,v=u.loadedKeys,g=u.loadingKeys,p=u.checkedKeys,b=u.halfCheckedKeys,C=u.dragOverNodeKey,S=u.dropPosition,h=u.keyEntities;return{expandedKeys:d||[],selectedKeys:f||[],loadedKeys:v||[],loadingKeys:g||[],checkedKeys:p||[],halfCheckedKeys:b||[],dragOverNodeKey:C,dropPosition:S,keyEntities:h}}),ee(xt(r),"setExpandedKeys",function(u){var d=r.state,f=d.treeData,v=d.fieldNames,g=V0(f,u,v);r.setUncontrolledState({expandedKeys:u,flattenNodes:g},!0)}),ee(xt(r),"onNodeExpand",function(u,d){var f=r.state.expandedKeys,v=r.state,g=v.listChanging,p=v.fieldNames,b=r.props,C=b.onExpand,S=b.loadData,h=d.expanded,x=d[p.key];if(!g){var w=f.includes(x),E=!h;if(Xn(h&&w||!h&&!w,"Expand state not sync with index check"),f=E?pi(f,x):Vo(f,x),r.setExpandedKeys(f),C==null||C(f,{node:d,expanded:E,nativeEvent:u.nativeEvent}),E&&S){var j=r.onNodeLoad(d);j&&j.then(function(){var R=V0(r.state.treeData,f,p);r.setUncontrolledState({flattenNodes:R})}).catch(function(){var R=r.state.expandedKeys,I=Vo(R,x);r.setExpandedKeys(I)})}}}),ee(xt(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),ee(xt(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),ee(xt(r),"onActiveChange",function(u){var d=r.state.activeKey,f=r.props,v=f.onActiveChange,g=f.itemScrollOffset,p=g===void 0?0:g;d!==u&&(r.setState({activeKey:u}),u!==null&&r.scrollTo({key:u,offset:p}),v==null||v(u))}),ee(xt(r),"getActiveItem",function(){var u=r.state,d=u.activeKey,f=u.flattenNodes;return d===null?null:f.find(function(v){var g=v.key;return g===d})||null}),ee(xt(r),"offsetActiveKey",function(u){var d=r.state,f=d.flattenNodes,v=d.activeKey,g=f.findIndex(function(C){var S=C.key;return S===v});g===-1&&u<0&&(g=f.length),g=(g+u+f.length)%f.length;var p=f[g];if(p){var b=p.key;r.onActiveChange(b)}else r.onActiveChange(null)}),ee(xt(r),"onKeyDown",function(u){var d=r.state,f=d.activeKey,v=d.expandedKeys,g=d.checkedKeys,p=d.fieldNames,b=r.props,C=b.onKeyDown,S=b.checkable,h=b.selectable;switch(u.which){case ot.UP:{r.offsetActiveKey(-1),u.preventDefault();break}case ot.DOWN:{r.offsetActiveKey(1),u.preventDefault();break}}var x=r.getActiveItem();if(x&&x.data){var w=r.getTreeNodeRequiredProps(),E=x.data.isLeaf===!1||!!(x.data[p.children]||[]).length,j=Hr(se(se({},wd(f,w)),{},{data:x.data,active:!0}));switch(u.which){case ot.LEFT:{E&&v.includes(f)?r.onNodeExpand({},j):x.parent&&r.onActiveChange(x.parent.key),u.preventDefault();break}case ot.RIGHT:{E&&!v.includes(f)?r.onNodeExpand({},j):x.children&&x.children.length&&r.onActiveChange(x.children[0].key),u.preventDefault();break}case ot.ENTER:case ot.SPACE:{S&&!j.disabled&&j.checkable!==!1&&!j.disableCheckbox?r.onNodeCheck({},j,!g.includes(f)):!S&&h&&!j.disabled&&j.selectable!==!1&&r.onNodeSelect({},j);break}}}C==null||C(u)}),ee(xt(r),"setUncontrolledState",function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var v=!1,g=!0,p={};Object.keys(u).forEach(function(b){if(r.props.hasOwnProperty(b)){g=!1;return}v=!0,p[b]=u[b]}),v&&(!d||g)&&r.setState(se(se({},p),f))}}),ee(xt(r),"scrollTo",function(u){r.listRef.current.scrollTo(u)}),r}return dr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,l=a.activeKey,c=a.itemScrollOffset,u=c===void 0?0:c;l!==void 0&&l!==this.state.activeKey&&(this.setState({activeKey:l}),l!==null&&this.scrollTo({key:l,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,l=a.focused,c=a.flattenNodes,u=a.keyEntities,d=a.draggingNodeKey,f=a.activeKey,v=a.dropLevelOffset,g=a.dropContainerKey,p=a.dropTargetKey,b=a.dropPosition,C=a.dragOverNodeKey,S=a.indent,h=this.props,x=h.prefixCls,w=h.className,E=h.style,j=h.showLine,R=h.focusable,I=h.tabIndex,O=I===void 0?0:I,M=h.selectable,N=h.showIcon,P=h.icon,B=h.switcherIcon,L=h.draggable,k=h.checkable,D=h.checkStrictly,H=h.disabled,z=h.motion,_=h.loadData,F=h.filterTreeNode,W=h.height,q=h.itemHeight,V=h.scrollWidth,G=h.virtual,K=h.titleRender,U=h.dropIndicatorRender,Z=h.onContextMenu,Q=h.onScroll,te=h.direction,X=h.rootClassName,ae=h.rootStyle,re=Rr(this.props,{aria:!0,data:!0}),ne;L&&($t(L)==="object"?ne=L:typeof L=="function"?ne={nodeDraggable:L}:ne={});var Y={prefixCls:x,selectable:M,showIcon:N,icon:P,switcherIcon:B,draggable:ne,draggingNodeKey:d,checkable:k,checkStrictly:D,disabled:H,keyEntities:u,dropLevelOffset:v,dropContainerKey:g,dropTargetKey:p,dropPosition:b,dragOverNodeKey:C,indent:S,direction:te,dropIndicatorRender:U,loadData:_,filterTreeNode:F,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 i.createElement(RC.Provider,{value:Y},i.createElement("div",{className:ue(x,w,X,ee(ee(ee({},"".concat(x,"-show-line"),j),"".concat(x,"-focused"),l),"".concat(x,"-active-focused"),f!==null)),style:ae},i.createElement(nte,ye({ref:this.listRef,prefixCls:x,style:E,data:c,disabled:H,selectable:M,checkable:!!k,motion:z,dragging:d!==null,height:W,itemHeight:q,virtual:G,focusable:R,focused:l,tabIndex:O,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Z,onScroll:Q,scrollWidth:V},this.getTreeNodeRequiredProps(),re))))}}],[{key:"getDerivedStateFromProps",value:function(a,l){var c=l.prevProps,u={prevProps:a};function d(O){return!c&&a.hasOwnProperty(O)||c&&c[O]!==a[O]}var f,v=l.fieldNames;if(d("fieldNames")&&(v=Lc(a.fieldNames),u.fieldNames=v),d("treeData")?f=a.treeData:d("children")&&(Xn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),f=KI(a.children)),f){u.treeData=f;var g=Hg(f,{fieldNames:v});u.keyEntities=se(ee({},ms,gM),g.keyEntities)}var p=u.keyEntities||l.keyEntities;if(d("expandedKeys")||c&&d("autoExpandParent"))u.expandedKeys=a.autoExpandParent||!c&&a.defaultExpandParent?Hy(a.expandedKeys,p):a.expandedKeys;else if(!c&&a.defaultExpandAll){var b=se({},p);delete b[ms];var C=[];Object.keys(b).forEach(function(O){var M=b[O];M.children&&M.children.length&&C.push(M.key)}),u.expandedKeys=C}else!c&&a.defaultExpandedKeys&&(u.expandedKeys=a.autoExpandParent||a.defaultExpandParent?Hy(a.defaultExpandedKeys,p):a.defaultExpandedKeys);if(u.expandedKeys||delete u.expandedKeys,f||u.expandedKeys){var S=V0(f||l.treeData,u.expandedKeys||l.expandedKeys,v);u.flattenNodes=S}if(a.selectable&&(d("selectedKeys")?u.selectedKeys=u4(a.selectedKeys,a):!c&&a.defaultSelectedKeys&&(u.selectedKeys=u4(a.defaultSelectedKeys,a))),a.checkable){var h;if(d("checkedKeys")?h=Z0(a.checkedKeys)||{}:!c&&a.defaultCheckedKeys?h=Z0(a.defaultCheckedKeys)||{}:f&&(h=Z0(a.checkedKeys)||{checkedKeys:l.checkedKeys,halfCheckedKeys:l.halfCheckedKeys}),h){var x=h,w=x.checkedKeys,E=w===void 0?[]:w,j=x.halfCheckedKeys,R=j===void 0?[]:j;if(!a.checkStrictly){var I=bi(E,!0,p);E=I.checkedKeys,R=I.halfCheckedKeys}u.checkedKeys=E,u.halfCheckedKeys=R}}return d("loadedKeys")&&(u.loadedKeys=a.loadedKeys),u}}]),n})(i.Component);ee(IC,"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:Gee,allowDrop:function(){return!0},expandAction:!1});ee(IC,"TreeNode",Kd);var ate={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"},ote=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:ate}))},pM=i.forwardRef(ote),ite={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"},lte=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:ite}))},qv=i.forwardRef(lte),ste={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"},cte=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:ste}))},Cv=i.forwardRef(cte),ute={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"},dte=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:ute}))},fte=i.forwardRef(dte);const mte=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:a,borderRadius:l,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:l},"&:hover:before":{background:c}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:l,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),vte=new Jt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),gte=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),pte=(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:`${oe(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),hte=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:l,indentSize:c,nodeSelectedBg:u,nodeHoverBg:d,colorTextQuaternary:f,controlItemBgActiveDisabled:v}=t;return{[n]:Object.assign(Object.assign({},dn(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)`]:jo(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:vte,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:a,lineHeight:oe(l),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:v},[`${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:l,textAlign:"center",visibility:"visible",color:f},[`&${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(l).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},gte(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:l,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:l,height:l,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(l).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(l).div(2).equal()).mul(.8).equal(),height:t.calc(l).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:l,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},pte(e,t)),{"&:hover":{backgroundColor:d},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:u},[`${n}-iconEle`]:{display:"inline-block",width:l,height:l,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(l).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:`${oe(t.calc(l).div(2).equal())} !important`}})}},bte=(e,t,n=!0)=>{const r=`.${e}`,a=`${r}-treenode`,l=t.calc(t.paddingXS).div(2).equal(),c=tn(t,{treeCls:r,treeNodeCls:a,treeNodePadding:l});return[hte(e,c),n&&mte(c)].filter(Boolean)},yte=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}},Cte=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},yte(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},Ste=sn("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:uC(`${t}-checkbox`,e)},bte(t,e),tf(e)],Cte),h4=4;function xte(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:l="ltr"}=e,c=l==="ltr"?"left":"right",u=l==="ltr"?"right":"left",d={[c]:-n*a+h4,[u]:0};switch(t){case-1:d.top=-3;break;case 1:d.bottom=-3;break;default:d.bottom=-3,d[c]=a+h4;break}return ve.createElement("div",{style:d,className:`${r}-drop-indicator`})}var $te={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"},wte=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:$te}))},Ete=i.forwardRef(wte),Ote={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"},Rte=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Ote}))},jte=i.forwardRef(Rte),Ite={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"},Nte=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Ite}))},Mte=i.forwardRef(Nte);const Tte=e=>{var t,n;const{prefixCls:r,switcherIcon:a,treeNodeProps:l,showLine:c,switcherLoadingIcon:u}=e,{isLeaf:d,expanded:f,loading:v}=l;if(v)return i.isValidElement(u)?u:i.createElement(Io,{className:`${r}-switcher-loading-icon`});let g;if(c&&typeof c=="object"&&(g=c.showLeafIcon),d){if(!c)return null;if(typeof g!="boolean"&&g){const C=typeof g=="function"?g(l):g,S=`${r}-switcher-line-custom-icon`;return i.isValidElement(C)?$r(C,{className:ue((t=C.props)===null||t===void 0?void 0:t.className,S)}):C}return g?i.createElement(pM,{className:`${r}-switcher-line-icon`}):i.createElement("span",{className:`${r}-switcher-leaf-line`})}const p=`${r}-switcher-icon`,b=typeof a=="function"?a(l):a;return i.isValidElement(b)?$r(b,{className:ue((n=b.props)===null||n===void 0?void 0:n.className,p)}):b!==void 0?b:c?f?i.createElement(jte,{className:`${r}-switcher-line-icon`}):i.createElement(Mte,{className:`${r}-switcher-line-icon`}):i.createElement(Ete,{className:p})},hM=ve.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:l,tree:c}=ve.useContext(Rt),{prefixCls:u,className:d,showIcon:f=!1,showLine:v,switcherIcon:g,switcherLoadingIcon:p,blockNode:b=!1,children:C,checkable:S=!1,selectable:h=!0,draggable:x,disabled:w,motion:E,style:j}=e,R=r("tree",u),I=r(),O=ve.useContext(Vr),M=w??O,N=E??Object.assign(Object.assign({},zc(I)),{motionAppear:!1}),P=Object.assign(Object.assign({},e),{checkable:S,selectable:h,showIcon:f,motion:N,blockNode:b,disabled:M,showLine:!!v,dropIndicatorRender:xte}),[B,L,k]=Ste(R),[,D]=ia(),H=D.paddingXS/2+(((n=D.Tree)===null||n===void 0?void 0:n.titleHeight)||D.controlHeightSM),z=ve.useMemo(()=>{if(!x)return!1;let F={};switch(typeof x){case"function":F.nodeDraggable=x;break;case"object":F=Object.assign({},x);break}return F.icon!==!1&&(F.icon=F.icon||ve.createElement(fte,null)),F},[x]),_=F=>ve.createElement(Tte,{prefixCls:R,switcherIcon:g,switcherLoadingIcon:p,treeNodeProps:F,showLine:v});return B(ve.createElement(IC,Object.assign({itemHeight:H,ref:t,virtual:l},P,{style:Object.assign(Object.assign({},c==null?void 0:c.style),j),prefixCls:R,className:ue({[`${R}-icon-hide`]:!f,[`${R}-block-node`]:b,[`${R}-unselectable`]:!h,[`${R}-rtl`]:a==="rtl",[`${R}-disabled`]:M},c==null?void 0:c.className,d,L,k),direction:a,checkable:S&&ve.createElement("span",{className:`${R}-checkbox-inner`}),selectable:h,switcherIcon:_,draggable:z}),C))}),b4=0,J0=1,y4=2;function NC(e,t,n){const{key:r,children:a}=n;function l(c){const u=c[r],d=c[a];t(u,c)!==!1&&NC(d||[],t,n)}e.forEach(l)}function Pte({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:a}){const l=[];let c=b4;if(n&&n===r)return[n];if(!n||!r)return[];function u(d){return d===n||d===r}return NC(e,d=>{if(c===y4)return!1;if(u(d)){if(l.push(d),c===b4)c=J0;else if(c===J0)return c=y4,!1}else c===J0&&l.push(d);return t.includes(d)},Lc(a)),l}function eb(e,t,n){const r=Ne(t),a=[];return NC(e,(l,c)=>{const u=r.indexOf(l);return u!==-1&&(a.push(c),r.splice(u,1)),!!r.length},Lc(n)),a}var C4=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 zte(e){const{isLeaf:t,expanded:n}=e;return t?i.createElement(pM,null):n?i.createElement(qv,null):i.createElement(Cv,null)}function S4({treeData:e,children:t}){return e||KI(t)}const Dte=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,l=C4(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const c=i.useRef(null),u=i.useRef(null),d=()=>{const{keyEntities:M}=Hg(S4(l),{fieldNames:l.fieldNames});let N;return n?N=Object.keys(M):r?N=Hy(l.expandedKeys||a||[],M):N=l.expandedKeys||a||[],N},[f,v]=i.useState(l.selectedKeys||l.defaultSelectedKeys||[]),[g,p]=i.useState(()=>d());i.useEffect(()=>{"selectedKeys"in l&&v(l.selectedKeys)},[l.selectedKeys]),i.useEffect(()=>{"expandedKeys"in l&&p(l.expandedKeys)},[l.expandedKeys]);const b=(M,N)=>{var P;return"expandedKeys"in l||p(M),(P=l.onExpand)===null||P===void 0?void 0:P.call(l,M,N)},C=(M,N)=>{var P;const{multiple:B,fieldNames:L}=l,{node:k,nativeEvent:D}=N,{key:H=""}=k,z=S4(l),_=Object.assign(Object.assign({},N),{selected:!0}),F=(D==null?void 0:D.ctrlKey)||(D==null?void 0:D.metaKey),W=D==null?void 0:D.shiftKey;let q;B&&F?(q=M,c.current=H,u.current=q,_.selectedNodes=eb(z,q,L)):B&&W?(q=Array.from(new Set([].concat(Ne(u.current||[]),Ne(Pte({treeData:z,expandedKeys:g,startKey:H,endKey:c.current,fieldNames:L}))))),_.selectedNodes=eb(z,q,L)):(q=[H],c.current=H,u.current=q,_.selectedNodes=eb(z,q,L)),(P=l.onSelect)===null||P===void 0||P.call(l,q,_),"selectedKeys"in l||v(q)},{getPrefixCls:S,direction:h}=i.useContext(Rt),{prefixCls:x,className:w,showIcon:E=!0,expandAction:j="click"}=l,R=C4(l,["prefixCls","className","showIcon","expandAction"]),I=S("tree",x),O=ue(`${I}-directory`,{[`${I}-directory-rtl`]:h==="rtl"},w);return i.createElement(hM,Object.assign({icon:zte,ref:t,blockNode:!0},R,{showIcon:E,expandAction:j,prefixCls:I,className:O,expandedKeys:g,selectedKeys:f,onSelect:C,onExpand:b}))},_te=i.forwardRef(Dte),MC=hM;MC.DirectoryTree=_te;MC.TreeNode=Kd;const x4=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:l}=e;return n?i.createElement("div",{className:`${r}-filter-dropdown-search`},i.createElement(pf,{prefix:i.createElement(xs,null),placeholder:a.filterSearchPlaceholder,onChange:l,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},Ate=e=>{const{keyCode:t}=e;t===ot.ENTER&&e.stopPropagation()},Bte=i.forwardRef((e,t)=>i.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:Ate,ref:t},e.children));function jc(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(Ne(t),Ne(jc(r))))}),t}function kte(e){return e.some(({children:t})=>t)}function bM(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function yM({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:l}){return e.map((c,u)=>{const d=String(c.value);if(c.children)return{key:d||u,label:c.text,popupClassName:`${t}-dropdown-submenu`,children:yM({filters:c.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:l})};const f=r?ya:_r,v={key:c.value!==void 0?d:u,label:i.createElement(i.Fragment,null,i.createElement(f,{checked:n.includes(d)}),i.createElement("span",null,c.text))};return a.trim()?typeof l=="function"?l(a,c)?v:null:bM(a,c.text)?v:null:v})}function tb(e){return e||[]}const Lte=e=>{var t,n,r,a;const{tablePrefixCls:l,prefixCls:c,column:u,dropdownPrefixCls:d,columnKey:f,filterOnClose:v,filterMultiple:g,filterMode:p="menu",filterSearch:b=!1,filterState:C,triggerFilter:S,locale:h,children:x,getPopupContainer:w,rootClassName:E}=e,{filterResetToDefaultFilteredValue:j,defaultFilteredValue:R,filterDropdownProps:I={},filterDropdownOpen:O,filterDropdownVisible:M,onFilterDropdownVisibleChange:N,onFilterDropdownOpenChange:P}=u,[B,L]=i.useState(!1),k=!!(C&&(!((t=C.filteredKeys)===null||t===void 0)&&t.length||C.forceFiltered)),D=pe=>{var we;L(pe),(we=I.onOpenChange)===null||we===void 0||we.call(I,pe),P==null||P(pe),N==null||N(pe)},H=(a=(r=(n=I.open)!==null&&n!==void 0?n:O)!==null&&r!==void 0?r:M)!==null&&a!==void 0?a:B,z=C==null?void 0:C.filteredKeys,[_,F]=R_(tb(z)),W=({selectedKeys:pe})=>{F(pe)},q=(pe,{node:we,checked:Se})=>{W(g?{selectedKeys:pe}:{selectedKeys:Se&&we.key?[we.key]:[]})};i.useEffect(()=>{B&&W({selectedKeys:tb(z)})},[z]);const[V,G]=i.useState([]),K=pe=>{G(pe)},[U,Z]=i.useState(""),Q=pe=>{const{value:we}=pe.target;Z(we)};i.useEffect(()=>{B||Z("")},[B]);const te=pe=>{const we=pe!=null&&pe.length?pe:null;if(we===null&&(!C||!C.filteredKeys)||Ro(we,C==null?void 0:C.filteredKeys,!0))return null;S({column:u,key:f,filteredKeys:we})},X=()=>{D(!1),te(_())},ae=({confirm:pe,closeDropdown:we}={confirm:!1,closeDropdown:!1})=>{pe&&te([]),we&&D(!1),Z(""),F(j?(R||[]).map(Se=>String(Se)):[])},re=({closeDropdown:pe}={closeDropdown:!0})=>{pe&&D(!1),te(_())},ne=(pe,we)=>{we.source==="trigger"&&(pe&&z!==void 0&&F(tb(z)),D(pe),!pe&&!u.filterDropdown&&v&&X())},Y=ue({[`${d}-menu-without-submenu`]:!kte(u.filters||[])}),ie=pe=>{if(pe.target.checked){const we=jc(u==null?void 0:u.filters).map(Se=>String(Se));F(we)}else F([])},le=({filters:pe})=>(pe||[]).map((we,Se)=>{const Ce=String(we.value),De={title:we.text,key:we.value!==void 0?Ce:String(Se)};return we.children&&(De.children=le({filters:we.children})),De}),de=pe=>{var we;return Object.assign(Object.assign({},pe),{text:pe.title,value:pe.key,children:((we=pe.children)===null||we===void 0?void 0:we.map(Se=>de(Se)))||[]})};let ce;const{direction:ge,renderEmpty:he}=i.useContext(Rt);if(typeof u.filterDropdown=="function")ce=u.filterDropdown({prefixCls:`${d}-custom`,setSelectedKeys:pe=>W({selectedKeys:pe}),selectedKeys:_(),confirm:re,clearFilters:ae,filters:u.filters,visible:H,close:()=>{D(!1)}});else if(u.filterDropdown)ce=u.filterDropdown;else{const pe=_()||[],we=()=>{var Ce,De;const Ae=(Ce=he==null?void 0:he("Table.filter"))!==null&&Ce!==void 0?Ce:i.createElement(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((u.filters||[]).length===0)return Ae;if(p==="tree")return i.createElement(i.Fragment,null,i.createElement(x4,{filterSearch:b,value:U,onChange:Q,tablePrefixCls:l,locale:h}),i.createElement("div",{className:`${l}-filter-dropdown-tree`},g?i.createElement(ya,{checked:pe.length===jc(u.filters).length,indeterminate:pe.length>0&&pe.length<jc(u.filters).length,className:`${l}-filter-dropdown-checkall`,onChange:ie},(De=h==null?void 0:h.filterCheckall)!==null&&De!==void 0?De:h==null?void 0:h.filterCheckAll):null,i.createElement(MC,{checkable:!0,selectable:!1,blockNode:!0,multiple:g,checkStrictly:!g,className:`${d}-menu`,onCheck:q,checkedKeys:pe,selectedKeys:pe,showIcon:!1,treeData:le({filters:u.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:U.trim()?Fe=>typeof b=="function"?b(U,de(Fe)):bM(U,Fe.title):void 0})));const Ye=yM({filters:u.filters||[],filterSearch:b,prefixCls:c,filteredKeys:_(),filterMultiple:g,searchValue:U}),Ke=Ye.every(Fe=>Fe===null);return i.createElement(i.Fragment,null,i.createElement(x4,{filterSearch:b,value:U,onChange:Q,tablePrefixCls:l,locale:h}),Ke?Ae:i.createElement(fl,{selectable:!0,multiple:g,prefixCls:`${d}-menu`,className:Y,onSelect:W,onDeselect:W,selectedKeys:pe,getPopupContainer:w,openKeys:V,onOpenChange:K,items:Ye}))},Se=()=>j?Ro((R||[]).map(Ce=>String(Ce)),pe,!0):pe.length===0;ce=i.createElement(i.Fragment,null,we(),i.createElement("div",{className:`${c}-dropdown-btns`},i.createElement(nt,{type:"link",size:"small",disabled:Se(),onClick:()=>ae()},h.filterReset),i.createElement(nt,{type:"primary",size:"small",onClick:X},h.filterConfirm)))}u.filterDropdown&&(ce=i.createElement(Bj,{selectable:void 0},ce)),ce=i.createElement(Bte,{className:`${c}-dropdown`},ce);const je=Ad({trigger:["click"],placement:ge==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let pe;return typeof u.filterIcon=="function"?pe=u.filterIcon(k):u.filterIcon?pe=u.filterIcon:pe=i.createElement(qee,null),i.createElement("span",{role:"button",tabIndex:-1,className:ue(`${c}-trigger`,{active:k}),onClick:we=>{we.stopPropagation()}},pe)})(),getPopupContainer:w},Object.assign(Object.assign({},I),{rootClassName:ue(E,I.rootClassName),open:H,onOpenChange:ne,popupRender:()=>typeof(I==null?void 0:I.dropdownRender)=="function"?I.dropdownRender(ce):ce}));return i.createElement("div",{className:`${c}-column`},i.createElement("span",{className:`${l}-column-title`},x),i.createElement(as,Object.assign({},je)))},Uy=(e,t,n)=>{let r=[];return(e||[]).forEach((a,l)=>{var c;const u=su(l,n),d=a.filterDropdown!==void 0;if(a.filters||d||"onFilter"in a)if("filteredValue"in a){let f=a.filteredValue;d||(f=(c=f==null?void 0:f.map(String))!==null&&c!==void 0?c:f),r.push({column:a,key:vl(a,u),filteredKeys:f,forceFiltered:a.filtered})}else r.push({column:a,key:vl(a,u),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(Ne(r),Ne(Uy(a.children,t,u))))}),r};function CM(e,t,n,r,a,l,c,u,d){return n.map((f,v)=>{const g=su(v,u),{filterOnClose:p=!0,filterMultiple:b=!0,filterMode:C,filterSearch:S}=f;let h=f;if(h.filters||h.filterDropdown){const x=vl(h,g),w=r.find(({key:E})=>x===E);h=Object.assign(Object.assign({},h),{title:E=>i.createElement(Lte,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:x,filterState:w,filterOnClose:p,filterMultiple:b,filterMode:C,filterSearch:S,triggerFilter:l,locale:a,getPopupContainer:c,rootClassName:d},Qg(f.title,E))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:CM(e,t,h.children,r,a,l,c,g,d)})),h})}const $4=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:a})=>{const l=n,{filters:c,filterDropdown:u}=a;if(u)t[l]=r||null;else if(Array.isArray(r)){const d=jc(c);t[l]=d.filter(f=>r.includes(String(f)))}else t[l]=null}),t},qy=(e,t,n)=>t.reduce((a,l)=>{const{column:{onFilter:c,filters:u},filteredKeys:d}=l;return c&&d&&d.length?a.map(f=>Object.assign({},f)).filter(f=>d.some(v=>{const g=jc(u),p=g.findIndex(C=>String(C)===String(v)),b=p!==-1?g[p]:v;return f[n]&&(f[n]=qy(f[n],t,n)),c(b,f)})):a},e),SM=e=>e.flatMap(t=>"children"in t?[t].concat(Ne(SM(t.children||[]))):[t]),Hte=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:l,locale:c,rootClassName:u}=e;Qo();const d=i.useMemo(()=>SM(r||[]),[r]),[f,v]=i.useState(()=>Uy(d,!0)),g=i.useMemo(()=>{const S=Uy(d,!1);if(S.length===0)return S;let h=!0;if(S.forEach(({filteredKeys:x})=>{x!==void 0&&(h=!1)}),h){const x=(d||[]).map((w,E)=>vl(w,su(E)));return f.filter(({key:w})=>x.includes(w)).map(w=>{const E=d[x.indexOf(w.key)];return Object.assign(Object.assign({},w),{column:Object.assign(Object.assign({},w.column),E),forceFiltered:E.filtered})})}return S},[d,f]),p=i.useMemo(()=>$4(g),[g]),b=S=>{const h=g.filter(({key:x})=>x!==S.key);h.push(S),v(h),a($4(h),h)};return[S=>CM(t,n,S,g,c,b,l,void 0,u),g,p]},Fte=(e,t,n)=>{const r=i.useRef({});function a(l){var c;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let f=function(v){v.forEach((g,p)=>{const b=n(g,p);d.set(b,g),g&&typeof g=="object"&&t in g&&f(g[t]||[])})};var u=f;const d=new Map;f(e),r.current={data:e,childrenColumnName:t,kvMap:d,getRowKey:n}}return(c=r.current.kvMap)===null||c===void 0?void 0:c.get(l)}return[a]};var Vte=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 xM=10;function Wte(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(a=>{const l=e[a];typeof l!="function"&&(n[a]=l)}),n}function Kte(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,l=Vte(r,["total"]),[c,u]=i.useState(()=>({current:"defaultCurrent"in l?l.defaultCurrent:1,pageSize:"defaultPageSize"in l?l.defaultPageSize:xM})),d=Ad(c,l,{total:a>0?a:e}),f=Math.ceil((a||e)/d.pageSize);d.current>f&&(d.current=f||1);const v=(p,b)=>{u({current:p??1,pageSize:b||d.pageSize})},g=(p,b)=>{var C;n&&((C=n.onChange)===null||C===void 0||C.call(n,p,b)),v(p,b),t(p,b||(d==null?void 0:d.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},d),{onChange:g}),v]}var Ute={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"},qte=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Ute}))},Gte=i.forwardRef(qte),Xte={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"},Yte=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Xte}))},Qte=i.forwardRef(Yte);const Sv="ascend",nb="descend",Gv=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,w4=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,Zte=(e,t)=>t?e[e.indexOf(t)+1]:e[0],Gy=(e,t,n)=>{let r=[];const a=(l,c)=>{r.push({column:l,key:vl(l,c),multiplePriority:Gv(l),sortOrder:l.sortOrder})};return(e||[]).forEach((l,c)=>{const u=su(c,n);l.children?("sortOrder"in l&&a(l,u),r=[].concat(Ne(r),Ne(Gy(l.children,t,u)))):l.sorter&&("sortOrder"in l?a(l,u):t&&l.defaultSortOrder&&r.push({column:l,key:vl(l,u),multiplePriority:Gv(l),sortOrder:l.defaultSortOrder}))}),r},$M=(e,t,n,r,a,l,c,u)=>(t||[]).map((f,v)=>{const g=su(v,u);let p=f;if(p.sorter){const b=p.sortDirections||a,C=p.showSorterTooltip===void 0?c:p.showSorterTooltip,S=vl(p,g),h=n.find(({key:N})=>N===S),x=h?h.sortOrder:null,w=Zte(b,x);let E;if(f.sortIcon)E=f.sortIcon({sortOrder:x});else{const N=b.includes(Sv)&&i.createElement(Qte,{className:ue(`${e}-column-sorter-up`,{active:x===Sv})}),P=b.includes(nb)&&i.createElement(Gte,{className:ue(`${e}-column-sorter-down`,{active:x===nb})});E=i.createElement("span",{className:ue(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(N&&P)})},i.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},N,P))}const{cancelSort:j,triggerAsc:R,triggerDesc:I}=l||{};let O=j;w===nb?O=I:w===Sv&&(O=R);const M=typeof C=="object"?Object.assign({title:O},C):{title:O};p=Object.assign(Object.assign({},p),{className:ue(p.className,{[`${e}-column-sort`]:x}),title:N=>{const P=`${e}-column-sorters`,B=i.createElement("span",{className:`${e}-column-title`},Qg(f.title,N)),L=i.createElement("div",{className:P},B,E);return C?typeof C!="boolean"&&(C==null?void 0:C.target)==="sorter-icon"?i.createElement("div",{className:ue(P,`${P}-tooltip-target-sorter`)},B,i.createElement(Vn,Object.assign({},M),E)):i.createElement(Vn,Object.assign({},M),L):L},onHeaderCell:N=>{var P;const B=((P=f.onHeaderCell)===null||P===void 0?void 0:P.call(f,N))||{},L=B.onClick,k=B.onKeyDown;B.onClick=z=>{r({column:f,key:S,sortOrder:w,multiplePriority:Gv(f)}),L==null||L(z)},B.onKeyDown=z=>{z.keyCode===ot.ENTER&&(r({column:f,key:S,sortOrder:w,multiplePriority:Gv(f)}),k==null||k(z))};const D=Wee(f.title,{}),H=D==null?void 0:D.toString();return x&&(B["aria-sort"]=x==="ascend"?"ascending":"descending"),B["aria-label"]=H||"",B.className=ue(B.className,`${e}-column-has-sorters`),B.tabIndex=0,f.ellipsis&&(B.title=(D??"").toString()),B}})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:$M(e,p.children,n,r,a,l,c,g)})),p}),E4=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},O4=e=>{const t=e.filter(({sortOrder:n})=>n).map(E4);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},E4(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},Xy=(e,t,n)=>{const r=t.slice().sort((c,u)=>u.multiplePriority-c.multiplePriority),a=e.slice(),l=r.filter(({column:{sorter:c},sortOrder:u})=>w4(c)&&u);return l.length?a.sort((c,u)=>{for(let d=0;d<l.length;d+=1){const f=l[d],{column:{sorter:v},sortOrder:g}=f,p=w4(v);if(p&&g){const b=p(c,u,g);if(b!==0)return g===Sv?b:-b}}return 0}).map(c=>{const u=c[n];return u?Object.assign(Object.assign({},c),{[n]:Xy(u,t,n)}):c}):a},Jte=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:l,onSorterChange:c}=e,[u,d]=i.useState(()=>Gy(n,!0)),f=(S,h)=>{const x=[];return S.forEach((w,E)=>{const j=su(E,h);if(x.push(vl(w,j)),Array.isArray(w.children)){const R=f(w.children,j);x.push.apply(x,Ne(R))}}),x},v=i.useMemo(()=>{let S=!0;const h=Gy(n,!1);if(!h.length){const j=f(n);return u.filter(({key:R})=>j.includes(R))}const x=[];function w(j){S?x.push(j):x.push(Object.assign(Object.assign({},j),{sortOrder:null}))}let E=null;return h.forEach(j=>{E===null?(w(j),j.sortOrder&&(j.multiplePriority===!1?S=!1:E=!0)):(E&&j.multiplePriority!==!1||(S=!1),w(j))}),x},[n,u]),g=i.useMemo(()=>{var S,h;const x=v.map(({column:w,sortOrder:E})=>({column:w,order:E}));return{sortColumns:x,sortColumn:(S=x[0])===null||S===void 0?void 0:S.column,sortOrder:(h=x[0])===null||h===void 0?void 0:h.order}},[v]),p=S=>{let h;S.multiplePriority===!1||!v.length||v[0].multiplePriority===!1?h=[S]:h=[].concat(Ne(v.filter(({key:x})=>x!==S.key)),[S]),d(h),c(O4(h),h)};return[S=>$M(t,S,v,p,r,a,l),v,g,()=>O4(v)]},wM=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=Qg(r.title,t),"children"in a&&(a.children=wM(a.children,t)),a}),ene=e=>[i.useCallback(n=>wM(n,e),[e])],tne=uM((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),nne=fM((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),rne=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:l,tablePaddingVertical:c,tablePaddingHorizontal:u,calc:d}=e,f=`${oe(n)} ${r} ${a}`,v=(g,p,b)=>({[`&${t}-${g}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${oe(d(p).mul(-1).equal())}
|
|
399
|
+
${oe(d(d(b).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:f,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:f,borderTop:f,[`
|
|
400
|
+
> ${t}-content,
|
|
401
|
+
> ${t}-header,
|
|
402
|
+
> ${t}-body,
|
|
403
|
+
> ${t}-summary
|
|
404
|
+
`]:{"> 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:f},"> thead":{"> tr:not(:last-child) > th":{borderBottom:f},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:f}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${oe(d(c).mul(-1).equal())} ${oe(d(d(u).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:f,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
|
|
405
|
+
> tr${t}-expanded-row,
|
|
406
|
+
> tr${t}-placeholder
|
|
407
|
+
`]:{"> th, > td":{borderInlineEnd:0}}}}}},v("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),v("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:f,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${oe(n)} 0 ${oe(n)} ${l}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:f}}}},ane=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Ua),{wordBreak:"keep-all",[`
|
|
408
|
+
&${t}-cell-fix-left-last,
|
|
409
|
+
&${t}-cell-fix-right-first
|
|
410
|
+
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},one=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}}}}},ine=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:l,lineType:c,tableBorderColor:u,tableExpandIconBg:d,tableExpandColumnWidth:f,borderRadius:v,tablePaddingVertical:g,tablePaddingHorizontal:p,tableExpandedRowBg:b,paddingXXS:C,expandIconMarginTop:S,expandIconSize:h,expandIconHalfInner:x,expandIconScale:w,calc:E}=e,j=`${oe(a)} ${c} ${u}`,R=E(C).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:f},[`${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({},m1(e)),{position:"relative",float:"left",width:h,height:h,color:"inherit",lineHeight:oe(h),background:d,border:j,borderRadius:v,transform:`scale(${w})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:x,insetInlineEnd:R,insetInlineStart:R,height:a},"&::after":{top:R,bottom:R,insetInlineStart:x,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:S,marginInlineEnd:l},[`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:`${oe(E(g).mul(-1).equal())} ${oe(E(p).mul(-1).equal())}`,padding:`${oe(g)} ${oe(p)}`}}}},lne=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:l,paddingXXS:c,paddingXS:u,colorText:d,lineWidth:f,lineType:v,tableBorderColor:g,headerIconColor:p,fontSizeSM:b,tablePaddingHorizontal:C,borderRadius:S,motionDurationSlow:h,colorIcon:x,colorPrimary:w,tableHeaderFilterActiveBg:E,colorTextDisabled:j,tableFilterDropdownBg:R,tableFilterDropdownHeight:I,controlItemBgHover:O,controlItemBgActive:M,boxShadowSecondary:N,filterDropdownMenuBg:P,calc:B}=e,L=`${n}-dropdown`,k=`${t}-filter-dropdown`,D=`${n}-tree`,H=`${oe(f)} ${v} ${g}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:B(c).mul(-1).equal(),marginInline:`${oe(c)} ${oe(B(C).div(2).mul(-1).equal())}`,padding:`0 ${oe(c)}`,color:p,fontSize:b,borderRadius:S,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:x,background:E},"&.active":{color:w}}}},{[`${n}-dropdown`]:{[k]:Object.assign(Object.assign({},dn(e)),{minWidth:a,backgroundColor:R,borderRadius:S,boxShadow:N,overflow:"hidden",[`${L}-menu`]:{maxHeight:I,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:P,"&:empty::after":{display:"block",padding:`${oe(u)} 0`,color:j,fontSize:b,textAlign:"center",content:'"Not Found"'}},[`${k}-tree`]:{paddingBlock:`${oe(u)} 0`,paddingInline:u,[D]:{padding:0},[`${D}-treenode ${D}-node-content-wrapper:hover`]:{backgroundColor:O},[`${D}-treenode-checkbox-checked ${D}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:M}}},[`${k}-search`]:{padding:u,borderBottom:H,"&-input":{input:{minWidth:l},[r]:{color:j}}},[`${k}-checkall`]:{width:"100%",marginBottom:c,marginInlineStart:c},[`${k}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${oe(B(u).sub(f).equal())} ${oe(u)}`,overflow:"hidden",borderTop:H}})}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:u,color:d},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},sne=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:l,tableBg:c,zIndexTableSticky:u,calc:d}=e,f=r;return{[`${t}-wrapper`]:{[`
|
|
411
|
+
${t}-cell-fix-left,
|
|
412
|
+
${t}-cell-fix-right
|
|
413
|
+
`]:{position:"sticky !important",zIndex:l,background:c},[`
|
|
414
|
+
${t}-cell-fix-left-first::after,
|
|
415
|
+
${t}-cell-fix-left-last::after
|
|
416
|
+
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:d(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"},[`
|
|
417
|
+
${t}-cell-fix-right-first::after,
|
|
418
|
+
${t}-cell-fix-right-last::after
|
|
419
|
+
`]:{position:"absolute",top:0,bottom:d(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:d(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 ${f}`},[`
|
|
420
|
+
${t}-cell-fix-left-first::after,
|
|
421
|
+
${t}-cell-fix-left-last::after
|
|
422
|
+
`]:{boxShadow:`inset 10px 0 8px -8px ${f}`},[`${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 ${f}`},[`
|
|
423
|
+
${t}-cell-fix-right-first::after,
|
|
424
|
+
${t}-cell-fix-right-last::after
|
|
425
|
+
`]:{boxShadow:`inset -10px 0 8px -8px ${f}`}},[`${t}-fixed-column-gapped`]:{[`
|
|
426
|
+
${t}-cell-fix-left-first::after,
|
|
427
|
+
${t}-cell-fix-left-last::after,
|
|
428
|
+
${t}-cell-fix-right-first::after,
|
|
429
|
+
${t}-cell-fix-right-last::after
|
|
430
|
+
`]:{boxShadow:"none"}}}}},cne=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${oe(r)} 0`}}},une=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${oe(n)} ${oe(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 ${oe(n)} ${oe(n)}`}}}}},dne=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"}}}}},fne=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:a,padding:l,paddingXS:c,headerIconColor:u,headerIconHoverColor:d,tableSelectionColumnWidth:f,tableSelectedRowBg:v,tableSelectedRowHoverBg:g,tableRowHoverBg:p,tablePaddingHorizontal:b,calc:C}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:f,[`&${t}-selection-col-with-dropdown`]:{width:C(f).add(a).add(C(l).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:C(f).add(C(c).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:C(f).add(a).add(C(l).div(4)).add(C(c).mul(2)).equal()}},[`
|
|
431
|
+
table tr th${t}-selection-column,
|
|
432
|
+
table tr td${t}-selection-column,
|
|
433
|
+
${t}-selection-column
|
|
434
|
+
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:C(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:oe(C(b).div(4).equal()),[r]:{color:u,fontSize:a,verticalAlign:"baseline","&:hover":{color:d}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:v,"&-row-hover":{background:g}}},[`> ${t}-cell-row-hover`]:{background:p}}}}}},mne=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,a=(l,c,u,d)=>({[`${t}${t}-${l}`]:{fontSize:d,[`
|
|
435
|
+
${t}-title,
|
|
436
|
+
${t}-footer,
|
|
437
|
+
${t}-cell,
|
|
438
|
+
${t}-thead > tr > th,
|
|
439
|
+
${t}-tbody > tr > th,
|
|
440
|
+
${t}-tbody > tr > td,
|
|
441
|
+
tfoot > tr > th,
|
|
442
|
+
tfoot > tr > td
|
|
443
|
+
`]:{padding:`${oe(c)} ${oe(u)}`},[`${t}-filter-trigger`]:{marginInlineEnd:oe(r(u).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${oe(r(c).mul(-1).equal())} ${oe(r(u).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:oe(r(c).mul(-1).equal()),marginInline:`${oe(r(n).sub(u).equal())} ${oe(r(u).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:oe(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))}},vne=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:a,headerIconHoverColor:l}=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},[`
|
|
444
|
+
&${t}-cell-fix-left:hover,
|
|
445
|
+
&${t}-cell-fix-right:hover
|
|
446
|
+
`]:{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:l}}}},gne=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:l,tableScrollBg:c,zIndexTableSticky:u,stickyScrollBarBorderRadius:d,lineWidth:f,lineType:v,tableBorderColor:g}=e,p=`${oe(f)} ${v} ${g}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:u,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${oe(l)} !important`,zIndex:u,display:"flex",alignItems:"center",background:c,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:l,backgroundColor:r,borderRadius:d,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},R4=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,l=`${oe(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:l}}},[`div${t}-summary`]:{boxShadow:`0 ${oe(a(n).mul(-1).equal())} 0 ${r}`}}}},pne=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:l,calc:c}=e,u=`${oe(r)} ${a} ${l}`,d=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
|
|
447
|
+
& > ${t}-row,
|
|
448
|
+
& > div:not(${t}-row) > ${t}-row
|
|
449
|
+
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:u,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${d}${d}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${oe(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}}}}}},hne=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:l,lineWidth:c,lineType:u,tableBorderColor:d,tableFontSize:f,tableBg:v,tableRadius:g,tableHeaderTextColor:p,motionDurationMid:b,tableHeaderBg:C,tableHeaderCellSplitColor:S,tableFooterTextColor:h,tableFooterBg:x,calc:w}=e,E=`${oe(c)} ${u} ${d}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},Ko()),{[t]:Object.assign(Object.assign({},dn(e)),{fontSize:f,background:v,borderRadius:`${oe(g)} ${oe(g)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${oe(g)} ${oe(g)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
450
|
+
${t}-cell,
|
|
451
|
+
${t}-thead > tr > th,
|
|
452
|
+
${t}-tbody > tr > th,
|
|
453
|
+
${t}-tbody > tr > td,
|
|
454
|
+
tfoot > tr > th,
|
|
455
|
+
tfoot > tr > td
|
|
456
|
+
`]:{position:"relative",padding:`${oe(r)} ${oe(a)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${oe(r)} ${oe(a)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:C,borderBottom:E,transition:`background ${b} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:S,transform:"translateY(-50%)",transition:`background-color ${b}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${b}, border-color ${b}`,borderBottom:E,[`
|
|
457
|
+
> ${t}-wrapper:only-child,
|
|
458
|
+
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
|
459
|
+
`]:{[t]:{marginBlock:oe(w(r).mul(-1).equal()),marginInline:`${oe(w(l).sub(a).equal())}
|
|
460
|
+
${oe(w(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:C,borderBottom:E,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:`${oe(r)} ${oe(a)}`,color:h,background:x}})}},bne=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:l,controlItemBgActive:c,controlItemBgActiveHover:u,padding:d,paddingSM:f,paddingXS:v,colorBorderSecondary:g,borderRadiusLG:p,controlHeight:b,colorTextPlaceholder:C,fontSize:S,fontSizeSM:h,lineHeight:x,lineWidth:w,colorIcon:E,colorIconHover:j,opacityLoading:R,controlInteractiveSize:I}=e,O=new pn(a).onBackground(n).toHexString(),M=new pn(l).onBackground(n).toHexString(),N=new pn(t).onBackground(n).toHexString(),P=new pn(E),B=new pn(j),L=I/2-w,k=L*2+w*3;return{headerBg:N,headerColor:r,headerSortActiveBg:O,headerSortHoverBg:M,bodySortBg:N,rowHoverBg:N,rowSelectedBg:c,rowSelectedHoverBg:u,rowExpandedBg:t,cellPaddingBlock:d,cellPaddingInline:d,cellPaddingBlockMD:f,cellPaddingInlineMD:v,cellPaddingBlockSM:v,cellPaddingInlineSM:v,borderColor:g,headerBorderRadius:p,footerBg:N,footerColor:r,cellFontSize:S,cellFontSizeMD:S,cellFontSizeSM:S,headerSplitColor:g,fixedHeaderSortActiveBg:O,headerFilterHoverBg:l,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:b,stickyScrollBarBg:C,stickyScrollBarBorderRadius:100,expandIconMarginTop:(S*x-w*3)/2-Math.ceil((h*1.4-w*3)/2),headerIconColor:P.clone().setA(P.a*R).toRgbString(),headerIconHoverColor:B.clone().setA(B.a*R).toRgbString(),expandIconHalfInner:L,expandIconSize:k,expandIconScale:I/k}},j4=2,yne=sn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:l,headerColor:c,headerSortActiveBg:u,headerSortHoverBg:d,bodySortBg:f,rowHoverBg:v,rowSelectedBg:g,rowSelectedHoverBg:p,rowExpandedBg:b,cellPaddingBlock:C,cellPaddingInline:S,cellPaddingBlockMD:h,cellPaddingInlineMD:x,cellPaddingBlockSM:w,cellPaddingInlineSM:E,borderColor:j,footerBg:R,footerColor:I,headerBorderRadius:O,cellFontSize:M,cellFontSizeMD:N,cellFontSizeSM:P,headerSplitColor:B,fixedHeaderSortActiveBg:L,headerFilterHoverBg:k,filterDropdownBg:D,expandIconBg:H,selectionColumnWidth:z,stickyScrollBarBg:_,calc:F}=e,W=tn(e,{tableFontSize:M,tableBg:r,tableRadius:O,tablePaddingVertical:C,tablePaddingHorizontal:S,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:x,tablePaddingVerticalSmall:w,tablePaddingHorizontalSmall:E,tableBorderColor:j,tableHeaderTextColor:c,tableHeaderBg:l,tableFooterTextColor:I,tableFooterBg:R,tableHeaderCellSplitColor:B,tableHeaderSortBg:u,tableHeaderSortHoverBg:d,tableBodySortBg:f,tableFixedHeaderSortActiveBg:L,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:D,tableRowHoverBg:v,tableSelectedRowBg:g,tableSelectedRowHoverBg:p,zIndexTableFixed:j4,zIndexTableSticky:F(j4).add(1).equal({unit:!1}),tableFontSizeMiddle:N,tableFontSizeSmall:P,tableSelectionColumnWidth:z,tableExpandIconBg:H,tableExpandColumnWidth:F(a).add(F(e.padding).mul(2)).equal(),tableExpandedRowBg:b,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:_,tableScrollThumbBgHover:t,tableScrollBg:n});return[hne(W),cne(W),R4(W),vne(W),lne(W),rne(W),une(W),ine(W),R4(W),one(W),fne(W),sne(W),gne(W),ane(W),mne(W),dne(W),pne(W)]},bne,{unitless:{expandIconScale:!0}}),I4=[],Cne=(e,t)=>{var n,r;const{prefixCls:a,className:l,rootClassName:c,style:u,size:d,bordered:f,dropdownPrefixCls:v,dataSource:g,pagination:p,rowSelection:b,rowKey:C="key",rowClassName:S,columns:h,children:x,childrenColumnName:w,onChange:E,getPopupContainer:j,loading:R,expandIcon:I,expandable:O,expandedRowRender:M,expandIconColumnIndex:N,indentSize:P,scroll:B,sortDirections:L,locale:k,showSorterTooltip:D={target:"full-header"},virtual:H}=e;Qo();const z=i.useMemo(()=>h||EC(x),[h,x]),_=i.useMemo(()=>z.some(ft=>ft.responsive),[z]),F=Og(_),W=i.useMemo(()=>{const ft=new Set(Object.keys(F).filter(lt=>F[lt]));return z.filter(lt=>!lt.responsive||lt.responsive.some(At=>ft.has(At)))},[z,F]),q=wn(e,["className","style","columns"]),{locale:V=vo,direction:G,table:K,renderEmpty:U,getPrefixCls:Z,getPopupContainer:Q}=i.useContext(Rt),te=Nr(d),X=Object.assign(Object.assign({},V.Table),k),ae=g||I4,re=Z("table",a),ne=Z("dropdown",v),[,Y]=ia(),ie=cr(re),[le,de,ce]=yne(re,ie),ge=Object.assign(Object.assign({childrenColumnName:w,expandIconColumnIndex:N},O),{expandIcon:(n=O==null?void 0:O.expandIcon)!==null&&n!==void 0?n:(r=K==null?void 0:K.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:he="children"}=ge,Oe=i.useMemo(()=>ae.some(ft=>ft==null?void 0:ft[he])?"nest":M||O!=null&&O.expandedRowRender?"row":null,[ae]),je={body:i.useRef(null)},pe=Vee(re),we=i.useRef(null),Se=i.useRef(null);O_(t,()=>Object.assign(Object.assign({},Se.current),{nativeElement:we.current}));const Ce=i.useMemo(()=>typeof C=="function"?C:ft=>ft==null?void 0:ft[C],[C]),[De]=Fte(ae,he,Ce),Ae={},Ye=(ft,lt,At=!1)=>{var Ut,rn,Qt,vn;const qt=Object.assign(Object.assign({},Ae),ft);At&&((Ut=Ae.resetPagination)===null||Ut===void 0||Ut.call(Ae),!((rn=qt.pagination)===null||rn===void 0)&&rn.current&&(qt.pagination.current=1),p&&((Qt=p.onChange)===null||Qt===void 0||Qt.call(p,1,(vn=qt.pagination)===null||vn===void 0?void 0:vn.pageSize))),B&&B.scrollToFirstRowOnChange!==!1&&je.body.current&&OR(0,{getContainer:()=>je.body.current}),E==null||E(qt.pagination,qt.filters,qt.sorter,{currentDataSource:qy(Xy(ae,qt.sorterStates,he),qt.filterStates,he),action:lt})},Ke=(ft,lt)=>{Ye({sorter:ft,sorterStates:lt},"sort",!1)},[Fe,Ge,Te,Ee]=Jte({prefixCls:re,mergedColumns:W,onSorterChange:Ke,sortDirections:L||["ascend","descend"],tableLocale:X,showSorterTooltip:D}),_e=i.useMemo(()=>Xy(ae,Ge,he),[ae,Ge]);Ae.sorter=Ee(),Ae.sorterStates=Ge;const Re=(ft,lt)=>{Ye({filters:ft,filterStates:lt},"filter",!0)},[Pe,be,$e]=Hte({prefixCls:re,locale:X,dropdownPrefixCls:ne,mergedColumns:W,onFilterChange:Re,getPopupContainer:j||Q,rootClassName:ue(c,ie)}),Me=qy(_e,be,he);Ae.filters=$e,Ae.filterStates=be;const Le=i.useMemo(()=>{const ft={};return Object.keys($e).forEach(lt=>{$e[lt]!==null&&(ft[lt]=$e[lt])}),Object.assign(Object.assign({},Te),{filters:ft})},[Te,$e]),[et]=ene(Le),bt=(ft,lt)=>{Ye({pagination:Object.assign(Object.assign({},Ae.pagination),{current:ft,pageSize:lt})},"paginate")},[We,tt]=Kte(Me.length,bt,p);Ae.pagination=p===!1?{}:Wte(We,p),Ae.resetPagination=tt;const dt=i.useMemo(()=>{if(p===!1||!We.pageSize)return Me;const{current:ft=1,total:lt,pageSize:At=xM}=We;return Me.length<lt?Me.length>At?Me.slice((ft-1)*At,ft*At):Me:Me.slice((ft-1)*At,ft*At)},[!!p,Me,We==null?void 0:We.current,We==null?void 0:We.pageSize,We==null?void 0:We.total]),[at,pt]=Hee({prefixCls:re,data:Me,pageData:dt,getRowKey:Ce,getRecordByKey:De,expandType:Oe,childrenColumnName:he,locale:X,getPopupContainer:j||Q},b),Pt=(ft,lt,At)=>{let Ut;return typeof S=="function"?Ut=ue(S(ft,lt,At)):Ut=ue(S),ue({[`${re}-row-selected`]:pt.has(Ce(ft,lt))},Ut)};ge.__PARENT_RENDER_ICON__=ge.expandIcon,ge.expandIcon=ge.expandIcon||I||Fee(X),Oe==="nest"&&ge.expandIconColumnIndex===void 0?ge.expandIconColumnIndex=b?1:0:ge.expandIconColumnIndex>0&&b&&(ge.expandIconColumnIndex-=1),typeof ge.indentSize!="number"&&(ge.indentSize=typeof P=="number"?P:15);const Et=i.useCallback(ft=>et(at(Pe(Fe(ft)))),[Fe,Pe,at]),ct=()=>{if(p===!1||!(We!=null&&We.total))return{};const ft=()=>We.size||(te==="small"||te==="middle"?"small":void 0),lt=Xe=>{const Qe=Xe==="left"?"start":Xe==="right"?"end":Xe;return i.createElement(BN,Object.assign({},We,{align:We.align||Qe,className:ue(`${re}-pagination`,We.className),size:ft()}))},At=G==="rtl"?"left":"right",Ut=We.position;if(Ut===null||!Array.isArray(Ut))return{bottom:lt(At)};const rn=Ut.find(Xe=>typeof Xe=="string"&&Xe.toLowerCase().includes("top")),Qt=Ut.find(Xe=>typeof Xe=="string"&&Xe.toLowerCase().includes("bottom")),vn=Ut.every(Xe=>`${Xe}`=="none"),qt=rn?rn.toLowerCase().replace("top",""):"",un=Qt?Qt.toLowerCase().replace("bottom",""):"",st=!rn&&!Qt&&!vn,Ct=()=>qt?lt(qt):void 0,ht=()=>{if(un)return lt(un);if(st)return lt(At)};return{top:Ct(),bottom:ht()}},St=i.useMemo(()=>typeof R=="boolean"?{spinning:R}:typeof R=="object"&&R!==null?Object.assign({spinning:!0},R):void 0,[R]),yt=ue(ce,ie,`${re}-wrapper`,K==null?void 0:K.className,{[`${re}-wrapper-rtl`]:G==="rtl"},l,c,de),Je=Object.assign(Object.assign({},K==null?void 0:K.style),u),Ve=i.useMemo(()=>St!=null&&St.spinning&&ae===I4?null:typeof(k==null?void 0:k.emptyText)<"u"?k.emptyText:(U==null?void 0:U("Table"))||i.createElement(uf,{componentName:"Table"}),[St==null?void 0:St.spinning,ae,k==null?void 0:k.emptyText,U]),Ue=H?nne:tne,mt={},Mt=i.useMemo(()=>{const{fontSize:ft,lineHeight:lt,lineWidth:At,padding:Ut,paddingXS:rn,paddingSM:Qt}=Y,vn=Math.floor(ft*lt);switch(te){case"middle":return Qt*2+vn+At;case"small":return rn*2+vn+At;default:return Ut*2+vn+At}},[Y,te]);H&&(mt.listItemHeight=Mt);const{top:It,bottom:Vt}=ct();return le(i.createElement("div",{ref:we,className:yt,style:Je},i.createElement(Ga,Object.assign({spinning:!1},St),It,i.createElement(Ue,Object.assign({},mt,q,{ref:Se,columns:W,direction:G,expandable:ge,prefixCls:re,className:ue({[`${re}-middle`]:te==="middle",[`${re}-small`]:te==="small",[`${re}-bordered`]:f,[`${re}-empty`]:ae.length===0},ce,ie,de),data:dt,rowKey:Ce,rowClassName:Pt,emptyText:Ve,internalHooks:hf,internalRefs:je,transformColumns:Et,getContainerWidth:pe,measureRowRender:ft=>i.createElement(To,{getPopupContainer:lt=>lt},ft)})),Vt)))},Sne=i.forwardRef(Cne),xne=(e,t)=>{const n=i.useRef(0);return n.current+=1,i.createElement(Sne,Object.assign({},e,{ref:t,_renderTimes:n.current}))},jr=i.forwardRef(xne);jr.SELECTION_COLUMN=nl;jr.EXPAND_COLUMN=rl;jr.SELECTION_ALL=Fy;jr.SELECTION_INVERT=Vy;jr.SELECTION_NONE=Wy;jr.Column=Mee;jr.ColumnGroup=Tee;jr.Summary=eM;const $ne=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:l}=e,c=l(r).sub(n).equal(),u=l(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},dn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:c,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${oe(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}}},TC=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return tn(e,{tagFontSize:a,tagLineHeight:oe(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},PC=e=>({defaultBg:new pn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),EM=sn("Tag",e=>{const t=TC(e);return $ne(t)},PC);var wne=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 Ene=i.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:a,checked:l,children:c,icon:u,onChange:d,onClick:f}=e,v=wne(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:g,tag:p}=i.useContext(Rt),b=E=>{d==null||d(!l),f==null||f(E)},C=g("tag",n),[S,h,x]=EM(C),w=ue(C,`${C}-checkable`,{[`${C}-checkable-checked`]:l},p==null?void 0:p.className,a,h,x);return S(i.createElement("span",Object.assign({},v,{ref:t,style:Object.assign(Object.assign({},r),p==null?void 0:p.style),className:w,onClick:b}),u,i.createElement("span",null,c)))}),One=e=>ag(e,(t,{textColor:n,lightBorderColor:r,lightColor:a,darkColor:l})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:a,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),Rne=Uc(["Tag","preset"],e=>{const t=TC(e);return One(t)},PC);function jne(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Um=(e,t,n)=>{const r=jne(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"}}}},Ine=Uc(["Tag","status"],e=>{const t=TC(e);return[Um(t,"success","Success"),Um(t,"processing","Info"),Um(t,"error","Error"),Um(t,"warning","Warning")]},PC);var Nne=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 Mne=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:l,children:c,icon:u,color:d,onClose:f,bordered:v=!0,visible:g}=e,p=Nne(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:b,direction:C,tag:S}=i.useContext(Rt),[h,x]=i.useState(!0),w=wn(p,["closeIcon","closable"]);i.useEffect(()=>{g!==void 0&&x(g)},[g]);const E=Ig(d),j=WH(d),R=E||j,I=Object.assign(Object.assign({backgroundColor:d&&!R?d:void 0},S==null?void 0:S.style),l),O=b("tag",n),[M,N,P]=EM(O),B=ue(O,S==null?void 0:S.className,{[`${O}-${d}`]:R,[`${O}-has-color`]:d&&!R,[`${O}-hidden`]:!h,[`${O}-rtl`]:C==="rtl",[`${O}-borderless`]:!v},r,a,N,P),L=F=>{F.stopPropagation(),f==null||f(F),!F.defaultPrevented&&x(!1)},[,k]=MR(Iv(e),Iv(S),{closable:!1,closeIconRender:F=>{const W=i.createElement("span",{className:`${O}-close-icon`,onClick:L},F);return p1(F,W,q=>({onClick:V=>{var G;(G=q==null?void 0:q.onClick)===null||G===void 0||G.call(q,V),L(V)},className:ue(q==null?void 0:q.className,`${O}-close-icon`)}))}}),D=typeof p.onClick=="function"||c&&c.type==="a",H=u||null,z=H?i.createElement(i.Fragment,null,H,c&&i.createElement("span",null,c)):c,_=i.createElement("span",Object.assign({},w,{ref:t,className:B,style:I}),z,k,E&&i.createElement(Rne,{key:"preset",prefixCls:O}),j&&i.createElement(Ine,{key:"status",prefixCls:O}));return M(D?i.createElement(ef,{component:"Tag"},_):_)}),$n=Mne;$n.CheckableTag=Ene;var Tne={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"},Pne=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Tne}))},xr=i.forwardRef(Pne),zne={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"},Dne=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:zne}))},os=i.forwardRef(Dne),_ne={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"},Ane=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:_ne}))},Bne=i.forwardRef(Ane);const kne=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:l}=r;return{marginBottom:a,color:n,fontWeight:l,fontSize:e,lineHeight:t}},Lne=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
461
|
+
h${r}&,
|
|
462
|
+
div&-h${r},
|
|
463
|
+
div&-h${r} > textarea,
|
|
464
|
+
h${r}
|
|
465
|
+
`]=kne(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},Hne=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},m1(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Fne=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:Ov[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}}),Vne=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"}}}},Wne=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Kne=()=>({"\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"}}),Une=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"}},Lne(e)),{[`
|
|
466
|
+
& + h1${t},
|
|
467
|
+
& + h2${t},
|
|
468
|
+
& + h3${t},
|
|
469
|
+
& + h4${t},
|
|
470
|
+
& + h5${t}
|
|
471
|
+
`]:{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}}}),Fne(e)),Hne(e)),{[`
|
|
472
|
+
${t}-expand,
|
|
473
|
+
${t}-collapse,
|
|
474
|
+
${t}-edit,
|
|
475
|
+
${t}-copy
|
|
476
|
+
`]:Object.assign(Object.assign({},m1(e)),{marginInlineStart:e.marginXXS})}),Vne(e)),Wne(e)),Kne()),{"&-rtl":{direction:"rtl"}})}},qne=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),OM=sn("Typography",Une,qne),Gne=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:l,maxLength:c,autoSize:u=!0,value:d,onSave:f,onCancel:v,onEnd:g,component:p,enterIcon:b=i.createElement(Bne,null)}=e,C=i.useRef(null),S=i.useRef(!1),h=i.useRef(null),[x,w]=i.useState(d);i.useEffect(()=>{w(d)},[d]),i.useEffect(()=>{var D;if(!((D=C.current)===null||D===void 0)&&D.resizableTextArea){const{textArea:H}=C.current.resizableTextArea;H.focus();const{length:z}=H.value;H.setSelectionRange(z,z)}},[]);const E=({target:D})=>{w(D.value.replace(/[\n\r]/g,""))},j=()=>{S.current=!0},R=()=>{S.current=!1},I=({keyCode:D})=>{S.current||(h.current=D)},O=()=>{f(x.trim())},M=({keyCode:D,ctrlKey:H,altKey:z,metaKey:_,shiftKey:F})=>{h.current!==D||S.current||H||z||_||F||(D===ot.ENTER?(O(),g==null||g()):D===ot.ESC&&v())},N=()=>{O()},[P,B,L]=OM(t),k=ue(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${p}`]:!!p},r,B,L);return P(i.createElement("div",{className:k,style:a},i.createElement(zN,{ref:C,maxLength:c,value:x,onChange:E,onKeyDown:I,onKeyUp:M,onCompositionStart:j,onCompositionEnd:R,onBlur:N,"aria-label":n,rows:1,autoSize:u}),b!==null?$r(b,{className:`${t}-edit-content-confirm`}):null))};var rb,N4;function Xne(){return N4||(N4=1,rb=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()}}),rb}var ab,M4;function Yne(){if(M4)return ab;M4=1;var e=Xne(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(l){var c=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,c)}function a(l,c){var u,d,f,v,g,p,b=!1;c||(c={}),u=c.debug||!1;try{f=e(),v=document.createRange(),g=document.getSelection(),p=document.createElement("span"),p.textContent=l,p.ariaHidden="true",p.style.all="unset",p.style.position="fixed",p.style.top=0,p.style.clip="rect(0, 0, 0, 0)",p.style.whiteSpace="pre",p.style.webkitUserSelect="text",p.style.MozUserSelect="text",p.style.msUserSelect="text",p.style.userSelect="text",p.addEventListener("copy",function(S){if(S.stopPropagation(),c.format)if(S.preventDefault(),typeof S.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=t[c.format]||t.default;window.clipboardData.setData(h,l)}else S.clipboardData.clearData(),S.clipboardData.setData(c.format,l);c.onCopy&&(S.preventDefault(),c.onCopy(S.clipboardData))}),document.body.appendChild(p),v.selectNodeContents(p),g.addRange(v);var C=document.execCommand("copy");if(!C)throw new Error("copy command was unsuccessful");b=!0}catch(S){u&&console.error("unable to copy using execCommand: ",S),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(c.format||"text",l),c.onCopy&&c.onCopy(window.clipboardData),b=!0}catch(h){u&&console.error("unable to copy using clipboardData: ",h),u&&console.error("falling back to prompt"),d=r("message"in c?c.message:n),window.prompt(d,l)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(v):g.removeAllRanges()),p&&document.body.removeChild(p),f()}return b}return ab=a,ab}var Qne=Yne();const Zne=Mo(Qne);var Jne=function(e,t,n,r){function a(l){return l instanceof n?l:new n(function(c){c(l)})}return new(n||(n=Promise))(function(l,c){function u(v){try{f(r.next(v))}catch(g){c(g)}}function d(v){try{f(r.throw(v))}catch(g){c(g)}}function f(v){v.done?l(v.value):a(v.value).then(u,d)}f((r=r.apply(e,t||[])).next())})};const ere=({copyConfig:e,children:t})=>{const[n,r]=i.useState(!1),[a,l]=i.useState(!1),c=i.useRef(null),u=()=>{c.current&&clearTimeout(c.current)},d={};e.format&&(d.format=e.format),i.useEffect(()=>u,[]);const f=Xt(v=>Jne(void 0,void 0,void 0,function*(){var g;v==null||v.preventDefault(),v==null||v.stopPropagation(),l(!0);try{const p=typeof e.text=="function"?yield e.text():e.text;Zne(p||cZ(t,!0).join("")||"",d),l(!1),r(!0),u(),c.current=setTimeout(()=>{r(!1)},3e3),(g=e.onCopy)===null||g===void 0||g.call(e,v)}catch(p){throw l(!1),p}}));return{copied:n,copyLoading:a,onClick:f}};function ob(e,t){return i.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const tre=e=>{const t=i.useRef(void 0);return i.useEffect(()=>{t.current=e}),t.current},nre=(e,t,n)=>i.useMemo(()=>e===!0?{title:t??n}:i.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var rre=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 RM=i.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:a,rootClassName:l,setContentRef:c,children:u,direction:d,style:f}=e,v=rre(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:p,className:b,style:C}=fr("typography"),S=d??p,h=c?Ir(t,c):t,x=g("typography",n),[w,E,j]=OM(x),R=ue(x,b,{[`${x}-rtl`]:S==="rtl"},a,l,E,j),I=Object.assign(Object.assign({},C),f);return w(i.createElement(r,Object.assign({className:R,style:I,ref:h},v),u))});var are={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"},ore=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:are}))},Yo=i.forwardRef(ore);function T4(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function ib(e,t,n){return e===!0||e===void 0?t:e||n&&t}function ire(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 zC=e=>["string","number"].includes(typeof e),lre=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:a,icon:l,tabIndex:c,onCopy:u,loading:d})=>{const f=T4(a),v=T4(l),{copied:g,copy:p}=n??{},b=t?g:p,C=ib(f[t?1:0],b),S=typeof C=="string"?C:b;return i.createElement(Vn,{title:C},i.createElement("button",{type:"button",className:ue(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:u,"aria-label":S,tabIndex:c},t?ib(v[1],i.createElement(Ss,null),!0):ib(v[0],d?i.createElement(Io,null):i.createElement(Yo,null),!0)))},qm=i.forwardRef(({style:e,children:t},n)=>{const r=i.useRef(null);return i.useImperativeHandle(n,()=>({isExceed:()=>{const a=r.current;return a.scrollHeight>a.clientHeight},getHeight:()=>r.current.clientHeight})),i.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)}),sre=e=>e.reduce((t,n)=>t+(zC(n)?String(n).length:1),0);function P4(e,t){let n=0;const r=[];for(let a=0;a<e.length;a+=1){if(n===t)return r;const l=e[a],u=zC(l)?String(l).length:1,d=n+u;if(d>t){const f=t-n;return r.push(String(l).slice(0,f)),r}r.push(l),n=d}return e}const lb=0,sb=1,cb=2,ub=3,z4=4,Gm={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function cre(e){const{enableMeasure:t,width:n,text:r,children:a,rows:l,expanded:c,miscDeps:u,onEllipsis:d}=e,f=i.useMemo(()=>Xr(r),[r]),v=i.useMemo(()=>sre(f),[r]),g=i.useMemo(()=>a(f,!1),[r]),[p,b]=i.useState(null),C=i.useRef(null),S=i.useRef(null),h=i.useRef(null),x=i.useRef(null),w=i.useRef(null),[E,j]=i.useState(!1),[R,I]=i.useState(lb),[O,M]=i.useState(0),[N,P]=i.useState(null);nn(()=>{I(t&&n&&v?sb:lb)},[n,r,l,t,f]),nn(()=>{var D,H,z,_;if(R===sb){I(cb);const F=S.current&&getComputedStyle(S.current).whiteSpace;P(F)}else if(R===cb){const F=!!(!((D=h.current)===null||D===void 0)&&D.isExceed());I(F?ub:z4),b(F?[0,v]:null),j(F);const W=((H=h.current)===null||H===void 0?void 0:H.getHeight())||0,q=l===1?0:((z=x.current)===null||z===void 0?void 0:z.getHeight())||0,V=((_=w.current)===null||_===void 0?void 0:_.getHeight())||0,G=Math.max(W,q+V);M(G+1),d(F)}},[R]);const B=p?Math.ceil((p[0]+p[1])/2):0;nn(()=>{var D;const[H,z]=p||[0,0];if(H!==z){const F=(((D=C.current)===null||D===void 0?void 0:D.getHeight())||0)>O;let W=B;z-H===1&&(W=F?H:z),b(F?[H,W]:[W,z])}},[p,B]);const L=i.useMemo(()=>{if(!t)return a(f,!1);if(R!==ub||!p||p[0]!==p[1]){const D=a(f,!1);return[z4,lb].includes(R)?D:i.createElement("span",{style:Object.assign(Object.assign({},Gm),{WebkitLineClamp:l})},D)}return a(c?f:P4(f,p[0]),E)},[c,R,p,f].concat(Ne(u))),k={width:n,margin:0,padding:0,whiteSpace:N==="nowrap"?"normal":"inherit"};return i.createElement(i.Fragment,null,L,R===cb&&i.createElement(i.Fragment,null,i.createElement(qm,{style:Object.assign(Object.assign(Object.assign({},k),Gm),{WebkitLineClamp:l}),ref:h},g),i.createElement(qm,{style:Object.assign(Object.assign(Object.assign({},k),Gm),{WebkitLineClamp:l-1}),ref:x},g),i.createElement(qm,{style:Object.assign(Object.assign(Object.assign({},k),Gm),{WebkitLineClamp:1}),ref:w},a([],!0))),R===ub&&p&&p[0]!==p[1]&&i.createElement(qm,{style:Object.assign(Object.assign({},k),{top:400}),ref:C},a(P4(f,B),!0)),R===sb&&i.createElement("span",{style:{whiteSpace:"inherit"},ref:S}))}const ure=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:i.createElement(Vn,Object.assign({open:t?void 0:!1},r),n);var dre=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 fre({mark:e,code:t,underline:n,delete:r,strong:a,keyboard:l,italic:c},u){let d=u;function f(v,g){g&&(d=i.createElement(v,{},d))}return f("strong",a),f("u",n),f("del",r),f("code",t),f("mark",e),f("kbd",l),f("i",c),d}const mre="...",D4=["delete","mark","code","underline","strong","keyboard","italic"],Zg=i.forwardRef((e,t)=>{var n;const{prefixCls:r,className:a,style:l,type:c,disabled:u,children:d,ellipsis:f,editable:v,copyable:g,component:p,title:b}=e,C=dre(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:S,direction:h}=i.useContext(Rt),[x]=Pa("Text"),w=i.useRef(null),E=i.useRef(null),j=S("typography",r),R=wn(C,D4),[I,O]=ob(v),[M,N]=bn(!1,{value:O.editing}),{triggerType:P=["icon"]}=O,B=be=>{var $e;be&&(($e=O.onStart)===null||$e===void 0||$e.call(O)),N(be)},L=tre(M);nn(()=>{var be;!M&&L&&((be=E.current)===null||be===void 0||be.focus())},[M]);const k=be=>{be==null||be.preventDefault(),B(!0)},D=be=>{var $e;($e=O.onChange)===null||$e===void 0||$e.call(O,be),B(!1)},H=()=>{var be;(be=O.onCancel)===null||be===void 0||be.call(O),B(!1)},[z,_]=ob(g),{copied:F,copyLoading:W,onClick:q}=ere({copyConfig:_,children:d}),[V,G]=i.useState(!1),[K,U]=i.useState(!1),[Z,Q]=i.useState(!1),[te,X]=i.useState(!1),[ae,re]=i.useState(!0),[ne,Y]=ob(f,{expandable:!1,symbol:be=>be?x==null?void 0:x.collapse:x==null?void 0:x.expand}),[ie,le]=bn(Y.defaultExpanded||!1,{value:Y.expanded}),de=ne&&(!ie||Y.expandable==="collapsible"),{rows:ce=1}=Y,ge=i.useMemo(()=>de&&(Y.suffix!==void 0||Y.onEllipsis||Y.expandable||I||z),[de,Y,I,z]);nn(()=>{ne&&!ge&&(G(hy("webkitLineClamp")),U(hy("textOverflow")))},[ge,ne]);const[he,Oe]=i.useState(de),je=i.useMemo(()=>ge?!1:ce===1?K:V,[ge,K,V]);nn(()=>{Oe(je&&de)},[je,de]);const pe=de&&(he?te:Z),we=de&&ce===1&&he,Se=de&&ce>1&&he,Ce=(be,$e)=>{var Me;le($e.expanded),(Me=Y.onExpand)===null||Me===void 0||Me.call(Y,be,$e)},[De,Ae]=i.useState(0),Ye=({offsetWidth:be})=>{Ae(be)},Ke=be=>{var $e;Q(be),Z!==be&&(($e=Y.onEllipsis)===null||$e===void 0||$e.call(Y,be))};i.useEffect(()=>{const be=w.current;if(ne&&he&&be){const $e=ire(be);te!==$e&&X($e)}},[ne,he,d,Se,ae,De]),i.useEffect(()=>{const be=w.current;if(typeof IntersectionObserver>"u"||!be||!he||!de)return;const $e=new IntersectionObserver(()=>{re(!!be.offsetParent)});return $e.observe(be),()=>{$e.disconnect()}},[he,de]);const Fe=nre(Y.tooltip,O.text,d),Ge=i.useMemo(()=>{if(!(!ne||he))return[O.text,d,b,Fe.title].find(zC)},[ne,he,b,Fe.title,pe]);if(M)return i.createElement(Gne,{value:(n=O.text)!==null&&n!==void 0?n:typeof d=="string"?d:"",onSave:D,onCancel:H,onEnd:O.onEnd,prefixCls:j,className:a,style:l,direction:h,component:p,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const Te=()=>{const{expandable:be,symbol:$e}=Y;return be?i.createElement("button",{type:"button",key:"expand",className:`${j}-${ie?"collapse":"expand"}`,onClick:Me=>Ce(Me,{expanded:!ie}),"aria-label":ie?x.collapse:x==null?void 0:x.expand},typeof $e=="function"?$e(ie):$e):null},Ee=()=>{if(!I)return;const{icon:be,tooltip:$e,tabIndex:Me}=O,Le=Xr($e)[0]||(x==null?void 0:x.edit),et=typeof Le=="string"?Le:"";return P.includes("icon")?i.createElement(Vn,{key:"edit",title:$e===!1?"":Le},i.createElement("button",{type:"button",ref:E,className:`${j}-edit`,onClick:k,"aria-label":et,tabIndex:Me},be||i.createElement(os,{role:"button"}))):null},_e=()=>z?i.createElement(lre,Object.assign({key:"copy"},_,{prefixCls:j,copied:F,locale:x,onCopy:q,loading:W,iconOnly:d==null})):null,Re=be=>[be&&Te(),Ee(),_e()],Pe=be=>[be&&!ie&&i.createElement("span",{"aria-hidden":!0,key:"ellipsis"},mre),Y.suffix,Re(be)];return i.createElement(ma,{onResize:Ye,disabled:!de},be=>i.createElement(ure,{tooltipProps:Fe,enableEllipsis:de,isEllipsis:pe},i.createElement(RM,Object.assign({className:ue({[`${j}-${c}`]:c,[`${j}-disabled`]:u,[`${j}-ellipsis`]:ne,[`${j}-ellipsis-single-line`]:we,[`${j}-ellipsis-multiple-line`]:Se},a),prefixCls:r,style:Object.assign(Object.assign({},l),{WebkitLineClamp:Se?ce:void 0}),component:p,ref:Ir(be,w,t),direction:h,onClick:P.includes("text")?k:void 0,"aria-label":Ge==null?void 0:Ge.toString(),title:b},R),i.createElement(cre,{enableMeasure:de&&!he,text:d,rows:ce,width:De,onEllipsis:Ke,expanded:ie,miscDeps:[F,ie,W,I,z,x].concat(Ne(D4.map($e=>e[$e])))},($e,Me)=>fre(e,i.createElement(i.Fragment,null,$e.length>0&&Me&&!ie&&Ge?i.createElement("span",{key:"show-content","aria-hidden":!0},$e):$e,Pe(Me)))))))});var vre=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 gre=i.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:a,navigate:l}=e,c=vre(e,["ellipsis","rel","children","navigate"]),u=Object.assign(Object.assign({},c),{rel:r===void 0&&c.target==="_blank"?"noopener noreferrer":r});return i.createElement(Zg,Object.assign({},u,{ref:t,ellipsis:!!n,component:"a"}),a)});var pre=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 hre=i.forwardRef((e,t)=>{const{children:n}=e,r=pre(e,["children"]);return i.createElement(Zg,Object.assign({ref:t},r,{component:"div"}),n)});var bre=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 yre=(e,t)=>{const{ellipsis:n,children:r}=e,a=bre(e,["ellipsis","children"]),l=i.useMemo(()=>n&&typeof n=="object"?wn(n,["expandable","rows"]):n,[n]);return i.createElement(Zg,Object.assign({ref:t},a,{ellipsis:l,component:"span"}),r)},Cre=i.forwardRef(yre);var Sre=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 xre=[1,2,3,4,5],$re=i.forwardRef((e,t)=>{const{level:n=1,children:r}=e,a=Sre(e,["level","children"]),l=xre.includes(n)?`h${n}`:"h1";return i.createElement(Zg,Object.assign({ref:t},a,{component:l}),r)}),mr=RM;mr.Text=Cre;mr.Link=gre;mr.Title=$re;mr.Paragraph=hre;const db=(function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",l=a.replace(/\/.*$/,"");return n.some(function(c){var u=c.trim();if(/^\*(\/\*)?$/.test(c))return!0;if(u.charAt(0)==="."){var d=r.toLowerCase(),f=u.toLowerCase(),v=[f];return(f===".jpg"||f===".jpeg")&&(v=[".jpg",".jpeg"]),v.some(function(g){return d.endsWith(g)})}return/\/\*$/.test(u)?l===u.replace(/\/.*$/,""):a===u?!0:/^\w+$/.test(u)?(Xn(!1,"Upload takes an invalidate 'accept' type '".concat(u,"'.Skip for check.")),!0):!1})}return!0});function wre(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 _4(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function A4(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(l){l.total>0&&(l.percent=l.loaded/l.total*100),e.onProgress(l)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var l=e.data[a];if(Array.isArray(l)){l.forEach(function(c){n.append("".concat(a,"[]"),c)});return}n.append(a,l)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(l){e.onError(l)},t.onload=function(){return t.status<200||t.status>=300?e.onError(wre(e,t),_4(t)):e.onSuccess(_4(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 Ere=(function(){var e=wa(Fn().mark(function t(n,r){var a,l,c,u,d,f,v,g;return Fn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:f=function(){return f=wa(Fn().mark(function S(h){return Fn().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",new Promise(function(E){h.file(function(j){r(j)?(h.fullPath&&!j.webkitRelativePath&&(Object.defineProperties(j,{webkitRelativePath:{writable:!0}}),j.webkitRelativePath=h.fullPath.replace(/^\//,""),Object.defineProperties(j,{webkitRelativePath:{writable:!1}})),E(j)):E(null)})}));case 1:case"end":return w.stop()}},S)})),f.apply(this,arguments)},d=function(S){return f.apply(this,arguments)},u=function(){return u=wa(Fn().mark(function S(h){var x,w,E,j,R;return Fn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:x=h.createReader(),w=[];case 2:return O.next=5,new Promise(function(M){x.readEntries(M,function(){return M([])})});case 5:if(E=O.sent,j=E.length,j){O.next=9;break}return O.abrupt("break",12);case 9:for(R=0;R<j;R++)w.push(E[R]);O.next=2;break;case 12:return O.abrupt("return",w);case 13:case"end":return O.stop()}},S)})),u.apply(this,arguments)},c=function(S){return u.apply(this,arguments)},a=[],l=[],n.forEach(function(C){return l.push(C.webkitGetAsEntry())}),v=(function(){var C=wa(Fn().mark(function S(h,x){var w,E;return Fn().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(h){R.next=2;break}return R.abrupt("return");case 2:if(h.path=x||"",!h.isFile){R.next=10;break}return R.next=6,d(h);case 6:w=R.sent,w&&a.push(w),R.next=15;break;case 10:if(!h.isDirectory){R.next=15;break}return R.next=13,c(h);case 13:E=R.sent,l.push.apply(l,Ne(E));case 15:case"end":return R.stop()}},S)}));return function(h,x){return C.apply(this,arguments)}})(),g=0;case 9:if(!(g<l.length)){b.next=15;break}return b.next=12,v(l[g]);case 12:g++,b.next=9;break;case 15:return b.abrupt("return",a);case 16:case"end":return b.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}})(),Ore=+new Date,Rre=0;function fb(){return"rc-upload-".concat(Ore,"-").concat(++Rre)}var jre=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","folder","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Ire=(function(e){Xa(n,e);var t=go(n);function n(){var r;ur(this,n);for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return r=t.call.apply(t,[this].concat(l)),ee(xt(r),"state",{uid:fb()}),ee(xt(r),"reqs",{}),ee(xt(r),"fileInput",void 0),ee(xt(r),"_isMounted",void 0),ee(xt(r),"onChange",function(u){var d=r.props,f=d.accept,v=d.directory,g=u.target.files,p=Ne(g).filter(function(b){return!v||db(b,f)});r.uploadFiles(p),r.reset()}),ee(xt(r),"onClick",function(u){var d=r.fileInput;if(d){var f=u.target,v=r.props.onClick;if(f&&f.tagName==="BUTTON"){var g=d.parentNode;g.focus(),f.blur()}d.click(),v&&v(u)}}),ee(xt(r),"onKeyDown",function(u){u.key==="Enter"&&r.onClick(u)}),ee(xt(r),"onDataTransferFiles",(function(){var u=wa(Fn().mark(function d(f,v){var g,p,b,C,S,h,x;return Fn().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(g=r.props,p=g.multiple,b=g.accept,C=g.directory,S=Ne(f.items||[]),h=Ne(f.files||[]),(h.length>0||S.some(function(j){return j.kind==="file"}))&&(v==null||v()),!C){E.next=11;break}return E.next=7,Ere(Array.prototype.slice.call(S),function(j){return db(j,r.props.accept)});case 7:h=E.sent,r.uploadFiles(h),E.next=14;break;case 11:x=Ne(h).filter(function(j){return db(j,b)}),p===!1&&(x=h.slice(0,1)),r.uploadFiles(x);case 14:case"end":return E.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}})()),ee(xt(r),"onFilePaste",(function(){var u=wa(Fn().mark(function d(f){var v,g;return Fn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(v=r.props.pastable,v){b.next=3;break}return b.abrupt("return");case 3:if(f.type!=="paste"){b.next=6;break}return g=f.clipboardData,b.abrupt("return",r.onDataTransferFiles(g,function(){f.preventDefault()}));case 6:case"end":return b.stop()}},d)}));return function(d){return u.apply(this,arguments)}})()),ee(xt(r),"onFileDragOver",function(u){u.preventDefault()}),ee(xt(r),"onFileDrop",(function(){var u=wa(Fn().mark(function d(f){var v;return Fn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(f.preventDefault(),f.type!=="drop"){p.next=4;break}return v=f.dataTransfer,p.abrupt("return",r.onDataTransferFiles(v));case 4:case"end":return p.stop()}},d)}));return function(d){return u.apply(this,arguments)}})()),ee(xt(r),"uploadFiles",function(u){var d=Ne(u),f=d.map(function(v){return v.uid=fb(),r.processFile(v,d)});Promise.all(f).then(function(v){var g=r.props.onBatchStart;g==null||g(v.map(function(p){var b=p.origin,C=p.parsedFile;return{file:b,parsedFile:C}})),v.filter(function(p){return p.parsedFile!==null}).forEach(function(p){r.post(p)})})}),ee(xt(r),"processFile",(function(){var u=wa(Fn().mark(function d(f,v){var g,p,b,C,S,h,x,w,E;return Fn().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(g=r.props.beforeUpload,p=f,!g){R.next=14;break}return R.prev=3,R.next=6,g(f,v);case 6:p=R.sent,R.next=12;break;case 9:R.prev=9,R.t0=R.catch(3),p=!1;case 12:if(p!==!1){R.next=14;break}return R.abrupt("return",{origin:f,parsedFile:null,action:null,data:null});case 14:if(b=r.props.action,typeof b!="function"){R.next=21;break}return R.next=18,b(f);case 18:C=R.sent,R.next=22;break;case 21:C=b;case 22:if(S=r.props.data,typeof S!="function"){R.next=29;break}return R.next=26,S(f);case 26:h=R.sent,R.next=30;break;case 29:h=S;case 30:return x=($t(p)==="object"||typeof p=="string")&&p?p:f,x instanceof File?w=x:w=new File([x],f.name,{type:f.type}),E=w,E.uid=f.uid,R.abrupt("return",{origin:f,data:h,parsedFile:E,action:C});case 35:case"end":return R.stop()}},d,null,[[3,9]])}));return function(d,f){return u.apply(this,arguments)}})()),ee(xt(r),"saveFileInput",function(u){r.fileInput=u}),r}return dr(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 l=this.props.pastable;l&&!a.pastable?document.addEventListener("paste",this.onFilePaste):!l&&a.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(a){var l=this,c=a.data,u=a.origin,d=a.action,f=a.parsedFile;if(this._isMounted){var v=this.props,g=v.onStart,p=v.customRequest,b=v.name,C=v.headers,S=v.withCredentials,h=v.method,x=u.uid,w=p||A4,E={action:d,filename:b,data:c,file:f,headers:C,withCredentials:S,method:h||"post",onProgress:function(R){var I=l.props.onProgress;I==null||I(R,f)},onSuccess:function(R,I){var O=l.props.onSuccess;O==null||O(R,f,I),delete l.reqs[x]},onError:function(R,I){var O=l.props.onError;O==null||O(R,I,f),delete l.reqs[x]}};g(u),this.reqs[x]=w(E,{defaultRequest:A4})}}},{key:"reset",value:function(){this.setState({uid:fb()})}},{key:"abort",value:function(a){var l=this.reqs;if(a){var c=a.uid?a.uid:a;l[c]&&l[c].abort&&l[c].abort(),delete l[c]}else Object.keys(l).forEach(function(u){l[u]&&l[u].abort&&l[u].abort(),delete l[u]})}},{key:"render",value:function(){var a=this.props,l=a.component,c=a.prefixCls,u=a.className,d=a.classNames,f=d===void 0?{}:d,v=a.disabled,g=a.id,p=a.name,b=a.style,C=a.styles,S=C===void 0?{}:C,h=a.multiple,x=a.accept,w=a.capture,E=a.children,j=a.directory,R=a.folder,I=a.openFileDialogOnClick,O=a.onMouseEnter,M=a.onMouseLeave,N=a.hasControlInside,P=Lt(a,jre),B=ue(ee(ee(ee({},c,!0),"".concat(c,"-disabled"),v),u,u)),L=j||R?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},k=v?{}:{onClick:I?this.onClick:function(){},onKeyDown:I?this.onKeyDown:function(){},onMouseEnter:O,onMouseLeave:M,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:N?void 0:"0"};return ve.createElement(l,ye({},k,{className:B,role:N?void 0:"button",style:b}),ve.createElement("input",ye({},Rr(P,{aria:!0,data:!0}),{id:g,name:p,disabled:v,type:"file",ref:this.saveFileInput,onClick:function(H){return H.stopPropagation()},key:this.state.uid,style:se({display:"none"},S.input),className:f.input,accept:x},L,{multiple:h,onChange:this.onChange},w!=null?{capture:w}:{})),E)}}]),n})(i.Component);function mb(){}var Yy=(function(e){Xa(n,e);var t=go(n);function n(){var r;ur(this,n);for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return r=t.call.apply(t,[this].concat(l)),ee(xt(r),"uploader",void 0),ee(xt(r),"saveUploader",function(u){r.uploader=u}),r}return dr(n,[{key:"abort",value:function(a){this.uploader.abort(a)}},{key:"render",value:function(){return ve.createElement(Ire,ye({},this.props,{ref:this.saveUploader}))}}]),n})(i.Component);ee(Yy,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:mb,onError:mb,onSuccess:mb,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const Nre=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${oe(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:`${oe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
477
|
+
&:not(${t}-disabled):hover,
|
|
478
|
+
&-hover:not(${t}-disabled)
|
|
479
|
+
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${oe(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
|
|
480
|
+
p${t}-text,
|
|
481
|
+
p${t}-hint
|
|
482
|
+
`]:{color:e.colorTextDisabled}}}}}},Mre=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:a,calc:l}=e,c=`${t}-list-item`,u=`${c}-actions`,d=`${c}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},Ko()),{lineHeight:e.lineHeight,[c]:{position:"relative",height:l(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({},Ua),{padding:`0 ${oe(e.paddingXS)}`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[u]:{whiteSpace:"nowrap",[d]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
|
|
483
|
+
${d}:focus-visible,
|
|
484
|
+
&.picture ${d}
|
|
485
|
+
`]:{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:l(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${c}:hover ${d}`]:{opacity:1},[`${c}-error`]:{color:e.colorError,[`${c}-name, ${t}-icon ${n}`]:{color:e.colorError},[u]:{[`${n}, ${n}:hover`]:{color:e.colorError},[d]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Tre=e=>{const{componentCls:t}=e,n=new Jt("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Jt("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`]:w1(e)},n,r]},Pre=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:a,calc:l}=e,c=`${t}-list`,u=`${c}-item`;return{[`${t}-wrapper`]:{[`
|
|
486
|
+
${c}${c}-picture,
|
|
487
|
+
${c}${c}-picture-card,
|
|
488
|
+
${c}${c}-picture-circle
|
|
489
|
+
`]:{[u]:{position:"relative",height:l(r).add(l(e.lineWidth).mul(2)).add(l(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${u}-thumbnail`]:Object.assign(Object.assign({},Ua),{width:r,height:r,lineHeight:oe(l(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% - ${oe(l(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:l(r).add(e.paddingXS).equal()}},[`${u}-error`]:{borderColor:e.colorError,[`${u}-thumbnail ${n}`]:{[`svg path[fill='${Pc[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Pc.primary}']`]:{fill:e.colorError}}},[`${u}-uploading`]:{borderStyle:"dashed",[`${u}-name`]:{marginBottom:a}}},[`${c}${c}-picture-circle ${u}`]:{[`&, &::before, ${u}-thumbnail`]:{borderRadius:"50%"}}}}},zre=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:a,calc:l}=e,c=`${t}-list`,u=`${c}-item`,d=e.uploadPicCardSize;return{[`
|
|
490
|
+
${t}-wrapper${t}-picture-card-wrapper,
|
|
491
|
+
${t}-wrapper${t}-picture-circle-wrapper
|
|
492
|
+
`]:Object.assign(Object.assign({},Ko()),{display:"block",[`${t}${t}-select`]:{width:d,height:d,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${oe(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:d,height:d,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[u]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${oe(l(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${oe(l(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}`,[`
|
|
493
|
+
${n}-eye,
|
|
494
|
+
${n}-download,
|
|
495
|
+
${n}-delete
|
|
496
|
+
`]:{zIndex:10,width:r,margin:`0 ${oe(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% - ${oe(l(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% - ${oe(l(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Dre=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},_re=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},dn(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"}})}},Are=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),Bre=sn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:a,calc:l}=e,c=tn(e,{uploadThumbnailSize:l(t).mul(2).equal(),uploadProgressOffset:l(l(n).div(2)).add(r).equal(),uploadPicCardSize:a});return[_re(c),Nre(c),Pre(c),zre(c),Mre(c),Tre(c),Dre(c),tf(c)]},Are);var kre={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"},Lre=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:kre}))},Hre=i.forwardRef(Lre),Fre={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"},Vre=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Fre}))},Wre=i.forwardRef(Vre),Kre={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"},Ure=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Kre}))},qre=i.forwardRef(Ure);function Xm(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 Ym(e,t){const n=Ne(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function vb(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Gre(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 Xre=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},jM=e=>e.indexOf("image/")===0,Yre=e=>{if(e.type&&!e.thumbUrl)return jM(e.type);const t=e.thumbUrl||e.url||"",n=Xre(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)},Xi=200;function Qre(e){return new Promise(t=>{if(!e.type||!jM(e.type)){t("");return}const n=document.createElement("canvas");n.width=Xi,n.height=Xi,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Xi}px; height: ${Xi}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:l,height:c}=a;let u=Xi,d=Xi,f=0,v=0;l>c?(d=c*(Xi/l),v=-(d-u)/2):(u=l*(Xi/c),f=-(u-d)/2),r.drawImage(a,f,v,u,d);const g=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(g)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const l=new FileReader;l.onload=()=>{l.result&&typeof l.result=="string"&&(a.src=l.result)},l.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const l=new FileReader;l.onload=()=>{l.result&&t(l.result)},l.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var Zre={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"},Jre=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Zre}))},IM=i.forwardRef(Jre);const eae=i.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:l,items:c,progress:u,iconRender:d,actionIconRender:f,itemRender:v,isImgUrl:g,showPreviewIcon:p,showRemoveIcon:b,showDownloadIcon:C,previewIcon:S,removeIcon:h,downloadIcon:x,extra:w,onPreview:E,onDownload:j,onClose:R},I)=>{var O,M;const{status:N}=l,[P,B]=i.useState(N);i.useEffect(()=>{N!=="removed"&&B(N)},[N]);const[L,k]=i.useState(!1);i.useEffect(()=>{const Y=setTimeout(()=>{k(!0)},300);return()=>{clearTimeout(Y)}},[]);const D=d(l);let H=i.createElement("div",{className:`${e}-icon`},D);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(P==="uploading"||!l.thumbUrl&&!l.url){const Y=ue(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:P!=="uploading"});H=i.createElement("div",{className:Y},D)}else{const Y=g!=null&&g(l)?i.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${e}-list-item-image`,crossOrigin:l.crossOrigin}):D,ie=ue(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:g&&!g(l)});H=i.createElement("a",{className:ie,onClick:le=>E(l,le),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Y)}const z=ue(`${e}-list-item`,`${e}-list-item-${P}`),_=typeof l.linkProps=="string"?JSON.parse(l.linkProps):l.linkProps,F=(typeof b=="function"?b(l):b)?f((typeof h=="function"?h(l):h)||i.createElement(xr,null),()=>R(l),e,r.removeFile,!0):null,W=(typeof C=="function"?C(l):C)&&P==="done"?f((typeof x=="function"?x(l):x)||i.createElement(IM,null),()=>j(l),e,r.downloadFile):null,q=a!=="picture-card"&&a!=="picture-circle"&&i.createElement("span",{key:"download-delete",className:ue(`${e}-list-item-actions`,{picture:a==="picture"})},W,F),V=typeof w=="function"?w(l):w,G=V&&i.createElement("span",{className:`${e}-list-item-extra`},V),K=ue(`${e}-list-item-name`),U=l.url?i.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:K,title:l.name},_,{href:l.url,onClick:Y=>E(l,Y)}),l.name,G):i.createElement("span",{key:"view",className:K,onClick:Y=>E(l,Y),title:l.name},l.name,G),Z=(typeof p=="function"?p(l):p)&&(l.url||l.thumbUrl)?i.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Y=>E(l,Y),title:r.previewFile},typeof S=="function"?S(l):S||i.createElement(yC,null)):null,Q=(a==="picture-card"||a==="picture-circle")&&P!=="uploading"&&i.createElement("span",{className:`${e}-list-item-actions`},Z,P==="done"&&W,F),{getPrefixCls:te}=i.useContext(Rt),X=te(),ae=i.createElement("div",{className:z},H,U,q,Q,L&&i.createElement(Qr,{motionName:`${X}-fade`,visible:P==="uploading",motionDeadline:2e3},({className:Y})=>{const ie="percent"in l?i.createElement(GN,Object.assign({type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]},u)):null;return i.createElement("div",{className:ue(`${e}-list-item-progress`,Y)},ie)})),re=l.response&&typeof l.response=="string"?l.response:((O=l.error)===null||O===void 0?void 0:O.statusText)||((M=l.error)===null||M===void 0?void 0:M.message)||r.uploadError,ne=P==="error"?i.createElement(Vn,{title:re,getPopupContainer:Y=>Y.parentNode},ae):ae;return i.createElement("div",{className:ue(`${e}-list-item-container`,t),style:n,ref:I},v?v(ne,l,c,{download:j.bind(null,l),preview:E.bind(null,l),remove:R.bind(null,l)}):ne)}),tae=(e,t)=>{const{listType:n="text",previewFile:r=Qre,onPreview:a,onDownload:l,onRemove:c,locale:u,iconRender:d,isImageUrl:f=Yre,prefixCls:v,items:g=[],showPreviewIcon:p=!0,showRemoveIcon:b=!0,showDownloadIcon:C=!1,removeIcon:S,previewIcon:h,downloadIcon:x,extra:w,progress:E={size:[-1,2],showInfo:!1},appendAction:j,appendActionVisible:R=!0,itemRender:I,disabled:O}=e,[,M]=h1(),[N,P]=i.useState(!1),B=["picture-card","picture-circle"].includes(n);i.useEffect(()=>{n.startsWith("picture")&&(g||[]).forEach(K=>{!(K.originFileObj instanceof File||K.originFileObj instanceof Blob)||K.thumbUrl!==void 0||(K.thumbUrl="",r==null||r(K.originFileObj).then(U=>{K.thumbUrl=U||"",M()}))})},[n,g,r]),i.useEffect(()=>{P(!0)},[]);const L=(K,U)=>{if(a)return U==null||U.preventDefault(),a(K)},k=K=>{typeof l=="function"?l(K):K.url&&window.open(K.url)},D=K=>{c==null||c(K)},H=K=>{if(d)return d(K,n);const U=K.status==="uploading";if(n.startsWith("picture")){const Z=n==="picture"?i.createElement(Io,null):u.uploading,Q=f!=null&&f(K)?i.createElement(qre,null):i.createElement(Hre,null);return U?Z:Q}return U?i.createElement(Io,null):i.createElement(Wre,null)},z=(K,U,Z,Q,te)=>{const X={type:"text",size:"small",title:Q,onClick:ae=>{var re,ne;U(),i.isValidElement(K)&&((ne=(re=K.props).onClick)===null||ne===void 0||ne.call(re,ae))},className:`${Z}-list-item-action`,disabled:te?O:!1};return i.isValidElement(K)?i.createElement(nt,Object.assign({},X,{icon:$r(K,Object.assign(Object.assign({},K.props),{onClick:()=>{}}))})):i.createElement(nt,Object.assign({},X),i.createElement("span",null,K))};i.useImperativeHandle(t,()=>({handlePreview:L,handleDownload:k}));const{getPrefixCls:_}=i.useContext(Rt),F=_("upload",v),W=_(),q=ue(`${F}-list`,`${F}-list-${n}`),V=i.useMemo(()=>wn(zc(W),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[W]),G=Object.assign(Object.assign({},B?{}:V),{motionDeadline:2e3,motionName:`${F}-${B?"animate-inline":"animate"}`,keys:Ne(g.map(K=>({key:K.uid,file:K}))),motionAppear:N});return i.createElement("div",{className:q},i.createElement(g1,Object.assign({},G,{component:!1}),({key:K,file:U,className:Z,style:Q})=>i.createElement(eae,{key:K,locale:u,prefixCls:F,className:Z,style:Q,file:U,items:g,progress:E,listType:n,isImgUrl:f,showPreviewIcon:p,showRemoveIcon:b,showDownloadIcon:C,removeIcon:S,previewIcon:h,downloadIcon:x,extra:w,iconRender:H,actionIconRender:z,itemRender:I,onPreview:L,onDownload:k,onClose:D})),j&&i.createElement(Qr,Object.assign({},G,{visible:R,forceRender:!0}),({className:K,style:U})=>$r(j,Z=>({className:ue(Z.className,K),style:Object.assign(Object.assign(Object.assign({},U),{pointerEvents:K?"none":void 0}),Z.style)}))))},nae=i.forwardRef(tae);var rae=function(e,t,n,r){function a(l){return l instanceof n?l:new n(function(c){c(l)})}return new(n||(n=Promise))(function(l,c){function u(v){try{f(r.next(v))}catch(g){c(g)}}function d(v){try{f(r.throw(v))}catch(g){c(g)}}function f(v){v.done?l(v.value):a(v.value).then(u,d)}f((r=r.apply(e,[])).next())})};const pd=`__LIST_IGNORE_${Date.now()}__`,aae=(e,t)=>{const n=fr("upload"),{fileList:r,defaultFileList:a,onRemove:l,showUploadList:c=!0,listType:u="text",onPreview:d,onDownload:f,onChange:v,onDrop:g,previewFile:p,disabled:b,locale:C,iconRender:S,isImageUrl:h,progress:x,prefixCls:w,className:E,type:j="select",children:R,style:I,itemRender:O,maxCount:M,data:N={},multiple:P=!1,hasControlInside:B=!0,action:L="",accept:k="",supportServerRender:D=!0,rootClassName:H}=e,z=i.useContext(Vr),_=b??z,F=e.customRequest||n.customRequest,[W,q]=bn(a||[],{value:r,postState:be=>be??[]}),[V,G]=i.useState("drop"),K=i.useRef(null),U=i.useRef(null);i.useMemo(()=>{const be=Date.now();(r||[]).forEach(($e,Me)=>{!$e.uid&&!Object.isFrozen($e)&&($e.uid=`__AUTO__${be}_${Me}__`)})},[r]);const Z=(be,$e,Me)=>{let Le=Ne($e),et=!1;M===1?Le=Le.slice(-1):M&&(et=Le.length>M,Le=Le.slice(0,M)),fo.flushSync(()=>{q(Le)});const bt={file:be,fileList:Le};Me&&(bt.event=Me),(!et||be.status==="removed"||Le.some(We=>We.uid===be.uid))&&fo.flushSync(()=>{v==null||v(bt)})},Q=(be,$e)=>rae(void 0,void 0,void 0,function*(){const{beforeUpload:Me,transformFile:Le}=e;let et=be;if(Me){const bt=yield Me(be,$e);if(bt===!1)return!1;if(delete be[pd],bt===pd)return Object.defineProperty(be,pd,{value:!0,configurable:!0}),!1;typeof bt=="object"&&bt&&(et=bt)}return Le&&(et=yield Le(et)),et}),te=be=>{const $e=be.filter(et=>!et.file[pd]);if(!$e.length)return;const Me=$e.map(et=>Xm(et.file));let Le=Ne(W);Me.forEach(et=>{Le=Ym(et,Le)}),Me.forEach((et,bt)=>{let We=et;if($e[bt].parsedFile)et.status="uploading";else{const{originFileObj:tt}=et;let dt;try{dt=new File([tt],tt.name,{type:tt.type})}catch{dt=new Blob([tt],{type:tt.type}),dt.name=tt.name,dt.lastModifiedDate=new Date,dt.lastModified=new Date().getTime()}dt.uid=et.uid,We=dt}Z(We,Le)})},X=(be,$e,Me)=>{try{typeof be=="string"&&(be=JSON.parse(be))}catch{}if(!vb($e,W))return;const Le=Xm($e);Le.status="done",Le.percent=100,Le.response=be,Le.xhr=Me;const et=Ym(Le,W);Z(Le,et)},ae=(be,$e)=>{if(!vb($e,W))return;const Me=Xm($e);Me.status="uploading",Me.percent=be.percent;const Le=Ym(Me,W);Z(Me,Le,be)},re=(be,$e,Me)=>{if(!vb(Me,W))return;const Le=Xm(Me);Le.error=be,Le.response=$e,Le.status="error";const et=Ym(Le,W);Z(Le,et)},ne=be=>{let $e;Promise.resolve(typeof l=="function"?l(be):l).then(Me=>{var Le;if(Me===!1)return;const et=Gre(be,W);et&&($e=Object.assign(Object.assign({},be),{status:"removed"}),W==null||W.forEach(bt=>{const We=$e.uid!==void 0?"uid":"name";bt[We]===$e[We]&&!Object.isFrozen(bt)&&(bt.status="removed")}),(Le=K.current)===null||Le===void 0||Le.abort($e),Z($e,et))})},Y=be=>{G(be.type),be.type==="drop"&&(g==null||g(be))};i.useImperativeHandle(t,()=>({onBatchStart:te,onSuccess:X,onProgress:ae,onError:re,fileList:W,upload:K.current,nativeElement:U.current}));const{getPrefixCls:ie,direction:le,upload:de}=i.useContext(Rt),ce=ie("upload",w),ge=Object.assign(Object.assign({onBatchStart:te,onError:re,onProgress:ae,onSuccess:X},e),{customRequest:F,data:N,multiple:P,action:L,accept:k,supportServerRender:D,prefixCls:ce,disabled:_,beforeUpload:Q,onChange:void 0,hasControlInside:B});delete ge.className,delete ge.style,(!R||_)&&delete ge.id;const he=`${ce}-wrapper`,[Oe,je,pe]=Bre(ce,he),[we]=Pa("Upload",vo.Upload),{showRemoveIcon:Se,showPreviewIcon:Ce,showDownloadIcon:De,removeIcon:Ae,previewIcon:Ye,downloadIcon:Ke,extra:Fe}=typeof c=="boolean"?{}:c,Ge=typeof Se>"u"?!_:Se,Te=(be,$e)=>c?i.createElement(nae,{prefixCls:ce,listType:u,items:W,previewFile:p,onPreview:d,onDownload:f,onRemove:ne,showRemoveIcon:Ge,showPreviewIcon:Ce,showDownloadIcon:De,removeIcon:Ae,previewIcon:Ye,downloadIcon:Ke,iconRender:S,extra:Fe,locale:Object.assign(Object.assign({},we),C),isImageUrl:h,progress:x,appendAction:be,appendActionVisible:$e,itemRender:O,disabled:_}):be,Ee=ue(he,E,H,je,pe,de==null?void 0:de.className,{[`${ce}-rtl`]:le==="rtl",[`${ce}-picture-card-wrapper`]:u==="picture-card",[`${ce}-picture-circle-wrapper`]:u==="picture-circle"}),_e=Object.assign(Object.assign({},de==null?void 0:de.style),I);if(j==="drag"){const be=ue(je,ce,`${ce}-drag`,{[`${ce}-drag-uploading`]:W.some($e=>$e.status==="uploading"),[`${ce}-drag-hover`]:V==="dragover",[`${ce}-disabled`]:_,[`${ce}-rtl`]:le==="rtl"});return Oe(i.createElement("span",{className:Ee,ref:U},i.createElement("div",{className:be,style:_e,onDrop:Y,onDragOver:Y,onDragLeave:Y},i.createElement(Yy,Object.assign({},ge,{ref:K,className:`${ce}-btn`}),i.createElement("div",{className:`${ce}-drag-container`},R))),Te()))}const Re=ue(ce,`${ce}-select`,{[`${ce}-disabled`]:_,[`${ce}-hidden`]:!R}),Pe=i.createElement("div",{className:Re,style:_e},i.createElement(Yy,Object.assign({},ge,{ref:K})));return Oe(u==="picture-card"||u==="picture-circle"?i.createElement("span",{className:Ee,ref:U},Te(Pe,!!R)):i.createElement("span",{className:Ee,ref:U},Pe,Te()))},NM=i.forwardRef(aae);var oae=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 iae=i.forwardRef((e,t)=>{const{style:n,height:r,hasControlInside:a=!1,children:l}=e,c=oae(e,["style","height","hasControlInside","children"]),u=Object.assign(Object.assign({},n),{height:r});return i.createElement(NM,Object.assign({ref:t,hasControlInside:a},c,{style:u,type:"drag"}),l)}),Jg=NM;Jg.Dragger=iae;Jg.LIST_IGNORE=pd;var lae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 00-11.3 0l-39.6 39.6a8.03 8.03 0 000 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 00-11.3 0l-67.9 67.9a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z"}}]},name:"alert",theme:"outlined"},sae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:lae}))},MM=i.forwardRef(sae),cae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},uae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:cae}))},Qy=i.forwardRef(uae),dae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},fae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:dae}))},TM=i.forwardRef(fae),mae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 00123.2-149.5A120 120 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 01308 680V412h408v268z"}}]},name:"bug",theme:"outlined"},vae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:mae}))},Ud=i.forwardRef(vae),gae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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"}}]},name:"check-circle",theme:"outlined"},pae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:gae}))},Vc=i.forwardRef(pae),hae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.1 657.7a31.8 31.8 0 0051.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.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:"check-square",theme:"outlined"},bae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:hae}))},DC=i.forwardRef(bae),yae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z"}}]},name:"chrome",theme:"outlined"},Cae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:yae}))},Sae=i.forwardRef(Cae),xae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"},$ae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:xae}))},wae=i.forwardRef($ae),Eae={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 64zm176.5 585.7l-28.6 39a7.99 7.99 0 01-11.2 1.7L483.3 569.8a7.92 7.92 0 01-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z"}}]},name:"clock-circle",theme:"filled"},Oae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Eae}))},Rae=i.forwardRef(Oae),jae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 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:"code",theme:"outlined"},Iae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:jae}))},vs=i.forwardRef(Iae),Nae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"},Mae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Nae}))},B4=i.forwardRef(Mae),Tae={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 372zm198.4-588.1a32 32 0 00-24.5.5L414.9 415 296.4 686c-3.6 8.2-3.6 17.5 0 25.7 3.4 7.8 9.7 13.9 17.7 17 3.8 1.5 7.7 2.2 11.7 2.2 4.4 0 8.7-.9 12.8-2.7l271-118.6 118.5-271a32.06 32.06 0 00-17.7-42.7zM576.8 534.4l26.2 26.2-42.4 42.4-26.2-26.2L380 644.4 447.5 490 422 464.4l42.4-42.4 25.5 25.5L644.4 380l-67.6 154.4zM464.4 422L422 464.4l25.5 25.6 86.9 86.8 26.2 26.2 42.4-42.4-26.2-26.2-86.8-86.9z"}}]},name:"compass",theme:"outlined"},Pae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Tae}))},zae=i.forwardRef(Pae),Dae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"}}]},name:"compress",theme:"outlined"},_ae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Dae}))},Zy=i.forwardRef(_ae),Aae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 289.1a362.49 362.49 0 00-79.9-115.7 370.83 370.83 0 00-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 00169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0022.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z"}}]},name:"environment",theme:"outlined"},Bae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Aae}))},kae=i.forwardRef(Bae),Lae={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:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Hae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Lae}))},PM=i.forwardRef(Hae),Fae={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},Vae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Fae}))},_C=i.forwardRef(Vae),Wae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-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-8zm-392 88c-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-8H296zm144 452H208V148h560v344c0 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 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},Kae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Wae}))},zM=i.forwardRef(Kae),Uae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},qae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Uae}))},Gae=i.forwardRef(qae),Xae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"}}]},name:"fire",theme:"outlined"},Yae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Xae}))},qd=i.forwardRef(Yae),Qae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.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-add",theme:"outlined"},Zae=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Qae}))},Jae=i.forwardRef(Zae),eoe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},toe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:eoe}))},noe=i.forwardRef(toe),roe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M913.9 552.2L805 181.4v-.1c-7.6-22.9-25.7-36.5-48.3-36.5-23.4 0-42.5 13.5-49.7 35.2l-71.4 213H388.8l-71.4-213c-7.2-21.7-26.3-35.2-49.7-35.2-23.1 0-42.5 14.8-48.4 36.6L110.5 552.2c-4.4 14.7 1.2 31.4 13.5 40.7l368.5 276.4c2.6 3.6 6.2 6.3 10.4 7.8l8.6 6.4 8.5-6.4c4.9-1.7 9-4.7 11.9-8.9l368.4-275.4c12.4-9.2 18-25.9 13.6-40.6zM751.7 193.4c1-1.8 2.9-1.9 3.5-1.9 1.1 0 2.5.3 3.4 3L818 394.3H684.5l67.2-200.9zm-487.4 1c.9-2.6 2.3-2.9 3.4-2.9 2.7 0 2.9.1 3.4 1.7l67.3 201.2H206.5l57.8-200zM158.8 558.7l28.2-97.3 202.4 270.2-230.6-172.9zm73.9-116.4h122.1l90.8 284.3-212.9-284.3zM512.9 776L405.7 442.3H620L512.9 776zm157.9-333.7h119.5L580 723.1l90.8-280.8zm-40.7 293.9l207.3-276.7 29.5 99.2-236.8 177.5z"}}]},name:"gitlab",theme:"outlined"},aoe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:roe}))},ooe=i.forwardRef(aoe),ioe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},loe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:ioe}))},bf=i.forwardRef(loe),soe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-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-8zM312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"hdd",theme:"outlined"},coe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:soe}))},uoe=i.forwardRef(coe),doe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},foe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:doe}))},Gd=i.forwardRef(foe),moe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},voe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:moe}))},goe=i.forwardRef(voe),poe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},hoe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:poe}))},Xd=i.forwardRef(hoe),boe={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:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},yoe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:boe}))},gs=i.forwardRef(yoe),Coe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L255.8 713.6l-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.19 8.19 0 00-11.4 0l-39.8 39.8a8.19 8.19 0 000 11.4l110.3 111.2c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.1 304.1 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112m161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2"}}]},name:"key",theme:"outlined"},Soe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Coe}))},xoe=i.forwardRef(Soe),$oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},woe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:$oe}))},DM=i.forwardRef(woe),Eoe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"},Ooe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Eoe}))},gb=i.forwardRef(Ooe),Roe={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 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"},joe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Roe}))},Ioe=i.forwardRef(joe),Noe={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:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},Moe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Noe}))},Jy=i.forwardRef(Moe),Toe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-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:"project",theme:"outlined"},Poe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Toe}))},Yd=i.forwardRef(Poe),zoe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"},Doe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:zoe}))},gl=i.forwardRef(Doe),_oe={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"},Aoe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:_oe}))},Boe=i.forwardRef(Aoe),koe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},Loe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:koe}))},Hoe=i.forwardRef(Loe),Foe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},Voe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Foe}))},AC=i.forwardRef(Voe),Woe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},Koe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Woe}))},_M=i.forwardRef(Koe),Uoe={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-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},qoe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Uoe}))},Xv=i.forwardRef(qoe),Goe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},Xoe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Goe}))},e1=i.forwardRef(Xoe),Yoe={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"},Qoe=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Yoe}))},Zoe=i.forwardRef(Qoe),Joe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"},eie=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:Joe}))},tie=i.forwardRef(eie),nie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-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-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},rie=function(t,n){return i.createElement(wt,ye({},t,{ref:n,icon:nie}))},Wc=i.forwardRef(rie);const aie="0.1.17",oie={version:aie};async function _t(e,t){const n=await fetch(e,t);if(!n.ok)throw new Error((await n.json().catch(()=>({}))).error||"Something went wrong. Please try again.");return n.status===204?null:n.json()}const br={list:()=>_t("/api/launchers"),running:()=>_t("/api/launchers/running"),create:e=>_t("/api/launchers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>_t(`/api/launchers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>_t(`/api/launchers/${e}`,{method:"DELETE"}),start:e=>_t(`/api/launchers/${e}/start`,{method:"POST"}),run:(e,t)=>_t(`/api/launchers/${e}/scripts/${t}/run`,{method:"POST"}),runInstall:e=>_t(`/api/launchers/${e}/install/run`,{method:"POST"}),stop:async(e,t)=>{try{return await _t(`/api/launchers/${e}/stop`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scriptId:t})})}catch{return _t(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/stop`,{method:"POST"})}},logs:(e,t)=>_t(`/api/launchers/${e}/scripts/${t}/logs`),errorLogs:(e,t)=>_t(`/api/launchers/${e}/scripts/${t}/logs/error`),clearLogs:(e,t)=>_t(`/api/launchers/${e}/scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"}),packageScripts:e=>_t(`/api/launchers/${e}/package-scripts`),runPackageScript:(e,t)=>_t(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/run`,{method:"POST"}),packageScriptLogs:(e,t)=>_t(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`),packageScriptErrorLogs:(e,t)=>_t(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs/error`),clearPackageScriptLogs:(e,t)=>_t(`/api/launchers/${e}/package-scripts/${encodeURIComponent(t)}/logs`,{method:"DELETE"})},iie={list:()=>_t("/api/plugins")},Yi={list:e=>_t(`/api/clipboard${e?`?date=${encodeURIComponent(e)}`:""}`),tagged:()=>_t("/api/clipboard/tagged"),remove:(e,t)=>_t(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{method:"DELETE"}),uploadImage:e=>_t("/api/clipboard/image",{method:"POST",headers:{"Content-Type":e.type||"image/png"},body:e}),updateTags:(e,t,n)=>_t(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/tags`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:n})}),copied:(e,t)=>_t(`/api/clipboard/${encodeURIComponent(e)}/${encodeURIComponent(t)}/copied`,{method:"POST"})},gi={list:()=>_t("/api/group-tasks"),catalog:()=>_t("/api/group-tasks/catalog"),create:e=>_t("/api/group-tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>_t(`/api/group-tasks/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>_t(`/api/group-tasks/${e}`,{method:"DELETE"}),start:e=>_t(`/api/group-tasks/${e}/start`,{method:"POST"}),stop:e=>_t(`/api/group-tasks/${e}/stop`,{method:"POST"})},pb={list:()=>_t("/api/port-diagnostics"),get:e=>_t(`/api/port-diagnostics/${encodeURIComponent(e)}`),kill:(e,t)=>_t("/api/port-diagnostics/kill",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({port:e,pid:t})})},AM={open:e=>_t("/api/settings/open-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})}),openPath:(e,t="")=>_t("/api/settings/open-editor",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e,location:t})})},qr={status:()=>_t("/api/settings"),selectDirectory:()=>_t("/api/settings/select-directory",{method:"POST"}),saveDomain:e=>_t("/api/settings/domain",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:e})}),saveJiraIssuePrefix:e=>_t("/api/settings/jira-issue-prefix",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({jiraIssuePrefix:e})}),saveDefaultEditor:e=>_t("/api/settings/default-editor",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultEditor:e})}),saveDefaultBrowser:e=>_t("/api/settings/default-browser",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultBrowser:e})}),saveAccessToken:(e,t)=>_t(`/api/settings/${encodeURIComponent(e)}-access-token`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})}),saveClipboardEnabled:e=>_t("/api/settings/clipboard-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardImageEnabled:e=>_t("/api/settings/clipboard-image-enabled",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:e})}),saveClipboardDeduplicateMinutes:e=>_t("/api/settings/clipboard-deduplicate-minutes",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({minutes:e})})},Qm={check:e=>_t("/api/pr-review/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prLink:e})}),myPrs:()=>_t("/api/pr-review/my-prs"),reviewPrs:()=>_t("/api/pr-review/review-prs"),comment:e=>_t("/api/pr-review/comment",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},gc={list:()=>_t("/api/jira-filters"),create:e=>_t("/api/jira-filters",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>_t(`/api/jira-filters/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>_t(`/api/jira-filters/${e}`,{method:"DELETE"}),issues:e=>_t(`/api/jira-filters/${e}/issues`),cloneIssue:e=>_t("/api/jira-filters/issues/clone",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},pa={list:()=>_t("/api/todos"),create:e=>_t("/api/todos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>_t(`/api/todos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>_t(`/api/todos/${e}`,{method:"DELETE"}),archive:e=>_t(`/api/todos/${e}/archive`,{method:"POST"}),unarchive:e=>_t(`/api/todos/${e}/unarchive`,{method:"POST"}),batch:(e,t)=>_t("/api/todos/batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,ids:t})})},xc={list:()=>_t("/api/static-pages"),create:e=>_t("/api/static-pages",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),update:(e,t)=>_t(`/api/static-pages/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),remove:e=>_t(`/api/static-pages/${e}`,{method:"DELETE"})},Od={list:()=>_t("/api/errors"),log:e=>_t("/api/errors",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),clear:()=>_t("/api/errors",{method:"DELETE"}),remove:e=>_t(`/api/errors/${e}`,{method:"DELETE"})},Qi={getData:()=>_t("/api/postman"),importCollection:e=>_t("/api/postman/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collectionJson:e})}),createCollection:e=>_t("/api/postman/collections",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateCollection:(e,t)=>_t(`/api/postman/collections/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteCollection:e=>_t(`/api/postman/collections/${e}`,{method:"DELETE"}),saveEnvironments:e=>_t("/api/postman/environments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),sendRequest:e=>_t("/api/postman/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})},hb={status:()=>_t("/api/bookmark-sync/status"),preview:e=>_t(`/api/bookmark-sync/preview?mode=${encodeURIComponent(e)}`),sync:e=>_t("/api/bookmark-sync/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e})})},lie="modulepreload",sie=function(e){return"/"+e},k4={},BM=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let c=function(f){return Promise.all(f.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));a=c(n.map(f=>{if(f=sie(f),f in k4)return;k4[f]=!0;const v=f.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${g}`))return;const p=document.createElement("link");if(p.rel=v?"stylesheet":lie,v||(p.as="script"),p.crossOrigin="",p.href=f,d&&p.setAttribute("nonce",d),document.head.appendChild(p),v)return new Promise((b,C)=>{p.addEventListener("load",b),p.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${f}`)))})}))}function l(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return a.then(c=>{for(const u of c||[])u.status==="rejected"&&l(u.reason);return t().catch(l)})};async function kM(e,t,n){const r=URL.createObjectURL(e);try{const a=await new Promise((f,v)=>{const g=new Image;g.onload=()=>f(g),g.onerror=()=>v(new Error("Unable to read this image. Please choose a valid image file.")),g.src=r}),l=document.createElement("canvas"),c=Math.max(a.naturalWidth,a.naturalHeight);let u=1;t&&(u=t/c),n!=null&&n>0&&n<=100&&(u=u*(n/100)),l.width=Math.max(1,Math.round(a.naturalWidth*u)),l.height=Math.max(1,Math.round(a.naturalHeight*u));const d=l.getContext("2d",{willReadFrequently:!0});return d.drawImage(a,0,0,l.width,l.height),{imageData:d.getImageData(0,0,l.width,l.height),width:l.width,height:l.height}}finally{URL.revokeObjectURL(r)}}async function cie(e,t={}){const{quality:n=75,progressive:r=!0,optimizeCoding:a=!0,autoSubsample:l=!0}=t,[{encode:c},{imageData:u}]=await Promise.all([BM(()=>import("./index-Dty-56mC.js"),[]),kM(e)]),d=await c(u,{quality:n,progressive:r,optimize_coding:a,auto_subsample:l}),f=new Blob([d],{type:"image/jpeg"}),v=(e.name||"clipboard-image.png").replace(/\.[^.]+$/,"")+".jpg";return new File([f],v,{type:"image/jpeg"})}const L4=[{value:"chrome",label:"Google Chrome"},{value:"edge",label:"Microsoft Edge"},{value:"safari",label:"Safari"}];function uie(e=!0){return e?L4:L4.filter(t=>t.value!=="safari")}function Ca(e){e&&AM.open(e).catch(()=>{window.open(e,"_blank")})}function BC(e,t){if(!e||!t)return"";const n=e.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`https://${n.startsWith("jira.")?n:`jira.${n}`}/browse/${t.toUpperCase()}`}function die(e,t){if(!t)return"";if(!e)return`https://jira.example.com/issues/?filter=${encodeURIComponent(t)}`;const n=e.replace(/^https?:\/\//i,"").replace(/\/+$/,"");return`https://${n.includes("jira")||n.includes(".atlassian.net")?n:`jira.${n}`}/issues/?filter=${encodeURIComponent(t)}`}const{Title:fie,Text:pc,Paragraph:mie}=mr,od=()=>new Intl.DateTimeFormat("en-CA").format(new Date),vie=[{value:0,label:"No deduplication (0 min)"},{value:5,label:"5 minutes"},{value:15,label:"15 minutes"},{value:30,label:"30 minutes"},{value:60,label:"1 hour (Default)"},{value:120,label:"2 hours"},{value:360,label:"6 hours"},{value:720,label:"12 hours"},{value:1440,label:"24 hours"}];function gie({value:e,domain:t,jiraIssuePrefix:n}){const r=[],a=/\[[^\]]+\]\(https?:\/\/[^\s)]+\)|https?:\/\/[^\s]+/g;let l=0;const c=(n||"").split(/[\s,]+/).filter(Boolean).map(f=>f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),u=c.length>0&&t?new RegExp(`\\b(?:${c.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,d=(f,v)=>{if(!u||!t)return f;const g=[];let p=0;u.lastIndex=0;for(const b of f.matchAll(u)){b.index>p&&g.push(f.slice(p,b.index));const C=b[0],S=BC(t,C);g.push($.jsx("a",{href:S,target:"_blank",rel:"noreferrer",onClick:h=>{h.preventDefault(),Ca(S)},children:C},`${v}-${b.index}`)),p=b.index+C.length}return p<f.length&&g.push(f.slice(p)),g};for(const f of e.matchAll(a)){f.index>l&&r.push(...d(e.slice(l,f.index),`txt-${f.index}`));const v=f[0].match(/^\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)$/);if(v)r.push($.jsx("a",{href:v[2],target:"_blank",rel:"noreferrer",onClick:g=>{g.preventDefault(),Ca(v[2])},children:v[1]},f.index));else{const g=f[0].replace(/[),.;:!?]+$/,"");r.push($.jsx("a",{href:g,target:"_blank",rel:"noreferrer",onClick:p=>{p.preventDefault(),Ca(g)},children:g},f.index)),f[0].length>g.length&&r.push(f[0].slice(g.length))}l=f.index+f[0].length}return l<e.length&&r.push(...d(e.slice(l),"txt-end")),r}const H4=e=>e.text||e.preview||"";function Vl(e,t,n){const r=e.trim();if(!r)return!1;if(t==="account")return r.length<=20&&(/^[AT]\d+/i.test(r)||/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/i.test(r)||/\b(?:account|username|user\s*name|login|帐号|账号|用户名)\s*[:=]/i.test(r));if(t==="id")return/^[a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]+-[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$/i.test(r);if(t==="url")return/^https?:\/\/[^\s]+$/i.test(r);if(t==="json"){if(r.startsWith("{")&&r.endsWith("}")||r.startsWith("[")&&r.endsWith("]"))try{return JSON.parse(r),!0}catch{return!1}return!1}if(t==="jira"){const a=(n||"").split(/[\s,]+/).filter(Boolean).map(l=>l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return a.length>0?new RegExp(`\\b(?:${a.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"i").test(r):/\b[A-Z]{2,10}-[a-zA-Z0-9]{1,10}\b/i.test(r)}return t==="code"?/```[\s\S]*?```|\b(?:const|let|var|function|class|import|export|SELECT|INSERT|UPDATE|DELETE)\b|[{};][\s\S]*[{};]/.test(r):!0}function pie(){const{message:e}=Ya.useApp(),[t,n]=i.useState(()=>{const X=localStorage.getItem("buddy_clipboard_enabled");return X!==null?X==="true":!0}),[r,a]=i.useState(!0),[l,c]=i.useState([]),[u,d]=i.useState(od()),[f,v]=i.useState([]),[g,p]=i.useState([]),[b,C]=i.useState(null),[S,h]=i.useState(""),[x,w]=i.useState("all"),[E,j]=i.useState(null),[R,I]=i.useState(""),[O,M]=i.useState(""),[N,P]=i.useState(60),[B,L]=i.useState(!1),[k,D]=i.useState(!0);i.useEffect(()=>{qr.status().then(X=>{if(X){if(X.isMac!==void 0&&L(X.isMac),X.clipboardEnabled!==void 0){const ae=X.clipboardEnabled!==!1;n(ae),localStorage.setItem("buddy_clipboard_enabled",String(ae))}X.clipboardImageEnabled!==void 0&&D(X.clipboardImageEnabled!==!1),X.clipboardDeduplicateMinutes!==void 0&&P(X.clipboardDeduplicateMinutes),X.domain&&I(X.domain),X.jiraIssuePrefix&&M(X.jiraIssuePrefix)}}).catch(()=>{}).finally(()=>a(!1))},[]);const H=async X=>{n(X),localStorage.setItem("buddy_clipboard_enabled",String(X));try{const re=(await qr.saveClipboardEnabled(X)).clipboardEnabled!==!1;n(re),localStorage.setItem("buddy_clipboard_enabled",String(re)),e.success(X?"Clipboard history enabled":"Clipboard history disabled")}catch(ae){e.error(ae.message)}},z=async X=>{D(X);try{const ae=await qr.saveClipboardImageEnabled(X);ae&&ae.clipboardImageEnabled!==void 0&&D(ae.clipboardImageEnabled!==!1),e.success(X?"Image clipboard monitoring enabled":"Image clipboard monitoring disabled")}catch(ae){e.error(ae.message)}},_=async X=>{P(X);try{await qr.saveClipboardDeduplicateMinutes(X),e.success("Duplicate filter window updated.")}catch(ae){e.error(ae.message)}},F=async X=>{try{const[ae,re]=await Promise.all([Yi.list(X),Yi.tagged().catch(()=>({items:[]}))]);c(ae.dates),v(ae.items),p(re.items||[])}catch(ae){e.error(ae.message)}},W=async(X,ae)=>{const re=(ae||"").trim();if(!re)return;const ne=X.tags||[];if(ne.includes(re)){C(null);return}const Y=[...ne,re],ie=X.date||u;try{await Yi.updateTags(ie,X.id,Y),v(le=>le.map(de=>de.id===X.id?{...de,tags:Y}:de)),p(le=>le.some(ce=>ce.id===X.id)?le.map(ce=>ce.id===X.id?{...ce,tags:Y}:ce):[{...X,tags:Y,date:ie},...le]),e.success("Tag added")}catch(le){e.error(le.message)}finally{C(null),h("")}},q=async(X,ae)=>{const ne=(X.tags||[]).filter(ie=>ie!==ae),Y=X.date||u;try{await Yi.updateTags(Y,X.id,ne),v(ie=>ie.map(le=>le.id===X.id?{...le,tags:ne}:le)),p(ie=>ne.length===0?ie.filter(le=>le.id!==X.id):ie.map(le=>le.id===X.id?{...le,tags:ne}:le)),e.success("Tag removed")}catch(ie){e.error(ie.message)}},V=i.useRef(od());i.useEffect(()=>{if(!t)return;const X=()=>{const Y=od();if(Y!==V.current){const ie=V.current;if(V.current=Y,u===ie)return d(Y),!0}return!1};X()||F(u);const re=()=>{X()||F(u)};window.addEventListener("visibilitychange",re),window.addEventListener("focus",re);let ne=null;return u===od()&&(ne=setInterval(()=>{document.visibilityState==="visible"&&F(u)},3e3)),()=>{window.removeEventListener("visibilitychange",re),window.removeEventListener("focus",re),ne&&clearInterval(ne)}},[u,t]);const G=async X=>{try{await Yi.remove(u,X),await F(u),e.success("Clipboard entry deleted.")}catch(ae){e.error(ae.message)}},K=async X=>{const ae=X.date||u;if(X.imageFile)try{const ne=await(await fetch(`${window.location.origin}/api/clipboard/image/${X.imageFile}`)).blob();await navigator.clipboard.write([new ClipboardItem({[ne.type]:ne})]),Yi.copied(ae,X.id).catch(()=>{}),j(X.id),setTimeout(()=>{j(Y=>Y===X.id?null:Y)},1e3)}catch(re){e.error("Failed to copy image: "+re.message)}else navigator.clipboard.writeText(X.text||X.preview),Yi.copied(ae,X.id).catch(()=>{}),j(X.id),setTimeout(()=>{j(re=>re===X.id?null:re)},1e3)};i.useEffect(()=>{if(!t)return;const X=ae=>{const re=document.activeElement;if(!(re&&(re.tagName==="INPUT"||re.tagName==="TEXTAREA"||re.isContentEditable))){if(ae.key==="ArrowLeft"){const ne=[...new Set([...l,u])].sort(),Y=ne.indexOf(u);Y<ne.length-1&&Y!==-1&&d(ne[Y+1])}else if(ae.key==="ArrowRight"){const ne=[...new Set([...l,u])].sort(),Y=ne.indexOf(u);Y>0&&d(ne[Y-1])}}};return window.addEventListener("keydown",X),()=>window.removeEventListener("keydown",X)},[l,u,t]),i.useEffect(()=>{if(!t)return;const X=async ae=>{var Y;const re=document.activeElement;if(re&&(re.tagName==="INPUT"||re.tagName==="TEXTAREA"||re.isContentEditable))return;const ne=(Y=ae.clipboardData)==null?void 0:Y.items;if(ne){for(const ie of ne)if(ie.type.startsWith("image/")){const le=ie.getAsFile();if(le){try{e.loading({content:"Compressing and saving image from paste…",key:"paste-upload",duration:0});const de=await cie(le);await Yi.uploadImage(de);const ce=od();d(ce),await F(ce),e.success({content:"Image pasted and saved to history!",key:"paste-upload"})}catch(de){e.error({content:"Failed to save pasted image: "+de.message,key:"paste-upload"})}break}}}};return window.addEventListener("paste",X),()=>window.removeEventListener("paste",X)},[u,t]);const U=l.reduce((X,ae)=>{var ie;const[re,ne,Y]=ae.split("-");return X[re]||(X[re]={}),(ie=X[re])[ne]||(ie[ne]=[]),X[re][ne].push(Y),X},{}),Z=Object.entries(U).sort(([X],[ae])=>ae.localeCompare(X)).map(([X,ae])=>({value:X,label:X,children:Object.entries(ae).sort(([re],[ne])=>ne.localeCompare(re)).map(([re,ne])=>({value:re,label:re,children:ne.sort().reverse().map(Y=>({value:Y,label:Y}))}))})),Q=i.useMemo(()=>x==="tagged"?g:x==="all"?f:x==="image"?f.filter(X=>!!X.imageFile):f.filter(X=>!X.imageFile&&Vl(H4(X),x,O)),[x,f,g,O]),te=i.useMemo(()=>{const X={all:f.length,tagged:g.length,jira:0,account:0,id:0,url:0,json:0,code:0,image:0};for(const ae of f)if(ae.imageFile)X.image++;else{const re=H4(ae);Vl(re,"jira",O)&&X.jira++,Vl(re,"account")&&X.account++,Vl(re,"id")&&X.id++,Vl(re,"url")&&X.url++,Vl(re,"json")&&X.json++,Vl(re,"code")&&X.code++}return[{key:"all",label:`All (${X.all})`},{key:"tagged",label:`Tagged (${X.tagged})`},{key:"jira",label:`Jira (${X.jira})`},{key:"account",label:`Account (${X.account})`},{key:"id",label:`ID (${X.id})`},{key:"url",label:`Url (${X.url})`},{key:"json",label:`JSON (${X.json})`},{key:"code",label:`Code (${X.code})`},{key:"image",label:`Img (${X.image})`}]},[f,g,O]);return $.jsxs($.Fragment,{children:[$.jsxs("div",{className:"page-header",children:[$.jsxs("div",{children:[$.jsx(pc,{type:"secondary",children:"LOCAL CLIPBOARD"}),$.jsx(fie,{level:2,children:"Clipboard history"}),$.jsx(mie,{type:"secondary",children:"Saved locally and archived by date."})]}),$.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:8},children:[$.jsxs(Ot,{size:16,align:"center",children:[$.jsx(Wd,{loading:r,checked:t,onChange:H,checkedChildren:"On",unCheckedChildren:"Off"}),$.jsx(ru,{className:"clipboard-picker",disabled:!t||r,options:Z,value:u.split("-"),onChange:X=>(X==null?void 0:X.length)===3&&d(X.join("-")),placeholder:"Select date"})]}),$.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:6},children:[$.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[$.jsx(pc,{type:"secondary",style:{fontSize:12},children:"Deduplicate filter:"}),$.jsx(ir,{size:"small",disabled:!t||r,value:N,onChange:_,style:{width:160},options:vie})]}),B&&$.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[$.jsx(pc,{type:"secondary",style:{fontSize:12},children:"Monitor image clipboard:"}),$.jsx(Wd,{size:"small",disabled:!t||r,checked:k,onChange:z,checkedChildren:"On",unCheckedChildren:"Off"})]})]})]})]}),t?$.jsxs($.Fragment,{children:[$.jsx(Zo,{className:"clipboard-tabs",activeKey:x,onChange:w,items:te}),Q.length?$.jsx("div",{className:"clipboard-list",children:Q.map(X=>{const ae=X.date||u,re=`${window.location.origin}/api/clipboard/${ae}/${X.id}`,ne=new Date(X.createdAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return $.jsxs(Mn,{size:"small",className:"clipboard-item",children:[$.jsxs("div",{children:[$.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[$.jsx(pc,{type:"secondary",children:ne}),X.date&&X.date!==u&&$.jsx($n,{style:{margin:0},children:X.date}),(X.tags||[]).map(Y=>$.jsx($n,{color:"blue",closable:!0,onClose:ie=>{ie.preventDefault(),q(X,Y)},style:{margin:0},children:Y},Y)),$.jsx(L1,{content:$.jsxs(Ot.Compact,{style:{width:200},children:[$.jsx(hn,{size:"small",placeholder:"Tag name",value:S,onChange:Y=>h(Y.target.value),onPressEnter:()=>W(X,S)}),$.jsx(nt,{size:"small",type:"primary",onClick:()=>W(X,S),children:"Add"})]}),title:"Add Tag",trigger:"click",open:b===X.id,onOpenChange:Y=>{C(Y?X.id:null),h("")},children:$.jsxs($n,{style:{cursor:"pointer",borderStyle:"dashed",margin:0},children:[$.jsx(ra,{})," Tag"]})})]}),X.imageFile?$.jsx("div",{style:{marginTop:8},children:$.jsx("img",{src:`${window.location.origin}/api/clipboard/image/${X.imageFile}`,alt:"Clipboard entry",style:{maxWidth:"100%",maxHeight:300,borderRadius:6,cursor:"pointer",border:"1px solid #eef0f6"},onClick:()=>window.open(`${window.location.origin}/api/clipboard/image/${X.imageFile}`,"_blank")})}):$.jsxs($.Fragment,{children:[$.jsx("pre",{style:{marginTop:8},children:$.jsx(gie,{value:X.preview||X.text,domain:R,jiraIssuePrefix:O})}),X.contentFile&&$.jsxs("span",{className:"clipboard-original",children:[$.jsx("a",{href:re,target:"_blank",rel:"noreferrer",children:"View original content"}),$.jsxs("a",{href:X.editorUrl,children:["Open in ",X.editorName||"editor"]})]})]})]}),$.jsxs("span",{className:"clipboard-actions",children:[$.jsx(Vn,{title:E===X.id?"Copied!":"Copy",children:$.jsx(nt,{type:"text",icon:E===X.id?$.jsx(Ss,{style:{color:"#52c41a"}}):$.jsx(Yo,{}),onClick:()=>K(X)})}),$.jsx(Vn,{title:"Delete",children:$.jsx(nt,{type:"text",danger:!0,icon:$.jsx(xr,{}),onClick:()=>G(X.id)})})]})]},X.id)})}):$.jsx(Gn,{description:`No ${x==="all"?"clipboard entries":`${x==="id"?"ID":x} entries`}${x==="tagged"?".":` for ${u}.`}`})]}):$.jsx(Mn,{style:{marginTop:24,textAlign:"center",padding:"48px 0"},children:$.jsx(Gn,{image:$.jsx(Xv,{style:{fontSize:48,color:"#9ca3af"}}),description:$.jsxs("div",{style:{marginTop:8},children:[$.jsx(pc,{strong:!0,style:{fontSize:16,display:"block",color:"#374151"},children:"Clipboard history is disabled"}),$.jsx(pc,{type:"secondary",children:"Turn on the switch in the top-right corner to start capturing and viewing history."})]})})}),$.jsx(xl.BackTop,{visibilityHeight:240})]})}const LM=[{value:"vscode",label:"VS Code"},{value:"devin",label:"Devin"},{value:"idea",label:"IntelliJ IDEA"}];function HM(e="vscode"){const t=LM.find(n=>n.value===e);return t?t.label:"VS Code"}function FM(e="vscode",t="",n="",r={}){if(!t)return"";const a=typeof r=="boolean"?r:!!(r!=null&&r.newWindow);let l="",c="";if(n){const u=n.split(":").filter(Boolean);u[0]&&(l=u[0]),u[1]&&(c=u[1])}if(e==="idea"){let u=`idea://open?file=${encodeURIComponent(t)}`;return l&&(u+=`&line=${l}`),c&&(u+=`&column=${c}`),u}return e==="devin"?`devin://file${encodeURI(t)}${n}`:a?`vscode://vscode.open-folder${encodeURI(t)}?forceNewWindow=true`:`vscode://file${encodeURI(t)}${n}`}const{Text:bb}=mr;function hie({tasks:e,running:t,onCreate:n,onEdit:r,onStart:a,onStop:l,onRemove:c}){const u=[{title:"Name",dataIndex:"name",render:d=>$.jsx(bb,{strong:!0,children:d})},{title:"Scripts",dataIndex:"items",width:110,render:d=>$.jsxs(bb,{type:"secondary",children:[d.length," scripts"]})},{title:"Actions",width:236,render:(d,f)=>{const v=f.items.every(g=>t.has(`${g.launcherId}:${g.scriptId}`));return $.jsxs(Ot,{children:[$.jsx(nt,{size:"small",danger:v,icon:v?$.jsx(Xv,{}):$.jsx(Jy,{}),onClick:()=>v?l(f):a(f),children:v?"Stop":"Start"}),$.jsx(nt,{size:"small",onClick:()=>r(f),children:"Edit"}),$.jsx(nt,{size:"small",danger:!0,icon:$.jsx(xr,{}),onClick:()=>c(f),children:"Delete"})]})}}];return $.jsxs($.Fragment,{children:[$.jsxs("div",{className:"group-task-header",children:[$.jsx(bb,{type:"secondary",children:"Start selected scripts across multiple services."}),$.jsx(nt,{type:"primary",icon:$.jsx(ra,{}),onClick:n,children:"Add quick launch"})]}),e.length?$.jsx(jr,{className:"group-task-table",rowKey:"id",dataSource:e,columns:u,pagination:!1,size:"small"}):$.jsx(Gn,{description:"No quick launches yet.",className:"group-task-empty"})]})}const{Text:Wl}=mr,id=(e,t)=>`${e}:${t}`,bie=()=>$.jsx("div",{style:{width:"0.8em",height:"0.8em",backgroundColor:"rgba(0,0,0,0.88)"}});function yie({form:e,editing:t,executor:n,running:r,errorCounts:a={},packageScripts:l,onRun:c,onRunInstall:u,onRunPackage:d,onStop:f,onLogs:v,onPackageLogs:g}){const p=!!(t&&[...r].some(S=>S.startsWith(`${t.id}:`))),[b,C]=i.useState(()=>p);return i.useEffect(()=>{p&&C(!0)},[t==null?void 0:t.id]),i.useEffect(()=>{p||C(!1)},[p]),$.jsx(on.List,{name:"scripts",children:(S,{add:h,remove:x})=>{const w=["npm","pnpm","yarn"].includes(n)?{id:"install",name:"Install",command:`${n} install${n==="npm"?" --legacy-peer-deps":""}`}:null,E=[...S.map(I=>({...I,key:`custom-${I.key}`,kind:"custom"})),...w?[{key:"install",kind:"install",script:w}]:[],...(l||[]).map(I=>({key:`package-${I.id}`,kind:"package",script:I}))],j=b?E.filter(I=>{const O=I.kind==="custom"?e.getFieldValue(["scripts",I.name]):I.script;return t&&(O==null?void 0:O.id)&&r.has(id(t.id,O.id))}):E,R=[{title:"Source",width:100,render:(I,O)=>$.jsx($n,{color:O.kind==="package"?"blue":O.kind==="install"?"green":"default",children:O.kind==="package"?"Package":O.kind==="install"?"Executor":"Custom"})},{title:"Script name",width:200,render:(I,O)=>{var B;const M=O.kind==="custom"?e.getFieldValue(["scripts",O.name]):O.script,N=(M==null?void 0:M.name)===e.getFieldValue("startCommand"),P=t&&(M==null?void 0:M.id)&&r.has(id(t.id,M.id));return $.jsxs(Ot,{direction:"vertical",size:1,style:{width:"100%"},children:[O.kind!=="custom"||P?$.jsxs(Ot,{size:4,children:[$.jsx(Wl,{strong:!0,children:(M==null?void 0:M.name)||((B=O.script)==null?void 0:B.name)}),N&&$.jsx(gl,{className:"start-script-icon"})]}):$.jsx(on.Item,{noStyle:!0,name:[O.name,"name"],rules:[{required:!0,message:"Required"}],children:$.jsx(hn,{placeholder:"serve",allowClear:!0,suffix:N?$.jsx(gl,{className:"start-script-icon"}):null})}),P&&$.jsx(Ka,{status:"success",text:$.jsx(Wl,{type:"secondary",style:{fontSize:11},children:"running"})})]})}},{title:"Command",render:(I,O)=>{const M=O.kind==="custom"?e.getFieldValue(["scripts",O.name]):O.script,N=t&&(M==null?void 0:M.id)&&r.has(id(t.id,M.id));return O.kind==="package"?$.jsxs(Ot,{direction:"vertical",size:0,children:[$.jsxs(Wl,{code:!0,children:[n," run ",O.script.name]}),$.jsx(Wl,{type:"secondary",style:{fontSize:12},children:O.script.command})]}):O.kind==="install"?$.jsx(Wl,{code:!0,children:O.script.command}):N?$.jsx(Wl,{code:!0,children:M==null?void 0:M.command}):$.jsx(on.Item,{noStyle:!0,name:[O.name,"command"],rules:[{required:!0,message:"Required"}],children:$.jsx(hn,{placeholder:"npm run dev",allowClear:!0})})}},{title:"Actions",width:132,render:(I,O)=>{const M=O.kind==="custom"?e.getFieldValue(["scripts",O.name]):O.script,N=t&&(M==null?void 0:M.id)&&r.has(id(t.id,M.id)),P=t&&(M!=null&&M.id)&&a[id(t.id,M.id)]||0;return $.jsxs(Ot,{size:2,children:[t&&$.jsx(Vn,{title:N?"Stop":"Start",children:$.jsx(nt,{type:"text",danger:N,icon:N?$.jsx(bie,{}):$.jsx(Ioe,{}),onClick:()=>N?f(M):O.kind==="package"?d(M):O.kind==="install"?u(M):c(M),disabled:!(M!=null&&M.id)})}),$.jsx(Vn,{title:"Logs",children:$.jsx(Ka,{count:P,size:"small",offset:[-2,2],children:$.jsx(nt,{type:"text",icon:$.jsx(Wg,{}),onClick:()=>O.kind==="package"?g(M):v(M),disabled:!t||!(M!=null&&M.id)})})}),O.kind==="custom"&&!N&&$.jsx(Vn,{title:"Remove",children:$.jsx(nt,{type:"text",danger:!0,icon:$.jsx(xr,{}),onClick:()=>x(O.name)})})]})}}];return $.jsxs($.Fragment,{children:[$.jsxs("div",{className:"script-header",children:[$.jsx(dC,{orientation:"left",children:"Scripts"}),$.jsxs(Ot,{size:"middle",align:"center",children:[$.jsxs("label",{style:{display:"inline-flex",alignItems:"center",gap:6,cursor:"pointer",userSelect:"none"},children:[$.jsx(Wd,{size:"small",checked:b,onChange:C,disabled:!t}),$.jsx(Wl,{type:"secondary",style:{fontSize:13},children:"Show running only"})]}),$.jsx(nt,{icon:$.jsx(ra,{}),onClick:()=>{C(!1),h({name:"",command:""})},children:"Add script"})]})]}),$.jsx(jr,{size:"small",rowKey:"key",pagination:!1,loading:l===null,dataSource:j,columns:R})]})}})}const Cie=e=>$.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"currentColor",style:{verticalAlign:"-0.125em",...e.style},...e,children:$.jsx("path",{d:"M.75 2.5a.75.75 0 01.742-.647h21.016a.75.75 0 01.742.853l-2.622 17.5a.75.75 0 01-.742.644H4.114a.75.75 0 01-.742-.644L.75 2.5zm13.1 11.2h-3.7l-.76-3.8h5.22l-.76 3.8z"})});function Sie(e){if(!e)return null;const t=e.toLowerCase();return t.includes("bitbucket")?$.jsx(Cie,{style:{color:"#2584FF"}}):t.includes("github")?$.jsx(noe,{style:{color:"#24292e"}}):t.includes("gitlab")?$.jsx(ooe,{style:{color:"#fc6d26"}}):$.jsx(bf,{style:{color:"#1890ff"}})}function VM({repoUrl:e,style:t}){if(!e)return null;const n=Sie(e);return n?$.jsx(Vn,{title:"Open repository in browser",children:$.jsx(nt,{type:"text",size:"small",icon:n,onClick:r=>{r.preventDefault(),r.stopPropagation(),Ca(e)},style:{padding:0,width:20,height:20,minWidth:20,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:4,...t}})}):null}const xie=()=>({alias:"",folder:"",groupName:"",executor:"npm",startCommand:void 0,scripts:[]});function $ie({open:e,editing:t,groups:n,running:r,errorCounts:a={},onCancel:l,onSave:c,onRun:u,onRunInstall:d,onRunPackage:f,onStop:v,onLogs:g,onDelete:p}){const{message:b,modal:C}=Ya.useApp(),[S]=on.useForm(),[h,x]=i.useState(null),[w,E]=i.useState(!1),j=async()=>{E(!0);try{const O=await qr.selectDirectory();if(O&&O.path&&(S.setFieldValue("folder",O.path),!S.getFieldValue("alias"))){const N=O.path.split(/[/\\]/).filter(Boolean);N.length>0&&S.setFieldValue("alias",N[N.length-1])}}catch(O){b.error(O.message)}finally{E(!1)}},R=()=>{C.confirm({title:"Delete Service",content:`Are you sure you want to delete service "${t==null?void 0:t.alias}"?`,okText:"Delete",okButtonProps:{type:"primary",danger:!0},cancelText:"Cancel",onOk:async()=>{try{await p(t)}catch(O){b.error(O.message)}}})};i.useEffect(()=>{e&&(S.resetFields(),S.setFieldsValue(t?{...t,startCommand:t.startCommand||void 0,scripts:t.scripts}:xie()),x(t?null:[]),t&&br.packageScripts(t.id).then(O=>x(O.scripts)).catch(()=>x([])))},[e,t,S]);const I=async()=>{try{const O=(S.getFieldValue("scripts")||[]).filter(P=>{var B,L;return((B=P==null?void 0:P.name)==null?void 0:B.trim())||((L=P==null?void 0:P.command)==null?void 0:L.trim())});S.setFieldValue("scripts",O);const M=await S.validateFields(["alias","folder","groupName","startCommand"]),N={...S.getFieldsValue(!0),...M,scripts:O};await c(N)}catch(O){if(O!=null&&O.errorFields)return;b.error(O.message)}};return $.jsx(yr,{title:t?$.jsxs(Ot,{align:"center",size:6,children:[$.jsxs("span",{children:["Service details · ",t.alias]}),$.jsx(VM,{repoUrl:t.repoUrl})]}):"Add service",open:e,onCancel:l,onOk:I,okText:t?"Save":"Save service",width:860,destroyOnClose:!0,footer:$.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[t?$.jsx(nt,{type:"primary",danger:!0,onClick:R,children:"Delete service"}):$.jsx("div",{}),$.jsxs(Ot,{children:[$.jsx(nt,{onClick:l,children:"Cancel"}),$.jsx(nt,{type:"primary",onClick:I,children:t?"Save":"Save service"})]})]}),children:$.jsxs(on,{form:S,layout:"vertical",children:[$.jsx(Tv,{className:"service-config",defaultActiveKey:t?[]:["configuration"],items:[{key:"configuration",label:"Service configuration",children:$.jsxs(Hc,{gutter:[16,0],children:[$.jsx(na,{xs:24,sm:12,children:$.jsx(on.Item,{label:"Name",name:"alias",rules:[{required:!0}],children:$.jsx(hn,{placeholder:"Service name",allowClear:!0})})}),$.jsx(na,{xs:24,sm:12,children:$.jsx(on.Item,{label:"Project folder",name:"folder",rules:[{required:!0}],children:$.jsx(hn,{prefix:$.jsx(qv,{style:{color:"#8c8c8c"}}),suffix:$.jsx(nt,{type:"text",size:"small",icon:$.jsx(qv,{}),loading:w,onClick:j,style:{fontSize:12,padding:"0 4px"},children:"Browse"}),placeholder:"Project folder path",allowClear:!0})})}),$.jsx(na,{xs:24,sm:8,children:$.jsx(on.Item,{label:"Group",name:"groupName",children:$.jsx(zv,{options:n.map(O=>({value:O})),placeholder:"Group name",allowClear:!0})})}),$.jsx(na,{xs:24,sm:8,children:$.jsx(on.Item,{label:"Executor",name:"executor",rules:[{required:!0}],children:$.jsx(zv,{options:["npm","pnpm","yarn"].map(O=>({value:O})),placeholder:"npm",allowClear:!0})})}),$.jsx(na,{xs:24,sm:8,children:$.jsx(on.Item,{noStyle:!0,shouldUpdate:(O,M)=>O.scripts!==M.scripts,children:()=>{const O=(S.getFieldValue("scripts")||[]).map(P=>P==null?void 0:P.name).filter(Boolean),M=(h||[]).map(P=>P.name),N=[...new Set([...O,...M])].map(P=>({label:P,value:P}));return $.jsx(on.Item,{label:"Start script name",name:"startCommand",children:$.jsx(ir,{placeholder:"Select start script",allowClear:!0,options:N})})}})})]})}]}),$.jsx(on.Item,{noStyle:!0,shouldUpdate:(O,M)=>O.executor!==M.executor||O.startCommand!==M.startCommand||O.scripts!==M.scripts,children:()=>$.jsx(yie,{form:S,editing:t,executor:S.getFieldValue("executor")||"npm",running:r,errorCounts:a,packageScripts:h,onRun:O=>u(t,O),onRunInstall:()=>d(t),onRunPackage:O=>f(t,O),onStop:O=>v(t,O.id),onLogs:O=>g(t,O),onPackageLogs:O=>g(t,O,!0)})})]})})}const{Text:wie}=mr;function Eie({open:e,editingGroupTask:t,groupCatalog:n,onCancel:r,onSave:a}){const{message:l}=Ya.useApp(),[c]=on.useForm();i.useEffect(()=>{e&&(c.resetFields(),c.setFieldsValue({name:(t==null?void 0:t.name)||"",items:(t==null?void 0:t.items.map(f=>`${f.launcherId}|${f.scriptId}`))||[]}))},[e,t,c]);const u=i.useMemo(()=>Object.entries(n.reduce((f,v)=>{const g=v.groupName||"Ungrouped";return(f[g]||(f[g]=[])).push(v),f},{})).sort(([f],[v])=>f.localeCompare(v)).map(([f,v])=>({key:f,label:f,children:$.jsx("div",{className:"group-task-projects",children:v.map(g=>$.jsx(Mn,{size:"small",title:g.alias,children:$.jsx(Ot,{direction:"vertical",children:g.scripts.map(p=>$.jsxs(ya,{value:`${g.id}|${p.id}`,children:[p.name," ",$.jsxs(wie,{type:"secondary",children:["(",p.source,")"]})]},p.id))})},g.id))})})),[n]),d=async()=>{try{const f=await c.validateFields(),v={name:f.name,items:f.items.map(g=>{const[p,b]=g.split("|");return{launcherId:p,scriptId:b}})};await a(v)}catch(f){f!=null&&f.errorFields||l.error(f.message)}};return $.jsx(yr,{title:t?`Edit quick launch · ${t.name}`:"Add quick launch",open:e,onCancel:r,onOk:d,okText:t?"Save changes":"Save quick launch",width:760,destroyOnClose:!0,children:$.jsxs(on,{form:c,layout:"vertical",children:[$.jsx(on.Item,{label:"Name",name:"name",rules:[{required:!0}],children:$.jsx(hn,{placeholder:"Start local stack",allowClear:!0})}),$.jsx(on.Item,{label:"Scripts",name:"items",rules:[{required:!0,message:"Select at least one script."}],children:$.jsx(ya.Group,{className:"group-task-selector",children:$.jsx(Zo,{items:u})})})]})})}const F4={30:"ansi-black",31:"ansi-red",32:"ansi-green",33:"ansi-yellow",34:"ansi-blue",35:"ansi-magenta",36:"ansi-cyan",37:"ansi-white",90:"ansi-gray",91:"ansi-red",92:"ansi-green",93:"ansi-yellow",94:"ansi-blue",95:"ansi-magenta",96:"ansi-cyan",97:"ansi-white"};function t1({value:e,editor:t}){const[n,r]=i.useState(t||"vscode"),[a,l]=i.useState(""),[c,u]=i.useState("");i.useEffect(()=>{t&&r(t),qr.status().then(g=>{g!=null&&g.defaultEditor&&!t&&r(g.defaultEditor),g!=null&&g.domain&&l(g.domain),g!=null&&g.jiraIssuePrefix&&u(g.jiraIssuePrefix)}).catch(()=>{})},[t]);const d=(c||"").split(/[\s,]+/).filter(Boolean).map(g=>g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),f=d.length>0&&a?new RegExp(`\\b(?:${d.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):null,v=(g,p)=>{let b="";const C=(w,E)=>w.split(/(\u001b\[[0-9;]*m)/g).map((R,I)=>{const O=R.match(/^\u001b\[([0-9;]*)m$/);if(O){const N=O[1].split(";").map(Number);return b=N.includes(0)?"":F4[N.find(P=>F4[P])]||b,null}if(!R)return null;const M=b||(/\b(error|failed|fatal|exception|TS\d{4,5})\b/i.test(R)?"log-error":/\b(warn|warning)\b/i.test(R)?"log-warning":/\b(success|ready|started|listening)\b/i.test(R)?"log-success":"");return $.jsx("span",{className:M,children:R},`${E}-${I}`)}),S=/(https?:\/\/(?:[^\s<>'"`]|\u001b\[[0-9;]*m)+|\/(?:(?:[^\s:(),;!?]|\u001b\[[0-9;]*m)+\/)*(?:[^\s:(),;!?]|\u001b\[[0-9;]*m)+(?::(?:\d+|\u001b\[[0-9;]*m)+(?::(?:\d+|\u001b\[[0-9;]*m)+)?)?)/g,h=f&&f.test(g);return!g.includes("http")&&!g.includes("/")&&!h?C(g,`${p}-0`):g.split(S).map((w,E)=>{if(!w)return null;const j=`${p}-${E}`;if(/^https?:\/\//.test(w.replace(/\u001b\[[0-9;]*m/g,""))){const I=w.replace(/\u001b\[[0-9;]*m/g,""),O=I.replace(/[),.;:!?]+$/,""),M=I.slice(O.length);return $.jsxs("span",{children:[$.jsx("a",{className:"log-link",href:O,target:"_blank",rel:"noreferrer",onClick:N=>{N.preventDefault(),Ca(O)},children:C(w.slice(0,w.length-M.length),`${j}-url`)}),M&&C(M,`${j}-suf`)]},j)}const R=w.replace(/\u001b\[[0-9;]*m/g,"");if(R.startsWith("/")){const[,I,O=""]=R.match(/^(.*?)(:\d+(?::\d+)?)?$/)||[];if(I){const M=FM(n,I,O);return $.jsx("a",{className:"log-link",href:M,target:"_blank",rel:"noreferrer",title:`Open in ${HM(n)}`,children:C(w,j)},j)}}if(f&&a&&(f.lastIndex=0,f.test(R))){const I=[];let O=0;f.lastIndex=0;for(const M of R.matchAll(f)){M.index>O&&I.push(C(R.slice(O,M.index),`${j}-sub-${M.index}`));const N=M[0],P=BC(a,N);I.push($.jsx("a",{className:"log-link",href:P,target:"_blank",rel:"noreferrer",onClick:B=>{B.preventDefault(),Ca(P)},children:N},`${j}-jira-${M.index}`)),O=M.index+N.length}return O<R.length&&I.push(C(R.slice(O),`${j}-sub-end`)),$.jsx("span",{children:I},j)}return C(w,j)})};return $.jsx("div",{className:"log-output",role:"log",children:e.split(`
|
|
497
|
+
`).map((g,p)=>$.jsx("div",{className:"log-line",children:$.jsx("code",{children:v(g,p)})},p))})}function Oie({open:e,logTarget:t,onCancel:n}){var d;const[r,a]=i.useState("output"),[l,c]=i.useState("");i.useEffect(()=>{e&&(a("output"),c("Loading…"))},[e,t]),i.useEffect(()=>{if(!e||!t)return;const f=async()=>{try{const g=t.package?r==="error"?await br.packageScriptErrorLogs(t.launcher.id,t.script.name):await br.packageScriptLogs(t.launcher.id,t.script.name):r==="error"?await br.errorLogs(t.launcher.id,t.script.id):await br.logs(t.launcher.id,t.script.id);c(g.log||(r==="error"?"No error logs yet.":"No logs yet."))}catch(g){c(g.message)}};f();const v=setInterval(f,1e3);return()=>clearInterval(v)},[e,t,r]);const u=async()=>{if(t)try{t.package?await br.clearPackageScriptLogs(t.launcher.id,t.script.name):await br.clearLogs(t.launcher.id,t.script.id),c(r==="error"?"No error logs yet.":"No logs yet.")}catch{}};return $.jsx(yr,{title:t?`${(d=t.launcher)!=null&&d.alias?`${t.launcher.alias} / `:""}${t.script.name} · Logs`:"Logs",open:e,onCancel:n,footer:null,width:1080,zIndex:1200,children:$.jsx(Zo,{activeKey:r,onChange:a,tabBarExtraContent:t&&$.jsxs(Ot,{children:[$.jsx(nt,{icon:$.jsx(wae,{}),onClick:u,children:"Clear log"}),$.jsx(nt,{icon:$.jsx(bf,{}),onClick:()=>{const f=t.package?`#/logs/${t.launcher.id}/pkg/${encodeURIComponent(t.script.name)}`:`#/logs/${t.launcher.id}/${encodeURIComponent(t.script.id)}`;window.open(f,"_blank")},children:"Open in new tab"})]}),items:[{key:"output",label:"Logs",children:$.jsx(t1,{value:l})},{key:"error",label:"Error logs",children:$.jsx(t1,{value:l})}]})})}const{Title:Rie,Text:V4,Paragraph:jie}=mr;function Iie({launchers:e,running:t,errorCounts:n={},refresh:r,loading:a}){const{message:l}=Ya.useApp(),[c,u]=i.useState("all"),[d,f]=i.useState([]),[v,g]=i.useState([]),[p,b]=i.useState(!1),[C,S]=i.useState(!1),[h,x]=i.useState(null),[w,E]=i.useState(!1),[j,R]=i.useState(null),[I,O]=i.useState(!1),[M,N]=i.useState(null),[P,B]=i.useState("vscode");i.useEffect(()=>{gi.list().then(f).catch(re=>l.error(re.message)),qr.status().then(re=>{re!=null&&re.defaultEditor&&B(re.defaultEditor)}).catch(()=>{})},[]);const L=i.useMemo(()=>[...new Set(e.map(re=>re.groupName).filter(Boolean))].sort((re,ne)=>re.localeCompare(ne)),[e]),k=c==="all"?e:e.filter(re=>re.groupName===c),D=(re=null)=>{R(re),E(!0)},H=async re=>{if(j){const ne=await br.update(j.id,re);R(ne)}else await br.create(re),E(!1);l.success("Saved"),await r()},z=async re=>{try{const ne=[...t].filter(Y=>Y.startsWith(`${re.id}:`));if(ne.length>0){const Y=ne.map(ie=>ie.slice(`${re.id}:`.length));await Promise.all(Y.map(ie=>br.stop(re.id,ie)))}await br.remove(re.id),E(!1),l.success("Deleted"),await r()}catch(ne){l.error(ne.message)}},_=async(re,ne)=>{try{await br.run(re.id,ne.id),await r()}catch(Y){l.error(Y.message)}},F=async re=>{try{await br.runInstall(re.id),await r()}catch(ne){l.error(ne.message)}},W=async(re,ne)=>{try{await br.runPackageScript(re.id,ne.name),await r()}catch(Y){l.error(Y.message)}},q=(re,ne,Y=!1)=>{N({launcher:re,script:ne,package:Y}),O(!0)},V=async re=>{try{await br.start(re.id),await r()}catch(ne){l.warning(ne.message)}},G=async(re,ne)=>{try{await br.stop(re.id,ne),await r()}catch(Y){await r(),l.error(Y.message)}},K=async(re,ne)=>{try{await Promise.all(ne.map(Y=>br.stop(re.id,Y))),await r()}catch(Y){await r(),l.error(Y.message)}},U=async(re=null)=>{if(x(re),S(!0),!v.length)try{g(await gi.catalog())}catch(ne){l.error(ne.message)}},Z=async re=>{h?await gi.update(h.id,re):await gi.create(re),S(!1),f(await gi.list())},Q=async re=>{const ne=`group-task-${re.id}`;l.loading({content:`Starting ${re.name}…`,key:ne,duration:0});try{const Y=await gi.start(re.id),ie=Y.results.filter(le=>le.error);ie.length?l.warning({content:`${Y.results.length-ie.length} started, ${ie.length} failed.`,key:ne}):l.success({content:`${Y.results.length} scripts started.`,key:ne}),await r()}catch(Y){l.error({content:Y.message,key:ne})}},te=async re=>{const ne=`group-task-${re.id}`;l.loading({content:`Stopping ${re.name}…`,key:ne,duration:0});try{const ie=(await gi.stop(re.id)).results.filter(le=>le.ok).length;l.success({content:`${ie} scripts stopped.`,key:ne}),await r()}catch(Y){l.error({content:Y.message,key:ne})}},X=async re=>{try{await gi.remove(re.id),f(await gi.list())}catch(ne){l.error(ne.message)}},ae=[{title:"Service",dataIndex:"alias",render:(re,ne)=>$.jsxs(Ot,{size:8,align:"center",children:[$.jsx("a",{href:FM(P,ne.folder,"",{newWindow:!0}),title:`Open ${ne.folder} in ${HM(P)}`,onClick:Y=>{Y.preventDefault(),Y.stopPropagation(),AM.openPath(ne.folder)},style:{fontWeight:600},children:re}),$.jsx(VM,{repoUrl:ne.repoUrl}),ne.branch&&$.jsx(V4,{code:!0,style:{margin:0},children:ne.branch})]})},{title:"Scripts",width:170,align:"center",render:(re,ne)=>{const Y=[...t].filter(de=>de.startsWith(`${ne.id}:`)).length,ie=ne.scripts.length+(ne.packageScriptCount||0),le=Object.entries(n).filter(([de])=>de.startsWith(`${ne.id}:`)).reduce((de,[,ce])=>de+(ce||0),0);return $.jsxs(Ot,{size:8,children:[$.jsx(Ka,{status:Y?"success":"default",text:`${Y} / ${ie} running`}),le>0&&$.jsx(Ka,{count:le,overflowCount:999,style:{backgroundColor:"#ff4d4f"}})]})}},{title:"Action",width:108,align:"center",render:(re,ne)=>{const Y=[...t].filter(le=>le.startsWith(`${ne.id}:`)),ie=Y.length>0;return $.jsx(nt,{size:"small",type:ie?"default":"primary",danger:ie,icon:ie?$.jsx(Xv,{}):$.jsx(Jy,{}),onClick:le=>{le.stopPropagation(),ie?K(ne,Y.map(de=>de.slice(`${ne.id}:`.length))):V(ne)},children:ie?"Stop":"Start"})}}];return $.jsxs($.Fragment,{children:[$.jsxs("div",{className:"page-header",children:[$.jsxs("div",{children:[$.jsx(V4,{type:"secondary",children:"SERVICES"}),$.jsx(Rie,{level:2,children:"Launcher"}),$.jsx(jie,{type:"secondary",children:"Manage and run local project scripts."})]}),$.jsxs(Ot,{children:[$.jsx(nt,{onClick:()=>b(!0),children:"Quick Launch"}),$.jsx(nt,{type:"primary",icon:$.jsx(ra,{}),onClick:()=>D(),children:"Add service"})]})]}),a?$.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:$.jsx(Ga,{size:"large"})}):e.length?$.jsxs($.Fragment,{children:[d.length>0&&$.jsx("div",{className:"quick-launch-bar",style:{marginBottom:20,padding:"12px 16px",background:"#fff",borderRadius:8,border:"1px solid #e4e8f1",boxShadow:"0 2px 8px rgba(31, 42, 68, 0.03)"},children:$.jsxs(Ot,{wrap:!0,size:"middle",children:[$.jsx("span",{style:{fontSize:11,color:"#727b94",fontWeight:750,textTransform:"uppercase",letterSpacing:"0.08em"},children:"Quick Launch:"}),d.map(re=>{const ne=re.items.every(Y=>t.has(`${Y.launcherId}:${Y.scriptId}`));return $.jsxs(nt,{type:ne?"default":"primary",danger:ne,icon:ne?$.jsx(Xv,{}):$.jsx(Jy,{}),onClick:()=>ne?te(re):Q(re),children:[ne?"Stop":"Start"," ",re.name]},re.id)})]})}),$.jsx(Zo,{activeKey:c,onChange:u,className:"group-tabs",items:[{key:"all",label:`All (${e.length})`},...L.map(re=>({key:re,label:`${re} (${e.filter(ne=>ne.groupName===re).length})`}))]}),k.length?$.jsx(jr,{className:"launcher-table",rowKey:"id",dataSource:k,columns:ae,pagination:!1,onRow:re=>({onClick:()=>D(re)})}):$.jsx(Gn,{description:"No services in this group."})]}):$.jsx(Gn,{description:"No services yet",children:$.jsx(nt,{type:"primary",onClick:()=>D(),children:"Add service"})}),$.jsx($ie,{open:w,editing:j,groups:L,running:t,errorCounts:n,onCancel:()=>E(!1),onSave:H,onRun:_,onRunInstall:F,onRunPackage:W,onStop:G,onLogs:q,onDelete:z}),$.jsx(yr,{title:"Quick Launch",open:p,onCancel:()=>b(!1),footer:null,width:760,destroyOnClose:!0,children:$.jsx(hie,{tasks:d,running:t,onCreate:()=>U(),onEdit:U,onStart:Q,onStop:te,onRemove:X})}),$.jsx(Eie,{open:C,editingGroupTask:h,groupCatalog:v,onCancel:()=>S(!1),onSave:Z}),$.jsx(Oie,{open:I,logTarget:M,onCancel:()=>O(!1)})]})}const{Title:Nie,Text:Fo,Paragraph:Mie}=mr;function Tie({refreshLaunchers:e}){const[t,n]=i.useState([]),[r,a]=i.useState(!1),[l,c]=i.useState(null),[u,d]=i.useState(!1),[f,v]=i.useState(!1),[g,p]=i.useState(null),b=async()=>{a(!0);try{n((await pb.list()).ports)}catch(x){kn.error(x.message)}finally{a(!1)}};i.useEffect(()=>{b()},[]);const C=async()=>{if(l){d(!0);try{const x=(await pb.get(l)).process;p(x),v(!0)}catch(x){kn.error(x.message)}finally{d(!1)}}},S=async({port:x,pid:w})=>{try{await pb.kill(x,w),kn.success(`Process on port ${x} was killed.`),await b(),e&&await e()}catch(E){kn.error(E.message)}},h=[{title:"Port",dataIndex:"port",width:100,render:x=>$.jsx(Fo,{code:!0,children:x})},{title:"Last used",dataIndex:"launcher",render:(x,w)=>$.jsxs(Ot,{direction:"vertical",size:0,children:[$.jsx(Fo,{strong:!0,children:x}),$.jsx(Fo,{type:"secondary",children:w.script})]})},{title:"Process",dataIndex:"command",render:(x,w)=>$.jsxs(Ot,{direction:"vertical",size:0,children:[$.jsx(Fo,{code:!0,children:w.currentCommand||x}),$.jsxs(Fo,{type:"secondary",children:["PID ",w.currentPid||w.pid]})]})},{title:"Status",width:170,render:(x,w)=>w.ghost?$.jsx($n,{color:"error",children:"Ghost process"}):w.listening?$.jsx($n,{color:"success",children:"Script running"}):w.reused?$.jsx($n,{color:"warning",children:"Port reused"}):$.jsx($n,{children:"Port released"})},{title:"Action",width:100,render:(x,w)=>w.listening||w.reused?$.jsx(uo,{title:`Kill process on port ${w.port}?`,description:"The process currently listening on this port will be stopped.",okText:"Kill",okButtonProps:{danger:!0},onConfirm:()=>S({port:w.port,pid:w.currentPid}),children:$.jsx(nt,{danger:!0,icon:$.jsx(xr,{}),children:"Kill"})}):$.jsx(nt,{disabled:!0,icon:$.jsx(xr,{}),children:"Kill"})}];return $.jsxs($.Fragment,{children:[$.jsxs("div",{className:"page-header",children:[$.jsxs("div",{children:[$.jsx(Fo,{type:"secondary",children:"DIAGNOSTICS"}),$.jsx(Nie,{level:2,children:"Port Diagnostic"}),$.jsx(Mie,{type:"secondary",children:"Every port observed while a recent Launcher script was running. Ghost processes still listen after their script has stopped."})]}),$.jsx(nt,{icon:$.jsx(fs,{}),onClick:b,loading:r,children:"Refresh"})]}),$.jsxs(Mn,{className:"port-manual-query",size:"small",children:[$.jsxs(Ot,{wrap:!0,children:[$.jsx(Fo,{strong:!0,children:"Query port"}),$.jsx(Fv,{min:1,max:65535,controls:!1,value:l,onChange:c,onPressEnter:C,placeholder:"e.g. 3000"}),$.jsx(nt,{type:"primary",onClick:C,loading:u,disabled:!l,children:"Query"})]}),f&&$.jsx("div",{className:"port-query-result",children:g?$.jsxs(Ot,{wrap:!0,children:[$.jsx($n,{color:"success",children:"Listening"}),$.jsxs(Fo,{code:!0,children:["PID ",g.pid]}),$.jsx(Fo,{code:!0,children:g.command}),$.jsx(uo,{title:`Kill process on port ${g.port}?`,description:"The process currently listening on this port will be stopped.",okText:"Kill",okButtonProps:{danger:!0},onConfirm:()=>S(g),children:$.jsx(nt,{danger:!0,icon:$.jsx(xr,{}),children:"Kill"})})]}):$.jsxs(Fo,{type:"secondary",children:["No process is listening on port ",l,"."]})})]}),$.jsx(jr,{className:"port-diagnostic-table",rowKey:x=>`${x.startedAt}-${x.port}-${x.pid}`,loading:r,dataSource:t,columns:h,pagination:!1,locale:{emptyText:$.jsx(Gn,{description:"No ports have been observed from Launcher scripts yet."})}})]})}const{Title:Zm,Paragraph:yb,Text:yo}=mr,Cb=[{id:"bitbucket",label:"Bitbucket"},{id:"jira",label:"Jira"},{id:"confluence",label:"Confluence"}];function Pie({onStaticPagesChange:e}){const[t]=on.useForm(),[n]=on.useForm(),[r,a]=i.useState({}),[l,c]=i.useState(!1),[u,d]=i.useState(!1),[f,v]=i.useState([]),[g,p]=i.useState(!1),[b,C]=i.useState(null),[S,h]=i.useState(!1),x=async()=>{try{const N=await xc.list();v(N)}catch(N){kn.error(N.message)}};i.useEffect(()=>{qr.status().then(N=>{a(N),t.setFieldsValue({domain:N.domain,jiraIssuePrefix:N.jiraIssuePrefix||"",defaultEditor:N.defaultEditor||"vscode",defaultBrowser:N.defaultBrowser||"chrome"})}).catch(N=>kn.error(N.message)),x()},[t]);const w=N=>r[`${N}TokenConfigured`],E=async()=>{try{await t.validateFields(["domain"]),c(!0);const N=t.getFieldsValue();if(N.domain!=null){const P=await qr.saveDomain(N.domain);a(B=>({...B,...P})),t.setFieldValue("domain",P.domain)}if(N.jiraIssuePrefix!=null){const P=await qr.saveJiraIssuePrefix(N.jiraIssuePrefix);a(B=>({...B,...P})),t.setFieldValue("jiraIssuePrefix",P.jiraIssuePrefix)}if(N.defaultEditor!=null){const P=await qr.saveDefaultEditor(N.defaultEditor);a(B=>({...B,...P})),t.setFieldValue("defaultEditor",P.defaultEditor)}if(N.defaultBrowser!=null){const P=await qr.saveDefaultBrowser(N.defaultBrowser);a(B=>({...B,...P})),t.setFieldValue("defaultBrowser",P.defaultBrowser)}for(const{id:P}of Cb)if(N[P]){const B=await qr.saveAccessToken(P,N[P]);a(L=>({...L,...B})),t.resetFields([P])}c(!1),d(!0),setTimeout(()=>d(!1),1500)}catch(N){c(!1),N!=null&&N.errorFields||kn.error(N.message)}},j=async N=>{try{const P=await qr.saveAccessToken(N,"");a(P),t.resetFields([N]),kn.success(`${Cb.find(B=>B.id===N).label} Access Token removed.`)}catch(P){kn.error(P.message)}},R=()=>{C(null),n.resetFields(),p(!0)},I=N=>{C(N),n.setFieldsValue({name:N.name,url:N.url}),p(!0)},O=async N=>{try{await xc.remove(N),kn.success("Static page deleted."),await x(),e==null||e()}catch(P){kn.error(P.message)}},M=async()=>{try{const N=await n.validateFields();h(!0),b?(await xc.update(b.id,N),kn.success("Static page updated.")):(await xc.create(N),kn.success("Static page created.")),h(!1),p(!1),await x(),e==null||e()}catch(N){h(!1),N!=null&&N.errorFields||kn.error(N.message)}};return $.jsxs("div",{className:"settings-page",children:[$.jsx(yo,{type:"secondary",children:"SETTINGS"}),$.jsxs("div",{className:"settings-page-header",children:[$.jsx(Zm,{level:2,children:"Settings"}),$.jsx(nt,{type:"primary",color:u?"green":"primary",variant:"solid",icon:u?$.jsx(Ss,{}):null,loading:!u&&l,onClick:E,children:u?"Saved":"Save"})]}),$.jsxs(on,{form:t,layout:"vertical",children:[$.jsxs(Mn,{className:"settings-card",style:{marginBottom:20},children:[$.jsxs("div",{className:"settings-title",children:[$.jsx("div",{className:"settings-icon-wrap",children:$.jsx(vs,{className:"settings-icon"})}),$.jsxs("div",{children:[$.jsx(Zm,{level:4,children:"Default Applications"}),$.jsx(yb,{type:"secondary",children:"Choose your preferred editor and browser to open files, folders, and links."})]})]}),$.jsxs("div",{className:"token-settings-form",children:[$.jsxs("div",{className:"token-row",children:[$.jsxs("div",{className:"token-row-info",children:[$.jsx(yo,{strong:!0,className:"token-row-name",children:"Default Editor"}),$.jsx(yo,{type:"secondary",className:"token-row-hint",children:"VS Code, Devin, or IntelliJ IDEA"})]}),$.jsx(on.Item,{name:"defaultEditor",children:$.jsx(ir,{options:LM,style:{width:220}})})]}),$.jsxs("div",{className:"token-row",children:[$.jsxs("div",{className:"token-row-info",children:[$.jsx(yo,{strong:!0,className:"token-row-name",children:"Default Browser"}),$.jsx(yo,{type:"secondary",className:"token-row-hint",children:"Choose your default browser"})]}),$.jsx(on.Item,{name:"defaultBrowser",style:{marginBottom:0},children:$.jsx(ir,{options:uie(r.isMac!==!1),style:{width:220}})})]})]})]}),$.jsxs(Mn,{className:"settings-card",style:{marginBottom:20},children:[$.jsxs("div",{className:"settings-title",style:{borderBottom:"none",marginBottom:12,paddingBottom:0},children:[$.jsx("div",{className:"settings-icon-wrap",children:$.jsx(bf,{className:"settings-icon"})}),$.jsxs("div",{style:{flex:1},children:[$.jsx(Zm,{level:4,children:"Static Pages"}),$.jsx(yb,{type:"secondary",children:"Configure static pages (configuration saved in data/static-pages.json). Static page files can be placed in pages/ or data/pages/ directory or use external URLs."})]}),$.jsx(nt,{type:"primary",icon:$.jsx(ra,{}),onClick:R,children:"Add Static Page"})]}),$.jsx(jr,{dataSource:f,rowKey:"id",pagination:!1,size:"middle",columns:[{title:"Page Name",dataIndex:"name",key:"name",width:200},{title:"URL",dataIndex:"url",key:"url",render:N=>$.jsx("a",{href:N,target:"_blank",rel:"noreferrer",children:N})},{title:"Action",key:"action",width:140,align:"right",render:(N,P)=>$.jsxs(Ot,{children:[$.jsx(nt,{type:"link",size:"small",icon:$.jsx(os,{}),onClick:()=>I(P),children:"Edit"}),$.jsx(uo,{title:"Delete static page?",description:"Are you sure you want to delete this page?",onConfirm:()=>O(P.id),okText:"Yes",cancelText:"No",children:$.jsx(nt,{type:"link",danger:!0,size:"small",icon:$.jsx(xr,{}),children:"Delete"})})]})}]})]}),$.jsxs(Mn,{className:"settings-card",children:[$.jsxs("div",{className:"settings-title",children:[$.jsx("div",{className:"settings-icon-wrap",children:$.jsx(xoe,{className:"settings-icon"})}),$.jsxs("div",{children:[$.jsx(Zm,{level:4,children:"Access Tokens & Domain"}),$.jsx(yb,{type:"secondary",children:"Tokens are stored locally and are never shown again."})]})]}),$.jsxs("div",{className:"token-settings-form",children:[$.jsxs("div",{className:"token-row",children:[$.jsxs("div",{className:"token-row-info",children:[$.jsx(yo,{strong:!0,className:"token-row-name",children:"Domain"}),$.jsx(yo,{type:"secondary",className:"token-row-hint",children:"e.g. abc.com"})]}),$.jsx(on.Item,{name:"domain",rules:[{pattern:/^([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/,message:"Enter a valid domain, e.g. abc.com"}],children:$.jsx(hn,{placeholder:"abc.com",allowClear:!0})})]}),$.jsxs("div",{className:"token-row",children:[$.jsxs("div",{className:"token-row-info",children:[$.jsx(yo,{strong:!0,className:"token-row-name",children:"Jira Issue Prefix"}),$.jsx(yo,{type:"secondary",className:"token-row-hint",children:"e.g. PROJ"})]}),$.jsx(on.Item,{name:"jiraIssuePrefix",children:$.jsx(hn,{placeholder:"PROJ",allowClear:!0})})]}),Cb.map(({id:N,label:P})=>$.jsxs("div",{className:`token-row ${w(N)?"is-configured":""}`,children:[$.jsxs("div",{className:"token-row-info",children:[$.jsxs("div",{className:"token-row-name-line",children:[$.jsx(yo,{strong:!0,className:"token-row-name",children:P}),w(N)&&$.jsx($n,{color:"success",closable:!0,onClose:B=>{B.preventDefault(),j(N)},className:"token-row-tag",children:"Configured"})]}),$.jsxs(yo,{type:"secondary",className:"token-row-hint",children:[P," API access token"]})]}),$.jsx(on.Item,{name:N,children:$.jsx(hn.Password,{placeholder:w(N)?"Enter new token to replace":"Paste access token",autoComplete:"off",allowClear:!0})})]},N))]})]})]}),$.jsx(yr,{title:b?"Edit Static Page":"Add Static Page",open:g,onOk:M,onCancel:()=>p(!1),okText:"Save",confirmLoading:S,destroyOnClose:!0,children:$.jsxs(on,{form:n,layout:"vertical",style:{marginTop:16},children:[$.jsx(on.Item,{name:"name",label:"Page Name",rules:[{required:!0,message:"Please enter page name"}],children:$.jsx(hn,{placeholder:"e.g. test name"})}),$.jsx(on.Item,{name:"url",label:"URL",extra:"Local pages in pages/ or data/pages/ directory can be accessed via /pages/<path> or /data/pages/<path>",rules:[{required:!0,message:"Please enter page URL"}],children:$.jsx(hn,{placeholder:"e.g. /pages/welcome/index.html or https://example.com"})})]})})]})}const{Title:W4,Text:Ma,Paragraph:zie}=mr,{Dragger:Die}=Jg,K4=(e=0)=>{if(!e)return"0 B";const t=["B","KB","MB","GB"],n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),t.length-1);return`${(e/1024**n).toFixed(n?1:0)} ${t[n]}`},_ie=e=>({file:e,name:e.name||"clipboard-image.png",url:URL.createObjectURL(e),size:e.size});function Aie(){const[e,t]=i.useState(null),[n,r]=i.useState(null),[a,l]=i.useState(75),[c,u]=i.useState(!0),[d,f]=i.useState(!0),[v,g]=i.useState(!0),[p,b]=i.useState(2),[C,S]=i.useState(!1),[h,x]=i.useState(null),[w,E]=i.useState(100),[j,R]=i.useState(!1),[I,O]=i.useState(!1),[M,N]=kn.useMessage(),P=i.useRef(null),B=i.useRef(null),L=q=>{var V;(V=q.current)!=null&&V.url&&URL.revokeObjectURL(q.current.url)},k=q=>{var G;if(!((G=q==null?void 0:q.type)!=null&&G.startsWith("image/")))return M.error("Please choose an image file."),!1;L(P),L(B);const V=_ie(q);return P.current=V,B.current=null,t(V),r(null),_(q),!1},D=q=>{var V;return[...((V=q.dataTransfer)==null?void 0:V.types)||[]].includes("Files")},H=q=>{var G;q.preventDefault(),O(!1);const V=[...((G=q.dataTransfer)==null?void 0:G.files)||[]].find(K=>K.type.startsWith("image/"));V?k(V):M.error("Drop an image file to compress it.")};i.useEffect(()=>()=>{L(P),L(B)},[]),i.useEffect(()=>{const q=V=>{var U;const G=[...((U=V.clipboardData)==null?void 0:U.items)||[]].find(Z=>Z.type.startsWith("image/"));if(!G)return;V.preventDefault();const K=G.getAsFile();K&&(k(new File([K],`clipboard-${Date.now()}.${K.type.split("/")[1]||"png"}`,{type:K.type})),M.success("Image read from clipboard."))};return window.addEventListener("paste",q),()=>window.removeEventListener("paste",q)},[M]);const z=async()=>{var q;try{if(!((q=navigator.clipboard)!=null&&q.read))throw new Error("Direct clipboard reading is unavailable. Paste an image with ⌘ / Ctrl + V instead.");const V=await navigator.clipboard.read();for(const G of V){const K=G.types.find(U=>U.startsWith("image/"));if(K){const U=await G.getType(K);k(new File([U],`clipboard-${Date.now()}.${K.split("/")[1]||"png"}`,{type:K})),M.success("Image read from clipboard.");return}}throw new Error("No image was found in the clipboard.")}catch(V){M.warning(V.message||"Unable to read an image from the clipboard.")}},_=async(q=e==null?void 0:e.file)=>{if(q){R(!0);try{const[{encode:V},{imageData:G,width:K,height:U}]=await Promise.all([BM(()=>import("./index-Dty-56mC.js"),[]),kM(q,h,w)]),Z=await V(G,{quality:a,progressive:c,optimize_coding:d,auto_subsample:v,chroma_subsample:p,trellis_multipass:C});L(B);const Q=new Blob([Z],{type:"image/jpeg"}),te={url:URL.createObjectURL(Q),size:Q.size,width:K,height:U};B.current=te,r(te),M.success("MozJPEG compression complete.")}catch(V){M.error(V.message||"Image compression failed.")}finally{R(!1)}}},F=()=>{if(!n)return;const q=e.name.replace(/\.[^.]+$/,"")||"image",V=document.createElement("a");V.href=n.url,V.download=`${q}-mozjpeg.jpg`,V.click()},W=n&&e?Math.round((1-n.size/e.size)*100):null;return $.jsxs($.Fragment,{children:[N,$.jsxs("div",{className:`squoosh-page ${I?"is-file-dragging":""}`,onDragOver:q=>{D(q)&&(q.preventDefault(),O(!0))},onDragLeave:q=>{q.currentTarget===q.target&&O(!1)},onDrop:H,children:[$.jsxs("header",{className:"squoosh-header",children:[$.jsxs("div",{children:[$.jsx(Ma,{children:"MOZJPEG WORKBENCH"}),$.jsx(W4,{level:2,children:"Image compression"})]}),$.jsxs(Ot,{children:[$.jsx(nt,{icon:$.jsx(Yo,{}),onClick:z,children:"Read clipboard"}),$.jsx(nt,{type:"primary",icon:$.jsx(Zy,{}),onClick:()=>_(),disabled:!e,loading:j,children:"Compress"})]})]}),$.jsxs("div",{className:"squoosh-studio",children:[$.jsxs("div",{className:"squoosh-preview-area",children:[$.jsx(U4,{title:"Original",detail:e?`${K4(e.size)} · ${e.name}`:"Choose an image to begin",children:e?$.jsx(q4,{label:"Original image",image:e.url}):$.jsxs(Die,{accept:"image/*",multiple:!1,showUploadList:!1,beforeUpload:k,className:"image-dropzone",children:[$.jsx("p",{className:"ant-upload-drag-icon",children:$.jsx(Xd,{})}),$.jsx("p",{className:"ant-upload-text",children:"Drop an image or click to choose"}),$.jsx("p",{className:"ant-upload-hint",children:"Or paste an image with ⌘ / Ctrl + V."})]})}),$.jsx(U4,{title:"MozJPEG output",detail:n?`${K4(n.size)} · ${n.width} × ${n.height}`:"Waiting for compression",action:n&&$.jsx(nt,{type:"primary",size:"small",icon:$.jsx(IM,{}),onClick:F,children:"Download"}),children:j?$.jsx("div",{className:"image-loading",children:$.jsx(Ga,{tip:"Compressing…"})}):n?$.jsxs($.Fragment,{children:[$.jsx(q4,{label:"Compressed JPEG",image:n.url}),W!==null&&$.jsx("div",{className:`compression-saving ${W>0?"is-saving":""}`,children:W>0?`${W}% smaller`:"No size reduction at current settings."})]}):$.jsx(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE,description:"Compressed preview"})})]}),$.jsxs("aside",{className:"squoosh-settings",children:[$.jsxs("div",{className:"settings-heading",children:[$.jsx(Ma,{children:"ENCODER"}),$.jsx(W4,{level:4,children:"MozJPEG"}),$.jsx(zie,{children:"Fine-tune output size and image quality."})]}),$.jsxs("div",{className:"option-row",children:[$.jsxs("div",{children:[$.jsx(Ma,{strong:!0,children:"Quality"}),$.jsx("br",{}),$.jsx(Ma,{type:"secondary",children:"Higher values preserve more detail."})]}),$.jsx($n,{color:"blue",children:a})]}),$.jsx(tX,{min:1,max:100,value:a,onChange:l,tooltip:{formatter:q=>`${q}`}}),$.jsxs("div",{className:"option-select",children:[$.jsxs("div",{children:[$.jsx(Ma,{strong:!0,children:"Long edge"}),$.jsx("br",{}),$.jsx(Ma,{type:"secondary",children:"Scale the longest edge to this value. Never crops the image."})]}),$.jsx(Fv,{min:1,max:16384,value:h,onChange:x,placeholder:"Original",addonAfter:"px"})]}),$.jsxs("div",{className:"option-select",children:[$.jsxs("div",{children:[$.jsx(Ma,{strong:!0,children:"Scale"}),$.jsx("br",{}),$.jsx(Ma,{type:"secondary",children:"Scale the image by percentage."})]}),$.jsx(Fv,{min:1,max:100,value:w,onChange:E,placeholder:"100",addonAfter:"%",allowClear:!0})]}),$.jsx(Jm,{label:"Progressive JPEG",description:"Display a low-detail preview while loading.",checked:c,onChange:u}),$.jsx(Jm,{label:"Optimize coding",description:"Reduce size without changing image quality.",checked:d,onChange:f}),$.jsx(Tv,{ghost:!0,className:"advanced-options",items:[{key:"advanced",label:"Advanced settings",children:$.jsxs($.Fragment,{children:[$.jsx(Jm,{label:"Automatic chroma subsampling",description:"Pick sampling based on the image content.",checked:v,onChange:g}),$.jsxs("div",{className:"option-select",children:[$.jsxs("div",{children:[$.jsx(Ma,{strong:!0,children:"Chroma subsampling"}),$.jsx("br",{}),$.jsx(Ma,{type:"secondary",children:"Enabled when automatic mode is off."})]}),$.jsx(ir,{disabled:v,value:p,onChange:b,options:[{value:0,label:"4:4:4 (colour detail)"},{value:1,label:"4:2:2 (balanced)"},{value:2,label:"4:2:0 (smaller file)"}]})]}),$.jsx(Jm,{label:"Trellis multi-pass",description:"Further size reduction with a longer encode time.",checked:C,onChange:S})]})}]}),$.jsx(nt,{type:"primary",size:"large",block:!0,icon:$.jsx(Zy,{}),onClick:()=>_(),disabled:!e,loading:j,children:"Compress image"})]})]})]})]})}function U4({title:e,detail:t,action:n,children:r}){return $.jsxs("div",{className:"preview-pane",children:[$.jsxs("header",{children:[$.jsxs("div",{children:[$.jsx(Ma,{children:e}),$.jsx("span",{children:t})]}),n]}),$.jsx("div",{className:"preview-canvas",children:r})]})}function Jm({label:e,description:t,checked:n,onChange:r}){return $.jsxs("div",{className:"option-switch",children:[$.jsxs("div",{children:[$.jsx(Ma,{strong:!0,children:e}),$.jsx("br",{}),$.jsx(Ma,{type:"secondary",children:t})]}),$.jsx(Wd,{checked:n,onChange:r})]})}function q4({label:e,image:t,metadata:n}){return $.jsxs("div",{className:"image-panel",children:[$.jsx("img",{src:t,alt:e}),n&&$.jsx("div",{className:"image-panel-meta",children:$.jsx(Ma,{type:"secondary",children:n})})]})}const{Title:Bie,Text:ta,Paragraph:G4}=mr;function kie({prs:e,selectedPrKeys:t,onToggleSelectPr:n,onSelectPr:r}){return e.length===0?$.jsx(Gn,{description:"No open pull requests found.",style:{padding:"24px 0"}}):$.jsx("div",{style:{display:"grid",gap:"12px"},children:e.map(a=>{var d,f,v,g,p,b,C,S,h;const l=a.reviewUrl||"",c=a.reviewUrl||a.id,u=t.includes(c);return $.jsx(Mn,{size:"small",hoverable:!0,style:{borderColor:u?"#1677ff":"#e3e6ef",backgroundColor:u?"#f0f5ff":"#ffffff",transition:"all 0.2s"},onClick:()=>l&&r(l),children:$.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:"12px"},children:[$.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",alignItems:"center",gap:"12px"},children:[$.jsx(ya,{checked:u,onChange:x=>{x.stopPropagation(),n(c)},onClick:x=>x.stopPropagation()}),$.jsxs("div",{style:{flex:1,minWidth:0},children:[$.jsxs(Ot,{size:8,wrap:!0,children:[$.jsxs(ta,{strong:!0,style:{fontSize:"14px"},children:["#",a.id," ",a.title]}),a.draft&&$.jsx($n,{color:"gold",children:"Draft"})]}),$.jsxs("div",{style:{marginTop:"6px",fontSize:"12px",display:"flex",alignItems:"center",flexWrap:"wrap",gap:"6px",color:"#727b94"},children:[$.jsxs(ta,{type:"secondary",style:{fontWeight:500},children:[(v=(f=(d=a.fromRef)==null?void 0:d.repository)==null?void 0:f.project)==null?void 0:v.key," / ",(p=(g=a.fromRef)==null?void 0:g.repository)==null?void 0:p.slug]}),$.jsx("span",{style:{color:"#d9d9d9"},children:"|"}),$.jsx($n,{size:"small",color:"cyan",style:{margin:0},children:(b=a.fromRef)==null?void 0:b.displayId}),$.jsx(TM,{style:{fontSize:"10px",color:"#8c8c8c"}}),$.jsx($n,{size:"small",color:"blue",style:{margin:0},children:(C=a.toRef)==null?void 0:C.displayId}),$.jsx("span",{style:{color:"#d9d9d9"},children:"|"}),$.jsxs("span",{children:["Author: ",$.jsx("strong",{children:(h=(S=a.author)==null?void 0:S.user)==null?void 0:h.displayName})]}),$.jsx("span",{style:{color:"#d9d9d9"},children:"|"}),$.jsxs("span",{children:["Updated: ",new Date(a.updatedDate).toLocaleDateString()]})]})]})]}),$.jsxs(Ot,{size:8,children:[$.jsx(nt,{size:"small",icon:$.jsx(DM,{}),onClick:x=>{x.stopPropagation(),l&&Ca(l)},children:"Open"}),$.jsx(nt,{type:"primary",size:"small",onClick:x=>{x.stopPropagation(),l&&r(l)},children:"Review"})]})]})},c)})})}function Lie(){const[e]=on.useForm(),[t,n]=i.useState(!1),[r,a]=i.useState(!0),[l,c]=i.useState(null),[u,d]=i.useState(!1),[f,v]=i.useState([]),[g,p]=i.useState([]),[b,C]=i.useState(!1),[S,h]=i.useState("review"),[x,w]=i.useState([]),[E,j]=i.useState(!1),[R,I]=i.useState(null),[O,M]=i.useState(""),[N,P]=i.useState(!1),[B,L]=i.useState(new Set),k=async()=>{C(!0);try{const[Q,te]=await Promise.all([Qm.myPrs().catch(()=>({values:[]})),Qm.reviewPrs().catch(()=>({values:[]}))]);v((Q==null?void 0:Q.values)||[]),p((te==null?void 0:te.values)||[])}catch{}C(!1)};i.useEffect(()=>{qr.status().then(Q=>{a(Q.bitbucketTokenConfigured),Q.bitbucketTokenConfigured&&k()}).catch(()=>{})},[]);const D=S==="review"?g:f,H=Q=>{h(Q),w([])},z=Q=>{w(te=>te.includes(Q)?te.filter(X=>X!==Q):[...te,Q])},_=Q=>{if(Q.target.checked){const te=D.map(X=>X.reviewUrl||X.id);w(te)}else w([])},F=()=>{const te=D.filter(ae=>x.includes(ae.reviewUrl||ae.id)).map(ae=>ae.reviewUrl).filter(Boolean);if(te.length===0){kn.warning("No PR URLs selected");return}const X=te.join(`
|
|
498
|
+
`);navigator.clipboard.writeText(X),kn.success(`Copied ${te.length} PR URL(s) to clipboard`)},W=D.length>0&&D.every(Q=>x.includes(Q.reviewUrl||Q.id)),q=x.length>0&&!W,V=async Q=>{const te=typeof Q=="string"?Q:Q.prLink;if(te){n(!0),c(null),e.setFieldsValue({prLink:te});try{const X=await Qm.check(te.trim());c(X),L(new Set),kn.success("PR Review completed successfully.")}catch(X){kn.error(X.message)}finally{n(!1)}}},G=(Q,te)=>{const X=`${Q}:${te.line}:${te.rule}`,ae=`⚠️ [${te.severity.toUpperCase()}] ${te.rule}: ${te.message}
|
|
499
|
+
\`\`\`javascript
|
|
500
|
+
${te.code.trim()}
|
|
501
|
+
\`\`\``;I({filePath:Q,issue:te,issueKey:X}),M(ae),j(!0)},K=async()=>{if(!(!R||!O.trim()||!l)){P(!0);try{const Q=await Qm.comment({projectKey:l.pr.projectKey,repositorySlug:l.pr.repositorySlug,pullRequestId:l.pr.pullRequestId,filePath:R.filePath,line:R.issue.line,commentText:O.trim()});kn.success(Q.message||"Comment posted to PR successfully."),L(te=>new Set([...te,R.issueKey])),j(!1)}catch(Q){kn.error(Q.message||"Failed to post comment.")}finally{P(!1)}}},U=()=>{if(!l)return;const{pr:Q,stats:te,files:X}=l;let ae=`## 🔍 PR Review Report: ${Q.title}
|
|
502
|
+
`;if(ae+=`* **Author:** ${Q.author}
|
|
503
|
+
`,ae+=`* **Branch:** \`${Q.sourceBranch}\` ➔ \`${Q.targetBranch}\`
|
|
504
|
+
|
|
505
|
+
`,ae+=`### 📊 Summary
|
|
506
|
+
`,ae+=`* **Total Files Changed:** ${te.totalFilesChanged}
|
|
507
|
+
`,ae+=`* **Filtered Files (Ignored):** ${te.filteredCount}
|
|
508
|
+
`,ae+=`* **Reviewed Files:** ${te.reviewedCount}
|
|
509
|
+
`,ae+=`* **Total Issues Found:** ${te.totalIssues} (Critical: ${te.criticalCount}, Warnings: ${te.warningCount}, Suggestions: ${te.infoCount})
|
|
510
|
+
|
|
511
|
+
`,X.length===0)ae+=`✅ **LGTM!** No code style or quality issues detected in the reviewed files.
|
|
512
|
+
`;else{ae+=`### ⚠️ Findings
|
|
513
|
+
`;for(const re of X){ae+=`#### 📄 File: \`${re.filePath}\` (${re.issues.length} issues)
|
|
514
|
+
`;for(const ne of re.issues){const Y=ne.severity==="critical"?"🔴 [Critical]":ne.severity==="warning"?"🟡 [Warning]":"🔵 [Suggestion]";ae+=`- **${Y}** line ${ne.line}: *${ne.rule}* - ${ne.message}
|
|
515
|
+
`,ae+=` \`\`\`javascript
|
|
516
|
+
${ne.code.trim()}
|
|
517
|
+
\`\`\`
|
|
518
|
+
`}ae+=`
|
|
519
|
+
`}}navigator.clipboard.writeText(ae),d(!0),kn.success("Markdown report copied to clipboard."),setTimeout(()=>d(!1),2e3)},Z=Q=>Q==="critical"?$.jsx($n,{color:"error",icon:$.jsx(PM,{}),children:"Critical"}):Q==="warning"?$.jsx($n,{color:"warning",icon:$.jsx(Wc,{}),children:"Warning"}):$.jsx($n,{color:"processing",icon:$.jsx(gs,{}),children:"Suggestion"});return $.jsxs($.Fragment,{children:[$.jsx("div",{className:"page-header",children:$.jsxs("div",{children:[$.jsx(ta,{type:"secondary",children:"CODE QUALITY"}),$.jsx(Bie,{level:2,children:"PR Review"}),$.jsx(G4,{type:"secondary",children:"Analyze pull requests on Bitbucket for quality issues, leaks, and debug flags."})]})}),!r&&$.jsx(Cd,{className:"service-config",message:"Bitbucket Token Required",description:$.jsxs("span",{children:["Please configure your ",$.jsx("strong",{children:"Bitbucket Access Token"})," in the ",$.jsx("a",{href:"#/settings",children:"Settings"})," page to review internal PRs."]}),type:"warning",showIcon:!0,closable:!1}),$.jsx(Mn,{className:"service-config",children:$.jsx(on,{form:e,layout:"vertical",onFinish:V,children:$.jsx(on.Item,{name:"prLink",label:"Pull Request URL",rules:[{required:!0,message:"Please enter a Bitbucket Pull Request link."},{type:"url",message:"Please enter a valid URL."}],children:$.jsx(hn,{placeholder:"https://bitbucket.xxx.com/projects/PROJ/repos/repo/pull-requests/123",disabled:t,allowClear:!0,addonAfter:$.jsxs(Ot,{size:8,children:[$.jsx(nt,{type:"link",size:"small",onClick:()=>e.submit(),disabled:t,style:{padding:0,height:"auto"},children:"Review"}),$.jsx(dC,{type:"vertical",style:{margin:"0 2px"}}),$.jsx(nt,{type:"link",size:"small",icon:$.jsx(DM,{}),onClick:()=>{const Q=e.getFieldValue("prLink");Q&&Q.trim()?Ca(Q.trim()):kn.warning("Please enter a Pull Request URL first.")},disabled:t,style:{padding:0,height:"auto"},children:"Open"})]})})})})}),t&&$.jsx(Mn,{style:{textAlign:"center",padding:"40px 0"},children:$.jsxs(Ot,{direction:"vertical",size:"middle",children:[$.jsx(Io,{style:{fontSize:32,color:"#6d5ce7"},spin:!0}),$.jsx(ta,{type:"secondary",children:"Fetching diffs and reviewing code changes..."})]})}),!l&&!t&&r&&$.jsxs(Mn,{tabList:[{key:"review",tab:`Waiting for my Review (${g.length})`},{key:"mine",tab:`Authored by Me (${f.length})`}],activeTabKey:S,onTabChange:H,loading:b,style:{borderColor:"#e3e6ef",marginTop:16},children:[D.length>0&&$.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16,paddingBottom:12,borderBottom:"1px solid #f0f0f0"},children:[$.jsxs(Ot,{size:12,children:[$.jsxs(ya,{checked:W,indeterminate:q,onChange:_,children:["Select All (",D.length,")"]}),x.length>0&&$.jsxs(ta,{type:"secondary",style:{fontSize:"13px"},children:[x.length," selected"]})]}),$.jsxs(nt,{icon:$.jsx(Yo,{}),disabled:x.length===0,onClick:F,children:["Copy Selected URLs ",x.length>0?`(${x.length})`:""]})]}),$.jsx(kie,{prs:D,selectedPrKeys:x,onToggleSelectPr:z,onSelectPr:V})]}),l&&$.jsxs(Ot,{direction:"vertical",size:"large",style:{width:"100%",paddingBottom:24},children:[$.jsx("div",{children:$.jsx(nt,{onClick:()=>c(null),children:"← Back to PR list"})}),$.jsx(Mn,{title:$.jsxs(Ot,{children:[$.jsx(zM,{}),$.jsx("span",{children:l.pr.title})]}),extra:$.jsx(nt,{icon:$.jsx(Yo,{}),onClick:U,children:u?"Copied":"Copy Report"}),children:$.jsxs(Hc,{gutter:[16,16],children:[$.jsx(na,{xs:24,sm:12,md:6,children:$.jsxs(Ot,{direction:"vertical",size:2,children:[$.jsx(ta,{type:"secondary",style:{fontSize:12},children:"Author"}),$.jsx(ta,{strong:!0,children:l.pr.author})]})}),$.jsx(na,{xs:24,sm:12,md:6,children:$.jsxs(Ot,{direction:"vertical",size:2,children:[$.jsx(ta,{type:"secondary",style:{fontSize:12},children:"Repository"}),$.jsx(ta,{strong:!0,children:l.pr.repositorySlug})]})}),$.jsx(na,{xs:24,sm:12,md:6,children:$.jsxs(Ot,{direction:"vertical",size:2,children:[$.jsx(ta,{type:"secondary",style:{fontSize:12},children:"Source Branch"}),$.jsx($n,{color:"cyan",style:{margin:0},children:l.pr.sourceBranch})]})}),$.jsx(na,{xs:24,sm:12,md:6,children:$.jsxs(Ot,{direction:"vertical",size:2,children:[$.jsx(ta,{type:"secondary",style:{fontSize:12},children:"Target Branch"}),$.jsx($n,{color:"blue",style:{margin:0},children:l.pr.targetBranch})]})})]})}),$.jsxs(Hc,{gutter:[16,16],children:[$.jsx(na,{xs:12,md:6,children:$.jsx(Mn,{size:"small",style:{textAlign:"center"},children:$.jsx(es,{title:"Total Changed",value:l.stats.totalFilesChanged})})}),$.jsx(na,{xs:12,md:6,children:$.jsx(Mn,{size:"small",style:{textAlign:"center"},children:$.jsx(es,{title:"Filtered (Ignored)",value:l.stats.filteredCount,valueStyle:{color:"#8c8c8c"}})})}),$.jsx(na,{xs:12,md:6,children:$.jsx(Mn,{size:"small",style:{textAlign:"center"},children:$.jsx(es,{title:"Reviewed Files",value:l.stats.reviewedCount,valueStyle:{color:"#6d5ce7"}})})}),$.jsx(na,{xs:12,md:6,children:$.jsx(Mn,{size:"small",style:{textAlign:"center"},children:$.jsx(es,{title:"Total Issues",value:l.stats.totalIssues,valueStyle:{color:l.stats.totalIssues>0?"#ff4d4f":"#52c41a"}})})})]}),$.jsx(Mn,{title:"Review Findings",children:l.files.length===0?$.jsx(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE,description:$.jsxs(Ot,{direction:"vertical",size:"small",children:[$.jsxs(ta,{strong:!0,style:{color:"#52c41a",fontSize:"16px"},children:[$.jsx(Vc,{})," LGTM! No issues found."]}),$.jsxs(ta,{type:"secondary",children:["Review completed on ",l.stats.reviewedCount," files (filtered out ",l.stats.filteredCount," build/test configs)."]})]})}):$.jsx(Tv,{defaultActiveKey:l.files.map(Q=>Q.filePath),expandIconPosition:"end",children:l.files.map(Q=>{const te=Q.issues.filter(ne=>ne.severity==="critical").length,X=Q.issues.filter(ne=>ne.severity==="warning").length,ae=Q.issues.filter(ne=>ne.severity==="info").length,re=$.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"92%",flexWrap:"wrap",gap:"8px"},children:[$.jsx(ta,{strong:!0,children:Q.filePath}),$.jsxs(Ot,{children:[te>0&&$.jsx(Ka,{count:te,style:{backgroundColor:"#ff4d4f"},title:"Critical Issues"}),X>0&&$.jsx(Ka,{count:X,style:{backgroundColor:"#faad14"},title:"Warnings"}),ae>0&&$.jsx(Ka,{count:ae,style:{backgroundColor:"#1890ff"},title:"Suggestions"})]})]});return $.jsx(Tv.Panel,{header:re,children:$.jsx(jr,{dataSource:Q.issues.map((ne,Y)=>({...ne,key:Y})),pagination:!1,size:"small",columns:[{title:"Severity",dataIndex:"severity",width:110,render:ne=>Z(ne)},{title:"Line",dataIndex:"line",width:80,render:ne=>$.jsxs(ta,{code:!0,children:["L",ne]})},{title:"Issue Description",dataIndex:"message",render:(ne,Y)=>$.jsxs(Ot,{direction:"vertical",size:2,style:{width:"100%"},children:[$.jsx(ta,{strong:!0,children:Y.rule}),$.jsx(ta,{type:"secondary",children:ne}),$.jsx("pre",{style:{margin:"4px 0 0",padding:"6px 10px",background:"#f5f5f5",borderRadius:"4px",fontSize:"12px",overflowX:"auto"},children:$.jsx("code",{children:Y.code})})]})},{title:"Action",key:"action",width:120,align:"center",render:(ne,Y)=>{const ie=`${Q.filePath}:${Y.line}:${Y.rule}`;return B.has(ie)?$.jsx($n,{color:"green",icon:$.jsx(Vc,{}),children:"Commented"}):$.jsx(nt,{size:"small",icon:$.jsx(B4,{}),onClick:()=>G(Q.filePath,Y),children:"Comment"})}}]})},Q.filePath)})})}),l.filteredOut.length>0&&$.jsx(Mn,{title:`Ignored Files (${l.filteredOut.length})`,size:"small",children:$.jsx("div",{style:{maxHeight:200,overflowY:"auto"},children:$.jsx(Ot,{size:[4,8],wrap:!0,children:l.filteredOut.map(Q=>$.jsx($n,{style:{color:"#8c8c8c"},children:Q},Q))})})}),$.jsx(yr,{title:$.jsxs(Ot,{children:[$.jsx(B4,{}),$.jsx("span",{children:"Post Comment to Bitbucket PR"})]}),open:E,onCancel:()=>!N&&j(!1),onOk:K,okText:"Submit Comment",cancelText:"Cancel",confirmLoading:N,okButtonProps:{icon:$.jsx(AC,{})},width:600,children:R&&$.jsxs("div",{style:{marginTop:12},children:[$.jsxs(G4,{type:"secondary",style:{marginBottom:12,fontSize:13},children:["File: ",$.jsx(ta,{code:!0,children:R.filePath})," (Line ",R.issue.line,")"]}),$.jsx(hn.TextArea,{rows:6,value:O,onChange:Q=>M(Q.target.value),placeholder:"Write your review comment..."})]})})]})]})}function Hie({open:e,editingFilter:t,onCancel:n,onSave:r}){const[a]=on.useForm();i.useEffect(()=>{e&&(t?a.setFieldsValue({name:t.name,filterId:t.filterId}):a.resetFields())},[e,t,a]);const l=async()=>{try{const c=await a.validateFields();await r(c),a.resetFields()}catch{}};return $.jsx(yr,{title:t?"Edit Filter":"Add Filter",open:e,onCancel:n,onOk:l,destroyOnClose:!0,children:$.jsxs(on,{form:a,layout:"vertical",style:{marginTop:16},children:[$.jsx(on.Item,{name:"name",label:"Filter Name",rules:[{required:!0,message:"Please enter filter name"}],children:$.jsx(hn,{placeholder:"e.g. My Sprint Issues"})}),$.jsx(on.Item,{name:"filterId",label:"Filter ID",rules:[{required:!0,message:"Please enter Jira Filter ID"}],children:$.jsx(hn,{placeholder:"e.g. 12345"})})]})})}const{Text:Fie}=mr;function Vie({open:e,filters:t,onCancel:n,onCreate:r,onEdit:a,onDelete:l}){const[c,u]=i.useState("");i.useEffect(()=>{e&&qr.status().then(f=>{u(f.domain||"")}).catch(()=>{})},[e]);const d=[{title:"Filter Name",dataIndex:"name",key:"name",render:(f,v)=>{const g=die(c,v.filterId);return $.jsxs(Ot,{size:4,children:[$.jsx("a",{style:{fontWeight:600},onClick:p=>{p.preventDefault(),Ca(g)},title:"Open filter in Jira",children:f}),$.jsx(_C,{style:{fontSize:11,color:"#1677ff",cursor:"pointer"},onClick:()=>Ca(g),title:"Open filter in Jira"})]})}},{title:"Filter ID",dataIndex:"filterId",key:"filterId",width:150,render:f=>$.jsx(Fie,{code:!0,children:f})},{title:"Action",key:"action",width:130,align:"right",render:(f,v)=>$.jsxs(Ot,{size:"small",children:[$.jsx(nt,{type:"text",icon:$.jsx(os,{}),onClick:()=>a(v)}),$.jsx(uo,{title:"Delete filter?",description:"Are you sure you want to delete this filter?",onConfirm:()=>l(v.id),okText:"Yes",cancelText:"No",children:$.jsx(nt,{type:"text",danger:!0,icon:$.jsx(xr,{})})})]})}];return $.jsx(yr,{title:"Filter List",open:e,onCancel:n,footer:[$.jsx(nt,{onClick:n,children:"Close"},"close"),$.jsx(nt,{type:"primary",icon:$.jsx(ra,{}),onClick:r,children:"Add Filter"},"add")],width:640,children:$.jsx(jr,{rowKey:"id",dataSource:t,columns:d,pagination:!1,size:"small",style:{marginTop:16}})})}const{Text:X4}=mr;function Wie({open:e,confirmLoading:t,issue:n,onCancel:r,onClone:a}){const[l]=on.useForm();i.useEffect(()=>{e&&n?l.setFieldsValue({summary:n.summary||""}):l.resetFields()},[e,n,l]);const c=async()=>{try{const u=await l.validateFields();await a(u)}catch{}};return $.jsx(yr,{title:n?`Clone Ticket (${n.key})`:"Clone Ticket",open:e,onCancel:r,onOk:c,confirmLoading:t,destroyOnClose:!0,okText:"Clone",children:$.jsxs(on,{form:l,layout:"vertical",style:{marginTop:16},children:[$.jsxs(on.Item,{label:"Original Ticket",children:[$.jsx(X4,{code:!0,children:n==null?void 0:n.key})," ",$.jsx(X4,{type:"secondary",children:n==null?void 0:n.summary})]}),$.jsx(on.Item,{name:"summary",label:"Clone Ticket Summary",rules:[{required:!0,message:"Please enter clone ticket summary"}],children:$.jsx(hn,{placeholder:"Enter summary for the cloned ticket"})})]})})}const{Title:Kie,Text:hc,Paragraph:Uie}=mr,qie=e=>{if(!e)return"default";const t=(typeof e=="string"?e:e.name||"").toLowerCase();return t.includes("blocker")||t.includes("highest")||t.includes("p0")||t.includes("urgent")?"red":t.includes("critical")||t.includes("high")||t.includes("p1")?"volcano":t.includes("major")||t.includes("medium")||t.includes("normal")||t.includes("p2")?"orange":t.includes("minor")||t.includes("low")||t.includes("p3")?"blue":t.includes("trivial")||t.includes("lowest")||t.includes("p4")?"cyan":"default"},Y4=e=>e?typeof e=="string"?e:e.name||"—":"—",Q4=e=>{if(!e)return 0;const t=(typeof e=="string"?e:e.name||"").toLowerCase();return t.includes("blocker")||t.includes("highest")||t.includes("p0")||t.includes("urgent")?50:t.includes("critical")||t.includes("high")||t.includes("p1")?40:t.includes("major")||t.includes("medium")||t.includes("normal")||t.includes("p2")?30:t.includes("minor")||t.includes("low")||t.includes("p3")?20:t.includes("trivial")||t.includes("lowest")||t.includes("p4")?10:0},WM=(e,t,n)=>{if(!t||!Array.isArray(e))return null;const r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(`\\b${r}\\b`,"i"),l=e.find(c=>{const u=a.test(c.title||""),d=a.test(c.description||""),f=!!(n&&c.description&&c.description.includes(n));return u||d||f});return l?{isAdded:!0,completed:!!l.completed,todoItem:l}:null},Z4=(e,t,n)=>!!WM(e,t,n);function Gie(){const{message:e}=Ya.useApp(),[t,n]=i.useState([]),[r,a]=i.useState(null),[l,c]=i.useState({}),[u,d]=i.useState(!0),[f,v]=i.useState(!1),[g,p]=i.useState(""),[b,C]=i.useState([]),[S,h]=i.useState(!1),[x,w]=i.useState(null),[E,j]=i.useState(!1),[R,I]=i.useState(!1),[O,M]=i.useState(!1),[N,P]=i.useState(null),[B,L]=i.useState({open:!1,x:0,y:0,record:null}),k=i.useCallback(async()=>{try{const U=await pa.list();C(U)}catch{}},[]),D=i.useCallback(async()=>{try{const U=await gc.list();n(U),U.length>0?(!r||!U.some(Z=>Z.id===r))&&a(U[0].id):(a(null),c({}))}catch(U){e.error(U.message)}finally{d(!1)}},[r,e]),H=i.useCallback(async U=>{if(U){v(!0),p("");try{const Z=await gc.issues(U);c(Q=>({...Q,[U]:Z.issues||[]}))}catch(Z){p(Z.message),c(Q=>{const te={...Q};return delete te[U],te})}finally{v(!1)}}},[]);i.useEffect(()=>{D(),k()},[D,k]),i.useEffect(()=>{r&&H(r)},[r,H]),i.useEffect(()=>{if(!B.open)return;const U=()=>{L(Z=>({...Z,open:!1}))};return window.addEventListener("click",U),window.addEventListener("contextmenu",U),()=>{window.removeEventListener("click",U),window.removeEventListener("contextmenu",U)}},[B.open]);const z=()=>{w(null),h(!0)},_=U=>{w(U),h(!0)},F=async U=>{try{if(x)await gc.update(x.id,U),e.success("Filter updated");else{const Z=await gc.create(U);e.success("Filter created"),a(Z.id)}h(!1),await D()}catch(Z){e.error(Z.message)}},W=async U=>{var Z;if(!(!N||!r)){M(!0);try{const Q=await gc.cloneIssue({filterId:r,issueKey:N.key,summary:U.summary});e.success(`Cloned issue [${((Z=Q.issue)==null?void 0:Z.key)||N.key}] successfully`),I(!1),P(null),H(r)}catch(Q){e.error(Q.message||"Failed to clone ticket")}finally{M(!1)}}},q=async U=>{try{await gc.remove(U),e.success("Filter deleted"),await D()}catch(Z){e.error(Z.message)}},V=async U=>{if(!(!U||!U.key))try{const Z=await pa.list();if(Z4(Z,U.key,U.url)){e.info(`Task [${U.key}] is already in the Todo list`);return}const te=Y4(U.priority).toLowerCase();let X="medium";te.includes("blocker")||te.includes("highest")||te.includes("critical")||te.includes("high")||te.includes("p0")||te.includes("p1")?X="high":(te.includes("minor")||te.includes("low")||te.includes("trivial")||te.includes("lowest")||te.includes("p3")||te.includes("p4"))&&(X="low");const ae={title:`[${U.key}] ${U.summary}`,description:U.url?`[${U.key}](${U.url}) - ${U.summary}`:U.summary,priority:X,category:"work",dueDate:U.dueDate||null,completed:!1,archived:!1};await pa.create(ae),e.success(`Added [${U.key}] to Todo list`),k()}catch(Z){e.error(Z.message||"Failed to add to Todo list")}},G=[{title:"Summary",dataIndex:"summary",key:"summary",sorter:(U,Z)=>(U.summary||"").localeCompare(Z.summary||""),render:(U,Z)=>{const Q=WM(b,Z.key,Z.url);return $.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"nowrap",minWidth:0},children:[Q&&(Q.completed?$.jsx(Vn,{title:"Todo: Completed (已完成)",children:$.jsx(bs,{style:{color:"#52c41a",fontSize:15,flexShrink:0}})}):$.jsx(Vn,{title:"Todo: Pending (待处理)",children:$.jsx(Rae,{style:{color:"#fa8c16",fontSize:15,flexShrink:0}})})),$.jsx(hc,{code:!0,style:{fontSize:12,flexShrink:0,whiteSpace:"nowrap",cursor:"pointer"},onClick:te=>{te.preventDefault(),te.stopPropagation(),Z.key&&(navigator.clipboard.writeText(Z.key),e.success(`Copied ${Z.key}`))},title:"Click to copy Jira Key",children:Z.key}),$.jsx("a",{style:{fontWeight:500,wordBreak:"break-word",overflowWrap:"break-word"},onClick:te=>{te.preventDefault(),Ca(Z.url)},children:U})]})}},{title:"Status",dataIndex:"status",key:"status",width:140,align:"center",sorter:(U,Z)=>(U.status||"").localeCompare(Z.status||""),render:U=>U?$.jsx($n,{style:{whiteSpace:"nowrap"},children:U}):$.jsx(hc,{type:"secondary",children:"—"})},{title:"Priority",dataIndex:"priority",key:"priority",width:130,align:"center",sorter:(U,Z)=>Q4(U.priority)-Q4(Z.priority),render:U=>{const Z=Y4(U),Q=qie(U);return $.jsx($n,{color:Q,style:{whiteSpace:"nowrap"},children:Z})}},{title:"Due Date",dataIndex:"dueDate",key:"dueDate",width:140,align:"center",sorter:(U,Z)=>(U.dueDate||"").localeCompare(Z.dueDate||""),render:U=>U?$.jsx(hc,{type:"secondary",children:U}):$.jsx(hc,{type:"secondary",children:"—"})}],K=B.record?Z4(b,B.record.key,B.record.url):!1;return $.jsxs($.Fragment,{children:[$.jsxs("div",{className:"page-header",children:[$.jsxs("div",{children:[$.jsx(hc,{type:"secondary",children:"JIRA"}),$.jsx(Kie,{level:2,children:"Jira Filters"}),$.jsx(Uie,{type:"secondary",children:"Track issues across configured Jira filters."})]}),$.jsxs(Ot,{children:[$.jsx(nt,{onClick:()=>j(!0),children:"Filter List"}),$.jsx(nt,{type:"primary",icon:$.jsx(ra,{}),onClick:z,children:"+ Filter"})]})]}),u?$.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:$.jsx(Ga,{size:"large"})}):t.length?$.jsxs($.Fragment,{children:[$.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16,width:"100%",minWidth:0},children:[$.jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden"},children:$.jsx(Zo,{activeKey:r,onChange:a,style:{marginBottom:0},items:t.map(U=>{var te;const Z=U.id in l,Q=(te=l[U.id])==null?void 0:te.length;return{key:U.id,label:Z?`${U.name} (${Q})`:U.name}})})}),r&&$.jsx(nt,{icon:$.jsx(fs,{}),loading:f,onClick:()=>H(r),style:{marginLeft:16,flexShrink:0},children:"Refresh"})]}),f&&!(r in l)?$.jsx("div",{style:{padding:"60px 0",textAlign:"center"},children:$.jsx(Ga,{size:"large"})}):g&&!(r in l)?$.jsxs("div",{style:{padding:"40px 0",textAlign:"center"},children:[$.jsx(hc,{danger:!0,children:g}),$.jsx("div",{style:{marginTop:12},children:$.jsx(nt,{size:"small",icon:$.jsx(fs,{}),onClick:()=>H(r),children:"Retry"})})]}):$.jsx(jr,{className:"jira-filters-table",rowKey:"id",dataSource:l[r]||[],columns:G,pagination:!1,scroll:{x:"max-content"},onRow:U=>({onContextMenu:Z=>{Z.preventDefault(),Z.stopPropagation(),k(),L({open:!0,x:Z.clientX,y:Z.clientY,record:U})}})})]}):$.jsx(Gn,{description:"No Jira filters configured yet.",style:{marginTop:80}}),B.open&&$.jsx(as,{trigger:["click"],menu:{items:[{key:"add-todo",disabled:K,icon:$.jsx(DC,{style:K?{color:"#52c41a"}:void 0}),label:K?"Already in Todo List":"Add to Todo List",onClick:()=>{B.record&&!K&&V(B.record),L(U=>({...U,open:!1}))}},{key:"clone-issue",icon:$.jsx(Yo,{}),label:"Clone Ticket",onClick:()=>{B.record&&(P(B.record),I(!0)),L(U=>({...U,open:!1}))}},{key:"open-jira",icon:$.jsx(_C,{}),label:"Open in Jira",onClick:()=>{var U;(U=B.record)!=null&&U.url&&Ca(B.record.url),L(Z=>({...Z,open:!1}))}}]},open:B.open,onOpenChange:U=>{U||L(Z=>({...Z,open:!1}))},children:$.jsx("div",{style:{position:"fixed",left:B.x,top:B.y,width:1,height:1,zIndex:9999}})}),$.jsx(Hie,{open:S,editingFilter:x,onCancel:()=>h(!1),onSave:F}),$.jsx(Vie,{open:E,filters:t,onCancel:()=>j(!1),onCreate:()=>{j(!1),z()},onEdit:U=>{j(!1),_(U)},onDelete:q}),$.jsx(Wie,{open:R,confirmLoading:O,issue:N,onCancel:()=>{O||(I(!1),P(null))},onClone:W})]})}const{TextArea:Xie}=hn;function Yie({open:e,editingTodo:t,onCancel:n,onSave:r}){const[a]=on.useForm();i.useEffect(()=>{e&&(t?a.setFieldsValue({title:t.title||"",description:t.description||"",priority:t.priority||"medium",category:t.category||"work",dueDate:t.dueDate?fa(t.dueDate):null}):(a.resetFields(),a.setFieldsValue({priority:"medium",category:"work"})))},[e,t,a]);const l=async()=>{try{const c=await a.validateFields();r({...c,dueDate:c.dueDate?c.dueDate.format("YYYY-MM-DD"):null})}catch{}};return $.jsx(yr,{title:t?"Edit Task":"New Task",open:e,onOk:l,onCancel:n,destroyOnClose:!0,okText:t?"Save":"Create",cancelText:"Cancel",children:$.jsxs(on,{form:a,layout:"vertical",style:{marginTop:16},children:[$.jsx(on.Item,{name:"title",label:"Task Title",rules:[{required:!0,message:"Please enter task title"}],children:$.jsx(hn,{placeholder:"Enter task title...",maxLength:100,showCount:!0})}),$.jsx(on.Item,{name:"description",label:"Description / Notes",children:$.jsx(Xie,{rows:6,placeholder:"Add relevant details, background, or notes...",maxLength:500,showCount:!0})}),$.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:12},children:[$.jsx(on.Item,{name:"priority",label:"Priority",children:$.jsx(ir,{options:[{value:"high",label:$.jsxs(Ot,{size:4,children:[$.jsx(qd,{style:{color:"#ff4d4f"}}),$.jsx("span",{children:"High"})]})},{value:"medium",label:$.jsxs(Ot,{size:4,children:[$.jsx(Wc,{style:{color:"#faad14"}}),$.jsx("span",{children:"Medium"})]})},{value:"low",label:$.jsxs(Ot,{size:4,children:[$.jsx(gs,{style:{color:"#1677ff"}}),$.jsx("span",{children:"Low"})]})}]})}),$.jsx(on.Item,{name:"category",label:"Category",children:$.jsx(ir,{options:[{value:"work",label:$.jsxs(Ot,{size:4,children:[$.jsx(Yd,{style:{color:"#1677ff"}}),$.jsx("span",{children:"Work"})]})},{value:"dev",label:$.jsxs(Ot,{size:4,children:[$.jsx(vs,{style:{color:"#722ed1"}}),$.jsx("span",{children:"Dev"})]})},{value:"bug",label:$.jsxs(Ot,{size:4,children:[$.jsx(Ud,{style:{color:"#ff4d4f"}}),$.jsx("span",{children:"Bug"})]})},{value:"feature",label:$.jsxs(Ot,{size:4,children:[$.jsx(gl,{style:{color:"#52c41a"}}),$.jsx("span",{children:"Feature"})]})},{value:"personal",label:$.jsxs(Ot,{size:4,children:[$.jsx(Gd,{style:{color:"#fa8c16"}}),$.jsx("span",{children:"Personal"})]})}]})}),$.jsx(on.Item,{name:"dueDate",label:"Due Date",children:$.jsx(au,{style:{width:"100%"},placeholder:"Select date"})})]})]})})}function Yv({text:e,domain:t,jiraIssuePrefix:n,style:r,className:a}){if(!e)return null;const l=[],c=/\[[^\]]+\]\(https?:\/\/[^\s)]+\)|https?:\/\/[^\s]+/g;let u=0;const d=(n||"").split(/[\s,]+/).filter(Boolean).map(g=>g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),f=d.length>0?new RegExp(`\\b(?:${d.join("|")})-[a-zA-Z0-9]{1,10}\\b`,"gi"):/\b[A-Z]{2,10}-\d+\b/g,v=(g,p)=>{const b=[];let C=0;f.lastIndex=0;for(const S of g.matchAll(f)){S.index>C&&b.push(g.slice(C,S.index));const h=S[0],x=t?BC(t,h):null;x?b.push($.jsx("a",{href:x,target:"_blank",rel:"noreferrer",onClick:w=>{w.preventDefault(),w.stopPropagation(),Ca(x)},style:{color:"#1677ff",textDecoration:"underline",fontWeight:500},children:h},`${p}-${S.index}`)):b.push(h),C=S.index+h.length}return C<g.length&&b.push(g.slice(C)),b};for(const g of e.matchAll(c)){g.index>u&&l.push(...v(e.slice(u,g.index),`txt-${g.index}`));const p=g[0].match(/^\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)$/);if(p)l.push($.jsx("a",{href:p[2],target:"_blank",rel:"noreferrer",onClick:b=>{b.preventDefault(),b.stopPropagation(),Ca(p[2])},style:{color:"#1677ff",textDecoration:"underline"},children:p[1]},g.index));else{const b=g[0].replace(/[),.;:!?]+$/,"");l.push($.jsx("a",{href:b,target:"_blank",rel:"noreferrer",onClick:C=>{C.preventDefault(),C.stopPropagation(),Ca(b)},style:{color:"#1677ff",textDecoration:"underline"},children:b},g.index)),g[0].length>b.length&&l.push(g[0].slice(b.length))}u=g.index+g[0].length}return u<e.length&&l.push(...v(e.slice(u),"txt-end")),$.jsx("span",{style:r,className:a,children:l})}const{Title:Qie,Text:Zi,Paragraph:Zie}=mr,Jie={work:{label:"Work",icon:$.jsx(Yd,{}),color:"blue"},dev:{label:"Dev",icon:$.jsx(vs,{}),color:"purple"},bug:{label:"Bug",icon:$.jsx(Ud,{}),color:"red"},feature:{label:"Feature",icon:$.jsx(gl,{}),color:"green"},personal:{label:"Personal",icon:$.jsx(Gd,{}),color:"orange"}},ele={high:{label:"High",icon:$.jsx(qd,{}),color:"error"},medium:{label:"Medium",icon:$.jsx(Wc,{}),color:"warning"},low:{label:"Low",icon:$.jsx(gs,{}),color:"default"}};function tle(){const{message:e}=Ya.useApp(),[t,n]=i.useState([]),[r,a]=i.useState(!0),[l,c]=i.useState(""),[u,d]=i.useState("all"),[f,v]=i.useState("all"),[g,p]=i.useState("all"),[b,C]=i.useState("createdDesc"),[S,h]=i.useState(""),[x,w]=i.useState("medium"),[E,j]=i.useState("work"),[R,I]=i.useState(!1),[O,M]=i.useState([]),[N,P]=i.useState({domain:"",jiraIssuePrefix:""}),[B,L]=i.useState(!1),[k,D]=i.useState(null),H=i.useCallback(async()=>{a(!0);try{const Y=await pa.list();n(Y)}catch(Y){e.error(Y.message)}finally{a(!1)}},[e]);i.useEffect(()=>{H(),qr.status().then(Y=>{Y&&P(Y)}).catch(()=>{})},[H]);const z=i.useMemo(()=>t.filter(Y=>!Y.archived),[t]),_=i.useMemo(()=>t.filter(Y=>Y.archived).length,[t]),F=i.useMemo(()=>{const Y=z.length,ie=z.filter(ge=>ge.completed).length,le=Y-ie,de=Y>0?Math.round(ie/Y*100):0,ce=z.filter(ge=>!ge.completed&&ge.priority==="high").length;return{total:Y,completed:ie,active:le,rate:de,highPriorityCount:ce}},[z]),W=async()=>{const Y=S.trim();if(Y)try{const ie=await pa.create({title:Y,priority:x,category:E,completed:!1});n(le=>[ie,...le]),h(""),e.success("Task added")}catch(ie){e.error(ie.message)}},q=async Y=>{try{if(k){const ie=await pa.update(k.id,Y);n(le=>le.map(de=>de.id===ie.id?ie:de)),e.success("Task updated")}else{const ie=await pa.create(Y);n(le=>[ie,...le]),e.success("Task created")}L(!1)}catch(ie){e.error(ie.message)}},V=async Y=>{try{const ie=await pa.update(Y.id,{...Y,completed:!Y.completed});n(le=>le.map(de=>de.id===ie.id?ie:de))}catch(ie){e.error(ie.message)}},G=async Y=>{try{await pa.archive(Y),n(ie=>ie.map(le=>le.id===Y?{...le,archived:!0,archivedAt:new Date().toISOString()}:le)),e.success("Task archived")}catch(ie){e.error(ie.message)}},K=async Y=>{try{await pa.remove(Y),n(ie=>ie.filter(le=>le.id!==Y)),M(ie=>ie.filter(le=>le!==Y)),e.success("Task deleted")}catch(ie){e.error(ie.message)}},U=async Y=>{if(Y==="clearCompleted"){try{const ie=await pa.batch("clearCompleted");n(ie),M([]),e.success("Completed tasks cleared")}catch(ie){e.error(ie.message)}return}if(O.length)try{const ie=await pa.batch(Y,O);n(ie),M([]),e.success("Batch action succeeded")}catch(ie){e.error(ie.message)}},Z=i.useMemo(()=>{let Y=z;if(l.trim()){const ie=l.toLowerCase().trim();Y=Y.filter(le=>le.title.toLowerCase().includes(ie)||(le.description||"").toLowerCase().includes(ie))}return u==="active"?Y=Y.filter(ie=>!ie.completed):u==="completed"&&(Y=Y.filter(ie=>ie.completed)),f!=="all"&&(Y=Y.filter(ie=>ie.priority===f)),g!=="all"&&(Y=Y.filter(ie=>ie.category===g)),[...Y].sort((ie,le)=>{if(b==="dueAsc")return ie.dueDate?le.dueDate?ie.dueDate.localeCompare(le.dueDate):-1:1;if(b==="priorityDesc"){const de={high:3,medium:2,low:1};return(de[le.priority]||0)-(de[ie.priority]||0)}return new Date(le.createdAt||0)-new Date(ie.createdAt||0)})},[z,l,u,f,g,b]),Q=i.useMemo(()=>Z.map(Y=>Y.id),[Z]),te=Q.length>0&&Q.every(Y=>O.includes(Y)),X=O.length>0,ae=Y=>{Y.target.checked?M(Q):M([])},re=Y=>{M(ie=>ie.includes(Y)?ie.filter(le=>le!==Y):[...ie,Y])},ne=fa().format("YYYY-MM-DD");return $.jsxs($.Fragment,{children:[$.jsxs("div",{className:"page-header",children:[$.jsxs("div",{children:[$.jsx(Zi,{type:"secondary",children:"WORKBENCH"}),$.jsx(Qie,{level:2,children:"To-Do List"}),$.jsx(Zie,{type:"secondary",children:"Manage and track development tasks, bug fixes, and feature items efficiently."})]}),$.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:8},children:[$.jsxs(Ot,{children:[$.jsx(nt,{icon:$.jsx(fs,{}),onClick:H,loading:r,children:"Refresh"}),$.jsx(nt,{type:"primary",icon:$.jsx(ra,{}),onClick:()=>{D(null),L(!0)},children:"New Task"})]}),$.jsxs(nt,{icon:$.jsx(Xd,{}),onClick:()=>{window.location.hash="#/todo-list/archived"},style:{marginTop:8},children:["Archived (",_,")"]})]})]}),$.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:16,marginBottom:24},children:[$.jsxs(Mn,{size:"small",style:{borderRadius:8},children:[$.jsx(Zi,{type:"secondary",style:{fontSize:13},children:"Total Tasks"}),$.jsx("div",{style:{fontSize:24,fontWeight:600,marginTop:4},children:F.total})]}),$.jsxs(Mn,{size:"small",style:{borderRadius:8},children:[$.jsx(Zi,{type:"secondary",style:{fontSize:13},children:"Active (Pending)"}),$.jsxs("div",{style:{fontSize:24,fontWeight:600,marginTop:4,color:F.active>0?"#fa8c16":"inherit"},children:[F.active,F.highPriorityCount>0&&$.jsxs("span",{style:{fontSize:12,fontWeight:"normal",color:"#ff4d4f",marginLeft:8},children:["(",F.highPriorityCount," high priority)"]})]})]}),$.jsxs(Mn,{size:"small",style:{borderRadius:8},children:[$.jsx(Zi,{type:"secondary",style:{fontSize:13},children:"Completed"}),$.jsx("div",{style:{fontSize:24,fontWeight:600,marginTop:4,color:"#52c41a"},children:F.completed})]}),$.jsxs(Mn,{size:"small",style:{borderRadius:8},children:[$.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[$.jsx(Zi,{type:"secondary",style:{fontSize:13},children:"Completion Rate"}),$.jsxs(Zi,{style:{fontSize:13,fontWeight:600},children:[F.rate,"%"]})]}),$.jsx(GN,{percent:F.rate,showInfo:!1,size:"small",status:"active",style:{marginTop:12}})]})]}),$.jsx(Mn,{size:"small",style:{marginBottom:20,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.02)"},children:$.jsxs("div",{style:{display:"flex",gap:12,alignItems:"center"},children:[$.jsx(hn,{placeholder:"Quickly add a task... (Press Enter to submit)",value:S,onChange:Y=>h(Y.target.value),onPressEnter:W,size:"large",style:{flex:1}}),$.jsx(ir,{value:x,onChange:w,size:"large",style:{width:130},options:[{value:"high",label:$.jsxs(Ot,{size:4,children:[$.jsx(qd,{style:{color:"#ff4d4f"}}),$.jsx("span",{children:"High"})]})},{value:"medium",label:$.jsxs(Ot,{size:4,children:[$.jsx(Wc,{style:{color:"#faad14"}}),$.jsx("span",{children:"Medium"})]})},{value:"low",label:$.jsxs(Ot,{size:4,children:[$.jsx(gs,{style:{color:"#1677ff"}}),$.jsx("span",{children:"Low"})]})}]}),$.jsx(ir,{value:E,onChange:j,size:"large",style:{width:130},options:[{value:"work",label:$.jsxs(Ot,{size:4,children:[$.jsx(Yd,{style:{color:"#1677ff"}}),$.jsx("span",{children:"Work"})]})},{value:"dev",label:$.jsxs(Ot,{size:4,children:[$.jsx(vs,{style:{color:"#722ed1"}}),$.jsx("span",{children:"Dev"})]})},{value:"bug",label:$.jsxs(Ot,{size:4,children:[$.jsx(Ud,{style:{color:"#ff4d4f"}}),$.jsx("span",{children:"Bug"})]})},{value:"feature",label:$.jsxs(Ot,{size:4,children:[$.jsx(gl,{style:{color:"#52c41a"}}),$.jsx("span",{children:"Feature"})]})},{value:"personal",label:$.jsxs(Ot,{size:4,children:[$.jsx(Gd,{style:{color:"#fa8c16"}}),$.jsx("span",{children:"Personal"})]})}]}),$.jsx(nt,{type:"primary",size:"large",icon:$.jsx(ra,{}),onClick:W,children:"Add"})]})}),$.jsx(Mn,{size:"small",style:{marginBottom:16,borderRadius:8},children:$.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:16,alignItems:"center",justifyContent:"space-between"},children:[$.jsxs(_r.Group,{value:u,onChange:Y=>d(Y.target.value),optionType:"button",buttonStyle:"solid",children:[$.jsxs(_r.Button,{value:"all",children:["All (",F.total,")"]}),$.jsxs(_r.Button,{value:"active",children:["Active (",F.active,")"]}),$.jsxs(_r.Button,{value:"completed",children:["Completed (",F.completed,")"]})]}),$.jsxs(Ot,{wrap:!0,children:[$.jsx(hn,{prefix:$.jsx(xs,{}),placeholder:"Search tasks...",value:l,onChange:Y=>c(Y.target.value),allowClear:!0,style:{width:220}}),$.jsx(ir,{value:b,onChange:C,style:{width:140},options:[{value:"createdDesc",label:"Sort: Created"},{value:"dueAsc",label:"Sort: Due Date"},{value:"priorityDesc",label:"Sort: Priority"}]})]})]})}),(R||X)&&$.jsxs("div",{style:{padding:"10px 16px",marginBottom:16,backgroundColor:"#e6f4ff",border:"1px solid #91caff",borderRadius:8,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[$.jsxs(Zi,{style:{color:"#0958d9"},children:[$.jsx("strong",{style:{color:"#0958d9",fontWeight:600},children:O.length})," items selected"]}),$.jsxs(Ot,{wrap:!0,children:[$.jsx(nt,{size:"small",onClick:()=>{M(te?[]:Q)},children:te?"Deselect All":"Select All"}),$.jsx(nt,{size:"small",icon:$.jsx(Vc,{}),disabled:!O.length,onClick:()=>U("markCompleted"),children:"Mark Completed"}),$.jsx(nt,{size:"small",icon:$.jsx(Fc,{}),disabled:!O.length,onClick:()=>U("markPending"),children:"Mark Active"}),$.jsx(uo,{title:"Are you sure you want to delete selected tasks?",onConfirm:()=>U("delete"),okText:"Delete",cancelText:"Cancel",disabled:!O.length,children:$.jsx(nt,{size:"small",danger:!0,icon:$.jsx(xr,{}),disabled:!O.length,children:"Delete Selected"})}),$.jsx(nt,{size:"small",type:"link",onClick:()=>{I(!1),M([])},children:"Exit Select Mode"})]})]}),t.length>0&&$.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 16px",color:"#727b94",fontSize:12,borderBottom:"1px solid #e8e8e8",marginBottom:8},children:[$.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:20},children:R?$.jsx(ya,{checked:te,onChange:ae}):$.jsx(Vn,{title:"Enter Select Mode",children:$.jsx(DC,{style:{fontSize:15,cursor:"pointer",color:R?"#1677ff":"#727b94",transition:"color 0.2s"},onClick:()=>I(!0)})})}),$.jsx("span",{style:{flex:1,fontWeight:500},children:"Task Content"}),$.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:$.jsx(ir,{size:"small",variant:"borderless",value:g,onChange:p,popupMatchSelectWidth:!1,style:{fontSize:12,fontWeight:600,color:"#727b94"},options:[{value:"all",label:"Category"},{value:"work",label:$.jsxs(Ot,{size:4,children:[$.jsx(Yd,{style:{color:"#1677ff"}}),$.jsx("span",{children:"Work"})]})},{value:"dev",label:$.jsxs(Ot,{size:4,children:[$.jsx(vs,{style:{color:"#722ed1"}}),$.jsx("span",{children:"Dev"})]})},{value:"bug",label:$.jsxs(Ot,{size:4,children:[$.jsx(Ud,{style:{color:"#ff4d4f"}}),$.jsx("span",{children:"Bug"})]})},{value:"feature",label:$.jsxs(Ot,{size:4,children:[$.jsx(gl,{style:{color:"#52c41a"}}),$.jsx("span",{children:"Feature"})]})},{value:"personal",label:$.jsxs(Ot,{size:4,children:[$.jsx(Gd,{style:{color:"#fa8c16"}}),$.jsx("span",{children:"Personal"})]})}]})}),$.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:$.jsx(ir,{size:"small",variant:"borderless",value:f,onChange:v,popupMatchSelectWidth:!1,style:{fontSize:12,fontWeight:600,color:"#727b94"},options:[{value:"all",label:"Priority"},{value:"high",label:$.jsxs(Ot,{size:4,children:[$.jsx(qd,{style:{color:"#ff4d4f"}}),$.jsx("span",{children:"High"})]})},{value:"medium",label:$.jsxs(Ot,{size:4,children:[$.jsx(Wc,{style:{color:"#faad14"}}),$.jsx("span",{children:"Medium"})]})},{value:"low",label:$.jsxs(Ot,{size:4,children:[$.jsx(gs,{style:{color:"#1677ff"}}),$.jsx("span",{children:"Low"})]})}]})}),$.jsx("div",{style:{width:120,textAlign:"center"},children:"Due Date"}),$.jsx("div",{style:{width:120,textAlign:"right"},children:"Actions"})]}),r?$.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:$.jsx(Ga,{size:"large"})}):Z.length===0?$.jsx(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE,description:t.length===0?"No tasks yet. Create your first task!":"No matching tasks found.",children:t.length===0&&$.jsx(nt,{type:"primary",icon:$.jsx(ra,{}),onClick:()=>{D(null),L(!0)},children:"New Task"})}):$.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:Z.map(Y=>{var ce;const ie=Jie[Y.category]||{label:Y.category,color:"default"},le=ele[Y.priority]||{label:Y.priority,color:"default"},de=Y.dueDate&&Y.dueDate<ne&&!Y.completed;return $.jsx(Mn,{size:"small",style:{borderRadius:8,borderColor:O.includes(Y.id)?"#1677ff":void 0,opacity:Y.completed?.65:1,transition:"all 0.2s ease"},bodyStyle:{padding:"12px 16px"},children:$.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[$.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:20},children:R?$.jsx(ya,{checked:O.includes(Y.id),onChange:()=>re(Y.id)}):$.jsx(Vn,{title:Y.completed?"Mark as active":"Mark as completed",children:$.jsx(ya,{checked:Y.completed,onChange:()=>V(Y),style:{transform:"scale(1.1)"}})})}),$.jsxs("div",{style:{flex:1,minWidth:0},children:[$.jsx("div",{style:{fontWeight:500,fontSize:15,lineHeight:"1.4",textDecoration:Y.completed?"line-through":"none",color:Y.completed?"rgba(0, 0, 0, 0.35)":"inherit",wordBreak:"break-word"},children:$.jsx(Yv,{text:Y.title,domain:N.domain,jiraIssuePrefix:N.jiraIssuePrefix})}),!!((ce=Y.description)!=null&&ce.trim())&&$.jsx("div",{style:{fontSize:12,color:Y.completed?"rgba(0, 0, 0, 0.35)":"#666666",marginTop:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:$.jsx(Yv,{text:Y.description.trim(),domain:N.domain,jiraIssuePrefix:N.jiraIssuePrefix})})]}),$.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:$.jsx($n,{color:ie.color,icon:ie.icon,style:{margin:0},children:ie.label})}),$.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:$.jsx($n,{color:le.color,icon:le.icon,style:{margin:0},children:le.label})}),$.jsx("div",{style:{width:120,textAlign:"center"},children:Y.dueDate?$.jsxs($n,{color:de?"error":"default",style:{margin:0},children:[$.jsx(Fc,{style:{marginRight:4}}),Y.dueDate,de&&" (Overdue)"]}):$.jsx(Zi,{type:"secondary",style:{fontSize:12},children:"—"})}),$.jsx("div",{style:{width:120,textAlign:"right"},children:$.jsxs(Ot,{size:"small",children:[Y.completed&&$.jsx(Vn,{title:"Archive task",children:$.jsx(nt,{type:"text",size:"small",icon:$.jsx(Jae,{style:{color:"#fa8c16"}}),onClick:()=>G(Y.id)})}),$.jsx(nt,{type:"text",size:"small",icon:$.jsx(os,{}),onClick:()=>{D(Y),L(!0)}}),$.jsx(uo,{title:"Are you sure you want to delete this task?",onConfirm:()=>K(Y.id),okText:"Delete",cancelText:"Cancel",children:$.jsx(nt,{type:"text",danger:!0,size:"small",icon:$.jsx(xr,{})})})]})})]})},Y.id)})}),u==="completed"&&F.completed>0&&$.jsx("div",{style:{marginTop:24,textAlign:"right"},children:$.jsx(uo,{title:`Are you sure you want to clear all ${F.completed} completed tasks?`,onConfirm:()=>U("clearCompleted"),okText:"Clear",cancelText:"Cancel",children:$.jsxs(nt,{type:"dashed",danger:!0,icon:$.jsx(xr,{}),children:["Clear all completed tasks (",F.completed,")"]})})}),$.jsx(Yie,{open:B,editingTodo:k,onCancel:()=>L(!1),onSave:q})]})}const{Title:nle,Text:J4,Paragraph:rle}=mr,ale={work:{label:"Work",icon:$.jsx(Yd,{}),color:"blue"},dev:{label:"Dev",icon:$.jsx(vs,{}),color:"purple"},bug:{label:"Bug",icon:$.jsx(Ud,{}),color:"red"},feature:{label:"Feature",icon:$.jsx(gl,{}),color:"green"},personal:{label:"Personal",icon:$.jsx(Gd,{}),color:"orange"}},ole={high:{label:"High",icon:$.jsx(qd,{}),color:"error"},medium:{label:"Medium",icon:$.jsx(Wc,{}),color:"warning"},low:{label:"Low",icon:$.jsx(gs,{}),color:"default"}};function ile(){const{message:e}=Ya.useApp(),[t,n]=i.useState([]),[r,a]=i.useState(!0),[l,c]=i.useState(""),[u,d]=i.useState({domain:"",jiraIssuePrefix:""}),f=i.useCallback(async()=>{a(!0);try{const C=await pa.list();n(C)}catch(C){e.error(C.message)}finally{a(!1)}},[e]);i.useEffect(()=>{f(),qr.status().then(C=>{C&&d(C)}).catch(()=>{})},[f]);const v=i.useMemo(()=>{let C=t.filter(S=>S.archived);if(l.trim()){const S=l.toLowerCase().trim();C=C.filter(h=>h.title.toLowerCase().includes(S)||(h.description||"").toLowerCase().includes(S))}return C.sort((S,h)=>new Date(h.archivedAt||0)-new Date(S.archivedAt||0))},[t,l]),g=async C=>{try{await pa.unarchive(C),n(S=>S.map(h=>h.id===C?{...h,archived:!1,archivedAt:null}:h)),e.success("Task restored to To-Do List")}catch(S){e.error(S.message)}},p=async C=>{try{await pa.remove(C),n(S=>S.filter(h=>h.id!==C)),e.success("Task permanently deleted")}catch(S){e.error(S.message)}},b=async()=>{try{const C=await pa.batch("clearArchived");n(C),e.success("All archived tasks cleared")}catch(C){e.error(C.message)}};return $.jsxs($.Fragment,{children:[$.jsxs("div",{className:"page-header",children:[$.jsxs("div",{children:[$.jsx(J4,{type:"secondary",children:"WORKBENCH"}),$.jsxs(nle,{level:2,children:[$.jsx(Xd,{style:{marginRight:8,color:"#1677ff"}}),"Archived Tasks"]}),$.jsx(rle,{type:"secondary",children:"View and manage archived tasks. Archived items can be restored back to your active To-Do list."})]}),$.jsxs(Ot,{children:[$.jsx(nt,{icon:$.jsx(Qy,{}),onClick:()=>{window.location.hash="#/todo-list"},children:"Back to To-Do List"}),$.jsx(nt,{icon:$.jsx(fs,{}),onClick:f,loading:r,children:"Refresh"})]})]}),$.jsx(Mn,{size:"small",style:{marginBottom:16,borderRadius:8},children:$.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[$.jsxs(J4,{type:"secondary",children:["Total Archived: ",$.jsx("strong",{style:{color:"#1677ff"},children:v.length})," items"]}),$.jsx(hn,{prefix:$.jsx(xs,{}),placeholder:"Search archived tasks...",value:l,onChange:C=>c(C.target.value),allowClear:!0,style:{width:240}})]})}),v.length>0&&$.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 16px",color:"#727b94",fontSize:12,borderBottom:"1px solid #e8e8e8",marginBottom:8},children:[$.jsx("span",{style:{flex:1,fontWeight:500},children:"Task Content"}),$.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:"Category"}),$.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:"Priority"}),$.jsx("div",{style:{width:140,textAlign:"center"},children:"Archived At"}),$.jsx("div",{style:{width:100,textAlign:"right"},children:"Actions"})]}),r?$.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:$.jsx(Ga,{size:"large"})}):v.length===0?$.jsx(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE,description:"No archived tasks found.",children:$.jsx(nt,{icon:$.jsx(Qy,{}),onClick:()=>{window.location.hash="#/todo-list"},children:"Back to To-Do List"})}):$.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:v.map(C=>{var w;const S=ale[C.category]||{label:C.category,color:"default"},h=ole[C.priority]||{label:C.priority,color:"default"},x=C.archivedAt?fa(C.archivedAt).format("YYYY-MM-DD HH:mm"):"—";return $.jsx(Mn,{size:"small",style:{borderRadius:8,opacity:.85},bodyStyle:{padding:"12px 16px"},children:$.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[$.jsxs("div",{style:{flex:1,minWidth:0},children:[$.jsx("div",{style:{fontWeight:500,fontSize:15,lineHeight:"1.4",textDecoration:C.completed?"line-through":"none",color:"inherit",wordBreak:"break-word"},children:$.jsx(Yv,{text:C.title,domain:u.domain,jiraIssuePrefix:u.jiraIssuePrefix})}),!!((w=C.description)!=null&&w.trim())&&$.jsx("div",{style:{fontSize:12,color:"#666666",marginTop:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:$.jsx(Yv,{text:C.description.trim(),domain:u.domain,jiraIssuePrefix:u.jiraIssuePrefix})})]}),$.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:$.jsx($n,{color:S.color,icon:S.icon,style:{margin:0},children:S.label})}),$.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:$.jsx($n,{color:h.color,icon:h.icon,style:{margin:0},children:h.label})}),$.jsx("div",{style:{width:140,textAlign:"center"},children:$.jsxs($n,{color:"default",style:{margin:0},children:[$.jsx(Fc,{style:{marginRight:4}}),x]})}),$.jsx("div",{style:{width:100,textAlign:"right"},children:$.jsxs(Ot,{size:"small",children:[$.jsx(Vn,{title:"Restore to To-Do List",children:$.jsx(nt,{type:"text",size:"small",icon:$.jsx(tie,{style:{color:"#1677ff"}}),onClick:()=>g(C.id)})}),$.jsx(uo,{title:"Permanently delete this archived task?",onConfirm:()=>p(C.id),okText:"Delete",cancelText:"Cancel",children:$.jsx(nt,{type:"text",danger:!0,size:"small",icon:$.jsx(xr,{})})})]})})]})},C.id)})}),v.length>0&&$.jsx("div",{style:{marginTop:24,textAlign:"right"},children:$.jsx(uo,{title:`Are you sure you want to permanently delete all ${v.length} archived tasks?`,onConfirm:b,okText:"Delete All",cancelText:"Cancel",children:$.jsxs(nt,{type:"dashed",danger:!0,icon:$.jsx(xr,{}),children:["Clear all archived tasks (",v.length,")"]})})})]})}const{Title:lle}=mr,sle=()=>{const n=(window.location.hash||"").slice(2).split("/");if(n[0]==="logs"){const r=n[1]||"",a=n[2]==="pkg",l=a?n[3]:n[2];return{launcherId:r,isPackage:a,scriptIdOrName:l}}return{launcherId:null,isPackage:!1,scriptIdOrName:null}};function cle(){const{message:e}=Ya.useApp(),{launcherId:t,isPackage:n,scriptIdOrName:r}=sle(),[a,l]=i.useState("output"),[c,u]=i.useState(""),[d,f]=i.useState(!0),[v,g]=i.useState(!1),[p,b]=i.useState(""),[C,S]=i.useState(r),h=i.useRef(null);i.useEffect(()=>{t&&br.list().then(E=>{var R;const j=E.find(I=>I.id===t);if(j&&(j.alias&&b(j.alias),!n&&r))if(r==="install")S("Install");else{const I=(R=j.scripts)==null?void 0:R.find(O=>O.id===r);I!=null&&I.name&&S(I.name)}}).catch(()=>{})},[t,n,r]),i.useEffect(()=>{const E=p?`${p} · `:"",j=C||r||"Logs";return document.title=`${E}${j} · DevBuddy`,()=>{document.title="DevBuddy · Workbench"}},[p,C,r]),i.useEffect(()=>{if(!t||!r)return;const E=async()=>{try{const R=n?a==="error"?await br.packageScriptErrorLogs(t,r):await br.packageScriptLogs(t,r):a==="error"?await br.errorLogs(t,r):await br.logs(t,r);u(R.log||(a==="error"?"No error logs yet.":"No logs yet."))}catch(R){u(R.message)}finally{f(!1)}};E();const j=setInterval(E,1e3);return()=>clearInterval(j)},[t,n,r,a]),i.useEffect(()=>{if(h.current){const E=h.current.querySelector(".log-output");E&&(E.scrollTop=E.scrollHeight)}},[c]);const x=async()=>{try{await navigator.clipboard.writeText(window.location.href),g(!0),e.success("URL copied to clipboard"),setTimeout(()=>g(!1),2e3)}catch{e.error("Failed to copy URL")}},w=()=>{window.close()};return!t||!r?$.jsx("div",{className:"standalone-log-container",style:{display:"grid",placeItems:"center",height:"100vh",background:"#111827",color:"#ef4444"},children:$.jsx("div",{children:"Invalid log target specified in URL."})}):$.jsxs("div",{className:"standalone-log-container",ref:h,children:[$.jsxs("header",{className:"standalone-log-header",children:[$.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16},children:[$.jsxs(lle,{level:4,style:{margin:0,color:"#f3f4f6",fontSize:16},children:[p||t," ",$.jsx("span",{style:{color:"#9ca3af",fontWeight:"normal"},children:"/"})," ",C||r]}),d&&$.jsx(Ga,{size:"small"})]}),$.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[$.jsxs(_r.Group,{value:a,onChange:E=>l(E.target.value),size:"small",buttonStyle:"solid",children:[$.jsx(_r.Button,{value:"output",children:"Output"}),$.jsx(_r.Button,{value:"error",children:"Errors"})]}),$.jsx(nt,{size:"small",icon:v?$.jsx(Ss,{}):$.jsx(Yo,{}),onClick:x,children:v?"Copied":"Copy URL"}),$.jsx(nt,{type:"text",icon:$.jsx(Po,{}),onClick:w,style:{color:"#9ca3af"},title:"Close Tab"})]})]}),$.jsx("div",{className:"standalone-log-body",children:$.jsx(t1,{value:c,className:"standalone-log-output"})})]})}const{Title:ule,Text:ld,Paragraph:dle}=mr;function fle(){const{message:e}=Ya.useApp(),[t,n]=i.useState([]),[r,a]=i.useState(!0),[l,c]=i.useState(""),[u,d]=i.useState("All"),[f,v]=i.useState(new Set),[g,p]=i.useState(null),b=async()=>{a(!0);try{const I=await Od.list();n(I||[])}catch(I){e.error(I.message)}finally{a(!1)}};i.useEffect(()=>{b()},[]);const C=async()=>{try{await Od.clear(),n([]),e.success("All error records cleared")}catch(I){e.error(I.message)}},S=async I=>{try{await Od.remove(I),n(O=>O.filter(M=>M.id!==I)),e.success("Error record deleted")}catch(O){e.error(O.message)}},h=I=>{const O=`[${I.timestamp}] [${I.source}] ${I.message}
|
|
520
|
+
|
|
521
|
+
${I.details||""}`;navigator.clipboard.writeText(O),p(I.id),setTimeout(()=>{p(M=>M===I.id?null:M)},1200)},x=I=>{v(O=>{const M=new Set(O);return M.has(I)?M.delete(I):M.add(I),M})},w=i.useMemo(()=>{const I=new Set;for(const O of t)O.source&&(O.source.startsWith("Launcher")?I.add("Launcher"):O.source.startsWith("Backend")?I.add("Backend API"):O.source.startsWith("Frontend")?I.add("Frontend"):I.add(O.source));return["All",...Array.from(I)]},[t]),E=i.useMemo(()=>t.filter(I=>{var O,M,N;if(u!=="All"&&(u==="Launcher"&&!((O=I.source)!=null&&O.startsWith("Launcher"))||u==="Backend API"&&!((M=I.source)!=null&&M.startsWith("Backend"))||u==="Frontend"&&!((N=I.source)!=null&&N.startsWith("Frontend"))||!["Launcher","Backend API","Frontend"].includes(u)&&I.source!==u))return!1;if(l.trim()){const P=l.toLowerCase(),B=(I.message||"").toLowerCase(),L=(I.source||"").toLowerCase(),k=(I.details||"").toLowerCase();return B.includes(P)||L.includes(P)||k.includes(P)}return!0}),[t,u,l]),j=(I="")=>I.startsWith("Launcher")?"orange":I.startsWith("Backend")?"processing":I.startsWith("Frontend")?"purple":"default",R=I=>{if(!I)return"";try{return new Date(I).toLocaleString("sv-SE").replace(" "," ")}catch{return I}};return $.jsxs("div",{className:"error-logs-page",children:[$.jsxs("div",{className:"page-header",children:[$.jsxs("div",{children:[$.jsx(ld,{type:"secondary",children:"SYSTEM LOGS"}),$.jsx(ule,{level:2,children:"Error history"}),$.jsx(dle,{type:"secondary",children:"Captures the 100 most recent errors from launchers, backend APIs, and frontend execution."})]}),$.jsxs(Ot,{size:12,align:"center",children:[$.jsx(nt,{icon:$.jsx(fs,{}),loading:r,onClick:b,children:"Refresh"}),$.jsx(uo,{title:"Clear all error logs?",description:"This action will permanently delete all stored error records.",onConfirm:C,okText:"Yes, clear",cancelText:"Cancel",okButtonProps:{danger:!0},children:$.jsxs(nt,{danger:!0,icon:$.jsx(xr,{}),disabled:t.length===0,children:["Clear All (",t.length,")"]})})]})]}),$.jsxs("div",{style:{marginBottom:16,display:"flex",gap:12,flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},children:[$.jsx(nG,{options:w.map(I=>{const O=I==="All"?t.length:t.filter(M=>{var N,P,B;return I==="Launcher"?(N=M.source)==null?void 0:N.startsWith("Launcher"):I==="Backend API"?(P=M.source)==null?void 0:P.startsWith("Backend"):I==="Frontend"?(B=M.source)==null?void 0:B.startsWith("Frontend"):M.source===I}).length;return{label:`${I} (${O})`,value:I}}),value:u,onChange:d}),$.jsx(hn,{placeholder:"Search error message or details...",prefix:$.jsx(xs,{style:{color:"#8c8c8c"}}),allowClear:!0,value:l,onChange:I=>c(I.target.value),style:{width:280}})]}),E.length>0?$.jsx("div",{style:{display:"grid",gap:10},children:E.map(I=>{const O=f.has(I.id);return $.jsxs(Mn,{size:"small",className:"error-log-item",style:{borderLeft:"4px solid #ff4d4f"},children:[$.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:12},children:[$.jsxs("div",{style:{flex:1,minWidth:0},children:[$.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap",marginBottom:4},children:[$.jsxs($n,{color:"error",style:{margin:0},children:[$.jsx(MM,{})," ERROR"]}),$.jsx($n,{color:j(I.source),style:{margin:0},children:I.source}),$.jsx(ld,{type:"secondary",style:{fontSize:12},children:R(I.timestamp)})]}),$.jsx(ld,{strong:!0,style:{fontSize:14,color:"#111827",display:"block",wordBreak:"break-word"},children:I.message})]}),$.jsxs(Ot,{size:4,style:{flexShrink:0},children:[I.details&&$.jsx(nt,{type:"text",size:"small",icon:O?$.jsx(Eg,{}):$.jsx(dl,{}),onClick:()=>x(I.id),children:O?"Hide Details":"Details"}),$.jsx(Vn,{title:g===I.id?"Copied!":"Copy error",children:$.jsx(nt,{type:"text",size:"small",icon:g===I.id?$.jsx(Ss,{style:{color:"#52c41a"}}):$.jsx(Yo,{}),onClick:()=>h(I)})}),$.jsx(Vn,{title:"Delete entry",children:$.jsx(nt,{type:"text",size:"small",danger:!0,icon:$.jsx(xr,{}),onClick:()=>S(I.id)})})]})]}),I.details&&O&&$.jsx("div",{style:{marginTop:10},children:$.jsx("pre",{className:"log-output",style:{minHeight:"auto",maxHeight:360,margin:0,padding:10,borderRadius:6,fontSize:12},children:$.jsx("code",{style:{color:"#fca5a5"},children:I.details})})})]},I.id)})}):$.jsx(Mn,{style:{marginTop:16,textAlign:"center",padding:"48px 0"},children:$.jsx(Gn,{image:$.jsx(Vc,{style:{fontSize:48,color:"#52c41a"}}),description:$.jsxs("div",{style:{marginTop:8},children:[$.jsx(ld,{strong:!0,style:{fontSize:16,display:"block",color:"#374151"},children:t.length===0?"No error records":"No matching error records"}),$.jsx(ld,{type:"secondary",children:t.length===0?"Recent error events (up to 100) will be automatically captured and listed here.":"Try clearing your search query or switching filters."})]})})}),$.jsx(xl.BackTop,{visibilityHeight:240})]})}const{Text:Kl}=mr,mle={GET:"green",POST:"gold",PUT:"blue",DELETE:"red",PATCH:"purple",HEAD:"cyan",OPTIONS:"volcano"};function vle({collections:e=[],activeCollectionId:t=null,activeRequestId:n=null,onSelectRequest:r,onOpenImportModal:a,onOpenEnvModal:l,onCreateCollection:c,onUpdateCollection:u,onDeleteCollection:d}){const[f,v]=i.useState(""),[g,p]=i.useState(new Set),[b,C]=i.useState(new Set),[S,h]=i.useState(!1),[x,w]=i.useState(null),[E,j]=i.useState(""),R=k=>{const D=new Set(b);D.has(k)?D.delete(k):D.add(k),C(D)},I=k=>{const D=new Set(g);D.has(k)?D.delete(k):D.add(k),p(D)},O=(k,D,H,z)=>{w({type:k,collectionId:D,itemId:H,currentName:z}),j(z||""),h(!0)},M=()=>{if(!x||!E.trim())return;const{type:k,collectionId:D,itemId:H}=x,z=E.trim();if(k==="collection")u(D,{name:z});else if(k==="item"){const _=e.find(F=>F.id===D);if(_){const F=(_.items||[]).map(W=>W.id===H?{...W,name:z}:W);u(D,{items:F})}}h(!1),w(null)},N=(k,D=null)=>{const H=e.find(W=>W.id===k);if(!H)return;const z=`req_${Date.now()}`,_={id:z,name:"New Request",parentId:D,isFolder:!1,method:"GET",url:"https://jsonplaceholder.typicode.com/todos/1",params:[{key:"",value:"",enabled:!0}],headers:[],body:{mode:"none",raw:"",json:"",formdata:[],urlencoded:[]},auth:{type:"none"}},F=[...H.items||[],_];u(k,{items:F}),r(k,z)},P=(k,D=null)=>{const H=e.find(F=>F.id===k);if(!H)return;const z={id:`folder_${Date.now()}`,name:"New Folder",parentId:D,isFolder:!0},_=[...H.items||[],z];u(k,{items:_})},B=(k,D)=>{const H=e.find(W=>W.id===k);if(!H)return;const z=new Set([D]);let _=!0;for(;_;)_=!1,H.items.forEach(W=>{W.parentId&&z.has(W.parentId)&&!z.has(W.id)&&(z.add(W.id),_=!0)});const F=H.items.filter(W=>!z.has(W.id));u(k,{items:F})},L=(k,D=null,H=1)=>(k.items||[]).filter(_=>(_.parentId||null)===D).map(_=>{var W,q;if(f){const V=(W=_.name)==null?void 0:W.toLowerCase().includes(f.toLowerCase()),G=(q=_.url)==null?void 0:q.toLowerCase().includes(f.toLowerCase());if(!_.isFolder&&!V&&!G)return null}if(_.isFolder){const V=g.has(_.id)||!!f;return $.jsxs("div",{className:"tree-folder-node",children:[$.jsxs("div",{className:"tree-node-row folder-row",style:{paddingLeft:H*14},onClick:()=>I(_.id),children:[$.jsx("span",{className:"node-icon",children:V?$.jsx(qv,{style:{color:"#faad14"}}):$.jsx(Cv,{style:{color:"#faad14"}})}),$.jsx(Kl,{className:"node-title",ellipsis:!0,children:_.name}),$.jsx("div",{className:"node-actions",onClick:G=>G.stopPropagation(),children:$.jsx(as,{menu:{items:[{key:"rename-folder",label:"Rename Folder",icon:$.jsx(os,{}),onClick:()=>O("item",k.id,_.id,_.name)},{key:"add-req",label:"Add Request",icon:$.jsx(ra,{}),onClick:()=>N(k.id,_.id)},{key:"add-folder",label:"Add Subfolder",icon:$.jsx(Cv,{}),onClick:()=>P(k.id,_.id)},{key:"delete",label:"Delete",icon:$.jsx(xr,{}),danger:!0,onClick:()=>B(k.id,_.id)}]},trigger:["click"],children:$.jsx(nt,{type:"text",size:"small",icon:$.jsx(gb,{})})})})]}),V&&$.jsx("div",{className:"tree-folder-children",children:L(k,_.id,H+1)})]},_.id)}const F=n===_.id;return $.jsxs("div",{className:`tree-node-row request-row ${F?"is-active":""}`,style:{paddingLeft:H*14},onClick:()=>r(k.id,_.id),children:[$.jsx($n,{color:mle[_.method]||"default",style:{marginRight:6,fontSize:"10px",padding:"0 4px",fontWeight:"bold"},children:_.method}),$.jsx(Kl,{className:"node-title",ellipsis:!0,children:_.name}),$.jsx("div",{className:"node-actions",onClick:V=>V.stopPropagation(),children:$.jsx(as,{menu:{items:[{key:"rename-req",label:"Rename Request",icon:$.jsx(os,{}),onClick:()=>O("item",k.id,_.id,_.name)},{key:"delete",label:"Delete",icon:$.jsx(xr,{}),danger:!0,onClick:()=>B(k.id,_.id)}]},trigger:["click"],children:$.jsx(nt,{type:"text",size:"small",icon:$.jsx(gb,{})})})})]},_.id)});return $.jsxs("div",{className:"postman-sidebar",children:[$.jsxs("div",{className:"sidebar-header",children:[$.jsxs("div",{className:"sidebar-title-row",children:[$.jsx(Kl,{strong:!0,style:{fontSize:15,color:"#172033"},children:"Collections"}),$.jsxs(Ot,{size:2,children:[$.jsx(Vn,{title:"Open in new browser tab",children:$.jsx(nt,{type:"text",size:"small",icon:$.jsx(_C,{}),onClick:()=>{const k=`${window.location.origin}/#/postman`;window.open(k,"_blank")}})}),$.jsx(Vn,{title:"Open in default browser",children:$.jsx(nt,{type:"text",size:"small",icon:$.jsx(bf,{}),onClick:()=>{const k=`${window.location.origin}/#/postman`;Ca(k)}})})]})]}),$.jsxs("div",{className:"sidebar-toolbar",children:[$.jsx(nt,{size:"small",type:"primary",icon:$.jsx(ra,{}),onClick:c,style:{flex:1},children:"New"}),$.jsx(nt,{size:"small",icon:$.jsx(goe,{}),onClick:a,style:{flex:1},children:"Import"}),$.jsx(Vn,{title:"Manage Environments",children:$.jsx(nt,{size:"small",icon:$.jsx(_M,{}),onClick:l})})]}),$.jsx("div",{className:"sidebar-search-row",children:$.jsx(hn,{prefix:$.jsx(xs,{style:{color:"#a0a6b1"}}),placeholder:"Filter collections & requests…",size:"small",value:f,onChange:k=>v(k.target.value),allowClear:!0})})]}),$.jsx("div",{className:"sidebar-content",children:e.length===0?$.jsx(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE,description:$.jsxs("div",{style:{color:"#7d8799",fontSize:"12px",marginTop:4,lineHeight:"1.6"},children:["No Collections yet.",$.jsx("br",{}),"Click ",$.jsx(Kl,{strong:!0,style:{color:"#1677ff"},children:"+"})," to create or ",$.jsx(Kl,{strong:!0,style:{color:"#1677ff"},children:"Import"})," to load Postman / cURL."]}),style:{marginTop:40}}):e.map(k=>{const D=b.has(k.id)||!b.size||!!f,H=(k.items||[]).filter(z=>!z.isFolder).length;return $.jsxs("div",{className:"collection-group",children:[$.jsxs("div",{className:"collection-header",onClick:()=>R(k.id),children:[$.jsxs("span",{className:"collection-title-wrap",children:[$.jsx(Kl,{strong:!0,ellipsis:!0,className:"collection-name",children:k.name}),$.jsxs(Kl,{type:"secondary",className:"collection-count",children:["(",H,")"]})]}),$.jsx("div",{className:"collection-actions",onClick:z=>z.stopPropagation(),children:$.jsx(as,{menu:{items:[{key:"rename-col",label:"Rename Collection",icon:$.jsx(os,{}),onClick:()=>O("collection",k.id,null,k.name)},{key:"add-req",label:"Add Request",icon:$.jsx(ra,{}),onClick:()=>N(k.id)},{key:"add-folder",label:"Add Folder",icon:$.jsx(Cv,{}),onClick:()=>P(k.id)},{key:"delete-col",label:"Delete Collection",icon:$.jsx(xr,{}),danger:!0,onClick:()=>d(k.id)}]},trigger:["click"],children:$.jsx(nt,{type:"text",size:"small",icon:$.jsx(gb,{})})})})]}),D&&$.jsx("div",{className:"collection-tree-body",children:L(k,null,1)})]},k.id)})}),$.jsx(yr,{title:`Rename ${(x==null?void 0:x.type)==="collection"?"Collection":"Item"}`,open:S,onCancel:()=>h(!1),onOk:M,destroyOnClose:!0,width:420,children:$.jsx(hn,{value:E,onChange:k=>j(k.target.value),onPressEnter:M,placeholder:"Enter new name",autoFocus:!0,style:{marginTop:12}})})]})}const{Option:sd}=ir,{TextArea:gle}=hn,{Text:Ul}=mr,ple=["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"];function hle({request:e=null,environments:t=[],activeEnvironmentId:n=null,onSelectEnvironment:r,onSend:a,onSave:l,sending:c}){const[u,d]=i.useState("GET"),[f,v]=i.useState(""),[g,p]=i.useState([]),[b,C]=i.useState([]),[S,h]=i.useState({mode:"none",raw:"",json:"",formdata:[],urlencoded:[]}),[x,w]=i.useState({type:"none",token:"",username:"",password:""}),[E,j]=i.useState(""),[R,I]=i.useState("params");if(i.useEffect(()=>{e&&(d(e.method||"GET"),v(e.url||""),p(e.params||[]),C(e.headers||[]),h(e.body||{mode:"none",raw:"",json:"",formdata:[],urlencoded:[]}),w(e.auth||{type:"none",token:"",username:"",password:""}),j(e.name||"Untitled Request"))},[e==null?void 0:e.id]),!e)return $.jsx("div",{className:"request-editor-empty",children:$.jsx(Ul,{type:"secondary",children:'Select a request from the sidebar or click "Import" to load a collection.'})});const O=()=>{a({method:u,url:f,params:g,headers:b,body:S,auth:x})},M=()=>{l({...e,name:E,method:u,url:f,params:g,headers:b,body:S,auth:x})},N=()=>{p([...g,{key:"",value:"",enabled:!0}])},P=(_,F,W)=>{const q=[...g];q[_]={...q[_],[F]:W},p(q)},B=_=>{p(g.filter((F,W)=>W!==_))},L=()=>{C([...b,{key:"",value:"",enabled:!0}])},k=(_,F,W)=>{const q=[...b];q[_]={...q[_],[F]:W},C(q)},D=_=>{C(b.filter((F,W)=>W!==_))},H=[{title:"",dataIndex:"enabled",width:40,render:(_,F,W)=>$.jsx(ya,{checked:_!==!1,onChange:q=>P(W,"enabled",q.target.checked)})},{title:"Key",dataIndex:"key",width:"40%",render:(_,F,W)=>$.jsx(hn,{placeholder:"Parameter Key",value:_,onChange:q=>P(W,"key",q.target.value),size:"small"})},{title:"Value",dataIndex:"value",width:"50%",render:(_,F,W)=>$.jsx(hn,{placeholder:"Parameter Value",value:_,onChange:q=>P(W,"value",q.target.value),size:"small"})},{title:"",key:"actions",width:40,render:(_,F,W)=>$.jsx(nt,{type:"text",danger:!0,size:"small",icon:$.jsx(xr,{}),onClick:()=>B(W)})}],z=[{title:"",dataIndex:"enabled",width:40,render:(_,F,W)=>$.jsx(ya,{checked:_!==!1,onChange:q=>k(W,"enabled",q.target.checked)})},{title:"Header",dataIndex:"key",width:"40%",render:(_,F,W)=>$.jsx(hn,{placeholder:"Header (e.g. Content-Type)",value:_,onChange:q=>k(W,"key",q.target.value),size:"small"})},{title:"Value",dataIndex:"value",width:"50%",render:(_,F,W)=>$.jsx(hn,{placeholder:"Header Value",value:_,onChange:q=>k(W,"value",q.target.value),size:"small"})},{title:"",key:"actions",width:40,render:(_,F,W)=>$.jsx(nt,{type:"text",danger:!0,size:"small",icon:$.jsx(xr,{}),onClick:()=>D(W)})}];return $.jsxs("div",{className:"request-editor",children:[$.jsxs("div",{className:"request-bar",children:[$.jsx(hn,{value:E,onChange:_=>j(_.target.value),className:"request-name-input",placeholder:"Request Name"}),$.jsxs("div",{className:"request-url-row",children:[$.jsx(ir,{value:u,onChange:d,className:`method-select method-${u.toLowerCase()}`,style:{width:110},children:ple.map(_=>$.jsx(sd,{value:_,children:_},_))}),$.jsx(hn,{value:f,onChange:_=>v(_.target.value),placeholder:"Enter request URL or {{variable}}",className:"url-input",onPressEnter:O}),$.jsx(ir,{value:n,onChange:r,placeholder:"Environment",allowClear:!0,style:{width:160},suffixIcon:$.jsx(kae,{}),children:t.map(_=>$.jsx(sd,{value:_.id,children:_.name},_.id))}),$.jsx(nt,{type:"primary",icon:$.jsx(AC,{}),loading:c,onClick:O,className:"send-btn",children:"Send"}),$.jsx(nt,{icon:$.jsx(Hoe,{}),onClick:M,children:"Save"})]})]}),$.jsx("div",{className:"request-tabs-wrap",children:$.jsx(Zo,{activeKey:R,onChange:I,size:"small",items:[{key:"params",label:`Params (${g.filter(_=>_.key).length})`,children:$.jsxs("div",{className:"tab-pane-content",children:[$.jsx(jr,{dataSource:g,columns:H,rowKey:(_,F)=>`param_${F}`,pagination:!1,size:"small"}),$.jsx(nt,{type:"dashed",size:"small",icon:$.jsx(ra,{}),onClick:N,style:{marginTop:8},children:"Add Query Parameter"})]})},{key:"headers",label:`Headers (${b.filter(_=>_.key).length})`,children:$.jsxs("div",{className:"tab-pane-content",children:[$.jsx(jr,{dataSource:b,columns:z,rowKey:(_,F)=>`hdr_${F}`,pagination:!1,size:"small"}),$.jsx(nt,{type:"dashed",size:"small",icon:$.jsx(ra,{}),onClick:L,style:{marginTop:8},children:"Add Header"})]})},{key:"body",label:`Body (${S.mode})`,children:$.jsxs("div",{className:"tab-pane-content",children:[$.jsx("div",{style:{marginBottom:12},children:$.jsxs(_r.Group,{value:S.mode||"none",onChange:_=>h({...S,mode:_.target.value}),size:"small",children:[$.jsx(_r.Button,{value:"none",children:"none"}),$.jsx(_r.Button,{value:"json",children:"json"}),$.jsx(_r.Button,{value:"raw",children:"raw"}),$.jsx(_r.Button,{value:"urlencoded",children:"x-www-form-urlencoded"})]})}),S.mode==="json"||S.mode==="raw"?$.jsx(gle,{rows:8,value:S.raw||S.json||"",onChange:_=>h({...S,raw:_.target.value,json:_.target.value}),placeholder:'{\\n "key": "value"\\n}',style:{fontFamily:"monospace",fontSize:"13px"}}):S.mode==="urlencoded"?$.jsx(Ul,{type:"secondary",children:"x-www-form-urlencoded parameters configured via Headers / Params."}):$.jsx(Ul,{type:"secondary",children:"This request does not have a body."})]})},{key:"auth",label:`Auth (${x.type||"none"})`,children:$.jsxs("div",{className:"tab-pane-content",style:{maxWidth:520},children:[$.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:12},children:[$.jsx(Ul,{strong:!0,style:{width:80,flexShrink:0},children:"Type:"}),$.jsxs(ir,{value:x.type||"none",onChange:_=>w({...x,type:_}),style:{flex:1},size:"small",children:[$.jsx(sd,{value:"none",children:"No Auth"}),$.jsx(sd,{value:"bearer",children:"Bearer Token"}),$.jsx(sd,{value:"basic",children:"Basic Auth"})]})]}),x.type==="bearer"&&$.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:12},children:[$.jsx(Ul,{strong:!0,style:{width:80,flexShrink:0},children:"Token:"}),$.jsx(hn,{value:x.token||"",onChange:_=>w({...x,token:_.target.value}),placeholder:"Bearer token or {{token}}",size:"small",style:{flex:1}})]}),x.type==="basic"&&$.jsxs(Ot,{direction:"vertical",style:{width:"100%"},size:"small",children:[$.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:6},children:[$.jsx(Ul,{strong:!0,style:{width:80,flexShrink:0},children:"Username:"}),$.jsx(hn,{value:x.username||"",onChange:_=>w({...x,username:_.target.value}),size:"small",style:{flex:1}})]}),$.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[$.jsx(Ul,{strong:!0,style:{width:80,flexShrink:0},children:"Password:"}),$.jsx(hn.Password,{value:x.password||"",onChange:_=>w({...x,password:_.target.value}),size:"small",style:{flex:1}})]})]})]})}]})})]})}const{Text:e3}=mr;function ble({response:e,loading:t}){const[n,r]=i.useState("pretty");if(t)return $.jsx("div",{className:"response-panel loading-state",children:$.jsxs("div",{className:"loading-spinner",children:[$.jsx(Fc,{spin:!0,style:{fontSize:28,color:"#1677ff",marginBottom:12}}),$.jsx(e3,{type:"secondary",children:"Sending HTTP Request…"})]})});if(!e)return $.jsx("div",{className:"response-panel empty-state",children:$.jsx(Gn,{image:Gn.PRESENTED_IMAGE_SIMPLE,description:"Enter URL and click 'Send' to get response"})});const{status:a,statusText:l,headers:c={},data:u,durationMs:d,sizeBytes:f,contentType:v,error:g,resolvedUrl:p}=e,C=a>=200&&a<300?"success":a>=300&&a<400?"warning":"error",S=E=>!E||isNaN(E)?"0 B":E<1024?`${E} B`:E<1024*1024?`${(E/1024).toFixed(2)} KB`:`${(E/(1024*1024)).toFixed(2)} MB`,h=()=>{if(g)return typeof g=="string"?g:JSON.stringify(g,null,2);if(typeof u=="object")return JSON.stringify(u,null,2);if(typeof u=="string")try{const E=JSON.parse(u);return JSON.stringify(E,null,2)}catch{return u}return String(u||"")},x=()=>{navigator.clipboard.writeText(h()),kn.success("Response body copied to clipboard!")},w=Object.entries(c).map(([E,j],R)=>({key:R,keyName:E,value:String(j)}));return $.jsxs("div",{className:"response-panel",children:[$.jsxs("div",{className:"response-header-bar",children:[$.jsxs("div",{className:"response-status-group",children:[g?$.jsx($n,{color:"error",children:"Error"}):$.jsxs($n,{color:C,style:{fontSize:13,padding:"2px 8px"},children:[a," ",l]}),d!==void 0&&$.jsxs("span",{className:"response-meta-item",children:[$.jsx(Fc,{})," ",d," ms"]}),f!==void 0&&$.jsxs("span",{className:"response-meta-item",children:[$.jsx(uoe,{})," ",S(f)]})]}),$.jsx(Vn,{title:"Copy Response",children:$.jsx(nt,{size:"small",icon:$.jsx(Yo,{}),onClick:x,children:"Copy"})})]}),$.jsx("div",{className:"response-body-wrap",children:$.jsx(Zo,{activeKey:n,onChange:r,size:"small",items:[{key:"pretty",label:"Pretty",children:$.jsx("pre",{className:"code-viewer",children:$.jsx("code",{children:h()})})},{key:"raw",label:"Raw",children:$.jsx("pre",{className:"code-viewer raw",children:$.jsx("code",{children:typeof u=="string"?u:JSON.stringify(u)})})},{key:"headers",label:`Headers (${Object.keys(c).length})`,children:$.jsx(jr,{dataSource:w,columns:[{title:"Header",dataIndex:"keyName",width:"30%",render:E=>$.jsx(e3,{strong:!0,children:E})},{title:"Value",dataIndex:"value"}],size:"small",pagination:!1,style:{marginTop:8}})}]})})]})}const{Dragger:yle}=Jg,{TextArea:t3}=hn,{Text:n3}=mr;function Cle({open:e,onClose:t,onImport:n}){const[r,a]=i.useState("file"),[l,c]=i.useState(""),[u,d]=i.useState(""),[f,v]=i.useState(!1),g=async b=>{if(!b||!b.trim()){kn.warning("Please select a file or paste content to import");return}try{v(!0),await n(b.trim()),kn.success("Imported successfully!"),c(""),d(""),t()}catch(C){kn.error(`Import failed: ${C.message}`)}finally{v(!1)}},p={name:"file",multiple:!1,accept:".json",showUploadList:!1,beforeUpload(b){if(!(b.type==="application/json"||b.name.endsWith(".json")))return kn.error("Please upload a valid .json file!"),!1;const S=new FileReader;return S.onload=h=>{const x=h.target.result;g(x)},S.readAsText(b),!1}};return $.jsx(yr,{title:"Import Postman Collection / cURL",open:e,onCancel:t,footer:[$.jsx(nt,{onClick:t,children:"Cancel"},"cancel"),(r==="text"||r==="curl")&&$.jsx(nt,{type:"primary",loading:f,onClick:()=>g(r==="text"?l:u),children:"Import"},"submit")].filter(Boolean),width:640,destroyOnClose:!0,children:$.jsx(Zo,{activeKey:r,onChange:a,items:[{key:"file",label:$.jsxs("span",{children:[$.jsx(Xd,{})," Upload JSON File"]}),children:$.jsx("div",{style:{padding:"16px 0"},children:$.jsxs(yle,{...p,children:[$.jsx("p",{className:"ant-upload-drag-icon",children:$.jsx(Xd,{style:{color:"#1677ff",fontSize:48}})}),$.jsx("p",{className:"ant-upload-text",children:"Click or drag Postman Collection JSON file to this area"}),$.jsx("p",{className:"ant-upload-hint",children:"Supports Postman Collection v2.0 and v2.1 JSON files."})]})})},{key:"text",label:$.jsxs("span",{children:[$.jsx(Wg,{})," Raw Collection JSON"]}),children:$.jsxs("div",{style:{padding:"12px 0"},children:[$.jsx(n3,{type:"secondary",style:{display:"block",marginBottom:8},children:"Paste raw Postman Collection JSON content:"}),$.jsx(t3,{rows:10,value:l,onChange:b=>c(b.target.value),placeholder:'{ "info": { "name": "Sample Collection" }, "item": [...] }',style:{fontFamily:"monospace",fontSize:"13px"}})]})},{key:"curl",label:$.jsxs("span",{children:[$.jsx(vs,{})," cURL Command"]}),children:$.jsxs("div",{style:{padding:"12px 0"},children:[$.jsx(n3,{type:"secondary",style:{display:"block",marginBottom:8},children:"Paste a raw cURL command to import as a request:"}),$.jsx(t3,{rows:10,value:u,onChange:b=>d(b.target.value),placeholder:`curl -X POST "https://api.example.com/v1/users" \\
|
|
522
|
+
-H "Authorization: Bearer token123" \\
|
|
523
|
+
-H "Content-Type: application/json" \\
|
|
524
|
+
-d '{"name": "John"}'`,style:{fontFamily:"monospace",fontSize:"13px"}})]})}]})})}const{Option:Sle}=ir,{Text:xle}=mr;function $le({open:e,onClose:t,environments:n=[],activeEnvironmentId:r=null,onSave:a}){const[l,c]=i.useState(n),[u,d]=i.useState(r),[f,v]=i.useState(null);i.useEffect(()=>{c(n),d(r),n.length>0?v(r||n[0].id):v(null)},[e,n,r]);const g=l.find(R=>R.id===f),p=()=>{const R={id:`env_${Date.now()}`,name:`Environment ${l.length+1}`,variables:[{key:"baseUrl",value:"http://localhost:3000",enabled:!0}]};c([...l,R]),v(R.id),u||d(R.id)},b=R=>{var O,M;const I=l.filter(N=>N.id!==R);c(I),u===R&&d(((O=I[0])==null?void 0:O.id)||null),f===R&&v(((M=I[0])==null?void 0:M.id)||null)},C=R=>{f&&c(l.map(I=>I.id===f?{...I,name:R}:I))},S=R=>{f&&c(l.map(I=>I.id===f?{...I,variables:R}:I))},h=()=>{if(!g)return;const R=[...g.variables||[],{key:"",value:"",enabled:!0}];S(R)},x=(R,I,O)=>{if(!g)return;const M=[...g.variables||[]];M[R]={...M[R],[I]:O},S(M)},w=R=>{if(!g)return;const I=g.variables.filter((O,M)=>M!==R);S(I)},E=()=>{a({environments:l,activeEnvironmentId:u}),t()},j=[{title:"",dataIndex:"enabled",width:40,render:(R,I,O)=>$.jsx(ya,{checked:R!==!1,onChange:M=>x(O,"enabled",M.target.checked)})},{title:"Variable Name",dataIndex:"key",width:"40%",render:(R,I,O)=>$.jsx(hn,{placeholder:"VARIABLE_NAME",value:R,onChange:M=>x(O,"key",M.target.value),size:"small"})},{title:"Value",dataIndex:"value",width:"50%",render:(R,I,O)=>$.jsx(hn,{placeholder:"Value",value:R,onChange:M=>x(O,"value",M.target.value),size:"small"})},{title:"",key:"actions",width:40,render:(R,I,O)=>$.jsx(nt,{type:"text",danger:!0,size:"small",icon:$.jsx(xr,{}),onClick:()=>w(O)})}];return $.jsx(yr,{title:"Manage Environment Variables",open:e,onCancel:t,onOk:E,width:720,destroyOnClose:!0,children:$.jsxs(Ot,{direction:"vertical",style:{width:"100%"},size:"middle",children:[$.jsxs("div",{style:{display:"flex",gap:12,alignItems:"center"},children:[$.jsx(xle,{strong:!0,children:"Active Environment:"}),$.jsx(ir,{style:{width:220},value:u,onChange:d,placeholder:"No Active Environment",allowClear:!0,children:l.map(R=>$.jsx(Sle,{value:R.id,children:R.name},R.id))}),$.jsx(nt,{icon:$.jsx(ra,{}),onClick:p,children:"New Environment"})]}),f&&g?$.jsxs("div",{style:{border:"1px solid #303030",borderRadius:8,padding:16},children:[$.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:12},children:[$.jsx(hn,{value:g.name,onChange:R=>C(R.target.value),style:{width:260,fontWeight:"bold"}}),$.jsx(uo,{title:"Delete this environment?",onConfirm:()=>b(g.id),okText:"Yes",cancelText:"No",children:$.jsx(nt,{type:"text",danger:!0,icon:$.jsx(xr,{}),children:"Delete Environment"})})]}),$.jsx(jr,{dataSource:g.variables||[],columns:j,rowKey:(R,I)=>`var_${I}`,pagination:!1,size:"small"}),$.jsx(nt,{type:"dashed",icon:$.jsx(ra,{}),onClick:h,block:!0,style:{marginTop:12},children:"Add Variable"})]}):$.jsx("div",{style:{textAlign:"center",padding:"32px 0",color:"#888"},children:'No environments created yet. Click "New Environment" to create one.'})]})})}function wle(){const{message:e}=Ya.useApp(),[t,n]=i.useState([]),[r,a]=i.useState([]),[l,c]=i.useState(null),[u,d]=i.useState(null),[f,v]=i.useState(null),[g,p]=i.useState(null),[b,C]=i.useState(!0),[S,h]=i.useState(!1),[x,w]=i.useState(!1),[E,j]=i.useState(!1),R=async()=>{try{C(!0);const F=await Qi.getData();if(n(F.collections||[]),a(F.environments||[]),c(F.activeEnvironmentId||null),(F.collections||[]).length>0&&!u){const W=F.collections[0];d(W.id);const q=(W.items||[]).find(V=>!V.isFolder);q&&v(q.id)}}catch(F){e.error(`Failed to load Postman data: ${F.message}`)}finally{C(!1)}};i.useEffect(()=>{R()},[]);const I=i.useMemo(()=>t.find(F=>F.id===u),[t,u]),O=i.useMemo(()=>I?(I.items||[]).find(F=>F.id===f&&!F.isFolder):null,[I,f]),M=i.useMemo(()=>r.find(F=>F.id===l),[r,l]),N=(F,W)=>{d(F),v(W),p(null)},P=async F=>{try{const W=await Qi.importCollection(F);await R(),d(W.id);const q=(W.items||[]).find(V=>!V.isFolder);q&&v(q.id)}catch(W){throw e.error(`Import failed: ${W.message}`),W}},B=async()=>{try{const F=await Qi.createCollection({name:"New Collection"});n([F,...t]),d(F.id),v(null),e.success("Created collection")}catch(F){e.error(F.message)}},L=async(F,W)=>{try{const q=await Qi.updateCollection(F,W);n(t.map(V=>V.id===F?q:V))}catch(q){e.error(q.message)}},k=async F=>{var W;try{await Qi.deleteCollection(F);const q=t.filter(V=>V.id!==F);n(q),u===F&&(d(((W=q[0])==null?void 0:W.id)||null),v(null)),e.success("Collection deleted")}catch(q){e.error(q.message)}},D=async({environments:F,activeEnvironmentId:W})=>{try{const q=await Qi.saveEnvironments({environments:F,activeEnvironmentId:W});a(q.environments||[]),c(q.activeEnvironmentId||null),e.success("Environments saved")}catch(q){e.error(q.message)}},H=async F=>{try{c(F),await Qi.saveEnvironments({activeEnvironmentId:F})}catch(W){e.error(W.message)}},z=async F=>{if(!u)return;const W=((I==null?void 0:I.items)||[]).map(V=>V.id===F.id?F:V);W.some(V=>V.id===F.id)||W.push(F),await L(u,{items:W}),e.success("Request saved")},_=async F=>{if(!F.url){e.warning("Please enter a target URL");return}try{h(!0),p(null);const W=(I==null?void 0:I.variables)||[],q=(M==null?void 0:M.variables)||[],V=await Qi.sendRequest({...F,collectionVariables:W,environmentVariables:q});p(V)}catch(W){p({error:W.message||"Request failed",status:0,statusText:"Network / Proxy Error"}),e.error(W.message||"Failed to send request")}finally{h(!1)}};return b?$.jsx("div",{style:{textAlign:"center",padding:"100px 0"},children:$.jsx(Ga,{size:"large",tip:"Loading Postman Workbench..."})}):$.jsxs("div",{className:"postman-container",children:[$.jsx(vle,{collections:t,activeCollectionId:u,activeRequestId:f,onSelectRequest:N,onOpenImportModal:()=>w(!0),onOpenEnvModal:()=>j(!0),onCreateCollection:B,onUpdateCollection:L,onDeleteCollection:k}),$.jsxs("div",{className:"postman-workspace",children:[$.jsx(hle,{request:O,environments:r,activeEnvironmentId:l,onSelectEnvironment:H,onSend:_,onSave:z,sending:S}),$.jsx(ble,{response:g,loading:S})]}),$.jsx(Cle,{open:x,onClose:()=>w(!1),onImport:P}),$.jsx($le,{open:E,onClose:()=>j(!1),environments:r,activeEnvironmentId:l,onSave:D})]})}const{Title:Sb,Text:Ji,Paragraph:xb}=mr;function Ele(){var R,I,O,M,N,P,B,L,k,D,H,z,_,F;const[e,t]=i.useState(!0),[n,r]=i.useState(!1),[a,l]=i.useState(!1),[c,u]=i.useState(null),[d,f]=i.useState("two-way"),[v,g]=i.useState(null),[p,b]=i.useState(!1),[C,S]=i.useState(null),h=async()=>{t(!0);try{const W=await hb.status();u(W)}catch(W){kn.error(W.message||"Failed to fetch bookmark status.")}finally{t(!1)}};i.useEffect(()=>{h()},[]);const x=async()=>{l(!0);try{const W=await hb.preview(d);g(W),b(!0)}catch(W){kn.error(W.message||"Failed to generate preview.")}finally{l(!1)}},w=async()=>{r(!0),S(null);try{const W=await hb.sync(d);S(W),kn.success("Bookmarks synchronized successfully!"),h()}catch(W){kn.error(W.message||"Failed to sync bookmarks.")}finally{r(!1)}},E=[{title:"Bookmark Name",dataIndex:"name",key:"name",render:W=>$.jsx(Ji,{strong:!0,children:W||"Untitled"})},{title:"URL",dataIndex:"url",key:"url",ellipsis:!0,render:W=>$.jsx("a",{href:W,target:"_blank",rel:"noreferrer",children:W})},{title:"Folder Location",dataIndex:"folderPath",key:"folderPath",render:W=>$.jsx($n,{color:"blue",children:W||"Bookmark Bar"})}];if(e&&!c)return $.jsx("div",{style:{textAlign:"center",padding:"60px 0"},children:$.jsx(Ga,{size:"large",tip:"Checking browser bookmark paths…"})});const j=((R=c==null?void 0:c.chrome)==null?void 0:R.running)||((I=c==null?void 0:c.edge)==null?void 0:I.running);return $.jsxs("div",{style:{maxWidth:1e3,margin:"0 auto",paddingBottom:40},children:[$.jsx("div",{className:"page-header",children:$.jsxs("div",{children:[$.jsx(Ji,{type:"secondary",children:"UTILITIES"}),$.jsx(Sb,{level:2,children:"Bookmark Sync"}),$.jsx(xb,{type:"secondary",className:"page-header-desc",children:"Seamlessly merge and sync bookmarks between Google Chrome and Microsoft Edge with automatic deduplication and safe backups."})]})}),j&&$.jsx(Cd,{type:"warning",showIcon:!0,icon:$.jsx(PM,{}),message:"Active Browser Process Detected",description:"Chrome or Edge is currently running. It is recommended to close the browser before syncing, or restart it after syncing so the changes take effect without being overwritten by in-memory cache.",style:{marginBottom:24,borderRadius:8}}),$.jsxs(Hc,{gutter:[16,16],style:{marginBottom:24},children:[$.jsx(na,{xs:24,sm:12,children:$.jsxs(Mn,{title:$.jsxs(Ot,{children:[$.jsx(Sae,{style:{fontSize:18,color:"#1890ff"}}),$.jsx("span",{children:"Google Chrome"})]}),extra:(O=c==null?void 0:c.chrome)!=null&&O.exists?$.jsx($n,{color:"success",icon:$.jsx(Vc,{}),children:"Ready"}):$.jsx($n,{color:"default",children:"File Not Found"}),bordered:!0,hoverable:!0,style:{borderRadius:10},children:[$.jsxs(xb,{type:"secondary",style:{fontSize:12,marginBottom:12},children:["Path: ",((M=c==null?void 0:c.chrome)==null?void 0:M.path)||"-"]}),$.jsxs(Ot,{direction:"vertical",style:{width:"100%"},children:[$.jsxs("div",{children:["Bookmarks Count:"," ",$.jsx(Ji,{strong:!0,style:{fontSize:18,color:"#1890ff"},children:((N=c==null?void 0:c.chrome)==null?void 0:N.count)??0})," ","items"]}),$.jsxs("div",{children:["Process Status:"," ",(P=c==null?void 0:c.chrome)!=null&&P.running?$.jsx(Ka,{status:"processing",text:"Running"}):$.jsx(Ka,{status:"default",text:"Not running"})]})]})]})}),$.jsx(na,{xs:24,sm:12,children:$.jsxs(Mn,{title:$.jsxs(Ot,{children:[$.jsx(zae,{style:{fontSize:18,color:"#0078d4"}}),$.jsx("span",{children:"Microsoft Edge"})]}),extra:(B=c==null?void 0:c.edge)!=null&&B.exists?$.jsx($n,{color:"success",icon:$.jsx(Vc,{}),children:"Ready"}):$.jsx($n,{color:"default",children:"File Not Found"}),bordered:!0,hoverable:!0,style:{borderRadius:10},children:[$.jsxs(xb,{type:"secondary",style:{fontSize:12,marginBottom:12},children:["Path: ",((L=c==null?void 0:c.edge)==null?void 0:L.path)||"-"]}),$.jsxs(Ot,{direction:"vertical",style:{width:"100%"},children:[$.jsxs("div",{children:["Bookmarks Count:"," ",$.jsx(Ji,{strong:!0,style:{fontSize:18,color:"#722ed1"},children:((k=c==null?void 0:c.edge)==null?void 0:k.count)??0})," ","items"]}),$.jsxs("div",{children:["Process Status:"," ",(D=c==null?void 0:c.edge)!=null&&D.running?$.jsx(Ka,{status:"processing",text:"Running"}):$.jsx(Ka,{status:"default",text:"Not running"})]})]})]})})]}),$.jsx(Mn,{title:"Sync Mode & Controls",style:{borderRadius:10,marginBottom:24},children:$.jsxs(Ot,{direction:"vertical",size:"large",style:{width:"100%"},children:[$.jsxs("div",{children:[$.jsx(Ji,{strong:!0,style:{display:"block",marginBottom:8},children:"Select Sync Rule:"}),$.jsxs(_r.Group,{value:d,onChange:W=>f(W.target.value),buttonStyle:"solid",children:[$.jsx(_r.Button,{value:"two-way",children:$.jsxs(Ot,{size:4,children:[$.jsx(LY,{}),$.jsx("span",{children:"Two-way Merge (Union)"})]})}),$.jsx(_r.Button,{value:"chrome-to-edge",children:$.jsxs(Ot,{size:4,children:[$.jsx(TM,{}),$.jsx("span",{children:"Chrome to Edge"})]})}),$.jsx(_r.Button,{value:"edge-to-chrome",children:$.jsxs(Ot,{size:4,children:[$.jsx(Qy,{}),$.jsx("span",{children:"Edge to Chrome"})]})})]})]}),$.jsx(dC,{style:{margin:"8px 0"}}),$.jsxs(Ot,{size:"middle",children:[$.jsx(nt,{type:"primary",size:"large",icon:$.jsx(e1,{spin:n}),loading:n,disabled:!((H=c==null?void 0:c.chrome)!=null&&H.exists)&&!((z=c==null?void 0:c.edge)!=null&&z.exists),onClick:w,style:{borderRadius:6,minWidth:140},children:"Sync Now"}),$.jsx(nt,{size:"large",icon:$.jsx(yC,{}),loading:a,disabled:!((_=c==null?void 0:c.chrome)!=null&&_.exists)&&!((F=c==null?void 0:c.edge)!=null&&F.exists),onClick:x,style:{borderRadius:6},children:"Preview Changes"}),$.jsx(nt,{icon:$.jsx(fs,{}),onClick:h,loading:e,children:"Refresh Status"})]})]})}),C&&$.jsx(Cd,{type:"success",showIcon:!0,icon:$.jsx(Boe,{}),message:"Sync Completed Successfully",description:$.jsxs(Ot,{direction:"vertical",style:{marginTop:8},children:[$.jsxs("div",{children:["Bookmarks updated! Added to Edge: ",$.jsx(Ji,{strong:!0,children:C.addedToEdgeCount})," items, Added to Chrome:"," ",$.jsx(Ji,{strong:!0,children:C.addedToChromeCount})," items."]}),C.backupsCreated&&C.backupsCreated.length>0&&$.jsxs("div",{children:[$.jsx(Ji,{type:"secondary",style:{fontSize:12},children:"Safety backups created:"}),$.jsx(By,{size:"small",dataSource:C.backupsCreated,renderItem:W=>$.jsx(By.Item,{style:{padding:"2px 0",fontSize:12},children:$.jsx("code",{children:W})})})]})]}),style:{borderRadius:8,marginBottom:24}}),$.jsx(yr,{title:"Bookmark Sync Changes Preview",open:p,onCancel:()=>b(!1),footer:[$.jsx(nt,{onClick:()=>b(!1),children:"Cancel"},"close"),$.jsx(nt,{type:"primary",icon:$.jsx(e1,{}),loading:n,onClick:()=>{b(!1),w()},children:"Confirm & Sync Now"},"sync")],width:800,children:v?$.jsxs(Ot,{direction:"vertical",size:"middle",style:{width:"100%",marginTop:12},children:[$.jsx(Cd,{type:"info",showIcon:!0,icon:$.jsx(gs,{}),message:`Current Mode: ${d==="two-way"?"Two-way Merge":d==="chrome-to-edge"?"Chrome to Edge":"Edge to Chrome"}`}),v.toAddEdge.length>0&&$.jsxs("div",{children:[$.jsxs(Sb,{level:5,children:["Pending Items to Add to Microsoft Edge (",v.toAddEdge.length,"):"]}),$.jsx(jr,{dataSource:v.toAddEdge,columns:E,rowKey:(W,q)=>`${W.url}-${W.folderPath}-${q}`,pagination:{defaultPageSize:5,showSizeChanger:!0,pageSizeOptions:["5","10","20","50"]},size:"small"})]}),v.toAddChrome.length>0&&$.jsxs("div",{children:[$.jsxs(Sb,{level:5,children:["Pending Items to Add to Google Chrome (",v.toAddChrome.length,"):"]}),$.jsx(jr,{dataSource:v.toAddChrome,columns:E,rowKey:(W,q)=>`${W.url}-${W.folderPath}-${q}`,pagination:{defaultPageSize:5,showSizeChanger:!0,pageSizeOptions:["5","10","20","50"]},size:"small"})]}),v.toAddEdge.length===0&&v.toAddChrome.length===0&&$.jsx("div",{style:{textAlign:"center",padding:"30px 0",color:"#999"},children:"Chrome and Edge bookmarks are fully synchronized. No pending changes."})]}):$.jsx(Ga,{})})]})}const{Content:Ole,Sider:Rle}=ml,{Title:r3,Text:a3}=mr,jle=()=>{const t=(window.location.hash||"#/launcher").slice(2);return t.startsWith("plugin:")?{page:"plugin",pluginId:t.slice(7)}:t.startsWith("static:")?{page:"static-page",staticId:t.slice(7)}:t.startsWith("logs/")?{page:"logs",pluginId:null}:["todo-list/archived","todo-archived"].includes(t)?{page:"todo-archived",pluginId:null}:["launcher","clipboard","ports","image-compress","pr-review","jira-filters","todo-list","postman","bookmark-sync","settings","errors"].includes(t)?{page:t,pluginId:null}:{page:"launcher",pluginId:null}};function Ile(){const{message:e}=Ya.useApp(),t=jle(),[n,r]=i.useState([]),[a,l]=i.useState(new Set),[c,u]=i.useState({}),[d,f]=i.useState(!0),[v,g]=i.useState([]),[p,b]=i.useState([]),[C,S]=i.useState(!0),[h,x]=i.useState(t.page),[w,E]=i.useState(t.pluginId?{id:t.pluginId,name:"Plugin"}:null),[j,R]=i.useState(null),[I,O]=i.useState(""),M=async()=>{try{const[k,D]=await Promise.all([br.list(),br.running()]);r(k),Array.isArray(D)?(l(new Set(D)),u({})):(l(new Set((D==null?void 0:D.running)||[])),u((D==null?void 0:D.errorCounts)||{}))}catch(k){e.error(k.message)}finally{f(!1)}},N=async k=>{if(k){O("Loading plugin…");try{O(k.view?await(await fetch(k.view)).text():"This plugin does not provide a view yet.")}catch{O("Failed to load the plugin view.")}}};i.useEffect(()=>{Promise.all([M(),iie.list().then(g),xc.list().then(b),qr.status().then(k=>{k&&typeof k.isMac=="boolean"&&S(k.isMac)})]).catch(k=>e.error(k.message))},[]),i.useEffect(()=>{const k=()=>{const H=(window.location.hash||"#/launcher").slice(2);if(H.startsWith("plugin:")){const z=H.slice(7),_=v.find(F=>F.id===z);_?(R(null),x("plugin"),E(_),N(_)):v.length>0&&(window.location.hash="#/launcher")}else if(H.startsWith("static:")){const z=H.slice(7),_=p.find(F=>String(F.id)===String(z));_?(E(null),x("static-page"),R(_)):p.length>0&&(window.location.hash="#/launcher")}else H.startsWith("logs/")?(E(null),R(null),x("logs")):["todo-list/archived","todo-archived"].includes(H)?(E(null),R(null),x("todo-archived")):["launcher","clipboard","ports","image-compress","pr-review","jira-filters","todo-list","postman","bookmark-sync","settings","errors"].includes(H)?(E(null),R(null),x(H)):window.location.hash="#/launcher"};return window.addEventListener("hashchange",k),v.length>0||p.length>0||window.location.hash?k():window.location.hash="#/launcher",()=>window.removeEventListener("hashchange",k)},[v,p]),i.useEffect(()=>{const k=H=>{var z;(H.error||H.message)&&Od.log({source:"Frontend",message:H.message||"Uncaught JavaScript Error",details:((z=H.error)==null?void 0:z.stack)||`${H.filename}:${H.lineno}:${H.colno}`}).catch(()=>{})},D=H=>{var z,_;Od.log({source:"Frontend (Promise)",message:((z=H.reason)==null?void 0:z.message)||String(H.reason||"Unhandled Promise Rejection"),details:((_=H.reason)==null?void 0:_.stack)||String(H.reason)}).catch(()=>{})};return window.addEventListener("error",k),window.addEventListener("unhandledrejection",D),()=>{window.removeEventListener("error",k),window.removeEventListener("unhandledrejection",D)}},[]),i.useEffect(()=>{const k=D=>{(D.metaKey||D.ctrlKey)&&D.shiftKey&&(D.key==="r"||D.key==="R"||D.code==="KeyR")&&(D.preventDefault(),D.stopPropagation())};return window.addEventListener("keydown",k,!0),()=>window.removeEventListener("keydown",k,!0)},[]),i.useEffect(()=>{if(h!=="launcher"&&h!=="ports")return;const k=setInterval(M,2e3);return()=>clearInterval(k)},[h]);const P=i.useMemo(()=>[{key:"launcher",icon:$.jsx(gl,{}),label:"Launcher"},{key:"ports",icon:$.jsx(Zoe,{}),label:"Port Diagnostic"},{key:"image-compress",icon:$.jsx(Zy,{}),label:"Image compression"},...C?[{key:"clipboard",icon:$.jsx(Yo,{}),label:"Clipboard history"}]:[],{key:"pr-review",icon:$.jsx(zM,{}),label:"PR Review"},{key:"jira-filters",icon:$.jsx(Gae,{}),label:"Jira Filters"},{key:"todo-list",icon:$.jsx(DC,{}),label:"To-Do List"},{key:"postman",icon:$.jsx(AC,{}),label:"Postman"},{key:"bookmark-sync",icon:$.jsx(e1,{}),label:"Bookmark Sync"},...p.map(k=>({key:`static:${k.id}`,icon:$.jsx(bf,{}),label:k.name}))],[p,C]),B=({key:k})=>{window.location.hash=`#/${k}`},L=w?`plugin:${w.id}`:j?`static:${j.id}`:h==="todo-archived"?"todo-list":h;return h==="logs"?$.jsx(cle,{}):$.jsxs(ml,{className:"workbench",role:"application",children:[$.jsxs(Rle,{className:"sidebar",width:240,children:[$.jsxs("div",{className:"brand",children:[$.jsx("span",{children:"✦"})," DevBuddy ",$.jsxs("span",{style:{fontSize:"11px",fontWeight:"400",color:"#727b94",marginLeft:"6px",letterSpacing:"normal",verticalAlign:"middle"},children:["v",oie.version]})]}),$.jsx(fl,{theme:"dark",mode:"inline",selectedKeys:[L],items:P,onClick:B}),$.jsx("div",{className:"sidebar-bottom",children:$.jsxs("div",{className:"sidebar-bottom-inner",children:[$.jsx(fl,{theme:"dark",mode:"inline",selectedKeys:w||j?[]:[h],items:[{key:"settings",icon:$.jsx(_M,{}),label:"Settings"}],onClick:B}),$.jsx(Vn,{title:"Error Logs (Recent 100 Errors)",placement:"right",children:$.jsx(nt,{type:h==="errors"?"primary":"text",icon:$.jsx(MM,{}),size:"small",className:`sidebar-error-btn ${h==="errors"?"is-active":""}`,onClick:()=>{window.location.hash="#/errors"}})})]})})]}),$.jsx(ml,{children:$.jsx(Ole,{className:`page ${["static-page","postman"].includes(h)?"is-static-page":""}`,children:w?$.jsxs($.Fragment,{children:[$.jsx(a3,{type:"secondary",children:"PLUGIN"}),$.jsx(r3,{level:2,children:w.name}),$.jsx(Mn,{children:$.jsx("div",{dangerouslySetInnerHTML:{__html:I}})})]}):h==="static-page"&&j?$.jsx("div",{className:"static-page-container",children:$.jsx("iframe",{src:j.url,title:j.name,className:"static-page-iframe"})}):h==="image-compress"?$.jsx(Aie,{}):h==="clipboard"?C?$.jsx(pie,{}):$.jsxs(Mn,{style:{textAlign:"center",margin:"60px auto",maxWidth:500,borderRadius:10},children:[$.jsx(r3,{level:4,children:"Clipboard History Unavailable on Windows"}),$.jsx(a3,{type:"secondary",children:"Clipboard History monitoring relies on macOS system APIs and is currently only supported on macOS."})]}):h==="ports"?$.jsx(Tie,{refreshLaunchers:M}):h==="pr-review"?$.jsx(Lie,{}):h==="jira-filters"?$.jsx(Gie,{}):h==="todo-list"?$.jsx(tle,{}):h==="todo-archived"?$.jsx(ile,{}):h==="postman"?$.jsx(wle,{}):h==="bookmark-sync"?$.jsx(Ele,{}):h==="errors"?$.jsx(fle,{}):h==="settings"?$.jsx(Pie,{onStaticPagesChange:()=>xc.list().then(b)}):$.jsx(Iie,{launchers:n,running:a,errorCounts:c,refresh:M,loading:d})})})]})}function Nle(){return $.jsx(Ya,{children:$.jsx(Ile,{})})}tP.createRoot(document.getElementById("app")).render($.jsx(ve.StrictMode,{children:$.jsx(Nle,{})}));
|