buddy-workbench 0.1.21 → 0.1.23
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.
- package/package.json +1 -1
- package/server/config.js +1 -0
- package/server/repositories/settings.js +2 -1
- package/server/routes/pr-review.js +269 -112
- package/server/routes/settings.js +20 -1
- package/server/services/browser.js +12 -0
- package/ui/dist/assets/index-BEv9wWjc.js +530 -0
- package/ui/dist/index.html +1 -1
- package/ui/dist/assets/index-kLUg9ehS.js +0 -530
|
@@ -1,530 +0,0 @@
|
|
|
1
|
-
function $3(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 zo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l0={exports:{}},td={};/**
|
|
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 E$;function u5(){if(E$)return td;E$=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 td.Fragment=t,td.jsx=n,td.jsxs=n,td}var O$;function d5(){return O$||(O$=1,l0.exports=u5()),l0.exports}var h=d5(),s0={exports:{}},hn={};/**
|
|
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 j$;function f5(){if(j$)return hn;j$=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 y(V){return V===null||typeof V!="object"?null:(V=p&&V[p]||V["@@iterator"],typeof V=="function"?V:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,b={};function $(V,G,q){this.props=V,this.context=G,this.refs=b,this.updater=q||x}$.prototype.isReactComponent={},$.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")},$.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function w(){}w.prototype=$.prototype;function E(V,G,q){this.props=V,this.context=G,this.refs=b,this.updater=q||x}var R=E.prototype=new w;R.constructor=E,S(R,$.prototype),R.isPureReactComponent=!0;var j=Array.isArray;function I(){}var O={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function N(V,G,q){var K=q.ref;return{$$typeof:e,type:V,key:G,ref:K!==void 0?K:null,props:q}}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(q){return G[q]})}var k=/\/+/g;function _(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,q,K,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,q,K,Z)}}if(te)return Z=Z(V),te=K===""?"."+_(V,0):K,j(Z)?(q="",te!=null&&(q=te.replace(k,"$&/")+"/"),z(Z,G,q,"",function(ae){return ae})):Z!=null&&(B(Z)&&(Z=P(Z,q+(Z.key==null||V&&V.key===Z.key?"":(""+Z.key).replace(k,"$&/")+"/")+te)),G.push(Z)),1;te=0;var X=K===""?".":K+":";if(j(V))for(var oe=0;oe<V.length;oe++)K=V[oe],Q=X+_(K,oe),te+=z(K,G,q,Q,Z);else if(oe=y(V),typeof oe=="function")for(V=oe.call(V),oe=0;!(K=V.next()).done;)K=K.value,Q=X+_(K,oe++),te+=z(K,G,q,Q,Z);else if(Q==="object"){if(typeof V.then=="function")return z(H(V),G,q,K,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 D(V,G,q){if(V==null)return V;var K=[],Z=0;return z(V,K,"","",function(Q){return G.call(q,Q,Z++)}),K}function F(V){if(V._status===-1){var G=V._result;G=G(),G.then(function(q){(V._status===0||V._status===-1)&&(V._status=1,V._result=q)},function(q){(V._status===0||V._status===-1)&&(V._status=2,V._result=q)}),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)},U={map:D,forEach:function(V,G,q){D(V,function(){G.apply(this,arguments)},q)},count:function(V){var G=0;return D(V,function(){G++}),G},toArray:function(V){return D(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 hn.Activity=g,hn.Children=U,hn.Component=$,hn.Fragment=n,hn.Profiler=a,hn.PureComponent=E,hn.StrictMode=r,hn.Suspense=d,hn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,hn.__COMPILER_RUNTIME={__proto__:null,c:function(V){return O.H.useMemoCache(V)}},hn.cache=function(V){return function(){return V.apply(null,arguments)}},hn.cacheSignal=function(){return null},hn.cloneElement=function(V,G,q){if(V==null)throw Error("The argument must be a React element, but you passed "+V+".");var K=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||(K[Q]=G[Q]);var Q=arguments.length-2;if(Q===1)K.children=q;else if(1<Q){for(var te=Array(Q),X=0;X<Q;X++)te[X]=arguments[X+2];K.children=te}return N(V.type,Z,K)},hn.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},hn.createElement=function(V,G,q){var K,Z={},Q=null;if(G!=null)for(K in G.key!==void 0&&(Q=""+G.key),G)M.call(G,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(Z[K]=G[K]);var te=arguments.length-2;if(te===1)Z.children=q;else if(1<te){for(var X=Array(te),oe=0;oe<te;oe++)X[oe]=arguments[oe+2];Z.children=X}if(V&&V.defaultProps)for(K in te=V.defaultProps,te)Z[K]===void 0&&(Z[K]=te[K]);return N(V,Q,Z)},hn.createRef=function(){return{current:null}},hn.forwardRef=function(V){return{$$typeof:u,render:V}},hn.isValidElement=B,hn.lazy=function(V){return{$$typeof:v,_payload:{_status:-1,_result:V},_init:F}},hn.memo=function(V,G){return{$$typeof:f,type:V,compare:G===void 0?null:G}},hn.startTransition=function(V){var G=O.T,q={};O.T=q;try{var K=V(),Z=O.S;Z!==null&&Z(q,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(I,W)}catch(Q){W(Q)}finally{G!==null&&q.types!==null&&(G.types=q.types),O.T=G}},hn.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},hn.use=function(V){return O.H.use(V)},hn.useActionState=function(V,G,q){return O.H.useActionState(V,G,q)},hn.useCallback=function(V,G){return O.H.useCallback(V,G)},hn.useContext=function(V){return O.H.useContext(V)},hn.useDebugValue=function(){},hn.useDeferredValue=function(V,G){return O.H.useDeferredValue(V,G)},hn.useEffect=function(V,G){return O.H.useEffect(V,G)},hn.useEffectEvent=function(V){return O.H.useEffectEvent(V)},hn.useId=function(){return O.H.useId()},hn.useImperativeHandle=function(V,G,q){return O.H.useImperativeHandle(V,G,q)},hn.useInsertionEffect=function(V,G){return O.H.useInsertionEffect(V,G)},hn.useLayoutEffect=function(V,G){return O.H.useLayoutEffect(V,G)},hn.useMemo=function(V,G){return O.H.useMemo(V,G)},hn.useOptimistic=function(V,G){return O.H.useOptimistic(V,G)},hn.useReducer=function(V,G,q){return O.H.useReducer(V,G,q)},hn.useRef=function(V){return O.H.useRef(V)},hn.useState=function(V){return O.H.useState(V)},hn.useSyncExternalStore=function(V,G,q){return O.H.useSyncExternalStore(V,G,q)},hn.useTransition=function(){return O.H.useTransition()},hn.version="19.2.7",hn}var R$;function f1(){return R$||(R$=1,s0.exports=f5()),s0.exports}var i=f1();const ge=zo(i),sg=$3({__proto__:null,default:ge},[i]);var c0={exports:{}},nd={},u0={exports:{}},d0={};/**
|
|
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 I$;function m5(){return I$||(I$=1,(function(e){function t(z,D){var F=z.length;z.push(D);e:for(;0<F;){var W=F-1>>>1,U=z[W];if(0<a(U,D))z[W]=D,z[F]=U,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 D=z[0],F=z.pop();if(F!==D){z[0]=F;e:for(var W=0,U=z.length,V=U>>>1;W<V;){var G=2*(W+1)-1,q=z[G],K=G+1,Z=z[K];if(0>a(q,F))K<U&&0>a(Z,q)?(z[W]=Z,z[K]=F,W=K):(z[W]=q,z[G]=F,W=G);else if(K<U&&0>a(Z,F))z[W]=Z,z[K]=F,W=K;else break e}}return D}function a(z,D){var F=z.sortIndex-D.sortIndex;return F!==0?F:z.id-D.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,y=!1,x=!1,S=!1,b=!1,$=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function R(z){for(var D=n(f);D!==null;){if(D.callback===null)r(f);else if(D.startTime<=z)r(f),D.sortIndex=D.expirationTime,t(d,D);else break;D=n(f)}}function j(z){if(S=!1,R(z),!x)if(n(d)!==null)x=!0,I||(I=!0,L());else{var D=n(f);D!==null&&H(j,D.startTime-z)}}var I=!1,O=-1,M=5,N=-1;function P(){return b?!0:!(e.unstable_now()-N<M)}function B(){if(b=!1,I){var z=e.unstable_now();N=z;var D=!0;try{e:{x=!1,S&&(S=!1,w(O),O=-1),y=!0;var F=p;try{t:{for(R(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 U=W(g.expirationTime<=z);if(z=e.unstable_now(),typeof U=="function"){g.callback=U,R(z),D=!0;break t}g===n(d)&&r(d),R(z)}else r(d);g=n(d)}if(g!==null)D=!0;else{var V=n(f);V!==null&&H(j,V.startTime-z),D=!1}}break e}finally{g=null,p=F,y=!1}D=void 0}}finally{D?L():I=!1}}}var L;if(typeof E=="function")L=function(){E(B)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,_=k.port2;k.port1.onmessage=B,L=function(){_.postMessage(null)}}else L=function(){$(B,0)};function H(z,D){O=$(function(){z(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(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 D=3;break;default:D=p}var F=p;p=D;try{return z()}finally{p=F}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(z,D){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var F=p;p=z;try{return D()}finally{p=F}},e.unstable_scheduleCallback=function(z,D,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 U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=F+U,z={id:v++,callback:D,priorityLevel:z,startTime:F,expirationTime:U,sortIndex:-1},F>W?(z.sortIndex=F,t(f,z),n(d)===null&&z===n(f)&&(S?(w(O),O=-1):S=!0,H(j,F-W))):(z.sortIndex=U,t(d,z),x||y||(x=!0,I||(I=!0,L()))),z},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(z){var D=p;return function(){var F=p;p=D;try{return z.apply(this,arguments)}finally{p=F}}}})(d0)),d0}var N$;function v5(){return N$||(N$=1,u0.exports=m5()),u0.exports}var f0={exports:{}},ba={};/**
|
|
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 M$;function g5(){if(M$)return ba;M$=1;var e=f1();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 ba.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ba.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)},ba.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()}},ba.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))},ba.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},ba.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,y=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:y}):v==="script"&&r.d.X(d,{crossOrigin:g,integrity:p,fetchPriority:y,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},ba.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)},ba.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})}},ba.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)},ba.requestFormReset=function(d){r.d.r(d)},ba.unstable_batchedUpdates=function(d,f){return d(f)},ba.useFormState=function(d,f,v){return c.H.useFormState(d,f,v)},ba.useFormStatus=function(){return c.H.useHostTransitionStatus()},ba.version="19.2.7",ba}var T$;function w3(){if(T$)return f0.exports;T$=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(),f0.exports=g5(),f0.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 P$;function p5(){if(P$)return nd;P$=1;var e=v5(),t=f1(),n=w3();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,C=s;;){var T=m.return;if(T===null)break;var A=T.alternate;if(A===null){if(C=T.return,C!==null){m=C;continue}break}if(T.child===A.child){for(A=T.child;A;){if(A===m)return d(T),o;if(A===C)return d(T),s;A=A.sibling}throw Error(r(188))}if(m.return!==C.return)m=T,C=A;else{for(var J=!1,ve=T.child;ve;){if(ve===m){J=!0,m=T,C=A;break}if(ve===C){J=!0,C=T,m=A;break}ve=ve.sibling}if(!J){for(ve=A.child;ve;){if(ve===m){J=!0,m=A,C=T;break}if(ve===C){J=!0,C=A,m=T;break}ve=ve.sibling}if(!J)throw Error(r(189))}}if(m.alternate!==C)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"),y=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),E=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),j=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 _(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 $:return"Profiler";case b:return"StrictMode";case j:return"Suspense";case I:return"SuspenseList";case N:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case x:return"Portal";case E:return o.displayName||"Context";case w:return(o._context.displayName||"Context")+".Consumer";case R: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:_(o.type)||"Memo";case M:s=o._payload,o=o._init;try{return _(o(s))}catch{}}return null}var H=Array.isArray,z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},W=[],U=-1;function V(o){return{current:o}}function G(o){0>U||(o.current=W[U],W[U]=null,U--)}function q(o,s){U++,W[U]=o.current,o.current=s}var K=V(null),Z=V(null),Q=V(null),te=V(null);function X(o,s){switch(q(Q,s),q(Z,o),q(K,null),s.nodeType){case 9:case 11:o=(o=s.documentElement)&&(o=o.namespaceURI)?G2(o):0;break;default:if(o=s.tagName,s=s.namespaceURI)s=G2(s),o=X2(s,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}G(K),q(K,o)}function oe(){G(K),G(Z),G(Q)}function ae(o){o.memoizedState!==null&&q(te,o);var s=K.current,m=X2(s,o.type);s!==m&&(q(Z,o),q(K,m))}function re(o){Z.current===o&&(G(K),G(Z)),te.current===o&&(G(te),Qu._currentValue=F)}var Y,ee;function ie(o){if(Y===void 0)try{throw Error()}catch(m){var s=m.stack.trim().match(/\n( *(at )?)/);Y=s&&s[1]||"",ee=-1<m.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Y+o+ee}var ue=!1;function se(o,s){if(!o||ue)return"";ue=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var C={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(Ge){var He=Ge}Reflect.construct(o,[],it)}else{try{it.call()}catch(Ge){He=Ge}o.call(it.prototype)}}else{try{throw Error()}catch(Ge){He=Ge}(it=o())&&typeof it.catch=="function"&&it.catch(function(){})}}catch(Ge){if(Ge&&He&&typeof Ge.stack=="string")return[Ge.stack,He.stack]}return[null,null]}};C.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var T=Object.getOwnPropertyDescriptor(C.DetermineComponentFrameRoot,"name");T&&T.configurable&&Object.defineProperty(C.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var A=C.DetermineComponentFrameRoot(),J=A[0],ve=A[1];if(J&&ve){var Ee=J.split(`
|
|
44
|
-
`),ke=ve.split(`
|
|
45
|
-
`);for(T=C=0;C<Ee.length&&!Ee[C].includes("DetermineComponentFrameRoot");)C++;for(;T<ke.length&&!ke[T].includes("DetermineComponentFrameRoot");)T++;if(C===Ee.length||T===ke.length)for(C=Ee.length-1,T=ke.length-1;1<=C&&0<=T&&Ee[C]!==ke[T];)T--;for(;1<=C&&0<=T;C--,T--)if(Ee[C]!==ke[T]){if(C!==1||T!==1)do if(C--,T--,0>T||Ee[C]!==ke[T]){var Je=`
|
|
46
|
-
`+Ee[C].replace(" at new "," at ");return o.displayName&&Je.includes("<anonymous>")&&(Je=Je.replace("<anonymous>",o.displayName)),Je}while(1<=C&&0<=T);break}}}finally{ue=!1,Error.prepareStackTrace=m}return(m=o?o.displayName||o.name:"")?ie(m):""}function pe(o,s){switch(o.tag){case 26:case 27:case 5:return ie(o.type);case 16:return ie("Lazy");case 13:return o.child!==s&&s!==null?ie("Suspense Fallback"):ie("Suspense");case 19:return ie("SuspenseList");case 0:case 15:return se(o.type,!1);case 11:return se(o.type.render,!1);case 1:return se(o.type,!0);case 31:return ie("Activity");default:return""}}function fe(o){try{var s="",m=null;do s+=pe(o,m),m=o,o=o.return;while(o);return s}catch(C){return`
|
|
47
|
-
Error generating stack: `+C.message+`
|
|
48
|
-
`+C.stack}}var he=Object.prototype.hasOwnProperty,Se=e.unstable_scheduleCallback,be=e.unstable_cancelCallback,$e=e.unstable_shouldYield,xe=e.unstable_requestPaint,ye=e.unstable_now,Ne=e.unstable_getCurrentPriorityLevel,_e=e.unstable_ImmediatePriority,Qe=e.unstable_UserBlockingPriority,Ke=e.unstable_NormalPriority,Fe=e.unstable_LowPriority,Xe=e.unstable_IdlePriority,Pe=e.log,je=e.unstable_setDisableYieldValue,Ae=null,Re=null;function ze(o){if(typeof Pe=="function"&&je(o),Re&&typeof Re.setStrictMode=="function")try{Re.setStrictMode(Ae,o)}catch{}}var we=Math.clz32?Math.clz32:Le,Oe=Math.log,Te=Math.LN2;function Le(o){return o>>>=0,o===0?32:31-(Oe(o)/Te|0)|0}var tt=256,Ct=262144,We=4194304;function nt(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 C=o.pendingLanes;if(C===0)return 0;var T=0,A=o.suspendedLanes,J=o.pingedLanes;o=o.warmLanes;var ve=C&134217727;return ve!==0?(C=ve&~A,C!==0?T=nt(C):(J&=ve,J!==0?T=nt(J):m||(m=ve&~o,m!==0&&(T=nt(m))))):(ve=C&~A,ve!==0?T=nt(ve):J!==0?T=nt(J):m||(m=C&~o,m!==0&&(T=nt(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 bt(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 zt(){var o=We;return We<<=1,(We&62914560)===0&&(We=4194304),o}function jt(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 wt(o,s,m,C,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 ve=o.entanglements,Ee=o.expirationTimes,ke=o.hiddenUpdates;for(m=J&~m;0<m;){var Je=31-we(m),it=1<<Je;ve[Je]=0,Ee[Je]=-1;var He=ke[Je];if(He!==null)for(ke[Je]=null,Je=0;Je<He.length;Je++){var Ge=He[Je];Ge!==null&&(Ge.lane&=-536870913)}m&=~it}C!==0&&xt(o,C,0),A!==0&&T===0&&o.tag!==0&&(o.suspendedLanes|=A&~(J&~s))}function xt(o,s,m){o.pendingLanes|=s,o.suspendedLanes&=~s;var C=31-we(s);o.entangledLanes|=s,o.entanglements[C]=o.entanglements[C]|1073741824|m&261930}function et(o,s){var m=o.entangledLanes|=s;for(o=o.entanglements;m;){var C=31-we(m),T=1<<C;T&s|o[C]&s&&(o[C]|=s),m&=~T}}function Ve(o,s){var m=s&-s;return m=(m&42)!==0?1:qe(m),(m&(o.suspendedLanes|s))!==0?0:m}function qe(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 Tt(){var o=D.p;return o!==0?o:(o=window.event,o===void 0?32:b$(o.type))}function Nt(o,s){var m=D.p;try{return D.p=o,s()}finally{D.p=m}}var Wt=Math.random().toString(36).slice(2),ft="__reactFiber$"+Wt,lt="__reactProps$"+Wt,At="__reactContainer$"+Wt,Gt="__reactEvents$"+Wt,on="__reactListeners$"+Wt,Jt="__reactHandles$"+Wt,pn="__reactResources$"+Wt,Xt="__reactMarker$"+Wt;function fn(o){delete o[ft],delete o[lt],delete o[Gt],delete o[on],delete o[Jt]}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=n$(o);o!==null;){if(m=o[ft])return m;o=n$(o)}return s}o=m,m=o.parentNode}return null}function St(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 yt(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o.stateNode;throw Error(r(33))}function Ye(o){var s=o[pn];return s||(s=o[pn]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Ze(o){o[Xt]=!0}var ut=new Set,Dt={};function Ut(o,s){gt(o,s),gt(o+"Capture",s)}function gt(o,s){for(Dt[o]=s,o=0;o<s.length;o++)ut.add(s[o])}var Mt=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]*$"),Vt={},wn={};function An(o){return he.call(wn,o)?!0:he.call(Vt,o)?!1:Mt.test(o)?wn[o]=!0:(Vt[o]=!0,!1)}function Pn(o,s,m){if(An(s))if(m===null)o.removeAttribute(s);else{switch(typeof m){case"undefined":case"function":case"symbol":o.removeAttribute(s);return;case"boolean":var C=s.toLowerCase().slice(0,5);if(C!=="data-"&&C!=="aria-"){o.removeAttribute(s);return}}o.setAttribute(s,""+m)}}function Un(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,C){if(C===null)o.removeAttribute(m);else{switch(typeof C){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(m);return}o.setAttributeNS(s,m,""+C)}}function kn(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function wr(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Pr(o,s,m){var C=Object.getOwnPropertyDescriptor(o.constructor.prototype,s);if(!o.hasOwnProperty(s)&&typeof C<"u"&&typeof C.get=="function"&&typeof C.set=="function"){var T=C.get,A=C.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:C.enumerable}),{getValue:function(){return m},setValue:function(J){m=""+J},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function Cr(o){if(!o._valueTracker){var s=wr(o)?"checked":"value";o._valueTracker=Pr(o,s,""+o[s])}}function Sn(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var m=s.getValue(),C="";return o&&(C=wr(o)?o.checked?"true":"false":o.value),o=C,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 ln(o){return o.replace(kt,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Pt(o,s,m,C,T,A,J,ve){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=""+kn(s)):o.value!==""+kn(s)&&(o.value=""+kn(s)):J!=="submit"&&J!=="reset"||o.removeAttribute("value"),s!=null?gn(o,J,kn(s)):m!=null?gn(o,J,kn(m)):C!=null&&o.removeAttribute("value"),T==null&&A!=null&&(o.defaultChecked=!!A),T!=null&&(o.checked=T&&typeof T!="function"&&typeof T!="symbol"),ve!=null&&typeof ve!="function"&&typeof ve!="symbol"&&typeof ve!="boolean"?o.name=""+kn(ve):o.removeAttribute("name")}function _t(o,s,m,C,T,A,J,ve){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)){Cr(o);return}m=m!=null?""+kn(m):"",s=s!=null?""+kn(s):m,ve||s===o.value||(o.value=s),o.defaultValue=s}C=C??T,C=typeof C!="function"&&typeof C!="symbol"&&!!C,o.checked=ve?o.checked:!!C,o.defaultChecked=!!C,J!=null&&typeof J!="function"&&typeof J!="symbol"&&typeof J!="boolean"&&(o.name=J),Cr(o)}function gn(o,s,m){s==="number"&&Bt(o.ownerDocument)===o||o.defaultValue===""+m||(o.defaultValue=""+m)}function In(o,s,m,C){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&&C&&(o[m].defaultSelected=!0)}else{for(m=""+kn(m),s=null,T=0;T<o.length;T++){if(o[T].value===m){o[T].selected=!0,C&&(o[T].defaultSelected=!0);return}s!==null||o[T].disabled||(s=o[T])}s!==null&&(s.selected=!0)}}function Jn(o,s,m){if(s!=null&&(s=""+kn(s),s!==o.value&&(o.value=s),m==null)){o.defaultValue!==s&&(o.defaultValue=s);return}o.defaultValue=m!=null?""+kn(m):""}function Er(o,s,m,C){if(s==null){if(C!=null){if(m!=null)throw Error(r(92));if(H(C)){if(1<C.length)throw Error(r(93));C=C[0]}m=C}m==null&&(m=""),s=m}m=kn(s),o.defaultValue=m,C=o.textContent,C===m&&C!==""&&C!==null&&(o.value=C),Cr(o)}function er(o,s){if(s){var m=o.firstChild;if(m&&m===o.lastChild&&m.nodeType===3){m.nodeValue=s;return}}o.textContent=s}var jr=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 dn(o,s,m){var C=s.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?C?o.setProperty(s,""):s==="float"?o.cssFloat="":o[s]="":C?o.setProperty(s,m):typeof m!="number"||m===0||jr.has(s)?s==="float"?o.cssFloat=m:o[s]=(""+m).trim():o[s]=m+"px"}function pt(o,s,m){if(s!=null&&typeof s!="object")throw Error(r(62));if(o=o.style,m!=null){for(var C in m)!m.hasOwnProperty(C)||s!=null&&s.hasOwnProperty(C)||(C.indexOf("--")===0?o.setProperty(C,""):C==="float"?o.cssFloat="":o[C]="");for(var T in s)C=s[T],s.hasOwnProperty(T)&&m[T]!==C&&dn(o,T,C)}else for(var A in s)s.hasOwnProperty(A)&&dn(o,A,s[A])}function It(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 vn=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 tr(o){return zn.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function qn(){}var qr=null;function na(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var zr=null,da=null;function Tl(o){var s=St(o);if(s&&(o=s.stateNode)){var m=o[lt]||null;e:switch(o=s.stateNode,s.type){case"input":if(Pt(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="'+ln(""+s)+'"][type="radio"]'),s=0;s<m.length;s++){var C=m[s];if(C!==o&&C.form===o.form){var T=C[lt]||null;if(!T)throw Error(r(90));Pt(C,T.value,T.defaultValue,T.defaultValue,T.checked,T.defaultChecked,T.type,T.name)}}for(s=0;s<m.length;s++)C=m[s],C.form===o.form&&Sn(C)}break e;case"textarea":Jn(o,m.value,m.defaultValue);break e;case"select":s=m.value,s!=null&&In(o,!!m.multiple,s,!1)}}}var Ii=!1;function zs(o,s,m){if(Ii)return o(s,m);Ii=!0;try{var C=o(s);return C}finally{if(Ii=!1,(zr!==null||da!==null)&&(fm(),zr&&(s=zr,o=da,da=zr=null,Tl(s),o)))for(s=0;s<o.length;s++)Tl(o[s])}}function Ft(o,s){var m=o.stateNode;if(m===null)return null;var C=m[lt]||null;if(C===null)return null;m=C[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":(C=!C.disabled)||(o=o.type,C=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!C;break e;default:o=!1}if(o)return null;if(m&&typeof m!="function")throw Error(r(231,s,typeof m));return m}var en=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),or=!1;if(en)try{var ur={};Object.defineProperty(ur,"passive",{get:function(){or=!0}}),window.addEventListener("test",ur,ur),window.removeEventListener("test",ur,ur)}catch{or=!1}var Ln=null,Ni=null,Mi=null;function gu(){if(Mi)return Mi;var o,s=Ni,m=s.length,C,T="value"in Ln?Ln.value:Ln.textContent,A=T.length;for(o=0;o<m&&s[o]===T[o];o++);var J=m-o;for(C=1;C<=J&&s[m-C]===T[A-C];C++);return Mi=T.slice(o,1<C?1-C:void 0)}function ni(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 Rf(){return!0}function YC(){return!1}function Ia(o){function s(m,C,T,A,J){this._reactName=m,this._targetInst=T,this.type=C,this.nativeEvent=A,this.target=J,this.currentTarget=null;for(var ve in o)o.hasOwnProperty(ve)&&(m=o[ve],this[ve]=m?m(A):A[ve]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1)?Rf:YC,this.isPropagationStopped=YC,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=Rf)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=Rf)},persist:function(){},isPersistent:Rf}),s}var Pl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},If=Ia(Pl),pu=g({},Pl,{view:0,detail:0}),sM=Ia(pu),cp,up,hu,Nf=g({},pu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fp,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!==hu&&(hu&&o.type==="mousemove"?(cp=o.screenX-hu.screenX,up=o.screenY-hu.screenY):up=cp=0,hu=o),cp)},movementY:function(o){return"movementY"in o?o.movementY:up}}),QC=Ia(Nf),cM=g({},Nf,{dataTransfer:0}),uM=Ia(cM),dM=g({},pu,{relatedTarget:0}),dp=Ia(dM),fM=g({},Pl,{animationName:0,elapsedTime:0,pseudoElement:0}),mM=Ia(fM),vM=g({},Pl,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),gM=Ia(vM),pM=g({},Pl,{data:0}),ZC=Ia(pM),hM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bM={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"},yM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CM(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=yM[o])?!!s[o]:!1}function fp(){return CM}var xM=g({},pu,{key:function(o){if(o.key){var s=hM[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=ni(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?bM[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fp,charCode:function(o){return o.type==="keypress"?ni(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?ni(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),SM=Ia(xM),$M=g({},Nf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),JC=Ia($M),wM=g({},pu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fp}),EM=Ia(wM),OM=g({},Pl,{propertyName:0,elapsedTime:0,pseudoElement:0}),jM=Ia(OM),RM=g({},Nf,{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}),IM=Ia(RM),NM=g({},Pl,{newState:0,oldState:0}),MM=Ia(NM),TM=[9,13,27,32],mp=en&&"CompositionEvent"in window,bu=null;en&&"documentMode"in document&&(bu=document.documentMode);var PM=en&&"TextEvent"in window&&!bu,ex=en&&(!mp||bu&&8<bu&&11>=bu),tx=" ",nx=!1;function rx(o,s){switch(o){case"keyup":return TM.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ax(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Ds=!1;function zM(o,s){switch(o){case"compositionend":return ax(s);case"keypress":return s.which!==32?null:(nx=!0,tx);case"textInput":return o=s.data,o===tx&&nx?null:o;default:return null}}function DM(o,s){if(Ds)return o==="compositionend"||!mp&&rx(o,s)?(o=gu(),Mi=Ni=Ln=null,Ds=!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 ex&&s.locale!=="ko"?null:s.data;default:return null}}var _M={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 ox(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!_M[o.type]:s==="textarea"}function ix(o,s,m,C){zr?da?da.push(C):da=[C]:zr=C,s=ym(s,"onChange"),0<s.length&&(m=new If("onChange","change",null,m,C),o.push({event:m,listeners:s}))}var yu=null,Cu=null;function AM(o){F2(o,0)}function Mf(o){var s=yt(o);if(Sn(s))return o}function lx(o,s){if(o==="change")return s}var sx=!1;if(en){var vp;if(en){var gp="oninput"in document;if(!gp){var cx=document.createElement("div");cx.setAttribute("oninput","return;"),gp=typeof cx.oninput=="function"}vp=gp}else vp=!1;sx=vp&&(!document.documentMode||9<document.documentMode)}function ux(){yu&&(yu.detachEvent("onpropertychange",dx),Cu=yu=null)}function dx(o){if(o.propertyName==="value"&&Mf(Cu)){var s=[];ix(s,Cu,o,na(o)),zs(AM,s)}}function BM(o,s,m){o==="focusin"?(ux(),yu=s,Cu=m,yu.attachEvent("onpropertychange",dx)):o==="focusout"&&ux()}function kM(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Mf(Cu)}function LM(o,s){if(o==="click")return Mf(s)}function HM(o,s){if(o==="input"||o==="change")return Mf(s)}function FM(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var Ba=typeof Object.is=="function"?Object.is:FM;function xu(o,s){if(Ba(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var m=Object.keys(o),C=Object.keys(s);if(m.length!==C.length)return!1;for(C=0;C<m.length;C++){var T=m[C];if(!he.call(s,T)||!Ba(o[T],s[T]))return!1}return!0}function fx(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function mx(o,s){var m=fx(o);o=0;for(var C;m;){if(m.nodeType===3){if(C=o+m.textContent.length,o<=s&&C>=s)return{node:m,offset:s-o};o=C}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=fx(m)}}function vx(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?vx(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function gx(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 pp(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 VM=en&&"documentMode"in document&&11>=document.documentMode,_s=null,hp=null,Su=null,bp=!1;function px(o,s,m){var C=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;bp||_s==null||_s!==Bt(C)||(C=_s,"selectionStart"in C&&pp(C)?C={start:C.selectionStart,end:C.selectionEnd}:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection(),C={anchorNode:C.anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset}),Su&&xu(Su,C)||(Su=C,C=ym(hp,"onSelect"),0<C.length&&(s=new If("onSelect","select",null,s,m),o.push({event:s,listeners:C}),s.target=_s)))}function zl(o,s){var m={};return m[o.toLowerCase()]=s.toLowerCase(),m["Webkit"+o]="webkit"+s,m["Moz"+o]="moz"+s,m}var As={animationend:zl("Animation","AnimationEnd"),animationiteration:zl("Animation","AnimationIteration"),animationstart:zl("Animation","AnimationStart"),transitionrun:zl("Transition","TransitionRun"),transitionstart:zl("Transition","TransitionStart"),transitioncancel:zl("Transition","TransitionCancel"),transitionend:zl("Transition","TransitionEnd")},yp={},hx={};en&&(hx=document.createElement("div").style,"AnimationEvent"in window||(delete As.animationend.animation,delete As.animationiteration.animation,delete As.animationstart.animation),"TransitionEvent"in window||delete As.transitionend.transition);function Dl(o){if(yp[o])return yp[o];if(!As[o])return o;var s=As[o],m;for(m in s)if(s.hasOwnProperty(m)&&m in hx)return yp[o]=s[m];return o}var bx=Dl("animationend"),yx=Dl("animationiteration"),Cx=Dl("animationstart"),WM=Dl("transitionrun"),KM=Dl("transitionstart"),UM=Dl("transitioncancel"),xx=Dl("transitionend"),Sx=new Map,Cp="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(" ");Cp.push("scrollEnd");function bo(o,s){Sx.set(o,s),Ut(s,[o])}var Tf=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)},eo=[],Bs=0,xp=0;function Pf(){for(var o=Bs,s=xp=Bs=0;s<o;){var m=eo[s];eo[s++]=null;var C=eo[s];eo[s++]=null;var T=eo[s];eo[s++]=null;var A=eo[s];if(eo[s++]=null,C!==null&&T!==null){var J=C.pending;J===null?T.next=T:(T.next=J.next,J.next=T),C.pending=T}A!==0&&$x(m,T,A)}}function zf(o,s,m,C){eo[Bs++]=o,eo[Bs++]=s,eo[Bs++]=m,eo[Bs++]=C,xp|=C,o.lanes|=C,o=o.alternate,o!==null&&(o.lanes|=C)}function Sp(o,s,m,C){return zf(o,s,m,C),Df(o)}function _l(o,s){return zf(o,null,null,s),Df(o)}function $x(o,s,m){o.lanes|=m;var C=o.alternate;C!==null&&(C.lanes|=m);for(var T=!1,A=o.return;A!==null;)A.childLanes|=m,C=A.alternate,C!==null&&(C.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-we(m),o=A.hiddenUpdates,C=o[T],C===null?o[T]=[s]:C.push(s),s.lane=m|536870912),A):null}function Df(o){if(50<Wu)throw Wu=0,Mh=null,Error(r(185));for(var s=o.return;s!==null;)o=s,s=o.return;return o.tag===3?o.stateNode:null}var ks={};function qM(o,s,m,C){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=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ka(o,s,m,C){return new qM(o,s,m,C)}function $p(o){return o=o.prototype,!(!o||!o.isReactComponent)}function ri(o,s){var m=o.alternate;return m===null?(m=ka(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 wx(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 _f(o,s,m,C,T,A){var J=0;if(C=o,typeof o=="function")$p(o)&&(J=1);else if(typeof o=="string")J=ZT(o,m,K.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case N:return o=ka(31,m,s,T),o.elementType=N,o.lanes=A,o;case S:return Al(m.children,T,A,s);case b:J=8,T|=24;break;case $:return o=ka(12,m,s,T|2),o.elementType=$,o.lanes=A,o;case j:return o=ka(13,m,s,T),o.elementType=j,o.lanes=A,o;case I:return o=ka(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 R:J=11;break e;case O:J=14;break e;case M:J=16,C=null;break e}J=29,m=Error(r(130,o===null?"null":typeof o,"")),C=null}return s=ka(J,m,s,T),s.elementType=o,s.type=C,s.lanes=A,s}function Al(o,s,m,C){return o=ka(7,o,C,s),o.lanes=m,o}function wp(o,s,m){return o=ka(6,o,null,s),o.lanes=m,o}function Ex(o){var s=ka(18,null,null,0);return s.stateNode=o,s}function Ep(o,s,m){return s=ka(4,o.children!==null?o.children:[],o.key,s),s.lanes=m,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}var Ox=new WeakMap;function to(o,s){if(typeof o=="object"&&o!==null){var m=Ox.get(o);return m!==void 0?m:(s={value:o,source:s,stack:fe(s)},Ox.set(o,s),s)}return{value:o,source:s,stack:fe(s)}}var Ls=[],Hs=0,Af=null,$u=0,no=[],ro=0,Ti=null,Ho=1,Fo="";function ai(o,s){Ls[Hs++]=$u,Ls[Hs++]=Af,Af=o,$u=s}function jx(o,s,m){no[ro++]=Ho,no[ro++]=Fo,no[ro++]=Ti,Ti=o;var C=Ho;o=Fo;var T=32-we(C)-1;C&=~(1<<T),m+=1;var A=32-we(s)+T;if(30<A){var J=T-T%5;A=(C&(1<<J)-1).toString(32),C>>=J,T-=J,Ho=1<<32-we(s)+T|m<<T|C,Fo=A+o}else Ho=1<<A|m<<T|C,Fo=o}function Op(o){o.return!==null&&(ai(o,1),jx(o,1,0))}function jp(o){for(;o===Af;)Af=Ls[--Hs],Ls[Hs]=null,$u=Ls[--Hs],Ls[Hs]=null;for(;o===Ti;)Ti=no[--ro],no[ro]=null,Fo=no[--ro],no[ro]=null,Ho=no[--ro],no[ro]=null}function Rx(o,s){no[ro++]=Ho,no[ro++]=Fo,no[ro++]=Ti,Ho=s.id,Fo=s.overflow,Ti=o}var fa=null,br=null,Dn=!1,Pi=null,ao=!1,Rp=Error(r(519));function zi(o){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw wu(to(s,o)),Rp}function Ix(o){var s=o.stateNode,m=o.type,C=o.memoizedProps;switch(s[ft]=o,s[lt]=C,m){case"dialog":jn("cancel",s),jn("close",s);break;case"iframe":case"object":case"embed":jn("load",s);break;case"video":case"audio":for(m=0;m<Uu.length;m++)jn(Uu[m],s);break;case"source":jn("error",s);break;case"img":case"image":case"link":jn("error",s),jn("load",s);break;case"details":jn("toggle",s);break;case"input":jn("invalid",s),_t(s,C.value,C.defaultValue,C.checked,C.defaultChecked,C.type,C.name,!0);break;case"select":jn("invalid",s);break;case"textarea":jn("invalid",s),Er(s,C.value,C.defaultValue,C.children)}m=C.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||s.textContent===""+m||C.suppressHydrationWarning===!0||U2(s.textContent,m)?(C.popover!=null&&(jn("beforetoggle",s),jn("toggle",s)),C.onScroll!=null&&jn("scroll",s),C.onScrollEnd!=null&&jn("scrollend",s),C.onClick!=null&&(s.onclick=qn),s=!0):s=!1,s||zi(o,!0)}function Nx(o){for(fa=o.return;fa;)switch(fa.tag){case 5:case 31:case 13:ao=!1;return;case 27:case 3:ao=!0;return;default:fa=fa.return}}function Fs(o){if(o!==fa)return!1;if(!Dn)return Nx(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")||Uh(o.type,o.memoizedProps)),m=!m),m&&br&&zi(o),Nx(o),s===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));br=t$(o)}else if(s===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));br=t$(o)}else s===27?(s=br,Gi(o.type)?(o=Qh,Qh=null,br=o):br=s):br=fa?io(o.stateNode.nextSibling):null;return!0}function Bl(){br=fa=null,Dn=!1}function Ip(){var o=Pi;return o!==null&&(Pa===null?Pa=o:Pa.push.apply(Pa,o),Pi=null),o}function wu(o){Pi===null?Pi=[o]:Pi.push(o)}var Np=V(null),kl=null,oi=null;function Di(o,s,m){q(Np,s._currentValue),s._currentValue=m}function ii(o){o._currentValue=Np.current,G(Np)}function Mp(o,s,m){for(;o!==null;){var C=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,C!==null&&(C.childLanes|=s)):C!==null&&(C.childLanes&s)!==s&&(C.childLanes|=s),o===m)break;o=o.return}}function Tp(o,s,m,C){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 ve=A;A=T;for(var Ee=0;Ee<s.length;Ee++)if(ve.context===s[Ee]){A.lanes|=m,ve=A.alternate,ve!==null&&(ve.lanes|=m),Mp(A.return,m,o),C||(J=null);break e}A=ve.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),Mp(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 Vs(o,s,m,C){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 ve=T.type;Ba(T.pendingProps.value,J.value)||(o!==null?o.push(ve):o=[ve])}}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(Qu):o=[Qu])}T=T.return}o!==null&&Tp(s,o,m,C),s.flags|=262144}function Bf(o){for(o=o.firstContext;o!==null;){if(!Ba(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Ll(o){kl=o,oi=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function ma(o){return Mx(kl,o)}function kf(o,s){return kl===null&&Ll(o),Mx(o,s)}function Mx(o,s){var m=s._currentValue;if(s={context:s,memoizedValue:m,next:null},oi===null){if(o===null)throw Error(r(308));oi=s,o.dependencies={lanes:0,firstContext:s},o.flags|=524288}else oi=oi.next=s;return m}var GM=typeof AbortController<"u"?AbortController:function(){var o=[],s=this.signal={aborted:!1,addEventListener:function(m,C){o.push(C)}};this.abort=function(){s.aborted=!0,o.forEach(function(m){return m()})}},XM=e.unstable_scheduleCallback,YM=e.unstable_NormalPriority,Br={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pp(){return{controller:new GM,data:new Map,refCount:0}}function Eu(o){o.refCount--,o.refCount===0&&XM(YM,function(){o.controller.abort()})}var Ou=null,zp=0,Ws=0,Ks=null;function QM(o,s){if(Ou===null){var m=Ou=[];zp=0,Ws=Ah(),Ks={status:"pending",value:void 0,then:function(C){m.push(C)}}}return zp++,s.then(Tx,Tx),s}function Tx(){if(--zp===0&&Ou!==null){Ks!==null&&(Ks.status="fulfilled");var o=Ou;Ou=null,Ws=0,Ks=null;for(var s=0;s<o.length;s++)(0,o[s])()}}function ZM(o,s){var m=[],C={status:"pending",value:null,reason:null,then:function(T){m.push(T)}};return o.then(function(){C.status="fulfilled",C.value=s;for(var T=0;T<m.length;T++)(0,m[T])(s)},function(T){for(C.status="rejected",C.reason=T,T=0;T<m.length;T++)(0,m[T])(void 0)}),C}var Px=z.S;z.S=function(o,s){p2=ye(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&QM(o,s),Px!==null&&Px(o,s)};var Hl=V(null);function Dp(){var o=Hl.current;return o!==null?o:dr.pooledCache}function Lf(o,s){s===null?q(Hl,Hl.current):q(Hl,s.pool)}function zx(){var o=Dp();return o===null?null:{parent:Br._currentValue,pool:o}}var Us=Error(r(460)),_p=Error(r(474)),Hf=Error(r(542)),Ff={then:function(){}};function Dx(o){return o=o.status,o==="fulfilled"||o==="rejected"}function _x(o,s,m){switch(m=o[m],m===void 0?o.push(s):m!==s&&(s.then(qn,qn),s=m),s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,Bx(o),o;default:if(typeof s.status=="string")s.then(qn,qn);else{if(o=dr,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=s,o.status="pending",o.then(function(C){if(s.status==="pending"){var T=s;T.status="fulfilled",T.value=C}},function(C){if(s.status==="pending"){var T=s;T.status="rejected",T.reason=C}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,Bx(o),o}throw Vl=s,Us}}function Fl(o){try{var s=o._init;return s(o._payload)}catch(m){throw m!==null&&typeof m=="object"&&typeof m.then=="function"?(Vl=m,Us):m}}var Vl=null;function Ax(){if(Vl===null)throw Error(r(459));var o=Vl;return Vl=null,o}function Bx(o){if(o===Us||o===Hf)throw Error(r(483))}var qs=null,ju=0;function Vf(o){var s=ju;return ju+=1,qs===null&&(qs=[]),_x(qs,o,s)}function Ru(o,s){s=s.props.ref,o.ref=s!==void 0?s:null}function Wf(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 kx(o){function s(De,Ie){if(o){var Be=De.deletions;Be===null?(De.deletions=[Ie],De.flags|=16):Be.push(Ie)}}function m(De,Ie){if(!o)return null;for(;Ie!==null;)s(De,Ie),Ie=Ie.sibling;return null}function C(De){for(var Ie=new Map;De!==null;)De.key!==null?Ie.set(De.key,De):Ie.set(De.index,De),De=De.sibling;return Ie}function T(De,Ie){return De=ri(De,Ie),De.index=0,De.sibling=null,De}function A(De,Ie,Be){return De.index=Be,o?(Be=De.alternate,Be!==null?(Be=Be.index,Be<Ie?(De.flags|=67108866,Ie):Be):(De.flags|=67108866,Ie)):(De.flags|=1048576,Ie)}function J(De){return o&&De.alternate===null&&(De.flags|=67108866),De}function ve(De,Ie,Be,rt){return Ie===null||Ie.tag!==6?(Ie=wp(Be,De.mode,rt),Ie.return=De,Ie):(Ie=T(Ie,Be),Ie.return=De,Ie)}function Ee(De,Ie,Be,rt){var nn=Be.type;return nn===S?Je(De,Ie,Be.props.children,rt,Be.key):Ie!==null&&(Ie.elementType===nn||typeof nn=="object"&&nn!==null&&nn.$$typeof===M&&Fl(nn)===Ie.type)?(Ie=T(Ie,Be.props),Ru(Ie,Be),Ie.return=De,Ie):(Ie=_f(Be.type,Be.key,Be.props,null,De.mode,rt),Ru(Ie,Be),Ie.return=De,Ie)}function ke(De,Ie,Be,rt){return Ie===null||Ie.tag!==4||Ie.stateNode.containerInfo!==Be.containerInfo||Ie.stateNode.implementation!==Be.implementation?(Ie=Ep(Be,De.mode,rt),Ie.return=De,Ie):(Ie=T(Ie,Be.children||[]),Ie.return=De,Ie)}function Je(De,Ie,Be,rt,nn){return Ie===null||Ie.tag!==7?(Ie=Al(Be,De.mode,rt,nn),Ie.return=De,Ie):(Ie=T(Ie,Be),Ie.return=De,Ie)}function it(De,Ie,Be){if(typeof Ie=="string"&&Ie!==""||typeof Ie=="number"||typeof Ie=="bigint")return Ie=wp(""+Ie,De.mode,Be),Ie.return=De,Ie;if(typeof Ie=="object"&&Ie!==null){switch(Ie.$$typeof){case y:return Be=_f(Ie.type,Ie.key,Ie.props,null,De.mode,Be),Ru(Be,Ie),Be.return=De,Be;case x:return Ie=Ep(Ie,De.mode,Be),Ie.return=De,Ie;case M:return Ie=Fl(Ie),it(De,Ie,Be)}if(H(Ie)||L(Ie))return Ie=Al(Ie,De.mode,Be,null),Ie.return=De,Ie;if(typeof Ie.then=="function")return it(De,Vf(Ie),Be);if(Ie.$$typeof===E)return it(De,kf(De,Ie),Be);Wf(De,Ie)}return null}function He(De,Ie,Be,rt){var nn=Ie!==null?Ie.key:null;if(typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint")return nn!==null?null:ve(De,Ie,""+Be,rt);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case y:return Be.key===nn?Ee(De,Ie,Be,rt):null;case x:return Be.key===nn?ke(De,Ie,Be,rt):null;case M:return Be=Fl(Be),He(De,Ie,Be,rt)}if(H(Be)||L(Be))return nn!==null?null:Je(De,Ie,Be,rt,null);if(typeof Be.then=="function")return He(De,Ie,Vf(Be),rt);if(Be.$$typeof===E)return He(De,Ie,kf(De,Be),rt);Wf(De,Be)}return null}function Ge(De,Ie,Be,rt,nn){if(typeof rt=="string"&&rt!==""||typeof rt=="number"||typeof rt=="bigint")return De=De.get(Be)||null,ve(Ie,De,""+rt,nn);if(typeof rt=="object"&&rt!==null){switch(rt.$$typeof){case y:return De=De.get(rt.key===null?Be:rt.key)||null,Ee(Ie,De,rt,nn);case x:return De=De.get(rt.key===null?Be:rt.key)||null,ke(Ie,De,rt,nn);case M:return rt=Fl(rt),Ge(De,Ie,Be,rt,nn)}if(H(rt)||L(rt))return De=De.get(Be)||null,Je(Ie,De,rt,nn,null);if(typeof rt.then=="function")return Ge(De,Ie,Be,Vf(rt),nn);if(rt.$$typeof===E)return Ge(De,Ie,Be,kf(Ie,rt),nn);Wf(Ie,rt)}return null}function Kt(De,Ie,Be,rt){for(var nn=null,Vn=null,Yt=Ie,$n=Ie=0,Mn=null;Yt!==null&&$n<Be.length;$n++){Yt.index>$n?(Mn=Yt,Yt=null):Mn=Yt.sibling;var Wn=He(De,Yt,Be[$n],rt);if(Wn===null){Yt===null&&(Yt=Mn);break}o&&Yt&&Wn.alternate===null&&s(De,Yt),Ie=A(Wn,Ie,$n),Vn===null?nn=Wn:Vn.sibling=Wn,Vn=Wn,Yt=Mn}if($n===Be.length)return m(De,Yt),Dn&&ai(De,$n),nn;if(Yt===null){for(;$n<Be.length;$n++)Yt=it(De,Be[$n],rt),Yt!==null&&(Ie=A(Yt,Ie,$n),Vn===null?nn=Yt:Vn.sibling=Yt,Vn=Yt);return Dn&&ai(De,$n),nn}for(Yt=C(Yt);$n<Be.length;$n++)Mn=Ge(Yt,De,$n,Be[$n],rt),Mn!==null&&(o&&Mn.alternate!==null&&Yt.delete(Mn.key===null?$n:Mn.key),Ie=A(Mn,Ie,$n),Vn===null?nn=Mn:Vn.sibling=Mn,Vn=Mn);return o&&Yt.forEach(function(Ji){return s(De,Ji)}),Dn&&ai(De,$n),nn}function cn(De,Ie,Be,rt){if(Be==null)throw Error(r(151));for(var nn=null,Vn=null,Yt=Ie,$n=Ie=0,Mn=null,Wn=Be.next();Yt!==null&&!Wn.done;$n++,Wn=Be.next()){Yt.index>$n?(Mn=Yt,Yt=null):Mn=Yt.sibling;var Ji=He(De,Yt,Wn.value,rt);if(Ji===null){Yt===null&&(Yt=Mn);break}o&&Yt&&Ji.alternate===null&&s(De,Yt),Ie=A(Ji,Ie,$n),Vn===null?nn=Ji:Vn.sibling=Ji,Vn=Ji,Yt=Mn}if(Wn.done)return m(De,Yt),Dn&&ai(De,$n),nn;if(Yt===null){for(;!Wn.done;$n++,Wn=Be.next())Wn=it(De,Wn.value,rt),Wn!==null&&(Ie=A(Wn,Ie,$n),Vn===null?nn=Wn:Vn.sibling=Wn,Vn=Wn);return Dn&&ai(De,$n),nn}for(Yt=C(Yt);!Wn.done;$n++,Wn=Be.next())Wn=Ge(Yt,De,$n,Wn.value,rt),Wn!==null&&(o&&Wn.alternate!==null&&Yt.delete(Wn.key===null?$n:Wn.key),Ie=A(Wn,Ie,$n),Vn===null?nn=Wn:Vn.sibling=Wn,Vn=Wn);return o&&Yt.forEach(function(c5){return s(De,c5)}),Dn&&ai(De,$n),nn}function sr(De,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 y:e:{for(var nn=Be.key;Ie!==null;){if(Ie.key===nn){if(nn=Be.type,nn===S){if(Ie.tag===7){m(De,Ie.sibling),rt=T(Ie,Be.props.children),rt.return=De,De=rt;break e}}else if(Ie.elementType===nn||typeof nn=="object"&&nn!==null&&nn.$$typeof===M&&Fl(nn)===Ie.type){m(De,Ie.sibling),rt=T(Ie,Be.props),Ru(rt,Be),rt.return=De,De=rt;break e}m(De,Ie);break}else s(De,Ie);Ie=Ie.sibling}Be.type===S?(rt=Al(Be.props.children,De.mode,rt,Be.key),rt.return=De,De=rt):(rt=_f(Be.type,Be.key,Be.props,null,De.mode,rt),Ru(rt,Be),rt.return=De,De=rt)}return J(De);case x:e:{for(nn=Be.key;Ie!==null;){if(Ie.key===nn)if(Ie.tag===4&&Ie.stateNode.containerInfo===Be.containerInfo&&Ie.stateNode.implementation===Be.implementation){m(De,Ie.sibling),rt=T(Ie,Be.children||[]),rt.return=De,De=rt;break e}else{m(De,Ie);break}else s(De,Ie);Ie=Ie.sibling}rt=Ep(Be,De.mode,rt),rt.return=De,De=rt}return J(De);case M:return Be=Fl(Be),sr(De,Ie,Be,rt)}if(H(Be))return Kt(De,Ie,Be,rt);if(L(Be)){if(nn=L(Be),typeof nn!="function")throw Error(r(150));return Be=nn.call(Be),cn(De,Ie,Be,rt)}if(typeof Be.then=="function")return sr(De,Ie,Vf(Be),rt);if(Be.$$typeof===E)return sr(De,Ie,kf(De,Be),rt);Wf(De,Be)}return typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint"?(Be=""+Be,Ie!==null&&Ie.tag===6?(m(De,Ie.sibling),rt=T(Ie,Be),rt.return=De,De=rt):(m(De,Ie),rt=wp(Be,De.mode,rt),rt.return=De,De=rt),J(De)):m(De,Ie)}return function(De,Ie,Be,rt){try{ju=0;var nn=sr(De,Ie,Be,rt);return qs=null,nn}catch(Yt){if(Yt===Us||Yt===Hf)throw Yt;var Vn=ka(29,Yt,null,De.mode);return Vn.lanes=rt,Vn.return=De,Vn}finally{}}}var Wl=kx(!0),Lx=kx(!1),_i=!1;function Ap(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bp(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 Ai(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Bi(o,s,m){var C=o.updateQueue;if(C===null)return null;if(C=C.shared,(Gn&2)!==0){var T=C.pending;return T===null?s.next=s:(s.next=T.next,T.next=s),C.pending=s,s=Df(o),$x(o,null,m),s}return zf(o,C,s,m),Df(o)}function Iu(o,s,m){if(s=s.updateQueue,s!==null&&(s=s.shared,(m&4194048)!==0)){var C=s.lanes;C&=o.pendingLanes,m|=C,s.lanes=m,et(o,m)}}function kp(o,s){var m=o.updateQueue,C=o.alternate;if(C!==null&&(C=C.updateQueue,m===C)){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:C.baseState,firstBaseUpdate:T,lastBaseUpdate:A,shared:C.shared,callbacks:C.callbacks},o.updateQueue=m;return}o=m.lastBaseUpdate,o===null?m.firstBaseUpdate=s:o.next=s,m.lastBaseUpdate=s}var Lp=!1;function Nu(){if(Lp){var o=Ks;if(o!==null)throw o}}function Mu(o,s,m,C){Lp=!1;var T=o.updateQueue;_i=!1;var A=T.firstBaseUpdate,J=T.lastBaseUpdate,ve=T.shared.pending;if(ve!==null){T.shared.pending=null;var Ee=ve,ke=Ee.next;Ee.next=null,J===null?A=ke:J.next=ke,J=Ee;var Je=o.alternate;Je!==null&&(Je=Je.updateQueue,ve=Je.lastBaseUpdate,ve!==J&&(ve===null?Je.firstBaseUpdate=ke:ve.next=ke,Je.lastBaseUpdate=Ee))}if(A!==null){var it=T.baseState;J=0,Je=ke=Ee=null,ve=A;do{var He=ve.lane&-536870913,Ge=He!==ve.lane;if(Ge?(Nn&He)===He:(C&He)===He){He!==0&&He===Ws&&(Lp=!0),Je!==null&&(Je=Je.next={lane:0,tag:ve.tag,payload:ve.payload,callback:null,next:null});e:{var Kt=o,cn=ve;He=s;var sr=m;switch(cn.tag){case 1:if(Kt=cn.payload,typeof Kt=="function"){it=Kt.call(sr,it,He);break e}it=Kt;break e;case 3:Kt.flags=Kt.flags&-65537|128;case 0:if(Kt=cn.payload,He=typeof Kt=="function"?Kt.call(sr,it,He):Kt,He==null)break e;it=g({},it,He);break e;case 2:_i=!0}}He=ve.callback,He!==null&&(o.flags|=64,Ge&&(o.flags|=8192),Ge=T.callbacks,Ge===null?T.callbacks=[He]:Ge.push(He))}else Ge={lane:He,tag:ve.tag,payload:ve.payload,callback:ve.callback,next:null},Je===null?(ke=Je=Ge,Ee=it):Je=Je.next=Ge,J|=He;if(ve=ve.next,ve===null){if(ve=T.shared.pending,ve===null)break;Ge=ve,ve=Ge.next,Ge.next=null,T.lastBaseUpdate=Ge,T.shared.pending=null}}while(!0);Je===null&&(Ee=it),T.baseState=Ee,T.firstBaseUpdate=ke,T.lastBaseUpdate=Je,A===null&&(T.shared.lanes=0),Vi|=J,o.lanes=J,o.memoizedState=it}}function Hx(o,s){if(typeof o!="function")throw Error(r(191,o));o.call(s)}function Fx(o,s){var m=o.callbacks;if(m!==null)for(o.callbacks=null,o=0;o<m.length;o++)Hx(m[o],s)}var Gs=V(null),Kf=V(0);function Vx(o,s){o=gi,q(Kf,o),q(Gs,s),gi=o|s.baseLanes}function Hp(){q(Kf,gi),q(Gs,Gs.current)}function Fp(){gi=Kf.current,G(Gs),G(Kf)}var La=V(null),oo=null;function ki(o){var s=o.alternate;q(Dr,Dr.current&1),q(La,o),oo===null&&(s===null||Gs.current!==null||s.memoizedState!==null)&&(oo=o)}function Vp(o){q(Dr,Dr.current),q(La,o),oo===null&&(oo=o)}function Wx(o){o.tag===22?(q(Dr,Dr.current),q(La,o),oo===null&&(oo=o)):Li()}function Li(){q(Dr,Dr.current),q(La,La.current)}function Ha(o){G(La),oo===o&&(oo=null),G(Dr)}var Dr=V(0);function Uf(o){for(var s=o;s!==null;){if(s.tag===13){var m=s.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||Xh(m)||Yh(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 li=0,xn=null,ir=null,kr=null,qf=!1,Xs=!1,Kl=!1,Gf=0,Tu=0,Ys=null,JM=0;function Rr(){throw Error(r(321))}function Wp(o,s){if(s===null)return!1;for(var m=0;m<s.length&&m<o.length;m++)if(!Ba(o[m],s[m]))return!1;return!0}function Kp(o,s,m,C,T,A){return li=A,xn=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,z.H=o===null||o.memoizedState===null?jS:ih,Kl=!1,A=m(C,T),Kl=!1,Xs&&(A=Ux(s,m,C,T)),Kx(o),A}function Kx(o){z.H=Du;var s=ir!==null&&ir.next!==null;if(li=0,kr=ir=xn=null,qf=!1,Tu=0,Ys=null,s)throw Error(r(300));o===null||Lr||(o=o.dependencies,o!==null&&Bf(o)&&(Lr=!0))}function Ux(o,s,m,C){xn=o;var T=0;do{if(Xs&&(Ys=null),Tu=0,Xs=!1,25<=T)throw Error(r(301));if(T+=1,kr=ir=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=RS,A=s(m,C)}while(Xs);return A}function eT(){var o=z.H,s=o.useState()[0];return s=typeof s.then=="function"?Pu(s):s,o=o.useState()[0],(ir!==null?ir.memoizedState:null)!==o&&(xn.flags|=1024),s}function Up(){var o=Gf!==0;return Gf=0,o}function qp(o,s,m){s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~m}function Gp(o){if(qf){for(o=o.memoizedState;o!==null;){var s=o.queue;s!==null&&(s.pending=null),o=o.next}qf=!1}li=0,kr=ir=xn=null,Xs=!1,Tu=Gf=0,Ys=null}function wa(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kr===null?xn.memoizedState=kr=o:kr=kr.next=o,kr}function _r(){if(ir===null){var o=xn.alternate;o=o!==null?o.memoizedState:null}else o=ir.next;var s=kr===null?xn.memoizedState:kr.next;if(s!==null)kr=s,ir=o;else{if(o===null)throw xn.alternate===null?Error(r(467)):Error(r(310));ir=o,o={memoizedState:ir.memoizedState,baseState:ir.baseState,baseQueue:ir.baseQueue,queue:ir.queue,next:null},kr===null?xn.memoizedState=kr=o:kr=kr.next=o}return kr}function Xf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pu(o){var s=Tu;return Tu+=1,Ys===null&&(Ys=[]),o=_x(Ys,o,s),s=xn,(kr===null?s.memoizedState:kr.next)===null&&(s=s.alternate,z.H=s===null||s.memoizedState===null?jS:ih),o}function Yf(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Pu(o);if(o.$$typeof===E)return ma(o)}throw Error(r(438,String(o)))}function Xp(o){var s=null,m=xn.updateQueue;if(m!==null&&(s=m.memoCache),s==null){var C=xn.alternate;C!==null&&(C=C.updateQueue,C!==null&&(C=C.memoCache,C!=null&&(s={data:C.data.map(function(T){return T.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),m===null&&(m=Xf(),xn.updateQueue=m),m.memoCache=s,m=s.data[s.index],m===void 0)for(m=s.data[s.index]=Array(o),C=0;C<o;C++)m[C]=P;return s.index++,m}function si(o,s){return typeof s=="function"?s(o):s}function Qf(o){var s=_r();return Yp(s,ir,o)}function Yp(o,s,m){var C=o.queue;if(C===null)throw Error(r(311));C.lastRenderedReducer=m;var T=o.baseQueue,A=C.pending;if(A!==null){if(T!==null){var J=T.next;T.next=A.next,A.next=J}s.baseQueue=T=A,C.pending=null}if(A=o.baseState,T===null)o.memoizedState=A;else{s=T.next;var ve=J=null,Ee=null,ke=s,Je=!1;do{var it=ke.lane&-536870913;if(it!==ke.lane?(Nn&it)===it:(li&it)===it){var He=ke.revertLane;if(He===0)Ee!==null&&(Ee=Ee.next={lane:0,revertLane:0,gesture:null,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null}),it===Ws&&(Je=!0);else if((li&He)===He){ke=ke.next,He===Ws&&(Je=!0);continue}else it={lane:0,revertLane:ke.revertLane,gesture:null,action:ke.action,hasEagerState:ke.hasEagerState,eagerState:ke.eagerState,next:null},Ee===null?(ve=Ee=it,J=A):Ee=Ee.next=it,xn.lanes|=He,Vi|=He;it=ke.action,Kl&&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},Ee===null?(ve=Ee=He,J=A):Ee=Ee.next=He,xn.lanes|=it,Vi|=it;ke=ke.next}while(ke!==null&&ke!==s);if(Ee===null?J=A:Ee.next=ve,!Ba(A,o.memoizedState)&&(Lr=!0,Je&&(m=Ks,m!==null)))throw m;o.memoizedState=A,o.baseState=J,o.baseQueue=Ee,C.lastRenderedState=A}return T===null&&(C.lanes=0),[o.memoizedState,C.dispatch]}function Qp(o){var s=_r(),m=s.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=o;var C=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);Ba(A,s.memoizedState)||(Lr=!0),s.memoizedState=A,s.baseQueue===null&&(s.baseState=A),m.lastRenderedState=A}return[A,C]}function qx(o,s,m){var C=xn,T=_r(),A=Dn;if(A){if(m===void 0)throw Error(r(407));m=m()}else m=s();var J=!Ba((ir||T).memoizedState,m);if(J&&(T.memoizedState=m,Lr=!0),T=T.queue,eh(Yx.bind(null,C,T,o),[o]),T.getSnapshot!==s||J||kr!==null&&kr.memoizedState.tag&1){if(C.flags|=2048,Qs(9,{destroy:void 0},Xx.bind(null,C,T,m,s),null),dr===null)throw Error(r(349));A||(li&127)!==0||Gx(C,s,m)}return m}function Gx(o,s,m){o.flags|=16384,o={getSnapshot:s,value:m},s=xn.updateQueue,s===null?(s=Xf(),xn.updateQueue=s,s.stores=[o]):(m=s.stores,m===null?s.stores=[o]:m.push(o))}function Xx(o,s,m,C){s.value=m,s.getSnapshot=C,Qx(s)&&Zx(o)}function Yx(o,s,m){return m(function(){Qx(s)&&Zx(o)})}function Qx(o){var s=o.getSnapshot;o=o.value;try{var m=s();return!Ba(o,m)}catch{return!0}}function Zx(o){var s=_l(o,2);s!==null&&za(s,o,2)}function Zp(o){var s=wa();if(typeof o=="function"){var m=o;if(o=m(),Kl){ze(!0);try{m()}finally{ze(!1)}}}return s.memoizedState=s.baseState=o,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:o},s}function Jx(o,s,m,C){return o.baseState=m,Yp(o,ir,typeof C=="function"?C:si)}function tT(o,s,m,C,T){if(em(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,C(A),m=s.pending,m===null?(A.next=s.pending=A,eS(s,A)):(A.next=m.next,s.pending=m.next=A)}}function eS(o,s){var m=s.action,C=s.payload,T=o.state;if(s.isTransition){var A=z.T,J={};z.T=J;try{var ve=m(T,C),Ee=z.S;Ee!==null&&Ee(J,ve),tS(o,s,ve)}catch(ke){Jp(o,s,ke)}finally{A!==null&&J.types!==null&&(A.types=J.types),z.T=A}}else try{A=m(T,C),tS(o,s,A)}catch(ke){Jp(o,s,ke)}}function tS(o,s,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(C){nS(o,s,C)},function(C){return Jp(o,s,C)}):nS(o,s,m)}function nS(o,s,m){s.status="fulfilled",s.value=m,rS(s),o.state=m,s=o.pending,s!==null&&(m=s.next,m===s?o.pending=null:(m=m.next,s.next=m,eS(o,m)))}function Jp(o,s,m){var C=o.pending;if(o.pending=null,C!==null){C=C.next;do s.status="rejected",s.reason=m,rS(s),s=s.next;while(s!==C)}o.action=null}function rS(o){o=o.listeners;for(var s=0;s<o.length;s++)(0,o[s])()}function aS(o,s){return s}function oS(o,s){if(Dn){var m=dr.formState;if(m!==null){e:{var C=xn;if(Dn){if(br){t:{for(var T=br,A=ao;T.nodeType!==8;){if(!A){T=null;break t}if(T=io(T.nextSibling),T===null){T=null;break t}}A=T.data,T=A==="F!"||A==="F"?T:null}if(T){br=io(T.nextSibling),C=T.data==="F!";break e}}zi(C)}C=!1}C&&(s=m[0])}}return m=wa(),m.memoizedState=m.baseState=s,C={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aS,lastRenderedState:s},m.queue=C,m=wS.bind(null,xn,C),C.dispatch=m,C=Zp(!1),A=oh.bind(null,xn,!1,C.queue),C=wa(),T={state:s,dispatch:null,action:o,pending:null},C.queue=T,m=tT.bind(null,xn,T,A,m),T.dispatch=m,C.memoizedState=o,[s,m,!1]}function iS(o){var s=_r();return lS(s,ir,o)}function lS(o,s,m){if(s=Yp(o,s,aS)[0],o=Qf(si)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var C=Pu(s)}catch(J){throw J===Us?Hf:J}else C=s;s=_r();var T=s.queue,A=T.dispatch;return m!==s.memoizedState&&(xn.flags|=2048,Qs(9,{destroy:void 0},nT.bind(null,T,m),null)),[C,A,o]}function nT(o,s){o.action=s}function sS(o){var s=_r(),m=ir;if(m!==null)return lS(s,m,o);_r(),s=s.memoizedState,m=_r();var C=m.queue.dispatch;return m.memoizedState=o,[s,C,!1]}function Qs(o,s,m,C){return o={tag:o,create:m,deps:C,inst:s,next:null},s=xn.updateQueue,s===null&&(s=Xf(),xn.updateQueue=s),m=s.lastEffect,m===null?s.lastEffect=o.next=o:(C=m.next,m.next=o,o.next=C,s.lastEffect=o),o}function cS(){return _r().memoizedState}function Zf(o,s,m,C){var T=wa();xn.flags|=o,T.memoizedState=Qs(1|s,{destroy:void 0},m,C===void 0?null:C)}function Jf(o,s,m,C){var T=_r();C=C===void 0?null:C;var A=T.memoizedState.inst;ir!==null&&C!==null&&Wp(C,ir.memoizedState.deps)?T.memoizedState=Qs(s,A,m,C):(xn.flags|=o,T.memoizedState=Qs(1|s,A,m,C))}function uS(o,s){Zf(8390656,8,o,s)}function eh(o,s){Jf(2048,8,o,s)}function rT(o){xn.flags|=4;var s=xn.updateQueue;if(s===null)s=Xf(),xn.updateQueue=s,s.events=[o];else{var m=s.events;m===null?s.events=[o]:m.push(o)}}function dS(o){var s=_r().memoizedState;return rT({ref:s,nextImpl:o}),function(){if((Gn&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function fS(o,s){return Jf(4,2,o,s)}function mS(o,s){return Jf(4,4,o,s)}function vS(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 gS(o,s,m){m=m!=null?m.concat([o]):null,Jf(4,4,vS.bind(null,s,o),m)}function th(){}function pS(o,s){var m=_r();s=s===void 0?null:s;var C=m.memoizedState;return s!==null&&Wp(s,C[1])?C[0]:(m.memoizedState=[o,s],o)}function hS(o,s){var m=_r();s=s===void 0?null:s;var C=m.memoizedState;if(s!==null&&Wp(s,C[1]))return C[0];if(C=o(),Kl){ze(!0);try{o()}finally{ze(!1)}}return m.memoizedState=[C,s],C}function nh(o,s,m){return m===void 0||(li&1073741824)!==0&&(Nn&261930)===0?o.memoizedState=s:(o.memoizedState=m,o=b2(),xn.lanes|=o,Vi|=o,m)}function bS(o,s,m,C){return Ba(m,s)?m:Gs.current!==null?(o=nh(o,m,C),Ba(o,s)||(Lr=!0),o):(li&42)===0||(li&1073741824)!==0&&(Nn&261930)===0?(Lr=!0,o.memoizedState=m):(o=b2(),xn.lanes|=o,Vi|=o,s)}function yS(o,s,m,C,T){var A=D.p;D.p=A!==0&&8>A?A:8;var J=z.T,ve={};z.T=ve,oh(o,!1,s,m);try{var Ee=T(),ke=z.S;if(ke!==null&&ke(ve,Ee),Ee!==null&&typeof Ee=="object"&&typeof Ee.then=="function"){var Je=ZM(Ee,C);zu(o,s,Je,Wa(o))}else zu(o,s,C,Wa(o))}catch(it){zu(o,s,{then:function(){},status:"rejected",reason:it},Wa())}finally{D.p=A,J!==null&&ve.types!==null&&(J.types=ve.types),z.T=J}}function aT(){}function rh(o,s,m,C){if(o.tag!==5)throw Error(r(476));var T=CS(o).queue;yS(o,T,s,F,m===null?aT:function(){return xS(o),m(C)})}function CS(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:si,lastRenderedState:F},next:null};var m={};return s.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:m},next:null},o.memoizedState=s,o=o.alternate,o!==null&&(o.memoizedState=s),s}function xS(o){var s=CS(o);s.next===null&&(s=o.alternate.memoizedState),zu(o,s.next.queue,{},Wa())}function ah(){return ma(Qu)}function SS(){return _r().memoizedState}function $S(){return _r().memoizedState}function oT(o){for(var s=o.return;s!==null;){switch(s.tag){case 24:case 3:var m=Wa();o=Ai(m);var C=Bi(s,o,m);C!==null&&(za(C,s,m),Iu(C,s,m)),s={cache:Pp()},o.payload=s;return}s=s.return}}function iT(o,s,m){var C=Wa();m={lane:C,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},em(o)?ES(s,m):(m=Sp(o,s,m,C),m!==null&&(za(m,o,C),OS(m,s,C)))}function wS(o,s,m){var C=Wa();zu(o,s,m,C)}function zu(o,s,m,C){var T={lane:C,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(em(o))ES(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,ve=A(J,m);if(T.hasEagerState=!0,T.eagerState=ve,Ba(ve,J))return zf(o,s,T,0),dr===null&&Pf(),!1}catch{}finally{}if(m=Sp(o,s,T,C),m!==null)return za(m,o,C),OS(m,s,C),!0}return!1}function oh(o,s,m,C){if(C={lane:2,revertLane:Ah(),gesture:null,action:C,hasEagerState:!1,eagerState:null,next:null},em(o)){if(s)throw Error(r(479))}else s=Sp(o,m,C,2),s!==null&&za(s,o,2)}function em(o){var s=o.alternate;return o===xn||s!==null&&s===xn}function ES(o,s){Xs=qf=!0;var m=o.pending;m===null?s.next=s:(s.next=m.next,m.next=s),o.pending=s}function OS(o,s,m){if((m&4194048)!==0){var C=s.lanes;C&=o.pendingLanes,m|=C,s.lanes=m,et(o,m)}}var Du={readContext:ma,use:Yf,useCallback:Rr,useContext:Rr,useEffect:Rr,useImperativeHandle:Rr,useLayoutEffect:Rr,useInsertionEffect:Rr,useMemo:Rr,useReducer:Rr,useRef:Rr,useState:Rr,useDebugValue:Rr,useDeferredValue:Rr,useTransition:Rr,useSyncExternalStore:Rr,useId:Rr,useHostTransitionStatus:Rr,useFormState:Rr,useActionState:Rr,useOptimistic:Rr,useMemoCache:Rr,useCacheRefresh:Rr};Du.useEffectEvent=Rr;var jS={readContext:ma,use:Yf,useCallback:function(o,s){return wa().memoizedState=[o,s===void 0?null:s],o},useContext:ma,useEffect:uS,useImperativeHandle:function(o,s,m){m=m!=null?m.concat([o]):null,Zf(4194308,4,vS.bind(null,s,o),m)},useLayoutEffect:function(o,s){return Zf(4194308,4,o,s)},useInsertionEffect:function(o,s){Zf(4,2,o,s)},useMemo:function(o,s){var m=wa();s=s===void 0?null:s;var C=o();if(Kl){ze(!0);try{o()}finally{ze(!1)}}return m.memoizedState=[C,s],C},useReducer:function(o,s,m){var C=wa();if(m!==void 0){var T=m(s);if(Kl){ze(!0);try{m(s)}finally{ze(!1)}}}else T=s;return C.memoizedState=C.baseState=T,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:T},C.queue=o,o=o.dispatch=iT.bind(null,xn,o),[C.memoizedState,o]},useRef:function(o){var s=wa();return o={current:o},s.memoizedState=o},useState:function(o){o=Zp(o);var s=o.queue,m=wS.bind(null,xn,s);return s.dispatch=m,[o.memoizedState,m]},useDebugValue:th,useDeferredValue:function(o,s){var m=wa();return nh(m,o,s)},useTransition:function(){var o=Zp(!1);return o=yS.bind(null,xn,o.queue,!0,!1),wa().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,s,m){var C=xn,T=wa();if(Dn){if(m===void 0)throw Error(r(407));m=m()}else{if(m=s(),dr===null)throw Error(r(349));(Nn&127)!==0||Gx(C,s,m)}T.memoizedState=m;var A={value:m,getSnapshot:s};return T.queue=A,uS(Yx.bind(null,C,A,o),[o]),C.flags|=2048,Qs(9,{destroy:void 0},Xx.bind(null,C,A,m,s),null),m},useId:function(){var o=wa(),s=dr.identifierPrefix;if(Dn){var m=Fo,C=Ho;m=(C&~(1<<32-we(C)-1)).toString(32)+m,s="_"+s+"R_"+m,m=Gf++,0<m&&(s+="H"+m.toString(32)),s+="_"}else m=JM++,s="_"+s+"r_"+m.toString(32)+"_";return o.memoizedState=s},useHostTransitionStatus:ah,useFormState:oS,useActionState:oS,useOptimistic:function(o){var s=wa();s.memoizedState=s.baseState=o;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=m,s=oh.bind(null,xn,!0,m),m.dispatch=s,[o,s]},useMemoCache:Xp,useCacheRefresh:function(){return wa().memoizedState=oT.bind(null,xn)},useEffectEvent:function(o){var s=wa(),m={impl:o};return s.memoizedState=m,function(){if((Gn&2)!==0)throw Error(r(440));return m.impl.apply(void 0,arguments)}}},ih={readContext:ma,use:Yf,useCallback:pS,useContext:ma,useEffect:eh,useImperativeHandle:gS,useInsertionEffect:fS,useLayoutEffect:mS,useMemo:hS,useReducer:Qf,useRef:cS,useState:function(){return Qf(si)},useDebugValue:th,useDeferredValue:function(o,s){var m=_r();return bS(m,ir.memoizedState,o,s)},useTransition:function(){var o=Qf(si)[0],s=_r().memoizedState;return[typeof o=="boolean"?o:Pu(o),s]},useSyncExternalStore:qx,useId:SS,useHostTransitionStatus:ah,useFormState:iS,useActionState:iS,useOptimistic:function(o,s){var m=_r();return Jx(m,ir,o,s)},useMemoCache:Xp,useCacheRefresh:$S};ih.useEffectEvent=dS;var RS={readContext:ma,use:Yf,useCallback:pS,useContext:ma,useEffect:eh,useImperativeHandle:gS,useInsertionEffect:fS,useLayoutEffect:mS,useMemo:hS,useReducer:Qp,useRef:cS,useState:function(){return Qp(si)},useDebugValue:th,useDeferredValue:function(o,s){var m=_r();return ir===null?nh(m,o,s):bS(m,ir.memoizedState,o,s)},useTransition:function(){var o=Qp(si)[0],s=_r().memoizedState;return[typeof o=="boolean"?o:Pu(o),s]},useSyncExternalStore:qx,useId:SS,useHostTransitionStatus:ah,useFormState:sS,useActionState:sS,useOptimistic:function(o,s){var m=_r();return ir!==null?Jx(m,ir,o,s):(m.baseState=o,[o,m.queue.dispatch])},useMemoCache:Xp,useCacheRefresh:$S};RS.useEffectEvent=dS;function lh(o,s,m,C){s=o.memoizedState,m=m(C,s),m=m==null?s:g({},s,m),o.memoizedState=m,o.lanes===0&&(o.updateQueue.baseState=m)}var sh={enqueueSetState:function(o,s,m){o=o._reactInternals;var C=Wa(),T=Ai(C);T.payload=s,m!=null&&(T.callback=m),s=Bi(o,T,C),s!==null&&(za(s,o,C),Iu(s,o,C))},enqueueReplaceState:function(o,s,m){o=o._reactInternals;var C=Wa(),T=Ai(C);T.tag=1,T.payload=s,m!=null&&(T.callback=m),s=Bi(o,T,C),s!==null&&(za(s,o,C),Iu(s,o,C))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var m=Wa(),C=Ai(m);C.tag=2,s!=null&&(C.callback=s),s=Bi(o,C,m),s!==null&&(za(s,o,m),Iu(s,o,m))}};function IS(o,s,m,C,T,A,J){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(C,A,J):s.prototype&&s.prototype.isPureReactComponent?!xu(m,C)||!xu(T,A):!0}function NS(o,s,m,C){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(m,C),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(m,C),s.state!==o&&sh.enqueueReplaceState(s,s.state,null)}function Ul(o,s){var m=s;if("ref"in s){m={};for(var C in s)C!=="ref"&&(m[C]=s[C])}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 MS(o){Tf(o)}function TS(o){console.error(o)}function PS(o){Tf(o)}function tm(o,s){try{var m=o.onUncaughtError;m(s.value,{componentStack:s.stack})}catch(C){setTimeout(function(){throw C})}}function zS(o,s,m){try{var C=o.onCaughtError;C(m.value,{componentStack:m.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(T){setTimeout(function(){throw T})}}function ch(o,s,m){return m=Ai(m),m.tag=3,m.payload={element:null},m.callback=function(){tm(o,s)},m}function DS(o){return o=Ai(o),o.tag=3,o}function _S(o,s,m,C){var T=m.type.getDerivedStateFromError;if(typeof T=="function"){var A=C.value;o.payload=function(){return T(A)},o.callback=function(){zS(s,m,C)}}var J=m.stateNode;J!==null&&typeof J.componentDidCatch=="function"&&(o.callback=function(){zS(s,m,C),typeof T!="function"&&(Wi===null?Wi=new Set([this]):Wi.add(this));var ve=C.stack;this.componentDidCatch(C.value,{componentStack:ve!==null?ve:""})})}function lT(o,s,m,C,T){if(m.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){if(s=m.alternate,s!==null&&Vs(s,m,T,!0),m=La.current,m!==null){switch(m.tag){case 31:case 13:return oo===null?mm():m.alternate===null&&Ir===0&&(Ir=3),m.flags&=-257,m.flags|=65536,m.lanes=T,C===Ff?m.flags|=16384:(s=m.updateQueue,s===null?m.updateQueue=new Set([C]):s.add(C),zh(o,C,T)),!1;case 22:return m.flags|=65536,C===Ff?m.flags|=16384:(s=m.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([C])},m.updateQueue=s):(m=s.retryQueue,m===null?s.retryQueue=new Set([C]):m.add(C)),zh(o,C,T)),!1}throw Error(r(435,m.tag))}return zh(o,C,T),mm(),!1}if(Dn)return s=La.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=T,C!==Rp&&(o=Error(r(422),{cause:C}),wu(to(o,m)))):(C!==Rp&&(s=Error(r(423),{cause:C}),wu(to(s,m))),o=o.current.alternate,o.flags|=65536,T&=-T,o.lanes|=T,C=to(C,m),T=ch(o.stateNode,C,T),kp(o,T),Ir!==4&&(Ir=2)),!1;var A=Error(r(520),{cause:C});if(A=to(A,m),Vu===null?Vu=[A]:Vu.push(A),Ir!==4&&(Ir=2),s===null)return!0;C=to(C,m),m=s;do{switch(m.tag){case 3:return m.flags|=65536,o=T&-T,m.lanes|=o,o=ch(m.stateNode,C,o),kp(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"&&(Wi===null||!Wi.has(A))))return m.flags|=65536,T&=-T,m.lanes|=T,T=DS(T),_S(T,o,m,C),kp(m,T),!1}m=m.return}while(m!==null);return!1}var uh=Error(r(461)),Lr=!1;function va(o,s,m,C){s.child=o===null?Lx(s,null,m,C):Wl(s,o.child,m,C)}function AS(o,s,m,C,T){m=m.render;var A=s.ref;if("ref"in C){var J={};for(var ve in C)ve!=="ref"&&(J[ve]=C[ve])}else J=C;return Ll(s),C=Kp(o,s,m,J,A,T),ve=Up(),o!==null&&!Lr?(qp(o,s,T),ci(o,s,T)):(Dn&&ve&&Op(s),s.flags|=1,va(o,s,C,T),s.child)}function BS(o,s,m,C,T){if(o===null){var A=m.type;return typeof A=="function"&&!$p(A)&&A.defaultProps===void 0&&m.compare===null?(s.tag=15,s.type=A,kS(o,s,A,C,T)):(o=_f(m.type,null,C,s,s.mode,T),o.ref=s.ref,o.return=s,s.child=o)}if(A=o.child,!bh(o,T)){var J=A.memoizedProps;if(m=m.compare,m=m!==null?m:xu,m(J,C)&&o.ref===s.ref)return ci(o,s,T)}return s.flags|=1,o=ri(A,C),o.ref=s.ref,o.return=s,s.child=o}function kS(o,s,m,C,T){if(o!==null){var A=o.memoizedProps;if(xu(A,C)&&o.ref===s.ref)if(Lr=!1,s.pendingProps=C=A,bh(o,T))(o.flags&131072)!==0&&(Lr=!0);else return s.lanes=o.lanes,ci(o,s,T)}return dh(o,s,m,C,T)}function LS(o,s,m,C){var T=C.children,A=o!==null?o.memoizedState:null;if(o===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),C.mode==="hidden"){if((s.flags&128)!==0){if(A=A!==null?A.baseLanes|m:m,o!==null){for(C=s.child=o.child,T=0;C!==null;)T=T|C.lanes|C.childLanes,C=C.sibling;C=T&~A}else C=0,s.child=null;return HS(o,s,A,m,C)}if((m&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},o!==null&&Lf(s,A!==null?A.cachePool:null),A!==null?Vx(s,A):Hp(),Wx(s);else return C=s.lanes=536870912,HS(o,s,A!==null?A.baseLanes|m:m,m,C)}else A!==null?(Lf(s,A.cachePool),Vx(s,A),Li(),s.memoizedState=null):(o!==null&&Lf(s,null),Hp(),Li());return va(o,s,T,m),s.child}function _u(o,s){return o!==null&&o.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function HS(o,s,m,C,T){var A=Dp();return A=A===null?null:{parent:Br._currentValue,pool:A},s.memoizedState={baseLanes:m,cachePool:A},o!==null&&Lf(s,null),Hp(),Wx(s),o!==null&&Vs(o,s,C,!0),s.childLanes=T,null}function nm(o,s){return s=am({mode:s.mode,children:s.children},o.mode),s.ref=o.ref,o.child=s,s.return=o,s}function FS(o,s,m){return Wl(s,o.child,null,m),o=nm(s,s.pendingProps),o.flags|=2,Ha(s),s.memoizedState=null,o}function sT(o,s,m){var C=s.pendingProps,T=(s.flags&128)!==0;if(s.flags&=-129,o===null){if(Dn){if(C.mode==="hidden")return o=nm(s,C),s.lanes=536870912,_u(null,o);if(Vp(s),(o=br)?(o=e$(o,ao),o=o!==null&&o.data==="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:Ti!==null?{id:Ho,overflow:Fo}:null,retryLane:536870912,hydrationErrors:null},m=Ex(o),m.return=s,s.child=m,fa=s,br=null)):o=null,o===null)throw zi(s);return s.lanes=536870912,null}return nm(s,C)}var A=o.memoizedState;if(A!==null){var J=A.dehydrated;if(Vp(s),T)if(s.flags&256)s.flags&=-257,s=FS(o,s,m);else if(s.memoizedState!==null)s.child=o.child,s.flags|=128,s=null;else throw Error(r(558));else if(Lr||Vs(o,s,m,!1),T=(m&o.childLanes)!==0,Lr||T){if(C=dr,C!==null&&(J=Ve(C,m),J!==0&&J!==A.retryLane))throw A.retryLane=J,_l(o,J),za(C,o,J),uh;mm(),s=FS(o,s,m)}else o=A.treeContext,br=io(J.nextSibling),fa=s,Dn=!0,Pi=null,ao=!1,o!==null&&Rx(s,o),s=nm(s,C),s.flags|=4096;return s}return o=ri(o.child,{mode:C.mode,children:C.children}),o.ref=s.ref,s.child=o,o.return=s,o}function rm(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 dh(o,s,m,C,T){return Ll(s),m=Kp(o,s,m,C,void 0,T),C=Up(),o!==null&&!Lr?(qp(o,s,T),ci(o,s,T)):(Dn&&C&&Op(s),s.flags|=1,va(o,s,m,T),s.child)}function VS(o,s,m,C,T,A){return Ll(s),s.updateQueue=null,m=Ux(s,C,m,T),Kx(o),C=Up(),o!==null&&!Lr?(qp(o,s,A),ci(o,s,A)):(Dn&&C&&Op(s),s.flags|=1,va(o,s,m,A),s.child)}function WS(o,s,m,C,T){if(Ll(s),s.stateNode===null){var A=ks,J=m.contextType;typeof J=="object"&&J!==null&&(A=ma(J)),A=new m(C,A),s.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,A.updater=sh,s.stateNode=A,A._reactInternals=s,A=s.stateNode,A.props=C,A.state=s.memoizedState,A.refs={},Ap(s),J=m.contextType,A.context=typeof J=="object"&&J!==null?ma(J):ks,A.state=s.memoizedState,J=m.getDerivedStateFromProps,typeof J=="function"&&(lh(s,m,J,C),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&&sh.enqueueReplaceState(A,A.state,null),Mu(s,C,A,T),Nu(),A.state=s.memoizedState),typeof A.componentDidMount=="function"&&(s.flags|=4194308),C=!0}else if(o===null){A=s.stateNode;var ve=s.memoizedProps,Ee=Ul(m,ve);A.props=Ee;var ke=A.context,Je=m.contextType;J=ks,typeof Je=="object"&&Je!==null&&(J=ma(Je));var it=m.getDerivedStateFromProps;Je=typeof it=="function"||typeof A.getSnapshotBeforeUpdate=="function",ve=s.pendingProps!==ve,Je||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(ve||ke!==J)&&NS(s,A,C,J),_i=!1;var He=s.memoizedState;A.state=He,Mu(s,C,A,T),Nu(),ke=s.memoizedState,ve||He!==ke||_i?(typeof it=="function"&&(lh(s,m,it,C),ke=s.memoizedState),(Ee=_i||IS(s,m,Ee,C,He,ke,J))?(Je||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=C,s.memoizedState=ke),A.props=C,A.state=ke,A.context=J,C=Ee):(typeof A.componentDidMount=="function"&&(s.flags|=4194308),C=!1)}else{A=s.stateNode,Bp(o,s),J=s.memoizedProps,Je=Ul(m,J),A.props=Je,it=s.pendingProps,He=A.context,ke=m.contextType,Ee=ks,typeof ke=="object"&&ke!==null&&(Ee=ma(ke)),ve=m.getDerivedStateFromProps,(ke=typeof ve=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(J!==it||He!==Ee)&&NS(s,A,C,Ee),_i=!1,He=s.memoizedState,A.state=He,Mu(s,C,A,T),Nu();var Ge=s.memoizedState;J!==it||He!==Ge||_i||o!==null&&o.dependencies!==null&&Bf(o.dependencies)?(typeof ve=="function"&&(lh(s,m,ve,C),Ge=s.memoizedState),(Je=_i||IS(s,m,Je,C,He,Ge,Ee)||o!==null&&o.dependencies!==null&&Bf(o.dependencies))?(ke||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(C,Ge,Ee),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(C,Ge,Ee)),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=C,s.memoizedState=Ge),A.props=C,A.state=Ge,A.context=Ee,C=Je):(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),C=!1)}return A=C,rm(o,s),C=(s.flags&128)!==0,A||C?(A=s.stateNode,m=C&&typeof m.getDerivedStateFromError!="function"?null:A.render(),s.flags|=1,o!==null&&C?(s.child=Wl(s,o.child,null,T),s.child=Wl(s,null,m,T)):va(o,s,m,T),s.memoizedState=A.state,o=s.child):o=ci(o,s,T),o}function KS(o,s,m,C){return Bl(),s.flags|=256,va(o,s,m,C),s.child}var fh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mh(o){return{baseLanes:o,cachePool:zx()}}function vh(o,s,m){return o=o!==null?o.childLanes&~m:0,s&&(o|=Va),o}function US(o,s,m){var C=s.pendingProps,T=!1,A=(s.flags&128)!==0,J;if((J=A)||(J=o!==null&&o.memoizedState===null?!1:(Dr.current&2)!==0),J&&(T=!0,s.flags&=-129),J=(s.flags&32)!==0,s.flags&=-33,o===null){if(Dn){if(T?ki(s):Li(),(o=br)?(o=e$(o,ao),o=o!==null&&o.data!=="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:Ti!==null?{id:Ho,overflow:Fo}:null,retryLane:536870912,hydrationErrors:null},m=Ex(o),m.return=s,s.child=m,fa=s,br=null)):o=null,o===null)throw zi(s);return Yh(o)?s.lanes=32:s.lanes=536870912,null}var ve=C.children;return C=C.fallback,T?(Li(),T=s.mode,ve=am({mode:"hidden",children:ve},T),C=Al(C,T,m,null),ve.return=s,C.return=s,ve.sibling=C,s.child=ve,C=s.child,C.memoizedState=mh(m),C.childLanes=vh(o,J,m),s.memoizedState=fh,_u(null,C)):(ki(s),gh(s,ve))}var Ee=o.memoizedState;if(Ee!==null&&(ve=Ee.dehydrated,ve!==null)){if(A)s.flags&256?(ki(s),s.flags&=-257,s=ph(o,s,m)):s.memoizedState!==null?(Li(),s.child=o.child,s.flags|=128,s=null):(Li(),ve=C.fallback,T=s.mode,C=am({mode:"visible",children:C.children},T),ve=Al(ve,T,m,null),ve.flags|=2,C.return=s,ve.return=s,C.sibling=ve,s.child=C,Wl(s,o.child,null,m),C=s.child,C.memoizedState=mh(m),C.childLanes=vh(o,J,m),s.memoizedState=fh,s=_u(null,C));else if(ki(s),Yh(ve)){if(J=ve.nextSibling&&ve.nextSibling.dataset,J)var ke=J.dgst;J=ke,C=Error(r(419)),C.stack="",C.digest=J,wu({value:C,source:null,stack:null}),s=ph(o,s,m)}else if(Lr||Vs(o,s,m,!1),J=(m&o.childLanes)!==0,Lr||J){if(J=dr,J!==null&&(C=Ve(J,m),C!==0&&C!==Ee.retryLane))throw Ee.retryLane=C,_l(o,C),za(J,o,C),uh;Xh(ve)||mm(),s=ph(o,s,m)}else Xh(ve)?(s.flags|=192,s.child=o.child,s=null):(o=Ee.treeContext,br=io(ve.nextSibling),fa=s,Dn=!0,Pi=null,ao=!1,o!==null&&Rx(s,o),s=gh(s,C.children),s.flags|=4096);return s}return T?(Li(),ve=C.fallback,T=s.mode,Ee=o.child,ke=Ee.sibling,C=ri(Ee,{mode:"hidden",children:C.children}),C.subtreeFlags=Ee.subtreeFlags&65011712,ke!==null?ve=ri(ke,ve):(ve=Al(ve,T,m,null),ve.flags|=2),ve.return=s,C.return=s,C.sibling=ve,s.child=C,_u(null,C),C=s.child,ve=o.child.memoizedState,ve===null?ve=mh(m):(T=ve.cachePool,T!==null?(Ee=Br._currentValue,T=T.parent!==Ee?{parent:Ee,pool:Ee}:T):T=zx(),ve={baseLanes:ve.baseLanes|m,cachePool:T}),C.memoizedState=ve,C.childLanes=vh(o,J,m),s.memoizedState=fh,_u(o.child,C)):(ki(s),m=o.child,o=m.sibling,m=ri(m,{mode:"visible",children:C.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 gh(o,s){return s=am({mode:"visible",children:s},o.mode),s.return=o,o.child=s}function am(o,s){return o=ka(22,o,null,s),o.lanes=0,o}function ph(o,s,m){return Wl(s,o.child,null,m),o=gh(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function qS(o,s,m){o.lanes|=s;var C=o.alternate;C!==null&&(C.lanes|=s),Mp(o.return,s,m)}function hh(o,s,m,C,T,A){var J=o.memoizedState;J===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:C,tail:m,tailMode:T,treeForkCount:A}:(J.isBackwards=s,J.rendering=null,J.renderingStartTime=0,J.last=C,J.tail=m,J.tailMode=T,J.treeForkCount=A)}function GS(o,s,m){var C=s.pendingProps,T=C.revealOrder,A=C.tail;C=C.children;var J=Dr.current,ve=(J&2)!==0;if(ve?(J=J&1|2,s.flags|=128):J&=1,q(Dr,J),va(o,s,C,m),C=Dn?$u:0,!ve&&o!==null&&(o.flags&128)!==0)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&qS(o,m,s);else if(o.tag===19)qS(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&&Uf(o)===null&&(T=m),m=m.sibling;m=T,m===null?(T=s.child,s.child=null):(T=m.sibling,m.sibling=null),hh(s,!1,T,m,A,C);break;case"backwards":case"unstable_legacy-backwards":for(m=null,T=s.child,s.child=null;T!==null;){if(o=T.alternate,o!==null&&Uf(o)===null){s.child=T;break}o=T.sibling,T.sibling=m,m=T,T=o}hh(s,!0,m,null,A,C);break;case"together":hh(s,!1,null,null,void 0,C);break;default:s.memoizedState=null}return s.child}function ci(o,s,m){if(o!==null&&(s.dependencies=o.dependencies),Vi|=s.lanes,(m&s.childLanes)===0)if(o!==null){if(Vs(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=ri(o,o.pendingProps),s.child=m,m.return=s;o.sibling!==null;)o=o.sibling,m=m.sibling=ri(o,o.pendingProps),m.return=s;m.sibling=null}return s.child}function bh(o,s){return(o.lanes&s)!==0?!0:(o=o.dependencies,!!(o!==null&&Bf(o)))}function cT(o,s,m){switch(s.tag){case 3:X(s,s.stateNode.containerInfo),Di(s,Br,o.memoizedState.cache),Bl();break;case 27:case 5:ae(s);break;case 4:X(s,s.stateNode.containerInfo);break;case 10:Di(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,Vp(s),null;break;case 13:var C=s.memoizedState;if(C!==null)return C.dehydrated!==null?(ki(s),s.flags|=128,null):(m&s.child.childLanes)!==0?US(o,s,m):(ki(s),o=ci(o,s,m),o!==null?o.sibling:null);ki(s);break;case 19:var T=(o.flags&128)!==0;if(C=(m&s.childLanes)!==0,C||(Vs(o,s,m,!1),C=(m&s.childLanes)!==0),T){if(C)return GS(o,s,m);s.flags|=128}if(T=s.memoizedState,T!==null&&(T.rendering=null,T.tail=null,T.lastEffect=null),q(Dr,Dr.current),C)break;return null;case 22:return s.lanes=0,LS(o,s,m,s.pendingProps);case 24:Di(s,Br,o.memoizedState.cache)}return ci(o,s,m)}function XS(o,s,m){if(o!==null)if(o.memoizedProps!==s.pendingProps)Lr=!0;else{if(!bh(o,m)&&(s.flags&128)===0)return Lr=!1,cT(o,s,m);Lr=(o.flags&131072)!==0}else Lr=!1,Dn&&(s.flags&1048576)!==0&&jx(s,$u,s.index);switch(s.lanes=0,s.tag){case 16:e:{var C=s.pendingProps;if(o=Fl(s.elementType),s.type=o,typeof o=="function")$p(o)?(C=Ul(o,C),s.tag=1,s=WS(null,s,o,C,m)):(s.tag=0,s=dh(null,s,o,C,m));else{if(o!=null){var T=o.$$typeof;if(T===R){s.tag=11,s=AS(null,s,o,C,m);break e}else if(T===O){s.tag=14,s=BS(null,s,o,C,m);break e}}throw s=_(o)||o,Error(r(306,s,""))}}return s;case 0:return dh(o,s,s.type,s.pendingProps,m);case 1:return C=s.type,T=Ul(C,s.pendingProps),WS(o,s,C,T,m);case 3:e:{if(X(s,s.stateNode.containerInfo),o===null)throw Error(r(387));C=s.pendingProps;var A=s.memoizedState;T=A.element,Bp(o,s),Mu(s,C,null,m);var J=s.memoizedState;if(C=J.cache,Di(s,Br,C),C!==A.cache&&Tp(s,[Br],m,!0),Nu(),C=J.element,A.isDehydrated)if(A={element:C,isDehydrated:!1,cache:J.cache},s.updateQueue.baseState=A,s.memoizedState=A,s.flags&256){s=KS(o,s,C,m);break e}else if(C!==T){T=to(Error(r(424)),s),wu(T),s=KS(o,s,C,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(br=io(o.firstChild),fa=s,Dn=!0,Pi=null,ao=!0,m=Lx(s,null,C,m),s.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(Bl(),C===T){s=ci(o,s,m);break e}va(o,s,C,m)}s=s.child}return s;case 26:return rm(o,s),o===null?(m=i$(s.type,null,s.pendingProps,null))?s.memoizedState=m:Dn||(m=s.type,o=s.pendingProps,C=Cm(Q.current).createElement(m),C[ft]=s,C[lt]=o,ga(C,m,o),Ze(C),s.stateNode=C):s.memoizedState=i$(s.type,o.memoizedProps,s.pendingProps,o.memoizedState),null;case 27:return ae(s),o===null&&Dn&&(C=s.stateNode=r$(s.type,s.pendingProps,Q.current),fa=s,ao=!0,T=br,Gi(s.type)?(Qh=T,br=io(C.firstChild)):br=T),va(o,s,s.pendingProps.children,m),rm(o,s),o===null&&(s.flags|=4194304),s.child;case 5:return o===null&&Dn&&((T=C=br)&&(C=kT(C,s.type,s.pendingProps,ao),C!==null?(s.stateNode=C,fa=s,br=io(C.firstChild),ao=!1,T=!0):T=!1),T||zi(s)),ae(s),T=s.type,A=s.pendingProps,J=o!==null?o.memoizedProps:null,C=A.children,Uh(T,A)?C=null:J!==null&&Uh(T,J)&&(s.flags|=32),s.memoizedState!==null&&(T=Kp(o,s,eT,null,null,m),Qu._currentValue=T),rm(o,s),va(o,s,C,m),s.child;case 6:return o===null&&Dn&&((o=m=br)&&(m=LT(m,s.pendingProps,ao),m!==null?(s.stateNode=m,fa=s,br=null,o=!0):o=!1),o||zi(s)),null;case 13:return US(o,s,m);case 4:return X(s,s.stateNode.containerInfo),C=s.pendingProps,o===null?s.child=Wl(s,null,C,m):va(o,s,C,m),s.child;case 11:return AS(o,s,s.type,s.pendingProps,m);case 7:return va(o,s,s.pendingProps,m),s.child;case 8:return va(o,s,s.pendingProps.children,m),s.child;case 12:return va(o,s,s.pendingProps.children,m),s.child;case 10:return C=s.pendingProps,Di(s,s.type,C.value),va(o,s,C.children,m),s.child;case 9:return T=s.type._context,C=s.pendingProps.children,Ll(s),T=ma(T),C=C(T),s.flags|=1,va(o,s,C,m),s.child;case 14:return BS(o,s,s.type,s.pendingProps,m);case 15:return kS(o,s,s.type,s.pendingProps,m);case 19:return GS(o,s,m);case 31:return sT(o,s,m);case 22:return LS(o,s,m,s.pendingProps);case 24:return Ll(s),C=ma(Br),o===null?(T=Dp(),T===null&&(T=dr,A=Pp(),T.pooledCache=A,A.refCount++,A!==null&&(T.pooledCacheLanes|=m),T=A),s.memoizedState={parent:C,cache:T},Ap(s),Di(s,Br,T)):((o.lanes&m)!==0&&(Bp(o,s),Mu(s,null,null,m),Nu()),T=o.memoizedState,A=s.memoizedState,T.parent!==C?(T={parent:C,cache:C},s.memoizedState=T,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=T),Di(s,Br,C)):(C=A.cache,Di(s,Br,C),C!==T.cache&&Tp(s,[Br],m,!0))),va(o,s,s.pendingProps.children,m),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function ui(o){o.flags|=4}function yh(o,s,m,C,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(S2())o.flags|=8192;else throw Vl=Ff,_p}else o.flags&=-16777217}function YS(o,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!d$(s))if(S2())o.flags|=8192;else throw Vl=Ff,_p}function om(o,s){s!==null&&(o.flags|=4),o.flags&16384&&(s=o.tag!==22?zt():536870912,o.lanes|=s,tc|=s)}function Au(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 C=null;m!==null;)m.alternate!==null&&(C=m),m=m.sibling;C===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:C.sibling=null}}function yr(o){var s=o.alternate!==null&&o.alternate.child===o.child,m=0,C=0;if(s)for(var T=o.child;T!==null;)m|=T.lanes|T.childLanes,C|=T.subtreeFlags&65011712,C|=T.flags&65011712,T.return=o,T=T.sibling;else for(T=o.child;T!==null;)m|=T.lanes|T.childLanes,C|=T.subtreeFlags,C|=T.flags,T.return=o,T=T.sibling;return o.subtreeFlags|=C,o.childLanes=m,s}function uT(o,s,m){var C=s.pendingProps;switch(jp(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yr(s),null;case 1:return yr(s),null;case 3:return m=s.stateNode,C=null,o!==null&&(C=o.memoizedState.cache),s.memoizedState.cache!==C&&(s.flags|=2048),ii(Br),oe(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(o===null||o.child===null)&&(Fs(s)?ui(s):o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Ip())),yr(s),null;case 26:var T=s.type,A=s.memoizedState;return o===null?(ui(s),A!==null?(yr(s),YS(s,A)):(yr(s),yh(s,T,null,C,m))):A?A!==o.memoizedState?(ui(s),yr(s),YS(s,A)):(yr(s),s.flags&=-16777217):(o=o.memoizedProps,o!==C&&ui(s),yr(s),yh(s,T,o,C,m)),null;case 27:if(re(s),m=Q.current,T=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==C&&ui(s);else{if(!C){if(s.stateNode===null)throw Error(r(166));return yr(s),null}o=K.current,Fs(s)?Ix(s):(o=r$(T,C,m),s.stateNode=o,ui(s))}return yr(s),null;case 5:if(re(s),T=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==C&&ui(s);else{if(!C){if(s.stateNode===null)throw Error(r(166));return yr(s),null}if(A=K.current,Fs(s))Ix(s);else{var J=Cm(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 C.is=="string"?J.createElement("select",{is:C.is}):J.createElement("select"),C.multiple?A.multiple=!0:C.size&&(A.size=C.size);break;default:A=typeof C.is=="string"?J.createElement(T,{is:C.is}):J.createElement(T)}}A[ft]=s,A[lt]=C;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(ga(A,T,C),T){case"button":case"input":case"select":case"textarea":C=!!C.autoFocus;break e;case"img":C=!0;break e;default:C=!1}C&&ui(s)}}return yr(s),yh(s,s.type,o===null?null:o.memoizedProps,s.pendingProps,m),null;case 6:if(o&&s.stateNode!=null)o.memoizedProps!==C&&ui(s);else{if(typeof C!="string"&&s.stateNode===null)throw Error(r(166));if(o=Q.current,Fs(s)){if(o=s.stateNode,m=s.memoizedProps,C=null,T=fa,T!==null)switch(T.tag){case 27:case 5:C=T.memoizedProps}o[ft]=s,o=!!(o.nodeValue===m||C!==null&&C.suppressHydrationWarning===!0||U2(o.nodeValue,m)),o||zi(s,!0)}else o=Cm(o).createTextNode(C),o[ft]=s,s.stateNode=o}return yr(s),null;case 31:if(m=s.memoizedState,o===null||o.memoizedState!==null){if(C=Fs(s),m!==null){if(o===null){if(!C)throw Error(r(318));if(o=s.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[ft]=s}else Bl(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;yr(s),o=!1}else m=Ip(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=m),o=!0;if(!o)return s.flags&256?(Ha(s),s):(Ha(s),null);if((s.flags&128)!==0)throw Error(r(558))}return yr(s),null;case 13:if(C=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(T=Fs(s),C!==null&&C.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 Bl(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;yr(s),T=!1}else T=Ip(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=T),T=!0;if(!T)return s.flags&256?(Ha(s),s):(Ha(s),null)}return Ha(s),(s.flags&128)!==0?(s.lanes=m,s):(m=C!==null,o=o!==null&&o.memoizedState!==null,m&&(C=s.child,T=null,C.alternate!==null&&C.alternate.memoizedState!==null&&C.alternate.memoizedState.cachePool!==null&&(T=C.alternate.memoizedState.cachePool.pool),A=null,C.memoizedState!==null&&C.memoizedState.cachePool!==null&&(A=C.memoizedState.cachePool.pool),A!==T&&(C.flags|=2048)),m!==o&&m&&(s.child.flags|=8192),om(s,s.updateQueue),yr(s),null);case 4:return oe(),o===null&&Hh(s.stateNode.containerInfo),yr(s),null;case 10:return ii(s.type),yr(s),null;case 19:if(G(Dr),C=s.memoizedState,C===null)return yr(s),null;if(T=(s.flags&128)!==0,A=C.rendering,A===null)if(T)Au(C,!1);else{if(Ir!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(A=Uf(o),A!==null){for(s.flags|=128,Au(C,!1),o=A.updateQueue,s.updateQueue=o,om(s,o),s.subtreeFlags=0,o=m,m=s.child;m!==null;)wx(m,o),m=m.sibling;return q(Dr,Dr.current&1|2),Dn&&ai(s,C.treeForkCount),s.child}o=o.sibling}C.tail!==null&&ye()>um&&(s.flags|=128,T=!0,Au(C,!1),s.lanes=4194304)}else{if(!T)if(o=Uf(A),o!==null){if(s.flags|=128,T=!0,o=o.updateQueue,s.updateQueue=o,om(s,o),Au(C,!0),C.tail===null&&C.tailMode==="hidden"&&!A.alternate&&!Dn)return yr(s),null}else 2*ye()-C.renderingStartTime>um&&m!==536870912&&(s.flags|=128,T=!0,Au(C,!1),s.lanes=4194304);C.isBackwards?(A.sibling=s.child,s.child=A):(o=C.last,o!==null?o.sibling=A:s.child=A,C.last=A)}return C.tail!==null?(o=C.tail,C.rendering=o,C.tail=o.sibling,C.renderingStartTime=ye(),o.sibling=null,m=Dr.current,q(Dr,T?m&1|2:m&1),Dn&&ai(s,C.treeForkCount),o):(yr(s),null);case 22:case 23:return Ha(s),Fp(),C=s.memoizedState!==null,o!==null?o.memoizedState!==null!==C&&(s.flags|=8192):C&&(s.flags|=8192),C?(m&536870912)!==0&&(s.flags&128)===0&&(yr(s),s.subtreeFlags&6&&(s.flags|=8192)):yr(s),m=s.updateQueue,m!==null&&om(s,m.retryQueue),m=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),C=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(C=s.memoizedState.cachePool.pool),C!==m&&(s.flags|=2048),o!==null&&G(Hl),null;case 24:return m=null,o!==null&&(m=o.memoizedState.cache),s.memoizedState.cache!==m&&(s.flags|=2048),ii(Br),yr(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function dT(o,s){switch(jp(s),s.tag){case 1:return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return ii(Br),oe(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 26:case 27:case 5:return re(s),null;case 31:if(s.memoizedState!==null){if(Ha(s),s.alternate===null)throw Error(r(340));Bl()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 13:if(Ha(s),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Bl()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return G(Dr),null;case 4:return oe(),null;case 10:return ii(s.type),null;case 22:case 23:return Ha(s),Fp(),o!==null&&G(Hl),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 24:return ii(Br),null;case 25:return null;default:return null}}function QS(o,s){switch(jp(s),s.tag){case 3:ii(Br),oe();break;case 26:case 27:case 5:re(s);break;case 4:oe();break;case 31:s.memoizedState!==null&&Ha(s);break;case 13:Ha(s);break;case 19:G(Dr);break;case 10:ii(s.type);break;case 22:case 23:Ha(s),Fp(),o!==null&&G(Hl);break;case 24:ii(Br)}}function Bu(o,s){try{var m=s.updateQueue,C=m!==null?m.lastEffect:null;if(C!==null){var T=C.next;m=T;do{if((m.tag&o)===o){C=void 0;var A=m.create,J=m.inst;C=A(),J.destroy=C}m=m.next}while(m!==T)}}catch(ve){rr(s,s.return,ve)}}function Hi(o,s,m){try{var C=s.updateQueue,T=C!==null?C.lastEffect:null;if(T!==null){var A=T.next;C=A;do{if((C.tag&o)===o){var J=C.inst,ve=J.destroy;if(ve!==void 0){J.destroy=void 0,T=s;var Ee=m,ke=ve;try{ke()}catch(Je){rr(T,Ee,Je)}}}C=C.next}while(C!==A)}}catch(Je){rr(s,s.return,Je)}}function ZS(o){var s=o.updateQueue;if(s!==null){var m=o.stateNode;try{Fx(s,m)}catch(C){rr(o,o.return,C)}}}function JS(o,s,m){m.props=Ul(o.type,o.memoizedProps),m.state=o.memoizedState;try{m.componentWillUnmount()}catch(C){rr(o,s,C)}}function ku(o,s){try{var m=o.ref;if(m!==null){switch(o.tag){case 26:case 27:case 5:var C=o.stateNode;break;case 30:C=o.stateNode;break;default:C=o.stateNode}typeof m=="function"?o.refCleanup=m(C):m.current=C}}catch(T){rr(o,s,T)}}function Vo(o,s){var m=o.ref,C=o.refCleanup;if(m!==null)if(typeof C=="function")try{C()}catch(T){rr(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){rr(o,s,T)}else m.current=null}function e2(o){var s=o.type,m=o.memoizedProps,C=o.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":m.autoFocus&&C.focus();break e;case"img":m.src?C.src=m.src:m.srcSet&&(C.srcset=m.srcSet)}}catch(T){rr(o,o.return,T)}}function Ch(o,s,m){try{var C=o.stateNode;PT(C,o.type,m,s),C[lt]=s}catch(T){rr(o,o.return,T)}}function t2(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Gi(o.type)||o.tag===4}function xh(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||t2(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&&Gi(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 Sh(o,s,m){var C=o.tag;if(C===5||C===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=qn));else if(C!==4&&(C===27&&Gi(o.type)&&(m=o.stateNode,s=null),o=o.child,o!==null))for(Sh(o,s,m),o=o.sibling;o!==null;)Sh(o,s,m),o=o.sibling}function im(o,s,m){var C=o.tag;if(C===5||C===6)o=o.stateNode,s?m.insertBefore(o,s):m.appendChild(o);else if(C!==4&&(C===27&&Gi(o.type)&&(m=o.stateNode),o=o.child,o!==null))for(im(o,s,m),o=o.sibling;o!==null;)im(o,s,m),o=o.sibling}function n2(o){var s=o.stateNode,m=o.memoizedProps;try{for(var C=o.type,T=s.attributes;T.length;)s.removeAttributeNode(T[0]);ga(s,C,m),s[ft]=o,s[lt]=m}catch(A){rr(o,o.return,A)}}var di=!1,Hr=!1,$h=!1,r2=typeof WeakSet=="function"?WeakSet:Set,ra=null;function fT(o,s){if(o=o.containerInfo,Wh=jm,o=gx(o),pp(o)){if("selectionStart"in o)var m={start:o.selectionStart,end:o.selectionEnd};else e:{m=(m=o.ownerDocument)&&m.defaultView||window;var C=m.getSelection&&m.getSelection();if(C&&C.rangeCount!==0){m=C.anchorNode;var T=C.anchorOffset,A=C.focusNode;C=C.focusOffset;try{m.nodeType,A.nodeType}catch{m=null;break e}var J=0,ve=-1,Ee=-1,ke=0,Je=0,it=o,He=null;t:for(;;){for(var Ge;it!==m||T!==0&&it.nodeType!==3||(ve=J+T),it!==A||C!==0&&it.nodeType!==3||(Ee=J+C),it.nodeType===3&&(J+=it.nodeValue.length),(Ge=it.firstChild)!==null;)He=it,it=Ge;for(;;){if(it===o)break t;if(He===m&&++ke===T&&(ve=J),He===A&&++Je===C&&(Ee=J),(Ge=it.nextSibling)!==null)break;it=He,He=it.parentNode}it=Ge}m=ve===-1||Ee===-1?null:{start:ve,end:Ee}}else m=null}m=m||{start:0,end:0}}else m=null;for(Kh={focusedElem:o,selectionRange:m},jm=!1,ra=s;ra!==null;)if(s=ra,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,ra=o;else for(;ra!==null;){switch(s=ra,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,C=m.stateNode;try{var Kt=Ul(m.type,T);o=C.getSnapshotBeforeUpdate(Kt,A),C.__reactInternalSnapshotBeforeUpdate=o}catch(cn){rr(m,m.return,cn)}}break;case 3:if((o&1024)!==0){if(o=s.stateNode.containerInfo,m=o.nodeType,m===9)Gh(o);else if(m===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Gh(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,ra=o;break}ra=s.return}}function a2(o,s,m){var C=m.flags;switch(m.tag){case 0:case 11:case 15:mi(o,m),C&4&&Bu(5,m);break;case 1:if(mi(o,m),C&4)if(o=m.stateNode,s===null)try{o.componentDidMount()}catch(J){rr(m,m.return,J)}else{var T=Ul(m.type,s.memoizedProps);s=s.memoizedState;try{o.componentDidUpdate(T,s,o.__reactInternalSnapshotBeforeUpdate)}catch(J){rr(m,m.return,J)}}C&64&&ZS(m),C&512&&ku(m,m.return);break;case 3:if(mi(o,m),C&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{Fx(o,s)}catch(J){rr(m,m.return,J)}}break;case 27:s===null&&C&4&&n2(m);case 26:case 5:mi(o,m),s===null&&C&4&&e2(m),C&512&&ku(m,m.return);break;case 12:mi(o,m);break;case 31:mi(o,m),C&4&&l2(o,m);break;case 13:mi(o,m),C&4&&s2(o,m),C&64&&(o=m.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(m=xT.bind(null,m),HT(o,m))));break;case 22:if(C=m.memoizedState!==null||di,!C){s=s!==null&&s.memoizedState!==null||Hr,T=di;var A=Hr;di=C,(Hr=s)&&!A?vi(o,m,(m.subtreeFlags&8772)!==0):mi(o,m),di=T,Hr=A}break;case 30:break;default:mi(o,m)}}function o2(o){var s=o.alternate;s!==null&&(o.alternate=null,o2(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&fn(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 xr=null,Na=!1;function fi(o,s,m){for(m=m.child;m!==null;)i2(o,s,m),m=m.sibling}function i2(o,s,m){if(Re&&typeof Re.onCommitFiberUnmount=="function")try{Re.onCommitFiberUnmount(Ae,m)}catch{}switch(m.tag){case 26:Hr||Vo(m,s),fi(o,s,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:Hr||Vo(m,s);var C=xr,T=Na;Gi(m.type)&&(xr=m.stateNode,Na=!1),fi(o,s,m),Gu(m.stateNode),xr=C,Na=T;break;case 5:Hr||Vo(m,s);case 6:if(C=xr,T=Na,xr=null,fi(o,s,m),xr=C,Na=T,xr!==null)if(Na)try{(xr.nodeType===9?xr.body:xr.nodeName==="HTML"?xr.ownerDocument.body:xr).removeChild(m.stateNode)}catch(A){rr(m,s,A)}else try{xr.removeChild(m.stateNode)}catch(A){rr(m,s,A)}break;case 18:xr!==null&&(Na?(o=xr,Z2(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,m.stateNode),cc(o)):Z2(xr,m.stateNode));break;case 4:C=xr,T=Na,xr=m.stateNode.containerInfo,Na=!0,fi(o,s,m),xr=C,Na=T;break;case 0:case 11:case 14:case 15:Hi(2,m,s),Hr||Hi(4,m,s),fi(o,s,m);break;case 1:Hr||(Vo(m,s),C=m.stateNode,typeof C.componentWillUnmount=="function"&&JS(m,s,C)),fi(o,s,m);break;case 21:fi(o,s,m);break;case 22:Hr=(C=Hr)||m.memoizedState!==null,fi(o,s,m),Hr=C;break;default:fi(o,s,m)}}function l2(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{cc(o)}catch(m){rr(s,s.return,m)}}}function s2(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{cc(o)}catch(m){rr(s,s.return,m)}}function mT(o){switch(o.tag){case 31:case 13:case 19:var s=o.stateNode;return s===null&&(s=o.stateNode=new r2),s;case 22:return o=o.stateNode,s=o._retryCache,s===null&&(s=o._retryCache=new r2),s;default:throw Error(r(435,o.tag))}}function lm(o,s){var m=mT(o);s.forEach(function(C){if(!m.has(C)){m.add(C);var T=ST.bind(null,o,C);C.then(T,T)}})}function Ma(o,s){var m=s.deletions;if(m!==null)for(var C=0;C<m.length;C++){var T=m[C],A=o,J=s,ve=J;e:for(;ve!==null;){switch(ve.tag){case 27:if(Gi(ve.type)){xr=ve.stateNode,Na=!1;break e}break;case 5:xr=ve.stateNode,Na=!1;break e;case 3:case 4:xr=ve.stateNode.containerInfo,Na=!0;break e}ve=ve.return}if(xr===null)throw Error(r(160));i2(A,J,T),xr=null,Na=!1,A=T.alternate,A!==null&&(A.return=null),T.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)c2(s,o),s=s.sibling}var yo=null;function c2(o,s){var m=o.alternate,C=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Ma(s,o),Ta(o),C&4&&(Hi(3,o,o.return),Bu(3,o),Hi(5,o,o.return));break;case 1:Ma(s,o),Ta(o),C&512&&(Hr||m===null||Vo(m,m.return)),C&64&&di&&(o=o.updateQueue,o!==null&&(C=o.callbacks,C!==null&&(m=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=m===null?C:m.concat(C))));break;case 26:var T=yo;if(Ma(s,o),Ta(o),C&512&&(Hr||m===null||Vo(m,m.return)),C&4){var A=m!==null?m.memoizedState:null;if(C=o.memoizedState,m===null)if(C===null)if(o.stateNode===null){e:{C=o.type,m=o.memoizedProps,T=T.ownerDocument||T;t:switch(C){case"title":A=T.getElementsByTagName("title")[0],(!A||A[Xt]||A[ft]||A.namespaceURI==="http://www.w3.org/2000/svg"||A.hasAttribute("itemprop"))&&(A=T.createElement(C),T.head.insertBefore(A,T.querySelector("head > title"))),ga(A,C,m),A[ft]=o,Ze(A),C=A;break e;case"link":var J=c$("link","href",T).get(C+(m.href||""));if(J){for(var ve=0;ve<J.length;ve++)if(A=J[ve],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(ve,1);break t}}A=T.createElement(C),ga(A,C,m),T.head.appendChild(A);break;case"meta":if(J=c$("meta","content",T).get(C+(m.content||""))){for(ve=0;ve<J.length;ve++)if(A=J[ve],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(ve,1);break t}}A=T.createElement(C),ga(A,C,m),T.head.appendChild(A);break;default:throw Error(r(468,C))}A[ft]=o,Ze(A),C=A}o.stateNode=C}else u$(T,o.type,o.stateNode);else o.stateNode=s$(T,C,o.memoizedProps);else A!==C?(A===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):A.count--,C===null?u$(T,o.type,o.stateNode):s$(T,C,o.memoizedProps)):C===null&&o.stateNode!==null&&Ch(o,o.memoizedProps,m.memoizedProps)}break;case 27:Ma(s,o),Ta(o),C&512&&(Hr||m===null||Vo(m,m.return)),m!==null&&C&4&&Ch(o,o.memoizedProps,m.memoizedProps);break;case 5:if(Ma(s,o),Ta(o),C&512&&(Hr||m===null||Vo(m,m.return)),o.flags&32){T=o.stateNode;try{er(T,"")}catch(Kt){rr(o,o.return,Kt)}}C&4&&o.stateNode!=null&&(T=o.memoizedProps,Ch(o,T,m!==null?m.memoizedProps:T)),C&1024&&($h=!0);break;case 6:if(Ma(s,o),Ta(o),C&4){if(o.stateNode===null)throw Error(r(162));C=o.memoizedProps,m=o.stateNode;try{m.nodeValue=C}catch(Kt){rr(o,o.return,Kt)}}break;case 3:if($m=null,T=yo,yo=xm(s.containerInfo),Ma(s,o),yo=T,Ta(o),C&4&&m!==null&&m.memoizedState.isDehydrated)try{cc(s.containerInfo)}catch(Kt){rr(o,o.return,Kt)}$h&&($h=!1,u2(o));break;case 4:C=yo,yo=xm(o.stateNode.containerInfo),Ma(s,o),Ta(o),yo=C;break;case 12:Ma(s,o),Ta(o);break;case 31:Ma(s,o),Ta(o),C&4&&(C=o.updateQueue,C!==null&&(o.updateQueue=null,lm(o,C)));break;case 13:Ma(s,o),Ta(o),o.child.flags&8192&&o.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(cm=ye()),C&4&&(C=o.updateQueue,C!==null&&(o.updateQueue=null,lm(o,C)));break;case 22:T=o.memoizedState!==null;var Ee=m!==null&&m.memoizedState!==null,ke=di,Je=Hr;if(di=ke||T,Hr=Je||Ee,Ma(s,o),Hr=Je,di=ke,Ta(o),C&8192)e:for(s=o.stateNode,s._visibility=T?s._visibility&-2:s._visibility|1,T&&(m===null||Ee||di||Hr||ql(o)),m=null,s=o;;){if(s.tag===5||s.tag===26){if(m===null){Ee=m=s;try{if(A=Ee.stateNode,T)J=A.style,typeof J.setProperty=="function"?J.setProperty("display","none","important"):J.display="none";else{ve=Ee.stateNode;var it=Ee.memoizedProps.style,He=it!=null&&it.hasOwnProperty("display")?it.display:null;ve.style.display=He==null||typeof He=="boolean"?"":(""+He).trim()}}catch(Kt){rr(Ee,Ee.return,Kt)}}}else if(s.tag===6){if(m===null){Ee=s;try{Ee.stateNode.nodeValue=T?"":Ee.memoizedProps}catch(Kt){rr(Ee,Ee.return,Kt)}}}else if(s.tag===18){if(m===null){Ee=s;try{var Ge=Ee.stateNode;T?J2(Ge,!0):J2(Ee.stateNode,!1)}catch(Kt){rr(Ee,Ee.return,Kt)}}}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}C&4&&(C=o.updateQueue,C!==null&&(m=C.retryQueue,m!==null&&(C.retryQueue=null,lm(o,m))));break;case 19:Ma(s,o),Ta(o),C&4&&(C=o.updateQueue,C!==null&&(o.updateQueue=null,lm(o,C)));break;case 30:break;case 21:break;default:Ma(s,o),Ta(o)}}function Ta(o){var s=o.flags;if(s&2){try{for(var m,C=o.return;C!==null;){if(t2(C)){m=C;break}C=C.return}if(m==null)throw Error(r(160));switch(m.tag){case 27:var T=m.stateNode,A=xh(o);im(o,A,T);break;case 5:var J=m.stateNode;m.flags&32&&(er(J,""),m.flags&=-33);var ve=xh(o);im(o,ve,J);break;case 3:case 4:var Ee=m.stateNode.containerInfo,ke=xh(o);Sh(o,ke,Ee);break;default:throw Error(r(161))}}catch(Je){rr(o,o.return,Je)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function u2(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var s=o;u2(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),o=o.sibling}}function mi(o,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)a2(o,s.alternate,s),s=s.sibling}function ql(o){for(o=o.child;o!==null;){var s=o;switch(s.tag){case 0:case 11:case 14:case 15:Hi(4,s,s.return),ql(s);break;case 1:Vo(s,s.return);var m=s.stateNode;typeof m.componentWillUnmount=="function"&&JS(s,s.return,m),ql(s);break;case 27:Gu(s.stateNode);case 26:case 5:Vo(s,s.return),ql(s);break;case 22:s.memoizedState===null&&ql(s);break;case 30:ql(s);break;default:ql(s)}o=o.sibling}}function vi(o,s,m){for(m=m&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var C=s.alternate,T=o,A=s,J=A.flags;switch(A.tag){case 0:case 11:case 15:vi(T,A,m),Bu(4,A);break;case 1:if(vi(T,A,m),C=A,T=C.stateNode,typeof T.componentDidMount=="function")try{T.componentDidMount()}catch(ke){rr(C,C.return,ke)}if(C=A,T=C.updateQueue,T!==null){var ve=C.stateNode;try{var Ee=T.shared.hiddenCallbacks;if(Ee!==null)for(T.shared.hiddenCallbacks=null,T=0;T<Ee.length;T++)Hx(Ee[T],ve)}catch(ke){rr(C,C.return,ke)}}m&&J&64&&ZS(A),ku(A,A.return);break;case 27:n2(A);case 26:case 5:vi(T,A,m),m&&C===null&&J&4&&e2(A),ku(A,A.return);break;case 12:vi(T,A,m);break;case 31:vi(T,A,m),m&&J&4&&l2(T,A);break;case 13:vi(T,A,m),m&&J&4&&s2(T,A);break;case 22:A.memoizedState===null&&vi(T,A,m),ku(A,A.return);break;case 30:break;default:vi(T,A,m)}s=s.sibling}}function wh(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&&Eu(m))}function Eh(o,s){o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&Eu(o))}function Co(o,s,m,C){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)d2(o,s,m,C),s=s.sibling}function d2(o,s,m,C){var T=s.flags;switch(s.tag){case 0:case 11:case 15:Co(o,s,m,C),T&2048&&Bu(9,s);break;case 1:Co(o,s,m,C);break;case 3:Co(o,s,m,C),T&2048&&(o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&Eu(o)));break;case 12:if(T&2048){Co(o,s,m,C),o=s.stateNode;try{var A=s.memoizedProps,J=A.id,ve=A.onPostCommit;typeof ve=="function"&&ve(J,s.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(Ee){rr(s,s.return,Ee)}}else Co(o,s,m,C);break;case 31:Co(o,s,m,C);break;case 13:Co(o,s,m,C);break;case 23:break;case 22:A=s.stateNode,J=s.alternate,s.memoizedState!==null?A._visibility&2?Co(o,s,m,C):Lu(o,s):A._visibility&2?Co(o,s,m,C):(A._visibility|=2,Zs(o,s,m,C,(s.subtreeFlags&10256)!==0||!1)),T&2048&&wh(J,s);break;case 24:Co(o,s,m,C),T&2048&&Eh(s.alternate,s);break;default:Co(o,s,m,C)}}function Zs(o,s,m,C,T){for(T=T&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var A=o,J=s,ve=m,Ee=C,ke=J.flags;switch(J.tag){case 0:case 11:case 15:Zs(A,J,ve,Ee,T),Bu(8,J);break;case 23:break;case 22:var Je=J.stateNode;J.memoizedState!==null?Je._visibility&2?Zs(A,J,ve,Ee,T):Lu(A,J):(Je._visibility|=2,Zs(A,J,ve,Ee,T)),T&&ke&2048&&wh(J.alternate,J);break;case 24:Zs(A,J,ve,Ee,T),T&&ke&2048&&Eh(J.alternate,J);break;default:Zs(A,J,ve,Ee,T)}s=s.sibling}}function Lu(o,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var m=o,C=s,T=C.flags;switch(C.tag){case 22:Lu(m,C),T&2048&&wh(C.alternate,C);break;case 24:Lu(m,C),T&2048&&Eh(C.alternate,C);break;default:Lu(m,C)}s=s.sibling}}var Hu=8192;function Js(o,s,m){if(o.subtreeFlags&Hu)for(o=o.child;o!==null;)f2(o,s,m),o=o.sibling}function f2(o,s,m){switch(o.tag){case 26:Js(o,s,m),o.flags&Hu&&o.memoizedState!==null&&JT(m,yo,o.memoizedState,o.memoizedProps);break;case 5:Js(o,s,m);break;case 3:case 4:var C=yo;yo=xm(o.stateNode.containerInfo),Js(o,s,m),yo=C;break;case 22:o.memoizedState===null&&(C=o.alternate,C!==null&&C.memoizedState!==null?(C=Hu,Hu=16777216,Js(o,s,m),Hu=C):Js(o,s,m));break;default:Js(o,s,m)}}function m2(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 Fu(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var m=0;m<s.length;m++){var C=s[m];ra=C,g2(C,o)}m2(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)v2(o),o=o.sibling}function v2(o){switch(o.tag){case 0:case 11:case 15:Fu(o),o.flags&2048&&Hi(9,o,o.return);break;case 3:Fu(o);break;case 12:Fu(o);break;case 22:var s=o.stateNode;o.memoizedState!==null&&s._visibility&2&&(o.return===null||o.return.tag!==13)?(s._visibility&=-3,sm(o)):Fu(o);break;default:Fu(o)}}function sm(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var m=0;m<s.length;m++){var C=s[m];ra=C,g2(C,o)}m2(o)}for(o=o.child;o!==null;){switch(s=o,s.tag){case 0:case 11:case 15:Hi(8,s,s.return),sm(s);break;case 22:m=s.stateNode,m._visibility&2&&(m._visibility&=-3,sm(s));break;default:sm(s)}o=o.sibling}}function g2(o,s){for(;ra!==null;){var m=ra;switch(m.tag){case 0:case 11:case 15:Hi(8,m,s);break;case 23:case 22:if(m.memoizedState!==null&&m.memoizedState.cachePool!==null){var C=m.memoizedState.cachePool.pool;C!=null&&C.refCount++}break;case 24:Eu(m.memoizedState.cache)}if(C=m.child,C!==null)C.return=m,ra=C;else e:for(m=o;ra!==null;){C=ra;var T=C.sibling,A=C.return;if(o2(C),C===m){ra=null;break e}if(T!==null){T.return=A,ra=T;break e}ra=A}}}var vT={getCacheForType:function(o){var s=ma(Br),m=s.data.get(o);return m===void 0&&(m=o(),s.data.set(o,m)),m},cacheSignal:function(){return ma(Br).controller.signal}},gT=typeof WeakMap=="function"?WeakMap:Map,Gn=0,dr=null,On=null,Nn=0,nr=0,Fa=null,Fi=!1,ec=!1,Oh=!1,gi=0,Ir=0,Vi=0,Gl=0,jh=0,Va=0,tc=0,Vu=null,Pa=null,Rh=!1,cm=0,p2=0,um=1/0,dm=null,Wi=null,Gr=0,Ki=null,nc=null,pi=0,Ih=0,Nh=null,h2=null,Wu=0,Mh=null;function Wa(){return(Gn&2)!==0&&Nn!==0?Nn&-Nn:z.T!==null?Ah():Tt()}function b2(){if(Va===0)if((Nn&536870912)===0||Dn){var o=Ct;Ct<<=1,(Ct&3932160)===0&&(Ct=262144),Va=o}else Va=536870912;return o=La.current,o!==null&&(o.flags|=32),Va}function za(o,s,m){(o===dr&&(nr===2||nr===9)||o.cancelPendingCommit!==null)&&(rc(o,0),Ui(o,Nn,Va,!1)),ct(o,m),((Gn&2)===0||o!==dr)&&(o===dr&&((Gn&2)===0&&(Gl|=m),Ir===4&&Ui(o,Nn,Va,!1)),Wo(o))}function y2(o,s,m){if((Gn&6)!==0)throw Error(r(327));var C=!m&&(s&127)===0&&(s&o.expiredLanes)===0||at(o,s),T=C?bT(o,s):Ph(o,s,!0),A=C;do{if(T===0){ec&&!C&&Ui(o,s,0,!1);break}else{if(m=o.current.alternate,A&&!pT(m)){T=Ph(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 ve=o;T=Vu;var Ee=ve.current.memoizedState.isDehydrated;if(Ee&&(rc(ve,J).flags|=256),J=Ph(ve,J,!1),J!==2){if(Oh&&!Ee){ve.errorRecoveryDisabledLanes|=A,Gl|=A,T=4;break e}A=Pa,Pa=T,A!==null&&(Pa===null?Pa=A:Pa.push.apply(Pa,A))}T=J}if(A=!1,T!==2)continue}}if(T===1){rc(o,0),Ui(o,s,0,!0);break}e:{switch(C=o,A=T,A){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Ui(C,s,Va,!Fi);break e;case 2:Pa=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(T=cm+300-ye(),10<T)){if(Ui(C,s,Va,!Fi),dt(C,0,!0)!==0)break e;pi=s,C.timeoutHandle=Y2(C2.bind(null,C,m,Pa,dm,Rh,s,Va,Gl,tc,Fi,A,"Throttled",-0,0),T);break e}C2(C,m,Pa,dm,Rh,s,Va,Gl,tc,Fi,A,null,-0,0)}}break}while(!0);Wo(o)}function C2(o,s,m,C,T,A,J,ve,Ee,ke,Je,it,He,Ge){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:qn},f2(s,A,it);var Kt=(A&62914560)===A?cm-ye():(A&4194048)===A?p2-ye():0;if(Kt=e5(it,Kt),Kt!==null){pi=A,o.cancelPendingCommit=Kt(R2.bind(null,o,s,A,m,C,T,J,ve,Ee,Je,it,null,He,Ge)),Ui(o,A,J,!ke);return}}R2(o,s,A,m,C,T,J,ve,Ee)}function pT(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 C=0;C<m.length;C++){var T=m[C],A=T.getSnapshot;T=T.value;try{if(!Ba(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 Ui(o,s,m,C){s&=~jh,s&=~Gl,o.suspendedLanes|=s,o.pingedLanes&=~s,C&&(o.warmLanes|=s),C=o.expirationTimes;for(var T=s;0<T;){var A=31-we(T),J=1<<A;C[A]=-1,T&=~J}m!==0&&xt(o,m,s)}function fm(){return(Gn&6)===0?(Ku(0),!1):!0}function Th(){if(On!==null){if(nr===0)var o=On.return;else o=On,oi=kl=null,Gp(o),qs=null,ju=0,o=On;for(;o!==null;)QS(o.alternate,o),o=o.return;On=null}}function rc(o,s){var m=o.timeoutHandle;m!==-1&&(o.timeoutHandle=-1,_T(m)),m=o.cancelPendingCommit,m!==null&&(o.cancelPendingCommit=null,m()),pi=0,Th(),dr=o,On=m=ri(o.current,null),Nn=s,nr=0,Fa=null,Fi=!1,ec=at(o,s),Oh=!1,tc=Va=jh=Gl=Vi=Ir=0,Pa=Vu=null,Rh=!1,(s&8)!==0&&(s|=s&32);var C=o.entangledLanes;if(C!==0)for(o=o.entanglements,C&=s;0<C;){var T=31-we(C),A=1<<T;s|=o[T],C&=~A}return gi=s,Pf(),m}function x2(o,s){xn=null,z.H=Du,s===Us||s===Hf?(s=Ax(),nr=3):s===_p?(s=Ax(),nr=4):nr=s===uh?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Fa=s,On===null&&(Ir=1,tm(o,to(s,o.current)))}function S2(){var o=La.current;return o===null?!0:(Nn&4194048)===Nn?oo===null:(Nn&62914560)===Nn||(Nn&536870912)!==0?o===oo:!1}function $2(){var o=z.H;return z.H=Du,o===null?Du:o}function w2(){var o=z.A;return z.A=vT,o}function mm(){Ir=4,Fi||(Nn&4194048)!==Nn&&La.current!==null||(ec=!0),(Vi&134217727)===0&&(Gl&134217727)===0||dr===null||Ui(dr,Nn,Va,!1)}function Ph(o,s,m){var C=Gn;Gn|=2;var T=$2(),A=w2();(dr!==o||Nn!==s)&&(dm=null,rc(o,s)),s=!1;var J=Ir;e:do try{if(nr!==0&&On!==null){var ve=On,Ee=Fa;switch(nr){case 8:Th(),J=6;break e;case 3:case 2:case 9:case 6:La.current===null&&(s=!0);var ke=nr;if(nr=0,Fa=null,ac(o,ve,Ee,ke),m&&ec){J=0;break e}break;default:ke=nr,nr=0,Fa=null,ac(o,ve,Ee,ke)}}hT(),J=Ir;break}catch(Je){x2(o,Je)}while(!0);return s&&o.shellSuspendCounter++,oi=kl=null,Gn=C,z.H=T,z.A=A,On===null&&(dr=null,Nn=0,Pf()),J}function hT(){for(;On!==null;)E2(On)}function bT(o,s){var m=Gn;Gn|=2;var C=$2(),T=w2();dr!==o||Nn!==s?(dm=null,um=ye()+500,rc(o,s)):ec=at(o,s);e:do try{if(nr!==0&&On!==null){s=On;var A=Fa;t:switch(nr){case 1:nr=0,Fa=null,ac(o,s,A,1);break;case 2:case 9:if(Dx(A)){nr=0,Fa=null,O2(s);break}s=function(){nr!==2&&nr!==9||dr!==o||(nr=7),Wo(o)},A.then(s,s);break e;case 3:nr=7;break e;case 4:nr=5;break e;case 7:Dx(A)?(nr=0,Fa=null,O2(s)):(nr=0,Fa=null,ac(o,s,A,7));break;case 5:var J=null;switch(On.tag){case 26:J=On.memoizedState;case 5:case 27:var ve=On;if(J?d$(J):ve.stateNode.complete){nr=0,Fa=null;var Ee=ve.sibling;if(Ee!==null)On=Ee;else{var ke=ve.return;ke!==null?(On=ke,vm(ke)):On=null}break t}}nr=0,Fa=null,ac(o,s,A,5);break;case 6:nr=0,Fa=null,ac(o,s,A,6);break;case 8:Th(),Ir=6;break e;default:throw Error(r(462))}}yT();break}catch(Je){x2(o,Je)}while(!0);return oi=kl=null,z.H=C,z.A=T,Gn=m,On!==null?0:(dr=null,Nn=0,Pf(),Ir)}function yT(){for(;On!==null&&!$e();)E2(On)}function E2(o){var s=XS(o.alternate,o,gi);o.memoizedProps=o.pendingProps,s===null?vm(o):On=s}function O2(o){var s=o,m=s.alternate;switch(s.tag){case 15:case 0:s=VS(m,s,s.pendingProps,s.type,void 0,Nn);break;case 11:s=VS(m,s,s.pendingProps,s.type.render,s.ref,Nn);break;case 5:Gp(s);default:QS(m,s),s=On=wx(s,gi),s=XS(m,s,gi)}o.memoizedProps=o.pendingProps,s===null?vm(o):On=s}function ac(o,s,m,C){oi=kl=null,Gp(s),qs=null,ju=0;var T=s.return;try{if(lT(o,T,s,m,Nn)){Ir=1,tm(o,to(m,o.current)),On=null;return}}catch(A){if(T!==null)throw On=T,A;Ir=1,tm(o,to(m,o.current)),On=null;return}s.flags&32768?(Dn||C===1?o=!0:ec||(Nn&536870912)!==0?o=!1:(Fi=o=!0,(C===2||C===9||C===3||C===6)&&(C=La.current,C!==null&&C.tag===13&&(C.flags|=16384))),j2(s,o)):vm(s)}function vm(o){var s=o;do{if((s.flags&32768)!==0){j2(s,Fi);return}o=s.return;var m=uT(s.alternate,s,gi);if(m!==null){On=m;return}if(s=s.sibling,s!==null){On=s;return}On=s=o}while(s!==null);Ir===0&&(Ir=5)}function j2(o,s){do{var m=dT(o.alternate,o);if(m!==null){m.flags&=32767,On=m;return}if(m=o.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!s&&(o=o.sibling,o!==null)){On=o;return}On=o=m}while(o!==null);Ir=6,On=null}function R2(o,s,m,C,T,A,J,ve,Ee){o.cancelPendingCommit=null;do gm();while(Gr!==0);if((Gn&6)!==0)throw Error(r(327));if(s!==null){if(s===o.current)throw Error(r(177));if(A=s.lanes|s.childLanes,A|=xp,wt(o,m,A,J,ve,Ee),o===dr&&(On=dr=null,Nn=0),nc=s,Ki=o,pi=m,Ih=A,Nh=T,h2=C,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,$T(Ke,function(){return P2(),null})):(o.callbackNode=null,o.callbackPriority=0),C=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||C){C=z.T,z.T=null,T=D.p,D.p=2,J=Gn,Gn|=4;try{fT(o,s,m)}finally{Gn=J,D.p=T,z.T=C}}Gr=1,I2(),N2(),M2()}}function I2(){if(Gr===1){Gr=0;var o=Ki,s=nc,m=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||m){m=z.T,z.T=null;var C=D.p;D.p=2;var T=Gn;Gn|=4;try{c2(s,o);var A=Kh,J=gx(o.containerInfo),ve=A.focusedElem,Ee=A.selectionRange;if(J!==ve&&ve&&ve.ownerDocument&&vx(ve.ownerDocument.documentElement,ve)){if(Ee!==null&&pp(ve)){var ke=Ee.start,Je=Ee.end;if(Je===void 0&&(Je=ke),"selectionStart"in ve)ve.selectionStart=ke,ve.selectionEnd=Math.min(Je,ve.value.length);else{var it=ve.ownerDocument||document,He=it&&it.defaultView||window;if(He.getSelection){var Ge=He.getSelection(),Kt=ve.textContent.length,cn=Math.min(Ee.start,Kt),sr=Ee.end===void 0?cn:Math.min(Ee.end,Kt);!Ge.extend&&cn>sr&&(J=sr,sr=cn,cn=J);var De=mx(ve,cn),Ie=mx(ve,sr);if(De&&Ie&&(Ge.rangeCount!==1||Ge.anchorNode!==De.node||Ge.anchorOffset!==De.offset||Ge.focusNode!==Ie.node||Ge.focusOffset!==Ie.offset)){var Be=it.createRange();Be.setStart(De.node,De.offset),Ge.removeAllRanges(),cn>sr?(Ge.addRange(Be),Ge.extend(Ie.node,Ie.offset)):(Be.setEnd(Ie.node,Ie.offset),Ge.addRange(Be))}}}}for(it=[],Ge=ve;Ge=Ge.parentNode;)Ge.nodeType===1&&it.push({element:Ge,left:Ge.scrollLeft,top:Ge.scrollTop});for(typeof ve.focus=="function"&&ve.focus(),ve=0;ve<it.length;ve++){var rt=it[ve];rt.element.scrollLeft=rt.left,rt.element.scrollTop=rt.top}}jm=!!Wh,Kh=Wh=null}finally{Gn=T,D.p=C,z.T=m}}o.current=s,Gr=2}}function N2(){if(Gr===2){Gr=0;var o=Ki,s=nc,m=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||m){m=z.T,z.T=null;var C=D.p;D.p=2;var T=Gn;Gn|=4;try{a2(o,s.alternate,s)}finally{Gn=T,D.p=C,z.T=m}}Gr=3}}function M2(){if(Gr===4||Gr===3){Gr=0,xe();var o=Ki,s=nc,m=pi,C=h2;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Gr=5:(Gr=0,nc=Ki=null,T2(o,o.pendingLanes));var T=o.pendingLanes;if(T===0&&(Wi=null),mt(m),s=s.stateNode,Re&&typeof Re.onCommitFiberRoot=="function")try{Re.onCommitFiberRoot(Ae,s,void 0,(s.current.flags&128)===128)}catch{}if(C!==null){s=z.T,T=D.p,D.p=2,z.T=null;try{for(var A=o.onRecoverableError,J=0;J<C.length;J++){var ve=C[J];A(ve.value,{componentStack:ve.stack})}}finally{z.T=s,D.p=T}}(pi&3)!==0&&gm(),Wo(o),T=o.pendingLanes,(m&261930)!==0&&(T&42)!==0?o===Mh?Wu++:(Wu=0,Mh=o):Wu=0,Ku(0)}}function T2(o,s){(o.pooledCacheLanes&=s)===0&&(s=o.pooledCache,s!=null&&(o.pooledCache=null,Eu(s)))}function gm(){return I2(),N2(),M2(),P2()}function P2(){if(Gr!==5)return!1;var o=Ki,s=Ih;Ih=0;var m=mt(pi),C=z.T,T=D.p;try{D.p=32>m?32:m,z.T=null,m=Nh,Nh=null;var A=Ki,J=pi;if(Gr=0,nc=Ki=null,pi=0,(Gn&6)!==0)throw Error(r(331));var ve=Gn;if(Gn|=4,v2(A.current),d2(A,A.current,J,m),Gn=ve,Ku(0,!1),Re&&typeof Re.onPostCommitFiberRoot=="function")try{Re.onPostCommitFiberRoot(Ae,A)}catch{}return!0}finally{D.p=T,z.T=C,T2(o,s)}}function z2(o,s,m){s=to(m,s),s=ch(o.stateNode,s,2),o=Bi(o,s,2),o!==null&&(ct(o,2),Wo(o))}function rr(o,s,m){if(o.tag===3)z2(o,o,m);else for(;s!==null;){if(s.tag===3){z2(s,o,m);break}else if(s.tag===1){var C=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof C.componentDidCatch=="function"&&(Wi===null||!Wi.has(C))){o=to(m,o),m=DS(2),C=Bi(s,m,2),C!==null&&(_S(m,C,s,o),ct(C,2),Wo(C));break}}s=s.return}}function zh(o,s,m){var C=o.pingCache;if(C===null){C=o.pingCache=new gT;var T=new Set;C.set(s,T)}else T=C.get(s),T===void 0&&(T=new Set,C.set(s,T));T.has(m)||(Oh=!0,T.add(m),o=CT.bind(null,o,s,m),s.then(o,o))}function CT(o,s,m){var C=o.pingCache;C!==null&&C.delete(s),o.pingedLanes|=o.suspendedLanes&m,o.warmLanes&=~m,dr===o&&(Nn&m)===m&&(Ir===4||Ir===3&&(Nn&62914560)===Nn&&300>ye()-cm?(Gn&2)===0&&rc(o,0):jh|=m,tc===Nn&&(tc=0)),Wo(o)}function D2(o,s){s===0&&(s=zt()),o=_l(o,s),o!==null&&(ct(o,s),Wo(o))}function xT(o){var s=o.memoizedState,m=0;s!==null&&(m=s.retryLane),D2(o,m)}function ST(o,s){var m=0;switch(o.tag){case 31:case 13:var C=o.stateNode,T=o.memoizedState;T!==null&&(m=T.retryLane);break;case 19:C=o.stateNode;break;case 22:C=o.stateNode._retryCache;break;default:throw Error(r(314))}C!==null&&C.delete(s),D2(o,m)}function $T(o,s){return Se(o,s)}var pm=null,oc=null,Dh=!1,hm=!1,_h=!1,qi=0;function Wo(o){o!==oc&&o.next===null&&(oc===null?pm=oc=o:oc=oc.next=o),hm=!0,Dh||(Dh=!0,ET())}function Ku(o,s){if(!_h&&hm){_h=!0;do for(var m=!1,C=pm;C!==null;){if(o!==0){var T=C.pendingLanes;if(T===0)var A=0;else{var J=C.suspendedLanes,ve=C.pingedLanes;A=(1<<31-we(42|o)+1)-1,A&=T&~(J&~ve),A=A&201326741?A&201326741|1:A?A|2:0}A!==0&&(m=!0,k2(C,A))}else A=Nn,A=dt(C,C===dr?A:0,C.cancelPendingCommit!==null||C.timeoutHandle!==-1),(A&3)===0||at(C,A)||(m=!0,k2(C,A));C=C.next}while(m);_h=!1}}function wT(){_2()}function _2(){hm=Dh=!1;var o=0;qi!==0&&DT()&&(o=qi);for(var s=ye(),m=null,C=pm;C!==null;){var T=C.next,A=A2(C,s);A===0?(C.next=null,m===null?pm=T:m.next=T,T===null&&(oc=m)):(m=C,(o!==0||(A&3)!==0)&&(hm=!0)),C=T}Gr!==0&&Gr!==5||Ku(o),qi!==0&&(qi=0)}function A2(o,s){for(var m=o.suspendedLanes,C=o.pingedLanes,T=o.expirationTimes,A=o.pendingLanes&-62914561;0<A;){var J=31-we(A),ve=1<<J,Ee=T[J];Ee===-1?((ve&m)===0||(ve&C)!==0)&&(T[J]=bt(ve,s)):Ee<=s&&(o.expiredLanes|=ve),A&=~ve}if(s=dr,m=Nn,m=dt(o,o===s?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),C=o.callbackNode,m===0||o===s&&(nr===2||nr===9)||o.cancelPendingCommit!==null)return C!==null&&C!==null&&be(C),o.callbackNode=null,o.callbackPriority=0;if((m&3)===0||at(o,m)){if(s=m&-m,s===o.callbackPriority)return s;switch(C!==null&&be(C),mt(m)){case 2:case 8:m=Qe;break;case 32:m=Ke;break;case 268435456:m=Xe;break;default:m=Ke}return C=B2.bind(null,o),m=Se(m,C),o.callbackPriority=s,o.callbackNode=m,s}return C!==null&&C!==null&&be(C),o.callbackPriority=2,o.callbackNode=null,2}function B2(o,s){if(Gr!==0&&Gr!==5)return o.callbackNode=null,o.callbackPriority=0,null;var m=o.callbackNode;if(gm()&&o.callbackNode!==m)return null;var C=Nn;return C=dt(o,o===dr?C:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),C===0?null:(y2(o,C,s),A2(o,ye()),o.callbackNode!=null&&o.callbackNode===m?B2.bind(null,o):null)}function k2(o,s){if(gm())return null;y2(o,s,!0)}function ET(){AT(function(){(Gn&6)!==0?Se(_e,wT):_2()})}function Ah(){if(qi===0){var o=Ws;o===0&&(o=tt,tt<<=1,(tt&261888)===0&&(tt=256)),qi=o}return qi}function L2(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:tr(""+o)}function H2(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 OT(o,s,m,C,T){if(s==="submit"&&m&&m.stateNode===T){var A=L2((T[lt]||null).action),J=C.submitter;J&&(s=(s=J[lt]||null)?L2(s.formAction):J.getAttribute("formAction"),s!==null&&(A=s,J=null));var ve=new If("action","action",null,C,T);o.push({event:ve,listeners:[{instance:null,listener:function(){if(C.defaultPrevented){if(qi!==0){var Ee=J?H2(T,J):new FormData(T);rh(m,{pending:!0,data:Ee,method:T.method,action:A},null,Ee)}}else typeof A=="function"&&(ve.preventDefault(),Ee=J?H2(T,J):new FormData(T),rh(m,{pending:!0,data:Ee,method:T.method,action:A},A,Ee))},currentTarget:T}]})}}for(var Bh=0;Bh<Cp.length;Bh++){var kh=Cp[Bh],jT=kh.toLowerCase(),RT=kh[0].toUpperCase()+kh.slice(1);bo(jT,"on"+RT)}bo(bx,"onAnimationEnd"),bo(yx,"onAnimationIteration"),bo(Cx,"onAnimationStart"),bo("dblclick","onDoubleClick"),bo("focusin","onFocus"),bo("focusout","onBlur"),bo(WM,"onTransitionRun"),bo(KM,"onTransitionStart"),bo(UM,"onTransitionCancel"),bo(xx,"onTransitionEnd"),gt("onMouseEnter",["mouseout","mouseover"]),gt("onMouseLeave",["mouseout","mouseover"]),gt("onPointerEnter",["pointerout","pointerover"]),gt("onPointerLeave",["pointerout","pointerover"]),Ut("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ut("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ut("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ut("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ut("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ut("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Uu="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(" "),IT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Uu));function F2(o,s){s=(s&4)!==0;for(var m=0;m<o.length;m++){var C=o[m],T=C.event;C=C.listeners;e:{var A=void 0;if(s)for(var J=C.length-1;0<=J;J--){var ve=C[J],Ee=ve.instance,ke=ve.currentTarget;if(ve=ve.listener,Ee!==A&&T.isPropagationStopped())break e;A=ve,T.currentTarget=ke;try{A(T)}catch(Je){Tf(Je)}T.currentTarget=null,A=Ee}else for(J=0;J<C.length;J++){if(ve=C[J],Ee=ve.instance,ke=ve.currentTarget,ve=ve.listener,Ee!==A&&T.isPropagationStopped())break e;A=ve,T.currentTarget=ke;try{A(T)}catch(Je){Tf(Je)}T.currentTarget=null,A=Ee}}}}function jn(o,s){var m=s[Gt];m===void 0&&(m=s[Gt]=new Set);var C=o+"__bubble";m.has(C)||(V2(s,o,2,!1),m.add(C))}function Lh(o,s,m){var C=0;s&&(C|=4),V2(m,o,C,s)}var bm="_reactListening"+Math.random().toString(36).slice(2);function Hh(o){if(!o[bm]){o[bm]=!0,ut.forEach(function(m){m!=="selectionchange"&&(IT.has(m)||Lh(m,!1,o),Lh(m,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[bm]||(s[bm]=!0,Lh("selectionchange",!1,s))}}function V2(o,s,m,C){switch(b$(s)){case 2:var T=r5;break;case 8:T=a5;break;default:T=n0}m=T.bind(null,s,m,o),T=void 0,!or||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(T=!0),C?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 Fh(o,s,m,C,T){var A=C;if((s&1)===0&&(s&2)===0&&C!==null)e:for(;;){if(C===null)return;var J=C.tag;if(J===3||J===4){var ve=C.stateNode.containerInfo;if(ve===T)break;if(J===4)for(J=C.return;J!==null;){var Ee=J.tag;if((Ee===3||Ee===4)&&J.stateNode.containerInfo===T)return;J=J.return}for(;ve!==null;){if(J=st(ve),J===null)return;if(Ee=J.tag,Ee===5||Ee===6||Ee===26||Ee===27){C=A=J;continue e}ve=ve.parentNode}}C=C.return}zs(function(){var ke=A,Je=na(m),it=[];e:{var He=Sx.get(o);if(He!==void 0){var Ge=If,Kt=o;switch(o){case"keypress":if(ni(m)===0)break e;case"keydown":case"keyup":Ge=SM;break;case"focusin":Kt="focus",Ge=dp;break;case"focusout":Kt="blur",Ge=dp;break;case"beforeblur":case"afterblur":Ge=dp;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":Ge=QC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ge=uM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ge=EM;break;case bx:case yx:case Cx:Ge=mM;break;case xx:Ge=jM;break;case"scroll":case"scrollend":Ge=sM;break;case"wheel":Ge=IM;break;case"copy":case"cut":case"paste":Ge=gM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ge=JC;break;case"toggle":case"beforetoggle":Ge=MM}var cn=(s&4)!==0,sr=!cn&&(o==="scroll"||o==="scrollend"),De=cn?He!==null?He+"Capture":null:He;cn=[];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||De===null||(rt=Ft(Ie,De),rt!=null&&cn.push(qu(Ie,rt,Be))),sr)break;Ie=Ie.return}0<cn.length&&(He=new Ge(He,Kt,null,m,Je),it.push({event:He,listeners:cn}))}}if((s&7)===0){e:{if(He=o==="mouseover"||o==="pointerover",Ge=o==="mouseout"||o==="pointerout",He&&m!==qr&&(Kt=m.relatedTarget||m.fromElement)&&(st(Kt)||Kt[At]))break e;if((Ge||He)&&(He=Je.window===Je?Je:(He=Je.ownerDocument)?He.defaultView||He.parentWindow:window,Ge?(Kt=m.relatedTarget||m.toElement,Ge=ke,Kt=Kt?st(Kt):null,Kt!==null&&(sr=l(Kt),cn=Kt.tag,Kt!==sr||cn!==5&&cn!==27&&cn!==6)&&(Kt=null)):(Ge=null,Kt=ke),Ge!==Kt)){if(cn=QC,rt="onMouseLeave",De="onMouseEnter",Ie="mouse",(o==="pointerout"||o==="pointerover")&&(cn=JC,rt="onPointerLeave",De="onPointerEnter",Ie="pointer"),sr=Ge==null?He:yt(Ge),Be=Kt==null?He:yt(Kt),He=new cn(rt,Ie+"leave",Ge,m,Je),He.target=sr,He.relatedTarget=Be,rt=null,st(Je)===ke&&(cn=new cn(De,Ie+"enter",Kt,m,Je),cn.target=Be,cn.relatedTarget=sr,rt=cn),sr=rt,Ge&&Kt)t:{for(cn=NT,De=Ge,Ie=Kt,Be=0,rt=De;rt;rt=cn(rt))Be++;rt=0;for(var nn=Ie;nn;nn=cn(nn))rt++;for(;0<Be-rt;)De=cn(De),Be--;for(;0<rt-Be;)Ie=cn(Ie),rt--;for(;Be--;){if(De===Ie||Ie!==null&&De===Ie.alternate){cn=De;break t}De=cn(De),Ie=cn(Ie)}cn=null}else cn=null;Ge!==null&&W2(it,He,Ge,cn,!1),Kt!==null&&sr!==null&&W2(it,sr,Kt,cn,!0)}}e:{if(He=ke?yt(ke):window,Ge=He.nodeName&&He.nodeName.toLowerCase(),Ge==="select"||Ge==="input"&&He.type==="file")var Vn=lx;else if(ox(He))if(sx)Vn=HM;else{Vn=kM;var Yt=BM}else Ge=He.nodeName,!Ge||Ge.toLowerCase()!=="input"||He.type!=="checkbox"&&He.type!=="radio"?ke&&It(ke.elementType)&&(Vn=lx):Vn=LM;if(Vn&&(Vn=Vn(o,ke))){ix(it,Vn,m,Je);break e}Yt&&Yt(o,He,ke),o==="focusout"&&ke&&He.type==="number"&&ke.memoizedProps.value!=null&&gn(He,"number",He.value)}switch(Yt=ke?yt(ke):window,o){case"focusin":(ox(Yt)||Yt.contentEditable==="true")&&(_s=Yt,hp=ke,Su=null);break;case"focusout":Su=hp=_s=null;break;case"mousedown":bp=!0;break;case"contextmenu":case"mouseup":case"dragend":bp=!1,px(it,m,Je);break;case"selectionchange":if(VM)break;case"keydown":case"keyup":px(it,m,Je)}var $n;if(mp)e:{switch(o){case"compositionstart":var Mn="onCompositionStart";break e;case"compositionend":Mn="onCompositionEnd";break e;case"compositionupdate":Mn="onCompositionUpdate";break e}Mn=void 0}else Ds?rx(o,m)&&(Mn="onCompositionEnd"):o==="keydown"&&m.keyCode===229&&(Mn="onCompositionStart");Mn&&(ex&&m.locale!=="ko"&&(Ds||Mn!=="onCompositionStart"?Mn==="onCompositionEnd"&&Ds&&($n=gu()):(Ln=Je,Ni="value"in Ln?Ln.value:Ln.textContent,Ds=!0)),Yt=ym(ke,Mn),0<Yt.length&&(Mn=new ZC(Mn,o,null,m,Je),it.push({event:Mn,listeners:Yt}),$n?Mn.data=$n:($n=ax(m),$n!==null&&(Mn.data=$n)))),($n=PM?zM(o,m):DM(o,m))&&(Mn=ym(ke,"onBeforeInput"),0<Mn.length&&(Yt=new ZC("onBeforeInput","beforeinput",null,m,Je),it.push({event:Yt,listeners:Mn}),Yt.data=$n)),OT(it,o,ke,m,Je)}F2(it,s)})}function qu(o,s,m){return{instance:o,listener:s,currentTarget:m}}function ym(o,s){for(var m=s+"Capture",C=[];o!==null;){var T=o,A=T.stateNode;if(T=T.tag,T!==5&&T!==26&&T!==27||A===null||(T=Ft(o,m),T!=null&&C.unshift(qu(o,T,A)),T=Ft(o,s),T!=null&&C.push(qu(o,T,A))),o.tag===3)return C;o=o.return}return[]}function NT(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function W2(o,s,m,C,T){for(var A=s._reactName,J=[];m!==null&&m!==C;){var ve=m,Ee=ve.alternate,ke=ve.stateNode;if(ve=ve.tag,Ee!==null&&Ee===C)break;ve!==5&&ve!==26&&ve!==27||ke===null||(Ee=ke,T?(ke=Ft(m,A),ke!=null&&J.unshift(qu(m,ke,Ee))):T||(ke=Ft(m,A),ke!=null&&J.push(qu(m,ke,Ee)))),m=m.return}J.length!==0&&o.push({event:s,listeners:J})}var MT=/\r\n?/g,TT=/\u0000|\uFFFD/g;function K2(o){return(typeof o=="string"?o:""+o).replace(MT,`
|
|
49
|
-
`).replace(TT,"")}function U2(o,s){return s=K2(s),K2(o)===s}function lr(o,s,m,C,T,A){switch(m){case"children":typeof C=="string"?s==="body"||s==="textarea"&&C===""||er(o,C):(typeof C=="number"||typeof C=="bigint")&&s!=="body"&&er(o,""+C);break;case"className":Un(o,"class",C);break;case"tabIndex":Un(o,"tabindex",C);break;case"dir":case"role":case"viewBox":case"width":case"height":Un(o,m,C);break;case"style":pt(o,C,A);break;case"data":if(s!=="object"){Un(o,"data",C);break}case"src":case"href":if(C===""&&(s!=="a"||m!=="href")){o.removeAttribute(m);break}if(C==null||typeof C=="function"||typeof C=="symbol"||typeof C=="boolean"){o.removeAttribute(m);break}C=tr(""+C),o.setAttribute(m,C);break;case"action":case"formAction":if(typeof C=="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"&&lr(o,s,"name",T.name,T,null),lr(o,s,"formEncType",T.formEncType,T,null),lr(o,s,"formMethod",T.formMethod,T,null),lr(o,s,"formTarget",T.formTarget,T,null)):(lr(o,s,"encType",T.encType,T,null),lr(o,s,"method",T.method,T,null),lr(o,s,"target",T.target,T,null)));if(C==null||typeof C=="symbol"||typeof C=="boolean"){o.removeAttribute(m);break}C=tr(""+C),o.setAttribute(m,C);break;case"onClick":C!=null&&(o.onclick=qn);break;case"onScroll":C!=null&&jn("scroll",o);break;case"onScrollEnd":C!=null&&jn("scrollend",o);break;case"dangerouslySetInnerHTML":if(C!=null){if(typeof C!="object"||!("__html"in C))throw Error(r(61));if(m=C.__html,m!=null){if(T.children!=null)throw Error(r(60));o.innerHTML=m}}break;case"multiple":o.multiple=C&&typeof C!="function"&&typeof C!="symbol";break;case"muted":o.muted=C&&typeof C!="function"&&typeof C!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(C==null||typeof C=="function"||typeof C=="boolean"||typeof C=="symbol"){o.removeAttribute("xlink:href");break}m=tr(""+C),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":C!=null&&typeof C!="function"&&typeof C!="symbol"?o.setAttribute(m,""+C):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":C&&typeof C!="function"&&typeof C!="symbol"?o.setAttribute(m,""):o.removeAttribute(m);break;case"capture":case"download":C===!0?o.setAttribute(m,""):C!==!1&&C!=null&&typeof C!="function"&&typeof C!="symbol"?o.setAttribute(m,C):o.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":C!=null&&typeof C!="function"&&typeof C!="symbol"&&!isNaN(C)&&1<=C?o.setAttribute(m,C):o.removeAttribute(m);break;case"rowSpan":case"start":C==null||typeof C=="function"||typeof C=="symbol"||isNaN(C)?o.removeAttribute(m):o.setAttribute(m,C);break;case"popover":jn("beforetoggle",o),jn("toggle",o),Pn(o,"popover",C);break;case"xlinkActuate":Rn(o,"http://www.w3.org/1999/xlink","xlink:actuate",C);break;case"xlinkArcrole":Rn(o,"http://www.w3.org/1999/xlink","xlink:arcrole",C);break;case"xlinkRole":Rn(o,"http://www.w3.org/1999/xlink","xlink:role",C);break;case"xlinkShow":Rn(o,"http://www.w3.org/1999/xlink","xlink:show",C);break;case"xlinkTitle":Rn(o,"http://www.w3.org/1999/xlink","xlink:title",C);break;case"xlinkType":Rn(o,"http://www.w3.org/1999/xlink","xlink:type",C);break;case"xmlBase":Rn(o,"http://www.w3.org/XML/1998/namespace","xml:base",C);break;case"xmlLang":Rn(o,"http://www.w3.org/XML/1998/namespace","xml:lang",C);break;case"xmlSpace":Rn(o,"http://www.w3.org/XML/1998/namespace","xml:space",C);break;case"is":Pn(o,"is",C);break;case"innerText":case"textContent":break;default:(!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(m=vn.get(m)||m,Pn(o,m,C))}}function Vh(o,s,m,C,T,A){switch(m){case"style":pt(o,C,A);break;case"dangerouslySetInnerHTML":if(C!=null){if(typeof C!="object"||!("__html"in C))throw Error(r(61));if(m=C.__html,m!=null){if(T.children!=null)throw Error(r(60));o.innerHTML=m}}break;case"children":typeof C=="string"?er(o,C):(typeof C=="number"||typeof C=="bigint")&&er(o,""+C);break;case"onScroll":C!=null&&jn("scroll",o);break;case"onScrollEnd":C!=null&&jn("scrollend",o);break;case"onClick":C!=null&&(o.onclick=qn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dt.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 C=="function")){typeof A!="function"&&A!==null&&(m in o?o[m]=null:o.hasAttribute(m)&&o.removeAttribute(m)),o.addEventListener(s,C,T);break e}m in o?o[m]=C:C===!0?o.setAttribute(m,""):Pn(o,m,C)}}}function ga(o,s,m){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":jn("error",o),jn("load",o);var C=!1,T=!1,A;for(A in m)if(m.hasOwnProperty(A)){var J=m[A];if(J!=null)switch(A){case"src":C=!0;break;case"srcSet":T=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:lr(o,s,A,J,m,null)}}T&&lr(o,s,"srcSet",m.srcSet,m,null),C&&lr(o,s,"src",m.src,m,null);return;case"input":jn("invalid",o);var ve=A=J=T=null,Ee=null,ke=null;for(C in m)if(m.hasOwnProperty(C)){var Je=m[C];if(Je!=null)switch(C){case"name":T=Je;break;case"type":J=Je;break;case"checked":Ee=Je;break;case"defaultChecked":ke=Je;break;case"value":A=Je;break;case"defaultValue":ve=Je;break;case"children":case"dangerouslySetInnerHTML":if(Je!=null)throw Error(r(137,s));break;default:lr(o,s,C,Je,m,null)}}_t(o,A,ve,Ee,ke,J,T,!1);return;case"select":jn("invalid",o),C=J=A=null;for(T in m)if(m.hasOwnProperty(T)&&(ve=m[T],ve!=null))switch(T){case"value":A=ve;break;case"defaultValue":J=ve;break;case"multiple":C=ve;default:lr(o,s,T,ve,m,null)}s=A,m=J,o.multiple=!!C,s!=null?In(o,!!C,s,!1):m!=null&&In(o,!!C,m,!0);return;case"textarea":jn("invalid",o),A=T=C=null;for(J in m)if(m.hasOwnProperty(J)&&(ve=m[J],ve!=null))switch(J){case"value":C=ve;break;case"defaultValue":T=ve;break;case"children":A=ve;break;case"dangerouslySetInnerHTML":if(ve!=null)throw Error(r(91));break;default:lr(o,s,J,ve,m,null)}Er(o,C,T,A);return;case"option":for(Ee in m)if(m.hasOwnProperty(Ee)&&(C=m[Ee],C!=null))switch(Ee){case"selected":o.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:lr(o,s,Ee,C,m,null)}return;case"dialog":jn("beforetoggle",o),jn("toggle",o),jn("cancel",o),jn("close",o);break;case"iframe":case"object":jn("load",o);break;case"video":case"audio":for(C=0;C<Uu.length;C++)jn(Uu[C],o);break;case"image":jn("error",o),jn("load",o);break;case"details":jn("toggle",o);break;case"embed":case"source":case"link":jn("error",o),jn("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)&&(C=m[ke],C!=null))switch(ke){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:lr(o,s,ke,C,m,null)}return;default:if(It(s)){for(Je in m)m.hasOwnProperty(Je)&&(C=m[Je],C!==void 0&&Vh(o,s,Je,C,m,void 0));return}}for(ve in m)m.hasOwnProperty(ve)&&(C=m[ve],C!=null&&lr(o,s,ve,C,m,null))}function PT(o,s,m,C){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,ve=null,Ee=null,ke=null,Je=null;for(Ge in m){var it=m[Ge];if(m.hasOwnProperty(Ge)&&it!=null)switch(Ge){case"checked":break;case"value":break;case"defaultValue":Ee=it;default:C.hasOwnProperty(Ge)||lr(o,s,Ge,null,C,it)}}for(var He in C){var Ge=C[He];if(it=m[He],C.hasOwnProperty(He)&&(Ge!=null||it!=null))switch(He){case"type":A=Ge;break;case"name":T=Ge;break;case"checked":ke=Ge;break;case"defaultChecked":Je=Ge;break;case"value":J=Ge;break;case"defaultValue":ve=Ge;break;case"children":case"dangerouslySetInnerHTML":if(Ge!=null)throw Error(r(137,s));break;default:Ge!==it&&lr(o,s,He,Ge,C,it)}}Pt(o,J,ve,Ee,ke,Je,A,T);return;case"select":Ge=J=ve=He=null;for(A in m)if(Ee=m[A],m.hasOwnProperty(A)&&Ee!=null)switch(A){case"value":break;case"multiple":Ge=Ee;default:C.hasOwnProperty(A)||lr(o,s,A,null,C,Ee)}for(T in C)if(A=C[T],Ee=m[T],C.hasOwnProperty(T)&&(A!=null||Ee!=null))switch(T){case"value":He=A;break;case"defaultValue":ve=A;break;case"multiple":J=A;default:A!==Ee&&lr(o,s,T,A,C,Ee)}s=ve,m=J,C=Ge,He!=null?In(o,!!m,He,!1):!!C!=!!m&&(s!=null?In(o,!!m,s,!0):In(o,!!m,m?[]:"",!1));return;case"textarea":Ge=He=null;for(ve in m)if(T=m[ve],m.hasOwnProperty(ve)&&T!=null&&!C.hasOwnProperty(ve))switch(ve){case"value":break;case"children":break;default:lr(o,s,ve,null,C,T)}for(J in C)if(T=C[J],A=m[J],C.hasOwnProperty(J)&&(T!=null||A!=null))switch(J){case"value":He=T;break;case"defaultValue":Ge=T;break;case"children":break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(r(91));break;default:T!==A&&lr(o,s,J,T,C,A)}Jn(o,He,Ge);return;case"option":for(var Kt in m)if(He=m[Kt],m.hasOwnProperty(Kt)&&He!=null&&!C.hasOwnProperty(Kt))switch(Kt){case"selected":o.selected=!1;break;default:lr(o,s,Kt,null,C,He)}for(Ee in C)if(He=C[Ee],Ge=m[Ee],C.hasOwnProperty(Ee)&&He!==Ge&&(He!=null||Ge!=null))switch(Ee){case"selected":o.selected=He&&typeof He!="function"&&typeof He!="symbol";break;default:lr(o,s,Ee,He,C,Ge)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var cn in m)He=m[cn],m.hasOwnProperty(cn)&&He!=null&&!C.hasOwnProperty(cn)&&lr(o,s,cn,null,C,He);for(ke in C)if(He=C[ke],Ge=m[ke],C.hasOwnProperty(ke)&&He!==Ge&&(He!=null||Ge!=null))switch(ke){case"children":case"dangerouslySetInnerHTML":if(He!=null)throw Error(r(137,s));break;default:lr(o,s,ke,He,C,Ge)}return;default:if(It(s)){for(var sr in m)He=m[sr],m.hasOwnProperty(sr)&&He!==void 0&&!C.hasOwnProperty(sr)&&Vh(o,s,sr,void 0,C,He);for(Je in C)He=C[Je],Ge=m[Je],!C.hasOwnProperty(Je)||He===Ge||He===void 0&&Ge===void 0||Vh(o,s,Je,He,C,Ge);return}}for(var De in m)He=m[De],m.hasOwnProperty(De)&&He!=null&&!C.hasOwnProperty(De)&&lr(o,s,De,null,C,He);for(it in C)He=C[it],Ge=m[it],!C.hasOwnProperty(it)||He===Ge||He==null&&Ge==null||lr(o,s,it,He,C,Ge)}function q2(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function zT(){if(typeof performance.getEntriesByType=="function"){for(var o=0,s=0,m=performance.getEntriesByType("resource"),C=0;C<m.length;C++){var T=m[C],A=T.transferSize,J=T.initiatorType,ve=T.duration;if(A&&ve&&q2(J)){for(J=0,ve=T.responseEnd,C+=1;C<m.length;C++){var Ee=m[C],ke=Ee.startTime;if(ke>ve)break;var Je=Ee.transferSize,it=Ee.initiatorType;Je&&q2(it)&&(Ee=Ee.responseEnd,J+=Je*(Ee<ve?1:(ve-ke)/(Ee-ke)))}if(--C,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 Wh=null,Kh=null;function Cm(o){return o.nodeType===9?o:o.ownerDocument}function G2(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 X2(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 Uh(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 qh=null;function DT(){var o=window.event;return o&&o.type==="popstate"?o===qh?!1:(qh=o,!0):(qh=null,!1)}var Y2=typeof setTimeout=="function"?setTimeout:void 0,_T=typeof clearTimeout=="function"?clearTimeout:void 0,Q2=typeof Promise=="function"?Promise:void 0,AT=typeof queueMicrotask=="function"?queueMicrotask:typeof Q2<"u"?function(o){return Q2.resolve(null).then(o).catch(BT)}:Y2;function BT(o){setTimeout(function(){throw o})}function Gi(o){return o==="head"}function Z2(o,s){var m=s,C=0;do{var T=m.nextSibling;if(o.removeChild(m),T&&T.nodeType===8)if(m=T.data,m==="/$"||m==="/&"){if(C===0){o.removeChild(T),cc(s);return}C--}else if(m==="$"||m==="$?"||m==="$~"||m==="$!"||m==="&")C++;else if(m==="html")Gu(o.ownerDocument.documentElement);else if(m==="head"){m=o.ownerDocument.head,Gu(m);for(var A=m.firstChild;A;){var J=A.nextSibling,ve=A.nodeName;A[Xt]||ve==="SCRIPT"||ve==="STYLE"||ve==="LINK"&&A.rel.toLowerCase()==="stylesheet"||m.removeChild(A),A=J}}else m==="body"&&Gu(o.ownerDocument.body);m=T}while(m);cc(s)}function J2(o,s){var m=o;o=0;do{var C=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||""),C&&C.nodeType===8)if(m=C.data,m==="/$"){if(o===0)break;o--}else m!=="$"&&m!=="$?"&&m!=="$~"&&m!=="$!"||o++;m=C}while(m)}function Gh(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":Gh(m),fn(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}o.removeChild(m)}}function kT(o,s,m,C){for(;o.nodeType===1;){var T=m;if(o.nodeName.toLowerCase()!==s.toLowerCase()){if(!C&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(C){if(!o[Xt])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=io(o.nextSibling),o===null)break}return null}function LT(o,s,m){if(s==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!m||(o=io(o.nextSibling),o===null))return null;return o}function e$(o,s){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!s||(o=io(o.nextSibling),o===null))return null;return o}function Xh(o){return o.data==="$?"||o.data==="$~"}function Yh(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function HT(o,s){var m=o.ownerDocument;if(o.data==="$~")o._reactRetry=s;else if(o.data!=="$?"||m.readyState!=="loading")s();else{var C=function(){s(),m.removeEventListener("DOMContentLoaded",C)};m.addEventListener("DOMContentLoaded",C),o._reactRetry=C}}function io(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 Qh=null;function t$(o){o=o.nextSibling;for(var s=0;o;){if(o.nodeType===8){var m=o.data;if(m==="/$"||m==="/&"){if(s===0)return io(o.nextSibling);s--}else m!=="$"&&m!=="$!"&&m!=="$?"&&m!=="$~"&&m!=="&"||s++}o=o.nextSibling}return null}function n$(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 r$(o,s,m){switch(s=Cm(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 Gu(o){for(var s=o.attributes;s.length;)o.removeAttributeNode(s[0]);fn(o)}var lo=new Map,a$=new Set;function xm(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var hi=D.d;D.d={f:FT,r:VT,D:WT,C:KT,L:UT,m:qT,X:XT,S:GT,M:YT};function FT(){var o=hi.f(),s=fm();return o||s}function VT(o){var s=St(o);s!==null&&s.tag===5&&s.type==="form"?xS(s):hi.r(o)}var ic=typeof document>"u"?null:document;function o$(o,s,m){var C=ic;if(C&&typeof s=="string"&&s){var T=ln(s);T='link[rel="'+o+'"][href="'+T+'"]',typeof m=="string"&&(T+='[crossorigin="'+m+'"]'),a$.has(T)||(a$.add(T),o={rel:o,crossOrigin:m,href:s},C.querySelector(T)===null&&(s=C.createElement("link"),ga(s,"link",o),Ze(s),C.head.appendChild(s)))}}function WT(o){hi.D(o),o$("dns-prefetch",o,null)}function KT(o,s){hi.C(o,s),o$("preconnect",o,s)}function UT(o,s,m){hi.L(o,s,m);var C=ic;if(C&&o&&s){var T='link[rel="preload"][as="'+ln(s)+'"]';s==="image"&&m&&m.imageSrcSet?(T+='[imagesrcset="'+ln(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(T+='[imagesizes="'+ln(m.imageSizes)+'"]')):T+='[href="'+ln(o)+'"]';var A=T;switch(s){case"style":A=lc(o);break;case"script":A=sc(o)}lo.has(A)||(o=g({rel:"preload",href:s==="image"&&m&&m.imageSrcSet?void 0:o,as:s},m),lo.set(A,o),C.querySelector(T)!==null||s==="style"&&C.querySelector(Xu(A))||s==="script"&&C.querySelector(Yu(A))||(s=C.createElement("link"),ga(s,"link",o),Ze(s),C.head.appendChild(s)))}}function qT(o,s){hi.m(o,s);var m=ic;if(m&&o){var C=s&&typeof s.as=="string"?s.as:"script",T='link[rel="modulepreload"][as="'+ln(C)+'"][href="'+ln(o)+'"]',A=T;switch(C){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":A=sc(o)}if(!lo.has(A)&&(o=g({rel:"modulepreload",href:o},s),lo.set(A,o),m.querySelector(T)===null)){switch(C){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(Yu(A)))return}C=m.createElement("link"),ga(C,"link",o),Ze(C),m.head.appendChild(C)}}}function GT(o,s,m){hi.S(o,s,m);var C=ic;if(C&&o){var T=Ye(C).hoistableStyles,A=lc(o);s=s||"default";var J=T.get(A);if(!J){var ve={loading:0,preload:null};if(J=C.querySelector(Xu(A)))ve.loading=5;else{o=g({rel:"stylesheet",href:o,"data-precedence":s},m),(m=lo.get(A))&&Zh(o,m);var Ee=J=C.createElement("link");Ze(Ee),ga(Ee,"link",o),Ee._p=new Promise(function(ke,Je){Ee.onload=ke,Ee.onerror=Je}),Ee.addEventListener("load",function(){ve.loading|=1}),Ee.addEventListener("error",function(){ve.loading|=2}),ve.loading|=4,Sm(J,s,C)}J={type:"stylesheet",instance:J,count:1,state:ve},T.set(A,J)}}}function XT(o,s){hi.X(o,s);var m=ic;if(m&&o){var C=Ye(m).hoistableScripts,T=sc(o),A=C.get(T);A||(A=m.querySelector(Yu(T)),A||(o=g({src:o,async:!0},s),(s=lo.get(T))&&Jh(o,s),A=m.createElement("script"),Ze(A),ga(A,"link",o),m.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},C.set(T,A))}}function YT(o,s){hi.M(o,s);var m=ic;if(m&&o){var C=Ye(m).hoistableScripts,T=sc(o),A=C.get(T);A||(A=m.querySelector(Yu(T)),A||(o=g({src:o,async:!0,type:"module"},s),(s=lo.get(T))&&Jh(o,s),A=m.createElement("script"),Ze(A),ga(A,"link",o),m.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},C.set(T,A))}}function i$(o,s,m,C){var T=(T=Q.current)?xm(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=lc(m.href),m=Ye(T).hoistableStyles,C=m.get(s),C||(C={type:"style",instance:null,count:0,state:null},m.set(s,C)),C):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){o=lc(m.href);var A=Ye(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(Xu(o)))&&!A._p&&(J.instance=A,J.state.loading=5),lo.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},lo.set(o,m),A||QT(T,o,m,J.state))),s&&C===null)throw Error(r(528,""));return J}if(s&&C!==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=sc(m),m=Ye(T).hoistableScripts,C=m.get(s),C||(C={type:"script",instance:null,count:0,state:null},m.set(s,C)),C):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function lc(o){return'href="'+ln(o)+'"'}function Xu(o){return'link[rel="stylesheet"]['+o+"]"}function l$(o){return g({},o,{"data-precedence":o.precedence,precedence:null})}function QT(o,s,m,C){o.querySelector('link[rel="preload"][as="style"]['+s+"]")?C.loading=1:(s=o.createElement("link"),C.preload=s,s.addEventListener("load",function(){return C.loading|=1}),s.addEventListener("error",function(){return C.loading|=2}),ga(s,"link",m),Ze(s),o.head.appendChild(s))}function sc(o){return'[src="'+ln(o)+'"]'}function Yu(o){return"script[async]"+o}function s$(o,s,m){if(s.count++,s.instance===null)switch(s.type){case"style":var C=o.querySelector('style[data-href~="'+ln(m.href)+'"]');if(C)return s.instance=C,Ze(C),C;var T=g({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return C=(o.ownerDocument||o).createElement("style"),Ze(C),ga(C,"style",T),Sm(C,m.precedence,o),s.instance=C;case"stylesheet":T=lc(m.href);var A=o.querySelector(Xu(T));if(A)return s.state.loading|=4,s.instance=A,Ze(A),A;C=l$(m),(T=lo.get(T))&&Zh(C,T),A=(o.ownerDocument||o).createElement("link"),Ze(A);var J=A;return J._p=new Promise(function(ve,Ee){J.onload=ve,J.onerror=Ee}),ga(A,"link",C),s.state.loading|=4,Sm(A,m.precedence,o),s.instance=A;case"script":return A=sc(m.src),(T=o.querySelector(Yu(A)))?(s.instance=T,Ze(T),T):(C=m,(T=lo.get(A))&&(C=g({},m),Jh(C,T)),o=o.ownerDocument||o,T=o.createElement("script"),Ze(T),ga(T,"link",C),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&&(C=s.instance,s.state.loading|=4,Sm(C,m.precedence,o));return s.instance}function Sm(o,s,m){for(var C=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),T=C.length?C[C.length-1]:null,A=T,J=0;J<C.length;J++){var ve=C[J];if(ve.dataset.precedence===s)A=ve;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 Zh(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.title==null&&(o.title=s.title)}function Jh(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.integrity==null&&(o.integrity=s.integrity)}var $m=null;function c$(o,s,m){if($m===null){var C=new Map,T=$m=new Map;T.set(m,C)}else T=$m,C=T.get(m),C||(C=new Map,T.set(m,C));if(C.has(o))return C;for(C.set(o,null),m=m.getElementsByTagName(o),T=0;T<m.length;T++){var A=m[T];if(!(A[Xt]||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 ve=C.get(J);ve?ve.push(A):C.set(J,[A])}}return C}function u$(o,s,m){o=o.ownerDocument||o,o.head.insertBefore(m,s==="title"?o.querySelector("head > title"):null)}function ZT(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 d$(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function JT(o,s,m,C){if(m.type==="stylesheet"&&(typeof C.media!="string"||matchMedia(C.media).matches!==!1)&&(m.state.loading&4)===0){if(m.instance===null){var T=lc(C.href),A=s.querySelector(Xu(T));if(A){s=A._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(o.count++,o=wm.bind(o),s.then(o,o)),m.state.loading|=4,m.instance=A,Ze(A);return}A=s.ownerDocument||s,C=l$(C),(T=lo.get(T))&&Zh(C,T),A=A.createElement("link"),Ze(A);var J=A;J._p=new Promise(function(ve,Ee){J.onload=ve,J.onerror=Ee}),ga(A,"link",C),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=wm.bind(o),s.addEventListener("load",m),s.addEventListener("error",m))}}var e0=0;function e5(o,s){return o.stylesheets&&o.count===0&&Om(o,o.stylesheets),0<o.count||0<o.imgCount?function(m){var C=setTimeout(function(){if(o.stylesheets&&Om(o,o.stylesheets),o.unsuspend){var A=o.unsuspend;o.unsuspend=null,A()}},6e4+s);0<o.imgBytes&&e0===0&&(e0=62500*zT());var T=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Om(o,o.stylesheets),o.unsuspend)){var A=o.unsuspend;o.unsuspend=null,A()}},(o.imgBytes>e0?50:800)+s);return o.unsuspend=m,function(){o.unsuspend=null,clearTimeout(C),clearTimeout(T)}}:null}function wm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Om(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Em=null;function Om(o,s){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Em=new Map,s.forEach(t5,o),Em=null,wm.call(o))}function t5(o,s){if(!(s.state.loading&4)){var m=Em.get(o);if(m)var C=m.get(null);else{m=new Map,Em.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),C=J)}C&&m.set(null,C)}T=s.instance,J=T.getAttribute("data-precedence"),A=m.get(J)||C,A===C&&m.set(null,T),m.set(J,T),this.count++,C=wm.bind(this),T.addEventListener("load",C),T.addEventListener("error",C),A?A.parentNode.insertBefore(T,A.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(T,o.firstChild)),s.state.loading|=4}}var Qu={$$typeof:E,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function n5(o,s,m,C,T,A,J,ve,Ee){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=jt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jt(0),this.hiddenUpdates=jt(null),this.identifierPrefix=C,this.onUncaughtError=T,this.onCaughtError=A,this.onRecoverableError=J,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Ee,this.incompleteTransitions=new Map}function f$(o,s,m,C,T,A,J,ve,Ee,ke,Je,it){return o=new n5(o,s,m,J,Ee,ke,Je,it,ve),s=1,A===!0&&(s|=24),A=ka(3,null,null,s),o.current=A,A.stateNode=o,s=Pp(),s.refCount++,o.pooledCache=s,s.refCount++,A.memoizedState={element:C,isDehydrated:m,cache:s},Ap(A),o}function m$(o){return o?(o=ks,o):ks}function v$(o,s,m,C,T,A){T=m$(T),C.context===null?C.context=T:C.pendingContext=T,C=Ai(s),C.payload={element:m},A=A===void 0?null:A,A!==null&&(C.callback=A),m=Bi(o,C,s),m!==null&&(za(m,o,s),Iu(m,o,s))}function g$(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var m=o.retryLane;o.retryLane=m!==0&&m<s?m:s}}function t0(o,s){g$(o,s),(o=o.alternate)&&g$(o,s)}function p$(o){if(o.tag===13||o.tag===31){var s=_l(o,67108864);s!==null&&za(s,o,67108864),t0(o,67108864)}}function h$(o){if(o.tag===13||o.tag===31){var s=Wa();s=qe(s);var m=_l(o,s);m!==null&&za(m,o,s),t0(o,s)}}var jm=!0;function r5(o,s,m,C){var T=z.T;z.T=null;var A=D.p;try{D.p=2,n0(o,s,m,C)}finally{D.p=A,z.T=T}}function a5(o,s,m,C){var T=z.T;z.T=null;var A=D.p;try{D.p=8,n0(o,s,m,C)}finally{D.p=A,z.T=T}}function n0(o,s,m,C){if(jm){var T=r0(C);if(T===null)Fh(o,s,C,Rm,m),y$(o,C);else if(i5(T,o,s,m,C))C.stopPropagation();else if(y$(o,C),s&4&&-1<o5.indexOf(o)){for(;T!==null;){var A=St(T);if(A!==null)switch(A.tag){case 3:if(A=A.stateNode,A.current.memoizedState.isDehydrated){var J=nt(A.pendingLanes);if(J!==0){var ve=A;for(ve.pendingLanes|=2,ve.entangledLanes|=2;J;){var Ee=1<<31-we(J);ve.entanglements[1]|=Ee,J&=~Ee}Wo(A),(Gn&6)===0&&(um=ye()+500,Ku(0))}}break;case 31:case 13:ve=_l(A,2),ve!==null&&za(ve,A,2),fm(),t0(A,2)}if(A=r0(C),A===null&&Fh(o,s,C,Rm,m),A===T)break;T=A}T!==null&&C.stopPropagation()}else Fh(o,s,C,null,m)}}function r0(o){return o=na(o),a0(o)}var Rm=null;function a0(o){if(Rm=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 Rm=o,null}function b$(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(Ne()){case _e:return 2;case Qe:return 8;case Ke:case Fe:return 32;case Xe:return 268435456;default:return 32}default:return 32}}var o0=!1,Xi=null,Yi=null,Qi=null,Zu=new Map,Ju=new Map,Zi=[],o5="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 y$(o,s){switch(o){case"focusin":case"focusout":Xi=null;break;case"dragenter":case"dragleave":Yi=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":Zu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ju.delete(s.pointerId)}}function ed(o,s,m,C,T,A){return o===null||o.nativeEvent!==A?(o={blockedOn:s,domEventName:m,eventSystemFlags:C,nativeEvent:A,targetContainers:[T]},s!==null&&(s=St(s),s!==null&&p$(s)),o):(o.eventSystemFlags|=C,s=o.targetContainers,T!==null&&s.indexOf(T)===-1&&s.push(T),o)}function i5(o,s,m,C,T){switch(s){case"focusin":return Xi=ed(Xi,o,s,m,C,T),!0;case"dragenter":return Yi=ed(Yi,o,s,m,C,T),!0;case"mouseover":return Qi=ed(Qi,o,s,m,C,T),!0;case"pointerover":var A=T.pointerId;return Zu.set(A,ed(Zu.get(A)||null,o,s,m,C,T)),!0;case"gotpointercapture":return A=T.pointerId,Ju.set(A,ed(Ju.get(A)||null,o,s,m,C,T)),!0}return!1}function C$(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,Nt(o.priority,function(){h$(m)});return}}else if(s===31){if(s=u(m),s!==null){o.blockedOn=s,Nt(o.priority,function(){h$(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 Im(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var m=r0(o.nativeEvent);if(m===null){m=o.nativeEvent;var C=new m.constructor(m.type,m);qr=C,m.target.dispatchEvent(C),qr=null}else return s=St(m),s!==null&&p$(s),o.blockedOn=m,!1;s.shift()}return!0}function x$(o,s,m){Im(o)&&m.delete(s)}function l5(){o0=!1,Xi!==null&&Im(Xi)&&(Xi=null),Yi!==null&&Im(Yi)&&(Yi=null),Qi!==null&&Im(Qi)&&(Qi=null),Zu.forEach(x$),Ju.forEach(x$)}function Nm(o,s){o.blockedOn===s&&(o.blockedOn=null,o0||(o0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,l5)))}var Mm=null;function S$(o){Mm!==o&&(Mm=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Mm===o&&(Mm=null);for(var s=0;s<o.length;s+=3){var m=o[s],C=o[s+1],T=o[s+2];if(typeof C!="function"){if(a0(C||m)===null)continue;break}var A=St(m);A!==null&&(o.splice(s,3),s-=3,rh(A,{pending:!0,data:T,method:m.method,action:C},C,T))}}))}function cc(o){function s(Ee){return Nm(Ee,o)}Xi!==null&&Nm(Xi,o),Yi!==null&&Nm(Yi,o),Qi!==null&&Nm(Qi,o),Zu.forEach(s),Ju.forEach(s);for(var m=0;m<Zi.length;m++){var C=Zi[m];C.blockedOn===o&&(C.blockedOn=null)}for(;0<Zi.length&&(m=Zi[0],m.blockedOn===null);)C$(m),m.blockedOn===null&&Zi.shift();if(m=(o.ownerDocument||o).$$reactFormReplay,m!=null)for(C=0;C<m.length;C+=3){var T=m[C],A=m[C+1],J=T[lt]||null;if(typeof A=="function")J||S$(m);else if(J){var ve=null;if(A&&A.hasAttribute("formAction")){if(T=A,J=A[lt]||null)ve=J.formAction;else if(a0(T)!==null)continue}else ve=J.action;typeof ve=="function"?m[C+1]=ve:(m.splice(C,3),C-=3),S$(m)}}}function $$(){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),C||setTimeout(m,20)}function m(){if(!C&&!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 C=!1,T=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(m,100),function(){C=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),T!==null&&(T(),T=null)}}}function i0(o){this._internalRoot=o}Tm.prototype.render=i0.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(r(409));var m=s.current,C=Wa();v$(m,C,o,s,null,null)},Tm.prototype.unmount=i0.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;v$(o.current,2,null,o,null,null),fm(),s[At]=null}};function Tm(o){this._internalRoot=o}Tm.prototype.unstable_scheduleHydration=function(o){if(o){var s=Tt();o={blockedOn:null,target:o,priority:s};for(var m=0;m<Zi.length&&s!==0&&s<Zi[m].priority;m++);Zi.splice(m,0,o),m===0&&C$(o)}};var w$=t.version;if(w$!=="19.2.7")throw Error(r(527,w$,"19.2.7"));D.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 s5={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pm.isDisabled&&Pm.supportsFiber)try{Ae=Pm.inject(s5),Re=Pm}catch{}}return nd.createRoot=function(o,s){if(!a(o))throw Error(r(299));var m=!1,C="",T=MS,A=TS,J=PS;return s!=null&&(s.unstable_strictMode===!0&&(m=!0),s.identifierPrefix!==void 0&&(C=s.identifierPrefix),s.onUncaughtError!==void 0&&(T=s.onUncaughtError),s.onCaughtError!==void 0&&(A=s.onCaughtError),s.onRecoverableError!==void 0&&(J=s.onRecoverableError)),s=f$(o,1,!1,null,null,m,C,null,T,A,J,$$),o[At]=s.current,Hh(o),new i0(s)},nd.hydrateRoot=function(o,s,m){if(!a(o))throw Error(r(299));var C=!1,T="",A=MS,J=TS,ve=PS,Ee=null;return m!=null&&(m.unstable_strictMode===!0&&(C=!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&&(ve=m.onRecoverableError),m.formState!==void 0&&(Ee=m.formState)),s=f$(o,1,!0,s,m??null,C,T,Ee,A,J,ve,$$),s.context=m$(null),m=s.current,C=Wa(),C=qe(C),T=Ai(C),T.callback=null,Bi(m,T,C),m=C,s.current.lanes=m,ct(s,m),Wo(s),o[At]=s.current,Hh(o),new Tm(s)},nd.version="19.2.7",nd}var z$;function h5(){if(z$)return c0.exports;z$=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(),c0.exports=p5(),c0.exports}var b5=h5(),m0={exports:{}};/*!
|
|
50
|
-
Copyright (c) 2018 Jed Watson.
|
|
51
|
-
Licensed under the MIT License (MIT), see
|
|
52
|
-
http://jedwatson.github.io/classnames
|
|
53
|
-
*/var D$;function y5(){return D$||(D$=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})()})(m0)),m0.exports}var C5=y5();const de=zo(C5);function Ce(){return Ce=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},Ce.apply(null,arguments)}function Ot(e){"@babel/helpers - typeof";return Ot=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},Ot(e)}var x5=Symbol.for("react.element"),S5=Symbol.for("react.transitional.element"),$5=Symbol.for("react.fragment");function E3(e){return e&&Ot(e)==="object"&&(e.$$typeof===x5||e.$$typeof===S5)&&e.type===$5}function Jr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ge.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Jr(r)):E3(r)&&r.props?n=n.concat(Jr(r.props.children,t)):n.push(r))}),n}var Pb={},w5=function(t){};function E5(e,t){}function O5(e,t){}function j5(){Pb={}}function O3(e,t,n){!t&&!Pb[n]&&(e(!1,n),Pb[n]=!0)}function Zn(e,t){O3(E5,e,t)}function R5(e,t){O3(O5,e,t)}Zn.preMessage=w5;Zn.resetWarned=j5;Zn.noteOnce=R5;function I5(e,t){if(Ot(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ot(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function j3(e){var t=I5(e,"string");return Ot(t)=="symbol"?t:t+""}function ne(e,t,n){return(t=j3(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _$(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 ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_$(Object(n),!0).forEach(function(r){ne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var vo=w3();const zd=zo(vo),N5=$3({__proto__:null,default:zd},[vo]);function Dd(e){return e instanceof HTMLElement||e instanceof SVGElement}function of(e){return e&&Ot(e)==="object"&&Dd(e.nativeElement)?e.nativeElement:Dd(e)?e:null}function uv(e){var t=of(e);if(t)return t;if(e instanceof ge.Component){var n;return(n=zd.findDOMNode)===null||n===void 0?void 0:n.call(zd,e)}return null}var v0={exports:{}},Yn={};/**
|
|
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 A$;function M5(){if(A$)return Yn;A$=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"),y=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function S(b){if(typeof b=="object"&&b!==null){var $=b.$$typeof;switch($){case e:switch(b=b.type,b){case n:case a:case r:case f:case v:return b;default:switch(b=b&&b.$$typeof,b){case u:case c:case d:case p:case g:case l:return b;default:return $}}case t:return $}}}return Yn.ContextConsumer=c,Yn.ContextProvider=l,Yn.Element=e,Yn.ForwardRef=d,Yn.Fragment=n,Yn.Lazy=p,Yn.Memo=g,Yn.Portal=t,Yn.Profiler=a,Yn.StrictMode=r,Yn.Suspense=f,Yn.SuspenseList=v,Yn.isAsyncMode=function(){return!1},Yn.isConcurrentMode=function(){return!1},Yn.isContextConsumer=function(b){return S(b)===c},Yn.isContextProvider=function(b){return S(b)===l},Yn.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Yn.isForwardRef=function(b){return S(b)===d},Yn.isFragment=function(b){return S(b)===n},Yn.isLazy=function(b){return S(b)===p},Yn.isMemo=function(b){return S(b)===g},Yn.isPortal=function(b){return S(b)===t},Yn.isProfiler=function(b){return S(b)===a},Yn.isStrictMode=function(b){return S(b)===r},Yn.isSuspense=function(b){return S(b)===f},Yn.isSuspenseList=function(b){return S(b)===v},Yn.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===a||b===r||b===f||b===v||b===y||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===g||b.$$typeof===l||b.$$typeof===c||b.$$typeof===d||b.$$typeof===x||b.getModuleId!==void 0)},Yn.typeOf=S,Yn}var B$;function T5(){return B$||(B$=1,v0.exports=M5()),v0.exports}var g0=T5();function Ss(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 P5=Number(i.version.split(".")[0]),_d=function(t,n){typeof t=="function"?t(n):Ot(t)==="object"&&t&&"current"in t&&(t.current=n)},Mr=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){_d(c,l)})}},Ri=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ss(function(){return Mr.apply(void 0,n)},n,function(a,l){return a.length!==l.length||a.every(function(c,u){return c!==l[u]})})},Io=function(t){var n,r;if(!t)return!1;if(m1(t)&&P5>=19)return!0;var a=g0.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==g0.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==g0.ForwardRef)};function m1(e){return i.isValidElement(e)&&!E3(e)}var z5=function(t){return m1(t)&&Io(t)},El=function(t){if(t&&m1(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},zb=i.createContext(null);function D5(e){var t=e.children,n=e.onBatchResize,r=i.useRef(0),a=i.useRef([]),l=i.useContext(zb),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(zb.Provider,{value:c},t)}var R3=(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})()})(),Db=typeof window<"u"&&typeof document<"u"&&window.document===document,Tv=(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")()})(),_5=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Tv):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),A5=2;function B5(e,t){var n=!1,r=!1,a=0;function l(){n&&(n=!1,e()),r&&u()}function c(){_5(l)}function u(){var d=Date.now();if(n){if(d-a<A5)return;r=!0}else n=!0,r=!1,setTimeout(c,t);a=d}return u}var k5=20,L5=["top","right","bottom","left","width","height","size","weight"],H5=typeof MutationObserver<"u",F5=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=B5(this.refresh.bind(this),k5)}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(){!Db||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),H5?(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(){!Db||!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=L5.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})(),I3=(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}),Dc=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Tv}),N3=cg(0,0,0,0);function Pv(e){return parseFloat(e)||0}function k$(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+Pv(l)},0)}function V5(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]=Pv(c)}return n}function W5(e){var t=e.getBBox();return cg(0,0,t.width,t.height)}function K5(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return N3;var r=Dc(e).getComputedStyle(e),a=V5(r),l=a.left+a.right,c=a.top+a.bottom,u=Pv(r.width),d=Pv(r.height);if(r.boxSizing==="border-box"&&(Math.round(u+l)!==t&&(u-=k$(r,"left","right")+l),Math.round(d+c)!==n&&(d-=k$(r,"top","bottom")+c)),!q5(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 cg(a.left,a.top,u,d)}var U5=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Dc(e).SVGGraphicsElement}:function(e){return e instanceof Dc(e).SVGElement&&typeof e.getBBox=="function"}})();function q5(e){return e===Dc(e).document.documentElement}function G5(e){return Db?U5(e)?W5(e):K5(e):N3}function X5(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 I3(c,{x:t,y:n,width:r,height:a,top:n,right:t+r,bottom:a+n,left:t}),c}function cg(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Y5=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=cg(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=G5(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})(),Q5=(function(){function e(t,n){var r=X5(n);I3(this,{target:t,contentRect:r})}return e})(),Z5=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new R3,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 Dc(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Y5(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 Dc(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 Q5(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 R3,T3=(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=F5.getInstance(),r=new Z5(t,n,this);M3.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){T3.prototype[e]=function(){var t;return(t=M3.get(this))[e].apply(t,arguments)}});var J5=(function(){return typeof Tv.ResizeObserver<"u"?Tv.ResizeObserver:T3})(),fl=new Map;function eP(e){e.forEach(function(t){var n,r=t.target;(n=fl.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var P3=new J5(eP);function tP(e,t){fl.has(e)||(fl.set(e,new Set),P3.observe(e)),fl.get(e).add(t)}function nP(e,t){fl.has(e)&&(fl.get(e).delete(t),fl.get(e).size||(P3.unobserve(e),fl.delete(e)))}function gr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L$(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,j3(r.key),r)}}function pr(e,t,n){return t&&L$(e.prototype,t),n&&L$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ad(e,t){return Ad=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ad(e,t)}function Ja(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&&Ad(e,t)}function ms(e){return ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ms(e)}function ug(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ug=function(){return!!e})()}function Et(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z3(e,t){if(t&&(Ot(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Et(e)}function ho(e){var t=ug();return function(){var n,r=ms(e);if(t){var a=ms(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return z3(this,n)}}var rP=(function(e){Ja(n,e);var t=ho(n);function n(){return gr(this,n),t.apply(this,arguments)}return pr(n,[{key:"render",value:function(){return this.props.children}}]),n})(i.Component);function aP(e,t){var n=e.children,r=e.disabled,a=i.useRef(null),l=i.useRef(null),c=i.useContext(zb),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)&&Io(d),g=v?El(d):null,p=Ri(g,a),y=function(){var $;return uv(a.current)||(a.current&&Ot(a.current)==="object"?uv(($=a.current)===null||$===void 0?void 0:$.nativeElement):null)||uv(l.current)};i.useImperativeHandle(t,function(){return y()});var x=i.useRef(e);x.current=e;var S=i.useCallback(function(b){var $=x.current,w=$.onResize,E=$.data,R=b.getBoundingClientRect(),j=R.width,I=R.height,O=b.offsetWidth,M=b.offsetHeight,N=Math.floor(j),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(j)?j:O,k=M===Math.round(I)?I:M,_=ce(ce({},B),{},{offsetWidth:L,offsetHeight:k});c==null||c(_,b,E),w&&Promise.resolve().then(function(){w(_,b)})}},[]);return i.useEffect(function(){var b=y();return b&&!r&&tP(b,S),function(){return nP(b,S)}},[a.current,r]),i.createElement(rP,{ref:l},v?i.cloneElement(d,{ref:p}):d)}var oP=i.forwardRef(aP),iP="rc-observer-key";function lP(e,t){var n=e.children,r=typeof n=="function"?[n]:Jr(n);return r.map(function(a,l){var c=(a==null?void 0:a.key)||"".concat(iP,"-").concat(l);return i.createElement(oP,Ce({},e,{key:c,ref:l===0?t:void 0}),a)})}var ha=i.forwardRef(lP);ha.Collection=D5;function _b(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 sP(e){if(Array.isArray(e))return _b(e)}function D3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function v1(e,t){if(e){if(typeof e=="string")return _b(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)?_b(e,t):void 0}}function cP(){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 Me(e){return sP(e)||D3(e)||v1(e)||cP()}var _3=function(t){return+setTimeout(t,16)},A3=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(_3=function(t){return window.requestAnimationFrame(t)},A3=function(t){return window.cancelAnimationFrame(t)});var H$=0,g1=new Map;function B3(e){g1.delete(e)}var Zt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;H$+=1;var r=H$;function a(l){if(l===0)B3(r),t();else{var c=_3(function(){a(l-1)});g1.set(r,c)}}return a(n),r};Zt.cancel=function(e){var t=g1.get(e);return B3(e),A3(t)};function uP(e){let t=null;const n=a=>()=>{t=null,e.apply(void 0,Me(a))},r=(...a)=>{t===null&&(t=Zt(n(a)))};return r.cancel=()=>{Zt.cancel(t),t=null},r}function k3(e){if(Array.isArray(e))return e}function dP(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 L3(){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 me(e,t){return k3(e)||dP(e,t)||v1(e,t)||L3()}function Bd(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 sa(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ab(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 F$="data-rc-order",V$="data-rc-priority",fP="rc-util-key",Bb=new Map;function H3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):fP}function dg(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function mP(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function p1(e){return Array.from((Bb.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function F3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!sa())return null;var n=t.csp,r=t.prepend,a=t.priority,l=a===void 0?0:a,c=mP(r),u=c==="prependQueue",d=document.createElement("style");d.setAttribute(F$,c),u&&l&&d.setAttribute(V$,"".concat(l)),n!=null&&n.nonce&&(d.nonce=n==null?void 0:n.nonce),d.innerHTML=e;var f=dg(t),v=f.firstChild;if(r){if(u){var g=(t.styles||p1(f)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(F$)))return!1;var y=Number(p.getAttribute(V$)||0);return l>=y});if(g.length)return f.insertBefore(d,g[g.length-1].nextSibling),d}f.insertBefore(d,v)}else f.appendChild(d);return d}function V3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=dg(t);return(t.styles||p1(n)).find(function(r){return r.getAttribute(H3(t))===e})}function kd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=V3(e,t);if(n){var r=dg(t);r.removeChild(n)}}function vP(e,t){var n=Bb.get(e);if(!n||!Ab(document,n)){var r=F3("",t),a=r.parentNode;Bb.set(e,a),e.removeChild(r)}}function xi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=dg(n),a=p1(r),l=ce(ce({},n),{},{styles:a});vP(r,l);var c=V3(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=F3(e,l);return v.setAttribute(H3(l),t),v}function gP(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=gP(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 No(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(Zn(!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&&Ot(l)==="object"&&Ot(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 pP="%";function kb(e){return e.join(pP)}var hP=(function(){function e(t){gr(this,e),ne(this,"instanceId",void 0),ne(this,"cache",new Map),ne(this,"extracted",new Set),this.instanceId=t}return pr(e,[{key:"get",value:function(n){return this.opGet(kb(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(kb(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})(),_c="data-token-hash",wo="data-css-hash",ml="__cssinjs_instance__";function bP(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(wo,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(a){a[ml]=a[ml]||e,a[ml]===e&&document.head.insertBefore(a,n)});var r={};Array.from(document.querySelectorAll("style[".concat(wo,"]"))).forEach(function(a){var l=a.getAttribute(wo);if(r[l]){if(a[ml]===e){var c;(c=a.parentNode)===null||c===void 0||c.removeChild(a)}}else r[l]=!0})}return new hP(e)}var lf=i.createContext({hashPriority:"low",cache:bP(),defaultCache:!0});function yP(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 h1=(function(){function e(){gr(this,e),ne(this,"cache",void 0),ne(this,"keys",void 0),ne(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return pr(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=me(f,2),p=g[1];return a.internalGet(v)[1]<p?[v,a.internalGet(v)[1]]:f},[this.keys[0],this.cacheCallTimes]),c=me(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!yP(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();ne(h1,"MAX_CACHE_SIZE",20);ne(h1,"MAX_CACHE_OFFSET",5);var W$=0,W3=(function(){function e(t){gr(this,e),ne(this,"derivatives",void 0),ne(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=W$,t.length===0&&(t.length>0,void 0),W$+=1}return pr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e})(),p0=new h1;function Lb(e){var t=Array.isArray(e)?e:[e];return p0.has(t)||p0.set(t,new W3(t)),p0.get(t)}var CP=new WeakMap,h0={};function xP(e,t){for(var n=CP,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(h0)||n.set(h0,e()),n.get(h0)}var K$=new WeakMap;function wd(e){var t=K$.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof W3?t+=r.id:r&&Ot(r)==="object"?t+=wd(r):t+=r}),t=Bd(t),K$.set(e,t)),t}function U$(e,t){return Bd("".concat(t,"_").concat(wd(e)))}var Hb=sa();function le(e){return typeof e=="number"?"".concat(e,"px"):e}function zv(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=ce(ce({},r),{},ne(ne({},_c,t),wo,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 dv=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()},SP=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=me(a,2),c=l[0],u=l[1];return"".concat(c,":").concat(u,";")}).join(""),"}"):""},K3=function(t,n,r){var a={},l={};return Object.entries(t).forEach(function(c){var u,d,f=me(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,y=dv(v,r==null?void 0:r.prefix);a[y]=typeof g=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[v])?"".concat(g,"px"):String(g),l[v]="var(".concat(y,")")}}),[l,SP(a,n,{scope:r==null?void 0:r.scope})]},q$=sa()?i.useLayoutEffect:i.useEffect,an=function(t,n){var r=i.useRef(!0);q$(function(){return t(r.current)},n),q$(function(){return r.current=!1,function(){r.current=!0}},[])},cs=function(t,n){an(function(r){if(!r)return t()},n)},$P=ce({},sg),G$=$P.useInsertionEffect,wP=function(t,n,r){i.useMemo(t,r),an(function(){return n(!0)},r)},EP=G$?function(e,t,n){return G$(function(){return e(),t()},n)}:wP,OP=ce({},sg),jP=OP.useInsertionEffect,RP=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},IP=function(){return function(t){t()}},NP=typeof jP<"u"?RP:IP;function b1(e,t,n,r,a){var l=i.useContext(lf),c=l.cache,u=[e].concat(Me(t)),d=kb(u),f=NP([d]),v=function(x){c.opUpdate(d,function(S){var b=S||[void 0,void 0],$=me(b,2),w=$[0],E=w===void 0?0:w,R=$[1],j=R,I=j||n(),O=[E,I];return x?x(O):O})};i.useMemo(function(){v()},[d]);var g=c.opGet(d),p=g[1];return EP(function(){a==null||a(p)},function(y){return v(function(x){var S=me(x,2),b=S[0],$=S[1];return y&&b===0&&(a==null||a(p)),[b+1,$]}),function(){c.opUpdate(d,function(x){var S=x||[],b=me(S,2),$=b[0],w=$===void 0?0:$,E=b[1],R=w-1;return R===0?(f(function(){(y||!c.opGet(d))&&(r==null||r(E,!1))}),null):[w-1,E]})}},[d]),p}var MP={},TP="css",ns=new Map;function PP(e){ns.set(e,(ns.get(e)||0)+1)}function zP(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(_c,'="').concat(e,'"]'));n.forEach(function(r){if(r[ml]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var DP=0;function _P(e,t){ns.set(e,(ns.get(e)||0)-1);var n=new Set;ns.forEach(function(r,a){r<=0&&n.add(a)}),ns.size-n.size>DP&&n.forEach(function(r){zP(r,t),ns.delete(r)})}var AP=function(t,n,r,a){var l=r.getDerivativeToken(t),c=ce(ce({},l),n);return a&&(c=a(c)),c},U3="token";function BP(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i.useContext(lf),a=r.cache.instanceId,l=r.container,c=n.salt,u=c===void 0?"":c,d=n.override,f=d===void 0?MP:d,v=n.formatToken,g=n.getComputedToken,p=n.cssVar,y=xP(function(){return Object.assign.apply(Object,[{}].concat(Me(t)))},t),x=wd(y),S=wd(f),b=p?wd(p):"",$=b1(U3,[u,e.id,x,S,b],function(){var w,E=g?g(y,f,e):AP(y,f,e,v),R=ce({},E),j="";if(p){var I=K3(E,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),O=me(I,2);E=O[0],j=O[1]}var M=U$(E,u);E._tokenKey=M,R._tokenKey=U$(R,u);var N=(w=p==null?void 0:p.key)!==null&&w!==void 0?w:M;E._themeKey=N,PP(N);var P="".concat(TP,"-").concat(Bd(M));return E._hashId=P,[E,P,R,j,(p==null?void 0:p.key)||""]},function(w){_P(w[0]._themeKey,a)},function(w){var E=me(w,4),R=E[0],j=E[3];if(p&&j){var I=xi(j,Bd("css-variables-".concat(R._themeKey)),{mark:wo,prepend:"queue",attachTo:l,priority:-999});I[ml]=a,I.setAttribute(_c,R._themeKey)}});return $}var kP=function(t,n,r){var a=me(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)},y=zv(c,u,v,p,f);return[g,v,y]},LP={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},q3="comm",G3="rule",X3="decl",HP="@import",FP="@namespace",VP="@keyframes",WP="@layer",KP=Math.abs,Ed=String.fromCharCode;function Y3(e){return e.trim()}function Fb(e,t,n){return e.replace(t,n)}function Ic(e,t){return e.charCodeAt(t)|0}function Ac(e,t,n){return e.slice(t,n)}function Go(e){return e.length}function UP(e){return e.length}function zm(e,t){return t.push(e),e}var fg=1,Bc=1,Q3=0,go=0,Wr=0,Yc="";function y1(e,t,n,r,a,l,c,u){return{value:e,root:t,parent:n,type:r,props:a,children:l,line:fg,column:Bc,length:c,return:"",siblings:u}}function qP(){return Wr}function GP(){return Wr=go>0?Ic(Yc,--go):0,Bc--,Wr===10&&(Bc=1,fg--),Wr}function Eo(){return Wr=go<Q3?Ic(Yc,go++):0,Bc++,Wr===10&&(Bc=1,fg++),Wr}function vl(){return Ic(Yc,go)}function fv(){return go}function mg(e,t){return Ac(Yc,e,t)}function Ld(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 XP(e){return fg=Bc=1,Q3=Go(Yc=e),go=0,[]}function YP(e){return Yc="",e}function b0(e){return Y3(mg(go-1,Vb(e===91?e+2:e===40?e+1:e)))}function QP(e){for(;(Wr=vl())&&Wr<33;)Eo();return Ld(e)>2||Ld(Wr)>3?"":" "}function ZP(e,t){for(;--t&&Eo()&&!(Wr<48||Wr>102||Wr>57&&Wr<65||Wr>70&&Wr<97););return mg(e,fv()+(t<6&&vl()==32&&Eo()==32))}function Vb(e){for(;Eo();)switch(Wr){case e:return go;case 34:case 39:e!==34&&e!==39&&Vb(Wr);break;case 40:e===41&&Vb(e);break;case 92:Eo();break}return go}function JP(e,t){for(;Eo()&&e+Wr!==57;)if(e+Wr===84&&vl()===47)break;return"/*"+mg(t,go-1)+"*"+Ed(e===47?e:Eo())}function ez(e){for(;!Ld(vl());)Eo();return mg(e,go)}function tz(e){return YP(mv("",null,null,null,[""],e=XP(e),0,[0],e))}function mv(e,t,n,r,a,l,c,u,d){for(var f=0,v=0,g=c,p=0,y=0,x=0,S=1,b=1,$=1,w=0,E=0,R="",j=a,I=l,O=r,M=R;b;)switch(x=E,E=Eo()){case 40:x!=108&&Ic(M,g-1)==58?(w++,M+="("):M+=b0(E);break;case 41:w--,M+=")";break;case 34:case 39:case 91:M+=b0(E);break;case 9:case 10:case 13:case 32:if(w>0){M+=Ed(E);break}M+=QP(x);break;case 92:M+=ZP(fv()-1,7);continue;case 47:switch(vl()){case 42:case 47:zm(nz(JP(Eo(),fv()),t,n,d),d),(Ld(x||1)==5||Ld(vl()||1)==5)&&Go(M)&&Ac(M,-1,void 0)!==" "&&(M+=" ");break;default:M+="/"}break;case 123*S:u[f++]=Go(M)*$;case 125*S:case 59:case 0:if(w>0&&E){M+=Ed(E);break}switch(E){case 0:case 125:b=0;case 59+v:$==-1&&(M=Fb(M,/\f/g,"")),y>0&&(Go(M)-g||S===0)&&zm(y>32?Y$(M+";",r,n,g-1,d):Y$(Fb(M," ","")+";",r,n,g-2,d),d);break;case 59:M+=";";default:if(zm(O=X$(M,t,n,f,v,a,u,R,j=[],I=[],g,l),l),E===123)if(v===0)mv(M,t,O,O,j,l,g,u,I);else{switch(p){case 99:if(Ic(M,3)===110)break;case 108:if(Ic(M,2)===97)break;default:v=0;case 100:case 109:case 115:}v?mv(e,O,O,r&&zm(X$(e,O,O,0,0,a,u,R,a,j=[],g,I),I),a,I,g,u,r?j:I):mv(M,O,O,O,[""],I,0,u,I)}}f=v=y=0,S=$=1,R=M="",g=c;break;case 58:g=1+Go(M),y=x;default:if(S<1){if(E==123)--S;else if(E==125&&S++==0&&GP()==125)continue}switch(M+=Ed(E),E*S){case 38:$=v>0?1:(M+="\f",-1);break;case 44:if(w>0)break;u[f++]=(Go(M)-1)*$,$=1;break;case 64:vl()===45&&(M+=b0(Eo())),p=vl(),v=g=Go(R=M+=ez(fv())),E++;break;case 45:x===45&&Go(M)==2&&(S=0)}}return l}function X$(e,t,n,r,a,l,c,u,d,f,v,g){for(var p=a-1,y=a===0?l:[""],x=UP(y),S=0,b=0,$=0;S<r;++S)for(var w=0,E=Ac(e,p+1,p=KP(b=c[S])),R=e;w<x;++w)(R=Y3(b>0?y[w]+" "+E:Fb(E,/&\f/g,y[w])))&&(d[$++]=R);return y1(e,t,n,a===0?G3:u,d,f,v,g)}function nz(e,t,n,r){return y1(e,t,n,q3,Ed(qP()),Ac(e,2,-2),0,r)}function Y$(e,t,n,r,a){return y1(e,t,n,X3,Ac(e,0,r),Ac(e,r+1,-1),r,a)}function Wb(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function rz(e,t,n,r){switch(e.type){case WP:if(e.children.length)break;case HP:case FP:case X3:return e.return=e.return||e.value;case q3:return"";case VP:return e.return=e.value+"{"+Wb(e.children,r)+"}";case G3:if(!Go(e.value=e.props.join(",")))return""}return Go(n=Wb(e.children,r))?e.return=e.value+"{"+n+"}":""}var Q$="data-ant-cssinjs-cache-path",Z3="_FILE_STYLE__",us,J3=!0;function az(){if(!us&&(us={},sa())){var e=document.createElement("div");e.className=Q$,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=me(l,2),u=c[0],d=c[1];us[u]=d});var n=document.querySelector("style[".concat(Q$,"]"));if(n){var r;J3=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function oz(e){return az(),!!us[e]}function iz(e){var t=us[e],n=null;if(t&&sa())if(J3)n=Z3;else{var r=document.querySelector("style[".concat(wo,'="').concat(us[e],'"]'));r?n=r.innerHTML:delete us[e]}return[n,t]}var lz="_skip_check_",e6="_multi_value_";function vv(e){var t=Wb(tz(e),rz);return t.replace(/\{%%%\:[^;];}/g,";")}function sz(e){return Ot(e)==="object"&&e&&(lz in e||e6 in e)}function Z$(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(Me(d.slice(1))).join(" ")});return l.join(",")}var cz=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="",y={};function x($){var w=$.getName(u);if(!y[w]){var E=e($.style,n,{root:!1,parentSelectors:c}),R=me(E,1),j=R[0];y[w]="@keyframes ".concat($.getName(u)).concat(j)}}function S($){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return $.forEach(function(E){Array.isArray(E)?S(E,w):E&&w.push(E)}),w}var b=S(Array.isArray(t)?t:[t]);return b.forEach(function($){var w=typeof $=="string"&&!a?{}:$;if(typeof w=="string")p+="".concat(w,`
|
|
64
|
-
`);else if(w._keyframe)x(w);else{var E=g.reduce(function(R,j){var I;return(j==null||(I=j.visit)===null||I===void 0?void 0:I.call(j,R))||R},w);Object.keys(E).forEach(function(R){var j=E[R];if(Ot(j)==="object"&&j&&(R!=="animationName"||!j._keyframe)&&!sz(j)){var I=!1,O=R.trim(),M=!1;(a||l)&&u?O.startsWith("@")?I=!0:O==="&"?O=Z$("",u,f):O=Z$(R,u,f):a&&!u&&(O==="&"||O==="")&&(O="",M=!0);var N=e(j,n,{root:M,injectHash:I,parentSelectors:[].concat(Me(c),[O])}),P=me(N,2),B=P[0],L=P[1];y=ce(ce({},y),L),p+="".concat(O).concat(B)}else{let H=function(z,D){var F=z.replace(/[A-Z]/g,function(U){return"-".concat(U.toLowerCase())}),W=D;!LP[z]&&typeof W=="number"&&W!==0&&(W="".concat(W,"px")),z==="animationName"&&D!==null&&D!==void 0&&D._keyframe&&(x(D),W=D.getName(u)),p+="".concat(F,":").concat(W,";")};var k,_=(k=j==null?void 0:j.value)!==null&&k!==void 0?k:j;Ot(j)==="object"&&j!==null&&j!==void 0&&j[e6]&&Array.isArray(_)?_.forEach(function(z){H(R,z)}):H(R,_)}})}}),a?d&&(p&&(p="@layer ".concat(d.name," {").concat(p,"}")),d.dependencies&&(y["@layer ".concat(d.name)]=d.dependencies.map(function($){return"@layer ".concat($,", ").concat(d.name,";")}).join(`
|
|
65
|
-
`))):p="{".concat(p,"}"),[p,y]};function t6(e,t){return Bd("".concat(e.join("%")).concat(t))}function uz(){return null}var n6="style";function Kb(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(lf),g=v.autoClear;v.mock;var p=v.defaultCache,y=v.hashPriority,x=v.container,S=v.ssrInline,b=v.transformers,$=v.linters,w=v.cache,E=v.layer,R=n._tokenKey,j=[R];E&&j.push("layer"),j.push.apply(j,Me(r));var I=Hb,O=b1(n6,j,function(){var L=j.join("|");if(oz(L)){var k=iz(L),_=me(k,2),H=_[0],z=_[1];if(H)return[H,R,z,{},u,f]}var D=t(),F=cz(D,{hashId:a,hashPriority:y,layer:E?l:void 0,path:r.join("-"),transformers:b,linters:$}),W=me(F,2),U=W[0],V=W[1],G=vv(U),q=t6(j,G);return[G,R,q,V,u,f]},function(L,k){var _=me(L,3),H=_[2];(k||g)&&Hb&&kd(H,{mark:wo,attachTo:x})},function(L){var k=me(L,4),_=k[0];k[1];var H=k[2],z=k[3];if(I&&_!==Z3){var D={mark:wo,prepend:E?!1:"queue",attachTo:x,priority:f},F=typeof c=="function"?c():c;F&&(D.csp={nonce:F});var W=[],U=[];Object.keys(z).forEach(function(G){G.startsWith("@layer")?W.push(G):U.push(G)}),W.forEach(function(G){xi(vv(z[G]),"_layer-".concat(G),ce(ce({},D),{},{prepend:!0}))});var V=xi(_,H,D);V[ml]=w.instanceId,V.setAttribute(_c,R),U.forEach(function(G){xi(vv(z[G]),"_effect-".concat(G),D)})}}),M=me(O,3),N=M[0],P=M[1],B=M[2];return function(L){var k;return!S||I||!p?k=i.createElement(uz,null):k=i.createElement("style",Ce({},ne(ne({},_c,P),wo,B),{dangerouslySetInnerHTML:{__html:N}})),i.createElement(i.Fragment,null,k,L)}}var dz=function(t,n,r){var a=me(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 y=l,x={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)};return y=zv(l,c,u,x,p),d&&Object.keys(d).forEach(function(S){if(!n[S]){n[S]=!0;var b=vv(d[S]),$=zv(b,c,"_effect-".concat(S),x,p);S.startsWith("@layer")?y=$+y:y+=$}}),[v,u,y]},r6="cssVar",fz=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(lf),g=v.cache.instanceId,p=v.container,y=u._tokenKey,x=[].concat(Me(t.path),[r,f,y]),S=b1(r6,x,function(){var b=n(),$=K3(b,r,{prefix:a,unitless:l,ignore:c,scope:f}),w=me($,2),E=w[0],R=w[1],j=t6(x,R);return[E,R,j,r]},function(b){var $=me(b,3),w=$[2];Hb&&kd(w,{mark:wo,attachTo:p})},function(b){var $=me(b,3),w=$[1],E=$[2];if(w){var R=xi(w,E,{mark:wo,prepend:"queue",attachTo:p,priority:-999});R[ml]=g,R.setAttribute(_c,r)}});return S},mz=function(t,n,r){var a=me(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=zv(l,u,c,g,f);return[v,c,p]};ne(ne(ne({},n6,dz),U3,kP),r6,mz);var tn=(function(){function e(t,n){gr(this,e),ne(this,"name",void 0),ne(this,"style",void 0),ne(this,"_keyframe",!0),this.name=t,this.style=n}return pr(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 uc(e){return e.notSplit=!0,e}uc(["borderTop","borderBottom"]),uc(["borderTop"]),uc(["borderBottom"]),uc(["borderLeft","borderRight"]),uc(["borderLeft"]),uc(["borderRight"]);var C1=i.createContext({});function a6(e){return k3(e)||D3(e)||v1(e)||L3()}function Ea(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function o6(e,t,n,r){if(!t.length)return n;var a=a6(t),l=a[0],c=a.slice(1),u;return!e&&typeof l=="number"?u=[]:Array.isArray(e)?u=Me(e):u=ce({},e),r&&n===void 0&&c.length===1?delete u[l][c[0]]:u[l]=o6(u[l],c,n,r),u}function mo(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ea(e,t.slice(0,-1))?e:o6(e,t,n,r)}function vz(e){return Ot(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function J$(e){return Array.isArray(e)?[]:{}}var gz=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function wc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=J$(t[0]);return t.forEach(function(a){function l(c,u){var d=new Set(u),f=Ea(a,c),v=Array.isArray(f);if(v||vz(f)){if(!d.has(f)){d.add(f);var g=Ea(r,c);v?r=mo(r,c,[]):(!g||Ot(g)!=="object")&&(r=mo(r,c,J$(f))),gz(f).forEach(function(p){l([].concat(Me(c),[p]),d)})}}else r=mo(r,c,f)}l([])}),r}function pz(){}const hz=i.createContext({}),ti=()=>{const e=()=>{};return e.deprecated=pz,e},i6=i.createContext(void 0);var l6={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"},bz={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},yz=ce(ce({},bz),{},{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 s6={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Dv={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},yz),timePickerLocale:Object.assign({},s6)},Ka="${label} is not a valid ${type}",po={locale:"en",Pagination:l6,DatePicker:Dv,TimePicker:s6,Calendar:Dv,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ka,method:Ka,array:Ka,object:Ka,number:Ka,date:Ka,boolean:Ka,integer:Ka,float:Ka,regexp:Ka,email:Ka,url:Ka,hex:Ka},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 gv=Object.assign({},po.Modal),pv=[];const ew=()=>pv.reduce((e,t)=>Object.assign(Object.assign({},e),t),po.Modal);function Cz(e){if(e){const t=Object.assign({},e);return pv.push(t),gv=ew(),()=>{pv=pv.filter(n=>n!==t),gv=ew()}}gv=Object.assign({},po.Modal)}function c6(){return gv}const x1=i.createContext(void 0),Aa=(e,t)=>{const n=i.useContext(x1),r=i.useMemo(()=>{var l;const c=t||po[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?po.locale:l},[n]);return[r,a]},xz="internalMark",Sz=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;i.useEffect(()=>Cz(t==null?void 0:t.Modal),[t]);const a=i.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return i.createElement(x1.Provider,{value:a},n)},u6={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"},Hd=Object.assign(Object.assign({},u6),{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}),aa=Math.round;function y0(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 tw=(e,t,n)=>n===0?e:e/100;function rd(e,t){const n=t||255;return e>n?n:e<0?0:e}class bn{constructor(t){ne(this,"isValid",!0),ne(this,"r",0),ne(this,"g",0),ne(this,"b",0),ne(this,"a",1),ne(this,"_h",void 0),ne(this,"_s",void 0),ne(this,"_l",void 0),ne(this,"_v",void 0),ne(this,"_max",void 0),ne(this,"_min",void 0),ne(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 bn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=rd(t.r),this.g=rd(t.g),this.b=rd(t.b),this.a=typeof t.a=="number"?rd(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(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=aa(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:aa(l("r")),g:aa(l("g")),b:aa(l("b")),a:aa(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=>aa((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=aa(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=aa(this.getSaturation()*100),r=aa(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const a=this.clone();return a[t]=rd(n,r),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(a,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=aa(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=aa((l+g)*255),this.g=aa((c+g)*255),this.b=aa((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=aa(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=aa(r*(1-n)*255),v=aa(r*(1-n*d)*255),g=aa(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=y0(t,tw);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=y0(t,tw);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=y0(t,(r,a)=>a.includes("%")?aa(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Dm=2,nw=.16,$z=.05,wz=.05,Ez=.15,d6=5,f6=4,Oz=[{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 rw(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Dm*t:Math.round(e.h)+Dm*t:r=n?Math.round(e.h)+Dm*t:Math.round(e.h)-Dm*t,r<0?r+=360:r>=360&&(r-=360),r}function aw(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-nw*t:t===f6?r=e.s+nw:r=e.s+$z*t,r>1&&(r=1),n&&t===d6&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function ow(e,t,n){var r;return n?r=e.v+wz*t:r=e.v-Ez*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Fd(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new bn(e),a=r.toHsv(),l=d6;l>0;l-=1){var c=new bn({h:rw(a,l,!0),s:aw(a,l,!0),v:ow(a,l,!0)});n.push(c)}n.push(r);for(var u=1;u<=f6;u+=1){var d=new bn({h:rw(a,u),s:aw(a,u),v:ow(a,u)});n.push(d)}return t.theme==="dark"?Oz.map(function(f){var v=f.index,g=f.amount;return new bn(t.backgroundColor||"#141414").mix(n[v],g).toHexString()}):n.map(function(f){return f.toHexString()})}var Nc={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"},Ub=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Ub.primary=Ub[5];var qb=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];qb.primary=qb[5];var Gb=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Gb.primary=Gb[5];var _v=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];_v.primary=_v[5];var Xb=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Xb.primary=Xb[5];var Yb=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Yb.primary=Yb[5];var Qb=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Qb.primary=Qb[5];var Zb=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Zb.primary=Zb[5];var kc=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];kc.primary=kc[5];var Jb=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Jb.primary=Jb[5];var ey=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ey.primary=ey[5];var ty=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ty.primary=ty[5];var ny=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ny.primary=ny[5];var C0={red:Ub,volcano:qb,orange:Gb,gold:_v,yellow:Xb,lime:Yb,green:Qb,cyan:Zb,blue:kc,geekblue:Jb,purple:ey,magenta:ty,grey:ny};function jz(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),y=t(l),x=t(c),S=n(d,f),b=e.colorLink||e.colorInfo,$=t(b),w=new bn(y[1]).mix(new bn(y[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:y[1],colorErrorBgHover:y[2],colorErrorBgFilledHover:w,colorErrorBgActive:y[3],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[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:x[1],colorInfoBgHover:x[2],colorInfoBorder:x[3],colorInfoBorderHover:x[4],colorInfoHover:x[4],colorInfo:x[6],colorInfoActive:x[7],colorInfoTextHover:x[8],colorInfoText:x[9],colorInfoTextActive:x[10],colorLinkHover:$[4],colorLink:$[6],colorLinkActive:$[7],colorBgMask:new bn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Rz=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 Iz(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},Rz(r))}const Nz=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function hv(e){return(e+8)/e}function Mz(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:hv(n)}))}const Tz=e=>{const t=Mz(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 so=(e,t)=>new bn(e).setA(t).toRgbString(),ad=(e,t)=>new bn(e).darken(t).toHexString(),zz=e=>{const t=Fd(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]}},Dz=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:so(r,.88),colorTextSecondary:so(r,.65),colorTextTertiary:so(r,.45),colorTextQuaternary:so(r,.25),colorFill:so(r,.15),colorFillSecondary:so(r,.06),colorFillTertiary:so(r,.04),colorFillQuaternary:so(r,.02),colorBgSolid:so(r,1),colorBgSolidHover:so(r,.75),colorBgSolidActive:so(r,.95),colorBgLayout:ad(n,4),colorBgContainer:ad(n,0),colorBgElevated:ad(n,0),colorBgSpotlight:so(r,.85),colorBgBlur:"transparent",colorBorder:ad(n,15),colorBorderSecondary:ad(n,6)}};function _z(e){Nc.pink=Nc.magenta,C0.pink=C0.magenta;const t=Object.keys(u6).map(n=>{const r=e[n]===Nc[n]?C0[n]:Fd(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),jz(e,{generateColorPalettes:zz,generateNeutralColorPalettes:Dz})),Tz(e.fontSize)),Pz(e)),Nz(e)),Iz(e))}const m6=Lb(_z),ry={token:Hd,override:{override:Hd},hashed:!0},v6=ge.createContext(ry),Vd="ant",vg="anticon",Az=["outlined","borderless","filled","underlined"],Bz=(e,t)=>t||(e?`${Vd}-${e}`:Vd),Rt=i.createContext({getPrefixCls:Bz,iconPrefixCls:vg}),{Consumer:Ose}=Rt,iw={};function hr(e){const t=i.useContext(Rt),{getPrefixCls:n,direction:r,getPopupContainer:a}=t,l=t[e];return Object.assign(Object.assign({classNames:iw,styles:iw},l),{getPrefixCls:n,direction:r,getPopupContainer:a})}const kz=`-ant-${Date.now()}-${Math.random()}`;function Lz(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 bn(c),f=Fd(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 bn(t.primaryColor),u=Fd(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 bn(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 Hz(e,t){const n=Lz(e,t);sa()&&xi(n,`${kz}-dynamic-theme`)}const Kr=i.createContext(!1),S1=({children:e,disabled:t})=>{const n=i.useContext(Kr);return i.createElement(Kr.Provider,{value:t??n},e)},vs=i.createContext(void 0),Fz=({children:e,size:t})=>{const n=i.useContext(vs);return i.createElement(vs.Provider,{value:t||n},e)};function Vz(){const e=i.useContext(Kr),t=i.useContext(vs);return{componentDisabled:e,componentSize:t}}var g6=pr(function e(){gr(this,e)}),p6="CALC_UNIT",Wz=new RegExp(p6,"g");function x0(e){return typeof e=="number"?"".concat(e).concat(p6):e}var Kz=(function(e){Ja(n,e);var t=ho(n);function n(r,a){var l;gr(this,n),l=t.call(this),ne(Et(l),"result",""),ne(Et(l),"unitlessCssVar",void 0),ne(Et(l),"lowPriority",void 0);var c=Ot(r);return l.unitlessCssVar=a,r instanceof n?l.result="(".concat(r.result,")"):c==="number"?l.result=x0(r):c==="string"&&(l.result=r),l}return pr(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(x0(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(x0(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(Wz,d?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(g6),Uz=(function(e){Ja(n,e);var t=ho(n);function n(r){var a;return gr(this,n),a=t.call(this),ne(Et(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return pr(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})(g6),qz=function(t,n){var r=t==="css"?Kz:Uz;return function(a){return new r(a,n)}},lw=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 Qt(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 gs(e){var t=i.useRef(!1),n=i.useState(e),r=me(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 S0(e){return e!==void 0}function Cn(e,t){var n=t||{},r=n.defaultValue,a=n.value,l=n.onChange,c=n.postState,u=gs(function(){return S0(a)?a:S0(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),d=me(u,2),f=d[0],v=d[1],g=a!==void 0?a:f,p=c?c(g):g,y=Qt(l),x=gs([g]),S=me(x,2),b=S[0],$=S[1];cs(function(){var E=b[0];f!==E&&y(f,E)},[b]),cs(function(){S0(a)||v(a)},[a]);var w=Qt(function(E,R){v(E,R),$([g],R)});return[p,w]}function sw(e,t,n,r){var a=ce({},t[e]);if(r!=null&&r.deprecatedTokens){var l=r.deprecatedTokens;l.forEach(function(u){var d=me(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=ce(ce({},n),a);return Object.keys(c).forEach(function(u){c[u]===t[u]&&delete c[u]}),c}var h6=typeof CSSINJS_STATISTIC<"u",ay=!0;function rn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!h6)return Object.assign.apply(Object,[{}].concat(t));ay=!1;var r={};return t.forEach(function(a){if(Ot(a)==="object"){var l=Object.keys(a);l.forEach(function(c){Object.defineProperty(r,c,{configurable:!0,enumerable:!0,get:function(){return a[c]}})})}}),ay=!0,r}var cw={};function Gz(){}var Xz=function(t){var n,r=t,a=Gz;return h6&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(c,u){if(ay){var d;(d=n)===null||d===void 0||d.add(u)}return c[u]}}),a=function(c,u){var d;cw[c]={global:Array.from(n),component:ce(ce({},(d=cw[c])===null||d===void 0?void 0:d.component),u)}}),{token:r,keys:n,flush:a}};function uw(e,t,n){if(typeof n=="function"){var r;return n(rn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function Yz(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 le(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 le(l)}).join(","),")")}}}var Qz=1e3*60*10,Zz=(function(){function e(){gr(this,e),ne(this,"map",new Map),ne(this,"objectIDMap",new WeakMap),ne(this,"nextID",0),ne(this,"lastAccessBeat",new Map),ne(this,"accessBeat",0)}return pr(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&&Ot(l)==="object"?"obj_".concat(r.getObjectID(l)):"".concat(Ot(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>Qz&&(n.map.delete(l),n.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e})(),dw=new Zz;function Jz(e,t){return ge.useMemo(function(){var n=dw.get(t);if(n)return n;var r=e();return dw.set(t,r),r},t)}var e7=function(){return{}};function t7(e){var t=e.useCSP,n=t===void 0?e7:t,r=e.useToken,a=e.usePrefix,l=e.getResetStyles,c=e.getCommonStyle,u=e.getCompUnitless;function d(p,y,x,S){var b=Array.isArray(p)?p[0]:p;function $(M){return"".concat(String(b)).concat(M.slice(0,1).toUpperCase()).concat(M.slice(1))}var w=(S==null?void 0:S.unitless)||{},E=typeof u=="function"?u(p):{},R=ce(ce({},E),{},ne({},$("zIndexPopup"),!0));Object.keys(w).forEach(function(M){R[$(M)]=w[M]});var j=ce(ce({},S),{},{unitless:R,prefixToken:$}),I=v(p,y,x,j),O=f(b,x,j);return function(M){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,P=I(M,N),B=me(P,2),L=B[1],k=O(N),_=me(k,2),H=_[0],z=_[1];return[H,L,z]}}function f(p,y,x){var S=x.unitless,b=x.injectStyle,$=b===void 0?!0:b,w=x.prefixToken,E=x.ignore,R=function(O){var M=O.rootCls,N=O.cssVar,P=N===void 0?{}:N,B=r(),L=B.realToken;return fz({path:[p],prefix:P.prefix,key:P.key,unitless:S,ignore:E,token:L,scope:M},function(){var k=uw(p,L,y),_=sw(p,L,k,{deprecatedTokens:x==null?void 0:x.deprecatedTokens});return Object.keys(k).forEach(function(H){_[w(H)]=_[H],delete _[H]}),_}),null},j=function(O){var M=r(),N=M.cssVar;return[function(P){return $&&N?ge.createElement(ge.Fragment,null,ge.createElement(R,{rootCls:O,cssVar:N,component:p}),P):P},N==null?void 0:N.key]};return j}function v(p,y,x){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(p)?p:[p,p],$=me(b,1),w=$[0],E=b.join("-"),R=e.layer||{name:"antd"};return function(j){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j,O=r(),M=O.theme,N=O.realToken,P=O.hashId,B=O.token,L=O.cssVar,k=a(),_=k.rootPrefixCls,H=k.iconPrefixCls,z=n(),D=L?"css":"js",F=Jz(function(){var K=new Set;return L&&Object.keys(S.unitless||{}).forEach(function(Z){K.add(dv(Z,L.prefix)),K.add(dv(Z,lw(w,L.prefix)))}),qz(D,K)},[D,w,L==null?void 0:L.prefix]),W=Yz(D),U=W.max,V=W.min,G={theme:M,token:B,hashId:P,nonce:function(){return z.nonce},clientOnly:S.clientOnly,layer:R,order:S.order||-999};typeof l=="function"&&Kb(ce(ce({},G),{},{clientOnly:!1,path:["Shared",_]}),function(){return l(B,{prefix:{rootPrefixCls:_,iconPrefixCls:H},csp:z})});var q=Kb(ce(ce({},G),{},{path:[E,j,H]}),function(){if(S.injectStyle===!1)return[];var K=Xz(B),Z=K.token,Q=K.flush,te=uw(w,N,x),X=".".concat(j),oe=sw(w,N,te,{deprecatedTokens:S.deprecatedTokens});L&&te&&Ot(te)==="object"&&Object.keys(te).forEach(function(ee){te[ee]="var(".concat(dv(ee,lw(w,L.prefix)),")")});var ae=rn(Z,{componentCls:X,prefixCls:j,iconCls:".".concat(H),antCls:".".concat(_),calc:F,max:U,min:V},L?te:oe),re=y(ae,{hashId:P,prefixCls:j,rootPrefixCls:_,iconPrefixCls:H});Q(w,oe);var Y=typeof c=="function"?c(ae,j,I,S.resetFont):null;return[S.resetStyle===!1?null:Y,re]});return[q,P]}}function g(p,y,x){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=v(p,y,x,ce({resetStyle:!1,order:-998},S)),$=function(E){var R=E.prefixCls,j=E.rootCls,I=j===void 0?R:j;return b(R,I),null};return $}return{genStyleHooks:d,genSubStyleComponent:g,genComponentStyleHook:v}}const Cl=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],n7="5.29.3";function $0(e){return e>=0&&e<=255}function pd(e,t){const{r:n,g:r,b:a,a:l}=new bn(e).toRgb();if(l<1)return e;const{r:c,g:u,b:d}=new bn(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($0(v)&&$0(g)&&$0(p))return new bn({r:v,g,b:p,a:Math.round(f*100)/100}).toRgbString()}return new bn({r:n,g:r,b:a,a:1}).toRgbString()}var r7=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 b6(e){const{override:t}=e,n=r7(e,["override"]),r=Object.assign({},t);Object.keys(Hd).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:pd(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:pd(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:pd(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:pd(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 bn("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
86
|
-
0 3px 6px 0 ${new bn("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
87
|
-
0 5px 12px 4px ${new bn("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 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 y6={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},a7={motionBase:!0,motionUnit:!0},o7={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},C6=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a}=t,l=fw(t,["override"]);let c=Object.assign(Object.assign({},r),{override:a});return c=b6(c),l&&Object.entries(l).forEach(([u,d])=>{const{theme:f}=d,v=fw(d,["theme"]);let g=v;f&&(g=C6(Object.assign(Object.assign({},c),v),{override:v},f)),c[u]=g}),c};function ua(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=ge.useContext(v6),l=`${n7}-${t||""}`,c=n||m6,[u,d,f]=BP(c,[Hd,e],{salt:l,override:r,getComputedToken:C6,formatToken:b6,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:y6,ignore:a7,preserve:o7}});return[c,f,t?d:"",u,a]}const Qa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},mn=(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}),$s=()=>({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"}}),Xo=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),i7=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"}}}),l7=(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})}},Mo=(e,t)=>({outline:`${le(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Za=(e,t)=>({"&:focus-visible":Mo(e,t)}),x6=e=>({[`.${e}`]:Object.assign(Object.assign({},$s()),{[`.${e} .${e}-icon`]:{display:"block"}})}),$1=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"},Za(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:un,genComponentStyleHook:S6,genSubStyleComponent:Qc}=t7({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=i.useContext(Rt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=ua();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=i7(e);return[r,{"&":r},x6((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:vg)]},getCommonStyle:l7,getCompUnitless:()=>y6});function gg(e,t){return Cl.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 s7=(e,t)=>{const[n,r]=ua();return Kb({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>x6(e))},c7=Object.assign({},sg),{useId:mw}=c7,u7=()=>"",d7=typeof mw>"u"?u7:mw;function f7(e,t,n){var r;ti();const a=e||{},l=a.inherit===!1||!t?Object.assign(Object.assign({},ry),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:ry.hashed,cssVar:t==null?void 0:t.cssVar}):t,c=d7();return Ss(()=>{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!No(f,g,!0)}))}var m7=["children"],$6=i.createContext({});function v7(e){var t=e.children,n=Lt(e,m7);return i.createElement($6.Provider,{value:n},t)}var g7=(function(e){Ja(n,e);var t=ho(n);function n(){return gr(this,n),t.apply(this,arguments)}return pr(n,[{key:"render",value:function(){return this.props.children}}]),n})(i.Component);function p7(e){var t=i.useReducer(function(u){return u+1},0),n=me(t,2),r=n[1],a=i.useRef(e),l=Qt(function(){return a.current}),c=Qt(function(u){a.current=typeof u=="function"?u(a.current):u,r()});return[l,c]}var sl="none",_m="appear",Am="enter",Bm="leave",vw="none",$o="prepare",Ec="start",Oc="active",w1="end",w6="prepared";function gw(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 h7(e,t){var n={animationend:gw("Animation","AnimationEnd"),transitionend:gw("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var b7=h7(sa(),typeof window<"u"?window:{}),E6={};if(sa()){var y7=document.createElement("div");E6=y7.style}var km={};function O6(e){if(km[e])return km[e];var t=b7[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 E6)return km[e]=t[l],km[e]}return""}var j6=O6("animationend"),R6=O6("transitionend"),I6=!!(j6&&R6),pw=j6||"animationend",hw=R6||"transitionend";function bw(e,t){if(!e)return null;if(Ot(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const C7=(function(e){var t=i.useRef();function n(a){a&&(a.removeEventListener(hw,e),a.removeEventListener(pw,e))}function r(a){t.current&&t.current!==a&&n(t.current),a&&a!==t.current&&(a.addEventListener(hw,e),a.addEventListener(pw,e),t.current=a)}return i.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var N6=sa()?i.useLayoutEffect:i.useEffect;const x7=(function(){var e=i.useRef(null);function t(){Zt.cancel(e.current)}function n(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var l=Zt(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 S7=[$o,Ec,Oc,w1],$7=[$o,w6],M6=!1,w7=!0;function T6(e){return e===Oc||e===w1}const E7=(function(e,t,n){var r=gs(vw),a=me(r,2),l=a[0],c=a[1],u=x7(),d=me(u,2),f=d[0],v=d[1];function g(){c($o,!0)}var p=t?$7:S7;return N6(function(){if(l!==vw&&l!==w1){var y=p.indexOf(l),x=p[y+1],S=n(l);S===M6?c(x,!0):x&&f(function(b){function $(){b.isCanceled()||c(x,!0)}S===!0?$():Promise.resolve(S).then($)})}},[e,l]),i.useEffect(function(){return function(){v()}},[]),[g,l]});function O7(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,y=r.onEnterPrepare,x=r.onLeavePrepare,S=r.onAppearStart,b=r.onEnterStart,$=r.onLeaveStart,w=r.onAppearActive,E=r.onEnterActive,R=r.onLeaveActive,j=r.onAppearEnd,I=r.onEnterEnd,O=r.onLeaveEnd,M=r.onVisibleChanged,N=gs(),P=me(N,2),B=P[0],L=P[1],k=p7(sl),_=me(k,2),H=_[0],z=_[1],D=gs(null),F=me(D,2),W=F[0],U=F[1],V=H(),G=i.useRef(!1),q=i.useRef(null);function K(){return n()}var Z=i.useRef(!1);function Q(){z(sl),U(null,!0)}var te=Qt(function(be){var $e=H();if($e!==sl){var xe=K();if(!(be&&!be.deadline&&be.target!==xe)){var ye=Z.current,Ne;$e===_m&&ye?Ne=j==null?void 0:j(xe,be):$e===Am&&ye?Ne=I==null?void 0:I(xe,be):$e===Bm&&ye&&(Ne=O==null?void 0:O(xe,be)),ye&&Ne!==!1&&Q()}}}),X=C7(te),oe=me(X,1),ae=oe[0],re=function($e){switch($e){case _m:return ne(ne(ne({},$o,p),Ec,S),Oc,w);case Am:return ne(ne(ne({},$o,y),Ec,b),Oc,E);case Bm:return ne(ne(ne({},$o,x),Ec,$),Oc,R);default:return{}}},Y=i.useMemo(function(){return re(V)},[V]),ee=E7(V,!e,function(be){if(be===$o){var $e=Y[$o];return $e?$e(K()):M6}if(se in Y){var xe;U(((xe=Y[se])===null||xe===void 0?void 0:xe.call(Y,K(),null))||null)}return se===Oc&&V!==sl&&(ae(K()),v>0&&(clearTimeout(q.current),q.current=setTimeout(function(){te({deadline:!0})},v))),se===w6&&Q(),w7}),ie=me(ee,2),ue=ie[0],se=ie[1],pe=T6(se);Z.current=pe;var fe=i.useRef(null);N6(function(){if(!(G.current&&fe.current===t)){L(t);var be=G.current;G.current=!0;var $e;!be&&t&&u&&($e=_m),be&&t&&l&&($e=Am),(be&&!t&&f||!be&&g&&!t&&f)&&($e=Bm);var xe=re($e);$e&&(e||xe[$o])?(z($e),ue()):z(sl),fe.current=t}},[t]),i.useEffect(function(){(V===_m&&!u||V===Am&&!l||V===Bm&&!f)&&z(sl)},[u,l,f]),i.useEffect(function(){return function(){G.current=!1,clearTimeout(q.current)}},[]);var he=i.useRef(!1);i.useEffect(function(){B&&(he.current=!0),B!==void 0&&V===sl&&((he.current||B)&&(M==null||M(B)),he.current=!0)},[B,V]);var Se=W;return Y[$o]&&se===Ec&&(Se=ce({transition:"none"},Se)),[V,se,Se,B??t]}function j7(e){var t=e;Ot(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,y=a.leavedClassName,x=a.eventProps,S=i.useContext($6),b=S.motion,$=n(a,b),w=i.useRef(),E=i.useRef();function R(){try{return w.current instanceof HTMLElement?w.current:uv(E.current)}catch{return null}}var j=O7($,u,R,a),I=me(j,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,_d(l,F)},[l]),k,_=ce(ce({},x),{},{visible:u});if(!g)k=null;else if(O===sl)P?k=g(ce({},_),L):!f&&B.current&&y?k=g(ce(ce({},_),{},{className:y}),L):v||!f&&!y?k=g(ce(ce({},_),{},{style:{display:"none"}}),L):k=null;else{var H;M===$o?H="prepare":T6(M)?H="active":M===Ec&&(H="start");var z=bw(p,"".concat(O,"-").concat(H));k=g(ce(ce({},_),{},{className:de(bw(p,O),ne(ne({},z,z&&H),p,typeof p=="string")),style:N}),L)}if(i.isValidElement(k)&&Io(k)){var D=El(k);D||(k=i.cloneElement(k,{ref:L}))}return i.createElement(g7,{ref:E},k)});return r.displayName="CSSMotion",r}const ta=j7(I6);var oy="add",iy="keep",ly="remove",w0="removed";function R7(e){var t;return e&&Ot(e)==="object"&&"key"in e?t=e:t={key:e},ce(ce({},t),{},{key:String(t.key)})}function sy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(R7)}function I7(){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=sy(e),c=sy(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(y){return ce(ce({},y),{},{status:oy})})),r=g),n.push(ce(ce({},p),{},{status:iy})),r+=1,v=!0;break}}v||n.push(ce(ce({},f),{},{status:ly}))}),r<a&&(n=n.concat(c.slice(r).map(function(f){return ce(ce({},f),{},{status:oy})})));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!==ly}),n.forEach(function(v){v.key===f&&(v.status=iy)})}),n}var N7=["component","children","onVisibleChanged","onAllRemoved"],M7=["status"],T7=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function P7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ta,n=(function(r){Ja(l,r);var a=ho(l);function l(){var c;gr(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)),ne(Et(c),"state",{keyEntities:[]}),ne(Et(c),"removeKey",function(v){c.setState(function(g){var p=g.keyEntities.map(function(y){return y.key!==v?y:ce(ce({},y),{},{status:w0})});return{keyEntities:p}},function(){var g=c.state.keyEntities,p=g.filter(function(y){var x=y.status;return x!==w0}).length;p===0&&c.props.onAllRemoved&&c.props.onAllRemoved()})}),c}return pr(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 y=Lt(f,N7),x=v||i.Fragment,S={};return T7.forEach(function(b){S[b]=y[b],delete y[b]}),delete y.keys,i.createElement(x,y,d.map(function(b,$){var w=b.status,E=Lt(b,M7),R=w===oy||w===iy;return i.createElement(t,Ce({},S,{key:E.key,visible:R,eventProps:E,onVisibleChanged:function(I){p==null||p(I,{key:E.key}),I||u.removeKey(E.key)}}),function(j,I){return g(ce(ce({},j),{},{index:$}),I)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,d){var f=u.keys,v=d.keyEntities,g=sy(f),p=I7(v,g);return{keyEntities:p.filter(function(y){var x=v.find(function(S){var b=S.key;return y.key===b});return!(x&&x.status===w0&&y.status===ly)})}}}]),l})(i.Component);return ne(n,"defaultProps",{component:"div"}),n}const E1=P7(I6),yw=i.createContext(!0);function z7(e){const t=i.useContext(yw),{children:n}=e,[,r]=ua(),{motion:a}=r,l=i.useRef(!1);return l.current||(l.current=t!==a),l.current?i.createElement(yw.Provider,{value:a},i.createElement(v7,{motion:a},n)):n}const D7=()=>null;var _7=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 A7=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Av,P6,z6,D6;function bv(){return Av||Vd}function B7(){return P6||vg}function k7(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const L7=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(Av=t),n!==void 0&&(P6=n),"holderRender"in e&&(D6=a),r&&(k7(r)?Hz(bv(),r):z6=r)},_6=()=>({getPrefixCls:(e,t)=>t||(e?`${bv()}-${e}`:bv()),getIconPrefixCls:B7,getRootPrefixCls:()=>Av||bv(),getTheme:()=>z6,holderRender:D6}),H7=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:y,popupMatchSelectWidth:x,popupOverflow:S,legacyLocale:b,parentContext:$,iconPrefixCls:w,theme:E,componentDisabled:R,segmented:j,statistic:I,spin:O,calendar:M,carousel:N,cascader:P,collapse:B,typography:L,checkbox:k,descriptions:_,divider:H,drawer:z,skeleton:D,steps:F,image:W,layout:U,list:V,mentions:G,modal:q,progress:K,result:Z,slider:Q,breadcrumb:te,menu:X,pagination:oe,input:ae,textArea:re,empty:Y,badge:ee,radio:ie,rate:ue,switch:se,transfer:pe,avatar:fe,message:he,tag:Se,table:be,card:$e,tabs:xe,timeline:ye,timePicker:Ne,upload:_e,notification:Qe,tree:Ke,colorPicker:Fe,datePicker:Xe,rangePicker:Pe,flex:je,wave:Ae,dropdown:Re,warning:ze,tour:we,tooltip:Oe,popover:Te,popconfirm:Le,floatButton:tt,floatButtonGroup:Ct,variant:We,inputNumber:nt,treeSelect:dt}=e,at=i.useCallback((Nt,Wt)=>{const{prefixCls:ft}=e;if(Wt)return Wt;const lt=ft||$.getPrefixCls("");return Nt?`${lt}-${Nt}`:lt},[$.getPrefixCls,e.prefixCls]),bt=w||$.iconPrefixCls||vg,zt=n||$.csp;s7(bt,zt);const jt=f7(E,$.theme,{prefixCls:at("")}),ct={csp:zt,autoInsertSpaceInButton:r,alert:a,anchor:l,locale:u||b,direction:f,space:v,splitter:g,virtual:p,popupMatchSelectWidth:x??y,popupOverflow:S,getPrefixCls:at,iconPrefixCls:bt,theme:jt,segmented:j,statistic:I,spin:O,calendar:M,carousel:N,cascader:P,collapse:B,typography:L,checkbox:k,descriptions:_,divider:H,drawer:z,skeleton:D,steps:F,image:W,input:ae,textArea:re,layout:U,list:V,mentions:G,modal:q,progress:K,result:Z,slider:Q,breadcrumb:te,menu:X,pagination:oe,empty:Y,badge:ee,radio:ie,rate:ue,switch:se,transfer:pe,avatar:fe,message:he,tag:Se,table:be,card:$e,tabs:xe,timeline:ye,timePicker:Ne,upload:_e,notification:Qe,tree:Ke,colorPicker:Fe,datePicker:Xe,rangePicker:Pe,flex:je,wave:Ae,dropdown:Re,warning:ze,tour:we,tooltip:Oe,popover:Te,popconfirm:Le,floatButton:tt,floatButtonGroup:Ct,variant:We,inputNumber:nt,treeSelect:dt},wt=Object.assign({},$);Object.keys(ct).forEach(Nt=>{ct[Nt]!==void 0&&(wt[Nt]=ct[Nt])}),A7.forEach(Nt=>{const Wt=e[Nt];Wt&&(wt[Nt]=Wt)}),typeof r<"u"&&(wt.button=Object.assign({autoInsertSpace:r},wt.button));const xt=Ss(()=>wt,wt,(Nt,Wt)=>{const ft=Object.keys(Nt),lt=Object.keys(Wt);return ft.length!==lt.length||ft.some(At=>Nt[At]!==Wt[At])}),{layer:et}=i.useContext(lf),Ve=i.useMemo(()=>({prefixCls:bt,csp:zt,layer:et?"antd":void 0}),[bt,zt,et]);let qe=i.createElement(i.Fragment,null,i.createElement(D7,{dropdownMatchSelectWidth:y}),t);const mt=i.useMemo(()=>{var Nt,Wt,ft,lt;return wc(((Nt=po.Form)===null||Nt===void 0?void 0:Nt.defaultValidateMessages)||{},((ft=(Wt=xt.locale)===null||Wt===void 0?void 0:Wt.Form)===null||ft===void 0?void 0:ft.defaultValidateMessages)||{},((lt=xt.form)===null||lt===void 0?void 0:lt.validateMessages)||{},(c==null?void 0:c.validateMessages)||{})},[xt,c==null?void 0:c.validateMessages]);Object.keys(mt).length>0&&(qe=i.createElement(i6.Provider,{value:mt},qe)),u&&(qe=i.createElement(Sz,{locale:u,_ANT_MARK__:xz},qe)),qe=i.createElement(C1.Provider,{value:Ve},qe),d&&(qe=i.createElement(Fz,{size:d},qe)),qe=i.createElement(z7,null,qe);const Tt=i.useMemo(()=>{const Nt=jt||{},{algorithm:Wt,token:ft,components:lt,cssVar:At}=Nt,Gt=_7(Nt,["algorithm","token","components","cssVar"]),on=Wt&&(!Array.isArray(Wt)||Wt.length>0)?Lb(Wt):m6,Jt={};Object.entries(lt||{}).forEach(([Xt,fn])=>{const st=Object.assign({},fn);"algorithm"in st&&(st.algorithm===!0?st.theme=on:(Array.isArray(st.algorithm)||typeof st.algorithm=="function")&&(st.theme=Lb(st.algorithm)),delete st.algorithm),Jt[Xt]=st});const pn=Object.assign(Object.assign({},Hd),ft);return Object.assign(Object.assign({},Gt),{theme:on,token:pn,components:Jt,override:Object.assign({override:pn},Jt),cssVar:At})},[jt]);return E&&(qe=i.createElement(v6.Provider,{value:Tt},qe)),xt.warning&&(qe=i.createElement(hz.Provider,{value:xt.warning},qe)),R!==void 0&&(qe=i.createElement(S1,{disabled:R},qe)),i.createElement(Rt.Provider,{value:xt},qe)},Do=e=>{const t=i.useContext(Rt),n=i.useContext(x1);return i.createElement(H7,Object.assign({parentContext:t,legacyLocale:n},e))};Do.ConfigContext=Rt;Do.SizeContext=vs;Do.config=L7;Do.useConfig=Vz;Object.defineProperty(Do,"SizeContext",{get:()=>vs});var F7={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 A6(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function V7(e){return A6(e)instanceof ShadowRoot}function Bv(e){return V7(e)?A6(e):null}function W7(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function K7(e,t){Zn(e,"[@ant-design/icons] ".concat(t))}function Cw(e){return Ot(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ot(e.icon)==="object"||typeof e.icon=="function")}function xw(){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[W7(n)]=r}return t},{})}function cy(e,t,n){return n?ge.createElement(e.tag,ce(ce({key:t},xw(e.attrs)),n),(e.children||[]).map(function(r,a){return cy(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):ge.createElement(e.tag,ce({key:t},xw(e.attrs)),(e.children||[]).map(function(r,a){return cy(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function B6(e){return Fd(e)[0]}function k6(e){return e?Array.isArray(e)?e:[e]:[]}var U7=`
|
|
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
|
-
`,q7=function(t){var n=i.useContext(C1),r=n.csp,a=n.prefixCls,l=n.layer,c=U7;a&&(c=c.replace(/anticon/g,a)),l&&(c="@layer ".concat(l,` {
|
|
160
|
-
`).concat(c,`
|
|
161
|
-
}`)),i.useEffect(function(){var u=t.current,d=Bv(u);xi(c,"@ant-design-icons",{prepend:!l,csp:r,attachTo:d})},[])},G7=["icon","className","onClick","style","primaryColor","secondaryColor"],Od={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function X7(e){var t=e.primaryColor,n=e.secondaryColor;Od.primaryColor=t,Od.secondaryColor=n||B6(t),Od.calculated=!!n}function Y7(){return ce({},Od)}var Zc=function(t){var n=t.icon,r=t.className,a=t.onClick,l=t.style,c=t.primaryColor,u=t.secondaryColor,d=Lt(t,G7),f=i.useRef(),v=Od;if(c&&(v={primaryColor:c,secondaryColor:u||B6(c)}),q7(f),K7(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=ce(ce({},g),{},{icon:g.icon(v.primaryColor,v.secondaryColor)})),cy(g.icon,"svg-".concat(g.name),ce(ce({className:r,onClick:a,style:l,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:f}))};Zc.displayName="IconReact";Zc.getTwoToneColors=Y7;Zc.setTwoToneColors=X7;function L6(e){var t=k6(e),n=me(t,2),r=n[0],a=n[1];return Zc.setTwoToneColors({primaryColor:r,secondaryColor:a})}function Q7(){var e=Zc.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Z7=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];L6(kc.primary);var ht=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,Z7),v=i.useContext(C1),g=v.prefixCls,p=g===void 0?"anticon":g,y=v.rootClassName,x=de(y,p,ne(ne({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!a||r.name==="loading"),n),S=c;S===void 0&&u&&(S=-1);var b=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,$=k6(d),w=me($,2),E=w[0],R=w[1];return i.createElement("span",Ce({role:"img","aria-label":r.name},f,{ref:t,tabIndex:S,onClick:u,className:x}),i.createElement(Zc,{icon:r,primaryColor:E,secondaryColor:R,style:b}))});ht.displayName="AntdIcon";ht.getTwoToneColor=Q7;ht.setTwoToneColor=L6;var J7=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:F7}))},ws=i.forwardRef(J7),eD={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"},tD=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:eD}))},Ol=i.forwardRef(tD),nD={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"},rD=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:nD}))},_o=i.forwardRef(rD),aD={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"},oD=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:aD}))},Es=i.forwardRef(oD),iD={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"},lD=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:iD}))},pg=i.forwardRef(lD),sD=`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`,cD=`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`,uD="".concat(sD," ").concat(cD).split(/[\s\n]+/),dD="aria-",fD="data-";function Sw(e,t){return e.indexOf(t)===0}function Nr(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=ce({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||Sw(a,dD))||n.data&&Sw(a,fD)||n.attr&&uD.includes(a))&&(r[a]=e[a])}),r}function H6(e){return e&&ge.isValidElement(e)&&e.type===ge.Fragment}const O1=(e,t,n)=>ge.isValidElement(e)?ge.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Or(e,t){return O1(e,e,t)}const Lm=(e,t,n,r,a)=>({background:e,border:`${le(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),mD=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:y,defaultPadding:x}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{position:"relative",display:"flex",alignItems:"center",padding:x,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:y,[`${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}}},vD=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:y}=e;return{[t]:{"&-success":Lm(a,r,n,e,t),"&-info":Lm(y,p,g,e,t),"&-warning":Lm(u,c,l,e,t),"&-error":Object.assign(Object.assign({},Lm(v,f,d,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},gD=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:le(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}}}}},pD=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),hD=un("Alert",e=>[mD(e),vD(e),gD(e)],pD);var $w=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 bD={success:ws,info:pg,error:Ol,warning:Es},yD=e=>{const{icon:t,prefixCls:n,type:r}=e,a=bD[r]||null;return t?O1(t,i.createElement("span",{className:`${n}-icon`},t),()=>({className:de(`${n}-icon`,t.props.className)})):i.createElement(a,{className:`${n}-icon`})},CD=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:l}=e,c=r===!0||r===void 0?i.createElement(_o,null):r;return t?i.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},l),c):null},F6=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:y,closable:x,closeText:S,closeIcon:b,action:$,id:w}=e,E=$w(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[R,j]=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}=hr("alert"),k=O("alert",r),[_,H,z]=hD(k),D=Z=>{var Q;j(!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 x=="object"&&x.closeIcon||S?!0:typeof x=="boolean"?x:b!==!1&&b!==null&&b!==void 0?!0:!!N,[S,b,x,N]),U=l&&y===void 0?!0:y,V=de(k,`${k}-${F}`,{[`${k}-with-description`]:!!n,[`${k}-no-icon`]:!U,[`${k}-banner`]:!!l,[`${k}-rtl`]:M==="rtl"},B,c,u,z,H),G=Nr(E,{aria:!0,data:!0}),q=i.useMemo(()=>typeof x=="object"&&x.closeIcon?x.closeIcon:S||(b!==void 0?b:typeof N=="object"&&N.closeIcon?N.closeIcon:P),[b,x,N,S,P]),K=i.useMemo(()=>{const Z=x??N;if(typeof Z=="object"){const{closeIcon:Q}=Z;return $w(Z,["closeIcon"])}return{}},[x,N]);return _(i.createElement(ta,{visible:!R,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:Mr(I,te),"data-show":!R,className:de(V,Z),style:Object.assign(Object.assign(Object.assign({},L),d),Q),onMouseEnter:f,onMouseLeave:v,onClick:g,role:"alert"},G),U?i.createElement(yD,{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),$?i.createElement("div",{className:`${k}-action`},$):null,i.createElement(CD,{isClosable:W,prefixCls:k,closeIcon:q,handleClose:D,ariaProps:K}))))});function xD(e,t,n){return t=ms(t),z3(e,ug()?Reflect.construct(t,n||[],ms(e).constructor):t.apply(e,n))}let SD=(function(e){function t(){var n;return gr(this,t),n=xD(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Ja(t,e),pr(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(F6,{id:l,type:"error",message:v,description:i.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},g)}):c}}])})(i.Component);const pl=F6;pl.ErrorBoundary=SD;const ww=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Ew=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Hm=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Ew(n.overflowY,t)||Ew(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},Fm=(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,$D=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Ow=(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(!ww(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,y=[];let x=e;for(;ww(x)&&g(x);){if(x=$D(x),x===p){y.push(x);break}x!=null&&x===document.body&&Hm(x)&&!Hm(document.documentElement)||x!=null&&Hm(x,v)&&y.push(x)}const S=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,b=(l=(a=window.visualViewport)==null?void 0:a.height)!=null?l:innerHeight,{scrollX:$,scrollY:w}=window,{height:E,width:R,top:j,right:I,bottom:O,left:M}=e.getBoundingClientRect(),{top:N,right:P,bottom:B,left:L}=(z=>{const D=window.getComputedStyle(z);return{top:parseFloat(D.scrollMarginTop)||0,right:parseFloat(D.scrollMarginRight)||0,bottom:parseFloat(D.scrollMarginBottom)||0,left:parseFloat(D.scrollMarginLeft)||0}})(e);let k=u==="start"||u==="nearest"?j-N:u==="end"?O+B:j+E/2-N+B,_=d==="center"?M+R/2-L+P:d==="end"?I+P:M-L;const H=[];for(let z=0;z<y.length;z++){const D=y[z],{height:F,width:W,top:U,right:V,bottom:G,left:q}=D.getBoundingClientRect();if(c==="if-needed"&&j>=0&&M>=0&&O<=b&&I<=S&&(D===p&&!Hm(D)||j>=U&&O<=G&&M>=q&&I<=V))return H;const K=getComputedStyle(D),Z=parseInt(K.borderLeftWidth,10),Q=parseInt(K.borderTopWidth,10),te=parseInt(K.borderRightWidth,10),X=parseInt(K.borderBottomWidth,10);let oe=0,ae=0;const re="offsetWidth"in D?D.offsetWidth-D.clientWidth-Z-te:0,Y="offsetHeight"in D?D.offsetHeight-D.clientHeight-Q-X:0,ee="offsetWidth"in D?D.offsetWidth===0?0:W/D.offsetWidth:0,ie="offsetHeight"in D?D.offsetHeight===0?0:F/D.offsetHeight:0;if(p===D)oe=u==="start"?k:u==="end"?k-b:u==="nearest"?Fm(w,w+b,b,Q,X,w+k,w+k+E,E):k-b/2,ae=d==="start"?_:d==="center"?_-S/2:d==="end"?_-S:Fm($,$+S,S,Z,te,$+_,$+_+R,R),oe=Math.max(0,oe+w),ae=Math.max(0,ae+$);else{oe=u==="start"?k-U-Q:u==="end"?k-G+X+Y:u==="nearest"?Fm(U,G,F,Q,X+Y,k,k+E,E):k-(U+F/2)+Y/2,ae=d==="start"?_-q-Z:d==="center"?_-(q+W/2)+re/2:d==="end"?_-V+te+re:Fm(q,V,W,Z,te+re,_,_+R,R);const{scrollLeft:ue,scrollTop:se}=D;oe=ie===0?0:Math.max(0,Math.min(se+oe/ie,D.scrollHeight-F/ie+Y)),ae=ee===0?0:Math.max(0,Math.min(ue+ae/ee,D.scrollWidth-W/ee+re)),k+=se-oe,_+=ue-ae}H.push({el:D,top:oe,left:ae})}return H},wD=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function ED(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(Ow(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:l,left:c}of Ow(e,wD(t))){const u=l-n.top+n.bottom,d=c-n.left+n.right;a.scroll({top:u,left:d,behavior:r})}}function uy(e){return e!=null&&e===e.window}const V6=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return uy(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!uy(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 OD(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 W6(e,t={}){const{getContainer:n=()=>window,callback:r,duration:a=450}=t,l=n(),c=V6(l),u=Date.now(),d=()=>{const v=Date.now()-u,g=OD(v>a?a:v,c,e,a);uy(l)?l.scrollTo(window.pageXOffset,g):l instanceof Document||l.constructor.name==="HTMLDocument"?l.documentElement.scrollTop=g:l.scrollTop=g,v<a?Zt(d):typeof r=="function"&&r()};Zt(d)}const vr=e=>{const[,,,,t]=ua();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},K6=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,y=e.closeIcon,x=y===void 0?"x":y,S=e.props,b=e.onClick,$=e.onNoticeClose,w=e.times,E=e.hovering,R=i.useState(!1),j=me(R,2),I=j[0],O=j[1],M=i.useState(0),N=me(M,2),P=N[0],B=N[1],L=i.useState(0),k=me(L,2),_=k[0],H=k[1],z=E||I,D=c>0&&u,F=function(){$(v)},W=function(Z){(Z.key==="Enter"||Z.code==="Enter"||Z.keyCode===ot.ENTER)&&F()};i.useEffect(function(){if(!z&&c>0){var K=Date.now()-_,Z=setTimeout(function(){F()},c*1e3-_);return function(){f&&clearTimeout(Z),H(Date.now()-K)}}},[c,z,w]),i.useEffect(function(){if(!z&&D&&(f||_===0)){var K=performance.now(),Z,Q=function te(){cancelAnimationFrame(Z),Z=requestAnimationFrame(function(X){var oe=X+_-K,ae=Math.min(oe/(c*1e3),1);B(ae*100),ae<1&&te()})};return Q(),function(){f&&cancelAnimationFrame(Z)}}},[c,_,z,D,w]);var U=i.useMemo(function(){return Ot(p)==="object"&&p!==null?p:p?{closeIcon:x}:{}},[p,x]),V=Nr(U,!0),G=100-(!P||P<0?0:P>100?100:P),q="".concat(n,"-notice");return i.createElement("div",Ce({},S,{ref:t,className:de(q,a,ne({},"".concat(q,"-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:b}),i.createElement("div",{className:"".concat(q,"-content")},g),p&&i.createElement("a",Ce({tabIndex:0,className:"".concat(q,"-close"),onKeyDown:W,"aria-label":"Close"},V,{onClick:function(Z){Z.preventDefault(),Z.stopPropagation(),F()}}),U.closeIcon),D&&i.createElement("progress",{className:"".concat(q,"-progress"),max:"100",value:G},G+"%"))}),U6=ge.createContext({}),q6=function(t){var n=t.children,r=t.classNames;return ge.createElement(U6.Provider,{value:{classNames:r}},n)},jw=8,Rw=3,Iw=16,jD=function(t){var n={offset:jw,threshold:Rw,gap:Iw};if(t&&Ot(t)==="object"){var r,a,l;n.offset=(r=t.offset)!==null&&r!==void 0?r:jw,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:Rw,n.gap=(l=t.gap)!==null&&l!==void 0?l:Iw}return[!!t,n]},RD=["className","style","classNames","styles"],ID=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(U6),p=g.classNames,y=i.useRef({}),x=i.useState(null),S=me(x,2),b=S[0],$=S[1],w=i.useState([]),E=me(w,2),R=E[0],j=E[1],I=n.map(function(z){return{config:z,key:String(z.key)}}),O=jD(v),M=me(O,2),N=M[0],P=M[1],B=P.offset,L=P.threshold,k=P.gap,_=N&&(R.length>0||I.length<=L),H=typeof u=="function"?u(r):u;return i.useEffect(function(){N&&R.length>1&&j(function(z){return z.filter(function(D){return I.some(function(F){var W=F.key;return D===W})})})},[R,I,N]),i.useEffect(function(){var z;if(N&&y.current[(z=I[I.length-1])===null||z===void 0?void 0:z.key]){var D;$(y.current[(D=I[I.length-1])===null||D===void 0?void 0:D.key])}},[I,N]),ge.createElement(E1,Ce({key:r,className:de(a,"".concat(a,"-").concat(r),p==null?void 0:p.list,l,ne(ne({},"".concat(a,"-stack"),!!N),"".concat(a,"-stack-expanded"),_)),style:c,keys:I,motionAppear:!0},H,{onAllRemoved:function(){d(r)}}),function(z,D){var F=z.config,W=z.className,U=z.style,V=z.index,G=F,q=G.key,K=G.times,Z=String(q),Q=F,te=Q.className,X=Q.style,oe=Q.classNames,ae=Q.styles,re=Lt(Q,RD),Y=I.findIndex(function(ye){return ye.key===Z}),ee={};if(N){var ie=I.length-1-(Y>-1?Y:V-1),ue=r==="top"||r==="bottom"?"-50%":"0";if(ie>0){var se,pe,fe;ee.height=_?(se=y.current[Z])===null||se===void 0?void 0:se.offsetHeight:b==null?void 0:b.offsetHeight;for(var he=0,Se=0;Se<ie;Se++){var be;he+=((be=y.current[I[I.length-1-Se].key])===null||be===void 0?void 0:be.offsetHeight)+k}var $e=(_?he:ie*B)*(r.startsWith("top")?1:-1),xe=!_&&b!==null&&b!==void 0&&b.offsetWidth&&(pe=y.current[Z])!==null&&pe!==void 0&&pe.offsetWidth?((b==null?void 0:b.offsetWidth)-B*2*(ie<3?ie:3))/((fe=y.current[Z])===null||fe===void 0?void 0:fe.offsetWidth):1;ee.transform="translate3d(".concat(ue,", ").concat($e,"px, 0) scaleX(").concat(xe,")")}else ee.transform="translate3d(".concat(ue,", 0, 0)")}return ge.createElement("div",{ref:D,className:de("".concat(a,"-notice-wrapper"),W,oe==null?void 0:oe.wrapper),style:ce(ce(ce({},U),ee),ae==null?void 0:ae.wrapper),onMouseEnter:function(){return j(function(Ne){return Ne.includes(Z)?Ne:[].concat(Me(Ne),[Z])})},onMouseLeave:function(){return j(function(Ne){return Ne.filter(function(_e){return _e!==Z})})}},ge.createElement(K6,Ce({},re,{ref:function(Ne){Y>-1?y.current[Z]=Ne:delete y.current[Z]},prefixCls:a,classNames:oe,styles:ae,className:de(te,p==null?void 0:p.notice),style:X,times:K,key:q,eventKey:q,onNoticeClose:f,hovering:N&&R.length>0})))})},ND=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([]),y=me(p,2),x=y[0],S=y[1],b=function(N){var P,B=x.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=Me(P),L=B.findIndex(function(H){return H.key===N.key}),k=ce({},N);if(L>=0){var _;k.times=(((_=P[L])===null||_===void 0?void 0:_.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){b(N)},destroy:function(){S([])}}});var $=i.useState({}),w=me($,2),E=w[0],R=w[1];i.useEffect(function(){var M={};x.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]||[]}),R(M)},[x]);var j=function(N){R(function(P){var B=ce({},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 vo.createPortal(i.createElement(i.Fragment,null,O.map(function(M){var N=E[M],P=i.createElement(ID,{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:b,onAllNoticeRemoved:j,stack:v});return g?g(P,{prefixCls:r,key:M}):P})),a)}),MD=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],TD=function(){return document.body},Nw=0;function PD(){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 G6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?TD: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,MD),p=i.useState(),y=me(p,2),x=y[0],S=y[1],b=i.useRef(),$=i.createElement(ND,{container:x,ref:b,prefixCls:a,motion:r,maxCount:l,className:c,style:u,onAllRemoved:d,stack:f,renderNotifications:v}),w=i.useState([]),E=me(w,2),R=E[0],j=E[1],I=Qt(function(M){var N=PD(g,M);(N.key===null||N.key===void 0)&&(N.key="rc-notification-".concat(Nw),Nw+=1),j(function(P){return[].concat(Me(P),[{type:"open",config:N}])})}),O=i.useMemo(function(){return{open:I,close:function(N){j(function(P){return[].concat(Me(P),[{type:"close",key:N}])})},destroy:function(){j(function(N){return[].concat(Me(N),[{type:"destroy"}])})}}},[]);return i.useEffect(function(){S(n())}),i.useEffect(function(){if(b.current&&R.length){R.forEach(function(P){switch(P.type){case"open":b.current.open(P.config);break;case"close":b.current.close(P.key);break;case"destroy":b.current.destroy();break}});var M,N;j(function(P){return(M!==P||!N)&&(M=P,N=P.filter(function(B){return!R.includes(B)})),N})}},[R]),[O,$]}var zD={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"},DD=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:zD}))},To=i.forwardRef(DD);function Wd(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function kv(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function Mw(e){const{closable:t,closeIcon:n}=e||{};return ge.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 _D={},X6=(e,t,n=_D)=>{const r=Mw(e),a=Mw(t),[l]=Aa("global",po.global),c=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,u=ge.useMemo(()=>Object.assign({closeIcon:ge.createElement(_o,null)},n),[n]),d=ge.useMemo(()=>r===!1?!1:r?Wd(u,a,r):a===!1?!1:a?Wd(u,a):u.closable?u:!1,[r,a,u]);return ge.useMemo(()=>{var f,v;if(d===!1)return[!1,null,c,{}];const{closeIconRender:g}=u,{closeIcon:p}=d;let y=p;const x=Nr(d,!0);return y!=null&&(g&&(y=g(p)),y=ge.isValidElement(y)?ge.cloneElement(y,Object.assign(Object.assign(Object.assign({},y.props),{"aria-label":(v=(f=y.props)===null||f===void 0?void 0:f["aria-label"])!==null&&v!==void 0?v:l.close}),x)):ge.createElement("span",Object.assign({"aria-label":l.close},x),y)),[!0,y,c,x]},[c,l.close,d,u])},j1=()=>ge.useReducer(e=>e+1,0);function Y6(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]=Y6(c,r[l],u);else{const{_default:d}=c;d&&(r[l]=r[l]||{},r[l][d]=de(r[l][d],u))}else r[l]=de(r[l],u)}),r),{})}function AD(e,...t){return i.useMemo(()=>Y6.apply(void 0,[e].concat(t)),[t,e])}function BD(...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 dy(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?dy(l,a):l}}),n}const kD=(e,t,n)=>{const r=AD.apply(void 0,[n].concat(Me(e))),a=BD.apply(void 0,Me(t));return i.useMemo(()=>[dy(r,n),dy(a,n)],[r,a,n])},LD=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(y=>!c.has(y)),p=[];return v.forEach(y=>{g?(c.has(y)||p.push(y),c.add(y)):(c.delete(y),p.push(y))}),n(g?f:null),p},[t]),n]},HD=()=>{const[e,t]=i.useState([]),n=i.useCallback(r=>(t(a=>[].concat(Me(a),[r])),()=>{t(a=>a.filter(l=>l!==r))}),[]);return[e,n]};function FD(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 VD=(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)}}):FD(r,n)}),WD=e=>{const t=i.useRef(e),[,n]=j1();return[()=>t.current,r=>{t.current=r,n()}]},hg=ge.createContext(void 0),cl=100,KD=10,R1=cl*KD,Q6={Modal:cl,Drawer:cl,Popover:cl,Popconfirm:cl,Tooltip:cl,Tour:cl,FloatButton:cl},UD={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function qD(e){return e in Q6}const Ao=(e,t)=>{const[,n]=ua(),r=ge.useContext(hg),a=qD(e);let l;if(t!==void 0)l=[t,t];else{let c=r??0;a?c+=(r?0:n.zIndexPopupBase)+Q6[e]:c+=UD[e],l=[r===void 0?t:c,c]}return l},GD=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:y,borderRadiusLG:x,zIndexPopup:S,contentPadding:b,contentBg:$}=e,w=`${t}-notice`,E=new tn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:y,transform:"translateY(0)",opacity:1}}),R=new tn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:y,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),j={padding:y,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:f},[`${w}-content`]:{display:"inline-block",padding:b,background:$,borderRadius:x,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({},mn(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:R,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({},j)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},j),{padding:0,textAlign:"start"})}]},XD=e=>({zIndexPopup:e.zIndexPopupBase+R1+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Z6=un("Message",e=>{const t=rn(e,{height:150});return GD(t)},XD);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 QD={info:i.createElement(pg,null),success:i.createElement(ws,null),error:i.createElement(Ol,null),warning:i.createElement(Es,null),loading:i.createElement(To,null)},J6=({prefixCls:e,type:t,icon:n,children:r})=>i.createElement("div",{className:de(`${e}-custom-content`,`${e}-${t}`)},n||QD[t],i.createElement("span",null,r)),ZD=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:l}=e,c=YD(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:u}=i.useContext(Rt),d=t||u("message"),f=vr(d),[v,g,p]=Z6(d,f);return v(i.createElement(K6,Object.assign({},c,{prefixCls:d,className:de(n,g,`${d}-notice-pure-panel`,p,f),eventKey:"pure",duration:null,content:i.createElement(J6,{prefixCls:d,type:r,icon:a},l)})))};function JD(e,t){return{motionName:t??`${e}-move-up`}}function I1(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 e_=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_=8,n_=3,r_=({children:e,prefixCls:t})=>{const n=vr(t),[r,a,l]=Z6(t,n);return r(i.createElement(q6,{classNames:{list:de(a,l,n)}},e))},a_=(e,{prefixCls:t,key:n})=>i.createElement(r_,{prefixCls:t,key:n},e),o_=i.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:l,duration:c=n_,rtl:u,transitionName:d,onAllRemoved:f}=e,{getPrefixCls:v,getPopupContainer:g,message:p,direction:y}=i.useContext(Rt),x=r||v("message"),S=()=>({left:"50%",transform:"translateX(-50%)",top:n??t_}),b=()=>de({[`${x}-rtl`]:u??y==="rtl"}),$=()=>JD(x,d),w=i.createElement("span",{className:`${x}-close-x`},i.createElement(_o,{className:`${x}-close-icon`})),[E,R]=G6({prefixCls:x,style:S,className:b,motion:$,closable:!1,closeIcon:w,duration:c,getContainer:()=>(a==null?void 0:a())||(g==null?void 0:g())||document.body,maxCount:l,onAllRemoved:f,renderNotifications:a_});return i.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:x,message:p})),R});let Tw=0;function ej(e){const t=i.useRef(null);return ti(),[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:y,icon:x,type:S,key:b,className:$,style:w,onClose:E}=d,R=e_(d,["content","icon","type","key","className","style","onClose"]);let j=b;return j==null&&(Tw+=1,j=`antd-message-${Tw}`),I1(I=>(f(Object.assign(Object.assign({},R),{key:j,content:i.createElement(J6,{prefixCls:v,type:S,icon:x},y),placement:"top",className:de(S&&`${p}-${S}`,$,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),w),onClose:()=>{E==null||E(),I()}})),()=>{r(j)}))},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 y;v&&typeof v=="object"&&"content"in v?y=v:y={content:v};let x,S;typeof g=="function"?S=g:(x=g,S=p);const b=Object.assign(Object.assign({onClose:S,duration:x},y),{type:d});return a(b)};c[d]=f}),c},[]),i.createElement(o_,Object.assign({key:"message-holder"},e,{ref:t}))]}function tj(e){return ej(e)}function nj(e,t){this.v=e,this.k=t}function ya(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}ya=function(c,u,d,f){function v(g,p){ya(c,g,function(y){return this._invoke(g,p,y)})}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))},ya(e,t,n,r)}function N1(){/*! 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(y,x,S,b){var $=x&&x.prototype instanceof u?x:u,w=Object.create($.prototype);return ya(w,"_invoke",(function(E,R,j){var I,O,M,N=0,P=j||[],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(_,H){for(O=_,M=H,t=0;!B&&N&&!z&&t<P.length;t++){var z,D=P[t],F=L.p,W=D[2];_>3?(z=W===H)&&(M=D[(O=D[4])?5:(O=3,3)],D[4]=D[5]=e):D[0]<=F&&((z=_<2&&F<D[1])?(O=0,L.v=H,L.n=D[1]):F<W&&(z=_<3||D[0]>H||H>W)&&(D[4]=_,D[5]=H,L.n=W,O=0))}if(z||_>1)return c;throw B=!0,H}return function(_,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||(_="next"),t=I[_]){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 '"+_+"' method"),O=1);I=e}else if((t=(B=L.n<0)?M:E.call(R,L))!==c)break}catch(D){I=e,O=1,M=D}finally{N=1}}return{value:t,done:B}}})(y,S,b),!0),w}var c={};function u(){}function d(){}function f(){}t=Object.getPrototypeOf;var v=[][r]?t(t([][r]())):(ya(t={},r,function(){return this}),t),g=f.prototype=u.prototype=Object.create(v);function p(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,f):(y.__proto__=f,ya(y,a,"GeneratorFunction")),y.prototype=Object.create(g),y}return d.prototype=f,ya(g,"constructor",f),ya(f,"constructor",d),d.displayName="GeneratorFunction",ya(f,a,"GeneratorFunction"),ya(g),ya(g,a,"Generator"),ya(g,r,function(){return this}),ya(g,"toString",function(){return"[object Generator]"}),(N1=function(){return{w:l,m:p}})()}function Lv(e,t){function n(a,l,c,u){try{var d=e[a](l),f=d.value;return f instanceof nj?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||(ya(Lv.prototype),ya(Lv.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ya(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 rj(e,t,n,r,a){return new Lv(N1().w(e,t,n,r),a||Promise)}function i_(e,t,n,r,a){var l=rj(e,t,n,r,a);return l.next().then(function(c){return c.done?c.value:l.next()})}function l_(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 Pw(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(Ot(e)+" is not iterable")}function Kn(){var e=N1(),t=e.m(Kn),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,y){return u.resultName=p,d(f.d,Pw(g),y)},finish:function(g){return d(f.f,g)}},d=function(g,p,y){f.p=u.prev,f.n=u.next;try{return g(p,y)}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(Kn=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 nj(d,f)},AsyncIterator:Lv,async:function(d,f,v,g,p){return(r(f)?rj:i_)(l(d),f,v,g,p)},keys:l_,values:Pw}})()}function zw(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 Oa(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var l=e.apply(t,n);function c(d){zw(l,r,a,c,u,"next",d)}function u(d){zw(l,r,a,c,u,"throw",d)}c(void 0)})}}var sf=ce({},N5),s_=sf.version,E0=sf.render,c_=sf.unmountComponentAtNode,bg;try{var u_=Number((s_||"").split(".")[0]);u_>=18&&(bg=sf.createRoot)}catch{}function Dw(e){var t=sf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ot(t)==="object"&&(t.usingClientEntryPoint=e)}var Hv="__rc_react_root__";function d_(e,t){Dw(!0);var n=t[Hv]||bg(t);Dw(!1),n.render(e),t[Hv]=n}function f_(e,t){E0==null||E0(e,t)}function m_(e,t){if(bg){d_(e,t);return}f_(e,t)}function v_(e){return fy.apply(this,arguments)}function fy(){return fy=Oa(Kn().mark(function e(t){return Kn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[Hv])===null||a===void 0||a.unmount(),delete t[Hv]}));case 1:case"end":return r.stop()}},e)})),fy.apply(this,arguments)}function g_(e){c_(e)}function p_(e){return my.apply(this,arguments)}function my(){return my=Oa(Kn().mark(function e(t){return Kn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(bg===void 0){r.next=2;break}return r.abrupt("return",v_(t));case 2:g_(t);case 3:case"end":return r.stop()}},e)})),my.apply(this,arguments)}const h_=(e,t)=>(m_(e,t),()=>p_(t));let b_=h_;function M1(e){return b_}const O0=()=>({height:0,opacity:0}),_w=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},y_=e=>({height:e?e.offsetHeight:0}),j0=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Lc=(e=Vd)=>({motionName:`${e}-motion-collapse`,onAppearStart:O0,onEnterStart:O0,onAppearActive:_w,onEnterActive:_w,onLeaveStart:y_,onLeaveActive:O0,onAppearEnd:j0,onEnterEnd:j0,onLeaveEnd:j0,motionDeadline:500}),Yo=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function En(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Jc=(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}),C_=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(",")}}}}},x_=S6("Wave",C_),yg=`${Vd}-wave-target`;function S_(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 $_(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:a}=getComputedStyle(e);return(t=[n,r,a].find(S_))!==null&&t!==void 0?t:null}function R0(e){return Number.isNaN(e)?0:e}const w_=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),[y,x]=i.useState(0),[S,b]=i.useState(0),[$,w]=i.useState(0),[E,R]=i.useState(!1),j={left:g,top:y,width:S,height:$,borderRadius:f.map(M=>`${M}px`).join(" ")};u&&(j["--wave-color"]=u);function I(){const M=getComputedStyle(n);d($_(n));const N=M.position==="static",{borderLeftWidth:P,borderTopWidth:B}=M;p(N?n.offsetLeft:R0(-Number.parseFloat(P))),x(N?n.offsetTop:R0(-Number.parseFloat(B))),b(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:L,borderTopRightRadius:k,borderBottomLeftRadius:_,borderBottomRightRadius:H}=M;v([L,k,H,_].map(z=>R0(Number.parseFloat(z))))}if(i.useEffect(()=>{if(n){const M=Zt(()=>{I(),R(!0)});let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(I),N.observe(n)),()=>{Zt.cancel(M),N==null||N.disconnect()}}},[n]),!E)return null;const O=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(yg));return i.createElement(ta,{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:Mr(l,N),className:de(t,M,{"wave-quick":O}),style:j}))},E_=(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=M1();let c=null;function u(){return c}c=l(i.createElement(w_,Object.assign({},t,{target:e,registerUnmount:u})),a)},O_=(e,t,n)=>{const{wave:r}=i.useContext(Rt),[,a,l]=ua(),c=Qt(f=>{const v=e.current;if(r!=null&&r.disabled||!v)return;const g=v.querySelector(`.${yg}`)||v,{showEffect:p}=r||{};(p||E_)(g,{className:t,token:a,component:n,event:f,hashId:l})}),u=i.useRef(null);return f=>{Zt.cancel(u.current),u.current=Zt(()=>{c(f)})}},cf=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=i.useContext(Rt),l=i.useRef(null),c=a("wave"),[,u]=x_(c),d=O_(l,de(c,u),r);if(ge.useEffect(()=>{const v=l.current;if(!v||v.nodeType!==window.Node.ELEMENT_NODE||n)return;const g=p=>{!Jc(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]),!ge.isValidElement(t))return t??null;const f=Io(t)?Mr(El(t),l):l;return Or(t,{ref:f})},Tr=e=>{const t=ge.useContext(vs);return ge.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},j_=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},R_=un(["Space","Compact"],e=>[j_(e)],()=>({}),{resetStyle:!1});var aj=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),Bo=(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 de(`${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}},I_=e=>{const{children:t}=e;return i.createElement(Cg.Provider,{value:null},t)},N_=e=>{const{children:t}=e,n=aj(e,["children"]);return i.createElement(Cg.Provider,{value:i.useMemo(()=>n,[n])},t)},M_=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=aj(e,["size","direction","block","prefixCls","className","rootClassName","children"]),g=Tr(E=>r??E),p=t("space-compact",c),[y,x]=R_(p),S=de(p,x,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:l,[`${p}-vertical`]:a==="vertical"},u,d),b=i.useContext(Cg),$=Jr(f),w=i.useMemo(()=>$.map((E,R)=>{const j=(E==null?void 0:E.key)||`${p}-item-${R}`;return i.createElement(N_,{key:j,compactSize:g,compactDirection:a,isFirstItem:R===0&&(!b||(b==null?void 0:b.isFirstItem)),isLastItem:R===$.length-1&&(!b||(b==null?void 0:b.isLastItem))},E)}),[$,b,a,g,p]);return $.length===0?null:y(i.createElement("div",Object.assign({className:S},v),w))};var T_=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=i.createContext(void 0),P_=e=>{const{getPrefixCls:t,direction:n}=i.useContext(Rt),{prefixCls:r,size:a,className:l}=e,c=T_(e,["prefixCls","size","className"]),u=t("btn-group",r),[,,d]=ua(),f=i.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),v=de(u,{[`${u}-${f}`]:f,[`${u}-rtl`]:n==="rtl"},l,d);return i.createElement(oj.Provider,{value:a},i.createElement("div",Object.assign({},c,{className:v})))},Aw=/^[\u4E00-\u9FA5]{2}$/,vy=Aw.test.bind(Aw);function T1(e){return e==="danger"?{danger:!0}:{type:e}}function Bw(e){return typeof e=="string"}function I0(e){return e==="text"||e==="link"}function z_(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Bw(e.type)&&vy(e.props.children)?Or(e,{children:e.props.children.split("").join(n)}):Bw(e)?vy(e)?ge.createElement("span",null,e.split("").join(n)):ge.createElement("span",null,e):H6(e)?ge.createElement("span",null,e):e}function D_(e,t){let n=!1;const r=[];return ge.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}),ge.Children.map(r,a=>z_(a,t))}["default","primary","danger"].concat(Me(Cl));const ij=i.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:l}=e,c=de(`${l}-icon`,n);return ge.createElement("span",{ref:t,className:c,style:r},a)}),kw=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:l}=e,c=de(`${n}-loading-icon`,r);return ge.createElement(ij,{prefixCls:n,className:c,style:a,ref:t},ge.createElement(To,{className:l}))}),N0=()=>({width:0,opacity:0,transform:"scale(0)"}),M0=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),__=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:l,mount:c}=e,u=!!n;return r?ge.createElement(kw,{prefixCls:t,className:a,style:l}):ge.createElement(ta,{visible:u,motionName:`${t}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:N0,onAppearActive:M0,onEnterStart:N0,onEnterActive:M0,onLeaveStart:M0,onLeaveActive:N0},({className:d,style:f},v)=>{const g=Object.assign(Object.assign({},l),f);return ge.createElement(kw,{prefixCls:t,className:de(a,d),style:g,ref:v})})},Lw=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),A_=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}},Lw(`${t}-primary`,a),Lw(`${t}-danger`,l)]}};var B_=["b"],k_=["v"],T0=function(t){return Math.round(Number(t||0))},L_=function(t){if(t instanceof bn)return t;if(t&&Ot(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=Lt(n,B_);return ce(ce({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Kd=(function(e){Ja(n,e);var t=ho(n);function n(r){return gr(this,n),t.call(this,L_(r))}return pr(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),l=T0(a.s*100),c=T0(a.b*100),u=T0(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,k_);return ce(ce({},c),{},{b:l,a:this.a})}}]),n})(bn),H_=function(t){return t instanceof Kd?t:new Kd(t)};H_("#1677ff");const F_=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",V_=(e,t)=>e?F_(e,t):"";let gy=(function(){function e(t){gr(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 Kd(this.colors[0].color.metaColor)):this.metaColor=new Kd(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return pr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return V_(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 W_={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"},K_=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:W_}))},$i=i.forwardRef(K_),lj=ge.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=ge.useState(u||r),p=me(g,2),y=p[0],x=p[1];return ge.useEffect(function(){(r||u)&&x(!0)},[r,u]),y?ge.createElement("div",{ref:t,className:de("".concat(n,"-content"),ne(ne({},"".concat(n,"-content-active"),u),"".concat(n,"-content-inactive"),!u),a),style:l,role:d},ge.createElement("div",{className:de("".concat(n,"-content-box"),f==null?void 0:f.body),style:v==null?void 0:v.body},c)):null});lj.displayName="PanelContent";var U_=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],sj=ge.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,y=e.prefixCls,x=e.collapsible,S=e.accordion,b=e.panelKey,$=e.extra,w=e.header,E=e.expandIcon,R=e.openMotion,j=e.destroyInactivePanel,I=e.children,O=Lt(e,U_),M=x==="disabled",N=$!=null&&typeof $!="boolean",P=ne(ne(ne({onClick:function(){c==null||c(b)},onKeyDown:function(D){(D.key==="Enter"||D.keyCode===ot.ENTER||D.which===ot.ENTER)&&(c==null||c(b))},role:S?"tab":"button"},"aria-expanded",l),"aria-disabled",M),"tabIndex",M?-1:0),B=typeof E=="function"?E(e):ge.createElement("i",{className:"arrow"}),L=B&&ge.createElement("div",Ce({className:"".concat(y,"-expand-icon")},["header","icon"].includes(x)?P:{}),B),k=de("".concat(y,"-item"),ne(ne({},"".concat(y,"-item-active"),l),"".concat(y,"-item-disabled"),M),d),_=de(a,"".concat(y,"-header"),ne({},"".concat(y,"-collapsible-").concat(x),!!x),v.header),H=ce({className:_,style:p.header},["header","icon"].includes(x)?{}:P);return ge.createElement("div",Ce({},O,{ref:t,className:k}),ge.createElement("div",H,r&&L,ge.createElement("span",Ce({className:"".concat(y,"-header-text")},x==="header"?P:{}),w),N&&ge.createElement("div",{className:"".concat(y,"-extra")},$)),ge.createElement(ta,Ce({visible:l,leavedClassName:"".concat(y,"-content-hidden")},R,{forceRender:u,removeOnLeave:j}),function(z,D){var F=z.className,W=z.style;return ge.createElement(lj,{ref:D,prefixCls:y,className:F,classNames:v,style:W,styles:p,isActive:l,forceRender:u,role:S?"tabpanel":void 0},I)}))}),q_=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],G_=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 y=g.children,x=g.label,S=g.key,b=g.collapsible,$=g.onItemClick,w=g.destroyInactivePanel,E=Lt(g,q_),R=String(S??p),j=b??l,I=w??c,O=function(P){j!=="disabled"&&(u(P),$==null||$(P))},M=!1;return a?M=d[0]===R:M=d.indexOf(R)>-1,ge.createElement(sj,Ce({},E,{prefixCls:r,key:R,panelKey:R,isActive:M,accordion:a,openMotion:f,expandIcon:v,header:x,collapsible:j,onItemClick:O,destroyInactivePanel:I}),y)})},X_=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),y=t.props,x=y.header,S=y.headerClass,b=y.destroyInactivePanel,$=y.collapsible,w=y.onItemClick,E=!1;l?E=f[0]===p:E=f.indexOf(p)>-1;var R=$??c,j=function(M){R!=="disabled"&&(d(M),w==null||w(M))},I={key:p,panelKey:p,header:x,headerClass:S,isActive:E,prefixCls:a,destroyInactivePanel:b??u,openMotion:v,accordion:l,children:t.props.children,onItemClick:j,expandIcon:g,collapsible:R};return typeof t.type=="string"?t:(Object.keys(I).forEach(function(O){typeof I[O]>"u"&&delete I[O]}),ge.cloneElement(t,I))};function Y_(e,t,n){return Array.isArray(e)?G_(e,n):Jr(t).map(function(r,a){return X_(r,a,n)})}function Q_(e){var t=e;if(!Array.isArray(t)){var n=Ot(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var Z_=ge.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,y=e.activeKey,x=e.defaultActiveKey,S=e.onChange,b=e.items,$=de(r,d),w=Cn([],{value:y,onChange:function(N){return S==null?void 0:S(N)},defaultValue:x,postState:Q_}),E=me(w,2),R=E[0],j=E[1],I=function(N){return j(function(){if(u)return R[0]===N?[]:[N];var P=R.indexOf(N),B=P>-1;return B?R.filter(function(L){return L!==N}):[].concat(Me(R),[N])})};Zn(!f,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var O=Y_(b,f,{prefixCls:r,accordion:u,openMotion:g,expandIcon:p,collapsible:v,destroyInactivePanel:l,onItemClick:I,activeKey:R});return ge.createElement("div",Ce({ref:t,className:$,style:c,role:u?"tablist":void 0},Nr(e,{aria:!0,data:!0})),O)});const P1=Object.assign(Z_,{Panel:sj});P1.Panel;const J_=i.forwardRef((e,t)=>{const{getPrefixCls:n}=i.useContext(Rt),{prefixCls:r,className:a,showArrow:l=!0}=e,c=n("collapse",r),u=de({[`${c}-no-arrow`]:!l},a);return i.createElement(P1.Panel,Object.assign({ref:t},e,{prefixCls:c,className:u}))}),uf=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`}}}),eA=e=>({animationDuration:e,animationFillMode:"both"}),tA=e=>({animationDuration:e,animationFillMode:"both"}),gl=(e,t,n,r,a=!1)=>{const l=a?"&":"";return{[`
|
|
190
|
-
${l}${e}-enter,
|
|
191
|
-
${l}${e}-appear
|
|
192
|
-
`]:Object.assign(Object.assign({},eA(r)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:Object.assign(Object.assign({},tA(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"}}},nA=new tn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),rA=new tn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),z1=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[gl(r,nA,rA,e.motionDurationMid,t),{[`
|
|
196
|
-
${a}${r}-enter,
|
|
197
|
-
${a}${r}-appear
|
|
198
|
-
`]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},aA=new tn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oA=new tn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),iA=new tn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),lA=new tn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),sA=new tn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),cA=new tn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),uA=new tn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),dA=new tn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),fA={"move-up":{inKeyframes:uA,outKeyframes:dA},"move-down":{inKeyframes:aA,outKeyframes:oA},"move-left":{inKeyframes:iA,outKeyframes:lA},"move-right":{inKeyframes:sA,outKeyframes:cA}},Hc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:l}=fA[t];return[gl(r,a,l,e.motionDurationMid),{[`
|
|
199
|
-
${r}-enter,
|
|
200
|
-
${r}-appear
|
|
201
|
-
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},xg=new tn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Sg=new tn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),$g=new tn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),wg=new tn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),mA=new tn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),vA=new tn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),gA=new tn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),pA=new tn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),hA={"slide-up":{inKeyframes:xg,outKeyframes:Sg},"slide-down":{inKeyframes:$g,outKeyframes:wg},"slide-left":{inKeyframes:mA,outKeyframes:vA},"slide-right":{inKeyframes:gA,outKeyframes:pA}},Qo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:l}=hA[t];return[gl(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}}]},D1=new tn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),bA=new tn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Hw=new tn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Fw=new tn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),yA=new tn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),CA=new tn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),xA=new tn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),SA=new tn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),$A=new tn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),wA=new tn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),EA=new tn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),OA=new tn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),jA={zoom:{inKeyframes:D1,outKeyframes:bA},"zoom-big":{inKeyframes:Hw,outKeyframes:Fw},"zoom-big-fast":{inKeyframes:Hw,outKeyframes:Fw},"zoom-left":{inKeyframes:xA,outKeyframes:SA},"zoom-right":{inKeyframes:$A,outKeyframes:wA},"zoom-up":{inKeyframes:yA,outKeyframes:CA},"zoom-down":{inKeyframes:EA,outKeyframes:OA}},df=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:l}=jA[t];return[gl(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}}]},RA=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:y,colorTextDisabled:x,fontSizeLG:S,lineHeight:b,lineHeightLG:$,marginSM:w,paddingSM:E,paddingLG:R,paddingXS:j,motionDurationSlow:I,fontSizeIcon:O,contentPadding:M,fontHeight:N,fontHeightLG:P}=e,B=`${le(f)} ${v} ${g}`;return{[t]:Object.assign(Object.assign({},mn(e)),{backgroundColor:a,border:B,borderRadius:d,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:B,"&:first-child":{[`
|
|
208
|
-
&,
|
|
209
|
-
& > ${t}-header`]:{borderRadius:`${le(d)} ${le(d)} 0 0`}},"&:last-child":{[`
|
|
210
|
-
&,
|
|
211
|
-
& > ${t}-header`]:{borderRadius:`0 0 ${le(d)} ${le(d)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:l,color:y,lineHeight:b,cursor:"pointer",transition:`all ${I}, visibility 0s`},Za(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:N,display:"flex",alignItems:"center",paddingInlineEnd:w},[`${t}-arrow`]:Object.assign(Object.assign({},$s()),{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:j,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(E).sub(j).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:E}}},"&-large":{[`> ${t}-item`]:{fontSize:S,lineHeight:$,[`> ${t}-header`]:{padding:u,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:P,marginInlineStart:e.calc(R).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:R}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${le(d)} ${le(d)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:x,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:w}}}}})}},IA=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},NA=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}}}},MA=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}}}}}},TA=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=un("Collapse",e=>{const t=rn(e,{collapseHeaderPaddingSM:`${le(e.paddingXS)} ${le(e.paddingSM)}`,collapseHeaderPaddingLG:`${le(e.padding)} ${le(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[RA(t),NA(t),MA(t),IA(t),uf(t)]},TA),zA=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:a,className:l,style:c}=hr("collapse"),{prefixCls:u,className:d,rootClassName:f,style:v,bordered:g=!0,ghost:p,size:y,expandIconPosition:x="start",children:S,destroyInactivePanel:b,destroyOnHidden:$,expandIcon:w}=e,E=Tr(H=>{var z;return(z=y??H)!==null&&z!==void 0?z:"middle"}),R=n("collapse",u),j=n(),[I,O,M]=PA(R),N=i.useMemo(()=>x==="left"?"start":x==="right"?"end":x,[x]),P=w??a,B=i.useCallback((H={})=>{const z=typeof P=="function"?P(H):i.createElement($i,{rotate:H.isActive?r==="rtl"?-90:90:void 0,"aria-label":H.isActive?"expanded":"collapsed"});return Or(z,()=>{var D;return{className:de((D=z.props)===null||D===void 0?void 0:D.className,`${R}-arrow`)}})},[P,R,r]),L=de(`${R}-icon-position-${N}`,{[`${R}-borderless`]:!g,[`${R}-rtl`]:r==="rtl",[`${R}-ghost`]:!!p,[`${R}-${E}`]:E!=="middle"},l,d,f,O,M),k=i.useMemo(()=>Object.assign(Object.assign({},Lc(j)),{motionAppear:!1,leavedClassName:`${R}-content-hidden`}),[j,R]),_=i.useMemo(()=>S?Jr(S).map((H,z)=>{var D,F;const W=H.props;if(W!=null&&W.disabled){const U=(D=H.key)!==null&&D!==void 0?D:String(z),V=Object.assign(Object.assign({},En(H.props,["disabled"])),{key:U,collapsible:(F=W.collapsible)!==null&&F!==void 0?F:"disabled"});return Or(H,V)}return H}):null,[S]);return I(i.createElement(P1,Object.assign({ref:t,openMotion:k},En(e,["rootClassName"]),{expandIcon:B,prefixCls:R,className:L,style:Object.assign(Object.assign({},c),v),destroyInactivePanel:$??b}),_))}),Fv=Object.assign(zA,{Panel:J_}),DA=e=>e instanceof gy?e:new gy(e),_A=(e,t)=>{const{r:n,g:r,b:a,a:l}=e.toRgb(),c=new Kd(e.toRgbString()).onBackground(t).toHsv();return l<=.5?c.v>.5:n*.299+r*.587+a*.114>192},cj=e=>{const{paddingInline:t,onlyIconSize:n}=e;return rn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},uj=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:hv(u),g=(l=e.contentLineHeightSM)!==null&&l!==void 0?l:hv(d),p=(c=e.contentLineHeightLG)!==null&&c!==void 0?c:hv(f),y=_A(new gy(e.colorBgSolid),"#fff")?"#000":"#fff",x=Cl.reduce((S,b)=>Object.assign(Object.assign({},S),{[`${b}ShadowColor`]:`0 ${le(e.controlOutlineWidth)} 0 ${pd(e[`${b}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},x),{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:y,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)})},AA=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:`${le(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`]:$s(),"> a":{color:"currentColor"},"&:not(:disabled)":Za(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()}}}}}},dj=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),BA=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),kA=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Eg=(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"},dj(e,Object.assign({background:t},c),Object.assign({background:t},u))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:l||void 0}})}),LA=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},kA(e))}),HA=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Og=(e,t,n,r)=>{const l=r&&["link","text"].includes(r)?HA:LA;return Object.assign(Object.assign({},l(e)),dj(e.componentCls,t,n))},jg=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Og(e,r,a))}),Rg=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Og(e,r,a))}),Ig=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Ng=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Og(e,n,r))}),Zo=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Og(e,r,a,n))}),FA=e=>{const{componentCls:t}=e;return Cl.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`]},jg(e,e.colorTextLightSolid,a,{background:c},{background:f})),Rg(e,a,e.colorBgContainer,{color:c,borderColor:c,background:e.colorBgContainer},{color:f,borderColor:f,background:e.colorBgContainer})),Ig(e)),Ng(e,l,{color:a,background:u},{color:a,background:d})),Zo(e,a,"link",{color:c},{color:f})),Zo(e,a,"text",{color:c,background:l},{color:f,background:d}))})},{})},VA=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},jg(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Ig(e)),Ng(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Eg(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Zo(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),WA=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Rg(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Ig(e)),Ng(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Zo(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Zo(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Eg(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),KA=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},jg(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Rg(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ig(e)),Ng(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Zo(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Zo(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Eg(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),UA=e=>Object.assign(Object.assign({},Zo(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Eg(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),qA=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:VA(e),[`${t}-color-primary`]:WA(e),[`${t}-color-dangerous`]:KA(e),[`${t}-color-link`]:UA(e)},FA(e))},GA=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Rg(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Zo(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),jg(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Zo(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),_1=(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:`${le(d)} ${le(c)}`,borderRadius:l,[`&${n}-icon-only`]:{width:r,[u]:{fontSize:f}}}},{[`${n}${n}-circle${t}`]:BA(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},XA=e=>{const t=rn(e,{fontSize:e.contentFontSize});return _1(t,e.componentCls)},YA=e=>{const t=rn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return _1(t,`${e.componentCls}-sm`)},QA=e=>{const t=rn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return _1(t,`${e.componentCls}-lg`)},ZA=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},JA=un("Button",e=>{const t=cj(e);return[AA(t),XA(t),YA(t),QA(t),ZA(t),qA(t),GA(t),A_(t)]},uj,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function e9(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 t9(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 Os(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,a=r||n,l=`${a}-compact`;return{[l]:Object.assign(Object.assign({},e9(e,l,t,a)),t9(a,l,t))}}function n9(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 r9(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 a9(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},n9(e,t,e.componentCls)),r9(e.componentCls,t))}}const o9=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))},i9=Qc(["Button","compact"],e=>{const t=cj(e);return[Os(t),a9(t),o9(t)]},uj);var l9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function s9(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 c9={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},u9=ge.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:y,className:x,rootClassName:S,children:b,icon:$,iconPosition:w="start",ghost:E=!1,block:R=!1,htmlType:j="button",classNames:I,style:O={},autoInsertSpace:M,autoFocus:N}=e,P=l9(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}=ge.useContext(Rt),k=v||(L==null?void 0:L.shape)||"default",[_,H]=i.useMemo(()=>{if(c&&u)return[c,u];if(d||f){const Le=c9[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":_,{getPrefixCls:F,direction:W,autoInsertSpace:U,className:V,style:G,classNames:q,styles:K}=hr("button"),Z=(n=M??U)!==null&&n!==void 0?n:!0,Q=F("btn",l),[te,X,oe]=JA(Q),ae=i.useContext(Kr),re=y??ae,Y=i.useContext(oj),ee=i.useMemo(()=>s9(a),[a]),[ie,ue]=i.useState(ee.loading),[se,pe]=i.useState(!1),fe=i.useRef(null),he=Ri(t,fe),Se=i.Children.count(b)===1&&!$&&!I0(H),be=i.useRef(!0);ge.useEffect(()=>(be.current=!1,()=>{be.current=!0}),[]),an(()=>{let Le=null;ee.delay>0?Le=setTimeout(()=>{Le=null,ue(!0)},ee.delay):ue(ee.loading);function tt(){Le&&(clearTimeout(Le),Le=null)}return tt},[ee.delay,ee.loading]),i.useEffect(()=>{if(!fe.current||!Z)return;const Le=fe.current.textContent||"";Se&&vy(Le)?se||pe(!0):se&&pe(!1)}),i.useEffect(()=>{N&&fe.current&&fe.current.focus()},[]);const $e=ge.useCallback(Le=>{var tt;if(ie||re){Le.preventDefault();return}(tt=e.onClick)===null||tt===void 0||tt.call(e,("href"in e,Le))},[e.onClick,ie,re]),{compactSize:xe,compactItemClassnames:ye}=Bo(Q,W),Ne={large:"lg",small:"sm",middle:void 0},_e=Tr(Le=>{var tt,Ct;return(Ct=(tt=g??xe)!==null&&tt!==void 0?tt:Y)!==null&&Ct!==void 0?Ct:Le}),Qe=_e&&(r=Ne[_e])!==null&&r!==void 0?r:"",Ke=ie?"loading":$,Fe=En(P,["navigate"]),Xe=de(Q,X,oe,{[`${Q}-${k}`]:k!=="default"&&k,[`${Q}-${B}`]:B,[`${Q}-dangerous`]:f,[`${Q}-color-${D}`]:D,[`${Q}-variant-${H}`]:H,[`${Q}-${Qe}`]:Qe,[`${Q}-icon-only`]:!b&&b!==0&&!!Ke,[`${Q}-background-ghost`]:E&&!I0(H),[`${Q}-loading`]:ie,[`${Q}-two-chinese-chars`]:se&&Z&&!ie,[`${Q}-block`]:R,[`${Q}-rtl`]:W==="rtl",[`${Q}-icon-end`]:w==="end"},ye,x,S,V),Pe=Object.assign(Object.assign({},G),O),je=de(I==null?void 0:I.icon,q.icon),Ae=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),K.icon||{}),Re=Le=>ge.createElement(ij,{prefixCls:Q,className:je,style:Ae},Le),ze=()=>ge.createElement(__,{existIcon:!!$,prefixCls:Q,loading:ie,mount:be.current});let we;$&&!ie?we=Re($):a&&typeof a=="object"&&a.icon?we=Re(a.icon):we=ze();const Oe=b||b===0?D_(b,Se&&Z):null;if(Fe.href!==void 0)return te(ge.createElement("a",Object.assign({},Fe,{className:de(Xe,{[`${Q}-disabled`]:re}),href:re?void 0:Fe.href,style:Pe,onClick:$e,ref:he,tabIndex:re?-1:0,"aria-disabled":re}),we,Oe));let Te=ge.createElement("button",Object.assign({},P,{type:j,className:Xe,style:Pe,onClick:$e,disabled:re,ref:he}),we,Oe,ye&&ge.createElement(i9,{prefixCls:Q}));return I0(H)||(Te=ge.createElement(cf,{component:"Button",disabled:ie},Te)),te(Te)}),Ue=u9;Ue.Group=P_;Ue.__ANT_BUTTON=!0;const P0=e=>typeof(e==null?void 0:e.then)=="function",A1=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),[y,x]=gs(!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 b=w=>{P0(w)&&(x(!0),w.then((...E)=>{x(!1,!0),S.apply(void 0,E),g.current=!1},E=>{if(x(!1,!0),g.current=!1,!(d!=null&&d()))return Promise.reject(E)}))},$=w=>{if(g.current)return;if(g.current=!0,!v){S();return}let E;if(u){if(E=v(w),f&&!P0(E)){g.current=!1,S(w);return}}else if(v.length)E=v(l),g.current=!1;else if(E=v(),!P0(E)){S();return}b(E)};return i.createElement(Ue,Object.assign({},T1(t),{onClick:$,loading:y,prefixCls:r},a,{ref:p}),n)},ff=ge.createContext({}),{Provider:fj}=ff,Vw=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:l,close:c,onCancel:u,onConfirm:d}=i.useContext(ff);return a?ge.createElement(A1,{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},Ww=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:l,okType:c,onConfirm:u,onOk:d}=i.useContext(ff);return ge.createElement(A1,{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 mj=i.createContext(null),Kw=[];function d9(e,t){var n=i.useState(function(){if(!sa())return null;var x=document.createElement("div");return x}),r=me(n,1),a=r[0],l=i.useRef(!1),c=i.useContext(mj),u=i.useState(Kw),d=me(u,2),f=d[0],v=d[1],g=c||(l.current?void 0:function(x){v(function(S){var b=[x].concat(Me(S));return b})});function p(){a.parentElement||document.body.appendChild(a),l.current=!0}function y(){var x;(x=a.parentElement)===null||x===void 0||x.removeChild(a),l.current=!1}return an(function(){return e?c?c(p):p():y(),y},[e]),an(function(){f.length&&(f.forEach(function(x){return x()}),v(Kw))},[f]),[a,g]}var z0;function vj(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,";"):"";xi(`
|
|
215
|
-
#`.concat(t,`::-webkit-scrollbar {
|
|
216
|
-
`).concat(v,`
|
|
217
|
-
`).concat(g,`
|
|
218
|
-
}`),t)}catch(x){console.error(x),a=d,l=f}}document.body.appendChild(n);var p=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,y=e&&l&&!isNaN(l)?l:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),kd(t),{width:p,height:y}}function Uw(e){return typeof document>"u"?0:(z0===void 0&&(z0=vj()),z0.width)}function py(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:vj(e)}function f9(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var m9="rc-util-locker-".concat(Date.now()),qw=0;function v9(e){var t=!!e,n=i.useState(function(){return qw+=1,"".concat(m9,"_").concat(qw)}),r=me(n,1),a=r[0];an(function(){if(t){var l=py(document.body).width,c=f9();xi(`
|
|
219
|
-
html body {
|
|
220
|
-
overflow-y: hidden;
|
|
221
|
-
`.concat(c?"width: calc(100% - ".concat(l,"px);"):"",`
|
|
222
|
-
}`),a)}else kd(a);return function(){kd(a)}},[t,a])}var g9=!1;function p9(e){return g9}var Gw=function(t){return t===!1?!1:!sa()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},B1=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=me(d,2),v=f[0],g=f[1],p=v||n;i.useEffect(function(){(c||n)&&g(n)},[n,c]);var y=i.useState(function(){return Gw(a)}),x=me(y,2),S=x[0],b=x[1];i.useEffect(function(){var B=Gw(a);b(B??null)});var $=d9(p&&!S),w=me($,2),E=w[0],R=w[1],j=S??E;v9(r&&n&&sa()&&(j===E||j===document.body));var I=null;if(u&&Io(u)&&t){var O=u;I=O.ref}var M=Ri(I,t);if(!p||!sa()||S===void 0)return null;var N=j===!1||p9(),P=u;return t&&(P=i.cloneElement(u,{ref:M})),i.createElement(mj.Provider,{value:R},N?P:vo.createPortal(P,j))}),gj=i.createContext({});function h9(){var e=ce({},sg);return e.useId}var Xw=0,Yw=h9();const mf=Yw?(function(t){var n=Yw();return t||n}):(function(t){var n=i.useState("ssr-id"),r=me(n,2),a=r[0],l=r[1];return i.useEffect(function(){var c=Xw;Xw+=1,l("rc_unique_".concat(c))},[]),t||a});function Qw(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Zw(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 b9(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=Zw(a),n.top+=Zw(a,!0),n}const y9=i.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var C9={width:0,height:0,overflow:"hidden",outline:"none"},x9={outline:"none"},pj=ge.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,y=e.bodyProps,x=e.modalRender,S=e.onMouseDown,b=e.onMouseUp,$=e.holderRef,w=e.visible,E=e.forceRender,R=e.width,j=e.height,I=e.classNames,O=e.styles,M=ge.useContext(gj),N=M.panel,P=Ri($,N),B=i.useRef(),L=i.useRef();ge.useImperativeHandle(t,function(){return{focus:function(){var G;(G=B.current)===null||G===void 0||G.focus({preventScroll:!0})},changeActive:function(G){var q=document,K=q.activeElement;G&&K===L.current?B.current.focus({preventScroll:!0}):!G&&K===B.current&&L.current.focus({preventScroll:!0})}}});var k={};R!==void 0&&(k.width=R),j!==void 0&&(k.height=j);var _=u?ge.createElement("div",{className:de("".concat(n,"-footer"),I==null?void 0:I.footer),style:ce({},O==null?void 0:O.footer)},u):null,H=l?ge.createElement("div",{className:de("".concat(n,"-header"),I==null?void 0:I.header),style:ce({},O==null?void 0:O.header)},ge.createElement("div",{className:"".concat(n,"-title"),id:c},l)):null,z=i.useMemo(function(){return Ot(d)==="object"&&d!==null?d:d?{closeIcon:f??ge.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[d,f,n]),D=Nr(z,!0),F=Ot(d)==="object"&&d.disabled,W=d?ge.createElement("button",Ce({type:"button",onClick:v,"aria-label":"Close"},D,{className:"".concat(n,"-close"),disabled:F}),z.closeIcon):null,U=ge.createElement("div",{className:de("".concat(n,"-content"),I==null?void 0:I.content),style:O==null?void 0:O.content},W,H,ge.createElement("div",Ce({className:de("".concat(n,"-body"),I==null?void 0:I.body),style:ce(ce({},p),O==null?void 0:O.body)},y),g),_);return ge.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?c:null,"aria-modal":"true",ref:P,style:ce(ce({},a),k),className:de(n,r),onMouseDown:S,onMouseUp:b},ge.createElement("div",{ref:B,tabIndex:0,style:x9},ge.createElement(y9,{shouldUpdate:w||E},x?x(U):U)),ge.createElement("div",{tabIndex:0,ref:L,style:C9}))}),hj=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,y=i.useRef(),x=i.useState(),S=me(x,2),b=S[0],$=S[1],w={};b&&(w.transformOrigin=b);function E(){var R=b9(y.current);$(p&&(p.x||p.y)?"".concat(p.x-R.left,"px ").concat(p.y-R.top,"px"):"")}return i.createElement(ta,{visible:c,onVisibleChanged:g,onAppearPrepare:E,onEnterPrepare:E,forceRender:u,motionName:f,removeOnLeave:d,ref:y},function(R,j){var I=R.className,O=R.style;return i.createElement(pj,Ce({},e,{ref:t,title:r,ariaId:v,prefixCls:n,holderRef:j,style:ce(ce(ce({},O),a),w),className:de(l,I)}))})});hj.displayName="Content";var S9=function(t){var n=t.prefixCls,r=t.style,a=t.visible,l=t.maskProps,c=t.motionName,u=t.className;return i.createElement(ta,{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",Ce({ref:f,style:ce(ce({},g),r),className:de("".concat(n,"-mask"),v,u)},l))})},$9=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,y=t.wrapProps,x=t.onClose,S=t.afterOpenChange,b=t.afterClose,$=t.transitionName,w=t.animation,E=t.closable,R=E===void 0?!0:E,j=t.mask,I=j===void 0?!0:j,O=t.maskTransitionName,M=t.maskAnimation,N=t.maskClosable,P=N===void 0?!0:N,B=t.maskStyle,L=t.maskProps,k=t.rootClassName,_=t.classNames,H=t.styles,z=i.useRef(),D=i.useRef(),F=i.useRef(),W=i.useState(c),U=me(W,2),V=U[0],G=U[1],q=mf();function K(){Ab(D.current,document.activeElement)||(z.current=document.activeElement)}function Z(){if(!Ab(D.current,document.activeElement)){var ue;(ue=F.current)===null||ue===void 0||ue.focus()}}function Q(ue){if(ue)Z();else{if(G(!1),I&&z.current&&v){try{z.current.focus({preventScroll:!0})}catch{}z.current=null}V&&(b==null||b())}S==null||S(ue)}function te(ue){x==null||x(ue)}var X=i.useRef(!1),oe=i.useRef(),ae=function(){clearTimeout(oe.current),X.current=!0},re=function(){oe.current=setTimeout(function(){X.current=!1})},Y=null;P&&(Y=function(se){X.current?X.current=!1:D.current===se.target&&te(se)});function ee(ue){if(d&&ue.keyCode===ot.ESC){ue.stopPropagation(),te(ue);return}c&&ue.keyCode===ot.TAB&&F.current.changeActive(!ue.shiftKey)}i.useEffect(function(){c&&(G(!0),K())},[c]),i.useEffect(function(){return function(){clearTimeout(oe.current)}},[]);var ie=ce(ce(ce({zIndex:a},g),H==null?void 0:H.wrapper),{},{display:V?null:"none"});return i.createElement("div",Ce({className:de("".concat(r,"-root"),k)},Nr(t,{data:!0})),i.createElement(S9,{prefixCls:r,visible:I&&c,motionName:Qw(r,O,M),style:ce(ce({zIndex:a},B),H==null?void 0:H.mask),maskProps:L,className:_==null?void 0:_.mask}),i.createElement("div",Ce({tabIndex:-1,onKeyDown:ee,className:de("".concat(r,"-wrap"),p,_==null?void 0:_.wrapper),ref:D,onClick:Y,style:ie},y),i.createElement(hj,Ce({},t,{onMouseDown:ae,onMouseUp:re,ref:F,closable:R,ariaId:q,prefixCls:r,visible:c&&V,onClose:te,onVisibleChanged:Q,motionName:Qw(r,$,w)}))))},bj=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=me(f,2),g=v[0],p=v[1],y=i.useMemo(function(){return{panel:d}},[d]);return i.useEffect(function(){n&&p(!0)},[n]),!a&&c&&!g?null:i.createElement(gj.Provider,{value:y},i.createElement(B1,{open:n||a||g,autoDestroy:!1,getContainer:r,autoLock:n||g},i.createElement($9,Ce({},t,{destroyOnClose:c,afterClose:function(){u==null||u(),p(!1)}}))))};bj.displayName="Dialog";var is="RC_FORM_INTERNAL_HOOKS",cr=function(){Zn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ps=i.createContext({getFieldValue:cr,getFieldsValue:cr,getFieldError:cr,getFieldWarning:cr,getFieldsError:cr,isFieldsTouched:cr,isFieldTouched:cr,isFieldValidating:cr,isFieldsValidating:cr,resetFields:cr,setFields:cr,setFieldValue:cr,setFieldsValue:cr,validateFields:cr,submit:cr,getInternalHooks:function(){return cr(),{dispatch:cr,initEntityValue:cr,registerField:cr,useSubscribe:cr,setInitialValues:cr,destroyForm:cr,setCallbacks:cr,registerWatch:cr,getFields:cr,setValidateMessages:cr,setPreserve:cr,getInitialValue:cr}}}),Ud=i.createContext(null);function hy(e){return e==null?[]:Array.isArray(e)?e:[e]}function w9(e){return e&&!!e._init}function by(){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 yy=by();function E9(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function O9(e,t,n){if(ug())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&Ad(a,n.prototype),a}function Cy(e){var t=typeof Map=="function"?new Map:void 0;return Cy=function(r){if(r===null||!E9(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 O9(r,arguments,ms(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Ad(a,r)},Cy(e)}var j9=/%[sdj%]/g,R9=function(){};function xy(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 Xa(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(j9,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 I9(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function ea(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||I9(t)&&typeof e=="string"&&!e)}function N9(e,t,n){var r=[],a=0,l=e.length;function c(u){r.push.apply(r,Me(u||[])),a++,a===l&&n(r)}e.forEach(function(u){t(u,c)})}function Jw(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 M9(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Me(e[n]||[]))}),t}var eE=(function(e){Ja(n,e);var t=ho(n);function n(r,a){var l;return gr(this,n),l=t.call(this,"Async Validation Error"),ne(Et(l),"errors",void 0),ne(Et(l),"fields",void 0),l.errors=r,l.fields=a,l}return pr(n)})(Cy(Error));function T9(e,t,n,r,a){if(t.first){var l=new Promise(function(p,y){var x=function($){return r($),$.length?y(new eE($,xy($))):p(a)},S=M9(e);Jw(S,n,x)});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,y){var x=function(b){if(v.push.apply(v,b),f++,f===d)return r(v),v.length?y(new eE(v,xy(v))):p(a)};u.length||(r(v),p(a)),u.forEach(function(S){var b=e[S];c.indexOf(S)!==-1?Jw(b,n,x):N9(b,n,x)})});return g.catch(function(p){return p}),g}function P9(e){return!!(e&&e.message!==void 0)}function z9(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function tE(e,t){return function(n){var r;return e.fullFields?r=z9(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 nE(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Ot(r)==="object"&&Ot(e[n])==="object"?e[n]=ce(ce({},e[n]),r):e[n]=r}}return e}var dc="enum",D9=function(t,n,r,a,l){t[dc]=Array.isArray(t[dc])?t[dc]:[],t[dc].indexOf(n)===-1&&a.push(Xa(l.messages[dc],t.fullField,t[dc].join(", ")))},_9=function(t,n,r,a,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(Xa(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(Xa(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},A9=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",y=typeof n=="string",x=Array.isArray(n);if(p?g="number":y?g="string":x&&(g="array"),!g)return!1;x&&(v=n.length),y&&(v=n.replace(f,"_").length),c?v!==t.len&&a.push(Xa(l.messages[g].len,t.fullField,t.len)):u&&!d&&v<t.min?a.push(Xa(l.messages[g].min,t.fullField,t.min)):d&&!u&&v>t.max?a.push(Xa(l.messages[g].max,t.fullField,t.max)):u&&d&&(v<t.min||v>t.max)&&a.push(Xa(l.messages[g].range,t.fullField,t.min,t.max))},yj=function(t,n,r,a,l,c){t.required&&(!r.hasOwnProperty(t.field)||ea(n,c||t.type))&&a.push(Xa(l.messages.required,t.fullField))},Vm;const B9=(function(){if(Vm)return Vm;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(j){return j&&j.exact?d:new RegExp("".concat(t(j)).concat(n).concat(t(j)),"g")},v.v6=function(j){return j&&j.exact?f:new RegExp("".concat(t(j)).concat(c).concat(t(j)),"g")};var g="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",y=v.v4().source,x=v.v6().source,S="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",$="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",w="(?::\\d{2,5})?",E='(?:[/?#][^\\s"]*)?',R="(?:".concat(g,"|www\\.)").concat(p,"(?:localhost|").concat(y,"|").concat(x,"|").concat(S).concat(b).concat($,")").concat(w).concat(E);return Vm=new RegExp("(?:^".concat(R,"$)"),"i"),Vm});var D0={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},hd={integer:function(t){return hd.number(t)&&parseInt(t,10)===t},float:function(t){return hd.number(t)&&!hd.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 Ot(t)==="object"&&!hd.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(D0.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(D0.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(B9())},hex:function(t){return typeof t=="string"&&!!t.match(D0.hex)}},k9=function(t,n,r,a,l){if(t.required&&n===void 0){yj(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?hd[u](n)||a.push(Xa(l.messages.types[u],t.fullField,t.type)):u&&Ot(n)!==t.type&&a.push(Xa(l.messages.types[u],t.fullField,t.type))},L9=function(t,n,r,a,l){(/^\s+$/.test(n)||n==="")&&a.push(Xa(l.messages.whitespace,t.fullField))};const Tn={required:yj,whitespace:L9,type:k9,range:A9,enum:D9,pattern:_9};var H9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n)&&!t.required)return r();Tn.required(t,n,a,c,l)}r(c)},F9=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)},V9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&Tn.type(t,n,a,c,l)}r(c)},W9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n,"date")&&!t.required)return r();if(Tn.required(t,n,a,c,l),!ea(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)},K9="enum",U9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&Tn[K9](t,n,a,c,l)}r(c)},q9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(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)},G9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(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)},X9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&Tn.type(t,n,a,c,l)}r(c)},Y9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(n===""&&(n=void 0),ea(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)},Q9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n)&&!t.required)return r();Tn.required(t,n,a,c,l),n!==void 0&&Tn.type(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(ea(n,"string")&&!t.required)return r();Tn.required(t,n,a,c,l),ea(n,"string")||Tn.pattern(t,n,a,c,l)}r(c)},J9=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n)&&!t.required)return r();Tn.required(t,n,a,c,l),ea(n)||Tn.type(t,n,a,c,l)}r(c)},eB=function(t,n,r,a,l){var c=[],u=Array.isArray(n)?"array":Ot(n);Tn.required(t,n,a,c,l,u),r(c)},tB=function(t,n,r,a,l){var c=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ea(n,"string")&&!t.required)return r();Tn.required(t,n,a,c,l,"string"),ea(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)},Wm=function(t,n,r,a,l){var c=t.type,u=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(ea(n,c)&&!t.required)return r();Tn.required(t,n,a,u,l,c),ea(n,c)||Tn.type(t,n,a,u,l)}r(u)};const jd={string:tB,method:X9,number:Y9,boolean:V9,regexp:J9,integer:G9,float:q9,array:F9,object:Q9,enum:U9,pattern:Z9,date:W9,url:Wm,hex:Wm,email:Wm,tel:Wm,required:eB,any:H9};var vf=(function(){function e(t){gr(this,e),ne(this,"rules",null),ne(this,"_messages",yy),this.define(t)}return pr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Ot(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=nE(by(),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(x){var S=[],b={};function $(E){if(Array.isArray(E)){var R;S=(R=S).concat.apply(R,Me(E))}else S.push(E)}for(var w=0;w<x.length;w++)$(x[w]);S.length?(b=xy(S),d(S,b)):d(null,c)}if(u.messages){var v=this.messages();v===yy&&(v=by()),nE(v,u.messages),u.messages=v}else u.messages=this.messages();var g={},p=u.keys||Object.keys(this.rules);p.forEach(function(x){var S=r.rules[x],b=c[x];S.forEach(function($){var w=$;typeof w.transform=="function"&&(c===n&&(c=ce({},c)),b=c[x]=w.transform(b),b!=null&&(w.type=w.type||(Array.isArray(b)?"array":Ot(b)))),typeof w=="function"?w={validator:w}:w=ce({},w),w.validator=r.getValidationMethod(w),w.validator&&(w.field=x,w.fullField=w.fullField||x,w.type=r.getType(w),g[x]=g[x]||[],g[x].push({rule:w,value:b,source:c,field:x}))})});var y={};return T9(g,u,function(x,S){var b=x.rule,$=(b.type==="object"||b.type==="array")&&(Ot(b.fields)==="object"||Ot(b.defaultField)==="object");$=$&&(b.required||!b.required&&x.value),b.field=x.field;function w(O,M){return ce(ce({},M),{},{fullField:"".concat(b.fullField,".").concat(O),fullFields:b.fullFields?[].concat(Me(b.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&&b.message!==void 0&&b.message!==null&&(M=[].concat(b.message));var N=M.map(tE(b,c));if(u.first&&N.length)return y[b.field]=1,S(N);if(!$)S(N);else{if(b.required&&!x.value)return b.message!==void 0?N=[].concat(b.message).map(tE(b,c)):u.error&&(N=[u.error(b,Xa(u.messages.required,b.field))]),S(N);var P={};b.defaultField&&Object.keys(x.value).map(function(k){P[k]=b.defaultField}),P=ce(ce({},P),x.rule.fields);var B={};Object.keys(P).forEach(function(k){var _=P[k],H=Array.isArray(_)?_:[_];B[k]=H.map(w.bind(null,k))});var L=new e(B);L.messages(u.messages),x.rule.options&&(x.rule.options.messages=u.messages,x.rule.options.error=u.error),L.validate(x.value,x.rule.options||u,function(k){var _=[];N&&N.length&&_.push.apply(_,Me(N)),k&&k.length&&_.push.apply(_,Me(k)),S(_.length?_:null)})}}var R;if(b.asyncValidator)R=b.asyncValidator(b,x.value,E,x.source,u);else if(b.validator){try{R=b.validator(b,x.value,E,x.source,u)}catch(O){var j,I;(j=(I=console).error)===null||j===void 0||j.call(I,O),u.suppressValidatorError||setTimeout(function(){throw O},0),E(O.message)}R===!0?E():R===!1?E(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):R instanceof Array?E(R):R instanceof Error&&E(R.message)}R&&R.then&&R.then(function(){return E()},function(O){return E(O)})},function(x){f(x)},c)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!jd.hasOwnProperty(n.type))throw new Error(Xa("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"?jd.required:jd[this.getType(n)]||void 0}}]),e})();ne(vf,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");jd[t]=n});ne(vf,"warning",R9);ne(vf,"messages",yy);ne(vf,"validators",jd);var Ua="'${name}' is not a valid ${type}",Cj={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:Ua,method:Ua,array:Ua,object:Ua,number:Ua,date:Ua,boolean:Ua,integer:Ua,float:Ua,regexp:Ua,email:Ua,url:Ua,hex:Ua},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}"}},rE=vf;function nB(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 aE="CODE_LOGIC_ERROR";function Sy(e,t,n,r,a){return $y.apply(this,arguments)}function $y(){return $y=Oa(Kn().mark(function e(t,n,r,a,l){var c,u,d,f,v,g,p,y,x;return Kn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return c=ce({},r),delete c.ruleIndex,rE.warning=function(){},c.validator&&(u=c.validator,c.validator=function(){try{return u.apply(void 0,arguments)}catch($){return console.error($),Promise.reject(aE)}}),d=null,c&&c.type==="array"&&c.defaultField&&(d=c.defaultField,delete c.defaultField),f=new rE(ne({},t,[c])),v=wc(Cj,a.validateMessages),f.messages(v),g=[],b.prev=10,b.next=13,Promise.resolve(f.validate(ne({},t,n),ce({},a)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(g=b.t0.errors.map(function($,w){var E=$.message,R=E===aE?v.default:E;return i.isValidElement(R)?i.cloneElement(R,{key:"error_".concat(w)}):R}));case 18:if(!(!g.length&&d&&Array.isArray(n)&&n.length>0)){b.next=23;break}return b.next=21,Promise.all(n.map(function($,w){return Sy("".concat(t,".").concat(w),$,d,a,l)}));case 21:return p=b.sent,b.abrupt("return",p.reduce(function($,w){return[].concat(Me($),Me(w))},[]));case 23:return y=ce(ce({},r),{},{name:t,enum:(r.enum||[]).join(", ")},l),x=g.map(function($){return typeof $=="string"?nB($,y):$}),b.abrupt("return",x);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),$y.apply(this,arguments)}function rB(e,t,n,r,a,l){var c=e.join("."),u=n.map(function(v,g){var p=v.validator,y=ce(ce({},v),{},{ruleIndex:g});return p&&(y.validator=function(x,S,b){var $=!1,w=function(){for(var j=arguments.length,I=new Array(j),O=0;O<j;O++)I[O]=arguments[O];Promise.resolve().then(function(){Zn(!$,"Your validator function has already return a promise. `callback` will be ignored."),$||b.apply(void 0,I)})},E=p(x,S,w);$=E&&typeof E.then=="function"&&typeof E.catch=="function",Zn($,"`callback` is deprecated. Please return a promise instead."),$&&E.then(function(){b()}).catch(function(R){b(R||" ")})}),y}).sort(function(v,g){var p=v.warningOnly,y=v.ruleIndex,x=g.warningOnly,S=g.ruleIndex;return!!p==!!x?y-S:p?1:-1}),d;if(a===!0)d=new Promise((function(){var v=Oa(Kn().mark(function g(p,y){var x,S,b;return Kn().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:x=0;case 1:if(!(x<u.length)){w.next=12;break}return S=u[x],w.next=5,Sy(c,t,S,r,l);case 5:if(b=w.sent,!b.length){w.next=9;break}return y([{errors:b,rule:S}]),w.abrupt("return");case 9:x+=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 Sy(c,t,v,r,l).then(function(g){return{errors:g,rule:v}})});d=(a?oB(f):aB(f)).then(function(v){return Promise.reject(v)})}return d.catch(function(v){return v}),d}function aB(e){return wy.apply(this,arguments)}function wy(){return wy=Oa(Kn().mark(function e(t){return Kn().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,Me(a));return c}));case 1:case"end":return r.stop()}},e)})),wy.apply(this,arguments)}function oB(e){return Ey.apply(this,arguments)}function Ey(){return Ey=Oa(Kn().mark(function e(t){var n;return Kn().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)})),Ey.apply(this,arguments)}function Ar(e){return hy(e)}function oE(e,t){var n={};return t.forEach(function(r){var a=Ea(e,r);n=mo(n,r,a)}),n}function Mc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return xj(t,r,n)})}function xj(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 iB(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ot(e)!=="object"||Ot(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return Me(a).every(function(l){var c=e[l],u=t[l];return typeof c=="function"&&typeof u=="function"?!0:c===u})}function lB(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ot(t.target)==="object"&&e in t.target?t.target[e]:t}function iE(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(Me(e.slice(0,n)),[a],Me(e.slice(n,t)),Me(e.slice(t+1,r))):l<0?[].concat(Me(e.slice(0,t)),Me(e.slice(t+1,n+1)),[a],Me(e.slice(n+1,r))):e}var sB=["name"],co=[];function _0(e,t,n,r,a,l){return typeof e=="function"?e(t,n,"source"in l?{source:l.source}:{}):r!==a}var k1=(function(e){Ja(n,e);var t=ho(n);function n(r){var a;if(gr(this,n),a=t.call(this,r),ne(Et(a),"state",{resetCount:0}),ne(Et(a),"cancelRegisterFunc",null),ne(Et(a),"mounted",!1),ne(Et(a),"touched",!1),ne(Et(a),"dirty",!1),ne(Et(a),"validatePromise",void 0),ne(Et(a),"prevValidating",void 0),ne(Et(a),"errors",co),ne(Et(a),"warnings",co),ne(Et(a),"cancelRegister",function(){var d=a.props,f=d.preserve,v=d.isListField,g=d.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(v,f,Ar(g)),a.cancelRegisterFunc=null}),ne(Et(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(Me(p),Me(f)):[]}),ne(Et(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})}),ne(Et(a),"refresh",function(){a.mounted&&a.setState(function(d){var f=d.resetCount;return{resetCount:f+1}})}),ne(Et(a),"metaCache",null),ne(Et(a),"triggerMetaEvent",function(d){var f=a.props.onMetaChange;if(f){var v=ce(ce({},a.getMeta()),{},{destroy:d});No(a.metaCache,v)||f(v),a.metaCache=v}else a.metaCache=null}),ne(Et(a),"onStoreChange",function(d,f,v){var g=a.props,p=g.shouldUpdate,y=g.dependencies,x=y===void 0?[]:y,S=g.onReset,b=v.store,$=a.getNamePath(),w=a.getValue(d),E=a.getValue(b),R=f&&Mc(f,$);switch(v.type==="valueUpdate"&&v.source==="external"&&!No(w,E)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=co,a.warnings=co,a.triggerMetaEvent()),v.type){case"reset":if(!f||R){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=co,a.warnings=co,a.triggerMetaEvent(),S==null||S(),a.refresh();return}break;case"remove":{if(p&&_0(p,d,b,w,E,v)){a.reRender();return}break}case"setField":{var j=v.data;if(R){"touched"in j&&(a.touched=j.touched),"validating"in j&&!("originRCField"in j)&&(a.validatePromise=j.validating?Promise.resolve([]):null),"errors"in j&&(a.errors=j.errors||co),"warnings"in j&&(a.warnings=j.warnings||co),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in j&&Mc(f,$,!0)){a.reRender();return}if(p&&!$.length&&_0(p,d,b,w,E,v)){a.reRender();return}break}case"dependenciesUpdate":{var I=x.map(Ar);if(I.some(function(O){return Mc(v.relatedFields,O)})){a.reRender();return}break}default:if(R||(!x.length||$.length||p)&&_0(p,d,b,w,E,v)){a.reRender();return}break}p===!0&&a.reRender()}),ne(Et(a),"validateRules",function(d){var f=a.getNamePath(),v=a.getValue(),g=d||{},p=g.triggerName,y=g.validateOnly,x=y===void 0?!1:y,S=Promise.resolve().then(Oa(Kn().mark(function b(){var $,w,E,R,j,I,O;return Kn().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($=a.props,w=$.validateFirst,E=w===void 0?!1:w,R=$.messageVariables,j=$.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=hy(B);return L.includes(p)})),!(j&&p)){N.next=10;break}return N.next=8,new Promise(function(P){setTimeout(P,j)});case 8:if(a.validatePromise===S){N.next=10;break}return N.abrupt("return",[]);case 10:return O=rB(f,v,I,d,E,R),O.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:co;if(a.validatePromise===S){var B;a.validatePromise=null;var L=[],k=[];(B=P.forEach)===null||B===void 0||B.call(P,function(_){var H=_.rule.warningOnly,z=_.errors,D=z===void 0?co:z;H?k.push.apply(k,Me(D)):L.push.apply(L,Me(D))}),a.errors=L,a.warnings=k,a.triggerMetaEvent(),a.reRender()}}),N.abrupt("return",O);case 13:case"end":return N.stop()}},b)})));return x||(a.validatePromise=S,a.dirty=!0,a.errors=co,a.warnings=co,a.triggerMetaEvent(),a.reRender()),S}),ne(Et(a),"isFieldValidating",function(){return!!a.validatePromise}),ne(Et(a),"isFieldTouched",function(){return a.touched}),ne(Et(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var d=a.props.fieldContext,f=d.getInternalHooks(is),v=f.getInitialValue;return v(a.getNamePath())!==void 0}),ne(Et(a),"getErrors",function(){return a.errors}),ne(Et(a),"getWarnings",function(){return a.warnings}),ne(Et(a),"isListField",function(){return a.props.isListField}),ne(Et(a),"isList",function(){return a.props.isList}),ne(Et(a),"isPreserve",function(){return a.props.preserve}),ne(Et(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}),ne(Et(a),"getOnlyChild",function(d){if(typeof d=="function"){var f=a.getMeta();return ce(ce({},a.getOnlyChild(d(a.getControlled(),f,a.props.fieldContext))),{},{isFunction:!0})}var v=Jr(d);return v.length!==1||!i.isValidElement(v[0])?{child:v,isFunction:!1}:{child:v[0],isFunction:!1}}),ne(Et(a),"getValue",function(d){var f=a.props.fieldContext.getFieldsValue,v=a.getNamePath();return Ea(d||f(!0),v)}),ne(Et(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,y=f.getValueFromEvent,x=f.normalize,S=f.valuePropName,b=f.getValueProps,$=f.fieldContext,w=p!==void 0?p:$.validateTrigger,E=a.getNamePath(),R=$.getInternalHooks,j=$.getFieldsValue,I=R(is),O=I.dispatch,M=a.getValue(),N=b||function(_){return ne({},S,_)},P=d[g],B=v!==void 0?N(M):{},L=ce(ce({},d),B);L[g]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var _,H=arguments.length,z=new Array(H),D=0;D<H;D++)z[D]=arguments[D];y?_=y.apply(void 0,z):_=lB.apply(void 0,[S].concat(z)),x&&(_=x(_,M,j(!0))),_!==M&&O({type:"updateValue",namePath:E,value:_}),P&&P.apply(void 0,z)};var k=hy(w||[]);return k.forEach(function(_){var H=L[_];L[_]=function(){H&&H.apply(void 0,arguments);var z=a.props.rules;z&&z.length&&O({type:"validateField",namePath:E,triggerName:_})}}),L}),r.fieldContext){var l=r.fieldContext.getInternalHooks,c=l(is),u=c.initEntityValue;u(Et(a))}return a}return pr(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(is),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)):(Zn(!u,"`children` of Field is not validate ReactElement."),f=u),i.createElement(i.Fragment,{key:a},f)}}]),n})(i.Component);ne(k1,"contextType",ps);ne(k1,"defaultProps",{trigger:"onChange",valuePropName:"value"});function L1(e){var t,n=e.name,r=Lt(e,sB),a=i.useContext(ps),l=i.useContext(Ud),c=n!==void 0?Ar(n):void 0,u=(t=r.isListField)!==null&&t!==void 0?t:!!l,d="keep";return u||(d="_".concat((c||[]).join("_"))),i.createElement(k1,Ce({key:d,name:c,isListField:u},r,{fieldContext:a}))}function Sj(e){var t=e.name,n=e.initialValue,r=e.children,a=e.rules,l=e.validateTrigger,c=e.isListField,u=i.useContext(ps),d=i.useContext(Ud),f=i.useRef({keys:[],id:0}),v=f.current,g=i.useMemo(function(){var S=Ar(u.prefixName)||[];return[].concat(Me(S),Me(Ar(t)))},[u.prefixName,t]),p=i.useMemo(function(){return ce(ce({},u),{},{prefixName:g})},[u,g]),y=i.useMemo(function(){return{getKey:function(b){var $=g.length,w=b[$];return[v.keys[w],b.slice($+1)]}}},[g]);if(typeof r!="function")return Zn(!1,"Form.List only accepts function as children."),null;var x=function(b,$,w){var E=w.source;return E==="internal"?!1:b!==$};return i.createElement(Ud.Provider,{value:y},i.createElement(ps.Provider,{value:p},i.createElement(L1,{name:[],shouldUpdate:x,rules:a,validateTrigger:l,initialValue:n,isList:!0,isListField:c??!!d},function(S,b){var $=S.value,w=$===void 0?[]:$,E=S.onChange,R=u.getFieldValue,j=function(){var N=R(g||[]);return N||[]},I={add:function(N,P){var B=j();P>=0&&P<=B.length?(v.keys=[].concat(Me(v.keys.slice(0,P)),[v.id],Me(v.keys.slice(P))),E([].concat(Me(B.slice(0,P)),[N],Me(B.slice(P))))):(v.keys=[].concat(Me(v.keys),[v.id]),E([].concat(Me(B),[N]))),v.id+=1},remove:function(N){var P=j(),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=j();N<0||N>=B.length||P<0||P>=B.length||(v.keys=iE(v.keys,N,P),E(iE(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,b)})))}function cB(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 $j="__@field_split__";function A0(e){return e.map(function(t){return"".concat(Ot(t),":").concat(t)}).join($j)}var fc=(function(){function e(){gr(this,e),ne(this,"kvs",new Map)}return pr(e,[{key:"set",value:function(n,r){this.kvs.set(A0(n),r)}},{key:"get",value:function(n){return this.kvs.get(A0(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(A0(n))}},{key:"map",value:function(n){return Me(this.kvs.entries()).map(function(r){var a=me(r,2),l=a[0],c=a[1],u=l.split($j);return n({key:u.map(function(d){var f=d.match(/^([^:]*):(.*)$/),v=me(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})(),uB=["name"],dB=pr(function e(t){var n=this;gr(this,e),ne(this,"formHooked",!1),ne(this,"forceRootUpdate",void 0),ne(this,"subscribable",!0),ne(this,"store",{}),ne(this,"fieldEntities",[]),ne(this,"initialValues",{}),ne(this,"callbacks",{}),ne(this,"validateMessages",null),ne(this,"preserve",null),ne(this,"lastValidatePromise",null),ne(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}}),ne(this,"getInternalHooks",function(r){return r===is?(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}):(Zn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ne(this,"useSubscribe",function(r){n.subscribable=r}),ne(this,"prevWithoutPreserves",null),ne(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var l,c=wc(r,n.store);(l=n.prevWithoutPreserves)===null||l===void 0||l.map(function(u){var d=u.key;c=mo(c,d,Ea(r,d))}),n.prevWithoutPreserves=null,n.updateStore(c)}}),ne(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new fc;n.getFieldEntities(!0).forEach(function(l){n.isMergedPreserve(l.isPreserve())||a.set(l.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),ne(this,"getInitialValue",function(r){var a=Ea(n.initialValues,r);return r.length?wc(a):a}),ne(this,"setCallbacks",function(r){n.callbacks=r}),ne(this,"setValidateMessages",function(r){n.validateMessages=r}),ne(this,"setPreserve",function(r){n.preserve=r}),ne(this,"watchList",[]),ne(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),ne(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)})}}),ne(this,"timeoutId",null),ne(this,"warningUnhooked",function(){}),ne(this,"updateStore",function(r){n.store=r}),ne(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}),ne(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new fc;return n.getFieldEntities(r).forEach(function(l){var c=l.getNamePath();a.set(c,l)}),a}),ne(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(l){var c=Ar(l);return a.get(c)||{INVALIDATE_NAME_PATH:Ar(l)}})}),ne(this,"getFieldsValue",function(r,a){n.warningUnhooked();var l,c,u;if(r===!0||Array.isArray(r)?(l=r,c=a):r&&Ot(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,y="INVALIDATE_NAME_PATH"in v?v.INVALIDATE_NAME_PATH:v.getNamePath();if(u){var x,S;if((x=(S=v).isList)!==null&&x!==void 0&&x.call(S))return}else if(!l&&(g=(p=v).isListField)!==null&&g!==void 0&&g.call(p))return;if(!c)f.push(y);else{var b="getMeta"in v?v.getMeta():null;c(b)&&f.push(y)}}),oE(n.store,f.map(Ar))}),ne(this,"getFieldValue",function(r){n.warningUnhooked();var a=Ar(r);return Ea(n.store,a)}),ne(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:Ar(r[c]),errors:[],warnings:[]}})}),ne(this,"getFieldError",function(r){n.warningUnhooked();var a=Ar(r),l=n.getFieldsError([a])[0];return l.errors}),ne(this,"getFieldWarning",function(r){n.warningUnhooked();var a=Ar(r),l=n.getFieldsError([a])[0];return l.warnings}),ne(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(Ar),f=!1):(d=null,f=c):(d=c.map(Ar),f=u);var v=n.getFieldEntities(!0),g=function(b){return b.isFieldTouched()};if(!d)return f?v.every(function(S){return g(S)||S.isList()}):v.some(g);var p=new fc;d.forEach(function(S){p.set(S,[])}),v.forEach(function(S){var b=S.getNamePath();d.forEach(function($){$.every(function(w,E){return b[E]===w})&&p.update($,function(w){return[].concat(Me(w),[S])})})});var y=function(b){return b.some(g)},x=p.map(function(S){var b=S.value;return b});return f?x.every(y):x.some(y)}),ne(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),ne(this,"isFieldsValidating",function(r){n.warningUnhooked();var a=n.getFieldEntities();if(!r)return a.some(function(c){return c.isFieldValidating()});var l=r.map(Ar);return a.some(function(c){var u=c.getNamePath();return Mc(l,u)&&c.isFieldValidating()})}),ne(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),ne(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new fc,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(),y=n.getInitialValue(p);if(y!==void 0)Zn(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var x=a.get(p);if(x&&x.size>1)Zn(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(x){var S=n.getFieldValue(p),b=v.isListField();!b&&(!r.skipExist||S===void 0)&&n.updateStore(mo(n.store,p,Me(x)[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,Me(Me(f).map(function(g){return g.entity})))}})):u=l,c(u)}),ne(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(wc(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var l=r.map(Ar);l.forEach(function(c){var u=n.getInitialValue(c);n.updateStore(mo(n.store,c,u))}),n.resetWithFieldInitialValue({namePathList:l}),n.notifyObservers(a,l,{type:"reset"}),n.notifyWatch(l)}),ne(this,"setFields",function(r){n.warningUnhooked();var a=n.store,l=[];r.forEach(function(c){var u=c.name,d=Lt(c,uB),f=Ar(u);l.push(f),"value"in d&&n.updateStore(mo(n.store,f,d.value)),n.notifyObservers(a,[f],{type:"setField",data:c})}),n.notifyWatch(l)}),ne(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(l){var c=l.getNamePath(),u=l.getMeta(),d=ce(ce({},u),{},{name:c,value:n.getFieldValue(c)});return Object.defineProperty(d,"originRCField",{value:!0}),d});return a}),ne(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var l=r.getNamePath(),c=Ea(n.store,l);c===void 0&&n.updateStore(mo(n.store,l,a))}}),ne(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),ne(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!xj(g.getNamePath(),a)})){var v=n.store;n.updateStore(mo(v,a,f,!0)),n.notifyObservers(v,[a],{type:"remove"}),n.triggerDependenciesUpdate(v,a)}}n.notifyWatch([a])}}),ne(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}}}),ne(this,"notifyObservers",function(r,a,l){if(n.subscribable){var c=ce(ce({},l),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(u){var d=u.onStoreChange;d(r,a,c)})}else n.forceRootUpdate()}),ne(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(Me(l))}),l}),ne(this,"updateValue",function(r,a){var l=Ar(r),c=n.store;n.updateStore(mo(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=oE(n.store,[l]);d(f,n.getFieldsValue())}n.triggerOnFieldsChange([l].concat(Me(u)))}),ne(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var l=wc(n.store,r);n.updateStore(l)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ne(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a,errors:[],warnings:[]}])}),ne(this,"getDependencyChildrenFields",function(r){var a=new Set,l=[],c=new fc;n.getFieldEntities().forEach(function(d){var f=d.props.dependencies;(f||[]).forEach(function(v){var g=Ar(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}),ne(this,"triggerOnFieldsChange",function(r,a){var l=n.callbacks.onFieldsChange;if(l){var c=n.getFields();if(a){var u=new fc;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 Mc(r,v)});d.length&&l(d,c)}}),ne(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(Ar):[],f=[],v=String(Date.now()),g=new Set,p=c||{},y=p.recursive,x=p.dirty;n.getFieldEntities(!0).forEach(function(w){if(u||d.push(w.getNamePath()),!(!w.props.rules||!w.props.rules.length)&&!(x&&!w.isFieldDirty())){var E=w.getNamePath();if(g.add(E.join(v)),!u||Mc(d,E,y)){var R=w.validateRules(ce({validateMessages:ce(ce({},Cj),n.validateMessages)},c));f.push(R.then(function(){return{name:E,errors:[],warnings:[]}}).catch(function(j){var I,O=[],M=[];return(I=j.forEach)===null||I===void 0||I.call(j,function(N){var P=N.rule.warningOnly,B=N.errors;P?M.push.apply(M,Me(B)):O.push.apply(O,Me(B))}),O.length?Promise.reject({name:E,errors:O,warnings:M}):{name:E,errors:O,warnings:M}}))}}});var S=cB(f);n.lastValidatePromise=S,S.catch(function(w){return w}).then(function(w){var E=w.map(function(R){var j=R.name;return j});n.notifyObservers(n.store,E,{type:"validateFinish"}),n.triggerOnFieldsChange(E,w)});var b=S.then(function(){return n.lastValidatePromise===S?Promise.resolve(n.getFieldsValue(d)):Promise.reject([])}).catch(function(w){var E=w.filter(function(R){return R&&R.errors.length});return Promise.reject({values:n.getFieldsValue(d),errorFields:E,outOfDate:n.lastValidatePromise!==S})});b.catch(function(w){return w});var $=d.filter(function(w){return g.has(w.join(v))});return n.triggerOnFieldsChange($),b}),ne(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 H1(e){var t=i.useRef(),n=i.useState({}),r=me(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var l=function(){a({})},c=new dB(l);t.current=c.getForm()}return[t.current]}var Oy=i.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),wj=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,l=t.children,c=i.useContext(Oy),u=i.useRef({});return i.createElement(Oy.Provider,{value:ce(ce({},c),{},{validateMessages:ce(ce({},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=ce(ce({},u.current),{},ne({},f,v))),c.registerForm(f,v)},unregisterForm:function(f){var v=ce({},u.current);delete v[f],u.current=v,c.unregisterForm(f)}})},l)},fB=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],mB=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,y=p===void 0?"onChange":p,x=t.onValuesChange,S=t.onFieldsChange,b=t.onFinish,$=t.onFinishFailed,w=t.clearOnDestroy,E=Lt(t,fB),R=i.useRef(null),j=i.useContext(Oy),I=H1(c),O=me(I,1),M=O[0],N=M.getInternalHooks(is),P=N.useSubscribe,B=N.setInitialValues,L=N.setCallbacks,k=N.setValidateMessages,_=N.setPreserve,H=N.destroyForm;i.useImperativeHandle(n,function(){return ce(ce({},M),{},{nativeElement:R.current})}),i.useEffect(function(){return j.registerForm(r,M),function(){j.unregisterForm(r)}},[j,M,r]),k(ce(ce({},j.validateMessages),g)),L({onValuesChange:x,onFieldsChange:function(K){if(j.triggerFormChange(r,K),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,[K].concat(Q))}},onFinish:function(K){j.triggerFormFinish(r,K),b&&b(K)},onFinishFailed:$}),_(u);var z=i.useRef(null);B(a,!z.current),z.current||(z.current=!0),i.useEffect(function(){return function(){return H(w)}},[]);var D,F=typeof d=="function";if(F){var W=M.getFieldsValue(!0);D=d(W,M)}else D=d;P(!F);var U=i.useRef();i.useEffect(function(){iB(U.current||[],l||[])||M.setFields(l||[]),U.current=l},[l,M]);var V=i.useMemo(function(){return ce(ce({},M),{},{validateTrigger:y})},[M,y]),G=i.createElement(Ud.Provider,{value:null},i.createElement(ps.Provider,{value:V},D));return v===!1?G:i.createElement(v,Ce({},E,{ref:R,onSubmit:function(K){K.preventDefault(),K.stopPropagation(),M.submit()},onReset:function(K){var Z;K.preventDefault(),M.resetFields(),(Z=E.onReset)===null||Z===void 0||Z.call(E,K)}}),G)};function lE(e){try{return JSON.stringify(e)}catch{return Math.random()}}function Ej(){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=w9(l)?{form:l}:l,u=c.form,d=i.useState(),f=me(d,2),v=f[0],g=f[1],p=i.useMemo(function(){return lE(v)},[v]),y=i.useRef(p);y.current=p;var x=i.useContext(ps),S=u||x,b=S&&S._init,$=Ar(r),w=i.useRef($);return w.current=$,i.useEffect(function(){if(b){var E=S.getFieldsValue,R=S.getInternalHooks,j=R(is),I=j.registerWatch,O=function(B,L){var k=c.preserve?L:B;return typeof r=="function"?r(k):Ea(k,w.current)},M=I(function(P,B){var L=O(P,B),k=lE(L);y.current!==k&&(y.current=k,g(L))}),N=O(E(),E(!0));return v!==N&&g(N),M}},[b]),v}var vB=i.forwardRef(mB),eu=vB;eu.FormProvider=wj;eu.Field=L1;eu.List=Sj;eu.useForm=H1;eu.useWatch=Ej;const wi=i.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),Oj=i.createContext(null),jj=e=>{const t=En(e,["prefixCls"]);return i.createElement(wj,Object.assign({},t))},F1=i.createContext({prefixCls:""}),Ur=i.createContext({}),Rj=({children:e,status:t,override:n})=>{const r=i.useContext(Ur),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(Ur.Provider,{value:a},e)},Ij=i.createContext(void 0),Jo=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=ge.createElement(Rj,{override:!0,status:!0},a)),t&&(a=ge.createElement(I_,null,a)),a};var Nj=function(t){if(sa()&&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},gB=function(t,n){if(!Nj(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function jy(e,t){return!Array.isArray(e)&&t!==void 0?gB(e,t):Nj(e)}const pB=()=>sa()&&window.document.documentElement,Mg=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:l}=e,c=de({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),u=de({[`${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:de(t,c,u,n),style:Object.assign(Object.assign({},d),r)})},hB=new tn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Tg=e=>({height:e,lineHeight:le(e)}),Tc=e=>Object.assign({width:e},Tg(e)),bB=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:hB,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),B0=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Tg(e)),yB=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:l}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Tc(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Tc(a)),[`${t}${t}-sm`]:Object.assign({},Tc(l))}},CB=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},B0(t,u)),[`${r}-lg`]:Object.assign({},B0(a,u)),[`${r}-sm`]:Object.assign({},B0(l,u))}},sE=e=>Object.assign({width:e},Tg(e)),xB=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},sE(l(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},sE(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%"}}},k0=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},L0=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Tg(e)),SB=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()},L0(r,u))},k0(e,r,n)),{[`${n}-lg`]:Object.assign({},L0(a,u))}),k0(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},L0(l,u))}),k0(e,l,`${n}-sm`))},$B=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:y,borderRadius:x,titleHeight:S,blockRadius:b,paragraphLiHeight:$,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},Tc(d)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Tc(f)),[`${n}-sm`]:Object.assign({},Tc(v))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:S,background:g,borderRadius:b,[`+ ${a}`]:{marginBlockStart:v}},[a]:{padding:0,"> li":{width:"100%",height:$,listStyle:"none",background:g,borderRadius:b,"+ li":{marginBlockStart:w}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:x}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:y,[`+ ${a}`]:{marginBlockStart:E}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},SB(e)),yB(e)),CB(e)),xB(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({},bB(e))}}},wB=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}},tu=un("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=rn(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 $B(r)},wB,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),EB=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]=tu(d),p=En(e,["prefixCls","className"]),y=de(d,`${d}-element`,{[`${d}-active`]:a},n,r,v,g);return f(i.createElement("div",{className:y},i.createElement(Mg,Object.assign({prefixCls:`${d}-avatar`,shape:l,size:c},p))))},OB=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]=tu(d),p=En(e,["prefixCls"]),y=de(d,`${d}-element`,{[`${d}-active`]:a,[`${d}-block`]:l},n,r,v,g);return f(i.createElement("div",{className:y},i.createElement(Mg,Object.assign({prefixCls:`${d}-button`,size:c},p))))},jB="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",RB=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]=tu(u),g=de(u,`${u}-element`,{[`${u}-active`]:l},n,r,f,v);return d(i.createElement("div",{className:g},i.createElement("div",{className:de(`${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:jB,className:`${u}-image-path`})))))},IB=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]=tu(d),p=En(e,["prefixCls"]),y=de(d,`${d}-element`,{[`${d}-active`]:a,[`${d}-block`]:l},n,r,v,g);return f(i.createElement("div",{className:y},i.createElement(Mg,Object.assign({prefixCls:`${d}-input`,size:c},p))))},NB=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]=tu(d),p=de(d,`${d}-element`,{[`${d}-active`]:l},v,n,r,g);return f(i.createElement("div",{className:p},i.createElement("div",{className:de(`${d}-image`,n),style:a},c)))},MB=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},TB=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:MB(u,e)}}));return i.createElement("ul",{className:de(t,n),style:r},l)},PB=({prefixCls:e,className:t,width:n,style:r})=>i.createElement("h3",{className:de(e,t),style:Object.assign({width:n},r)});function H0(e){return e&&typeof e=="object"?e:{}}function zB(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function DB(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function _B(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const jl=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:y,className:x,style:S}=hr("skeleton"),b=p("skeleton",t),[$,w,E]=tu(b);if(n||!("loading"in e)){const R=!!u,j=!!d,I=!!f;let O;if(R){const P=Object.assign(Object.assign({prefixCls:`${b}-avatar`},zB(j,I)),H0(u));O=i.createElement("div",{className:`${b}-header`},i.createElement(Mg,Object.assign({},P)))}let M;if(j||I){let P;if(j){const L=Object.assign(Object.assign({prefixCls:`${b}-title`},DB(R,I)),H0(d));P=i.createElement(PB,Object.assign({},L))}let B;if(I){const L=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},_B(R,j)),H0(f));B=i.createElement(TB,Object.assign({},L))}M=i.createElement("div",{className:`${b}-content`},P,B)}const N=de(b,{[`${b}-with-avatar`]:R,[`${b}-active`]:v,[`${b}-rtl`]:y==="rtl",[`${b}-round`]:g},x,r,a,w,E);return $(i.createElement("div",{className:N,style:Object.assign(Object.assign({},S),l)},O,M))}return c??null};jl.Button=OB;jl.Avatar=EB;jl.Input=IB;jl.Image=RB;jl.Node=NB;function cE(){}const AB=i.createContext({add:cE,remove:cE});function BB(e){const t=i.useContext(AB),n=i.useRef(null);return Qt(a=>{if(a){const l=e?a.querySelector(e):a;l&&(t.add(l),n.current=l)}else t.remove(n.current)})}const uE=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=i.useContext(ff);return ge.createElement(Ue,Object.assign({onClick:n},e),t)},dE=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=i.useContext(ff);return ge.createElement(Ue,Object.assign({},T1(n),{loading:e,onClick:a},t),r)};function Mj(e,t){return ge.createElement("span",{className:`${e}-close-x`},t||ge.createElement(_o,{className:`${e}-close-icon`}))}const Tj=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:l,onCancel:c,okButtonProps:u,cancelButtonProps:d,footer:f}=e,[v]=Aa("Modal",c6()),g=t||(v==null?void 0:v.okText),p=r||(v==null?void 0:v.cancelText),y=ge.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 x;return typeof f=="function"||typeof f>"u"?(x=ge.createElement(ge.Fragment,null,ge.createElement(uE,null),ge.createElement(dE,null)),typeof f=="function"&&(x=f(x,{OkBtn:dE,CancelBtn:uE})),x=ge.createElement(fj,{value:y},x)):x=f,ge.createElement(S1,{disabled:!1},x)},kB=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"}}}},LB=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},HB=(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},Ry=(e,t)=>HB(e,t),FB=(e,t,n)=>({[`@media (min-width: ${le(t)})`]:Object.assign({},Ry(e,n))}),VB=()=>({}),WB=()=>({}),KB=un("Grid",kB,VB),Pj=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),UB=un("Grid",e=>{const t=rn(e,{gridColumns:24}),n=Pj(t);return delete n.xs,[LB(t),Ry(t,""),Ry(t,"-xs"),Object.keys(n).map(r=>FB(t,n[r],`-${r}`)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},WB);function fE(e){return{position:e,inset:0}}const qB=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({},fE("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},fE("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:z1(e)}]},GB=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:`${le(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},mn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${le(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:le(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Za(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${le(e.borderRadiusLG)} ${le(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:`${le(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"}}}]},XB=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},YB=e=>{const{componentCls:t}=e,n=Pj(e),r=Object.assign({},n);delete r.xs;const a=`--${t.replace(".","")}-`,l=Object.keys(r).map(c=>({[`@media (min-width: ${le(r[c])})`]:{width:`var(${a}${c}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Me(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)`}],Me(l))}}},zj=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return rn(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()})},Dj=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${le(e.paddingMD)} ${le(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${le(e.padding)} ${le(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${le(e.paddingXS)} ${le(e.padding)}`:0,footerBorderTop:e.wireframe?`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${le(e.padding*2)} ${le(e.padding*2)} ${le(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),_j=un("Modal",e=>{const t=zj(e);return[GB(t),XB(t),qB(t),df(t,"zoom"),YB(t)]},Dj,{unitless:{titleLineHeight:!0}});var QB=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 Iy;const ZB=e=>{Iy={x:e.pageX,y:e.pageY},setTimeout(()=>{Iy=null},100)};pB()&&document.documentElement.addEventListener("click",ZB,!0);const Aj=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:y,styles:x,children:S,loading:b,confirmLoading:$,zIndex:w,mousePosition:E,onOk:R,onCancel:j,destroyOnHidden:I,destroyOnClose:O,panelRef:M=null,modalRender:N}=e,P=QB(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:_}=i.useContext(Rt),H=fe=>{$||j==null||j(fe)},z=fe=>{R==null||R(fe)},D=L("modal",t),F=L(),W=vr(D),[U,V,G]=_j(D,W),q=de(l,{[`${D}-centered`]:c??(_==null?void 0:_.centered),[`${D}-wrap-rtl`]:k==="rtl"}),K=p!==null&&!b?i.createElement(Tj,Object.assign({},e,{onOk:z,onCancel:H})):null,[Z,Q,te,X]=X6(kv(e),kv(_),{closable:!0,closeIcon:i.createElement(_o,{className:`${D}-close-icon`}),closeIconRender:fe=>Mj(D,fe)}),oe=N?fe=>i.createElement("div",{className:`${D}-render`},N(fe)):void 0,ae=`.${D}-${N?"render":"content"}`,re=BB(ae),Y=Mr(M,re),[ee,ie]=Ao("Modal",w),[ue,se]=i.useMemo(()=>g&&typeof g=="object"?[void 0,g]:[g,void 0],[g]),pe=i.useMemo(()=>{const fe={};return se&&Object.keys(se).forEach(he=>{const Se=se[he];Se!==void 0&&(fe[`--${D}-${he}-width`]=typeof Se=="number"?`${Se}px`:Se)}),fe},[D,se]);return U(i.createElement(Jo,{form:!0,space:!0},i.createElement(hg.Provider,{value:ie},i.createElement(bj,Object.assign({width:ue},P,{zIndex:ee,getContainer:u===void 0?B:u,prefixCls:D,rootClassName:de(V,r,G,W),footer:K,visible:a??v,mousePosition:E??Iy,onClose:H,closable:Z&&Object.assign({disabled:te,closeIcon:Q},X),closeIcon:Q,focusTriggerAfterClose:d,transitionName:Yo(F,"zoom",e.transitionName),maskTransitionName:Yo(F,"fade",e.maskTransitionName),className:de(V,n,_==null?void 0:_.className),style:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.style),f),pe),classNames:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.classNames),y),{wrapper:de(q,y==null?void 0:y.wrapper)}),styles:Object.assign(Object.assign({},_==null?void 0:_.styles),x),panelRef:Y,destroyOnClose:I??O,modalRender:oe}),b?i.createElement(jl,{active:!0,title:!1,paragraph:{rows:4},className:`${D}-body-skeleton`}):S))))},JB=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({},Xo()),[`&${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% - ${le(e.marginSM)})`},[`${e.iconCls} + ${v}-paragraph`]:{maxWidth:`calc(100% - ${le(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}}},ek=Qc(["Modal","confirm"],e=>{const t=zj(e);return JB(t)},Dj,{order:-1e3});var tk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Bj=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:a,confirmPrefixCls:l,type:c,okCancel:u,footer:d,locale:f}=e,v=tk(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let g=n;if(!n&&n!==null)switch(c){case"info":g=i.createElement(pg,null);break;case"success":g=i.createElement(ws,null);break;case"error":g=i.createElement(Ol,null);break;default:g=i.createElement(Es,null)}const p=u??c==="confirm",y=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[x]=Aa("Modal"),S=f||x,b=r||(p?S==null?void 0:S.okText:S==null?void 0:S.justOkText),$=a||(S==null?void 0:S.cancelText),w=i.useMemo(()=>Object.assign({autoFocusButton:y,cancelTextLocale:$,okTextLocale:b,mergedOkCancel:p},v),[y,$,b,p,v]),E=i.createElement(i.Fragment,null,i.createElement(Vw,null),i.createElement(Ww,null)),R=e.title!==void 0&&e.title!==null,j=`${l}-body`;return i.createElement("div",{className:`${l}-body-wrapper`},i.createElement("div",{className:de(j,{[`${j}-has-title`]:R})},g,i.createElement("div",{className:`${l}-paragraph`},R&&i.createElement("span",{className:`${l}-title`},e.title),i.createElement("div",{className:`${l}-content`},e.content))),d===void 0||typeof d=="function"?i.createElement(fj,{value:w},i.createElement("div",{className:`${l}-btns`},typeof d=="function"?d(E,{OkBtn:Ww,CancelBtn:Vw}):E)):d,i.createElement(ek,{prefixCls:t}))},nk=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,y=`${l}-confirm`,x=e.width||416,S=e.style||{},b=e.mask===void 0?!0:e.mask,$=e.maskClosable===void 0?!1:e.maskClosable,w=de(y,`${y}-${e.type}`,{[`${y}-rtl`]:a==="rtl"},e.className),[,E]=ua(),R=i.useMemo(()=>n!==void 0?n:E.zIndexPopupBase+R1,[n,E]);return i.createElement(Aj,Object.assign({},e,{className:w,wrapClassName:de({[`${y}-centered`]:!!e.centered},c),onCancel:()=>{t==null||t({triggerCancel:!0}),v==null||v(!1)},title:p,footer:null,transitionName:Yo(u||"","zoom",e.transitionName),maskTransitionName:Yo(u||"","fade",e.maskTransitionName),mask:b,maskClosable:$,style:S,styles:Object.assign({body:d,mask:r},g),width:x,zIndex:R,closable:f}),i.createElement(Bj,Object.assign({},e,{confirmPrefixCls:y})))},kj=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return i.createElement(Do,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},i.createElement(nk,Object.assign({},e)))},ls=[];let Lj="";function Hj(){return Lj}const rk=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:l}=e,c=c6(),u=i.useContext(Rt),d=Hj()||u.getPrefixCls(),f=r||`${d}-modal`;let v=a;return v===!1&&(v=void 0),ge.createElement(kj,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 gf(e){const t=_6(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:d,open:!0}),a,l;function c(...v){var g;if(v.some(x=>x==null?void 0:x.triggerCancel)){var y;(g=e.onCancel)===null||g===void 0||(y=g).call.apply(y,[e,()=>{}].concat(Me(v.slice(1))))}for(let x=0;x<ls.length;x++)if(ls[x]===d){ls.splice(x,1);break}l()}const u=v=>{clearTimeout(a),a=setTimeout(()=>{const g=t.getPrefixCls(void 0,Hj()),p=t.getIconPrefixCls(),y=t.getTheme(),x=ge.createElement(rk,Object.assign({},v));l=M1()(ge.createElement(Do,{prefixCls:g,iconPrefixCls:p,theme:y},typeof t.holderRender=="function"?t.holderRender(x):x),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),ls.push(d),{destroy:d,update:f}}function Fj(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Vj(e){return Object.assign(Object.assign({},e),{type:"info"})}function Wj(e){return Object.assign(Object.assign({},e),{type:"success"})}function Kj(e){return Object.assign(Object.assign({},e),{type:"error"})}function Uj(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function ak({rootPrefixCls:e}){Lj=e}var ok=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 ik=(e,t)=>{var n,{afterClose:r,config:a}=e,l=ok(e,["afterClose","config"]);const[c,u]=i.useState(!0),[d,f]=i.useState(a),{direction:v,getPrefixCls:g}=i.useContext(Rt),p=g("modal"),y=g(),x=()=>{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 j;(E=d.onCancel)===null||E===void 0||(j=E).call.apply(j,[d,()=>{}].concat(Me(w.slice(1))))}};i.useImperativeHandle(t,()=>({destroy:S,update:w=>{f(E=>{const R=typeof w=="function"?w(E):w;return Object.assign(Object.assign({},E),R)})}}));const b=(n=d.okCancel)!==null&&n!==void 0?n:d.type==="confirm",[$]=Aa("Modal",po.Modal);return i.createElement(kj,Object.assign({prefixCls:p,rootPrefixCls:y},d,{close:S,open:c,afterClose:x,okText:d.okText||(b?$==null?void 0:$.okText:$==null?void 0:$.justOkText),direction:d.direction||v,cancelText:d.cancelText||($==null?void 0:$.cancelText)},l))},lk=i.forwardRef(ik);let mE=0;const sk=i.memo(i.forwardRef((e,t)=>{const[n,r]=HD();return i.useImperativeHandle(t,()=>({patchElement:r}),[r]),i.createElement(i.Fragment,null,n)}));function qj(){const e=i.useRef(null),[t,n]=i.useState([]);i.useEffect(()=>{t.length&&(Me(t).forEach(c=>{c()}),n([]))},[t]);const r=i.useCallback(l=>function(u){var d;mE+=1;const f=i.createRef();let v;const g=new Promise(b=>{v=b});let p=!1,y;const x=i.createElement(lk,{key:`modal-${mE}`,config:l(u),ref:f,afterClose:()=>{y==null||y()},isSilent:()=>p,onConfirm:b=>{v(b)}});return y=(d=e.current)===null||d===void 0?void 0:d.patchElement(x),y&&ls.push(y),{destroy:()=>{function b(){var $;($=f.current)===null||$===void 0||$.destroy()}f.current?b():n($=>[].concat(Me($),[b]))},update:b=>{function $(){var w;(w=f.current)===null||w===void 0||w.update(b)}f.current?$():n(w=>[].concat(Me(w),[$]))},then:b=>(p=!0,g.then(b))}},[]);return[i.useMemo(()=>({info:r(Vj),success:r(Wj),error:r(Kj),warning:r(Fj),confirm:r(Uj)}),[r]),i.createElement(sk,{key:"modal-holder",ref:e})]}const ck=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,a=`${t}-notice`,l=new tn("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),c=new tn("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),u=new tn("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),d=new tn("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}}}}},uk=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],dk={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},fk=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[dk[t]]:{value:0,_skip_check_:!0}}}}},mk=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)},vk=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)},gk=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"},mk(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},vk(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"}}}},uk.map(n=>fk(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},pk=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:y,notificationMarginEdge:x,notificationProgressBg:S,notificationProgressHeight:b,fontSize:$,lineHeight:w,width:E,notificationIconSize:R,colorText:j,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:y,width:E,maxWidth:`calc(100vw - ${le(e.calc(x).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:$,color:j,marginTop:e.marginXS},[`${P}-closable ${P}-message`]:{paddingInlineEnd:e.paddingLG},[`${P}-with-icon ${P}-message`]:{marginInlineStart:e.calc(e.marginSM).add(R).equal(),fontSize:a},[`${P}-with-icon ${P}-description`]:{marginInlineStart:e.calc(e.marginSM).add(R).equal(),fontSize:$},[`${P}-icon`]:{position:"absolute",fontSize:R,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}},Za(e)),[`${P}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${le(c)} * 2)`,left:{_skip_check_:!0,value:c},right:{_skip_check_:!0,value:c},bottom:0,blockSize:b,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}}},hk=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:a,motionEaseInOut:l}=e,c=`${t}-notice`,u=new tn("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},mn(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`]:pk(e)}}]},bk=e=>({zIndexPopup:e.zIndexPopupBase+R1+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),yk=e=>{const t=e.paddingMD,n=e.paddingLG;return rn(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:`${le(e.paddingMD)} ${le(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Ck=un("Notification",e=>{const t=yk(e);return[hk(t),ck(t),gk(t)]},bk);function Gj(e,t){return t===null||t===!1?null:t||i.createElement(_o,{className:`${e}-close-icon`})}const xk={success:ws,info:pg,error:Ol,warning:Es},Sk=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(xk[r]||null,{className:de(`${t}-icon`,`${t}-icon-${r}`)})),i.createElement("div",{className:de({[`${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 $k(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 wk(e){return{motionName:`${e}-fade`}}function Ek(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 Ok=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 vE=24,jk=4.5,Rk="topRight",Ik=({children:e,prefixCls:t})=>{const n=vr(t),[r,a,l]=Ck(t,n);return r(ge.createElement(q6,{classNames:{list:de(a,l,n)}},e))},Nk=(e,{prefixCls:t,key:n})=>ge.createElement(Ik,{prefixCls:t,key:n},e),Mk=ge.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:y,getPopupContainer:x,notification:S,direction:b}=i.useContext(Rt),[,$]=ua(),w=a||y("notification"),E=M=>$k(M,n??vE,r??vE),R=()=>de({[`${w}-rtl`]:u??b==="rtl"}),j=()=>wk(w),[I,O]=G6({prefixCls:w,style:E,className:R,motion:j,closable:!0,closeIcon:Gj(w),duration:v??jk,getContainer:()=>(l==null?void 0:l())||(x==null?void 0:x())||document.body,maxCount:c,pauseOnHover:g,showProgress:p,onAllRemoved:d,renderNotifications:Nk,stack:f===!1?!1:{threshold:typeof f=="object"?f==null?void 0:f.threshold:void 0,offset:8,gap:$.margin}});return ge.useImperativeHandle(t,()=>Object.assign(Object.assign({},I),{prefixCls:w,notification:S})),O});function Tk(e){const t=ge.useRef(null);return ti(),[ge.useMemo(()=>{const r=u=>{var d;if(!t.current)return;const{open:f,prefixCls:v,notification:g}=t.current,p=`${v}-notice`,{message:y,description:x,icon:S,type:b,btn:$,actions:w,className:E,style:R,role:j="alert",closeIcon:I,closable:O}=u,M=Ok(u,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),N=w??$,P=Gj(p,Ek(I,e,g));return f(Object.assign(Object.assign({placement:(d=e==null?void 0:e.placement)!==null&&d!==void 0?d:Rk},M),{content:ge.createElement(Sk,{prefixCls:p,icon:S,type:b,message:y,description:x,actions:N,role:j}),className:de(b&&`${p}-${b}`,E,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),R),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},[]),ge.createElement(Mk,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Pk(e){return Tk(e)}const Ny=ge.createContext({}),Xj=ge.createContext({message:{},notification:{},modal:{}}),zk=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"}}}},Dk=()=>({}),_k=un("App",zk,Dk),Ak=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,y,x]=_k(g),S=de(y,g,r,a,x,{[`${g}-rtl`]:f==="rtl"}),b=i.useContext(Ny),$=ge.useMemo(()=>({message:Object.assign(Object.assign({},b.message),l),notification:Object.assign(Object.assign({},b.notification),c)}),[l,c,b.message,b.notification]),[w,E]=tj($.message),[R,j]=Pk($.notification),[I,O]=qj(),M=ge.useMemo(()=>({message:w,notification:R,modal:I}),[w,R,I]);ti()(!(x&&d===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const N=d===!1?ge.Fragment:d,P={className:S,style:u};return p(ge.createElement(Xj.Provider,{value:M},ge.createElement(Ny.Provider,{value:$},ge.createElement(N,Object.assign({},d===!1?void 0:P),O,E,j,n))))},Bk=()=>ge.useContext(Xj),Ra=Ak;Ra.useApp=Bk;function Yj(e){return t=>i.createElement(Do,{theme:{token:{motion:!1,zIndexPopupBase:0}}},i.createElement(e,Object.assign({},t)))}const nu=(e,t,n,r,a)=>Yj(c=>{const{prefixCls:u,style:d}=c,f=i.useRef(null),[v,g]=i.useState(0),[p,y]=i.useState(0),[x,S]=Cn(!1,{value:c.open}),{getPrefixCls:b}=i.useContext(Rt),$=b(r||"select",u);i.useEffect(()=>{if(S(!0),typeof ResizeObserver<"u"){const R=new ResizeObserver(I=>{const O=I[0].target;g(O.offsetHeight+8),y(O.offsetWidth)}),j=setInterval(()=>{var I;const O=a?`.${a($)}`:`.${$}-dropdown`,M=(I=f.current)===null||I===void 0?void 0:I.querySelector(O);M&&(clearInterval(j),R.observe(M))},10);return()=>{clearInterval(j),R.disconnect()}}},[$]);let w=Object.assign(Object.assign({},c),{style:Object.assign(Object.assign({},d),{margin:0}),open:x,visible:x,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)))}),Pg=(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 zg=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:de(n.split(/\s+/).map(function(f){return"".concat(f,"-icon")}))},l))},kk=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=ge.useMemo(function(){if(Ot(a)==="object")return a.clearIcon;if(l)return l},[a,l]),v=ge.useMemo(function(){return!!(!c&&a&&(r.length||u)&&!(d==="combobox"&&u===""))},[a,c,r.length,u,d]);return{allowClear:v,clearIcon:ge.createElement(zg,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:f},"×")}},Qj=i.createContext(null);function Zj(){return i.useContext(Qj)}function Lk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=i.useState(!1),n=me(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 Jj(){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 Hk(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 Fk(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 Vk=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],mc=void 0;function Wk(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,y=e.display,x=e.order,S=e.component,b=S===void 0?"div":S,$=Lt(e,Vk),w=c&&!y;function E(M){d(f,M)}i.useEffect(function(){return function(){E(null)}},[]);var R=l&&a!==mc?l(a,{index:x}):p,j;r||(j={opacity:w?0:1,height:w?0:mc,overflowY:w?"hidden":mc,order:c?x:mc,pointerEvents:w?"none":mc,position:w?"absolute":mc});var I={};w&&(I["aria-hidden"]=!0);var O=i.createElement(b,Ce({className:de(!r&&n,v),style:ce(ce({},j),g)},I,$,{ref:t}),R);return c&&(O=i.createElement(ha,{onResize:function(N){var P=N.offsetWidth;E(P)},disabled:u},O)),O}var jc=i.forwardRef(Wk);jc.displayName="Item";function Kk(e){if(typeof MessageChannel>"u")Zt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Uk(){var e=i.useRef(null),t=function(r){e.current||(e.current=[],Kk(function(){vo.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function vc(e,t){var n=i.useState(t),r=me(n,2),a=r[0],l=r[1],c=Qt(function(u){e(function(){l(u)})});return[a,c]}var Vv=ge.createContext(null),qk=["component"],Gk=["className"],Xk=["className"],Yk=function(t,n){var r=i.useContext(Vv);if(!r){var a=t.component,l=a===void 0?"div":a,c=Lt(t,qk);return i.createElement(l,Ce({},c,{ref:n}))}var u=r.className,d=Lt(r,Gk),f=t.className,v=Lt(t,Xk);return i.createElement(Vv.Provider,{value:null},i.createElement(jc,Ce({ref:n,className:de(u,f)},d,v)))},eR=i.forwardRef(Yk);eR.displayName="RawItem";var Qk=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],tR="responsive",nR="invalidate";function Zk(e){return"+ ".concat(e.length," ...")}function Jk(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,y=e.className,x=e.maxCount,S=e.renderRest,b=e.renderRawRest,$=e.prefix,w=e.suffix,E=e.component,R=E===void 0?"div":E,j=e.itemComponent,I=e.onVisibleChange,O=Lt(e,Qk),M=g==="full",N=Uk(),P=vc(N,null),B=me(P,2),L=B[0],k=B[1],_=L||0,H=vc(N,new Map),z=me(H,2),D=z[0],F=z[1],W=vc(N,0),U=me(W,2),V=U[0],G=U[1],q=vc(N,0),K=me(q,2),Z=K[0],Q=K[1],te=vc(N,0),X=me(te,2),oe=X[0],ae=X[1],re=vc(N,0),Y=me(re,2),ee=Y[0],ie=Y[1],ue=i.useState(null),se=me(ue,2),pe=se[0],fe=se[1],he=i.useState(null),Se=me(he,2),be=Se[0],$e=Se[1],xe=i.useMemo(function(){return be===null&&M?Number.MAX_SAFE_INTEGER:be||0},[be,L]),ye=i.useState(!1),Ne=me(ye,2),_e=Ne[0],Qe=Ne[1],Ke="".concat(r,"-item"),Fe=Math.max(V,Z),Xe=x===tR,Pe=l.length&&Xe,je=x===nR,Ae=Pe||typeof x=="number"&&l.length>x,Re=i.useMemo(function(){var Ve=l;return Pe?L===null&&M?Ve=l:Ve=l.slice(0,Math.min(l.length,_/v)):typeof x=="number"&&(Ve=l.slice(0,x)),Ve},[l,v,L,x,Pe]),ze=i.useMemo(function(){return Pe?l.slice(xe+1):l.slice(Re.length)},[l,Re,Pe,xe]),we=i.useCallback(function(Ve,qe){var mt;return typeof d=="function"?d(Ve):(mt=d&&(Ve==null?void 0:Ve[d]))!==null&&mt!==void 0?mt:qe},[d]),Oe=i.useCallback(c||function(Ve){return Ve},[c]);function Te(Ve,qe,mt){be===Ve&&(qe===void 0||qe===pe)||($e(Ve),mt||(Qe(Ve<l.length-1),I==null||I(Ve)),qe!==void 0&&fe(qe))}function Le(Ve,qe){k(qe.clientWidth)}function tt(Ve,qe){F(function(mt){var Tt=new Map(mt);return qe===null?Tt.delete(Ve):Tt.set(Ve,qe),Tt})}function Ct(Ve,qe){Q(qe),G(Z)}function We(Ve,qe){ae(qe)}function nt(Ve,qe){ie(qe)}function dt(Ve){return D.get(we(Re[Ve],Ve))}an(function(){if(_&&typeof Fe=="number"&&Re){var Ve=oe+ee,qe=Re.length,mt=qe-1;if(!qe){Te(0,null);return}for(var Tt=0;Tt<qe;Tt+=1){var Nt=dt(Tt);if(M&&(Nt=Nt||0),Nt===void 0){Te(Tt-1,void 0,!0);break}if(Ve+=Nt,mt===0&&Ve<=_||Tt===mt-1&&Ve+dt(mt)<=_){Te(mt,null);break}else if(Ve+Fe>_){Te(Tt-1,Ve-Nt-ee+Z);break}}w&&dt(0)+ee>_&&fe(null)}},[_,D,Z,oe,ee,we,Re]);var at=_e&&!!ze.length,bt={};pe!==null&&Pe&&(bt={position:"absolute",left:pe,top:0});var zt={prefixCls:Ke,responsive:Pe,component:j,invalidate:je},jt=u?function(Ve,qe){var mt=we(Ve,qe);return i.createElement(Vv.Provider,{key:mt,value:ce(ce({},zt),{},{order:qe,item:Ve,itemKey:mt,registerSize:tt,display:qe<=xe})},u(Ve,qe))}:function(Ve,qe){var mt=we(Ve,qe);return i.createElement(jc,Ce({},zt,{order:qe,key:mt,item:Ve,renderItem:Oe,itemKey:mt,registerSize:tt,display:qe<=xe}))},ct={order:at?xe:Number.MAX_SAFE_INTEGER,className:"".concat(Ke,"-rest"),registerSize:Ct,display:at},wt=S||Zk,xt=b?i.createElement(Vv.Provider,{value:ce(ce({},zt),ct)},b(ze)):i.createElement(jc,Ce({},zt,ct),typeof wt=="function"?wt(ze):wt),et=i.createElement(R,Ce({className:de(!je&&r,y),style:p,ref:t},O),$&&i.createElement(jc,Ce({},zt,{responsive:Xe,responsiveDisabled:!Pe,order:-1,className:"".concat(Ke,"-prefix"),registerSize:We,display:!0}),$),Re.map(jt),Ae?xt:null,w&&i.createElement(jc,Ce({},zt,{responsive:Xe,responsiveDisabled:!Pe,order:xe,className:"".concat(Ke,"-suffix"),registerSize:nt,display:!0,style:bt}),w));return Xe?i.createElement(ha,{onResize:Le,disabled:!Pe},et):et}var Oo=i.forwardRef(Jk);Oo.displayName="Overflow";Oo.Item=eR;Oo.RESPONSIVE=tR;Oo.INVALIDATE=nR;function eL(e,t,n){var r=ce(ce({},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 tL=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],nL=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,y=Lt(t,tL),x=l||i.createElement("input",null),S=x,b=S.ref,$=S.props;return"maxLength"in x.props,x=i.cloneElement(x,ce(ce(ce({type:"search"},eL(y,$)),{},{id:a,ref:Mr(n,b),autoComplete:u||"off",autoFocus:c,className:de("".concat(r,"-selection-search-input"),$==null?void 0:$.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:ce(ce({},$.style),{},{opacity:d?null:0})})),x},rR=i.forwardRef(nL);function aR(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var rL=typeof window<"u"&&window.document&&window.document.documentElement,aL=rL;function oL(e){return e!=null}function iL(e){return!e&&e!==0}function gE(e){return["string","number"].includes(Ot(e))}function oR(e){var t=void 0;return e&&(gE(e.title)?t=e.title.toString():gE(e.label)&&(t=e.label.toString())),t}function lL(e,t){aL?i.useLayoutEffect(e,t):i.useEffect(e,t)}function sL(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var pE=function(t){t.preventDefault(),t.stopPropagation()},cL=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,y=t.autoFocus,x=t.autoComplete,S=t.activeDescendantId,b=t.tabIndex,$=t.removeIcon,w=t.maxTagCount,E=t.maxTagTextLength,R=t.maxTagPlaceholder,j=R===void 0?function(ie){return"+ ".concat(ie.length," ...")}:R,I=t.tagRender,O=t.onToggleOpen,M=t.onRemove,N=t.onInputChange,P=t.onInputPaste,B=t.onInputKeyDown,L=t.onInputMouseDown,k=t.onInputCompositionStart,_=t.onInputCompositionEnd,H=t.onInputBlur,z=i.useRef(null),D=i.useState(0),F=me(D,2),W=F[0],U=F[1],V=i.useState(!1),G=me(V,2),q=G[0],K=G[1],Z="".concat(r,"-selection"),Q=l||g==="multiple"&&u===!1||g==="tags"?c:"",te=g==="tags"||g==="multiple"&&u===!1||p&&(l||q);lL(function(){U(z.current.scrollWidth)},[Q]);var X=function(ue,se,pe,fe,he){return i.createElement("span",{title:oR(ue),className:de("".concat(Z,"-item"),ne({},"".concat(Z,"-item-disabled"),pe))},i.createElement("span",{className:"".concat(Z,"-item-content")},se),fe&&i.createElement(zg,{className:"".concat(Z,"-item-remove"),onMouseDown:pE,onClick:he,customizeIcon:$},"×"))},oe=function(ue,se,pe,fe,he,Se){var be=function(xe){pE(xe),O(!l)};return i.createElement("span",{onMouseDown:be},I({label:se,value:ue,disabled:pe,closable:fe,onClose:he,isMaxTag:!!Se}))},ae=function(ue){var se=ue.disabled,pe=ue.label,fe=ue.value,he=!v&&!se,Se=pe;if(typeof E=="number"&&(typeof pe=="string"||typeof pe=="number")){var be=String(Se);be.length>E&&(Se="".concat(be.slice(0,E),"..."))}var $e=function(ye){ye&&ye.stopPropagation(),M(ue)};return typeof I=="function"?oe(fe,Se,se,he,$e):X(ue,Se,se,he,$e)},re=function(ue){if(!a.length)return null;var se=typeof j=="function"?j(ue):j;return typeof I=="function"?oe(void 0,se,!1,!1,void 0,!0):X({title:se},se,!1)},Y=i.createElement("div",{className:"".concat(Z,"-search"),style:{width:W},onFocus:function(){K(!0)},onBlur:function(){K(!1)}},i.createElement(rR,{ref:d,open:l,prefixCls:r,id:n,inputElement:null,disabled:v,autoFocus:y,autoComplete:x,editable:te,activeDescendantId:S,value:Q,onKeyDown:B,onMouseDown:L,onChange:N,onPaste:P,onCompositionStart:k,onCompositionEnd:_,onBlur:H,tabIndex:b,attrs:Nr(t,!0)}),i.createElement("span",{ref:z,className:"".concat(Z,"-search-mirror"),"aria-hidden":!0},Q," ")),ee=i.createElement(Oo,{prefixCls:"".concat(Z,"-overflow"),data:a,renderItem:ae,renderRest:re,suffix:Y,itemKey:sL,maxCount:w});return i.createElement("span",{className:"".concat(Z,"-wrap")},ee,!a.length&&!Q&&i.createElement("span",{className:"".concat(Z,"-placeholder")},f))},uL=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,y=t.placeholder,x=t.tabIndex,S=t.showSearch,b=t.searchValue,$=t.activeValue,w=t.maxLength,E=t.onInputKeyDown,R=t.onInputMouseDown,j=t.onInputChange,I=t.onInputPaste,O=t.onInputCompositionStart,M=t.onInputCompositionEnd,N=t.onInputBlur,P=t.title,B=i.useState(!1),L=me(B,2),k=L[0],_=L[1],H=v==="combobox",z=H||S,D=p[0],F=b||"";H&&$&&!k&&(F=$),i.useEffect(function(){H&&_(!1)},[H,$]);var W=v!=="combobox"&&!g&&!S?!1:!!F,U=P===void 0?oR(D):P,V=i.useMemo(function(){return D?null:i.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:W?{visibility:"hidden"}:void 0},y)},[D,W,y,r]);return i.createElement("span",{className:"".concat(r,"-selection-wrap")},i.createElement("span",{className:"".concat(r,"-selection-search")},i.createElement(rR,{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:R,onChange:function(q){_(!0),j(q)},onPaste:I,onCompositionStart:O,onCompositionEnd:M,onBlur:N,tabIndex:x,attrs:Nr(t,!0),maxLength:H?w:void 0})),!H&&D?i.createElement("span",{className:"".concat(r,"-selection-item"),title:U,style:W?{visibility:"hidden"}:void 0},D.label):null,V)},dL=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,y=t.onSearch,x=t.onSearchSubmit,S=t.onToggleOpen,b=t.onInputKeyDown,$=t.onInputBlur,w=t.domRef;i.useImperativeHandle(n,function(){return{focus:function(U){r.current.focus(U)},blur:function(){r.current.blur()}}});var E=Jj(0),R=me(E,2),j=R[0],I=R[1],O=function(U){var V=U.which,G=r.current instanceof HTMLTextAreaElement;!G&&c&&(V===ot.UP||V===ot.DOWN)&&U.preventDefault(),b&&b(U),V===ot.ENTER&&u==="tags"&&!a.current&&!c&&(x==null||x(U.target.value)),!(G&&!c&&~[ot.UP,ot.DOWN,ot.LEFT,ot.RIGHT].indexOf(V))&&Fk(V)&&S(!0)},M=function(){I(!0)},N=i.useRef(null),P=function(U){y(U,!0,a.current)!==!1&&S(!0)},B=function(){a.current=!0},L=function(U){a.current=!1,u!=="combobox"&&P(U.target.value)},k=function(U){var V=U.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)},_=function(U){var V=U.clipboardData,G=V==null?void 0:V.getData("text");N.current=G||""},H=function(U){var V=U.target;if(V!==r.current){var G=document.body.style.msTouchAction!==void 0;G?setTimeout(function(){r.current.focus()}):r.current.focus()}},z=function(U){var V=j();U.target!==r.current&&!V&&!(u==="combobox"&&v)&&U.preventDefault(),(u!=="combobox"&&(!d||!V)||!c)&&(c&&p!==!1&&y("",!0,!1),S())},D={inputRef:r,onInputKeyDown:O,onInputMouseDown:M,onInputChange:k,onInputPaste:_,onInputCompositionStart:B,onInputCompositionEnd:L,onInputBlur:$},F=u==="multiple"||u==="tags"?i.createElement(cL,Ce({},t,D)):i.createElement(uL,Ce({},t,D));return i.createElement("div",{ref:w,className:"".concat(l,"-selector"),onClick:H,onMouseDown:z},g&&i.createElement("div",{className:"".concat(l,"-prefix")},g),F)},fL=i.forwardRef(dL);function mL(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 y={position:"absolute"};if(n.autoArrow!==!1){var x=n.points[0],S=n.points[1],b=x[0],$=x[1],w=S[0],E=S[1];b===w||!["t","b"].includes(b)?y.top=g:b==="t"?y.top=0:y.bottom=0,$===E||!["l","r"].includes($)?y.left=f:$==="l"?y.left=0:y.right=0}return i.createElement("div",{ref:p,className:de("".concat(t,"-arrow"),c),style:y},u)}function vL(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,l=e.motion;return a?i.createElement(ta,Ce({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(c){var u=c.className;return i.createElement("div",{style:{zIndex:r},className:de("".concat(t,"-mask"),u)})}):null}var gL=i.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),pL=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,y=e.arrow,x=e.arrowPos,S=e.align,b=e.motion,$=e.maskMotion,w=e.forceRender,E=e.getPopupContainer,R=e.autoDestroy,j=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,_=e.offsetR,H=e.offsetB,z=e.onAlign,D=e.onPrepare,F=e.stretch,W=e.targetWidth,U=e.targetHeight,V=typeof n=="function"?n():n,G=d||f,q=(E==null?void 0:E.length)>0,K=i.useState(!E||!q),Z=me(K,2),Q=Z[0],te=Z[1];if(an(function(){!Q&&q&&c&&te(!0)},[Q,q,c]),!Q)return null;var X="auto",oe={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(B||!d){var ae,re=S.points,Y=S.dynamicInset||((ae=S._experimental)===null||ae===void 0?void 0:ae.dynamicInset),ee=Y&&re[0][1]==="r",ie=Y&&re[0][0]==="b";ee?(oe.right=_,oe.left=X):(oe.left=L,oe.right=X),ie?(oe.bottom=H,oe.top=X):(oe.top=k,oe.bottom=X)}var ue={};return F&&(F.includes("height")&&U?ue.height=U:F.includes("minHeight")&&U&&(ue.minHeight=U),F.includes("width")&&W?ue.width=W:F.includes("minWidth")&&W&&(ue.minWidth=W)),d||(ue.pointerEvents="none"),i.createElement(j,{open:w||G,getContainer:E&&function(){return E(c)},autoDestroy:R},i.createElement(vL,{prefixCls:a,open:d,zIndex:I,mask:p,motion:$}),i.createElement(ha,{onResize:z,disabled:!d},function(se){return i.createElement(ta,Ce({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(a,"-hidden")},b,{onAppearPrepare:D,onEnterPrepare:D,visible:d,onVisibleChanged:function(fe){var he;b==null||(he=b.onVisibleChanged)===null||he===void 0||he.call(b,fe),u(fe)}}),function(pe,fe){var he=pe.className,Se=pe.style,be=de(a,he,r);return i.createElement("div",{ref:Mr(se,t,fe),className:be,style:ce(ce(ce(ce({"--arrow-x":"".concat(x.x||0,"px"),"--arrow-y":"".concat(x.y||0,"px")},oe),ue),Se),{},{boxSizing:"border-box",zIndex:I},l),onMouseEnter:O,onMouseLeave:M,onPointerEnter:N,onClick:g,onPointerDownCapture:P},y&&i.createElement(mL,{prefixCls:a,arrow:y,arrowPos:x,align:S}),i.createElement(gL,{cache:!d&&!v},V))})}))}),hL=i.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=Io(n),l=i.useCallback(function(u){_d(t,r?r(u):u)},[r]),c=Ri(l,El(n));return a?i.cloneElement(n,{ref:c}):n}),hE=i.createContext(null);function bE(e){return e?Array.isArray(e)?e:[e]:[]}function bL(e,t,n,r){return i.useMemo(function(){var a=bE(n??t),l=bE(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 yL(){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 CL(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(yL((u=e[d])===null||u===void 0?void 0:u.points,a,r))return"".concat(t,"-placement-").concat(d)}return""}function yE(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function pf(e){return e.ownerDocument.defaultView}function My(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var a=pf(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 qd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function od(e){return qd(parseFloat(e),0)}function CE(e,t){var n=ce({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=pf(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,y=r.clientHeight,x=r.offsetWidth,S=r.clientWidth,b=od(u),$=od(d),w=od(f),E=od(v),R=qd(Math.round(g.width/x*1e3)/1e3),j=qd(Math.round(g.height/p*1e3)/1e3),I=(x-S-w-E)*R,O=(p-y-b-$)*j,M=b*j,N=$*j,P=w*R,B=E*R,L=0,k=0;if(l==="clip"){var _=od(c);L=_*R,k=_*j}var H=g.x+P-L,z=g.y+M-k,D=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,D),n.bottom=Math.min(n.bottom,F)}}),n}function xE(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 SE(e,t){var n=t||[],r=me(n,2),a=r[0],l=r[1];return[xE(e.width,a),xE(e.height,l)]}function $E(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function gc(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 el(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 xL(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=me(u,2),f=d[0],v=d[1],g=i.useRef(0),p=i.useMemo(function(){return t?My(t):[]},[t]),y=i.useRef({}),x=function(){y.current={}};e||x();var S=Qt(function(){if(t&&n&&e){let qn=function(na,zr){var da=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ne,Tl=G.x+na,Ii=G.y+zr,zs=Tl+ie,Ft=Ii+ee,en=Math.max(Tl,da.left),or=Math.max(Ii,da.top),ur=Math.min(zs,da.right),Ln=Math.min(Ft,da.bottom);return Math.max(0,(ur-en)*(Ln-or))},qr=function(){on=G.y+wt,Jt=on+ee,pn=G.x+ct,Xt=pn+ie};var zn=qn,tr=qr,w,E,R,j,I=t,O=I.ownerDocument,M=pf(I),N=M.getComputedStyle(I),P=N.position,B=I.style.left,L=I.style.top,k=I.style.right,_=I.style.bottom,H=I.style.overflow,z=ce(ce({},a[r]),l),D=O.createElement("div");(w=I.parentElement)===null||w===void 0||w.appendChild(D),D.style.left="".concat(I.offsetLeft,"px"),D.style.top="".concat(I.offsetTop,"px"),D.style.position=P,D.style.height="".concat(I.offsetHeight,"px"),D.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,U,V=n.getBoundingClientRect();V.x=(W=V.x)!==null&&W!==void 0?W:V.left,V.y=(U=V.y)!==null&&U!==void 0?U:V.top,F={x:V.x,y:V.y,width:V.width,height:V.height}}var G=I.getBoundingClientRect(),q=M.getComputedStyle(I),K=q.height,Z=q.width;G.x=(E=G.x)!==null&&E!==void 0?E:G.left,G.y=(R=G.y)!==null&&R!==void 0?R:G.top;var Q=O.documentElement,te=Q.clientWidth,X=Q.clientHeight,oe=Q.scrollWidth,ae=Q.scrollHeight,re=Q.scrollTop,Y=Q.scrollLeft,ee=G.height,ie=G.width,ue=F.height,se=F.width,pe={left:0,top:0,right:te,bottom:X},fe={left:-Y,top:-re,right:oe-Y,bottom:ae-re},he=z.htmlRegion,Se="visible",be="visibleFirst";he!=="scroll"&&he!==be&&(he=Se);var $e=he===be,xe=CE(fe,p),ye=CE(pe,p),Ne=he===Se?ye:xe,_e=$e?ye:Ne;I.style.left="auto",I.style.top="auto",I.style.right="0",I.style.bottom="0";var Qe=I.getBoundingClientRect();I.style.left=B,I.style.top=L,I.style.right=k,I.style.bottom=_,I.style.overflow=H,(j=I.parentElement)===null||j===void 0||j.removeChild(D);var Ke=qd(Math.round(ie/parseFloat(Z)*1e3)/1e3),Fe=qd(Math.round(ee/parseFloat(K)*1e3)/1e3);if(Ke===0||Fe===0||Dd(n)&&!Jc(n))return;var Xe=z.offset,Pe=z.targetOffset,je=SE(G,Xe),Ae=me(je,2),Re=Ae[0],ze=Ae[1],we=SE(F,Pe),Oe=me(we,2),Te=Oe[0],Le=Oe[1];F.x-=Te,F.y-=Le;var tt=z.points||[],Ct=me(tt,2),We=Ct[0],nt=Ct[1],dt=$E(nt),at=$E(We),bt=gc(F,dt),zt=gc(G,at),jt=ce({},z),ct=bt.x-zt.x+Re,wt=bt.y-zt.y+ze,xt=qn(ct,wt),et=qn(ct,wt,ye),Ve=gc(F,["t","l"]),qe=gc(G,["t","l"]),mt=gc(F,["b","r"]),Tt=gc(G,["b","r"]),Nt=z.overflow||{},Wt=Nt.adjustX,ft=Nt.adjustY,lt=Nt.shiftX,At=Nt.shiftY,Gt=function(zr){return typeof zr=="boolean"?zr:zr>=0},on,Jt,pn,Xt;qr();var fn=Gt(ft),st=at[0]===dt[0];if(fn&&at[0]==="t"&&(Jt>_e.bottom||y.current.bt)){var St=wt;st?St-=ee-ue:St=Ve.y-Tt.y-ze;var yt=qn(ct,St),Ye=qn(ct,St,ye);yt>xt||yt===xt&&(!$e||Ye>=et)?(y.current.bt=!0,wt=St,ze=-ze,jt.points=[el(at,0),el(dt,0)]):y.current.bt=!1}if(fn&&at[0]==="b"&&(on<_e.top||y.current.tb)){var Ze=wt;st?Ze+=ee-ue:Ze=mt.y-qe.y-ze;var ut=qn(ct,Ze),Dt=qn(ct,Ze,ye);ut>xt||ut===xt&&(!$e||Dt>=et)?(y.current.tb=!0,wt=Ze,ze=-ze,jt.points=[el(at,0),el(dt,0)]):y.current.tb=!1}var Ut=Gt(Wt),gt=at[1]===dt[1];if(Ut&&at[1]==="l"&&(Xt>_e.right||y.current.rl)){var Mt=ct;gt?Mt-=ie-se:Mt=Ve.x-Tt.x-Re;var Vt=qn(Mt,wt),wn=qn(Mt,wt,ye);Vt>xt||Vt===xt&&(!$e||wn>=et)?(y.current.rl=!0,ct=Mt,Re=-Re,jt.points=[el(at,1),el(dt,1)]):y.current.rl=!1}if(Ut&&at[1]==="r"&&(pn<_e.left||y.current.lr)){var An=ct;gt?An+=ie-se:An=mt.x-qe.x-Re;var Pn=qn(An,wt),Un=qn(An,wt,ye);Pn>xt||Pn===xt&&(!$e||Un>=et)?(y.current.lr=!0,ct=An,Re=-Re,jt.points=[el(at,1),el(dt,1)]):y.current.lr=!1}qr();var Rn=lt===!0?0:lt;typeof Rn=="number"&&(pn<ye.left&&(ct-=pn-ye.left-Re,F.x+se<ye.left+Rn&&(ct+=F.x-ye.left+se-Rn)),Xt>ye.right&&(ct-=Xt-ye.right-Re,F.x>ye.right-Rn&&(ct+=F.x-ye.right+Rn)));var kn=At===!0?0:At;typeof kn=="number"&&(on<ye.top&&(wt-=on-ye.top-ze,F.y+ue<ye.top+kn&&(wt+=F.y-ye.top+ue-kn)),Jt>ye.bottom&&(wt-=Jt-ye.bottom-ze,F.y>ye.bottom-kn&&(wt+=F.y-ye.bottom+kn)));var wr=G.x+ct,Pr=wr+ie,Cr=G.y+wt,Sn=Cr+ee,Bt=F.x,kt=Bt+se,ln=F.y,Pt=ln+ue,_t=Math.max(wr,Bt),gn=Math.min(Pr,kt),In=(_t+gn)/2,Jn=In-wr,Er=Math.max(Cr,ln),er=Math.min(Sn,Pt),jr=(Er+er)/2,dn=jr-Cr;c==null||c(t,jt);var pt=Qe.right-G.x-(ct+G.width),It=Qe.bottom-G.y-(wt+G.height);Ke===1&&(ct=Math.floor(ct),pt=Math.floor(pt)),Fe===1&&(wt=Math.floor(wt),It=Math.floor(It));var vn={ready:!0,offsetX:ct/Ke,offsetY:wt/Fe,offsetR:pt/Ke,offsetB:It/Fe,arrowX:Jn/Ke,arrowY:dn/Fe,scaleX:Ke,scaleY:Fe,align:jt};v(vn)}}),b=function(){g.current+=1;var E=g.current;Promise.resolve().then(function(){g.current===E&&S()})},$=function(){v(function(E){return ce(ce({},E),{},{ready:!1})})};return an($,[r]),an(function(){e||$()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,b]}function SL(e,t,n,r,a){an(function(){if(e&&t&&n){let p=function(){r(),a()};var g=p,l=t,c=n,u=My(l),d=My(c),f=pf(c),v=new Set([f].concat(Me(u),Me(d)));return v.forEach(function(y){y.addEventListener("scroll",p,{passive:!0})}),f.addEventListener("resize",p,{passive:!0}),r(),function(){v.forEach(function(y){y.removeEventListener("scroll",p),f.removeEventListener("resize",p)})}}},[e,t,n])}function $L(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(b){var $;d.current&&!c((($=b.composedPath)===null||$===void 0||($=$.call(b))===null||$===void 0?void 0:$[0])||b.target)&&!f.current&&u(!1)},y=pf(r);y.addEventListener("pointerdown",g,!0),y.addEventListener("mousedown",p,!0),y.addEventListener("contextmenu",p,!0);var x=Bv(n);return x&&(x.addEventListener("mousedown",p,!0),x.addEventListener("contextmenu",p,!0)),function(){y.removeEventListener("pointerdown",g,!0),y.removeEventListener("mousedown",p,!0),y.removeEventListener("contextmenu",p,!0),x&&(x.removeEventListener("mousedown",p,!0),x.removeEventListener("contextmenu",p,!0))}}},[t,n,r,a,l]);function v(){f.current=!0}return v}var wL=["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 EL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:B1,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,y=n.onPopupVisibleChange,x=n.afterPopupVisibleChange,S=n.mouseEnterDelay,b=n.mouseLeaveDelay,$=b===void 0?.1:b,w=n.focusDelay,E=n.blurDelay,R=n.mask,j=n.maskClosable,I=j===void 0?!0:j,O=n.getPopupContainer,M=n.forceRender,N=n.autoDestroy,P=n.destroyPopupOnHide,B=n.popup,L=n.popupClassName,k=n.popupStyle,_=n.popupPlacement,H=n.builtinPlacements,z=H===void 0?{}:H,D=n.popupAlign,F=n.zIndex,W=n.stretch,U=n.getPopupClassNameFromAlign,V=n.fresh,G=n.alignPoint,q=n.onPopupClick,K=n.onPopupAlign,Z=n.arrow,Q=n.popupMotion,te=n.maskMotion,X=n.popupTransitionName,oe=n.popupAnimation,ae=n.maskTransitionName,re=n.maskAnimation,Y=n.className,ee=n.getTriggerDOMNode,ie=Lt(n,wL),ue=N||P||!1,se=i.useState(!1),pe=me(se,2),fe=pe[0],he=pe[1];an(function(){he(Pg())},[]);var Se=i.useRef({}),be=i.useContext(hE),$e=i.useMemo(function(){return{registerSubPopup:function(en,or){Se.current[en]=or,be==null||be.registerSubPopup(en,or)}}},[be]),xe=mf(),ye=i.useState(null),Ne=me(ye,2),_e=Ne[0],Qe=Ne[1],Ke=i.useRef(null),Fe=Qt(function(Ft){Ke.current=Ft,Dd(Ft)&&_e!==Ft&&Qe(Ft),be==null||be.registerSubPopup(xe,Ft)}),Xe=i.useState(null),Pe=me(Xe,2),je=Pe[0],Ae=Pe[1],Re=i.useRef(null),ze=Qt(function(Ft){Dd(Ft)&&je!==Ft&&(Ae(Ft),Re.current=Ft)}),we=i.Children.only(c),Oe=(we==null?void 0:we.props)||{},Te={},Le=Qt(function(Ft){var en,or,ur=je;return(ur==null?void 0:ur.contains(Ft))||((en=Bv(ur))===null||en===void 0?void 0:en.host)===Ft||Ft===ur||(_e==null?void 0:_e.contains(Ft))||((or=Bv(_e))===null||or===void 0?void 0:or.host)===Ft||Ft===_e||Object.values(Se.current).some(function(Ln){return(Ln==null?void 0:Ln.contains(Ft))||Ft===Ln})}),tt=yE(l,Q,oe,X),Ct=yE(l,te,re,ae),We=i.useState(p||!1),nt=me(We,2),dt=nt[0],at=nt[1],bt=g??dt,zt=Qt(function(Ft){g===void 0&&at(Ft)});an(function(){at(g||!1)},[g]);var jt=i.useRef(bt);jt.current=bt;var ct=i.useRef([]);ct.current=[];var wt=Qt(function(Ft){var en;zt(Ft),((en=ct.current[ct.current.length-1])!==null&&en!==void 0?en:bt)!==Ft&&(ct.current.push(Ft),y==null||y(Ft))}),xt=i.useRef(),et=function(){clearTimeout(xt.current)},Ve=function(en){var or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;et(),or===0?wt(en):xt.current=setTimeout(function(){wt(en)},or*1e3)};i.useEffect(function(){return et},[]);var qe=i.useState(!1),mt=me(qe,2),Tt=mt[0],Nt=mt[1];an(function(Ft){(!Ft||bt)&&Nt(!0)},[bt]);var Wt=i.useState(null),ft=me(Wt,2),lt=ft[0],At=ft[1],Gt=i.useState(null),on=me(Gt,2),Jt=on[0],pn=on[1],Xt=function(en){pn([en.clientX,en.clientY])},fn=xL(bt,_e,G&&Jt!==null?Jt:je,_,z,D,K),st=me(fn,11),St=st[0],yt=st[1],Ye=st[2],Ze=st[3],ut=st[4],Dt=st[5],Ut=st[6],gt=st[7],Mt=st[8],Vt=st[9],wn=st[10],An=bL(fe,d,f,v),Pn=me(An,2),Un=Pn[0],Rn=Pn[1],kn=Un.has("click"),wr=Rn.has("click")||Rn.has("contextMenu"),Pr=Qt(function(){Tt||wn()}),Cr=function(){jt.current&&G&&wr&&Ve(!1)};SL(bt,je,_e,Pr,Cr),an(function(){Pr()},[Jt,_]),an(function(){bt&&!(z!=null&&z[_])&&Pr()},[JSON.stringify(D)]);var Sn=i.useMemo(function(){var Ft=CL(z,l,Vt,G);return de(Ft,U==null?void 0:U(Vt))},[Vt,U,z,l,G]);i.useImperativeHandle(r,function(){return{nativeElement:Re.current,popupElement:Ke.current,forceAlign:Pr}});var Bt=i.useState(0),kt=me(Bt,2),ln=kt[0],Pt=kt[1],_t=i.useState(0),gn=me(_t,2),In=gn[0],Jn=gn[1],Er=function(){if(W&&je){var en=je.getBoundingClientRect();Pt(en.width),Jn(en.height)}},er=function(){Er(),Pr()},jr=function(en){Nt(!1),wn(),x==null||x(en)},dn=function(){return new Promise(function(en){Er(),At(function(){return en})})};an(function(){lt&&(wn(),lt(),At(null))},[lt]);function pt(Ft,en,or,ur){Te[Ft]=function(Ln){var Ni;ur==null||ur(Ln),Ve(en,or);for(var Mi=arguments.length,gu=new Array(Mi>1?Mi-1:0),ni=1;ni<Mi;ni++)gu[ni-1]=arguments[ni];(Ni=Oe[Ft])===null||Ni===void 0||Ni.call.apply(Ni,[Oe,Ln].concat(gu))}}(kn||wr)&&(Te.onClick=function(Ft){var en;jt.current&&wr?Ve(!1):!jt.current&&kn&&(Xt(Ft),Ve(!0));for(var or=arguments.length,ur=new Array(or>1?or-1:0),Ln=1;Ln<or;Ln++)ur[Ln-1]=arguments[Ln];(en=Oe.onClick)===null||en===void 0||en.call.apply(en,[Oe,Ft].concat(ur))});var It=$L(bt,wr,je,_e,R,I,Le,Ve),vn=Un.has("hover"),zn=Rn.has("hover"),tr,qn;vn&&(pt("onMouseEnter",!0,S,function(Ft){Xt(Ft)}),pt("onPointerEnter",!0,S,function(Ft){Xt(Ft)}),tr=function(en){(bt||Tt)&&_e!==null&&_e!==void 0&&_e.contains(en.target)&&Ve(!0,S)},G&&(Te.onMouseMove=function(Ft){var en;(en=Oe.onMouseMove)===null||en===void 0||en.call(Oe,Ft)})),zn&&(pt("onMouseLeave",!1,$),pt("onPointerLeave",!1,$),qn=function(){Ve(!1,$)}),Un.has("focus")&&pt("onFocus",!0,w),Rn.has("focus")&&pt("onBlur",!1,E),Un.has("contextMenu")&&(Te.onContextMenu=function(Ft){var en;jt.current&&Rn.has("contextMenu")?Ve(!1):(Xt(Ft),Ve(!0)),Ft.preventDefault();for(var or=arguments.length,ur=new Array(or>1?or-1:0),Ln=1;Ln<or;Ln++)ur[Ln-1]=arguments[Ln];(en=Oe.onContextMenu)===null||en===void 0||en.call.apply(en,[Oe,Ft].concat(ur))}),Y&&(Te.className=de(Oe.className,Y));var qr=i.useRef(!1);qr.current||(qr.current=M||bt||Tt);var na=ce(ce({},Oe),Te),zr={},da=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];da.forEach(function(Ft){ie[Ft]&&(zr[Ft]=function(){for(var en,or=arguments.length,ur=new Array(or),Ln=0;Ln<or;Ln++)ur[Ln]=arguments[Ln];(en=na[Ft])===null||en===void 0||en.call.apply(en,[na].concat(ur)),ie[Ft].apply(ie,ur)})});var Tl=i.cloneElement(we,ce(ce({},na),zr)),Ii={x:Dt,y:Ut},zs=Z?ce({},Z!==!0?Z:{}):null;return i.createElement(i.Fragment,null,i.createElement(ha,{disabled:!bt,ref:ze,onResize:er},i.createElement(hL,{getTriggerDOMNode:ee},Tl)),qr.current&&i.createElement(hE.Provider,{value:$e},i.createElement(pL,{portal:e,ref:Fe,prefixCls:l,popup:B,className:de(L,Sn),style:k,target:je,onMouseEnter:tr,onMouseLeave:qn,onPointerEnter:tr,zIndex:F,open:bt,keepDom:Tt,fresh:V,onClick:q,onPointerDownCapture:It,mask:R,motion:tt,maskMotion:Ct,onVisibleChanged:jr,onPrepare:dn,forceRender:M,autoDestroy:ue,getPopupContainer:O,align:Vt,arrow:zs,arrowPos:Ii,ready:St,offsetX:yt,offsetY:Ye,offsetR:Ze,offsetB:ut,onAlign:Pr,stretch:W,targetWidth:ln/gt,targetHeight:In/Mt})))});return t}const hf=EL(B1);var OL=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],jL=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"}}},RL=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,y=t.placement,x=t.builtinPlacements,S=t.dropdownMatchSelectWidth,b=t.dropdownRender,$=t.dropdownAlign,w=t.getPopupContainer,E=t.empty,R=t.getTriggerDOMNode,j=t.onPopupVisibleChange,I=t.onPopupMouseEnter,O=Lt(t,OL),M="".concat(r,"-dropdown"),N=c;b&&(N=b(c));var P=i.useMemo(function(){return x||jL(S)},[x,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]),_=f;L&&(_=ce(ce({},_),{},{width:S}));var H=i.useRef(null);return i.useImperativeHandle(n,function(){return{getPopupElement:function(){var D;return(D=H.current)===null||D===void 0?void 0:D.popupElement}}}),i.createElement(hf,Ce({},O,{showAction:j?["click"]:[],hideAction:j?["click"]:[],popupPlacement:y||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:M,popupTransitionName:B,popup:i.createElement("div",{onMouseEnter:I},N),ref:H,stretch:k,popupAlign:$,popupVisible:a,getPopupContainer:w,popupClassName:de(v,ne({},"".concat(M,"-empty"),E)),popupStyle:_,getTriggerDOMNode:R,onPopupVisibleChange:j}),l)},IL=i.forwardRef(RL);function wE(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 Ty(e){return typeof e<"u"&&!Number.isNaN(e)}function iR(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 NL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],l=iR(n,!1),c=l.label,u=l.value,d=l.options,f=l.groupLabel;function v(g,p){Array.isArray(g)&&g.forEach(function(y){if(p||!(d in y)){var x=y[u];a.push({key:wE(y,a.length),groupOption:p,data:y,label:y[c],value:x})}else{var S=y[f];S===void 0&&r&&(S=y.label),a.push({key:wE(y,a.length),group:!0,data:y,label:S}),v(y[d],!0)}})}return v(e,!1),a}function Py(e){var t=ce({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Zn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var ML=function(t,n,r){if(!n||!n.length)return null;var a=!1,l=function u(d,f){var v=a6(f),g=v[0],p=v.slice(1);if(!g)return[d];var y=d.split(g);return a=a||y.length>1,y.reduce(function(x,S){return[].concat(Me(x),Me(u(S,p)))},[]).filter(Boolean)},c=l(t,n);return a?typeof r<"u"?c.slice(0,r):c:null},V1=i.createContext(null);function TL(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(Ot(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"],zL=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],zy=function(t){return t==="tags"||t==="multiple"},lR=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,y=e.notFoundContent,x=y===void 0?"Not Found":y,S=e.onClear,b=e.mode,$=e.disabled,w=e.loading,E=e.getInputElement,R=e.getRawInputElement,j=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,_=e.onSearchSplit,H=e.tokenSeparators,z=e.allowClear,D=e.prefix,F=e.suffixIcon,W=e.clearIcon,U=e.OptionList,V=e.animation,G=e.transitionName,q=e.dropdownStyle,K=e.dropdownClassName,Z=e.dropdownMatchSelectWidth,Q=e.dropdownRender,te=e.dropdownAlign,X=e.placement,oe=e.builtinPlacements,ae=e.getPopupContainer,re=e.showAction,Y=re===void 0?[]:re,ee=e.onFocus,ie=e.onBlur,ue=e.onKeyUp,se=e.onKeyDown,pe=e.onMouseDown,fe=Lt(e,PL),he=zy(b),Se=(c!==void 0?c:he)||b==="combobox",be=ce({},fe);zL.forEach(function(Bt){delete be[Bt]}),f==null||f.forEach(function(Bt){delete be[Bt]});var $e=i.useState(!1),xe=me($e,2),ye=xe[0],Ne=xe[1];i.useEffect(function(){Ne(Pg())},[]);var _e=i.useRef(null),Qe=i.useRef(null),Ke=i.useRef(null),Fe=i.useRef(null),Xe=i.useRef(null),Pe=i.useRef(!1),je=Lk(),Ae=me(je,3),Re=Ae[0],ze=Ae[1],we=Ae[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(Pt){var _t;return(_t=Xe.current)===null||_t===void 0?void 0:_t.scrollTo(Pt)},nativeElement:_e.current||Qe.current}});var Oe=i.useMemo(function(){var Bt;if(b!=="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,b,v]),Te=b==="combobox"&&typeof E=="function"&&E()||null,Le=typeof R=="function"&&R(),tt=Ri(Qe,Le==null||(n=Le.props)===null||n===void 0?void 0:n.ref),Ct=i.useState(!1),We=me(Ct,2),nt=We[0],dt=We[1];an(function(){dt(!0)},[]);var at=Cn(!1,{defaultValue:I,value:j}),bt=me(at,2),zt=bt[0],jt=bt[1],ct=nt?zt:!1,wt=!x&&p;($||wt&&ct&&b==="combobox")&&(ct=!1);var xt=wt?!1:ct,et=i.useCallback(function(Bt){var kt=Bt!==void 0?Bt:!ct;$||(jt(kt),ct!==kt&&(O==null||O(kt)))},[$,ct,jt,O]),Ve=i.useMemo(function(){return(H||[]).some(function(Bt){return[`
|
|
233
|
-
`,`\r
|
|
234
|
-
`].includes(Bt)})},[H]),qe=i.useContext(V1)||{},mt=qe.maxCount,Tt=qe.rawValues,Nt=function(kt,ln,Pt){if(!(he&&Ty(mt)&&(Tt==null?void 0:Tt.size)>=mt)){var _t=!0,gn=kt;N==null||N(null);var In=ML(kt,H,Ty(mt)?mt-Tt.size:void 0),Jn=Pt?null:In;return b!=="combobox"&&Jn&&(gn="",_==null||_(Jn),et(!1),_t=!1),k&&Oe!==gn&&k(gn,{source:ln?"typing":"effect"}),_t}},Wt=function(kt){!kt||!kt.trim()||k(kt,{source:"submit"})};i.useEffect(function(){!ct&&!he&&b!=="combobox"&&Nt("",!1,!1)},[ct]),i.useEffect(function(){zt&&$&&jt(!1),$&&!Pe.current&&ze(!1)},[$]);var ft=Jj(),lt=me(ft,2),At=lt[0],Gt=lt[1],on=i.useRef(!1),Jt=function(kt){var ln=At(),Pt=kt.key,_t=Pt==="Enter";if(_t&&(b!=="combobox"&&kt.preventDefault(),ct||et(!0)),Gt(!!Oe),Pt==="Backspace"&&!ln&&he&&!Oe&&v.length){for(var gn=Me(v),In=null,Jn=gn.length-1;Jn>=0;Jn-=1){var Er=gn[Jn];if(!Er.disabled){gn.splice(Jn,1),In=Er;break}}In&&g(gn,{type:"remove",values:[In]})}for(var er=arguments.length,jr=new Array(er>1?er-1:0),dn=1;dn<er;dn++)jr[dn-1]=arguments[dn];if(ct&&(!_t||!on.current)){var pt;_t&&(on.current=!0),(pt=Xe.current)===null||pt===void 0||pt.onKeyDown.apply(pt,[kt].concat(jr))}se==null||se.apply(void 0,[kt].concat(jr))},pn=function(kt){for(var ln=arguments.length,Pt=new Array(ln>1?ln-1:0),_t=1;_t<ln;_t++)Pt[_t-1]=arguments[_t];if(ct){var gn;(gn=Xe.current)===null||gn===void 0||gn.onKeyUp.apply(gn,[kt].concat(Pt))}kt.key==="Enter"&&(on.current=!1),ue==null||ue.apply(void 0,[kt].concat(Pt))},Xt=function(kt){var ln=v.filter(function(Pt){return Pt!==kt});g(ln,{type:"remove",values:[kt]})},fn=function(){on.current=!1},st=i.useRef(!1),St=function(){ze(!0),$||(ee&&!st.current&&ee.apply(void 0,arguments),Y.includes("focus")&&et(!0)),st.current=!0},yt=function(){Pe.current=!0,ze(!1,function(){st.current=!1,Pe.current=!1,et(!1)}),!$&&(Oe&&(b==="tags"?k(Oe,{source:"submit"}):b==="multiple"&&k("",{source:"blur"})),ie&&ie.apply(void 0,arguments))},Ye=[];i.useEffect(function(){return function(){Ye.forEach(function(Bt){return clearTimeout(Bt)}),Ye.splice(0,Ye.length)}},[]);var Ze=function(kt){var ln,Pt=kt.target,_t=(ln=Ke.current)===null||ln===void 0?void 0:ln.getPopupElement();if(_t&&_t.contains(Pt)){var gn=setTimeout(function(){var er=Ye.indexOf(gn);if(er!==-1&&Ye.splice(er,1),we(),!ye&&!_t.contains(document.activeElement)){var jr;(jr=Fe.current)===null||jr===void 0||jr.focus()}});Ye.push(gn)}for(var In=arguments.length,Jn=new Array(In>1?In-1:0),Er=1;Er<In;Er++)Jn[Er-1]=arguments[Er];pe==null||pe.apply(void 0,[kt].concat(Jn))},ut=i.useState({}),Dt=me(ut,2),Ut=Dt[1];function gt(){Ut({})}var Mt;Le&&(Mt=function(kt){et(kt)}),Hk(function(){var Bt;return[_e.current,(Bt=Ke.current)===null||Bt===void 0?void 0:Bt.getPopupElement()]},xt,et,!!Le);var Vt=i.useMemo(function(){return ce(ce({},e),{},{notFoundContent:x,open:ct,triggerOpen:xt,id:r,showSearch:Se,multiple:he,toggleOpen:et})},[e,x,xt,ct,r,Se,he,et]),wn=!!F||w,An;wn&&(An=i.createElement(zg,{className:de("".concat(a,"-arrow"),ne({},"".concat(a,"-arrow-loading"),w)),customizeIcon:F,customizeIconProps:{loading:w,searchValue:Oe,open:ct,focused:Re,showSearch:Se}}));var Pn=function(){var kt;S==null||S(),(kt=Fe.current)===null||kt===void 0||kt.focus(),g([],{type:"clear",values:v}),Nt("",!1,!1)},Un=kk(a,Pn,v,z,W,$,Oe,b),Rn=Un.allowClear,kn=Un.clearIcon,wr=i.createElement(U,{ref:Xe}),Pr=de(a,l,ne(ne(ne(ne(ne(ne(ne(ne(ne(ne({},"".concat(a,"-focused"),Re),"".concat(a,"-multiple"),he),"".concat(a,"-single"),!he),"".concat(a,"-allow-clear"),z),"".concat(a,"-show-arrow"),wn),"".concat(a,"-disabled"),$),"".concat(a,"-loading"),w),"".concat(a,"-open"),ct),"".concat(a,"-customize-input"),Te),"".concat(a,"-show-search"),Se)),Cr=i.createElement(IL,{ref:Ke,disabled:$,prefixCls:a,visible:xt,popupElement:wr,animation:V,transitionName:G,dropdownStyle:q,dropdownClassName:K,direction:d,dropdownMatchSelectWidth:Z,dropdownRender:Q,dropdownAlign:te,placement:X,builtinPlacements:oe,getPopupContainer:ae,empty:p,getTriggerDOMNode:function(kt){return Qe.current||kt},onPopupVisibleChange:Mt,onPopupMouseEnter:gt},Le?i.cloneElement(Le,{ref:tt}):i.createElement(fL,Ce({},e,{domRef:Qe,prefixCls:a,inputElement:Te,ref:Fe,id:r,prefix:D,showSearch:Se,autoClearSearchValue:L,mode:b,activeDescendantId:P,tagRender:u,values:v,open:ct,onToggleOpen:et,activeValue:M,searchValue:Oe,onSearch:Nt,onSearchSubmit:Wt,onRemove:Xt,tokenWithEnter:Ve,onInputBlur:fn}))),Sn;return Le?Sn=Cr:Sn=i.createElement("div",Ce({className:Pr},be,{ref:_e,onMouseDown:Ze,onKeyDown:Jt,onKeyUp:pn,onFocus:St,onBlur:yt}),i.createElement(TL,{visible:Re&&!ct,values:v}),Cr,An,Rn&&kn),i.createElement(Qj.Provider,{value:Vt},Sn)}),W1=function(){return null};W1.isSelectOptGroup=!0;var K1=function(){return null};K1.isSelectOption=!0;var sR=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=ce(ce({},p),{},ne(ne(ne(ne(ne({transform:"translateY(".concat(r,"px)")},f?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),i.createElement("div",{style:g},i.createElement(ha,{onResize:function(x){var S=x.offsetHeight;S&&u&&u()}},i.createElement("div",Ce({style:p,className:de(ne({},"".concat(c,"-holder-inner"),c)),ref:t},d),l,v)))});sR.displayName="Filler";function DL(e){var t=e.children,n=e.setRef,r=i.useCallback(function(a){n(a)},[]);return i.cloneElement(t,{ref:r})}function _L(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}),y=d(f);return i.createElement(DL,{key:y,setRef:function(S){return l(f,S)}},p)})}function AL(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(x){return x!==void 0?n(x):u}for(var f=null,v=Math.abs(r-a)!==1,g=0;g<c.length;g+=1){var p=d(l[g]),y=d(c[g]);if(p!==y){f=g,v=v||p!==d(c[g+1]);break}}return f===null?null:{index:f,multiple:v}}function BL(e,t,n){var r=i.useState(e),a=me(r,2),l=a[0],c=a[1],u=i.useState(null),d=me(u,2),f=d[0],v=d[1];return i.useEffect(function(){var g=AL(l||[],e||[],t);(g==null?void 0:g.index)!==void 0&&v(e[g.index]),c(e)},[e]),[f]}var EE=(typeof navigator>"u"?"undefined":Ot(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const cR=(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 kL(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=cR(t,n,r,a);function p(w,E){if(Zt.cancel(d.current),!g(!1,E)){var R=w;if(!R._virtualHandled)R._virtualHandled=!0;else return;u.current+=E,f.current=E,EE||R.preventDefault(),d.current=Zt(function(){var j=v.current?10:1;c(u.current*j,!1),u.current=0})}}function y(w,E){c(E,!0),EE||w.preventDefault()}var x=i.useRef(null),S=i.useRef(null);function b(w){if(e){Zt.cancel(S.current),S.current=Zt(function(){x.current=null},2);var E=w.deltaX,R=w.deltaY,j=w.shiftKey,I=E,O=R;(x.current==="sx"||!x.current&&j&&R&&!E)&&(I=R,O=0,x.current="sx");var M=Math.abs(I),N=Math.abs(O);x.current===null&&(x.current=l&&M>N?"x":"y"),x.current==="y"?p(w,O):y(w,I)}}function $(w){e&&(v.current=w.detail===f.current)}return[b,$]}function LL(e,t,n,r){var a=i.useMemo(function(){return[new Map,[]]},[e,n.id,r]),l=me(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),y=c.get(g);if(p===void 0||y===void 0)for(var x=e.length,S=u.length;S<x;S+=1){var b,$=e[S],w=t($);c.set(w,S);var E=(b=n.get(w))!==null&&b!==void 0?b:r;if(u[S]=(u[S-1]||0)+E,w===v&&(p=S),w===g&&(y=S),p!==void 0&&y!==void 0)break}return{top:u[p-1]||0,bottom:u[y]}};return d}var HL=(function(){function e(){gr(this,e),ne(this,"maps",void 0),ne(this,"id",0),ne(this,"diffRecords",new Map),this.maps=Object.create(null)}return pr(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 OE(e){var t=parseFloat(e);return isNaN(t)?0:t}function FL(e,t,n){var r=i.useState(0),a=me(r,2),l=a[0],c=a[1],u=i.useRef(new Map),d=i.useRef(new HL),f=i.useRef(0);function v(){f.current+=1}function g(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;v();var x=function(){var $=!1;u.current.forEach(function(w,E){if(w&&w.offsetParent){var R=w.offsetHeight,j=getComputedStyle(w),I=j.marginTop,O=j.marginBottom,M=OE(I),N=OE(O),P=R+M+N;d.current.get(E)!==P&&(d.current.set(E,P),$=!0)}}),$&&c(function(w){return w+1})};if(y)x();else{f.current+=1;var S=f.current;Promise.resolve().then(function(){S===f.current&&x()})}}function p(y,x){var S=e(y);u.current.get(S),x?(u.current.set(S,x),g()):u.current.delete(S)}return i.useEffect(function(){return v},[]),[p,g,d.current,l]}var jE=14/15;function VL(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(y){if(r.current){var x=Math.ceil(y.touches[0].pageX),S=Math.ceil(y.touches[0].pageY),b=a.current-x,$=l.current-S,w=Math.abs(b)>Math.abs($);w?a.current=x:l.current=S;var E=n(w,w?b:$,!1,y);E&&y.preventDefault(),clearInterval(u.current),E&&(u.current=setInterval(function(){w?b*=jE:$*=jE;var R=Math.floor(w?b:$);(!n(w,R,!0)||Math.abs(R)<=.1)&&clearInterval(u.current)},16))}},v=function(){r.current=!1,d()},g=function(y){d(),y.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(y.touches[0].pageX),l.current=Math.ceil(y.touches[0].pageY),c.current=y.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))},an(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 RE(e){return Math.floor(Math.pow(e,.5))}function Dy(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function WL(e,t,n){i.useEffect(function(){var r=t.current;if(e&&r){var a=!1,l,c,u=function(){Zt.cancel(l)},d=function p(){u(),l=Zt(function(){n(c),p()})},f=function(){a=!1,u()},v=function(y){if(!(y.target.draggable||y.button!==0)){var x=y;x._virtualHandled||(x._virtualHandled=!0,a=!0)}},g=function(y){if(a){var x=Dy(y,!1),S=r.getBoundingClientRect(),b=S.top,$=S.bottom;if(x<=b){var w=b-x;c=-RE(w),d()}else if(x>=$){var E=x-$;c=RE(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 KL=10;function UL(e,t,n,r,a,l,c,u){var d=i.useRef(),f=i.useState(null),v=me(f,2),g=v[0],p=v[1];return an(function(){if(g&&g.times<KL){if(!e.current){p(function(W){return ce({},W)});return}l();var y=g.targetAlign,x=g.originAlign,S=g.index,b=g.offset,$=e.current.clientHeight,w=!1,E=y,R=null;if($){for(var j=y||x,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=j==="top"?b:$-b,_=N;_>=0;_-=1){var H=a(t[_]),z=n.get(H);if(z===void 0){w=!0;break}if(k-=z,k<=0)break}switch(j){case"top":R=O-b;break;case"bottom":R=M-$+b;break;default:{var D=e.current.scrollTop,F=D+$;O<D?E="top":M>F&&(E="bottom")}}R!==null&&c(R),R!==g.lastTop&&(w=!0)}w&&p(ce(ce({},g),{},{times:g.times+1,targetAlign:E,lastTop:R}))}},[g,e.current]),function(y){if(y==null){u();return}if(Zt.cancel(d.current),typeof y=="number")c(y);else if(y&&Ot(y)==="object"){var x,S=y.align;"index"in y?x=y.index:x=t.findIndex(function(w){return a(w)===y.key});var b=y.offset,$=b===void 0?0:b;p({times:0,index:x,offset:$,originAlign:S})}}}var IE=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,y=e.thumbStyle,x=e.showScrollBar,S=i.useState(!1),b=me(S,2),$=b[0],w=b[1],E=i.useState(null),R=me(E,2),j=R[0],I=R[1],O=i.useState(null),M=me(O,2),N=M[0],P=M[1],B=!r,L=i.useRef(),k=i.useRef(),_=i.useState(x),H=me(_,2),z=H[0],D=H[1],F=i.useRef(),W=function(){x===!0||x===!1||(clearTimeout(F.current),D(!0),F.current=setTimeout(function(){D(!1)},3e3))},U=l-g||0,V=g-v||0,G=i.useMemo(function(){if(a===0||U===0)return 0;var re=a/U;return re*V},[a,U,V]),q=function(Y){Y.stopPropagation(),Y.preventDefault()},K=i.useRef({top:G,dragging:$,pageY:j,startTop:N});K.current={top:G,dragging:$,pageY:j,startTop:N};var Z=function(Y){w(!0),I(Dy(Y,f)),P(K.current.top),c(),Y.stopPropagation(),Y.preventDefault()};i.useEffect(function(){var re=function(ue){ue.preventDefault()},Y=L.current,ee=k.current;return Y.addEventListener("touchstart",re,{passive:!1}),ee.addEventListener("touchstart",Z,{passive:!1}),function(){Y.removeEventListener("touchstart",re),ee.removeEventListener("touchstart",Z)}},[]);var Q=i.useRef();Q.current=U;var te=i.useRef();te.current=V,i.useEffect(function(){if($){var re,Y=function(ue){var se=K.current,pe=se.dragging,fe=se.pageY,he=se.startTop;Zt.cancel(re);var Se=L.current.getBoundingClientRect(),be=g/(f?Se.width:Se.height);if(pe){var $e=(Dy(ue,f)-fe)*be,xe=he;!B&&f?xe-=$e:xe+=$e;var ye=Q.current,Ne=te.current,_e=Ne?xe/Ne:0,Qe=Math.ceil(_e*ye);Qe=Math.max(Qe,0),Qe=Math.min(Qe,ye),re=Zt(function(){d(Qe,f)})}},ee=function(){w(!1),u()};return window.addEventListener("mousemove",Y,{passive:!0}),window.addEventListener("touchmove",Y,{passive:!0}),window.addEventListener("mouseup",ee,{passive:!0}),window.addEventListener("touchend",ee,{passive:!0}),function(){window.removeEventListener("mousemove",Y),window.removeEventListener("touchmove",Y),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),Zt.cancel(re)}}},[$]),i.useEffect(function(){return W(),function(){clearTimeout(F.current)}},[a]),i.useImperativeHandle(t,function(){return{delayHidden:W}});var X="".concat(n,"-scrollbar"),oe={position:"absolute",visibility:z?null:"hidden"},ae={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(oe,{height:8,left:0,right:0,bottom:0}),Object.assign(ae,ne({height:"100%",width:v},B?"left":"right",G))):(Object.assign(oe,ne({width:8,top:0,bottom:0},B?"right":"left",0)),Object.assign(ae,{width:"100%",height:v,top:G})),i.createElement("div",{ref:L,className:de(X,ne(ne(ne({},"".concat(X,"-horizontal"),f),"".concat(X,"-vertical"),!f),"".concat(X,"-visible"),z)),style:ce(ce({},oe),p),onMouseDown:q,onMouseMove:W},i.createElement("div",{ref:k,className:de("".concat(X,"-thumb"),ne({},"".concat(X,"-thumb-moving"),$)),style:ce(ce({},ae),y),onMouseDown:Z}))}),qL=20;function NE(){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,qL),Math.floor(n)}var GL=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],XL=[],YL={overflowY:"auto",overflowAnchor:"none"};function QL(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,y=e.virtual,x=e.direction,S=e.scrollWidth,b=e.component,$=b===void 0?"div":b,w=e.onScroll,E=e.onVirtualScroll,R=e.onVisibleChange,j=e.innerProps,I=e.extraRender,O=e.styles,M=e.showScrollBar,N=M===void 0?"optional":M,P=Lt(e,GL),B=i.useCallback(function(st){return typeof p=="function"?p(st):st==null?void 0:st[p]},[p]),L=FL(B),k=me(L,4),_=k[0],H=k[1],z=k[2],D=k[3],F=!!(y!==!1&&l&&c),W=i.useMemo(function(){return Object.values(z.maps).reduce(function(st,St){return st+St},0)},[z.id,z.maps]),U=F&&v&&(Math.max(c*v.length,W)>l||!!S),V=x==="rtl",G=de(r,ne({},"".concat(r,"-rtl"),V),a),q=v||XL,K=i.useRef(),Z=i.useRef(),Q=i.useRef(),te=i.useState(0),X=me(te,2),oe=X[0],ae=X[1],re=i.useState(0),Y=me(re,2),ee=Y[0],ie=Y[1],ue=i.useState(!1),se=me(ue,2),pe=se[0],fe=se[1],he=function(){fe(!0)},Se=function(){fe(!1)},be={getKey:B};function $e(st){ae(function(St){var yt;typeof st=="function"?yt=st(St):yt=st;var Ye=dt(yt);return K.current.scrollTop=Ye,Ye})}var xe=i.useRef({start:0,end:q.length}),ye=i.useRef(),Ne=BL(q,B),_e=me(Ne,1),Qe=_e[0];ye.current=Qe;var Ke=i.useMemo(function(){if(!F)return{scrollHeight:void 0,start:0,end:q.length-1,offset:void 0};if(!U){var st;return{scrollHeight:((st=Z.current)===null||st===void 0?void 0:st.offsetHeight)||0,start:0,end:q.length-1,offset:void 0}}for(var St=0,yt,Ye,Ze,ut=q.length,Dt=0;Dt<ut;Dt+=1){var Ut=q[Dt],gt=B(Ut),Mt=z.get(gt),Vt=St+(Mt===void 0?c:Mt);Vt>=oe&&yt===void 0&&(yt=Dt,Ye=St),Vt>oe+l&&Ze===void 0&&(Ze=Dt),St=Vt}return yt===void 0&&(yt=0,Ye=0,Ze=Math.ceil(l/c)),Ze===void 0&&(Ze=q.length-1),Ze=Math.min(Ze+1,q.length-1),{scrollHeight:St,start:yt,end:Ze,offset:Ye}},[U,F,oe,q,D,l]),Fe=Ke.scrollHeight,Xe=Ke.start,Pe=Ke.end,je=Ke.offset;xe.current.start=Xe,xe.current.end=Pe,i.useLayoutEffect(function(){var st=z.getRecord();if(st.size===1){var St=Array.from(st.keys())[0],yt=st.get(St),Ye=q[Xe];if(Ye&&yt===void 0){var Ze=B(Ye);if(Ze===St){var ut=z.get(St),Dt=ut-c;$e(function(Ut){return Ut+Dt})}}}z.resetRecord()},[Fe]);var Ae=i.useState({width:0,height:l}),Re=me(Ae,2),ze=Re[0],we=Re[1],Oe=function(St){we({width:St.offsetWidth,height:St.offsetHeight})},Te=i.useRef(),Le=i.useRef(),tt=i.useMemo(function(){return NE(ze.width,S)},[ze.width,S]),Ct=i.useMemo(function(){return NE(ze.height,Fe)},[ze.height,Fe]),We=Fe-l,nt=i.useRef(We);nt.current=We;function dt(st){var St=st;return Number.isNaN(nt.current)||(St=Math.min(St,nt.current)),St=Math.max(St,0),St}var at=oe<=0,bt=oe>=We,zt=ee<=0,jt=ee>=S,ct=cR(at,bt,zt,jt),wt=function(){return{x:V?-ee:ee,y:oe}},xt=i.useRef(wt()),et=Qt(function(st){if(E){var St=ce(ce({},wt()),st);(xt.current.x!==St.x||xt.current.y!==St.y)&&(E(St),xt.current=St)}});function Ve(st,St){var yt=st;St?(vo.flushSync(function(){ie(yt)}),et()):$e(yt)}function qe(st){var St=st.currentTarget.scrollTop;St!==oe&&$e(St),w==null||w(st),et()}var mt=function(St){var yt=St,Ye=S?S-ze.width:0;return yt=Math.max(yt,0),yt=Math.min(yt,Ye),yt},Tt=Qt(function(st,St){St?(vo.flushSync(function(){ie(function(yt){var Ye=yt+(V?-st:st);return mt(Ye)})}),et()):$e(function(yt){var Ye=yt+st;return Ye})}),Nt=kL(F,at,bt,zt,jt,!!S,Tt),Wt=me(Nt,2),ft=Wt[0],lt=Wt[1];VL(F,K,function(st,St,yt,Ye){var Ze=Ye;return ct(st,St,yt)?!1:!Ze||!Ze._virtualHandled?(Ze&&(Ze._virtualHandled=!0),ft({preventDefault:function(){},deltaX:st?St:0,deltaY:st?0:St}),!0):!1}),WL(U,K,function(st){$e(function(St){return St+st})}),an(function(){function st(yt){var Ye=at&&yt.detail<0,Ze=bt&&yt.detail>0;F&&!Ye&&!Ze&&yt.preventDefault()}var St=K.current;return St.addEventListener("wheel",ft,{passive:!1}),St.addEventListener("DOMMouseScroll",lt,{passive:!0}),St.addEventListener("MozMousePixelScroll",st,{passive:!1}),function(){St.removeEventListener("wheel",ft),St.removeEventListener("DOMMouseScroll",lt),St.removeEventListener("MozMousePixelScroll",st)}},[F,at,bt]),an(function(){if(S){var st=mt(ee);ie(st),et({x:st})}},[ze.width,S]);var At=function(){var St,yt;(St=Te.current)===null||St===void 0||St.delayHidden(),(yt=Le.current)===null||yt===void 0||yt.delayHidden()},Gt=UL(K,q,z,c,B,function(){return H(!0)},$e,At);i.useImperativeHandle(t,function(){return{nativeElement:Q.current,getScrollInfo:wt,scrollTo:function(St){function yt(Ye){return Ye&&Ot(Ye)==="object"&&("left"in Ye||"top"in Ye)}yt(St)?(St.left!==void 0&&ie(mt(St.left)),Gt(St.top)):Gt(St)}}}),an(function(){if(R){var st=q.slice(Xe,Pe+1);R(st,q)}},[Xe,Pe,q]);var on=LL(q,B,z,c),Jt=I==null?void 0:I({start:Xe,end:Pe,virtual:U,offsetX:ee,offsetY:je,rtl:V,getSize:on}),pn=_L(q,Xe,Pe,S,ee,_,g,be),Xt=null;l&&(Xt=ce(ne({},d?"height":"maxHeight",l),YL),F&&(Xt.overflowY="hidden",S&&(Xt.overflowX="hidden"),pe&&(Xt.pointerEvents="none")));var fn={};return V&&(fn.dir="rtl"),i.createElement("div",Ce({ref:Q,style:ce(ce({},f),{},{position:"relative"}),className:G},fn,P),i.createElement(ha,{onResize:Oe},i.createElement($,{className:"".concat(r,"-holder"),style:Xt,ref:K,onScroll:qe,onMouseEnter:At},i.createElement(sR,{prefixCls:r,height:Fe,offsetX:ee,offsetY:je,scrollWidth:S,onInnerResize:H,ref:Z,innerProps:j,rtl:V,extra:Jt},pn))),U&&Fe>l&&i.createElement(IE,{ref:Te,prefixCls:r,scrollOffset:oe,scrollRange:Fe,rtl:V,onScroll:Ve,onStartMove:he,onStopMove:Se,spinSize:Ct,containerSize:ze.height,style:O==null?void 0:O.verticalScrollBar,thumbStyle:O==null?void 0:O.verticalScrollBarThumb,showScrollBar:N}),U&&S>ze.width&&i.createElement(IE,{ref:Le,prefixCls:r,scrollOffset:ee,scrollRange:S,rtl:V,onScroll:Ve,onStartMove:he,onStopMove:Se,spinSize:tt,containerSize:ze.width,horizontal:!0,style:O==null?void 0:O.horizontalScrollBar,thumbStyle:O==null?void 0:O.horizontalScrollBarThumb,showScrollBar:N}))}var Dg=i.forwardRef(QL);Dg.displayName="List";function ZL(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var JL=["disabled","title","children","style","className"];function ME(e){return typeof e=="string"||typeof e=="number"}var eH=function(t,n){var r=Zj(),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,y=i.useContext(V1),x=y.maxCount,S=y.flattenOptions,b=y.onActiveValue,$=y.defaultActiveFirstOption,w=y.onSelect,E=y.menuItemSelectedIcon,R=y.rawValues,j=y.fieldNames,I=y.virtual,O=y.direction,M=y.listHeight,N=y.listItemHeight,P=y.optionRender,B="".concat(a,"-item"),L=Ss(function(){return S},[c,S],function(re,Y){return Y[0]&&re[1]!==Y[1]}),k=i.useRef(null),_=i.useMemo(function(){return u&&Ty(x)&&(R==null?void 0:R.size)>=x},[u,x,R==null?void 0:R.size]),H=function(Y){Y.preventDefault()},z=function(Y){var ee;(ee=k.current)===null||ee===void 0||ee.scrollTo(typeof Y=="number"?{index:Y}:Y)},D=i.useCallback(function(re){return d==="combobox"?!1:R.has(re)},[d,Me(R).toString(),R.size]),F=function(Y){for(var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ie=L.length,ue=0;ue<ie;ue+=1){var se=(Y+ue*ee+ie)%ie,pe=L[se]||{},fe=pe.group,he=pe.data;if(!fe&&!(he!=null&&he.disabled)&&(D(he.value)||!_))return se}return-1},W=i.useState(function(){return F(0)}),U=me(W,2),V=U[0],G=U[1],q=function(Y){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;G(Y);var ie={source:ee?"keyboard":"mouse"},ue=L[Y];if(!ue){b(null,-1,ie);return}b(ue.value,Y,ie)};i.useEffect(function(){q($!==!1?F(0):-1)},[L.length,f]);var K=i.useCallback(function(re){return d==="combobox"?String(re).toLowerCase()===f.toLowerCase():R.has(re)},[d,f,Me(R).toString(),R.size]);i.useEffect(function(){var re=setTimeout(function(){if(!u&&c&&R.size===1){var ee=Array.from(R)[0],ie=L.findIndex(function(ue){var se=ue.data;return f?String(se.value).startsWith(f):se.value===ee});ie!==-1&&(q(ie),z(ie))}});if(c){var Y;(Y=k.current)===null||Y===void 0||Y.scrollTo(void 0)}return function(){return clearTimeout(re)}},[c,f]);var Z=function(Y){Y!==void 0&&w(Y,{selected:!R.has(Y)}),u||v(!1)};if(i.useImperativeHandle(n,function(){return{onKeyDown:function(Y){var ee=Y.which,ie=Y.ctrlKey;switch(ee){case ot.N:case ot.P:case ot.UP:case ot.DOWN:{var ue=0;if(ee===ot.UP?ue=-1:ee===ot.DOWN?ue=1:ZL()&&ie&&(ee===ot.N?ue=1:ee===ot.P&&(ue=-1)),ue!==0){var se=F(V+ue,ue);z(se),q(se,!0)}break}case ot.TAB:case ot.ENTER:{var pe,fe=L[V];fe&&!(fe!=null&&(pe=fe.data)!==null&&pe!==void 0&&pe.disabled)&&!_?Z(fe.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(j).map(function(re){return j[re]}),te=function(Y){return Y.label};function X(re,Y){var ee=re.group;return{role:ee?"presentation":"option",id:"".concat(l,"_list_").concat(Y)}}var oe=function(Y){var ee=L[Y];if(!ee)return null;var ie=ee.data||{},ue=ie.value,se=ee.group,pe=Nr(ie,!0),fe=te(ee);return ee?i.createElement("div",Ce({"aria-label":typeof fe=="string"&&!se?fe:null},pe,{key:Y},X(ee,Y),{"aria-selected":K(ue)}),ue):null},ae={role:"listbox",id:"".concat(l,"_list")};return i.createElement(i.Fragment,null,I&&i.createElement("div",Ce({},ae,{style:{height:0,width:0,overflow:"hidden"}}),oe(V-1),oe(V),oe(V+1)),i.createElement(Dg,{itemKey:"key",ref:k,data:L,height:M,itemHeight:N,fullHeight:!1,onMouseDown:H,onScroll:p,virtual:I,direction:O,innerProps:I?null:ae},function(re,Y){var ee=re.group,ie=re.groupOption,ue=re.data,se=re.label,pe=re.value,fe=ue.key;if(ee){var he,Se=(he=ue.title)!==null&&he!==void 0?he:ME(se)?se.toString():void 0;return i.createElement("div",{className:de(B,"".concat(B,"-group"),ue.className),title:Se},se!==void 0?se:fe)}var be=ue.disabled,$e=ue.title;ue.children;var xe=ue.style,ye=ue.className,Ne=Lt(ue,JL),_e=En(Ne,Q),Qe=D(pe),Ke=be||!Qe&&_,Fe="".concat(B,"-option"),Xe=de(B,Fe,ye,ne(ne(ne(ne({},"".concat(Fe,"-grouped"),ie),"".concat(Fe,"-active"),V===Y&&!Ke),"".concat(Fe,"-disabled"),Ke),"".concat(Fe,"-selected"),Qe)),Pe=te(re),je=!E||typeof E=="function"||Qe,Ae=typeof Pe=="number"?Pe:Pe||pe,Re=ME(Ae)?Ae.toString():void 0;return $e!==void 0&&(Re=$e),i.createElement("div",Ce({},Nr(_e),I?{}:X(re,Y),{"aria-selected":K(pe),className:Xe,title:Re,onMouseMove:function(){V===Y||Ke||q(Y)},onClick:function(){Ke||Z(pe)},style:xe}),i.createElement("div",{className:"".concat(Fe,"-content")},typeof P=="function"?P(re,{index:Y}):Ae),i.isValidElement(E)||Qe,je&&i.createElement(zg,{className:"".concat(B,"-option-state"),customizeIcon:E,customizeIconProps:{value:pe,disabled:Ke,isSelected:Qe}},Qe?"✓":null))}))},tH=i.forwardRef(eH);const nH=(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 ce(ce({},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 F0(e,t){return aR(e).join("").toUpperCase().includes(t)}const rH=(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(y,x){return a?F0(x[a],v):x[l]?F0(x[c!=="children"?c:"label"],v):F0(x[u],v)},p=f?function(y){return Py(y)}:function(y){return y};return e.forEach(function(y){if(y[l]){var x=g(n,p(y));if(x)d.push(y);else{var S=y[l].filter(function(b){return g(n,p(b))});S.length&&d.push(ce(ce({},y),{},ne({},l,S)))}return}g(n,p(y))&&d.push(y)}),d},[e,r,a,n,t])});var TE=0,aH=sa();function oH(){var e;return aH?(e=TE,TE+=1):e="TEST_OR_SSR",e}function uR(e){var t=i.useState(),n=me(t,2),r=n[0],a=n[1];return i.useEffect(function(){a("rc_select_".concat(oH()))},[]),e||r}var iH=["children","value"],lH=["children"];function sH(e){var t=e,n=t.key,r=t.props,a=r.children,l=r.value,c=Lt(r,iH);return ce({key:n,value:l!==void 0?l:n,children:a},c)}function dR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Jr(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,lH);return t||!l?sH(n):ce(ce({key:"__RC_SELECT_GRP__".concat(c===null?r:c,"__"),label:c},f),{},{options:dR(d)})}).filter(function(n){return n})}var cH=function(t,n,r,a,l){return i.useMemo(function(){var c=t,u=!t;u&&(c=dR(n));var d=new Map,f=new Map,v=function(y,x,S){S&&typeof S=="string"&&y.set(x[S],x)},g=function p(y){for(var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=0;S<y.length;S+=1){var b=y[S];!b[r.options]||x?(d.set(b[r.value],b),v(f,b,r.label),v(f,b,a),v(f,b,l)):p(b[r.options],!0)}};return g(c),{options:c,valueOptions:d,labelOptions:f}},[t,n,r,a,l])};function PE(e){var t=i.useRef();t.current=e;var n=i.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var uH=["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"],dH=["inputValue"];function fH(e){return!e||Ot(e)!=="object"}var mH=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,y=e.onSelect,x=e.onDeselect,S=e.dropdownMatchSelectWidth,b=S===void 0?!0:S,$=e.filterOption,w=e.filterSort,E=e.optionFilterProp,R=e.optionLabelProp,j=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,_=e.listItemHeight,H=_===void 0?20:_,z=e.labelRender,D=e.value,F=e.defaultValue,W=e.labelInValue,U=e.onChange,V=e.maxCount,G=Lt(e,uH),q=uR(n),K=zy(r),Z=!!(!j&&O),Q=i.useMemo(function(){return $===void 0&&r==="combobox"?!1:$},[$,r]),te=i.useMemo(function(){return iR(u,Z)},[JSON.stringify(u),Z]),X=Cn("",{value:f!==void 0?f:d,postState:function(Ve){return Ve||""}}),oe=me(X,2),ae=oe[0],re=oe[1],Y=cH(j,O,te,E,R),ee=Y.valueOptions,ie=Y.labelOptions,ue=Y.options,se=i.useCallback(function(et){var Ve=aR(et);return Ve.map(function(qe){var mt,Tt,Nt,Wt,ft;if(fH(qe))mt=qe;else{var lt;Nt=qe.key,Tt=qe.label,mt=(lt=qe.value)!==null&<!==void 0?lt:Nt}var At=ee.get(mt);if(At){var Gt;Tt===void 0&&(Tt=At==null?void 0:At[R||te.label]),Nt===void 0&&(Nt=(Gt=At==null?void 0:At.key)!==null&&Gt!==void 0?Gt:mt),Wt=At==null?void 0:At.disabled,ft=At==null?void 0:At.title}return{label:Tt,value:mt,key:Nt,disabled:Wt,title:ft}})},[te,R,ee]),pe=Cn(F,{value:D}),fe=me(pe,2),he=fe[0],Se=fe[1],be=i.useMemo(function(){var et,Ve=K&&he===null?[]:he,qe=se(Ve);return r==="combobox"&&iL((et=qe[0])===null||et===void 0?void 0:et.value)?[]:qe},[he,se,r,K]),$e=nH(be,ee),xe=me($e,2),ye=xe[0],Ne=xe[1],_e=i.useMemo(function(){if(!r&&ye.length===1){var et=ye[0];if(et.value===null&&(et.label===null||et.label===void 0))return[]}return ye.map(function(Ve){var qe;return ce(ce({},Ve),{},{label:(qe=typeof z=="function"?z(Ve):Ve.label)!==null&&qe!==void 0?qe:Ve.value})})},[r,ye,z]),Qe=i.useMemo(function(){return new Set(ye.map(function(et){return et.value}))},[ye]);i.useEffect(function(){if(r==="combobox"){var et,Ve=(et=ye[0])===null||et===void 0?void 0:et.value;re(oL(Ve)?String(Ve):"")}},[ye]);var Ke=PE(function(et,Ve){var qe=Ve??et;return ne(ne({},te.value,et),te.label,qe)}),Fe=i.useMemo(function(){if(r!=="tags")return ue;var et=Me(ue),Ve=function(mt){return ee.has(mt)};return Me(ye).sort(function(qe,mt){return qe.value<mt.value?-1:1}).forEach(function(qe){var mt=qe.value;Ve(mt)||et.push(Ke(mt,qe.label))}),et},[Ke,ue,ee,ye,r]),Xe=rH(Fe,te,ae,Q,E),Pe=i.useMemo(function(){return r!=="tags"||!ae||Xe.some(function(et){return et[E||"value"]===ae})||Xe.some(function(et){return et[te.value]===ae})?Xe:[Ke(ae)].concat(Me(Xe))},[Ke,E,r,Xe,ae,te]),je=function et(Ve){var qe=Me(Ve).sort(function(mt,Tt){return w(mt,Tt,{searchValue:ae})});return qe.map(function(mt){return Array.isArray(mt.options)?ce(ce({},mt),{},{options:mt.options.length>0?et(mt.options):mt.options}):mt})},Ae=i.useMemo(function(){return w?je(Pe):Pe},[Pe,w,ae]),Re=i.useMemo(function(){return NL(Ae,{fieldNames:te,childrenAsData:Z})},[Ae,te,Z]),ze=function(Ve){var qe=se(Ve);if(Se(qe),U&&(qe.length!==ye.length||qe.some(function(Nt,Wt){var ft;return((ft=ye[Wt])===null||ft===void 0?void 0:ft.value)!==(Nt==null?void 0:Nt.value)}))){var mt=W?qe:qe.map(function(Nt){return Nt.value}),Tt=qe.map(function(Nt){return Py(Ne(Nt.value))});U(K?mt:mt[0],K?Tt:Tt[0])}},we=i.useState(null),Oe=me(we,2),Te=Oe[0],Le=Oe[1],tt=i.useState(0),Ct=me(tt,2),We=Ct[0],nt=Ct[1],dt=M!==void 0?M:r!=="combobox",at=i.useCallback(function(et,Ve){var qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},mt=qe.source,Tt=mt===void 0?"keyboard":mt;nt(Ve),c&&r==="combobox"&&et!==null&&Tt==="keyboard"&&Le(String(et))},[c,r]),bt=function(Ve,qe,mt){var Tt=function(){var Xt,fn=Ne(Ve);return[W?{label:fn==null?void 0:fn[te.label],value:Ve,key:(Xt=fn==null?void 0:fn.key)!==null&&Xt!==void 0?Xt:Ve}:Ve,Py(fn)]};if(qe&&y){var Nt=Tt(),Wt=me(Nt,2),ft=Wt[0],lt=Wt[1];y(ft,lt)}else if(!qe&&x&&mt!=="clear"){var At=Tt(),Gt=me(At,2),on=Gt[0],Jt=Gt[1];x(on,Jt)}},zt=PE(function(et,Ve){var qe,mt=K?Ve.selected:!0;mt?qe=K?[].concat(Me(ye),[et]):[et]:qe=ye.filter(function(Tt){return Tt.value!==et}),ze(qe),bt(et,mt),r==="combobox"?Le(""):(!zy||p)&&(re(""),Le(""))}),jt=function(Ve,qe){ze(Ve);var mt=qe.type,Tt=qe.values;(mt==="remove"||mt==="clear")&&Tt.forEach(function(Nt){bt(Nt.value,!1,mt)})},ct=function(Ve,qe){if(re(Ve),Le(null),qe.source==="submit"){var mt=(Ve||"").trim();if(mt){var Tt=Array.from(new Set([].concat(Me(Qe),[mt])));ze(Tt),bt(mt,!0),re("")}return}qe.source!=="blur"&&(r==="combobox"&&ze(Ve),v==null||v(Ve))},wt=function(Ve){var qe=Ve;r!=="tags"&&(qe=Ve.map(function(Tt){var Nt=ie.get(Tt);return Nt==null?void 0:Nt.value}).filter(function(Tt){return Tt!==void 0}));var mt=Array.from(new Set([].concat(Me(Qe),Me(qe))));ze(mt),mt.forEach(function(Tt){bt(Tt,!0)})},xt=i.useMemo(function(){var et=P!==!1&&b!==!1;return ce(ce({},Y),{},{flattenOptions:Re,onActiveValue:at,defaultActiveFirstOption:dt,onSelect:zt,menuItemSelectedIcon:N,rawValues:Qe,fieldNames:te,virtual:et,direction:B,listHeight:k,listItemHeight:H,childrenAsData:Z,maxCount:V,optionRender:I})},[V,Y,Re,at,dt,zt,N,Qe,te,P,b,B,k,H,Z,I]);return i.createElement(V1.Provider,{value:xt},i.createElement(lR,Ce({},G,{id:q,prefixCls:l,ref:t,omitDomProps:dH,mode:r,displayValues:_e,onDisplayValuesChange:jt,direction:B,searchValue:ae,onSearch:ct,autoClearSearchValue:p,onSearchSplit:wt,dropdownMatchSelectWidth:b,OptionList:tH,emptyOptions:!Re.length,activeValue:Te,activeDescendantId:"".concat(q,"_list_").concat(We)})))}),U1=mH;U1.Option=K1;U1.OptGroup=W1;function Ei(e,t,n){return de({[`${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 Rl=(e,t)=>t||e,vH=()=>{const[,e]=ua(),[t]=Aa("Empty"),r=new bn(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"}))))},gH=()=>{const[,e]=ua(),[t]=Aa("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:l}=e,{borderColor:c,shadowColor:u,contentColor:d}=i.useMemo(()=>({borderColor:new bn(n).onBackground(l).toHexString(),shadowColor:new bn(r).onBackground(l).toHexString(),contentColor:new bn(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}))))},pH=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}}}}},hH=un("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=rn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return pH(a)});var bH=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 fR=i.createElement(vH,null),mR=i.createElement(gH,null),Bn=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=bH(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:y,direction:x,className:S,style:b,classNames:$,styles:w,image:E}=hr("empty"),R=y("empty",a),[j,I,O]=hH(R),[M]=Aa("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:fR;let L=null;return typeof B=="string"?L=i.createElement("img",{draggable:!1,alt:P,src:B}):L=B,j(i.createElement("div",Object.assign({className:de(I,O,R,S,{[`${R}-normal`]:B===mR,[`${R}-rtl`]:x==="rtl"},n,r,$.root,v==null?void 0:v.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),b),g==null?void 0:g.root),f)},p),i.createElement("div",{className:de(`${R}-image`,$.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:de(`${R}-description`,$.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:de(`${R}-footer`,$.footer,v==null?void 0:v.footer),style:Object.assign(Object.assign({},w.footer),g==null?void 0:g.footer)},u)))};Bn.PRESENTED_IMAGE_DEFAULT=fR;Bn.PRESENTED_IMAGE_SIMPLE=mR;const bf=e=>{const{componentName:t}=e,{getPrefixCls:n}=i.useContext(Rt),r=n("empty");switch(t){case"Table":case"List":return ge.createElement(Bn,{image:Bn.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ge.createElement(Bn,{image:Bn.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ge.createElement(Bn,null)}},Il=(e,t,n)=>{var r,a;const{variant:l,[e]:c}=i.useContext(Rt),u=i.useContext(Ij),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=Az.includes(f);return[f,v]},yH=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 vR(e,t){return e||yH(t)}const zE=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"}},CH=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({},mn(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:xg},[`
|
|
238
|
-
${a}${u}topLeft,
|
|
239
|
-
${l}${u}topLeft,
|
|
240
|
-
${a}${u}topRight,
|
|
241
|
-
${l}${u}topRight
|
|
242
|
-
`]:{animationName:$g},[`${c}${u}bottomLeft`]:{animationName:Sg},[`
|
|
243
|
-
${c}${u}topLeft,
|
|
244
|
-
${c}${u}topRight
|
|
245
|
-
`]:{animationName:wg},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},zE(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"},Qa),"&-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({},zE(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"),Hc(e,"move-up"),Hc(e,"move-down")]},gR=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:le(t),itemLineHeight:le(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},xH=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},pR=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({},$s()),{display:"inline-flex",alignItems:"center",color:d,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:f}})}}}},SH=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,l=e.multipleSelectItemHeight,c=xH(e),u=t?`${n}-${t}`:"",d=gR(e);return{[`${n}-multiple${u}`]:Object.assign(Object.assign({},pR(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:`${le(r)} 0`,lineHeight:le(l),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:d.itemHeight,lineHeight:le(d.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:le(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:le(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 V0(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[SH(e,t),a]}const $H=e=>{const{componentCls:t}=e,n=rn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=rn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[V0(e),V0(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},V0(r,"lg")]};function W0(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({},mn(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:le(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:le(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 ${le(r)}`,[`${n}-selection-search-input`]:{height:l,fontSize:e.fontSize},"&:after":{lineHeight:le(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 ${le(r)}`,"&:after":{display:"none"}}}}}}}function wH(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[W0(e),W0(rn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${le(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()}}}},W0(rn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const EH=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:y,colorBgContainer:x,colorFillSecondary:S,colorBgContainerDisabled:b,colorTextDisabled:$,colorPrimaryHover:w,colorPrimary:E,controlOutline:R}=e,j=u*2,I=r*2,O=Math.min(a-j,a-I),M=Math.min(l-j,l-I),N=Math.min(c-j,c-I);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(u/2),zIndexPopup:f+50,optionSelectedColor:v,optionSelectedFontWeight:g,optionSelectedBg:p,optionActiveBg:y,optionPadding:`${(a-t*n)/2}px ${d}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:x,clearBg:x,singleItemHeightLG:c,multipleItemBg:S,multipleItemBorderColor:"transparent",multipleItemHeight:O,multipleItemHeightSM:M,multipleItemHeightLG:N,multipleSelectorBgDisabled:b,multipleItemColorDisabled:$,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:w,activeBorderColor:E,activeOutlineColor:R,selectAffixPadding:u}},hR=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${le(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 ${le(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},DE=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},hR(e,t))}),OH=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},hR(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),DE(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),DE(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:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),bR=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${le(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}}}},_E=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},bR(e,t))}),jH=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},bR(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),_E(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),_E(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:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),RH=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${le(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:`${le(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}}}}),yR=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${le(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}}}},AE=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},yR(e,t))}),IH=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},yR(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),AE(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),AE(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:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),NH=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},OH(e)),jH(e)),RH(e)),IH(e))}),MH=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"}}}},TH=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({},mn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},MH(e)),TH(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Qa),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Qa),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},$s()),{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()}}}}}},zH=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},PH(e),wH(e),$H(e),CH(e),{[`${t}-rtl`]:{direction:"rtl"}},Os(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},CR=un("Select",(e,{rootPrefixCls:t})=>{const n=rn(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[zH(n),NH(n)]},EH,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var DH={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"},_H=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:DH}))},js=i.forwardRef(_H),AH={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"},BH=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:AH}))},yf=i.forwardRef(BH),kH={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"},LH=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:kH}))},Rs=i.forwardRef(LH);function q1({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(Ol,null),y=$=>e===null&&!c&&!v?null:i.createElement(i.Fragment,null,d!==!1&&$,c&&f);let x=null;if(e!==void 0)x=y(e);else if(a)x=y(i.createElement(To,{spin:!0}));else{const $=`${u}-suffix`;x=({open:w,showSearch:E})=>y(w&&E?i.createElement(Rs,{className:$}):i.createElement(yf,{className:$}))}let S=null;n!==void 0?S=n:l?S=i.createElement(js,null):S=null;let b=null;return r!==void 0?b=r:b=i.createElement(_o,null),{clearIcon:p,suffixIcon:x,itemIcon:S,removeIcon:b}}function xR(e){return ge.useMemo(()=>{if(e)return(...t)=>ge.createElement(Jo,{space:!0},e.apply(void 0,t))},[e])}function SR(e,t){return t!==void 0?t:e!==null}var HH=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 $R="SECRET_COMBOBOX_MODE_DO_NOT_USE",FH=(e,t)=>{var n,r,a,l,c;const{prefixCls:u,bordered:d,className:f,rootClassName:v,getPopupContainer:g,popupClassName:p,dropdownClassName:y,listHeight:x=256,placement:S,listItemHeight:b,size:$,disabled:w,notFoundContent:E,status:R,builtinPlacements:j,dropdownMatchSelectWidth:I,popupMatchSelectWidth:O,direction:M,style:N,allowClear:P,variant:B,dropdownStyle:L,transitionName:k,tagRender:_,maxCount:H,prefix:z,dropdownRender:D,popupRender:F,onDropdownVisibleChange:W,onOpenChange:U,styles:V,classNames:G}=e,q=HH(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:K,getPrefixCls:Z,renderEmpty:Q,direction:te,virtual:X,popupMatchSelectWidth:oe,popupOverflow:ae}=i.useContext(Rt),{showSearch:re,style:Y,styles:ee,className:ie,classNames:ue}=hr("select"),[,se]=ua(),pe=b??(se==null?void 0:se.controlHeight),fe=Z("select",u),he=Z(),Se=M??te,{compactSize:be,compactItemClassnames:$e}=Bo(fe,Se),[xe,ye]=Il("select",B,d),Ne=vr(fe),[_e,Qe,Ke]=CR(fe,Ne),Fe=i.useMemo(()=>{const{mode:mt}=e;if(mt!=="combobox")return mt===$R?"combobox":mt},[e.mode]),Xe=Fe==="multiple"||Fe==="tags",Pe=SR(e.suffixIcon,e.showArrow),je=(n=O??I)!==null&&n!==void 0?n:oe,Ae=((r=V==null?void 0:V.popup)===null||r===void 0?void 0:r.root)||((a=ee.popup)===null||a===void 0?void 0:a.root)||L,Re=xR(F||D),ze=U||W,{status:we,hasFeedback:Oe,isFormItemInput:Te,feedbackIcon:Le}=i.useContext(Ur),tt=Rl(we,R);let Ct;E!==void 0?Ct=E:Fe==="combobox"?Ct=null:Ct=(Q==null?void 0:Q("Select"))||i.createElement(bf,{componentName:"Select"});const{suffixIcon:We,itemIcon:nt,removeIcon:dt,clearIcon:at}=q1(Object.assign(Object.assign({},q),{multiple:Xe,hasFeedback:Oe,feedbackIcon:Le,showSuffixIcon:Pe,prefixCls:fe,componentName:"Select"})),bt=P===!0?{clearIcon:at}:P,zt=En(q,["suffixIcon","itemIcon"]),jt=de(((l=G==null?void 0:G.popup)===null||l===void 0?void 0:l.root)||((c=ue==null?void 0:ue.popup)===null||c===void 0?void 0:c.root)||p||y,{[`${fe}-dropdown-${Se}`]:Se==="rtl"},v,ue.root,G==null?void 0:G.root,Ke,Ne,Qe),ct=Tr(mt=>{var Tt;return(Tt=$??be)!==null&&Tt!==void 0?Tt:mt}),wt=i.useContext(Kr),xt=w??wt,et=de({[`${fe}-lg`]:ct==="large",[`${fe}-sm`]:ct==="small",[`${fe}-rtl`]:Se==="rtl",[`${fe}-${xe}`]:ye,[`${fe}-in-form-item`]:Te},Ei(fe,tt,Oe),$e,ie,f,ue.root,G==null?void 0:G.root,v,Ke,Ne,Qe),Ve=i.useMemo(()=>S!==void 0?S:Se==="rtl"?"bottomRight":"bottomLeft",[S,Se]),[qe]=Ao("SelectLike",Ae==null?void 0:Ae.zIndex);return _e(i.createElement(U1,Object.assign({ref:t,virtual:X,showSearch:re},zt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ee.root),V==null?void 0:V.root),Y),N),dropdownMatchSelectWidth:je,transitionName:Yo(he,"slide-up",k),builtinPlacements:vR(j,ae),listHeight:x,listItemHeight:pe,mode:Fe,prefixCls:fe,placement:Ve,direction:Se,prefix:z,suffixIcon:We,menuItemSelectedIcon:nt,removeIcon:dt,allowClear:bt,notFoundContent:Ct,className:et,getPopupContainer:g||K,dropdownClassName:jt,disabled:xt,dropdownStyle:Object.assign(Object.assign({},Ae),{zIndex:qe}),maxCount:Xe?H:void 0,tagRender:Xe?_:void 0,dropdownRender:Re,onDropdownVisibleChange:ze})))},Fn=i.forwardRef(FH),VH=nu(Fn,"dropdownAlign");Fn.SECRET_COMBOBOX_MODE_DO_NOT_USE=$R;Fn.Option=K1;Fn.OptGroup=W1;Fn._InternalPanelDoNotUseOrYouWillBeFired=VH;const{Option:BE}=Fn;function kE(e){return(e==null?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const WH=(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:y,onOpenChange:x,styles:S,classNames:b}=e,$=Jr(d),w=((n=S==null?void 0:S.popup)===null||n===void 0?void 0:n.root)||v,E=((r=b==null?void 0:b.popup)===null||r===void 0?void 0:r.root)||c||u,R=p||g,j=x||y;let I;$.length===1&&i.isValidElement($[0])&&!kE($[0])&&([I]=$);const O=I?()=>I:void 0;let M;$.length&&kE($[0])?M=d:M=f?f.map(L=>{if(i.isValidElement(L))return L;switch(typeof L){case"string":return i.createElement(BE,{key:L,value:L},L);case"object":{const{value:k}=L;return i.createElement(BE,{key:k,value:k},L.text)}default:return}}):[];const{getPrefixCls:N}=i.useContext(Rt),P=N("select",a),[B]=Ao("SelectLike",w==null?void 0:w.zIndex);return i.createElement(Fn,Object.assign({ref:t,suffixIcon:null},En(e,["dataSource","dropdownClassName","popupClassName"]),{prefixCls:P,classNames:{popup:{root:E},root:b==null?void 0:b.root},styles:{popup:{root:Object.assign(Object.assign({},w),{zIndex:B})},root:S==null?void 0:S.root},className:de(`${P}-auto-complete`,l),mode:Fn.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:R,onOpenChange:j,getInputElement:O}),M)},wR=i.forwardRef(WH),{Option:KH}=Fn,UH=nu(wR,"dropdownAlign",e=>En(e,["visible"])),Wv=wR;Wv.Option=KH;Wv._InternalPanelDoNotUseOrYouWillBeFired=UH;const ER=(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)},OR=(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)},hs=["xxl","xl","lg","md","sm","xs"],qH=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)`}),GH=e=>{const t=e,n=[].concat(hs).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},XH=()=>{const[,e]=ua(),t=qH(GH(e));return ge.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);ER(d,u),this.matchHandlers[c]={mql:d,listener:u},u(d)})},unregister(){Object.values(t).forEach(l=>{const c=this.matchHandlers[l];OR(c==null?void 0:c.mql,c==null?void 0:c.listener)}),n.clear()}}},[t])};function _g(e=!0,t={}){const n=i.useRef(t),[,r]=j1(),a=XH();return an(()=>{const l=a.subscribe(c=>{n.current=c,e&&r()});return()=>a.unsubscribe(l)},[]),n.current}const Fc=e=>e?typeof e=="function"?e():e:null;function G1(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:de("".concat(n,"-content"),c),style:u},i.createElement("div",{className:de("".concat(n,"-inner"),l),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var pc={shiftX:64,adjustY:1},hc={adjustX:1,shiftY:!0},uo=[0,0],YH={left:{points:["cr","cl"],overflow:hc,offset:[-4,0],targetOffset:uo},right:{points:["cl","cr"],overflow:hc,offset:[4,0],targetOffset:uo},top:{points:["bc","tc"],overflow:pc,offset:[0,-4],targetOffset:uo},bottom:{points:["tc","bc"],overflow:pc,offset:[0,4],targetOffset:uo},topLeft:{points:["bl","tl"],overflow:pc,offset:[0,-4],targetOffset:uo},leftTop:{points:["tr","tl"],overflow:hc,offset:[-4,0],targetOffset:uo},topRight:{points:["br","tr"],overflow:pc,offset:[0,-4],targetOffset:uo},rightTop:{points:["tl","tr"],overflow:hc,offset:[4,0],targetOffset:uo},bottomRight:{points:["tr","br"],overflow:pc,offset:[0,4],targetOffset:uo},rightBottom:{points:["bl","br"],overflow:hc,offset:[4,0],targetOffset:uo},bottomLeft:{points:["tl","bl"],overflow:pc,offset:[0,4],targetOffset:uo},leftBottom:{points:["br","bl"],overflow:hc,offset:[-4,0],targetOffset:uo}},QH=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],ZH=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,y=t.children,x=t.onVisibleChange,S=t.afterVisibleChange,b=t.transitionName,$=t.animation,w=t.motion,E=t.placement,R=E===void 0?"right":E,j=t.align,I=j===void 0?{}:j,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,_=t.showArrow,H=_===void 0?!0:_,z=t.classNames,D=t.styles,F=Lt(t,QH),W=mf(k),U=i.useRef(null);i.useImperativeHandle(n,function(){return U.current});var V=ce({},F);"visible"in t&&(V.popupVisible=t.visible);var G=function(){return i.createElement(G1,{key:"content",prefixCls:p,id:W,bodyClassName:z==null?void 0:z.body,overlayInnerStyle:ce(ce({},B),D==null?void 0:D.body)},L)},q=function(){var Z=i.Children.only(y),Q=(Z==null?void 0:Z.props)||{},te=ce(ce({},Q),{},{"aria-describedby":L?W:null});return i.cloneElement(y,te)};return i.createElement(hf,Ce({popupClassName:de(r,z==null?void 0:z.root),prefixCls:p,popup:G,action:l,builtinPlacements:YH,popupPlacement:R,ref:U,popupAlign:I,getPopupContainer:P,onPopupVisibleChange:x,afterPopupVisibleChange:S,popupTransitionName:b,popupAnimation:$,popupMotion:w,defaultPopupVisible:N,autoDestroy:M,mouseLeaveDelay:f,popupStyle:ce(ce({},v),D==null?void 0:D.root),mouseEnterDelay:u,arrow:H},V),q())};const JH=i.forwardRef(ZH);function Ag(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,y=2*a-u,x=d,S=2*a-l,b=c,$=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%)`,R=`path('M ${l} ${c} A ${r} ${r} 0 0 0 ${u} ${d} L ${f} ${v} A ${n} ${n} 0 0 1 ${g} ${p} L ${y} ${x} A ${r} ${r} 0 0 0 ${S} ${b} Z')`;return{arrowShadowWidth:$,arrowPath:R,arrowPolygon:E}}const jR=(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 ${le(u)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},RR=8;function Bg(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?RR:r}}function Km(e,t){return e?t:{}}function X1(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"},jR(e,t,a)),{"&:before":{background:t}})]},Km(!!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% - ${le(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),Km(!!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% - ${le(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),Km(!!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}})),Km(!!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 eF(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 LE={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"]}},tF={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"]}},nF=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function IR(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:l,visibleFirst:c}=e,u=t/2,d={},f=Bg({contentRadius:l,limitVerticalRadius:!0});return Object.keys(LE).forEach(v=>{const g=r&&tF[v]||LE[v],p=Object.assign(Object.assign({},g),{offset:[0,0],dynamicInset:!0});switch(d[v]=p,nF.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=eF(v,f,t,n),c&&(p.htmlRegion="visibleFirst")}),d}const rF=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:y}=e,x=t(c).add(y).add(p).equal(),S=t(c).mul(2).add(y).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(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:`${le(e.calc(v).div(2).equal())} ${le(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:x},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(c,RR)}},[`${n}-content`]:{position:"relative"}}),gg(e,(b,{darkColor:$})=>({[`&${n}-${b}`]:{[`${n}-inner`]:{backgroundColor:$},[`${n}-arrow`]:{"--antd-arrow-background-color":$}}}))),{"&-rtl":{direction:"rtl"}})},X1(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},aF=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Bg({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Ag(rn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),NR=(e,t=!0)=>un("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:l,colorBgSpotlight:c}=r,u=rn(r,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:a,tooltipBg:c});return[rF(u),df(r,"zoom-big-fast")]},aF,{resetStyle:!1,injectStyle:t})(e),oF=Cl.map(e=>`${e}-inverse`),iF=["success","processing","error","default","warning"];function kg(e,t=!0){return t?[].concat(Me(oF),Me(Cl)).includes(e):Cl.includes(e)}function lF(e){return iF.includes(e)}function MR(e,t){const n=kg(t),r=de({[`${e}-${t}`]:t&&n}),a={},l={},c=DA(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 sF=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]=NR(d),p=MR(d,l),y=p.arrowStyle,x=Object.assign(Object.assign({},c),p.overlayStyle),S=de(v,g,d,`${d}-pure`,`${d}-placement-${r}`,n,p.className);return f(i.createElement("div",{className:S,style:y},i.createElement("div",{className:`${d}-arrow`}),i.createElement(G1,Object.assign({},e,{className:v,prefixCls:d,overlayInnerStyle:x}),a)))};var cF=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 uF=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:y,arrow:x=!0,title:S,overlay:b,builtinPlacements:$,arrowPointAtCenter:w=!1,autoAdjustOverflow:E=!0,motion:R,getPopupContainer:j,placement:I="top",mouseEnterDelay:O=.1,mouseLeaveDelay:M=.1,overlayStyle:N,rootClassName:P,overlayClassName:B,styles:L,classNames:k}=e,_=cF(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=!!x,[,z]=ua(),{getPopupContainer:D,getPrefixCls:F,direction:W,className:U,style:V,classNames:G,styles:q}=hr("tooltip"),K=ti(),Z=i.useRef(null),Q=()=>{var Pe;(Pe=Z.current)===null||Pe===void 0||Pe.forceAlign()};i.useImperativeHandle(t,()=>{var Pe,je;return{forceAlign:Q,forcePopupAlign:()=>{K.deprecated(!1,"forcePopupAlign","forceAlign"),Q()},nativeElement:(Pe=Z.current)===null||Pe===void 0?void 0:Pe.nativeElement,popupElement:(je=Z.current)===null||je===void 0?void 0:je.popupElement}});const[te,X]=Cn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),oe=!S&&!b&&S!==0,ae=Pe=>{var je,Ae;X(oe?!1:Pe),oe||((je=e.onOpenChange)===null||je===void 0||je.call(e,Pe),(Ae=e.onVisibleChange)===null||Ae===void 0||Ae.call(e,Pe))},re=i.useMemo(()=>{var Pe,je;let Ae=w;return typeof x=="object"&&(Ae=(je=(Pe=x.pointAtCenter)!==null&&Pe!==void 0?Pe:x.arrowPointAtCenter)!==null&&je!==void 0?je:w),$||IR({arrowPointAtCenter:Ae,autoAdjustOverflow:E,arrowWidth:H?z.sizePopupArrow:0,borderRadius:z.borderRadius,offset:z.marginXXS,visibleFirst:!0})},[w,x,$,z]),Y=i.useMemo(()=>S===0?S:b||S||"",[b,S]),ee=i.createElement(Jo,{space:!0},typeof Y=="function"?Y():Y),ie=F("tooltip",a),ue=F(),se=e["data-popover-inject"];let pe=te;!("open"in e)&&!("visible"in e)&&oe&&(pe=!1);const fe=i.isValidElement(f)&&!H6(f)?f:i.createElement("span",null,f),he=fe.props,Se=!he.className||typeof he.className=="string"?de(he.className,l||`${ie}-open`):he.className,[be,$e,xe]=NR(ie,!se),ye=MR(ie,u),Ne=ye.arrowStyle,_e=de(B,{[`${ie}-rtl`]:W==="rtl"},ye.className,P,$e,xe,U,G.root,k==null?void 0:k.root),Qe=de(G.body,k==null?void 0:k.body),[Ke,Fe]=Ao("Tooltip",_.zIndex),Xe=i.createElement(JH,Object.assign({},_,{zIndex:Ke,showArrow:H,placement:I,mouseEnterDelay:O,mouseLeaveDelay:M,prefixCls:ie,classNames:{root:_e,body:Qe},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ne),q.root),V),N),L==null?void 0:L.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},q.body),d),L==null?void 0:L.body),ye.overlayStyle)},getTooltipContainer:j||c||D,ref:Z,builtinPlacements:re,overlay:ee,visible:pe,onVisibleChange:ae,afterVisibleChange:v??g,arrowContent:i.createElement("span",{className:`${ie}-arrow-content`}),motion:{motionName:Yo(ue,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:y??!!p}),pe?Or(fe,{className:Se}):fe);return be(i.createElement(hg.Provider,{value:Fe},Xe))}),_n=uF;_n._InternalPanelDoNotUseOrYouWillBeFired=sF;const dF=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:y,innerContentPadding:x,titlePadding:S}=e;return[{[t]:Object.assign(Object.assign({},mn(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:y,padding:S},[`${t}-inner-content`]:{color:n,padding:x}})},X1(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},fF=e=>{const{componentCls:t}=e;return{[t]:Cl.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},mF=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,y=p/2,x=p/2-t,S=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:c+30},Ag(e)),Bg({contentRadius:u,limitVerticalRadius:!0})),{innerPadding:l?0:12,titleMarginBottom:l?0:d,titlePadding:l?`${y}px ${S}px ${x}px`:0,titleBorderBottom:l?`${t}px ${f} ${v}`:"none",innerContentPadding:l?`${g}px ${S}px`:0})},TR=un("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=rn(e,{popoverBg:t,popoverColor:n});return[dF(r),fF(r),df(r,"zoom-big")]},mF,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var vF=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 PR=({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)),gF=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:l="top",title:c,content:u,children:d}=e,f=Fc(c),v=Fc(u),g=de(t,n,`${n}-pure`,`${n}-placement-${l}`,r);return i.createElement("div",{className:g,style:a},i.createElement("div",{className:`${n}-arrow`}),i.createElement(G1,Object.assign({},e,{className:t,prefixCls:n}),d||i.createElement(PR,{prefixCls:n,title:f,content:v})))},zR=e=>{const{prefixCls:t,className:n}=e,r=vF(e,["prefixCls","className"]),{getPrefixCls:a}=i.useContext(Rt),l=a("popover",t),[c,u,d]=TR(l);return c(i.createElement(gF,Object.assign({},r,{prefixCls:l,hashId:u,className:de(n,d)})))};var pF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const hF=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:y,overlayStyle:x={},styles:S,classNames:b}=e,$=pF(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,className:E,style:R,classNames:j,styles:I}=hr("popover"),O=w("popover",a),[M,N,P]=TR(O),B=w(),L=de(u,N,P,E,j.root,b==null?void 0:b.root),k=de(j.body,b==null?void 0:b.body),[_,H]=Cn(!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),y==null||y(V,G)},D=V=>{V.keyCode===ot.ESC&&z(!1,V)},F=V=>{z(V)},W=Fc(l),U=Fc(c);return M(i.createElement(_n,Object.assign({placement:d,trigger:f,mouseEnterDelay:g,mouseLeaveDelay:p},$,{prefixCls:O,classNames:{root:L,body:k},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},I.root),R),x),S==null?void 0:S.root),body:Object.assign(Object.assign({},I.body),S==null?void 0:S.body)},ref:t,open:_,onOpenChange:F,overlay:W||U?i.createElement(PR,{prefixCls:O,title:W,content:U}):null,transitionName:Yo(B,"zoom-big",$.transitionName),"data-popover-inject":!0}),Or(v,{onKeyDown:V=>{var G,q;i.isValidElement(v)&&((q=v==null?void 0:(G=v.props).onKeyDown)===null||q===void 0||q.call(G,V)),D(V)}})))}),Y1=hF;Y1._InternalPanelDoNotUseOrYouWillBeFired=zR;var bF={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"},yF=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:bF}))},CF=i.forwardRef(yF);const xF=new tn("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),SF=new tn("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),$F=new tn("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),wF=new tn("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),EF=new tn("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),OF=new tn("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),jF=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:y}=e,x=`${r}-scroll-number`,S=gg(e,(b,{darkColor:$})=>({[`&${t} ${t}-color-${b}`]:{background:$,[`&:not(${t}-count)`]:{color:$},"a:hover &":{background:$}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(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:le(v),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:y(v).div(2).equal(),boxShadow:`0 0 0 ${le(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:le(g),borderRadius:y(g).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${le(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 ${le(a)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${x}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:OF,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:xF,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:SF,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:$F,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:wF,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:EF,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${x}-custom-component, ${t}-count`]:{transform:"none"},[`${x}-custom-component, ${x}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[x]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${x}-only`]:{position:"relative",display:"inline-block",height:v,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${x}-only-unit`]:{height:v,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${x}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${x}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},DR=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 rn(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%)"})},_R=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}},RF=un("Badge",e=>{const t=DR(e);return jF(t)},_R),IF=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:a,calc:l}=e,c=`${t}-ribbon`,u=`${t}-ribbon-wrapper`,d=gg(e,(f,{darkColor:v})=>({[`&${c}-color-${f}`]:{background:v,color:v}}));return{[u]:{position:"relative"},[c]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{position:"absolute",top:r,padding:`0 ${le(e.paddingXS)}`,color:e.colorPrimary,lineHeight:le(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:`${le(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"}})}},NF=un(["Badge","Ribbon"],e=>{const t=DR(e);return IF(t)},_R),MF=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`,[y,x,S]=NF(g,p),b=kg(a,!1),$=de(g,`${g}-placement-${u}`,{[`${g}-rtl`]:v==="rtl",[`${g}-color-${a}`]:b},t),w={},E={};return a&&!b&&(w.background=a,E.color=a),y(i.createElement("div",{className:de(p,d,x,S)},l,i.createElement("div",{className:de($,x),style:Object.assign(Object.assign({},w),r)},i.createElement("span",{className:`${g}-text`},c),i.createElement("div",{className:`${g}-corner`,style:E}))))},HE=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:de(`${t}-only-unit`,{current:r})},n)};function TF(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 y=setTimeout(v,1e3);return()=>clearTimeout(y)},[a]);let g,p;if(c===a||Number.isNaN(a)||Number.isNaN(c))g=[i.createElement(HE,Object.assign({},e,{key:a,current:!0}))],p={transition:"none"};else{g=[];const y=a+10,x=[];for(let w=a;w<=y;w+=1)x.push(w);const S=d<l?1:-1,b=x.findIndex(w=>w%10===c);g=(S<0?x.slice(0,b+1):x.slice(b)).map((w,E)=>{const R=w%10;return i.createElement(HE,Object.assign({},e,{key:w,value:R,offset:S<0?E-b:E,current:E===b}))}),p={transform:`translateY(${-TF(c,a,S)}00%)`}}return i.createElement("span",{className:`${t}-only`,style:p,onTransitionEnd:v},g)};var zF=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 DF=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=zF(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=i.useContext(Rt),y=p("scroll-number",n),x=Object.assign(Object.assign({},g),{"data-show":d,style:c,className:de(y,a,l),title:u});let S=r;if(r&&Number(r)%1===0){const b=String(r).split("");S=i.createElement("bdi",null,b.map(($,w)=>i.createElement(PF,{prefixCls:y,count:Number(r),value:$,key:b.length-w})))}return c!=null&&c.borderColor&&(x.style=Object.assign(Object.assign({},c),{boxShadow:`0 0 0 1px ${c.borderColor} inset`})),v?Or(v,b=>({className:de(`${y}-custom-component`,b==null?void 0:b.className,l)})):i.createElement(f,Object.assign({},x,{ref:t}),S)});var _F=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const AF=i.forwardRef((e,t)=>{var n,r,a,l,c;const{prefixCls:u,scrollNumberPrefixCls:d,children:f,status:v,text:g,color:p,count:y=null,overflowCount:x=99,dot:S=!1,size:b="default",title:$,offset:w,style:E,className:R,rootClassName:j,classNames:I,styles:O,showZero:M=!1}=e,N=_F(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),[_,H,z]=RF(k),D=y>x?`${x}+`:y,F=D==="0"||D===0||g==="0"||g===0,W=y===null||F&&!M,U=(v!=null||p!=null)&&W,V=v!=null||!F,G=S&&!F,q=G?"":D,K=i.useMemo(()=>((q==null||q==="")&&(g==null||g==="")||F&&!M)&&!G,[q,F,M,G,g]),Z=i.useRef(y);K||(Z.current=y);const Q=Z.current,te=i.useRef(q);K||(te.current=q);const X=te.current,oe=i.useRef(G);K||(oe.current=G);const ae=i.useMemo(()=>{if(!w)return Object.assign(Object.assign({},L==null?void 0:L.style),E);const he={marginTop:w[1]};return B==="rtl"?he.left=Number.parseInt(w[0],10):he.right=-Number.parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},he),L==null?void 0:L.style),E)},[B,w,E,L==null?void 0:L.style]),re=$??(typeof Q=="string"||typeof Q=="number"?Q:void 0),Y=!K&&(g===0?M:!!g&&g!==!0),ee=Y?i.createElement("span",{className:`${k}-status-text`},g):null,ie=!Q||typeof Q!="object"?void 0:Or(Q,he=>({style:Object.assign(Object.assign({},ae),he.style)})),ue=kg(p,!1),se=de(I==null?void 0:I.indicator,(n=L==null?void 0:L.classNames)===null||n===void 0?void 0:n.indicator,{[`${k}-status-dot`]:U,[`${k}-status-${v}`]:!!v,[`${k}-color-${p}`]:ue}),pe={};p&&!ue&&(pe.color=p,pe.background=p);const fe=de(k,{[`${k}-status`]:U,[`${k}-not-a-wrapper`]:!f,[`${k}-rtl`]:B==="rtl"},R,j,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&&U&&(g||V||!W)){const he=ae.color;return _(i.createElement("span",Object.assign({},N,{className:fe,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),ae)}),i.createElement("span",{className:se,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),pe)}),Y&&i.createElement("span",{style:{color:he},className:`${k}-status-text`},g)))}return _(i.createElement("span",Object.assign({ref:t},N,{className:fe,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(ta,{visible:!K,motionName:`${k}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:he})=>{var Se,be;const $e=P("scroll-number",d),xe=oe.current,ye=de(I==null?void 0:I.indicator,(Se=L==null?void 0:L.classNames)===null||Se===void 0?void 0:Se.indicator,{[`${k}-dot`]:xe,[`${k}-count`]:!xe,[`${k}-count-sm`]:b==="small",[`${k}-multiple-words`]:!xe&&X&&X.toString().length>1,[`${k}-status-${v}`]:!!v,[`${k}-color-${p}`]:ue});let Ne=Object.assign(Object.assign(Object.assign({},O==null?void 0:O.indicator),(be=L==null?void 0:L.styles)===null||be===void 0?void 0:be.indicator),ae);return p&&!ue&&(Ne=Ne||{},Ne.background=p),i.createElement(DF,{prefixCls:$e,show:!K,motionClassName:he,className:ye,count:X,title:re,style:Ne,key:"scrollNumber"},ie)}),ee))}),ja=AF;ja.Ribbon=MF;var BF={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"},kF=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:BF}))},Vc=i.forwardRef(kF),LF=ot.ESC,HF=ot.TAB;function FF(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 LF:u();break;case HF:{var p=!1;c.current||(p=d()),p?g.preventDefault():u();break}}};i.useEffect(function(){return t?(window.addEventListener("keydown",f),a&&Zt(d,3),function(){window.removeEventListener("keydown",f),c.current=!1}):function(){c.current=!1}},[t])}var VF=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=Mr(t,El(l));return ge.createElement(ge.Fragment,null,r&&ge.createElement("div",{className:"".concat(a,"-arrow")}),ge.cloneElement(l,{ref:Io(l)?c:void 0}))}),bc={adjustX:1,adjustY:1},yc=[0,0],WF={topLeft:{points:["bl","tl"],overflow:bc,offset:[0,-4],targetOffset:yc},top:{points:["bc","tc"],overflow:bc,offset:[0,-4],targetOffset:yc},topRight:{points:["br","tr"],overflow:bc,offset:[0,-4],targetOffset:yc},bottomLeft:{points:["tl","bl"],overflow:bc,offset:[0,4],targetOffset:yc},bottom:{points:["tc","bc"],overflow:bc,offset:[0,4],targetOffset:yc},bottomRight:{points:["tr","br"],overflow:bc,offset:[0,4],targetOffset:yc}},KF=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function UF(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,y=p===void 0?WF:p,x=e.getPopupContainer,S=e.showAction,b=e.hideAction,$=e.overlayClassName,w=e.overlayStyle,E=e.visible,R=e.trigger,j=R===void 0?["hover"]:R,I=e.autoFocus,O=e.overlay,M=e.children,N=e.onVisibleChange,P=Lt(e,KF),B=ge.useState(),L=me(B,2),k=L[0],_=L[1],H="visible"in e?E:k,z=ge.useRef(null),D=ge.useRef(null),F=ge.useRef(null);ge.useImperativeHandle(t,function(){return z.current});var W=function(X){_(X),N==null||N(X)};FF({visible:H,triggerRef:F,onVisibleChange:W,autoFocus:I,overlayRef:D});var U=function(X){var oe=e.onOverlayClick;_(!1),oe&&oe(X)},V=function(){return ge.createElement(VF,{ref:D,overlay:O,prefixCls:c,arrow:a})},G=function(){return typeof O=="function"?V:V()},q=function(){var X=e.minOverlayWidthMatchTrigger,oe=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?X:!oe},K=function(){var X=e.openClassName;return X!==void 0?X:"".concat(c,"-open")},Z=ge.cloneElement(M,{className:de((n=M.props)===null||n===void 0?void 0:n.className,H&&K()),ref:Io(M)?Mr(F,El(M)):void 0}),Q=b;return!Q&&j.indexOf("contextMenu")!==-1&&(Q=["click"]),ge.createElement(hf,Ce({builtinPlacements:y},P,{prefixCls:c,ref:z,popupClassName:de($,ne({},"".concat(c,"-show-arrow"),a)),popupStyle:w,action:j,showAction:S,hideAction:Q,popupPlacement:g,popupAlign:f,popupTransitionName:u,popupAnimation:d,popupVisible:H,stretch:q()?"minWidth":"",popup:G(),onPopupVisibleChange:W,onPopupClick:U,getPopupContainer:x}),Z)}const AR=ge.forwardRef(UF),qF=e=>typeof e!="object"&&typeof e!="function"||e===null;var BR=i.createContext(null);function kR(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function LR(e){var t=i.useContext(BR);return kR(t,e)}var GF=["children","locked"],Po=i.createContext(null);function XF(e,t){var n=ce({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function Gd(e){var t=e.children,n=e.locked,r=Lt(e,GF),a=i.useContext(Po),l=Ss(function(){return XF(a,r)},[a,r],function(c,u){return!n&&(c[0]!==u[0]||!No(c[1],u[1],!0))});return i.createElement(Po.Provider,{value:l},t)}var YF=[],HR=i.createContext(null);function Lg(){return i.useContext(HR)}var FR=i.createContext(YF);function ru(e){var t=i.useContext(FR);return i.useMemo(function(){return e!==void 0?[].concat(Me(t),[e]):t},[t,e])}var VR=i.createContext(null),Q1=i.createContext({});function FE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Jc(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 QF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Me(e.querySelectorAll("*")).filter(function(r){return FE(r,t)});return FE(e,t)&&n.unshift(e),n}var _y=ot.LEFT,Ay=ot.RIGHT,By=ot.UP,yv=ot.DOWN,Cv=ot.ENTER,WR=ot.ESC,id=ot.HOME,ld=ot.END,VE=[By,yv,_y,Ay];function ZF(e,t,n,r){var a,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===Cv)return{inlineTrigger:!0};var f=ne(ne({},By,l),yv,c),v=ne(ne(ne(ne({},_y,n?c:l),Ay,n?l:c),yv,u),Cv,u),g=ne(ne(ne(ne(ne(ne({},By,l),yv,c),Cv,u),WR,d),_y,n?u:d),Ay,n?d:u),p={inline:f,horizontal:v,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g},y=(a=p["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(y){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 JF(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function eV(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Z1(e,t){var n=QF(e,!0);return n.filter(function(r){return t.has(r)})}function WE(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=Z1(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 ky=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(kR(n,c),"']"));u&&(r.add(u),l.set(u,c),a.set(c,u))}),{elements:r,key2element:a,element2key:l}};function tV(e,t,n,r,a,l,c,u,d,f){var v=i.useRef(),g=i.useRef();g.current=t;var p=function(){Zt.cancel(v.current)};return i.useEffect(function(){return function(){p()}},[]),function(y){var x=y.which;if([].concat(VE,[Cv,WR,id,ld]).includes(x)){var S=l(),b=ky(S,r),$=b,w=$.elements,E=$.key2element,R=$.element2key,j=E.get(t),I=eV(j,w),O=R.get(I),M=ZF(e,c(O,!0).length===1,n,x);if(!M&&x!==id&&x!==ld)return;(VE.includes(x)||[id,ld].includes(x))&&y.preventDefault();var N=function(D){if(D){var F=D,W=D.querySelector("a");W!=null&&W.getAttribute("href")&&(F=W);var U=R.get(D);u(U),p(),v.current=Zt(function(){g.current===U&&F.focus()})}};if([id,ld].includes(x)||M.sibling||!I){var P;!I||e==="inline"?P=a.current:P=JF(I);var B,L=Z1(P,w);x===id?B=L[0]:x===ld?B=L[L.length-1]:B=WE(P,w,I,M.offset),N(B)}else if(M.inlineTrigger)d(O);else if(M.offset>0)d(O,!0),p(),v.current=Zt(function(){b=ky(S,r);var z=I.getAttribute("aria-controls"),D=document.getElementById(z),F=WE(D,b.elements);N(F)},5);else if(M.offset<0){var k=c(O,!0),_=k[k.length-2],H=E.get(_);d(_,!1),N(H)}}f==null||f(y)}}function nV(e){Promise.resolve().then(e)}var J1="__RC_UTIL_PATH_SPLIT__",KE=function(t){return t.join(J1)},rV=function(t){return t.split(J1)},Ly="rc-menu-more";function aV(){var e=i.useState({}),t=me(e,2),n=t[1],r=i.useRef(new Map),a=i.useRef(new Map),l=i.useState([]),c=me(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,R){var j=KE(R);a.current.set(j,E),r.current.set(E,j),f.current+=1;var I=f.current;nV(function(){I===f.current&&g()})},[]),y=i.useCallback(function(E,R){var j=KE(R);a.current.delete(j),r.current.delete(E)},[]),x=i.useCallback(function(E){d(E)},[]),S=i.useCallback(function(E,R){var j=r.current.get(E)||"",I=rV(j);return R&&u.includes(I[0])&&I.unshift(Ly),I},[u]),b=i.useCallback(function(E,R){return E.filter(function(j){return j!==void 0}).some(function(j){var I=S(j,!0);return I.includes(R)})},[S]),$=function(){var R=Me(r.current.keys());return u.length&&R.push(Ly),R},w=i.useCallback(function(E){var R="".concat(r.current.get(E)).concat(J1),j=new Set;return Me(a.current.keys()).forEach(function(I){I.startsWith(R)&&j.add(a.current.get(I))}),j},[]);return i.useEffect(function(){return function(){v.current=!0}},[]),{registerPath:p,unregisterPath:y,refreshOverflowKeys:x,isSubPathKey:b,getKeyPath:S,getKeys:$,getSubPathKeys:w}}function bd(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 oV=Math.random().toFixed(5).toString().slice(2),UE=0;function iV(e){var t=Cn(e,{value:e}),n=me(t,2),r=n[0],a=n[1];return i.useEffect(function(){UE+=1;var l="".concat(oV,"-").concat(UE);a("rc-menu-uuid-".concat(l))},[]),r}function KR(e,t,n,r){var a=i.useContext(Po),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 UR(e){var t=i.useContext(Po),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 qR(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,ce({},n)):typeof t!="boolean"&&(a=t),a||r||null)}var lV=["item"];function Kv(e){var t=e.item,n=Lt(e,lV);return Object.defineProperty(n,"item",{get:function(){return Zn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var sV=["title","attribute","elementRef"],cV=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],uV=["active"],dV=(function(e){Ja(n,e);var t=ho(n);function n(){return gr(this,n),t.apply(this,arguments)}return pr(n,[{key:"render",value:function(){var a=this.props,l=a.title,c=a.attribute,u=a.elementRef,d=Lt(a,sV),f=En(d,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Zn(!c,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),i.createElement(Oo.Item,Ce({},c,{title:typeof l=="string"?l:void 0},f,{ref:u}))}}]),n})(i.Component),fV=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,y=e.onFocus,x=Lt(e,cV),S=LR(a),b=i.useContext(Po),$=b.prefixCls,w=b.onItemClick,E=b.disabled,R=b.overflowDisabled,j=b.itemIcon,I=b.selectedKeys,O=b.onActive,M=i.useContext(Q1),N=M._internalRenderMenuItem,P="".concat($,"-item"),B=i.useRef(),L=i.useRef(),k=E||l,_=Ri(t,L),H=ru(a),z=function(oe){return{key:a,keyPath:Me(H).reverse(),item:B.current,domEvent:oe}},D=c||j,F=KR(a,k,f,v),W=F.active,U=Lt(F,uV),V=I.includes(a),G=UR(H.length),q=function(oe){if(!k){var ae=z(oe);g==null||g(Kv(ae)),w(ae)}},K=function(oe){if(p==null||p(oe),oe.which===ot.ENTER){var ae=z(oe);g==null||g(Kv(ae)),w(ae)}},Z=function(oe){O(a),y==null||y(oe)},Q={};e.role==="option"&&(Q["aria-selected"]=V);var te=i.createElement(dV,Ce({ref:B,elementRef:_,role:d===null?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":R&&S?null:S},En(x,["extra"]),U,Q,{component:"li","aria-disabled":l,style:ce(ce({},G),n),className:de(P,ne(ne(ne({},"".concat(P,"-active"),W),"".concat(P,"-selected"),V),"".concat(P,"-disabled"),k),r),onClick:q,onKeyDown:K,onFocus:Z}),u,i.createElement(qR,{props:ce(ce({},e),{},{isSelected:V}),icon:D}));return N&&(te=N(te,e,{selected:V})),te});function mV(e,t){var n=e.eventKey,r=Lg(),a=ru(n);return i.useEffect(function(){if(r)return r.registerPath(n,a),function(){r.unregisterPath(n,a)}},[a]),r?null:i.createElement(fV,Ce({},e,{ref:t}))}const Cf=i.forwardRef(mV);var vV=["className","children"],gV=function(t,n){var r=t.className,a=t.children,l=Lt(t,vV),c=i.useContext(Po),u=c.prefixCls,d=c.mode,f=c.rtl;return i.createElement("ul",Ce({className:de(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)},eC=i.forwardRef(gV);eC.displayName="SubMenuList";function tC(e,t){return Jr(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(Me(t),[r]).join("-")));var f={key:u,eventKey:u};return i.cloneElement(n,f)}return n})}var xa={adjustX:1,adjustY:1},pV={topLeft:{points:["bl","tl"],overflow:xa},topRight:{points:["br","tr"],overflow:xa},bottomLeft:{points:["tl","bl"],overflow:xa},bottomRight:{points:["tr","br"],overflow:xa},leftTop:{points:["tr","tl"],overflow:xa},leftBottom:{points:["br","bl"],overflow:xa},rightTop:{points:["tl","tr"],overflow:xa},rightBottom:{points:["bl","br"],overflow:xa}},hV={topLeft:{points:["bl","tl"],overflow:xa},topRight:{points:["br","tr"],overflow:xa},bottomLeft:{points:["tl","bl"],overflow:xa},bottomRight:{points:["tr","br"],overflow:xa},rightTop:{points:["tr","tl"],overflow:xa},rightBottom:{points:["br","bl"],overflow:xa},leftTop:{points:["tl","tr"],overflow:xa},leftBottom:{points:["bl","br"],overflow:xa}};function GR(e,t,n){if(t)return t;if(n)return n[e]||n.other}var bV={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function yV(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(Po),p=g.getPopupContainer,y=g.rtl,x=g.subMenuOpenDelay,S=g.subMenuCloseDelay,b=g.builtinPlacements,$=g.triggerSubMenuAction,w=g.forceSubMenuRender,E=g.rootClassName,R=g.motion,j=g.defaultMotions,I=i.useState(!1),O=me(I,2),M=O[0],N=O[1],P=ce(y?ce({},hV):ce({},pV),b),B=bV[f],L=GR(f,R,j),k=i.useRef(L);f!=="inline"&&(k.current=L);var _=ce(ce({},k.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),H=i.useRef();return i.useEffect(function(){return H.current=Zt(function(){N(n)}),function(){Zt.cancel(H.current)}},[n]),i.createElement(hf,{prefixCls:t,popupClassName:de("".concat(t,"-popup"),ne({},"".concat(t,"-rtl"),y),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?[]:[$],mouseEnterDelay:x,mouseLeaveDelay:S,onPopupVisibleChange:v,forceRender:w,popupMotion:_,fresh:!0},r)}function CV(e){var t=e.id,n=e.open,r=e.keyPath,a=e.children,l="inline",c=i.useContext(Po),u=c.prefixCls,d=c.forceSubMenuRender,f=c.motion,v=c.defaultMotions,g=c.mode,p=i.useRef(!1);p.current=g===l;var y=i.useState(!p.current),x=me(y,2),S=x[0],b=x[1],$=p.current?n:!1;i.useEffect(function(){p.current&&b(!1)},[g]);var w=ce({},GR(l,f,v));r.length>1&&(w.motionAppear=!1);var E=w.onVisibleChanged;return w.onVisibleChanged=function(R){return!p.current&&!R&&b(!0),E==null?void 0:E(R)},S?null:i.createElement(Gd,{mode:l,locked:!p.current},i.createElement(ta,Ce({visible:$},w,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(R){var j=R.className,I=R.style;return i.createElement(eC,{id:t,className:j,style:I},a)}))}var xV=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],SV=["active"],$V=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,y=e.popupStyle,x=e.onClick,S=e.onMouseEnter,b=e.onMouseLeave,$=e.onTitleClick,w=e.onTitleMouseEnter,E=e.onTitleMouseLeave,R=Lt(e,xV),j=LR(l),I=i.useContext(Po),O=I.prefixCls,M=I.mode,N=I.openKeys,P=I.disabled,B=I.overflowDisabled,L=I.activeKey,k=I.selectedKeys,_=I.itemIcon,H=I.expandIcon,z=I.onItemClick,D=I.onOpenChange,F=I.onActive,W=i.useContext(Q1),U=W._internalRenderSubMenuItem,V=i.useContext(VR),G=V.isSubPathKey,q=ru(),K="".concat(O,"-submenu"),Z=P||c,Q=i.useRef(),te=i.useRef(),X=f??_,oe=v??H,ae=N.includes(l),re=!B&&ae,Y=G(k,l),ee=KR(l,Z,w,E),ie=ee.active,ue=Lt(ee,SV),se=i.useState(!1),pe=me(se,2),fe=pe[0],he=pe[1],Se=function(we){Z||he(we)},be=function(we){Se(!0),S==null||S({key:l,domEvent:we})},$e=function(we){Se(!1),b==null||b({key:l,domEvent:we})},xe=i.useMemo(function(){return ie||(M!=="inline"?fe||G([L],l):!1)},[M,ie,L,fe,l,G]),ye=UR(q.length),Ne=function(we){Z||($==null||$({key:l,domEvent:we}),M==="inline"&&D(l,!ae))},_e=bd(function(ze){x==null||x(Kv(ze)),z(ze)}),Qe=function(we){M!=="inline"&&D(l,we)},Ke=function(){F(l)},Fe=j&&"".concat(j,"-popup"),Xe=i.useMemo(function(){return i.createElement(qR,{icon:M!=="horizontal"?oe:void 0,props:ce(ce({},e),{},{isOpen:re,isSubMenu:!0})},i.createElement("i",{className:"".concat(K,"-arrow")}))},[M,oe,e,re,K]),Pe=i.createElement("div",Ce({role:"menuitem",style:ye,className:"".concat(K,"-title"),tabIndex:Z?null:-1,ref:Q,title:typeof a=="string"?a:null,"data-menu-id":B&&j?null:j,"aria-expanded":re,"aria-haspopup":!0,"aria-controls":Fe,"aria-disabled":Z,onClick:Ne,onFocus:Ke},ue),a,Xe),je=i.useRef(M);if(M!=="inline"&&q.length>1?je.current="vertical":je.current=M,!B){var Ae=je.current;Pe=i.createElement(yV,{mode:Ae,prefixCls:K,visible:!u&&re&&M!=="inline",popupClassName:g,popupOffset:p,popupStyle:y,popup:i.createElement(Gd,{mode:Ae==="horizontal"?"vertical":Ae},i.createElement(eC,{id:Fe,ref:te},d)),disabled:Z,onVisibleChange:Qe},Pe)}var Re=i.createElement(Oo.Item,Ce({ref:t,role:"none"},R,{component:"li",style:n,className:de(K,"".concat(K,"-").concat(M),r,ne(ne(ne(ne({},"".concat(K,"-open"),re),"".concat(K,"-active"),xe),"".concat(K,"-selected"),Y),"".concat(K,"-disabled"),Z)),onMouseEnter:be,onMouseLeave:$e}),Pe,!B&&i.createElement(CV,{id:Fe,open:re,keyPath:q},d));return U&&(Re=U(Re,e,{selected:Y,active:xe,open:re,disabled:Z})),i.createElement(Gd,{onItemClick:_e,mode:M==="horizontal"?"vertical":M,itemIcon:X,expandIcon:oe},Re)}),Hg=i.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=ru(n),l=tC(r,a),c=Lg();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($V,Ce({ref:t},e),l),i.createElement(FR.Provider,{value:a},u)});function nC(e){var t=e.className,n=e.style,r=i.useContext(Po),a=r.prefixCls,l=Lg();return l?null:i.createElement("li",{role:"separator",className:de("".concat(a,"-item-divider"),t),style:n})}var wV=["className","title","eventKey","children"],EV=i.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,l=Lt(e,wV),c=i.useContext(Po),u=c.prefixCls,d="".concat(u,"-item-group");return i.createElement("li",Ce({ref:t,role:"presentation"},l,{onClick:function(v){return v.stopPropagation()},className:de(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))}),rC=i.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=ru(n),l=tC(r,a),c=Lg();return c?l:i.createElement(EV,Ce({ref:t},En(e,["warnKey"])),l)}),OV=["label","children","key","type","extra"];function Hy(e,t,n){var r=t.item,a=t.group,l=t.submenu,c=t.divider;return(e||[]).map(function(u,d){if(u&&Ot(u)==="object"){var f=u,v=f.label,g=f.children,p=f.key,y=f.type,x=f.extra,S=Lt(f,OV),b=p??"tmp-".concat(d);return g||y==="group"?y==="group"?i.createElement(a,Ce({key:b},S,{title:v}),Hy(g,t,n)):i.createElement(l,Ce({key:b},S,{title:v}),Hy(g,t,n)):y==="divider"?i.createElement(c,Ce({key:b},S)):i.createElement(r,Ce({key:b},S,{extra:x}),v,(!!x||x===0)&&i.createElement("span",{className:"".concat(n,"-item-extra")},x))}return null}).filter(function(u){return u})}function qE(e,t,n,r,a){var l=e,c=ce({divider:nC,item:Cf,group:rC,submenu:Hg},r);return t&&(l=Hy(t,c,a)),tC(l,n)}var jV=["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"],Xl=[],RV=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,y=r.direction,x=r.id,S=r.mode,b=S===void 0?"vertical":S,$=r.inlineCollapsed,w=r.disabled,E=r.disabledOverflow,R=r.subMenuOpenDelay,j=R===void 0?.1:R,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,_=k===void 0?!0:k,H=r.multiple,z=H===void 0?!1:H,D=r.defaultSelectedKeys,F=r.selectedKeys,W=r.onSelect,U=r.onDeselect,V=r.inlineIndent,G=V===void 0?24:V,q=r.motion,K=r.defaultMotions,Z=r.triggerSubMenuAction,Q=Z===void 0?"hover":Z,te=r.builtinPlacements,X=r.itemIcon,oe=r.expandIcon,ae=r.overflowedIndicator,re=ae===void 0?"...":ae,Y=r.overflowedIndicatorPopupClassName,ee=r.getPopupContainer,ie=r.onClick,ue=r.onOpenChange,se=r.onKeyDown;r.openAnimation,r.openTransitionName;var pe=r._internalRenderMenuItem,fe=r._internalRenderSubMenuItem,he=r._internalComponents,Se=Lt(r,jV),be=i.useMemo(function(){return[qE(p,g,Xl,he,l),qE(p,g,Xl,{},l)]},[p,g,he]),$e=me(be,2),xe=$e[0],ye=$e[1],Ne=i.useState(!1),_e=me(Ne,2),Qe=_e[0],Ke=_e[1],Fe=i.useRef(),Xe=iV(x),Pe=y==="rtl",je=Cn(N,{value:P,postState:function(Bt){return Bt||Xl}}),Ae=me(je,2),Re=Ae[0],ze=Ae[1],we=function(Bt){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function ln(){ze(Bt),ue==null||ue(Bt)}kt?vo.flushSync(ln):ln()},Oe=i.useState(Re),Te=me(Oe,2),Le=Te[0],tt=Te[1],Ct=i.useRef(!1),We=i.useMemo(function(){return(b==="inline"||b==="vertical")&&$?["vertical",$]:[b,!1]},[b,$]),nt=me(We,2),dt=nt[0],at=nt[1],bt=dt==="inline",zt=i.useState(dt),jt=me(zt,2),ct=jt[0],wt=jt[1],xt=i.useState(at),et=me(xt,2),Ve=et[0],qe=et[1];i.useEffect(function(){wt(dt),qe(at),Ct.current&&(bt?ze(Le):we(Xl))},[dt,at]);var mt=i.useState(0),Tt=me(mt,2),Nt=Tt[0],Wt=Tt[1],ft=Nt>=xe.length-1||ct!=="horizontal"||E;i.useEffect(function(){bt&&tt(Re)},[Re]),i.useEffect(function(){return Ct.current=!0,function(){Ct.current=!1}},[]);var lt=aV(),At=lt.registerPath,Gt=lt.unregisterPath,on=lt.refreshOverflowKeys,Jt=lt.isSubPathKey,pn=lt.getKeyPath,Xt=lt.getKeys,fn=lt.getSubPathKeys,st=i.useMemo(function(){return{registerPath:At,unregisterPath:Gt}},[At,Gt]),St=i.useMemo(function(){return{isSubPathKey:Jt}},[Jt]);i.useEffect(function(){on(ft?Xl:xe.slice(Nt+1).map(function(Sn){return Sn.key}))},[Nt,ft]);var yt=Cn(B||L&&((n=xe[0])===null||n===void 0?void 0:n.key),{value:B}),Ye=me(yt,2),Ze=Ye[0],ut=Ye[1],Dt=bd(function(Sn){ut(Sn)}),Ut=bd(function(){ut(void 0)});i.useImperativeHandle(t,function(){return{list:Fe.current,focus:function(Bt){var kt,ln=Xt(),Pt=ky(ln,Xe),_t=Pt.elements,gn=Pt.key2element,In=Pt.element2key,Jn=Z1(Fe.current,_t),Er=Ze??(Jn[0]?In.get(Jn[0]):(kt=xe.find(function(dn){return!dn.props.disabled}))===null||kt===void 0?void 0:kt.key),er=gn.get(Er);if(Er&&er){var jr;er==null||(jr=er.focus)===null||jr===void 0||jr.call(er,Bt)}}}});var gt=Cn(D||[],{value:F,postState:function(Bt){return Array.isArray(Bt)?Bt:Bt==null?Xl:[Bt]}}),Mt=me(gt,2),Vt=Mt[0],wn=Mt[1],An=function(Bt){if(_){var kt=Bt.key,ln=Vt.includes(kt),Pt;z?ln?Pt=Vt.filter(function(gn){return gn!==kt}):Pt=[].concat(Me(Vt),[kt]):Pt=[kt],wn(Pt);var _t=ce(ce({},Bt),{},{selectedKeys:Pt});ln?U==null||U(_t):W==null||W(_t)}!z&&Re.length&&ct!=="inline"&&we(Xl)},Pn=bd(function(Sn){ie==null||ie(Kv(Sn)),An(Sn)}),Un=bd(function(Sn,Bt){var kt=Re.filter(function(Pt){return Pt!==Sn});if(Bt)kt.push(Sn);else if(ct!=="inline"){var ln=fn(Sn);kt=kt.filter(function(Pt){return!ln.has(Pt)})}No(Re,kt,!0)||we(kt,!0)}),Rn=function(Bt,kt){var ln=kt??!Re.includes(Bt);Un(Bt,ln)},kn=tV(ct,Ze,Pe,Xe,Fe,Xt,pn,ut,Rn,se);i.useEffect(function(){Ke(!0)},[]);var wr=i.useMemo(function(){return{_internalRenderMenuItem:pe,_internalRenderSubMenuItem:fe}},[pe,fe]),Pr=ct!=="horizontal"||E?xe:xe.map(function(Sn,Bt){return i.createElement(Gd,{key:Sn.key,overflowDisabled:Bt>Nt},Sn)}),Cr=i.createElement(Oo,Ce({id:x,ref:Fe,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:Cf,className:de(l,"".concat(l,"-root"),"".concat(l,"-").concat(ct),d,ne(ne({},"".concat(l,"-inline-collapsed"),Ve),"".concat(l,"-rtl"),Pe),c),dir:y,style:u,role:"menu",tabIndex:v,data:Pr,renderRawItem:function(Bt){return Bt},renderRawRest:function(Bt){var kt=Bt.length,ln=kt?xe.slice(-kt):null;return i.createElement(Hg,{eventKey:Ly,title:re,disabled:ft,internalPopupClose:kt===0,popupClassName:Y},ln)},maxCount:ct!=="horizontal"||E?Oo.INVALIDATE:Oo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Bt){Wt(Bt)},onKeyDown:kn},Se));return i.createElement(Q1.Provider,{value:wr},i.createElement(BR.Provider,{value:Xe},i.createElement(Gd,{prefixCls:l,rootClassName:c,mode:ct,openKeys:Re,rtl:Pe,disabled:w,motion:Qe?q:null,defaultMotions:Qe?K:null,activeKey:Ze,onActive:Dt,onInactive:Ut,selectedKeys:Vt,inlineIndent:G,subMenuOpenDelay:j,subMenuCloseDelay:O,forceSubMenuRender:M,builtinPlacements:te,triggerSubMenuAction:Q,getPopupContainer:ee,itemIcon:X,expandIcon:oe,onItemClick:Pn,onOpenChange:Un},i.createElement(VR.Provider,{value:St},Cr),i.createElement("div",{style:{display:"none"},"aria-hidden":!0},i.createElement(HR.Provider,{value:st},ye)))))}),au=RV;au.Item=Cf;au.SubMenu=Hg;au.ItemGroup=rC;au.Divider=nC;var IV={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},NV=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:IV}))},MV=i.forwardRef(NV);const XR=i.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),TV=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:le(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}}},YR=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}},QR=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],ZR=un("Layout",TV,YR,{deprecatedTokens:QR}),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:y,lightTriggerColor:x,lightTriggerBg:S,bodyBg:b}=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:le(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 ${le(p)} ${le(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:`${le(p)} 0 0 ${le(p)}`}},"&-light":{background:y,[`${t}-trigger`]:{color:x,background:S},[`${t}-zero-width-trigger`]:{color:x,background:S,border:`1px solid ${b}`,borderInlineStart:0}}}}},zV=un(["Layout","Sider"],PV,YR,{deprecatedTokens:QR});var DV=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 GE={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},_V=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Fg=i.createContext({}),AV=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),JR=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:y,breakpoint:x,onCollapse:S,onBreakpoint:b}=e,$=DV(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=i.useContext(XR),[E,R]=i.useState("collapsed"in e?e.collapsed:c),[j,I]=i.useState(!1);i.useEffect(()=>{"collapsed"in e&&R(e.collapsed)},[e.collapsed]);const O=(X,oe)=>{"collapsed"in e||R(X),S==null||S(X,oe)},{getPrefixCls:M,direction:N}=i.useContext(Rt),P=M("layout-sider",n),[B,L,k]=zV(P),_=i.useRef(null);_.current=X=>{I(X.matches),b==null||b(X.matches),E!==X.matches&&O(X.matches,"responsive")},i.useEffect(()=>{function X(ae){var re;return(re=_.current)===null||re===void 0?void 0:re.call(_,ae)}let oe;return typeof(window==null?void 0:window.matchMedia)<"u"&&x&&x in GE&&(oe=window.matchMedia(`screen and (max-width: ${GE[x]})`),ER(oe,X),X(oe)),()=>{OR(oe,X)}},[x]),i.useEffect(()=>{const X=AV("ant-sider-");return w.addSider(X),()=>w.removeSider(X)},[]);const H=()=>{O(!E,"clickTrigger")},z=En($,["collapsed"]),D=E?p:g,F=_V(D)?`${D}px`:String(D),W=Number.parseFloat(String(p||0))===0?i.createElement("span",{onClick:H,className:de(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${v?"right":"left"}`),style:y},a||i.createElement(MV,null)):null,U=N==="rtl"==!v,q={expanded:U?i.createElement($i,null):i.createElement(Vc,null),collapsed:U?i.createElement(Vc,null):i.createElement($i,null)}[E?"collapsed":"expanded"],K=a!==null?W||i.createElement("div",{className:`${P}-trigger`,onClick:H,style:{width:F}},a||q):null,Z=Object.assign(Object.assign({},d),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),Q=de(P,`${P}-${u}`,{[`${P}-collapsed`]:!!E,[`${P}-has-trigger`]:f&&a!==null&&!W,[`${P}-below`]:!!j,[`${P}-zero-width`]:Number.parseFloat(F)===0},r,L,k),te=i.useMemo(()=>({siderCollapsed:E}),[E]);return B(i.createElement(Fg.Provider,{value:te},i.createElement("aside",Object.assign({className:Q},z,{style:Z,ref:t}),i.createElement("div",{className:`${P}-children`},l),f||j&&W?K:null)))});var BV={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"},kV=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:BV}))},aC=i.forwardRef(kV);const Uv=i.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var LV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const e8=e=>{const{prefixCls:t,className:n,dashed:r}=e,a=LV(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=i.useContext(Rt),c=l("menu",t),u=de({[`${c}-item-divider-dashed`]:!!r},n);return i.createElement(nC,Object.assign({className:u},a))},t8=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(Uv),y=E=>{const R=r==null?void 0:r[0],j=i.createElement("span",{className:de(`${d}-title-content`,{[`${d}-title-content-with-extra`]:!!u||u===0})},r);return(!a||i.isValidElement(r)&&r.type==="span")&&r&&E&&f&&typeof R=="string"?i.createElement("div",{className:`${d}-inline-collapsed-noicon`},R.charAt(0)):j},{siderCollapsed:x}=i.useContext(Fg);let S=l;typeof l>"u"?S=f?r:"":l===!1&&(S="");const b={title:S};!x&&!p&&(b.title=null,b.open=!1);const $=Jr(r).length;let w=i.createElement(Cf,Object.assign({},En(e,["title","icon","danger"]),{className:de({[`${d}-item-danger`]:c,[`${d}-item-only-child`]:(a?$+1:$)===1},n),title:typeof l=="string"?l:void 0}),Or(a,{className:de(i.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:void 0,`${d}-item-icon`)}),y(p));return g||(w=i.createElement(_n,Object.assign({},b,{placement:v==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}}),w)),w};var HV=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 qv=i.createContext(null),n8=i.forwardRef((e,t)=>{const{children:n}=e,r=HV(e,["children"]),a=i.useContext(qv),l=i.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),c=z5(n),u=Ri(t,c?El(n):null);return i.createElement(qv.Provider,{value:l},i.createElement(Jo,{space:!0},c?i.cloneElement(n,{ref:u}):n))}),FV=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:`${le(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"}}}},VV=({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(${le(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${le(t)})`}}}}),XE=e=>Mo(e),YE=(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:y,motionEaseInOut:x,motionEaseOut:S,itemPaddingInline:b,motionDurationMid:$,itemHoverColor:w,lineType:E,colorSplit:R,itemDisabledColor:j,dangerItemColor:I,dangerItemHoverColor:O,dangerItemSelectedColor:M,dangerItemActiveBg:N,dangerItemSelectedBg:P,popupBg:B,itemHoverBg:L,itemActiveBg:k,menuSubMenuBg:_,horizontalItemSelectedColor:H,horizontalItemSelectedBg:z,horizontalItemBorderRadius:D,horizontalItemHoverBg:F}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:u,[`&${n}-root:focus-visible`]:Object.assign({},XE(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({},XE(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${j} !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:_},[`&${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:D,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${le(v)} solid transparent`,transition:`border-color ${y} ${x}`,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:`${le(p)} ${E} ${R}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:d},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${le(g)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${$} ${S}`,`opacity ${$} ${S}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:M}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${$} ${x}`,`opacity ${$} ${x}`].join(",")}}}}}},QE=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:le(n),paddingInline:f,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:u,width:d},[`> ${t}-item,
|
|
264
|
-
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:le(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
265
|
-
${t}-submenu-title`]:{paddingInlineEnd:v}}},WV=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:y,boxShadowSecondary:x,collapsedWidth:S,collapsedIconSize:b}=e,$={height:r,lineHeight:le(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},QE(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},QE(e)),{boxShadow:x})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${le(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`]:$,[`& ${t}-item-group-title`]:{paddingInlineStart:d}},[`${t}-item`]:$}},{[`${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% - ${le(e.calc(b).div(2).equal())} - ${le(f)})`,textOverflow:"clip",[`
|
|
269
|
-
${t}-submenu-arrow,
|
|
270
|
-
${t}-submenu-expand-icon
|
|
271
|
-
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:b,lineHeight:le(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({},Qa),{paddingInline:y})}}]},ZE=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({},$s()),[`&${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"}}}},JE=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(${le(e.calc(c).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${le(c)})`}}}}},KV=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:y,menuArrowSize:x,menuArrowOffset:S,lineType:b,groupTitleLineHeight:$,groupTitleFontSize:w}=e;return[{"":{[n]:Object.assign(Object.assign({},Xo()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),Xo()),{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:`${le(u)} ${le(d)}`,fontSize:w,lineHeight:$,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:b,borderWidth:0,borderTopWidth:v,marginBlock:v,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ZE(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${le(e.calc(r).mul(2).equal())} ${le(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},ZE(e)),JE(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:y},[`${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}}}),JE(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
272
|
-
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${le(S)})`},"&::after":{transform:`rotate(45deg) translateX(${le(e.calc(S).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${le(e.calc(x).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${le(e.calc(S).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${le(S)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},UV=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:y,lineWidthBold:x,controlItemBgActive:S,colorBgTextHover:b,controlHeightLG:$,lineHeight:w,colorBgElevated:E,marginXXS:R,padding:j,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:y,k=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,_=new bn(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:b,itemHoverBg:b,colorItemBgActive:p,itemActiveBg:S,colorSubItemBg:g,subMenuItemBg:g,colorItemBgSelected:S,itemSelectedBg:S,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:B,colorActiveBarHeight:x,activeBarHeight:x,colorActiveBarBorderSize:y,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:$,groupTitleLineHeight:w,collapsedWidth:$*2,popupBg:E,itemMarginBlock:R,itemPaddingInline:j,horizontalLineHeight:`${$*1.15}px`,iconSize:I,iconMarginInlineEnd:O-I,collapsedIconSize:M,groupTitleFontSize:I,darkItemDisabledColor:new bn(N).setA(.25).toRgbString(),darkItemColor:_,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:N,darkItemSelectedBg:a,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:_,darkItemHoverColor:N,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:l,itemWidth:B?`calc(100% + ${L}px)`:`calc(100% - ${k*2}px)`}},qV=(e,t=e,n=!0)=>un("Menu",a=>{const{colorBgElevated:l,controlHeightLG:c,fontSize:u,darkItemColor:d,darkDangerItemColor:f,darkItemBg:v,darkSubMenuItemBg:g,darkItemSelectedColor:p,darkItemSelectedBg:y,darkDangerItemSelectedBg:x,darkItemHoverBg:S,darkGroupTitleColor:b,darkItemHoverColor:$,darkItemDisabledColor:w,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:j,popupBg:I,darkPopupBg:O}=a,M=a.calc(u).div(7).mul(5).equal(),N=rn(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=rn(N,{itemColor:d,itemHoverColor:$,groupTitleColor:b,itemSelectedColor:p,subMenuItemSelectedColor:p,itemBg:v,popupBg:O,subMenuItemBg:g,itemActiveBg:"transparent",itemSelectedBg:y,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:S,itemDisabledColor:w,dangerItemColor:f,dangerItemHoverColor:E,dangerItemSelectedColor:R,dangerItemActiveBg:j,dangerItemSelectedBg:x,menuSubMenuBg:g,horizontalItemSelectedColor:p,horizontalItemSelectedBg:y});return[KV(N),FV(N),WV(N),YE(N,"light"),YE(P,"dark"),VV(N),uf(N),Qo(N,"slide-up"),Qo(N,"slide-down"),df(N,"zoom-big")]},UV,{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),r8=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:l}=e,c=i.useContext(Uv),{prefixCls:u,inlineCollapsed:d,theme:f}=c,v=ru();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 x=i.isValidElement(a)&&a.type==="span";g=i.createElement(i.Fragment,null,Or(r,{className:de(i.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${u}-item-icon`)}),x?a:i.createElement("span",{className:`${u}-title-content`},a))}const p=i.useMemo(()=>Object.assign(Object.assign({},c),{firstLevel:!1}),[c]),[y]=Ao("Menu");return i.createElement(Uv.Provider,{value:p},i.createElement(Hg,Object.assign({},En(e,["icon"]),{title:g,popupClassName:de(u,n,`${u}-${l||f}`),popupStyle:Object.assign({zIndex:y},e.popupStyle)})))};var GV=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 K0(e){return e===null||e===!1}const XV={item:t8,submenu:r8,divider:e8},YV=i.forwardRef((e,t)=>{var n;const r=i.useContext(qv),a=r||{},{getPrefixCls:l,getPopupContainer:c,direction:u,menu:d}=i.useContext(Rt),f=l(),{prefixCls:v,className:g,style:p,theme:y="light",expandIcon:x,_internalDisableMenuItemTitleTooltip:S,inlineCollapsed:b,siderCollapsed:$,rootClassName:w,mode:E,selectable:R,onClick:j,overflowedIndicatorPopupClassName:I}=e,O=GV(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),M=En(O,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:E});const N=Qt((...G)=>{var q;j==null||j.apply(void 0,G),(q=a.onClick)===null||q===void 0||q.call(a)}),P=a.mode||E,B=R??a.selectable,L=b??$,k={horizontal:{motionName:`${f}-slide-up`},inline:Lc(f),other:{motionName:`${f}-zoom-big`}},_=l("menu",v||a.prefixCls),H=vr(_),[z,D,F]=qV(_,H,!r),W=de(`${_}-${y}`,d==null?void 0:d.className,g),U=i.useMemo(()=>{var G,q;if(typeof x=="function"||K0(x))return x||null;if(typeof a.expandIcon=="function"||K0(a.expandIcon))return a.expandIcon||null;if(typeof(d==null?void 0:d.expandIcon)=="function"||K0(d==null?void 0:d.expandIcon))return(d==null?void 0:d.expandIcon)||null;const K=(G=x??(a==null?void 0:a.expandIcon))!==null&&G!==void 0?G:d==null?void 0:d.expandIcon;return Or(K,{className:de(`${_}-submenu-expand-icon`,i.isValidElement(K)?(q=K.props)===null||q===void 0?void 0:q.className:void 0)})},[x,a==null?void 0:a.expandIcon,d==null?void 0:d.expandIcon,_]),V=i.useMemo(()=>({prefixCls:_,inlineCollapsed:L||!1,direction:u,firstLevel:!0,theme:y,mode:P,disableMenuItemTitleTooltip:S}),[_,L,u,S,y]);return z(i.createElement(qv.Provider,{value:null},i.createElement(Uv.Provider,{value:V},i.createElement(au,Object.assign({getPopupContainer:c,overflowedIndicator:i.createElement(aC,null),overflowedIndicatorPopupClassName:de(_,`${_}-${y}`,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:_,direction:u,defaultMotions:k,expandIcon:U,ref:t,rootClassName:de(w,D,a.rootClassName,F,H),_internalComponents:XV})))))}),xl=i.forwardRef((e,t)=>{const n=i.useRef(null),r=i.useContext(Fg);return i.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var l;(l=n.current)===null||l===void 0||l.focus(a)}})),i.createElement(YV,Object.assign({ref:n},e,r))});xl.Item=t8;xl.SubMenu=r8;xl.Divider=e8;xl.ItemGroup=rC;const QV=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}}}}}},ZV=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:y,controlPaddingHorizontal:x,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:y}},[`${t}-wrap`]:{position:"relative",[`${c}-btn > ${u}-down`]:{fontSize:y},[`${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:xg},[`&${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:$g},[`&${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:Sg},[`&${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:wg}}},X1(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({},mn(e)),{[n]:Object.assign(Object.assign({padding:g,listStyleType:"none",backgroundColor:S,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Za(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${le(f)} ${le(x)}`,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:`${le(f)} ${le(x)}`,color:e.colorText,fontWeight:"normal",fontSize:v,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${d}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Za(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:`${le(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:y,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${le(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(x).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:S,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Qo(e,"slide-up"),Qo(e,"slide-down"),Hc(e,"move-up"),Hc(e,"move-down"),df(e,"zoom-big")]]},JV=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Bg({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Ag(e)),eW=un("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,l=rn(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[ZV(l),QV(l)]},JV,{resetStyle:!1}),Vg=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:y,open:x,onOpenChange:S,visible:b,onVisibleChange:$,mouseEnterDelay:w=.15,mouseLeaveDelay:E=.1,autoAdjustOverflow:R=!0,placement:j="",overlay:I,transitionName:O,destroyOnHidden:M,destroyPopupOnHide:N}=e,{getPopupContainer:P,getPrefixCls:B,direction:L,dropdown:k}=i.useContext(Rt),_=f||d;ti();const H=i.useMemo(()=>{const pe=B();return O!==void 0?O:j.includes("top")?`${pe}-slide-down`:`${pe}-slide-up`},[B,j,O]),z=i.useMemo(()=>j?j.includes("Center")?j.slice(0,j.indexOf("Center")):j:L==="rtl"?"bottomRight":"bottomLeft",[j,L]),D=B("dropdown",a),F=vr(D),[W,U,V]=eW(D,F),[,G]=ua(),q=i.Children.only(qF(l)?i.createElement("span",null,l):l),K=Or(q,{className:de(`${D}-trigger`,{[`${D}-rtl`]:L==="rtl"},q.props.className),disabled:(t=q.props.disabled)!==null&&t!==void 0?t:u}),Z=u?[]:c,Q=!!(Z!=null&&Z.includes("contextMenu")),[te,X]=Cn(!1,{value:x??b}),oe=Qt(pe=>{S==null||S(pe,{source:"trigger"}),$==null||$(pe),X(pe)}),ae=de(g,p,U,V,F,k==null?void 0:k.className,{[`${D}-rtl`]:L==="rtl"}),re=IR({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:R,offset:G.marginXXS,arrowWidth:r?G.sizePopupArrow:0,borderRadius:G.borderRadius}),Y=Qt(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(S==null||S(!1,{source:"menu"}),X(!1))}),ee=()=>{let pe;return n!=null&&n.items?pe=i.createElement(xl,Object.assign({},n)):typeof I=="function"?pe=I():pe=I,_&&(pe=_(pe)),pe=i.Children.only(typeof pe=="string"?i.createElement("span",null,pe):pe),i.createElement(n8,{prefixCls:`${D}-menu`,rootClassName:de(V,F),expandIcon:i.createElement("span",{className:`${D}-menu-submenu-arrow`},L==="rtl"?i.createElement(Vc,{className:`${D}-menu-submenu-arrow-icon`}):i.createElement($i,{className:`${D}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Y,validator:({mode:fe})=>{}},pe)},[ie,ue]=Ao("Dropdown",y==null?void 0:y.zIndex);let se=i.createElement(AR,Object.assign({alignPoint:Q},En(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:E,visible:te,builtinPlacements:re,arrow:!!r,overlayClassName:ae,prefixCls:D,getPopupContainer:v||P,transitionName:H,trigger:Z,overlay:ee,placement:z,onVisibleChange:oe,overlayStyle:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.style),y),{zIndex:ie}),autoDestroy:M??N}),K);return ie&&(se=i.createElement(hg.Provider,{value:ue},se)),W(se)},tW=nu(Vg,"align",void 0,"dropdown",e=>e),nW=e=>i.createElement(tW,Object.assign({},e),i.createElement("span",null));Vg._InternalPanelDoNotUseOrYouWillBeFired=nW;var xv={exports:{}},rW=xv.exports,e4;function aW(){return e4||(e4=1,(function(e,t){(function(n,r){e.exports=r()})(rW,(function(){var n=1e3,r=6e4,a=36e5,l="millisecond",c="second",u="minute",d="hour",f="day",v="week",g="month",p="quarter",y="year",x="date",S="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|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(_){var H=["th","st","nd","rd"],z=_%100;return"["+_+(H[(z-20)%10]||H[z]||H[0])+"]"}},E=function(_,H,z){var D=String(_);return!D||D.length>=H?_:""+Array(H+1-D.length).join(z)+_},R={s:E,z:function(_){var H=-_.utcOffset(),z=Math.abs(H),D=Math.floor(z/60),F=z%60;return(H<=0?"+":"-")+E(D,2,"0")+":"+E(F,2,"0")},m:function _(H,z){if(H.date()<z.date())return-_(z,H);var D=12*(z.year()-H.year())+(z.month()-H.month()),F=H.clone().add(D,g),W=z-F<0,U=H.clone().add(D+(W?-1:1),g);return+(-(D+(z-F)/(W?F-U:U-F))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:g,y,w:v,d:f,D:x,h:d,m:u,s:c,ms:l,Q:p}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},j="en",I={};I[j]=w;var O="$isDayjsObject",M=function(_){return _ instanceof L||!(!_||!_[O])},N=function _(H,z,D){var F;if(!H)return j;if(typeof H=="string"){var W=H.toLowerCase();I[W]&&(F=W),z&&(I[W]=z,F=W);var U=H.split("-");if(!F&&U.length>1)return _(U[0])}else{var V=H.name;I[V]=H,F=V}return!D&&F&&(j=F),F||!D&&j},P=function(_,H){if(M(_))return _.clone();var z=typeof H=="object"?H:{};return z.date=_,z.args=arguments,new L(z)},B=R;B.l=N,B.i=M,B.w=function(_,H){return P(_,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var L=(function(){function _(z){this.$L=N(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[O]=!0}var H=_.prototype;return H.parse=function(z){this.$d=(function(D){var F=D.date,W=D.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 U=F.match(b);if(U){var V=U[2]-1||0,G=(U[7]||"0").substring(0,3);return W?new Date(Date.UTC(U[1],V,U[3]||1,U[4]||0,U[5]||0,U[6]||0,G)):new Date(U[1],V,U[3]||1,U[4]||0,U[5]||0,U[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,D){var F=P(z);return this.startOf(D)<=F&&F<=this.endOf(D)},H.isAfter=function(z,D){return P(z)<this.startOf(D)},H.isBefore=function(z,D){return this.endOf(D)<P(z)},H.$g=function(z,D,F){return B.u(z)?this[D]:this.set(F,z)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(z,D){var F=this,W=!!B.u(D)||D,U=B.p(z),V=function(oe,ae){var re=B.w(F.$u?Date.UTC(F.$y,ae,oe):new Date(F.$y,ae,oe),F);return W?re:re.endOf(f)},G=function(oe,ae){return B.w(F.toDate()[oe].apply(F.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(ae)),F)},q=this.$W,K=this.$M,Z=this.$D,Q="set"+(this.$u?"UTC":"");switch(U){case y:return W?V(1,0):V(31,11);case g:return W?V(1,K):V(0,K+1);case v:var te=this.$locale().weekStart||0,X=(q<te?q+7:q)-te;return V(W?Z-X:Z+(6-X),K);case f:case x: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,D){var F,W=B.p(z),U="set"+(this.$u?"UTC":""),V=(F={},F[f]=U+"Date",F[x]=U+"Date",F[g]=U+"Month",F[y]=U+"FullYear",F[d]=U+"Hours",F[u]=U+"Minutes",F[c]=U+"Seconds",F[l]=U+"Milliseconds",F)[W],G=W===f?this.$D+(D-this.$W):D;if(W===g||W===y){var q=this.clone().set(x,1);q.$d[V](G),q.init(),this.$d=q.set(x,Math.min(this.$D,q.daysInMonth())).$d}else V&&this.$d[V](G);return this.init(),this},H.set=function(z,D){return this.clone().$set(z,D)},H.get=function(z){return this[B.p(z)]()},H.add=function(z,D){var F,W=this;z=Number(z);var U=B.p(D),V=function(K){var Z=P(W);return B.w(Z.date(Z.date()+Math.round(K*z)),W)};if(U===g)return this.set(g,this.$M+z);if(U===y)return this.set(y,this.$y+z);if(U===f)return V(1);if(U===v)return V(7);var G=(F={},F[u]=r,F[d]=a,F[c]=n,F)[U]||1,q=this.$d.getTime()+z*G;return B.w(q,this)},H.subtract=function(z,D){return this.add(-1*z,D)},H.format=function(z){var D=this,F=this.$locale();if(!this.isValid())return F.invalidDate||S;var W=z||"YYYY-MM-DDTHH:mm:ssZ",U=B.z(this),V=this.$H,G=this.$m,q=this.$M,K=F.weekdays,Z=F.months,Q=F.meridiem,te=function(ae,re,Y,ee){return ae&&(ae[re]||ae(D,W))||Y[re].slice(0,ee)},X=function(ae){return B.s(V%12||12,ae,"0")},oe=Q||function(ae,re,Y){var ee=ae<12?"AM":"PM";return Y?ee.toLowerCase():ee};return W.replace($,(function(ae,re){return re||(function(Y){switch(Y){case"YY":return String(D.$y).slice(-2);case"YYYY":return B.s(D.$y,4,"0");case"M":return q+1;case"MM":return B.s(q+1,2,"0");case"MMM":return te(F.monthsShort,q,Z,3);case"MMMM":return te(Z,q);case"D":return D.$D;case"DD":return B.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return te(F.weekdaysMin,D.$W,K,2);case"ddd":return te(F.weekdaysShort,D.$W,K,3);case"dddd":return K[D.$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 oe(V,G,!0);case"A":return oe(V,G,!1);case"m":return String(G);case"mm":return B.s(G,2,"0");case"s":return String(D.$s);case"ss":return B.s(D.$s,2,"0");case"SSS":return B.s(D.$ms,3,"0");case"Z":return U}return null})(ae)||U.replace(":","")}))},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(z,D,F){var W,U=this,V=B.p(D),G=P(z),q=(G.utcOffset()-this.utcOffset())*r,K=this-G,Z=function(){return B.m(U,G)};switch(V){case y:W=Z()/12;break;case g:W=Z();break;case p:W=Z()/3;break;case v:W=(K-q)/6048e5;break;case f:W=(K-q)/864e5;break;case d:W=K/a;break;case u:W=K/r;break;case c:W=K/n;break;default:W=K}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,D){if(!z)return this.$L;var F=this.clone(),W=N(z,D,!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()},_})(),k=L.prototype;return P.prototype=k,[["$ms",l],["$s",c],["$m",u],["$H",d],["$W",f],["$M",g],["$y",y],["$D",x]].forEach((function(_){k[_[1]]=function(H){return this.$g(H,_[0],_[1])}})),P.extend=function(_,H){return _.$i||(_(H,L,P),_.$i=!0),P},P.locale=N,P.isDayjs=M,P.unix=function(_){return P(1e3*_)},P.en=I[j],P.Ls=I,P.p={},P}))})(xv)),xv.exports}var oW=aW();const pa=zo(oW);var Sv={exports:{}},iW=Sv.exports,t4;function lW(){return t4||(t4=1,(function(e,t){(function(n,r){e.exports=r()})(iW,(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")}}}))})(Sv)),Sv.exports}var sW=lW();const cW=zo(sW);var $v={exports:{}},uW=$v.exports,n4;function dW(){return n4||(n4=1,(function(e,t){(function(n,r){e.exports=r()})(uW,(function(){return function(n,r,a){var l=r.prototype,c=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,p,y,x,S){var b=g.name?g:g.$locale(),$=c(b[p]),w=c(b[y]),E=$||w.map((function(j){return j.slice(0,x)}));if(!S)return E;var R=b.weekStart;return E.map((function(j,I){return E[(I+(R||0))%7]}))},d=function(){return a.Ls[a.locale()]},f=function(g,p){return g.formats[p]||(function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,S,b){return S||b.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)}}}))})($v)),$v.exports}var fW=dW();const mW=zo(fW);var wv={exports:{}},vW=wv.exports,r4;function gW(){return r4||(r4=1,(function(e,t){(function(n,r){e.exports=r()})(vW,(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"),y=this.diff(p,n,!0);return y<0?c(this).startOf("week").week():Math.ceil(y)},u.weeks=function(d){return d===void 0&&(d=null),this.week(d)}}}))})(wv)),wv.exports}var pW=gW();const hW=zo(pW);var Ev={exports:{}},bW=Ev.exports,a4;function yW(){return a4||(a4=1,(function(e,t){(function(n,r){e.exports=r()})(bW,(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}}}))})(Ev)),Ev.exports}var CW=yW();const xW=zo(CW);var Ov={exports:{}},SW=Ov.exports,o4;function $W(){return o4||(o4=1,(function(e,t){(function(n,r){e.exports=r()})(SW,(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)}}}))})(Ov)),Ov.exports}var wW=$W();const EW=zo(wW);var jv={exports:{}},OW=jv.exports,i4;function jW(){return i4||(i4=1,(function(e,t){(function(n,r){e.exports=r()})(OW,(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(b){return(b=+b)+(b>68?1900:2e3)},v=function(b){return function($){this[b]=+$}},g=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=(function($){if(!$||$==="Z")return 0;var w=$.match(/([+-]|\d\d)/g),E=60*w[1]+(+w[2]||0);return E===0?0:w[0]==="+"?-E:E})(b)}],p=function(b){var $=d[b];return $&&($.indexOf?$:$.s.concat($.f))},y=function(b,$){var w,E=d.meridiem;if(E){for(var R=1;R<=24;R+=1)if(b.indexOf(E(R,0,$))>-1){w=R>12;break}}else w=b===($?"pm":"PM");return w},x={A:[u,function(b){this.afternoon=y(b,!1)}],a:[u,function(b){this.afternoon=y(b,!0)}],Q:[a,function(b){this.month=3*(b-1)+1}],S:[a,function(b){this.milliseconds=100*+b}],SS:[l,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],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(b){var $=d.ordinal,w=b.match(/\d+/);if(this.day=w[0],$)for(var E=1;E<=31;E+=1)$(E).replace(/\[|\]/g,"")===b&&(this.day=E)}],w:[c,v("week")],ww:[l,v("week")],M:[c,v("month")],MM:[l,v("month")],MMM:[u,function(b){var $=p("months"),w=(p("monthsShort")||$.map((function(E){return E.slice(0,3)}))).indexOf(b)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[u,function(b){var $=p("months").indexOf(b)+1;if($<1)throw new Error;this.month=$%12||$}],Y:[/[+-]?\d+/,v("year")],YY:[l,function(b){this.year=f(b)}],YYYY:[/\d{4}/,v("year")],Z:g,ZZ:g};function S(b){var $,w;$=b,w=d&&d.formats;for(var E=(b=$.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(_,H,z){return H||z.slice(1)}))}))).match(r),R=E.length,j=0;j<R;j+=1){var I=E[j],O=x[I],M=O&&O[0],N=O&&O[1];E[j]=N?{regex:M,parser:N}:I.replace(/^\[|\]$/g,"")}return function(P){for(var B={},L=0,k=0;L<R;L+=1){var _=E[L];if(typeof _=="string")k+=_.length;else{var H=_.regex,z=_.parser,D=P.slice(k),F=H.exec(D)[0];z.call(B,F),P=P.replace(F,"")}}return(function(W){var U=W.afternoon;if(U!==void 0){var V=W.hours;U?V<12&&(W.hours+=12):V===12&&(W.hours=0),delete W.afternoon}})(B),B}}return function(b,$,w){w.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(f=b.parseTwoDigitYear);var E=$.prototype,R=E.parse;E.parse=function(j){var I=j.date,O=j.utc,M=j.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(D,F,W,U){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*D);var V=S(F)(D),G=V.year,q=V.month,K=V.day,Z=V.hours,Q=V.minutes,te=V.seconds,X=V.milliseconds,oe=V.zone,ae=V.week,re=new Date,Y=K||(G||q?1:re.getDate()),ee=G||re.getFullYear(),ie=0;G&&!q||(ie=q>0?q-1:re.getMonth());var ue,se=Z||0,pe=Q||0,fe=te||0,he=X||0;return oe?new Date(Date.UTC(ee,ie,Y,se,pe,fe,he+60*oe.offset*1e3)):W?new Date(Date.UTC(ee,ie,Y,se,pe,fe,he)):(ue=new Date(ee,ie,Y,se,pe,fe,he),ae&&(ue=U(ue).week(ae).toDate()),ue)}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 _=N.length,H=1;H<=_;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===_&&(this.$d=new Date(""))}else R.call(this,j)}}}))})(jv)),jv.exports}var RW=jW();const IW=zo(RW);pa.extend(IW);pa.extend(EW);pa.extend(cW);pa.extend(mW);pa.extend(hW);pa.extend(xW);pa.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 NW={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"},Yl=function(t){var n=NW[t];return n||t.split("_")[0]},MW={getNow:function(){var t=pa();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return pa(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 pa().locale(Yl(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Yl(t)).weekday(0)},getWeek:function(t,n){return n.locale(Yl(t)).week()},getShortWeekDays:function(t){return pa().locale(Yl(t)).localeData().weekdaysMin()},getShortMonths:function(t){return pa().locale(Yl(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Yl(t)).format(r)},parse:function(t,n,r){for(var a=Yl(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=pa(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 y=pa(u,c,!0).locale(a);if(y.isValid())return y}return null}}};function TW(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var ko=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 a8(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,y=e.visible,x=e.onClose,S=i.useContext(ko),b=S.prefixCls,$="".concat(b,"-dropdown"),w=TW(f,p==="rtl");return i.createElement(hf,{showAction:[],hideAction:["click"],popupPlacement:w,builtinPlacements:g,prefixCls:$,popupTransitionName:l,popup:t,popupAlign:a,popupVisible:y,popupClassName:de(r,ne(ne({},"".concat($,"-range"),d),"".concat($,"-rtl"),p==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:c,onPopupVisibleChange:function(R){R||x()}},u)}function oC(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 Is(e){return e==null?[]:Array.isArray(e)?e:[e]}function Rd(e,t,n){var r=Me(e);return r[t]=n,r}function Wg(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(a){e[a]!==void 0&&(n[a]=e[a])}),n}function o8(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 i8(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 l8(e){return Wg(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function iC(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,ce(ce({},u),{},{range:r}))},[a,r]);return l}function s8(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=i.useState([!1,!1]),a=me(r,2),l=a[0],c=a[1],u=function(v,g){c(function(p){return Rd(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 c8(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 zW(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,y=e.yearFormat,x=e.cellYearFormat,S=e.cellQuarterFormat,b=e.dayFormat,$=e.cellDateFormat,w=c8(t,n,r,a,l);return ce(ce({},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:y||"YYYY",cellYearFormat:x||"YYYY",cellQuarterFormat:S||"[Q]Q",cellDateFormat:$||b||"D"})}function u8(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,l=t.showMillisecond,c=t.use12Hours;return ge.useMemo(function(){return zW(e,n,r,a,l,c)},[e,n,r,a,l,c])}function sd(e,t,n){return n??t.some(function(r){return e.includes(r)})}var DW=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function _W(e){var t=Wg(e,DW),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=Ot(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function AW(e){return e&&typeof e=="string"}function d8(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function f8(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(x){return x===!1}),p=[l,c,u].some(function(x){return x===!0}),y=g?!0:!p;l=(d=l)!==null&&d!==void 0?d:y,c=(f=c)!==null&&f!==void 0?f:y,u=(v=u)!==null&&v!==void 0?v:y}return[l,c,u,a]}function m8(e){var t=e.showTime,n=_W(e),r=me(n,2),a=r[0],l=r[1],c=t&&Ot(t)==="object"?t:{},u=ce(ce({defaultOpenValue:c.defaultOpenValue||c.defaultValue},a),c),d=u.showMillisecond,f=u.showHour,v=u.showMinute,g=u.showSecond,p=d8(f,v,g,d),y=f8(p,f,v,g,d),x=me(y,3);return f=x[0],v=x[1],g=x[2],[u,ce(ce({},u),{},{showHour:f,showMinute:v,showSecond:g,showMillisecond:d}),u.format,l]}function v8(e,t,n,r,a){var l=e==="time";if(e==="datetime"||l){for(var c=r,u=o8(e,a,null),d=u,f=[t,n],v=0;v<f.length;v+=1){var g=Is(f[v])[0];if(AW(g)){d=g;break}}var p=c.showHour,y=c.showMinute,x=c.showSecond,S=c.showMillisecond,b=c.use12Hours,$=sd(d,["a","A","LT","LLL","LTS"],b),w=d8(p,y,x,S);w||(p=sd(d,["H","h","k","LT","LLL"]),y=sd(d,["m","LT","LLL"]),x=sd(d,["s","LTS"]),S=sd(d,["SSS"]));var E=f8(w,p,y,x,S),R=me(E,3);p=R[0],y=R[1],x=R[2];var j=t||c8(p,y,x,S,$);return ce(ce({},c),{},{format:j,showHour:p,showMinute:y,showSecond:x,showMillisecond:S,use12Hours:$})}return null}function BW(e,t,n){if(t===!1)return null;var r=t&&Ot(t)==="object"?t:{};return r.clearIcon||n||i.createElement("span",{className:"".concat(e,"-clear-btn")})}var U0=7;function Nl(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function Fy(e,t,n){return Nl(t,n,function(){var r=Math.floor(e.getYear(t)/10),a=Math.floor(e.getYear(n)/10);return r===a})}function bs(e,t,n){return Nl(t,n,function(){return e.getYear(t)===e.getYear(n)})}function l4(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function kW(e,t,n){return Nl(t,n,function(){return bs(e,t,n)&&l4(e,t)===l4(e,n)})}function lC(e,t,n){return Nl(t,n,function(){return bs(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function sC(e,t,n){return Nl(t,n,function(){return bs(e,t,n)&&lC(e,t,n)&&e.getDate(t)===e.getDate(n)})}function g8(e,t,n){return Nl(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function p8(e,t,n){return Nl(t,n,function(){return sC(e,t,n)&&g8(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function yd(e,t,n,r){return Nl(n,r,function(){var a=e.locale.getWeekFirstDate(t,n),l=e.locale.getWeekFirstDate(t,r);return bs(e,a,l)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Sa(e,t,n,r,a){switch(a){case"date":return sC(e,n,r);case"week":return yd(e,t.locale,n,r);case"month":return lC(e,n,r);case"quarter":return kW(e,n,r);case"year":return bs(e,n,r);case"decade":return Fy(e,n,r);case"time":return g8(e,n,r);default:return p8(e,n,r)}}function Kg(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Um(e,t,n,r,a){return Sa(e,t,n,r,a)?!0:e.isAfter(n,r)}function LW(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 Xr(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 Gv(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 HW(e,t,n,r,a){var l=Qt(function(c,u){return!!(n&&n(c,u)||r&&e.isAfter(r,c)&&!Sa(e,t,r,c,u.type)||a&&e.isAfter(c,a)&&!Sa(e,t,a,c,u.type))});return l}function FW(e,t,n){return i.useMemo(function(){var r=o8(e,t,n),a=Is(r),l=a[0],c=Ot(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 VW(e,t,n){return typeof e[0]=="function"||n?!0:t}function WW(e,t,n,r){var a=Qt(function(l,c){var u=ce({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,y=v.disabledSeconds,x=v.disabledMilliseconds,S=r.disabledHours,b=r.disabledMinutes,$=r.disabledSeconds,w=g||S,E=p||b,R=y||$,j=e.getHour(l),I=e.getMinute(l),O=e.getSecond(l),M=e.getMillisecond(l);if(w&&w().includes(j)||E&&E(j).includes(I)||R&&R(j,I).includes(O)||x&&x(j,I,O).includes(M))return!0}return!1});return a}function qm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=i.useMemo(function(){var r=e&&Is(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function h8(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,y=p===void 0?!0:p,x=e.components,S=x===void 0?{}:x,b=e.inputRender,$=e.allowClear,w=e.clearIcon,E=e.needConfirm,R=e.multiple,j=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,_=e.defaultPickerValue,H=qm(B),z=qm(L),D=qm(k),F=qm(_),W=l==="date"&&P?"datetime":l,U=W==="time"||W==="datetime",V=U||R,G=E??U,q=m8(e),K=me(q,4),Z=K[0],Q=K[1],te=K[2],X=K[3],oe=u8(r,Q),ae=i.useMemo(function(){return v8(W,te,X,Z,oe)},[W,te,X,Z,oe]),re=i.useMemo(function(){return ce(ce({},e),{},{prefixCls:u,locale:oe,picker:l,styles:f,classNames:g,order:y,components:ce({input:b},S),clearIcon:BW(u,$,w),showTime:ae,value:H,defaultValue:z,pickerValue:D,defaultPickerValue:F},t==null?void 0:t())},[e]),Y=FW(W,oe,j),ee=me(Y,2),ie=ee[0],ue=ee[1],se=VW(ie,I,R),pe=HW(n,r,O,M,N),fe=WW(n,l,pe,ae),he=i.useMemo(function(){return ce(ce({},re),{},{needConfirm:G,inputReadOnly:se,disabledDate:pe})},[re,G,se,pe]);return[he,W,V,ie,ue,fe]}function KW(e,t,n){var r=Cn(t,{value:e}),a=me(r,2),l=a[0],c=a[1],u=ge.useRef(e),d=ge.useRef(),f=function(){Zt.cancel(d.current)},v=Qt(function(){c(u.current),n&&l!==u.current&&n(u.current)}),g=Qt(function(p,y){f(),u.current=p,p||y?v():d.current=Zt(v)});return ge.useEffect(function(){return f},[]),[l,g]}function b8(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=KW(a,t||!1,r),c=me(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 y8(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 C8(e,t){return i.useMemo(function(){return e||(t?(Zn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=me(n,2),a=r[0],l=r[1];return{label:a,value:l}})):[])},[e,t])}function cC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=i.useRef(t);r.current=t,cs(function(){if(e)r.current(e);else{var a=Zt(function(){r.current(e)},n);return function(){Zt.cancel(a)}}},[e])}function x8(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=me(r,2),l=a[0],c=a[1],u=i.useState(!1),d=me(u,2),f=d[0],v=d[1],g=i.useRef([]),p=i.useRef(null),y=i.useRef(null),x=function(R){p.current=R},S=function(R){return p.current===R},b=function(R){v(R)},$=function(R){return R&&(y.current=R),y.current},w=function(R){var j=g.current,I=new Set(j.filter(function(M){return R[M]||t[M]})),O=j[j.length-1]===0?1:0;return I.size>=2||e[O]?null:O};return cC(f||n,function(){f||(g.current=[],x(null))}),i.useEffect(function(){f&&g.current.push(l)},[f,l]),[f,b,$,l,c,w,g.current,x,S]}function UW(e,t,n,r,a,l){var c=n[n.length-1],u=function(f,v){var g=me(e,2),p=g[0],y=g[1],x=ce(ce({},v),{},{from:i8(e,n)});return c===1&&t[0]&&p&&!Sa(r,a,p,f,x.type)&&r.isAfter(p,f)||c===0&&t[1]&&y&&!Sa(r,a,y,f,x.type)&&r.isAfter(f,y)?!0:l==null?void 0:l(f,x)};return u}function Cd(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 q0=[];function S8(e,t,n,r,a,l,c,u){var d=arguments.length>8&&arguments[8]!==void 0?arguments[8]:q0,f=arguments.length>9&&arguments[9]!==void 0?arguments[9]:q0,v=arguments.length>10&&arguments[10]!==void 0?arguments[10]:q0,g=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,y=arguments.length>13?arguments[13]:void 0,x=c==="time",S=l||0,b=function(D){var F=e.getNow();return x&&(F=Gv(e,F)),d[D]||n[D]||F},$=me(f,2),w=$[0],E=$[1],R=Cn(function(){return b(0)},{value:w}),j=me(R,2),I=j[0],O=j[1],M=Cn(function(){return b(1)},{value:E}),N=me(M,2),P=N[0],B=N[1],L=i.useMemo(function(){var z=[I,P][S];return x?z:Gv(e,z,v[S])},[x,I,P,S,e,v]),k=function(D){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",W=[O,B][S];W(D);var U=[I,P];U[S]=D,g&&(!Sa(e,t,I,U[0],c)||!Sa(e,t,P,U[1],c))&&g(U,{source:F,range:S===1?"end":"start",mode:r})},_=function(D,F){if(u){var W={date:"month",week:"month",month:"year",quarter:"year"},U=W[c];if(U&&!Sa(e,t,D,F,U))return Cd(e,c,F,-1);if(c==="year"&&D){var V=Math.floor(e.getYear(D)/10),G=Math.floor(e.getYear(F)/10);if(V!==G)return Cd(e,c,F,-1)}}return F},H=i.useRef(null);return an(function(){if(a&&!d[S]){var z=x?null:e.getNow();if(H.current!==null&&H.current!==S?z=[I,P][S^1]:n[S]?z=S===0?n[0]:_(n[0],n[1]):n[S^1]&&(z=n[S^1]),z){p&&e.isAfter(p,z)&&(z=p);var D=u?Cd(e,c,z,1):z;y&&e.isAfter(D,y)&&(z=u?Cd(e,c,y,-1):y),k(z,"reset")}}},[a,S,n[S]]),i.useEffect(function(){a?H.current=S:H.current=null},[a,S]),an(function(){a&&d&&d[S]&&k(d[S],"reset")},[a,S]),[L,k]}function $8(e,t){var n=i.useRef(e),r=i.useState({}),a=me(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 qW=[];function w8(e,t,n){var r=function(c){return c.map(function(u){return Xr(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&&!p8(e,g,p)){f=v;break}}return[f<0,f!==0]};return[r,a]}function E8(e,t){return Me(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function GW(e){var t=$8(e),n=me(t,2),r=n[0],a=n[1],l=Qt(function(){a(e)});return i.useEffect(function(){l()},[e]),[r,a]}function O8(e,t,n,r,a,l,c,u,d){var f=Cn(l,{value:c}),v=me(f,2),g=v[0],p=v[1],y=g||qW,x=GW(y),S=me(x,2),b=S[0],$=S[1],w=w8(e,t,n),E=me(w,2),R=E[0],j=E[1],I=Qt(function(M){var N=Me(M);if(r)for(var P=0;P<2;P+=1)N[P]=N[P]||null;else a&&(N=E8(N.filter(function(z){return z}),e));var B=j(b(),N),L=me(B,2),k=L[0],_=L[1];if(!k&&($(N),u)){var H=R(N);u(N,H,{range:_?"end":"start"})}}),O=function(){d&&d(b())};return[y,p,b,I,O]}function j8(e,t,n,r,a,l,c,u,d,f){var v=e.generateConfig,g=e.locale,p=e.picker,y=e.onChange,x=e.allowEmpty,S=e.order,b=l.some(function(k){return k})?!1:S,$=w8(v,g,c),w=me($,2),E=w[0],R=w[1],j=$8(t),I=me(j,2),O=I[0],M=I[1],N=Qt(function(){M(t)});i.useEffect(function(){N()},[t]);var P=Qt(function(k){var _=k===null,H=Me(k||O());if(_)for(var z=Math.max(l.length,H.length),D=0;D<z;D+=1)l[D]||(H[D]=null);b&&H[0]&&H[1]&&(H=E8(H,v)),a(H);var F=H,W=me(F,2),U=W[0],V=W[1],G=!U,q=!V,K=x?(!G||x[0])&&(!q||x[1]):!0,Z=!S||G||q||Sa(v,g,U,V,p)||v.isAfter(V,U),Q=(l[0]||!U||!f(U,{activeIndex:0}))&&(l[1]||!V||!f(V,{from:U,activeIndex:1})),te=_||K&&Z&&Q;if(te){n(H);var X=R(H,t),oe=me(X,1),ae=oe[0];y&&!ae&&y(_&&H.every(function(re){return!re})?null:H,E(H))}return te}),B=Qt(function(k,_){var H=Rd(O(),k,r()[k]);M(H),_&&P()}),L=!u&&!d;return cC(!L,function(){L&&(P(),a(t),N())},2),[B,P]}function R8(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 XW(e,t,n,r,a,l){var c=e;function u(g,p,y){var x=l[g](c),S=y.find(function(E){return E.value===x});if(!S||S.disabled){var b=y.filter(function(E){return!E.disabled}),$=Me(b).reverse(),w=$.find(function(E){return E.value<=x})||b[0];w&&(x=w.value,c=l[p](c,x))}return x}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 Gm(){return[]}function Xm(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:oC(d,l),value:d,disabled:f})}return c}function uC(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,y=r.hideDisabledOptions,x=r.disabledTime,S=r.disabledHours,b=r.disabledMinutes,$=r.disabledSeconds,w=i.useMemo(function(){return n||e.getNow()},[n,e]),E=i.useCallback(function(F){var W=(x==null?void 0:x(F))||{};return[W.disabledHours||S||Gm,W.disabledMinutes||b||Gm,W.disabledSeconds||$||Gm,W.disabledMilliseconds||Gm]},[x,S,b,$]),R=i.useMemo(function(){return E(w)},[w,E]),j=me(R,4),I=j[0],O=j[1],M=j[2],N=j[3],P=i.useCallback(function(F,W,U,V){var G=Xm(0,23,c,y,F()),q=a?G.map(function(te){return ce(ce({},te),{},{label:oC(te.value%12||12,2)})}):G,K=function(X){return Xm(0,59,d,y,W(X))},Z=function(X,oe){return Xm(0,59,v,y,U(X,oe))},Q=function(X,oe,ae){return Xm(0,999,p,y,V(X,oe,ae),3)};return[q,K,Z,Q]},[y,c,a,p,d,v]),B=i.useMemo(function(){return P(I,O,M,N)},[P,I,O,M,N]),L=me(B,4),k=L[0],_=L[1],H=L[2],z=L[3],D=function(W,U){var V=function(){return k},G=_,q=H,K=z;if(U){var Z=E(U),Q=me(Z,4),te=Q[0],X=Q[1],oe=Q[2],ae=Q[3],re=P(te,X,oe,ae),Y=me(re,4),ee=Y[0],ie=Y[1],ue=Y[2],se=Y[3];V=function(){return ee},G=ie,q=ue,K=se}var pe=XW(W,V,G,q,K,e);return pe};return[D,k,_,H,z]}function YW(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(ko),y=p.prefixCls,x=p.locale,S=p.button,b=S===void 0?"button":S,$=v.getNow(),w=uC(v,l,$),E=me(w,1),R=E[0],j=r==null?void 0:r(t),I=g($,{type:t}),O=function(){if(!I){var _=R($);u(_)}},M="".concat(y,"-now"),N="".concat(M,"-btn"),P=a&&i.createElement("li",{className:M},i.createElement("a",{className:de(N,I&&"".concat(N,"-disabled")),"aria-disabled":I,onClick:O},n==="date"?x.today:x.now)),B=f&&i.createElement("li",{className:"".concat(y,"-ok")},i.createElement(b,{disabled:d,onClick:c},x.ok)),L=(P||B)&&i.createElement("ul",{className:"".concat(y,"-ranges")},P,B);return!j&&!L?null:i.createElement("div",{className:"".concat(y,"-footer")},j&&i.createElement("div",{className:"".concat(y,"-footer-extra")},j),L)}function I8(e,t,n){function r(a,l){var c=a.findIndex(function(d){return Sa(e,t,d,l,n)});if(c===-1)return[].concat(Me(a),[l]);var u=Me(a);return u.splice(c,1),u}return r}var Ns=i.createContext(null);function Ug(){return i.useContext(Ns)}function ou(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,y=e.pickerValue,x=e.onSelect,S=e.prevIcon,b=e.nextIcon,$=e.superPrevIcon,w=e.superNextIcon,E=r.getNow(),R={now:E,values:p,pickerValue:y,prefixCls:n,disabledDate:l,minDate:c,maxDate:u,cellRender:d,hoverValue:f,hoverRangeValue:v,onHover:g,locale:a,generateConfig:r,onSelect:x,panelType:t,prevIcon:S,nextIcon:b,superPrevIcon:$,superNextIcon:w};return[R,E]}var hl=i.createContext({});function xf(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,y=e.disabledDate,x=Ug(),S=x.prefixCls,b=x.panelType,$=x.now,w=x.disabledDate,E=x.cellRender,R=x.onHover,j=x.hoverValue,I=x.hoverRangeValue,O=x.generateConfig,M=x.values,N=x.locale,P=x.onSelect,B=y||w,L="".concat(S,"-cell"),k=i.useContext(hl),_=k.onCellDblClick,H=function(q){return M.some(function(K){return K&&Sa(O,N,q,K,b)})},z=[],D=0;D<t;D+=1){for(var F=[],W=void 0,U=function(){var q=D*n+V,K=a(r,q),Z=B==null?void 0:B(K,{type:b});V===0&&(W=K,l&&F.push(l(W)));var Q=!1,te=!1,X=!1;if(p&&I){var oe=me(I,2),ae=oe[0],re=oe[1];Q=Kg(O,ae,re,K),te=Sa(O,N,K,ae,b),X=Sa(O,N,K,re,b)}var Y=u?Xr(K,{locale:N,format:u,generateConfig:O}):void 0,ee=i.createElement("div",{className:"".concat(L,"-inner")},d(K));F.push(i.createElement("td",{key:V,title:Y,className:de(L,ce(ne(ne(ne(ne(ne(ne({},"".concat(L,"-disabled"),Z),"".concat(L,"-hover"),(j||[]).some(function(ie){return Sa(O,N,K,ie,b)})),"".concat(L,"-in-range"),Q&&!te&&!X),"".concat(L,"-range-start"),te),"".concat(L,"-range-end"),X),"".concat(S,"-cell-selected"),!I&&b!=="week"&&H(K)),f(K))),onClick:function(){Z||P(K)},onDoubleClick:function(){!Z&&_&&_()},onMouseEnter:function(){Z||R==null||R(K)},onMouseLeave:function(){Z||R==null||R(null)}},E?E(K,{prefixCls:S,originNode:ee,today:$,type:b,locale:N}):ee))},V=0;V<n;V+=1)U();z.push(i.createElement("tr",{key:D,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 Ym={visibility:"hidden"};function iu(e){var t=e.offset,n=e.superOffset,r=e.onChange,a=e.getStart,l=e.getEnd,c=e.children,u=Ug(),d=u.prefixCls,f=u.prevIcon,v=f===void 0?"‹":f,g=u.nextIcon,p=g===void 0?"›":g,y=u.superPrevIcon,x=y===void 0?"«":y,S=u.superNextIcon,b=S===void 0?"»":S,$=u.minDate,w=u.maxDate,E=u.generateConfig,R=u.locale,j=u.pickerValue,I=u.panelType,O="".concat(d,"-header"),M=i.useContext(hl),N=M.hidePrev,P=M.hideNext,B=M.hideHeader,L=i.useMemo(function(){if(!$||!t||!l)return!1;var G=l(t(-1,j));return!Um(E,R,G,$,I)},[$,t,j,l,E,R,I]),k=i.useMemo(function(){if(!$||!n||!l)return!1;var G=l(n(-1,j));return!Um(E,R,G,$,I)},[$,n,j,l,E,R,I]),_=i.useMemo(function(){if(!w||!t||!a)return!1;var G=a(t(1,j));return!Um(E,R,w,G,I)},[w,t,j,a,E,R,I]),H=i.useMemo(function(){if(!w||!n||!a)return!1;var G=a(n(1,j));return!Um(E,R,w,G,I)},[w,n,j,a,E,R,I]),z=function(q){t&&r(t(q,j))},D=function(q){n&&r(n(q,j))};if(B)return null;var F="".concat(O,"-prev-btn"),W="".concat(O,"-next-btn"),U="".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":R.previousYear,onClick:function(){return D(-1)},tabIndex:-1,className:de(U,k&&"".concat(U,"-disabled")),disabled:k,style:N?Ym:{}},x),t&&i.createElement("button",{type:"button","aria-label":R.previousMonth,onClick:function(){return z(-1)},tabIndex:-1,className:de(F,L&&"".concat(F,"-disabled")),disabled:L,style:N?Ym:{}},v),i.createElement("div",{className:"".concat(O,"-view")},c),t&&i.createElement("button",{type:"button","aria-label":R.nextMonth,onClick:function(){return z(1)},tabIndex:-1,className:de(W,_&&"".concat(W,"-disabled")),disabled:_,style:P?Ym:{}},p),n&&i.createElement("button",{type:"button","aria-label":R.nextYear,onClick:function(){return D(1)},tabIndex:-1,className:de(V,H&&"".concat(V,"-disabled")),disabled:H,style:P?Ym:{}},b))}function qg(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,y=e.onHover,x=e.showWeek,S="".concat(t,"-").concat(r,"-panel"),b="".concat(t,"-cell"),$=v==="week",w=ou(e,v),E=me(w,2),R=E[0],j=E[1],I=l.locale.getWeekFirstDay(a.locale),O=l.setDate(c,1),M=LW(a.locale,l,O),N=l.getMonth(c),P=x===void 0?$:x,B=P?function(G){var q=g==null?void 0:g(G,{type:"week"});return i.createElement("td",{key:"week",className:de(b,"".concat(b,"-week"),ne({},"".concat(b,"-disabled"),q)),onClick:function(){q||p(G)},onMouseEnter:function(){q||y==null||y(G)},onMouseLeave:function(){q||y==null||y(null)}},i.createElement("div",{className:"".concat(b,"-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 _=0;_<U0;_+=1)L.push(i.createElement("th",{key:_},k[(_+I)%U0]));var H=function(q,K){return l.addDate(q,K)},z=function(q){return Xr(q,{locale:a,format:a.cellDateFormat,generateConfig:l})},D=function(q){var K=ne(ne({},"".concat(t,"-cell-in-view"),lC(l,q,c)),"".concat(t,"-cell-today"),sC(l,q,j));return K},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")},Xr(c,{locale:a,format:a.yearFormat,generateConfig:l})),U=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?Xr(c,{locale:a,format:a.monthFormat,generateConfig:l}):F[N]),V=a.monthBeforeYear?[U,W]:[W,U];return i.createElement(Ns.Provider,{value:R},i.createElement("div",{className:de(S,x&&"".concat(S,"-show-week"))},i.createElement(iu,{offset:function(q){return l.addMonth(c,q)},superOffset:function(q){return l.addYear(c,q)},onChange:u,getStart:function(q){return l.setDate(q,1)},getEnd:function(q){var K=l.setDate(q,1);return K=l.addMonth(K,1),l.addDate(K,-1)}},V),i.createElement(xf,Ce({titleFormat:a.fieldDateFormat},e,{colNum:U0,rowNum:6,baseDate:M,headerCells:L,getCellDate:H,getCellText:z,getCellClassName:D,prefixColumn:B,cellSelection:!$}))))}var QW=1/3;function ZW(e,t){var n=i.useRef(!1),r=i.useRef(null),a=i.useRef(null),l=function(){return n.current},c=function(){Zt.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,'"]')),y=g.querySelector("li"),x=function S(){c(),n.current=!0,u.current+=1;var b=g.scrollTop,$=y.offsetTop,w=p.offsetTop,E=w-$;if(w===0&&p!==y||!Jc(g)){u.current<=5&&(r.current=Zt(S));return}var R=b+(E-b)*QW,j=Math.abs(E-R);if(a.current!==null&&a.current<j){c();return}if(a.current=j,j<=1){g.scrollTop=E,c();return}g.scrollTop=R,r.current=Zt(S)};p&&y&&x()}},f=Qt(d);return[f,c,l]}var JW=300;function eK(e){return e.map(function(t){var n=t.value,r=t.label,a=t.disabled;return[n,r,a].join(",")}).join(";")}function cd(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=Ug(),v=f.prefixCls,g=f.cellRender,p=f.now,y=f.locale,x="".concat(v,"-time-panel"),S="".concat(v,"-time-panel-cell"),b=i.useRef(null),$=i.useRef(),w=function(){clearTimeout($.current)},E=ZW(b,n??r),R=me(E,3),j=R[0],I=R[1],O=R[2];an(function(){return j(),w(),function(){I(),w()}},[n,r,eK(t)]);var M=function(B){w();var L=B.target;!O()&&d&&($.current=setTimeout(function(){var k=b.current,_=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,Me(D)),W=D.findIndex(function(V){return V===F}),U=t[W];U&&!U.disabled&&l(U.value)},JW))},N="".concat(x,"-column");return i.createElement("ul",{className:N,ref:b,"data-type":a,onScroll:M},t.map(function(P){var B=P.label,L=P.value,k=P.disabled,_=i.createElement("div",{className:"".concat(S,"-inner")},B);return i.createElement("li",{key:L,className:de(S,ne(ne({},"".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:_,today:p,type:"time",subType:a,locale:y}):_)}))}function tl(e){return e<12}function tK(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,a=e.showMillisecond,l=e.use12Hours,c=e.changeOnScroll,u=Ug(),d=u.prefixCls,f=u.values,v=u.generateConfig,g=u.locale,p=u.onSelect,y=u.onHover,x=y===void 0?function(){}:y,S=u.pickerValue,b=(f==null?void 0:f[0])||null,$=i.useContext(hl),w=$.onCellDblClick,E=uC(v,e,b),R=me(E,5),j=R[0],I=R[1],O=R[2],M=R[3],N=R[4],P=function(Te){var Le=b&&v[Te](b),tt=S&&v[Te](S);return[Le,tt]},B=P("getHour"),L=me(B,2),k=L[0],_=L[1],H=P("getMinute"),z=me(H,2),D=z[0],F=z[1],W=P("getSecond"),U=me(W,2),V=U[0],G=U[1],q=P("getMillisecond"),K=me(q,2),Z=K[0],Q=K[1],te=k===null?null:tl(k)?"am":"pm",X=i.useMemo(function(){return l?tl(k)?I.filter(function(Oe){return tl(Oe.value)}):I.filter(function(Oe){return!tl(Oe.value)}):I},[k,I,l]),oe=function(Te,Le){var tt,Ct=Te.filter(function(We){return!We.disabled});return Le??(Ct==null||(tt=Ct[0])===null||tt===void 0?void 0:tt.value)},ae=oe(I,k),re=i.useMemo(function(){return O(ae)},[O,ae]),Y=oe(re,D),ee=i.useMemo(function(){return M(ae,Y)},[M,ae,Y]),ie=oe(ee,V),ue=i.useMemo(function(){return N(ae,Y,ie)},[N,ae,Y,ie]),se=oe(ue,Z),pe=i.useMemo(function(){if(!l)return[];var Oe=v.getNow(),Te=v.setHour(Oe,6),Le=v.setHour(Oe,18),tt=function(We,nt){var dt=g.cellMeridiemFormat;return dt?Xr(We,{generateConfig:v,locale:g,format:dt}):nt};return[{label:tt(Te,"AM"),value:"am",disabled:I.every(function(Ct){return Ct.disabled||!tl(Ct.value)})},{label:tt(Le,"PM"),value:"pm",disabled:I.every(function(Ct){return Ct.disabled||tl(Ct.value)})}]},[I,l,v,g]),fe=function(Te){var Le=j(Te);p(Le)},he=i.useMemo(function(){var Oe=b||S||v.getNow(),Te=function(tt){return tt!=null};return Te(k)?(Oe=v.setHour(Oe,k),Oe=v.setMinute(Oe,D),Oe=v.setSecond(Oe,V),Oe=v.setMillisecond(Oe,Z)):Te(_)?(Oe=v.setHour(Oe,_),Oe=v.setMinute(Oe,F),Oe=v.setSecond(Oe,G),Oe=v.setMillisecond(Oe,Q)):Te(ae)&&(Oe=v.setHour(Oe,ae),Oe=v.setMinute(Oe,Y),Oe=v.setSecond(Oe,ie),Oe=v.setMillisecond(Oe,se)),Oe},[b,S,k,D,V,Z,ae,Y,ie,se,_,F,G,Q,v]),Se=function(Te,Le){return Te===null?null:v[Le](he,Te)},be=function(Te){return Se(Te,"setHour")},$e=function(Te){return Se(Te,"setMinute")},xe=function(Te){return Se(Te,"setSecond")},ye=function(Te){return Se(Te,"setMillisecond")},Ne=function(Te){return Te===null?null:Te==="am"&&!tl(k)?v.setHour(he,k-12):Te==="pm"&&tl(k)?v.setHour(he,k+12):he},_e=function(Te){fe(be(Te))},Qe=function(Te){fe($e(Te))},Ke=function(Te){fe(xe(Te))},Fe=function(Te){fe(ye(Te))},Xe=function(Te){fe(Ne(Te))},Pe=function(Te){x(be(Te))},je=function(Te){x($e(Te))},Ae=function(Te){x(xe(Te))},Re=function(Te){x(ye(Te))},ze=function(Te){x(Ne(Te))},we={onDblClick:w,changeOnScroll:c};return i.createElement("div",{className:"".concat(d,"-content")},t&&i.createElement(cd,Ce({units:X,value:k,optionalValue:_,type:"hour",onChange:_e,onHover:Pe},we)),n&&i.createElement(cd,Ce({units:re,value:D,optionalValue:F,type:"minute",onChange:Qe,onHover:je},we)),r&&i.createElement(cd,Ce({units:ee,value:V,optionalValue:G,type:"second",onChange:Ke,onHover:Ae},we)),a&&i.createElement(cd,Ce({units:ue,value:Z,optionalValue:Q,type:"millisecond",onChange:Fe,onHover:Re},we)),l&&i.createElement(cd,Ce({units:pe,value:te,type:"meridiem",onChange:Xe,onHover:ze},we)))}function N8(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=ou(e,"time"),v=me(f,1),g=v[0];return i.createElement(Ns.Provider,{value:g},i.createElement("div",{className:de(d)},i.createElement(iu,null,n?Xr(n,{locale:r,format:u,generateConfig:a}):" "),i.createElement(tK,l)))}function nK(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=uC(n,r),v=me(f,1),g=v[0],p=function(b){return l?Gv(n,b,l):Gv(n,b,c)},y=function(b){u==null||u(b&&p(b))},x=function(b){var $=p(b);a(g($,$))};return i.createElement("div",{className:d},i.createElement(qg,Ce({},e,{onSelect:x,onHover:y})),i.createElement(N8,e))}function rK(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=ou(e,"decade"),f=me(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)},y=g(a),x=p(a),S=r.addYear(y,-10),b=function(I,O){return r.addYear(I,O*10)},$=function(I){var O=n.cellYearFormat,M=Xr(I,{locale:n,format:O,generateConfig:r}),N=Xr(r.addYear(I,9),{locale:n,format:O,generateConfig:r});return"".concat(M,"-").concat(N)},w=function(I){return ne({},"".concat(t,"-cell-in-view"),Fy(r,I,y)||Fy(r,I,x)||Kg(r,y,x,I))},E=l?function(j,I){var O=r.setDate(j,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,R="".concat(Xr(y,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(Xr(x,{locale:n,format:n.yearFormat,generateConfig:r}));return i.createElement(Ns.Provider,{value:v},i.createElement("div",{className:u},i.createElement(iu,{superOffset:function(I){return r.addYear(a,I*100)},onChange:c,getStart:g,getEnd:p},R),i.createElement(xf,Ce({},e,{disabledDate:E,colNum:3,rowNum:4,baseDate:S,getCellDate:b,getCellText:$,getCellClassName:w}))))}function aK(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=ou(e,"month"),v=me(f,1),g=v[0],p=r.setMonth(a,0),y=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),x=function(R,j){return r.addMonth(R,j)},S=function(R){var j=r.getMonth(R);return n.monthFormat?Xr(R,{locale:n,format:n.monthFormat,generateConfig:r}):y[j]},b=function(){return ne({},"".concat(t,"-cell-in-view"),!0)},$=l?function(E,R){var j=r.setDate(E,1),I=r.setMonth(j,r.getMonth(j)+1),O=r.addDate(I,-1);return l(j,R)&&l(O,R)}:null,w=i.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){u("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Xr(a,{locale:n,format:n.yearFormat,generateConfig:r}));return i.createElement(Ns.Provider,{value:g},i.createElement("div",{className:d},i.createElement(iu,{superOffset:function(R){return r.addYear(a,R)},onChange:c,getStart:function(R){return r.setMonth(R,0)},getEnd:function(R){return r.setMonth(R,11)}},w),i.createElement(xf,Ce({},e,{disabledDate:$,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:p,getCellDate:x,getCellText:S,getCellClassName:b}))))}function oK(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=ou(e,"quarter"),f=me(d,1),v=f[0],g=r.setMonth(a,0),p=function($,w){return r.addMonth($,w*3)},y=function($){return Xr($,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},x=function(){return ne({},"".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")},Xr(a,{locale:n,format:n.yearFormat,generateConfig:r}));return i.createElement(Ns.Provider,{value:v},i.createElement("div",{className:u},i.createElement(iu,{superOffset:function($){return r.addYear(a,$)},onChange:l,getStart:function($){return r.setMonth($,0)},getEnd:function($){return r.setMonth($,11)}},S),i.createElement(xf,Ce({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:g,getCellDate:p,getCellText:y,getCellClassName:x}))))}function iK(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 y=me(c,2),x=y[0],S=y[1],b=yd(n,u,x,g),$=yd(n,u,S,g);p["".concat(d,"-range-start")]=b,p["".concat(d,"-range-end")]=$,p["".concat(d,"-range-hover")]=!b&&!$&&Kg(n,x,S,g)}return l&&(p["".concat(d,"-hover")]=l.some(function(w){return yd(n,u,g,w)})),de(d,ne({},"".concat(d,"-selected"),!c&&yd(n,u,a,g)),p)};return i.createElement(qg,Ce({},e,{mode:"week",panelName:"week",rowClassName:f}))}function lK(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=ou(e,"year"),v=me(f,1),g=v[0],p=function(O){var M=Math.floor(r.getYear(O)/10)*10;return r.setYear(O,M)},y=function(O){var M=p(O);return r.addYear(M,9)},x=p(a),S=y(a),b=r.addYear(x,-1),$=function(O,M){return r.addYear(O,M)},w=function(O){return Xr(O,{locale:n,format:n.cellYearFormat,generateConfig:r})},E=function(O){return ne({},"".concat(t,"-cell-in-view"),bs(r,O,x)||bs(r,O,S)||Kg(r,x,S,O))},R=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,j=i.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){u("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},Xr(x,{locale:n,format:n.yearFormat,generateConfig:r}),"-",Xr(S,{locale:n,format:n.yearFormat,generateConfig:r}));return i.createElement(Ns.Provider,{value:g},i.createElement("div",{className:d},i.createElement(iu,{superOffset:function(O){return r.addYear(a,O*10)},onChange:c,getStart:p,getEnd:y},j),i.createElement(xf,Ce({},e,{disabledDate:R,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:b,getCellDate:$,getCellText:w,getCellClassName:E}))))}var sK={date:qg,datetime:nK,week:iK,month:aK,quarter:oK,year:lK,decade:rK,time:N8};function cK(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,y=e.onSelect,x=e.defaultPickerValue,S=e.pickerValue,b=e.onPickerValueChange,$=e.mode,w=e.onPanelChange,E=e.picker,R=E===void 0?"date":E,j=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,_=((n=i.useContext(ko))===null||n===void 0?void 0:n.prefixCls)||c||"rc-picker",H=i.useRef();i.useImperativeHandle(t,function(){return{nativeElement:H.current}});var z=m8(e),D=me(z,4),F=D[0],W=D[1],U=D[2],V=D[3],G=u8(r,W),q=R==="date"&&j?"datetime":R,K=i.useMemo(function(){return v8(q,U,V,F,G)},[q,U,V,F,G]),Z=a.getNow(),Q=Cn(R,{value:$,postState:function(ze){return ze||"date"}}),te=me(Q,2),X=te[0],oe=te[1],ae=X==="date"&&K?"datetime":X,re=I8(a,r,q),Y=Cn(v,{value:g}),ee=me(Y,2),ie=ee[0],ue=ee[1],se=i.useMemo(function(){var Re=Is(ie).filter(function(ze){return ze});return f?Re:Re.slice(0,1)},[ie,f]),pe=Qt(function(Re){ue(Re),p&&(Re===null||se.length!==Re.length||se.some(function(ze,we){return!Sa(a,r,ze,Re[we],q)}))&&(p==null||p(f?Re:Re[0]))}),fe=Qt(function(Re){if(y==null||y(Re),X===R){var ze=f?re(se,Re):[Re];pe(ze)}}),he=Cn(x||se[0]||Z,{value:S}),Se=me(he,2),be=Se[0],$e=Se[1];i.useEffect(function(){se[0]&&!S&&$e(se[0])},[se[0]]);var xe=function(ze,we){w==null||w(ze||S,we||X)},ye=function(ze){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;$e(ze),b==null||b(ze),we&&xe(ze)},Ne=function(ze,we){oe(ze),we&&ye(we),xe(we,ze)},_e=function(ze){if(fe(ze),ye(ze),X!==R){var we=["decade","year"],Oe=[].concat(we,["month"]),Te={quarter:[].concat(we,["quarter"]),week:[].concat(Me(Oe),["week"]),date:[].concat(Me(Oe),["date"])},Le=Te[R]||Oe,tt=Le.indexOf(X),Ct=Le[tt+1];Ct&&Ne(Ct,ze)}},Qe=i.useMemo(function(){var Re,ze;if(Array.isArray(O)){var we=me(O,2);Re=we[0],ze=we[1]}else Re=O;return!Re&&!ze?null:(Re=Re||ze,ze=ze||Re,a.isAfter(Re,ze)?[ze,Re]:[Re,ze])},[O,a]),Ke=iC(M,N,P),Fe=L[ae]||sK[ae]||qg,Xe=i.useContext(hl),Pe=i.useMemo(function(){return ce(ce({},Xe),{},{hideHeader:k})},[Xe,k]),je="".concat(_,"-panel"),Ae=Wg(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return i.createElement(hl.Provider,{value:Pe},i.createElement("div",{ref:H,tabIndex:d,className:de(je,ne({},"".concat(je,"-rtl"),l==="rtl"))},i.createElement(Fe,Ce({},Ae,{showTime:K,prefixCls:_,locale:G,generateConfig:a,onModeChange:Ne,pickerValue:be,onPickerValueChange:function(ze){ye(ze,!0)},value:se[0],onSelect:_e,values:se,cellRender:Ke,hoverRangeValue:Qe,hoverValue:I}))))}var G0=i.memo(i.forwardRef(cK));function uK(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(ko),v=f.prefixCls,g=f.generateConfig,p=i.useCallback(function(w,E){return Cd(g,t,w,E)},[g,t]),y=i.useMemo(function(){return p(r,1)},[r,p]),x=function(E){a(p(E,-1))},S={onCellDblClick:function(){l&&c()}},b=t==="time",$=ce(ce({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:b});return u?$.hoverRangeValue=d:$.hoverValue=d,n?i.createElement("div",{className:"".concat(v,"-panels")},i.createElement(hl.Provider,{value:ce(ce({},S),{},{hideNext:!0})},i.createElement(G0,$)),i.createElement(hl.Provider,{value:ce(ce({},S),{},{hidePrev:!0})},i.createElement(G0,Ce({},$,{pickerValue:y,onPickerValueChange:x})))):i.createElement(hl.Provider,{value:ce({},S)},i.createElement(G0,$))}function s4(e){return typeof e=="function"?e():e}function dK(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(s4(d))},onMouseEnter:function(){a(s4(d))},onMouseLeave:function(){a(null)}},u)}))):null}function M8(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,y=e.onBlur,x=e.onPanelMouseDown,S=e.direction,b=e.value,$=e.onSelect,w=e.isInvalid,E=e.defaultOpenValue,R=e.onOk,j=e.onSubmit,I=i.useContext(ko),O=I.prefixCls,M="".concat(O,"-panel"),N=S==="rtl",P=i.useRef(null),B=i.useRef(null),L=i.useState(0),k=me(L,2),_=k[0],H=k[1],z=i.useState(0),D=me(z,2),F=D[0],W=D[1],U=i.useState(0),V=me(U,2),G=V[0],q=V[1],K=function(_e){_e.width&&H(_e.width)},Z=me(d,3),Q=Z[0],te=Z[1],X=Z[2],oe=i.useState(0),ae=me(oe,2),re=ae[0],Y=ae[1];i.useEffect(function(){Y(10)},[Q]),i.useEffect(function(){if(l&&B.current){var Ne,_e=((Ne=P.current)===null||Ne===void 0?void 0:Ne.offsetWidth)||0,Qe=B.current.getBoundingClientRect();if(!Qe.height||Qe.right<0){Y(function(Pe){return Math.max(0,Pe-1)});return}var Ke=(N?te-_e:Q)-Qe.left;if(q(Ke),_&&_<X){var Fe=N?Qe.right-(te-_e+_):Q+_e-Qe.left-_,Xe=Math.max(0,Fe);W(Xe)}else W(0)}},[re,N,_,Q,te,X,l]);function ee(Ne){return Ne.filter(function(_e){return _e})}var ie=i.useMemo(function(){return ee(Is(b))},[b]),ue=r==="time"&&!ie.length,se=i.useMemo(function(){return ue?ee([E]):ie},[ue,ie,E]),pe=ue?E:ie,fe=i.useMemo(function(){return se.length?se.some(function(Ne){return w(Ne)}):!0},[se,w]),he=function(){ue&&$(E),R(),j()},Se=i.createElement("div",{className:"".concat(O,"-panel-layout")},i.createElement(dK,{prefixCls:O,presets:f,onClick:g,onHover:v}),i.createElement("div",null,i.createElement(uK,Ce({},e,{value:pe})),i.createElement(YW,Ce({},e,{showNow:c?!1:a,invalid:fe,onSubmit:he}))));t&&(Se=t(Se));var be="".concat(M,"-container"),$e="marginLeft",xe="marginRight",ye=i.createElement("div",{onMouseDown:x,tabIndex:-1,className:de(be,"".concat(O,"-").concat(n,"-panel-container")),style:ne(ne({},N?xe:$e,F),N?$e:xe,"auto"),onFocus:p,onBlur:y},Se);return l&&(ye=i.createElement("div",{onMouseDown:x,ref:B,className:de("".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(ha,{onResize:K},ye))),ye}function T8(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,y=e.onInputChange,x=e.onInvalid,S=e.open,b=e.onOpenChange,$=e.onKeyDown,w=e.onChange,E=e.activeHelp,R=e.name,j=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,_=function(G,q){var K=a.locale.parse(l.locale,G,[q]);return K&&a.isValidate(K)?K:null},H=n[0],z=i.useCallback(function(V){return Xr(V,{locale:l,format:H,generateConfig:a})},[l,a,H]),D=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 q=0;q<n.length;q+=1){var K=n[q];if(typeof K=="string"){var Z=_(G,K);if(Z)return Z}}return!1},U=function(G){function q(Q){return G!==void 0?Q[G]:Q}var K=Nr(e,{aria:!0,data:!0}),Z=ce(ce({},K),{},{format:r,validateFormat:function(te){return!!W(te)},preserveInvalidOnBlur:c,readOnly:u,required:d,"aria-required":f,name:R,autoComplete:j,size:F,id:q(I),value:q(D)||"",invalid:q(M),placeholder:q(N),active:B===G,helped:L||E&&B===G,disabled:q(P),onFocus:function(te){g(te,G)},onBlur:function(te){p(te,G)},onSubmit:v,onChange:function(te){y();var X=W(te);if(X){x(!1,G),w(X,G);return}x(!!te,G)},onHelp:function(){b(!0,{index:G})},onKeyDown:function(te){var X=!1;if($==null||$(te,function(){X=!0}),!te.defaultPrevented&&!X)switch(te.key){case"Escape":b(!1,{index:G});break;case"Enter":S||b(!0);break}}},t==null?void 0:t({valueTexts:D}));return Object.keys(Z).forEach(function(Q){Z[Q]===void 0&&delete Z[Q]}),Z};return[U,z]}var fK=["onMouseEnter","onMouseLeave"];function P8(e){return i.useMemo(function(){return Wg(e,fK)},[e])}var mK=["icon","type"],vK=["onClear"];function Gg(e){var t=e.icon,n=e.type,r=Lt(e,mK),a=i.useContext(ko),l=a.prefixCls;return t?i.createElement("span",Ce({className:"".concat(l,"-").concat(n)},r),t):null}function Vy(e){var t=e.onClear,n=Lt(e,vK);return i.createElement(Gg,Ce({},n,{type:"clear",role:"button",onMouseDown:function(a){a.preventDefault()},onClick:function(a){a.stopPropagation(),t()}}))}var X0=["YYYY","MM","DD","HH","mm","ss","SSS"],c4="顧",gK=(function(){function e(t){gr(this,e),ne(this,"format",void 0),ne(this,"maskFormat",void 0),ne(this,"cells",void 0),ne(this,"maskCells",void 0),this.format=t;var n=X0.map(function(u){return"(".concat(u,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(u){return c4.repeat(u.length)});var a=new RegExp("(".concat(X0.join("|"),")")),l=(t.split(a)||[]).filter(function(u){return u}),c=0;this.cells=l.map(function(u){var d=X0.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 pr(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!==c4&&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 pK(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 hK=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],Wy=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,y=e.preserveInvalidOnBlur,x=y===void 0?!1:y,S=e.invalid,b=e.clearIcon,$=Lt(e,hK),w=e.value,E=e.onFocus,R=e.onBlur,j=e.onMouseUp,I=i.useContext(ko),O=I.prefixCls,M=I.input,N=M===void 0?"input":M,P="".concat(O,"-input"),B=i.useState(!1),L=me(B,2),k=L[0],_=L[1],H=i.useState(w),z=me(H,2),D=z[0],F=z[1],W=i.useState(""),U=me(W,2),V=U[0],G=U[1],q=i.useState(null),K=me(q,2),Z=K[0],Q=K[1],te=i.useState(null),X=me(te,2),oe=X[0],ae=X[1],re=D||"";i.useEffect(function(){F(w)},[w]);var Y=i.useRef(),ee=i.useRef();i.useImperativeHandle(t,function(){return{nativeElement:Y.current,inputElement:ee.current,focus:function(Re){ee.current.focus(Re)},blur:function(){ee.current.blur()}}});var ie=i.useMemo(function(){return new gK(c||"")},[c]),ue=i.useMemo(function(){return f?[0,0]:ie.getSelection(Z)},[ie,Z,f]),se=me(ue,2),pe=se[0],fe=se[1],he=function(Re){Re&&Re!==c&&Re!==w&&v()},Se=Qt(function(Ae){u(Ae)&&d(Ae),F(Ae),he(Ae)}),be=function(Re){if(!c){var ze=Re.target.value;he(ze),F(ze),d(ze)}},$e=function(Re){var ze=Re.clipboardData.getData("text");u(ze)&&Se(ze)},xe=i.useRef(!1),ye=function(){xe.current=!0},Ne=function(Re){var ze=Re.target,we=ze.selectionStart,Oe=ie.getMaskCellIndex(we);Q(Oe),ae({}),j==null||j(Re),xe.current=!1},_e=function(Re){_(!0),Q(0),G(""),E(Re)},Qe=function(Re){R(Re)},Ke=function(Re){_(!1),Qe(Re)};cC(n,function(){!n&&!x&&F(w)});var Fe=function(Re){Re.key==="Enter"&&u(re)&&g(),p==null||p(Re)},Xe=function(Re){Fe(Re);var ze=Re.key,we=null,Oe=null,Te=fe-pe,Le=c.slice(pe,fe),tt=function(dt){Q(function(at){var bt=at+dt;return bt=Math.max(bt,0),bt=Math.min(bt,ie.size()-1),bt})},Ct=function(dt){var at=pK(Le),bt=me(at,3),zt=bt[0],jt=bt[1],ct=bt[2],wt=re.slice(pe,fe),xt=Number(wt);if(isNaN(xt))return String(ct||(dt>0?zt:jt));var et=xt+dt,Ve=jt-zt+1;return String(zt+(Ve+et-zt)%Ve)};switch(ze){case"Backspace":case"Delete":we="",Oe=Le;break;case"ArrowLeft":we="",tt(-1);break;case"ArrowRight":we="",tt(1);break;case"ArrowUp":we="",Oe=Ct(1);break;case"ArrowDown":we="",Oe=Ct(-1);break;default:isNaN(Number(ze))||(we=V+ze,Oe=we);break}if(we!==null&&(G(we),we.length>=Te&&(tt(1),G(""))),Oe!==null){var We=re.slice(0,pe)+oC(Oe,Te)+re.slice(fe);Se(We.slice(0,c.length))}ae({})},Pe=i.useRef();an(function(){if(!(!k||!c||xe.current)){if(!ie.match(re)){Se(c);return}return ee.current.setSelectionRange(pe,fe),Pe.current=Zt(function(){ee.current.setSelectionRange(pe,fe)}),function(){Zt.cancel(Pe.current)}}},[ie,c,k,re,Z,pe,fe,oe,Se]);var je=c?{onFocus:_e,onBlur:Ke,onKeyDown:Xe,onMouseDown:ye,onMouseUp:Ne,onPaste:$e}:{};return i.createElement("div",{ref:Y,className:de(P,ne(ne({},"".concat(P,"-active"),n&&a),"".concat(P,"-placeholder"),f))},i.createElement(N,Ce({ref:ee,"aria-invalid":S,autoComplete:"off"},$,{onKeyDown:Fe,onBlur:Qe},je,{value:re,onChange:be})),i.createElement(Gg,{type:"suffix",icon:l}),b)}),bK=["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"],yK=["index"];function CK(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,y=e.onClick,x=e.onClear,S=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var b=e.disabled,$=e.invalid;e.inputReadOnly;var w=e.direction;e.onOpenChange;var E=e.onActiveInfo;e.placement;var R=e.onMouseDown;e.required,e["aria-required"];var j=e.autoFocus,I=e.tabIndex,O=Lt(e,bK),M=w==="rtl",N=i.useContext(ko),P=N.prefixCls,B=i.useMemo(function(){if(typeof n=="string")return[n];var oe=n||{};return[oe.start,oe.end]},[n]),L=i.useRef(),k=i.useRef(),_=i.useRef(),H=function(ae){var re;return(re=[k,_][ae])===null||re===void 0?void 0:re.current};i.useImperativeHandle(t,function(){return{nativeElement:L.current,focus:function(ae){if(Ot(ae)==="object"){var re,Y=ae||{},ee=Y.index,ie=ee===void 0?0:ee,ue=Lt(Y,yK);(re=H(ie))===null||re===void 0||re.focus(ue)}else{var se;(se=H(ae??0))===null||se===void 0||se.focus()}},blur:function(){var ae,re;(ae=H(0))===null||ae===void 0||ae.blur(),(re=H(1))===null||re===void 0||re.blur()}}});var z=P8(O),D=i.useMemo(function(){return Array.isArray(v)?v:[v,v]},[v]),F=T8(ce(ce({},e),{},{id:B,placeholder:D})),W=me(F,1),U=W[0],V=i.useState({position:"absolute",width:0}),G=me(V,2),q=G[0],K=G[1],Z=Qt(function(){var oe=H(d);if(oe){var ae=oe.nativeElement.getBoundingClientRect(),re=L.current.getBoundingClientRect(),Y=ae.left-re.left;K(function(ee){return ce(ce({},ee),{},{width:ae.width,left:Y})}),E([ae.left,ae.right,re.width])}});i.useEffect(function(){Z()},[d]);var Q=a&&(S[0]&&!b[0]||S[1]&&!b[1]),te=j&&!b[0],X=j&&!te&&!b[1];return i.createElement(ha,{onResize:Z},i.createElement("div",Ce({},z,{className:de(P,"".concat(P,"-range"),ne(ne(ne(ne({},"".concat(P,"-focused"),f),"".concat(P,"-disabled"),b.every(function(oe){return oe})),"".concat(P,"-invalid"),$.some(function(oe){return oe})),"".concat(P,"-rtl"),M),g),style:p,ref:L,onClick:y,onMouseDown:function(ae){var re=ae.target;re!==k.current.inputElement&&re!==_.current.inputElement&&ae.preventDefault(),R==null||R(ae)}}),r&&i.createElement("div",{className:"".concat(P,"-prefix")},r),i.createElement(Wy,Ce({ref:k},U(0),{autoFocus:te,tabIndex:I,"date-range":"start"})),i.createElement("div",{className:"".concat(P,"-range-separator")},u),i.createElement(Wy,Ce({ref:_},U(1),{autoFocus:X,tabIndex:I,"date-range":"end"})),i.createElement("div",{className:"".concat(P,"-active-bar"),style:q}),i.createElement(Gg,{type:"suffix",icon:l}),Q&&i.createElement(Vy,{icon:a,onClear:x})))}var xK=i.forwardRef(CK);function u4(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function Qm(e){return e===1?"end":"start"}function SK(e,t){var n=h8(e,function(){var dn=e.disabled,pt=e.allowEmpty,It=u4(dn,!1),vn=u4(pt,!1);return{disabled:It,allowEmpty:vn}}),r=me(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,y=a.defaultValue,x=a.value,S=a.needConfirm,b=a.onKeyDown,$=a.disabled,w=a.allowEmpty,E=a.disabledDate,R=a.minDate,j=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,_=a.showTime,H=a.mode,z=a.onPanelChange,D=a.onCalendarChange,F=a.onOk,W=a.defaultPickerValue,U=a.pickerValue,V=a.onPickerValueChange,G=a.inputReadOnly,q=a.suffixIcon,K=a.onFocus,Z=a.onBlur,Q=a.presets,te=a.ranges,X=a.components,oe=a.cellRender,ae=a.dateRender,re=a.monthCellRender,Y=a.onClick,ee=y8(t),ie=b8(O,I,$,M),ue=me(ie,2),se=ue[0],pe=ue[1],fe=function(pt,It){($.some(function(vn){return!vn})||!pt)&&pe(pt,It)},he=O8(P,N,u,!0,!1,y,x,D,F),Se=me(he,5),be=Se[0],$e=Se[1],xe=Se[2],ye=Se[3],Ne=Se[4],_e=xe(),Qe=x8($,w,se),Ke=me(Qe,9),Fe=Ke[0],Xe=Ke[1],Pe=Ke[2],je=Ke[3],Ae=Ke[4],Re=Ke[5],ze=Ke[6],we=Ke[7],Oe=Ke[8],Te=function(pt,It){Xe(!0),K==null||K(pt,{range:Qm(It??je)})},Le=function(pt,It){Xe(!1),Z==null||Z(pt,{range:Qm(It??je)})},tt=i.useMemo(function(){if(!_)return null;var dn=_.disabledTime,pt=dn?function(It){var vn=Qm(je),zn=i8(_e,ze,je);return dn(It,vn,{from:zn})}:void 0;return ce(ce({},_),{},{disabledTime:pt})},[_,je,_e,ze]),Ct=Cn([B,B],{value:H}),We=me(Ct,2),nt=We[0],dt=We[1],at=nt[je]||B,bt=at==="date"&&tt?"datetime":at,zt=bt===B&&bt!=="time",jt=R8(B,at,L,k,!0),ct=j8(a,be,$e,xe,ye,$,u,Fe,se,f),wt=me(ct,2),xt=wt[0],et=wt[1],Ve=UW(_e,$,ze,P,N,E),qe=s8(_e,f,w),mt=me(qe,2),Tt=mt[0],Nt=mt[1],Wt=S8(P,N,_e,nt,se,je,l,zt,W,U,tt==null?void 0:tt.defaultOpenValue,V,R,j),ft=me(Wt,2),lt=ft[0],At=ft[1],Gt=Qt(function(dn,pt,It){var vn=Rd(nt,je,pt);if((vn[0]!==nt[0]||vn[1]!==nt[1])&&dt(vn),z&&It!==!1){var zn=Me(_e);dn&&(zn[je]=dn),z(zn,vn)}}),on=function(pt,It){return Rd(_e,It,pt)},Jt=function(pt,It){var vn=_e;pt&&(vn=on(pt,je)),we(je);var zn=Re(vn);ye(vn),xt(je,zn===null),zn===null?fe(!1,{force:!0}):It||ee.current.focus({index:zn})},pn=function(pt){var It,vn=pt.target.getRootNode();if(!ee.current.nativeElement.contains((It=vn.activeElement)!==null&&It!==void 0?It:document.activeElement)){var zn=$.findIndex(function(tr){return!tr});zn>=0&&ee.current.focus({index:zn})}fe(!0),Y==null||Y(pt)},Xt=function(){et(null),fe(!1,{force:!0})},fn=i.useState(null),st=me(fn,2),St=st[0],yt=st[1],Ye=i.useState(null),Ze=me(Ye,2),ut=Ze[0],Dt=Ze[1],Ut=i.useMemo(function(){return ut||_e},[_e,ut]);i.useEffect(function(){se||Dt(null)},[se]);var gt=i.useState([0,0,0]),Mt=me(gt,2),Vt=Mt[0],wn=Mt[1],An=C8(Q,te),Pn=function(pt){Dt(pt),yt("preset")},Un=function(pt){var It=et(pt);It&&fe(!1,{force:!0})},Rn=function(pt){Jt(pt)},kn=function(pt){Dt(pt?on(pt,je):null),yt("cell")},wr=function(pt){fe(!0),Te(pt)},Pr=function(){Pe("panel")},Cr=function(pt){var It=Rd(_e,je,pt);ye(It),!S&&!c&&l===bt&&Jt(pt)},Sn=function(){fe(!1)},Bt=iC(oe,ae,re,Qm(je)),kt=_e[je]||null,ln=Qt(function(dn){return f(dn,{activeIndex:je})}),Pt=i.useMemo(function(){var dn=Nr(a,!1),pt=En(a,[].concat(Me(Object.keys(dn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return pt},[a]),_t=i.createElement(M8,Ce({},Pt,{showNow:jt,showTime:tt,range:!0,multiplePanel:zt,activeInfo:Vt,disabledDate:Ve,onFocus:wr,onBlur:Le,onPanelMouseDown:Pr,picker:B,mode:at,internalMode:bt,onPanelChange:Gt,format:d,value:kt,isInvalid:ln,onChange:null,onSelect:Cr,pickerValue:lt,defaultOpenValue:Is(_==null?void 0:_.defaultOpenValue)[je],onPickerValueChange:At,hoverValue:Ut,onHover:kn,needConfirm:S,onSubmit:Jt,onOk:Ne,presets:An,onPresetHover:Pn,onPresetSubmit:Un,onNow:Rn,cellRender:Bt})),gn=function(pt,It){var vn=on(pt,It);ye(vn)},In=function(){Pe("input")},Jn=function(pt,It){var vn=ze.length,zn=ze[vn-1];if(vn&&zn!==It&&S&&!w[zn]&&!Oe(zn)&&_e[zn]){ee.current.focus({index:zn});return}Pe("input"),fe(!0,{inherit:!0}),je!==It&&se&&!S&&c&&Jt(null,!0),Ae(It),Te(pt,It)},Er=function(pt,It){if(fe(!1),!S&&Pe()==="input"){var vn=Re(_e);xt(je,vn===null)}Le(pt,It)},er=function(pt,It){pt.key==="Tab"&&Jt(null,!0),b==null||b(pt,It)},jr=i.useMemo(function(){return{prefixCls:v,locale:N,generateConfig:P,button:X.button,input:X.input}},[v,N,P,X.button,X.input]);return an(function(){se&&je!==void 0&&Gt(null,B,!1)},[se,je,B]),an(function(){var dn=Pe();!se&&dn==="input"&&(fe(!1),Jt(null,!0)),!se&&c&&!S&&dn==="panel"&&(fe(!0),Jt())},[se]),i.createElement(ko.Provider,{value:jr},i.createElement(a8,Ce({},l8(a),{popupElement:_t,popupStyle:g.popup,popupClassName:p.popup,visible:se,onClose:Sn,range:!0}),i.createElement(xK,Ce({},a,{ref:ee,suffixIcon:q,activeIndex:Fe||se?je:null,activeHelp:!!ut,allHelp:!!ut&&St==="preset",focused:Fe,onFocus:Jn,onBlur:Er,onKeyDown:er,onSubmit:Jt,value:Ut,maskFormat:d,onChange:gn,onInputChange:In,format:u,inputReadOnly:G,disabled:$,open:se,onOpenChange:fe,onClick:pn,onClear:Xt,invalid:Tt,onInvalid:Nt,onActiveInfo:wn}))))}var $K=i.forwardRef(SK);function wK(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 y(b,$){return i.createElement("span",{className:de("".concat(g,"-item")),title:typeof b=="string"?b:null},i.createElement("span",{className:"".concat(g,"-item-content")},b),!u&&$&&i.createElement("span",{onMouseDown:function(E){E.preventDefault()},onClick:$,className:"".concat(g,"-item-remove")},l))}function x(b){var $=c(b),w=function(R){R&&R.stopPropagation(),r(b)};return y($,w)}function S(b){var $="+ ".concat(b.length," ...");return y($)}return i.createElement("div",{className:v},i.createElement(Oo,{prefixCls:p,data:n,renderItem:x,renderRest:S,itemKey:function($){return c($)},maxCount:d}),!n.length&&i.createElement("span",{className:"".concat(t,"-selection-placeholder")},f))}var EK=["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 OK(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,y=e.onClear,x=e.internalPicker,S=e.value,b=e.onChange,$=e.onSubmit;e.onInputChange;var w=e.multiple,E=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var R=e.disabled,j=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,EK),L=I==="rtl",k=i.useContext(ko),_=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 D=P8(B),F=function(te){b([te])},W=function(te){var X=S.filter(function(oe){return oe&&!Sa(d,u,oe,te,x)});b(X),n||$()},U=T8(ce(ce({},e),{},{onChange:F}),function(Q){var te=Q.valueTexts;return{value:te[0]||"",active:c}}),V=me(U,2),G=V[0],q=V[1],K=!!(a&&S.length&&!R),Z=w?i.createElement(i.Fragment,null,i.createElement(wK,{prefixCls:_,value:S,onRemove:W,formatDate:q,maxTagCount:E,disabled:R,removeIcon:P,placeholder:f}),i.createElement("input",{className:"".concat(_,"-multiple-input"),value:S.map(q).join(","),ref:z,readOnly:!0,autoFocus:M,tabIndex:N}),i.createElement(Gg,{type:"suffix",icon:l}),K&&i.createElement(Vy,{icon:a,onClear:y})):i.createElement(Wy,Ce({ref:z},G(),{autoFocus:M,tabIndex:N,suffixIcon:l,clearIcon:K&&i.createElement(Vy,{icon:a,onClear:y}),showActiveCls:!1}));return i.createElement("div",Ce({},D,{className:de(_,ne(ne(ne(ne(ne({},"".concat(_,"-multiple"),w),"".concat(_,"-focused"),c),"".concat(_,"-disabled"),R),"".concat(_,"-invalid"),j),"".concat(_,"-rtl"),L),v),style:g,ref:H,onClick:p,onMouseDown:function(te){var X,oe=te.target;oe!==((X=z.current)===null||X===void 0?void 0:X.inputElement)&&te.preventDefault(),O==null||O(te)}}),r&&i.createElement("div",{className:"".concat(_,"-prefix")},r),Z)}var jK=i.forwardRef(OK);function RK(e,t){var n=h8(e),r=me(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,y=v.classNames,x=v.order,S=v.defaultValue,b=v.value,$=v.needConfirm,w=v.onChange,E=v.onKeyDown,R=v.disabled,j=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,_=v.showNow,H=v.showToday,z=v.showTime,D=v.mode,F=v.onPanelChange,W=v.onCalendarChange,U=v.onOk,V=v.multiple,G=v.defaultPickerValue,q=v.pickerValue,K=v.onPickerValueChange,Z=v.inputReadOnly,Q=v.suffixIcon,te=v.removeIcon,X=v.onFocus,oe=v.onBlur,ae=v.presets,re=v.components,Y=v.cellRender,ee=v.dateRender,ie=v.monthCellRender,ue=v.onClick,se=y8(t);function pe(Pt){return Pt===null?null:V?Pt:Pt[0]}var fe=I8(L,B,l),he=b8(N,M,[R],P),Se=me(he,2),be=Se[0],$e=Se[1],xe=function(_t,gn,In){if(W){var Jn=ce({},In);delete Jn.range,W(pe(_t),pe(gn),Jn)}},ye=function(_t){U==null||U(pe(_t))},Ne=O8(L,B,u,!1,x,S,b,xe,ye),_e=me(Ne,5),Qe=_e[0],Ke=_e[1],Fe=_e[2],Xe=_e[3],Pe=_e[4],je=Fe(),Ae=x8([R]),Re=me(Ae,4),ze=Re[0],we=Re[1],Oe=Re[2],Te=Re[3],Le=function(_t){we(!0),X==null||X(_t,{})},tt=function(_t){we(!1),oe==null||oe(_t,{})},Ct=Cn(k,{value:D}),We=me(Ct,2),nt=We[0],dt=We[1],at=nt==="date"&&z?"datetime":nt,bt=R8(k,nt,_,H),zt=w&&function(Pt,_t){w(pe(Pt),pe(_t))},jt=j8(ce(ce({},a),{},{onChange:zt}),Qe,Ke,Fe,Xe,[],u,ze,be,f),ct=me(jt,2),wt=ct[1],xt=s8(je,f),et=me(xt,2),Ve=et[0],qe=et[1],mt=i.useMemo(function(){return Ve.some(function(Pt){return Pt})},[Ve]),Tt=function(_t,gn){if(K){var In=ce(ce({},gn),{},{mode:gn.mode[0]});delete In.range,K(_t[0],In)}},Nt=S8(L,B,je,[nt],be,Te,l,!1,G,q,Is(z==null?void 0:z.defaultOpenValue),Tt,I,O),Wt=me(Nt,2),ft=Wt[0],lt=Wt[1],At=Qt(function(Pt,_t,gn){if(dt(_t),F&&gn!==!1){var In=Pt||je[je.length-1];F(In,_t)}}),Gt=function(){wt(Fe()),$e(!1,{force:!0})},on=function(_t){!R&&!se.current.nativeElement.contains(document.activeElement)&&se.current.focus(),$e(!0),ue==null||ue(_t)},Jt=function(){wt(null),$e(!1,{force:!0})},pn=i.useState(null),Xt=me(pn,2),fn=Xt[0],st=Xt[1],St=i.useState(null),yt=me(St,2),Ye=yt[0],Ze=yt[1],ut=i.useMemo(function(){var Pt=[Ye].concat(Me(je)).filter(function(_t){return _t});return V?Pt:Pt.slice(0,1)},[je,Ye,V]),Dt=i.useMemo(function(){return!V&&Ye?[Ye]:je.filter(function(Pt){return Pt})},[je,Ye,V]);i.useEffect(function(){be||Ze(null)},[be]);var Ut=C8(ae),gt=function(_t){Ze(_t),st("preset")},Mt=function(_t){var gn=V?fe(Fe(),_t):[_t],In=wt(gn);In&&!V&&$e(!1,{force:!0})},Vt=function(_t){Mt(_t)},wn=function(_t){Ze(_t),st("cell")},An=function(_t){$e(!0),Le(_t)},Pn=function(_t){if(Oe("panel"),!(V&&at!==k)){var gn=V?fe(Fe(),_t):[_t];Xe(gn),!$&&!c&&l===at&&Gt()}},Un=function(){$e(!1)},Rn=iC(Y,ee,ie),kn=i.useMemo(function(){var Pt=Nr(a,!1),_t=En(a,[].concat(Me(Object.keys(Pt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return ce(ce({},_t),{},{multiple:a.multiple})},[a]),wr=i.createElement(M8,Ce({},kn,{showNow:bt,showTime:z,disabledDate:j,onFocus:An,onBlur:tt,picker:k,mode:nt,internalMode:at,onPanelChange:At,format:d,value:je,isInvalid:f,onChange:null,onSelect:Pn,pickerValue:ft,defaultOpenValue:z==null?void 0:z.defaultOpenValue,onPickerValueChange:lt,hoverValue:ut,onHover:wn,needConfirm:$,onSubmit:Gt,onOk:Pe,presets:Ut,onPresetHover:gt,onPresetSubmit:Mt,onNow:Vt,cellRender:Rn})),Pr=function(_t){Xe(_t)},Cr=function(){Oe("input")},Sn=function(_t){Oe("input"),$e(!0,{inherit:!0}),Le(_t)},Bt=function(_t){$e(!1),tt(_t)},kt=function(_t,gn){_t.key==="Tab"&&Gt(),E==null||E(_t,gn)},ln=i.useMemo(function(){return{prefixCls:g,locale:B,generateConfig:L,button:re.button,input:re.input}},[g,B,L,re.button,re.input]);return an(function(){be&&Te!==void 0&&At(null,k,!1)},[be,Te,k]),an(function(){var Pt=Oe();!be&&Pt==="input"&&($e(!1),Gt()),!be&&c&&!$&&Pt==="panel"&&Gt()},[be]),i.createElement(ko.Provider,{value:ln},i.createElement(a8,Ce({},l8(a),{popupElement:wr,popupStyle:p.popup,popupClassName:y.popup,visible:be,onClose:Un}),i.createElement(jK,Ce({},a,{ref:se,suffixIcon:Q,removeIcon:te,activeHelp:!!Ye,allHelp:!!Ye&&fn==="preset",focused:ze,onFocus:Sn,onBlur:Bt,onKeyDown:kt,onSubmit:Gt,value:Dt,maskFormat:d,onChange:Pr,onInputChange:Cr,internalPicker:l,format:u,inputReadOnly:Z,disabled:R,open:be,onOpenChange:$e,onClick:on,onClear:Jt,invalid:mt,onInvalid:function(_t){qe(_t,0)}}))))}var IK=i.forwardRef(RK);const z8=i.createContext(null),NK=z8.Provider,D8=i.createContext(null),MK=D8.Provider;var TK=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],_8=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,y=e.onChange,x=Lt(e,TK),S=i.useRef(null),b=i.useRef(null),$=Cn(f,{value:c}),w=me($,2),E=w[0],R=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:b.current}});var j=de(r,a,ne(ne({},"".concat(r,"-checked"),E),"".concat(r,"-disabled"),u)),I=function(M){u||("checked"in e||R(M.target.checked),y==null||y({target:ce(ce({},e),{},{type:g,checked:M.target.checked}),stopPropagation:function(){M.stopPropagation()},preventDefault:function(){M.preventDefault()},nativeEvent:M.nativeEvent}))};return i.createElement("span",{className:j,title:p,style:l,ref:b},i.createElement("input",Ce({},x,{className:"".concat(r,"-input"),ref:S,onChange:I,disabled:u,checked:!!E,type:g})),i.createElement("span",{className:"".concat(r,"-inner")}))});function A8(e){const t=ge.useRef(null),n=()=>{Zt.cancel(t.current),t.current=null};return[()=>{n(),t.current=Zt(()=>{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({},mn(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"}})}},zK=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:y,dotColorDisabled:x,lineType:S,radioColor:b,radioBgColor:$,calc:w}=e,E=`${t}-inner`,j=w(a).sub(w(4).mul(2)),I=w(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},mn(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:`${le(v)} ${S} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},mn(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}`]:Mo(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:b,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:$,"&::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:x}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[E]:{"&::after":{transform:`scale(${w(j).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:y,paddingInlineEnd:y}})}},DK=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:y,paddingXS:x,borderRadius:S,borderRadiusSM:b,borderRadiusLG:$,buttonCheckedBg:w,buttonSolidCheckedColor:E,colorTextDisabled:R,colorBgContainerDisabled:j,buttonCheckedBgDisabled:I,buttonCheckedColorDisabled:O,colorPrimary:M,colorPrimaryHover:N,colorPrimaryActive:P,buttonSolidCheckedBg:B,buttonSolidCheckedHoverBg:L,buttonSolidCheckedActiveBg:k,calc:_}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:d,paddingBlock:0,color:t,fontSize:f,lineHeight:le(_(n).sub(_(a).mul(2)).equal()),background:v,border:`${le(a)} ${l} ${c}`,borderBlockStartWidth:_(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:_(a).mul(-1).equal()},"&:first-child":{borderInlineStart:`${le(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:le(_(p).sub(_(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:$,borderEndStartRadius:$},"&:last-child":{borderStartEndRadius:$,borderEndEndRadius:$}},[`${r}-group-small &`]:{height:y,paddingInline:_(x).sub(a).equal(),paddingBlock:0,lineHeight:le(_(y).sub(_(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:M},"&:has(:focus-visible)":Mo(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:R,backgroundColor:j,borderColor:c,cursor:"not-allowed","&:first-child, &:hover":{color:R,backgroundColor:j,borderColor:c}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:I,borderColor:c,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},_K=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:y,colorWhite:x}=e,S=4,b=l,$=t?b-S*2:b-(S+a)*2;return{radioSize:b,dotSize:$,dotColorDisabled:d,buttonSolidCheckedColor:v,buttonSolidCheckedBg:g,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:y,buttonBg:u,buttonCheckedBg:u,buttonColor:c,buttonCheckedBgDisabled:f,buttonCheckedColorDisabled:d,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?g:x,radioBgColor:t?u:g}},B8=un("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${le(n)} ${t}`,l=rn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[PK(l),zK(l),DK(l)]},_K,{unitless:{radioSize:!0,dotSize:!0}});var AK=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 BK=(e,t)=>{var n,r;const a=i.useContext(z8),l=i.useContext(D8),{getPrefixCls:c,direction:u,radio:d}=i.useContext(Rt),f=i.useRef(null),v=Mr(t,f),{isFormItemInput:g}=i.useContext(Ur),p=z=>{var D,F;(D=e.onChange)===null||D===void 0||D.call(e,z),(F=a==null?void 0:a.onChange)===null||F===void 0||F.call(a,z)},{prefixCls:y,className:x,rootClassName:S,children:b,style:$,title:w}=e,E=AK(e,["prefixCls","className","rootClassName","children","style","title"]),R=c("radio",y),j=((a==null?void 0:a.optionType)||l)==="button",I=j?`${R}-button`:R,O=vr(R),[M,N,P]=B8(R,O),B=Object.assign({},E),L=i.useContext(Kr);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=de(`${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,x,S,N,P,O),[_,H]=A8(B.onClick);return M(i.createElement(cf,{component:"Radio",disabled:B.disabled},i.createElement("label",{className:k,style:Object.assign(Object.assign({},d==null?void 0:d.style),$),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:w,onClick:_},i.createElement(_8,Object.assign({},B,{className:de(B.className,{[yg]:!j}),type:"radio",prefixCls:I,ref:v,onClick:H})),b!==void 0?i.createElement("span",{className:`${I}-label`},b):null)))},Xv=i.forwardRef(BK),kK=["parentNode"],LK="form_item";function Id(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function k8(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:kK.includes(n)?`${LK}_${n}`:n}function L8(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 HK=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 Ky(e){return Id(e).join("_")}function d4(e,t){const n=t.getFieldInstance(e),r=of(n);if(r)return r;const a=k8(Id(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function H8(e){const[t]=H1(),n=i.useRef({}),r=i.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>l=>{const c=Ky(a);l?n.current[c]=l:delete n.current[c]}},scrollToField:(a,l={})=>{const{focus:c}=l,u=HK(l,["focus"]),d=d4(a,r);d&&(ED(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=d4(a,r))===null||l===void 0?void 0:l.focus)===null||c===void 0||c.call(l)},getFieldInstance:a=>{const l=Ky(a);return n.current[l]}}),[e,t]);return[r]}const FK=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=i.useContext(Rt),{name:a}=i.useContext(Ur),l=mf(Ky(a)),{prefixCls:c,className:u,rootClassName:d,options:f,buttonStyle:v="outline",disabled:g,children:p,size:y,style:x,id:S,optionType:b,name:$=l,defaultValue:w,value:E,block:R=!1,onChange:j,onMouseEnter:I,onMouseLeave:O,onFocus:M,onBlur:N}=e,[P,B]=Cn(w,{value:E}),L=i.useCallback(q=>{const K=P,Z=q.target.value;"value"in e||B(Z),Z!==K&&(j==null||j(q))},[P,B,j]),k=n("radio",c),_=`${k}-group`,H=vr(k),[z,D,F]=B8(k,H);let W=p;f&&f.length>0&&(W=f.map(q=>typeof q=="string"||typeof q=="number"?i.createElement(Xv,{key:q.toString(),prefixCls:k,disabled:g,value:q,checked:P===q},q):i.createElement(Xv,{key:`radio-group-value-options-${q.value}`,prefixCls:k,disabled:q.disabled||g,value:q.value,checked:P===q.value,title:q.title,style:q.style,className:q.className,id:q.id,required:q.required},q.label)));const U=Tr(y),V=de(_,`${_}-${v}`,{[`${_}-${U}`]:U,[`${_}-rtl`]:r==="rtl",[`${_}-block`]:R},u,d,D,F,H),G=i.useMemo(()=>({onChange:L,value:P,disabled:g,name:$,optionType:b,block:R}),[L,P,g,$,b,R]);return z(i.createElement("div",Object.assign({},Nr(e,{aria:!0,data:!0}),{className:V,style:x,onMouseEnter:I,onMouseLeave:O,onFocus:M,onBlur:N,id:S,ref:t}),i.createElement(NK,{value:G},W)))}),VK=i.memo(FK);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};const KK=(e,t)=>{const{getPrefixCls:n}=i.useContext(Rt),{prefixCls:r}=e,a=WK(e,["prefixCls"]),l=n("radio",r);return i.createElement(MK,{value:"button"},i.createElement(Xv,Object.assign({prefixCls:l},a,{type:"radio",ref:t})))},UK=i.forwardRef(KK),fr=Xv;fr.Button=UK;fr.Group=VK;fr.__ANT_RADIO=!0;function Ms(e){return rn(e,{inputAffixPadding:e.paddingXXS})}const Ts=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:y,colorPrimary:x,controlOutlineWidth:S,controlOutline:b,colorErrorOutline:$,colorWarningOutline:w,colorBgContainer:E,inputFontSize:R,inputFontSizeLG:j,inputFontSizeSM:I}=e,O=R||n,M=I||O,N=j||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:x,hoverBorderColor:y,activeShadow:`0 0 0 ${S}px ${b}`,errorActiveShadow:`0 0 0 ${S}px ${$}`,warningActiveShadow:`0 0 0 ${S}px ${w}`,hoverBg:E,activeBg:E,inputFontSize:O,inputFontSizeLG:N,inputFontSizeSM:M}},qK=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Xg=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({},qK(rn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),dC=(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}}),f4=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},dC(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),fC=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dC(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Xg(e))}),f4(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),f4(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),m4=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),F8=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},m4(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),m4(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Xg(e))}})}),mC=(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)}},V8=(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}}},v4=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},V8(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),vC=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},V8(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Xg(e))}),v4(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),v4(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),g4=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),W8=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},g4(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),g4(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:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),K8=(e,t)=>({background:e.colorBgContainer,borderWidth:`${le(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}}),p4=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},K8(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`}}),gC=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},K8(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"}}),p4(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),p4(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),pC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),U8=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${le(t)} ${le(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},hC=e=>({padding:`${le(e.paddingBlockSM)} ${le(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Sf=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${le(e.paddingBlock)} ${le(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},pC(e.colorTextPlaceholder)),{"&-lg":Object.assign({},U8(e)),"&-sm":Object.assign({},hC(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),q8=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({},U8(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},hC(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 ${le(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${le(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${le(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:`${le(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${le(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"},Xo()),{[`${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}}}})}},GK=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({},mn(e)),Sf(e)),fC(e)),vC(e)),mC(e)),gC(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"}})}},XK=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 ${le(e.inputAffixPadding)}`}}}},YK=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({},Sf(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}}}),XK(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}}}}},QK=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},mn(e)),q8(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}}},F8(e)),W8(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}}})})}},ZK=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}}}}},JK=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},G8=un(["Input","Shared"],e=>{const t=rn(e,Ms(e));return[GK(t),YK(t)]},Ts,{resetFont:!1}),X8=un(["Input","Component"],e=>{const t=rn(e,Ms(e));return[QK(t),ZK(t),JK(t),Os(t)]},Ts,{resetFont:!1}),Y0=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",l=gR(e);return[{[`${n}-multiple${a}`]:{paddingBlock:l.containerPadding,paddingInlineStart:l.basePadding,minHeight:r,[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:le(l.itemLineHeight)}}}]},eU=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=rn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),l=rn(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[Y0(a,"small"),Y0(e),Y0(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"}}},pR(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},tU=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:y,colorFillSecondary:x}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:le(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:`${le(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:x}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:p,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:y}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},nU=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:y,colorPrimary:x,colorTextHeading:S,colorSplit:b,pickerControlIconBorderWidth:$,colorIcon:w,textHeight:E,motionDurationMid:R,colorIconHover:j,fontWeightStrong:I,cellHeight:O,pickerCellPaddingVertical:M,colorTextDisabled:N,colorText:P,fontSize:B,motionDurationSlow:L,withoutTimeCellHeight:k,pickerQuarterPanelContentHeight:_,borderRadiusSM:H,colorTextLightSolid:z,cellHoverBg:D,timeColumnHeight:F,timeColumnWidth:W,timeCellHeight:U,controlItemBgActive:V,marginXXS:G,pickerDatePanelPaddingHorizontal:q,pickerControlIconMargin:K}=e,Z=e.calc(c).mul(7).add(e.calc(q).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:v,borderRadius:y,outline:"none","&-focused":{borderColor:x},"&-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 ${le(d)}`,color:S,borderBottom:`${le(g)} ${p} ${b}`,"> *":{flex:"none"},button:{padding:0,color:w,lineHeight:le(E),background:"transparent",border:0,cursor:"pointer",transition:`color ${R}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:B,"&:hover":{color:j},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:I,lineHeight:le(E),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:d},"&:hover":{color:x}}}},"&-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:$,borderInlineStartWidth:$,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:K,insetInlineStart:K,display:"inline-block",width:l,height:l,border:"0 solid currentcolor",borderBlockStartWidth:$,borderInlineStartWidth:$,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:`${le(M)} 0`,color:N,cursor:"pointer","&-in-view":{color:P}},tU(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(k).mul(4).equal()},[r]:{padding:`0 ${le(d)}`}},"&-quarter-panel":{[`${t}-content`]:{height:_}},"&-decade-panel":{[r]:{padding:`0 ${le(e.calc(d).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${le(d)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${le(d)} ${le(q)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${R}`},"&:first-child:before":{borderStartStartRadius:H,borderEndStartRadius:H},"&:last-child:before":{borderStartEndRadius:H,borderEndEndRadius:H}},"&:hover td:before":{background:D},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:x},[`&${t}-cell-week`]:{color:new bn(z).setA(.5).toHexString()},[r]:{color:z}}},"&-range-hover td:before":{background:V}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${le(d)} ${le(u)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${le(g)} ${p} ${b}`},[`${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:`${le(f)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${R}`,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% - ${le(U)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${le(g)} ${p} ${b}`},"&-active":{background:new bn(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:U,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(W).sub(U).div(2).equal(),color:P,lineHeight:le(U),borderRadius:H,cursor:"pointer",transition:`background ${R}`,"&:hover":{background:D}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:V}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:N,background:"transparent",cursor:"not-allowed"}}}}}}}}},rU=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:l,colorPrimary:c,cellActiveWithRangeBg:u,colorPrimaryBorder:d,lineType:f,colorSplit:v}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${le(r)} ${f} ${v}`,"&-extra":{padding:`0 ${le(a)}`,lineHeight:le(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${le(r)} ${f} ${v}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:le(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:le(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"}}}}},aU=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()}},oU=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 bn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new bn(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"}},iU=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Ts(e)),oU(e)),Ag(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),lU=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},fC(e)),gC(e)),vC(e)),mC(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Q0=(e,t)=>({padding:`${le(e)} ${le(t)}`}),sU=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}}}}},cU=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:y,inputFontSizeLG:x,fontSizeSM:S,inputFontSizeSM:b,controlHeightSM:$,paddingInlineSM:w,paddingXS:E,marginXS:R,colorIcon:j,lineWidthBold:I,colorPrimary:O,motionDurationSlow:M,zIndexPopup:N,paddingXXS:P,sizePopupArrow:B,colorBgElevated:L,borderRadiusLG:k,boxShadowSecondary:_,borderRadiusSM:H,colorSplit:z,cellHoverBg:D,presetsWidth:F,presetsMaxWidth:W,boxShadowPopoverArrow:U,fontHeight:V,lineHeightLG:G}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},mn(e)),Q0(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}`},pC(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({},Q0(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:x??y,lineHeight:G}}),"&-small":Object.assign(Object.assign({},Q0(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:b??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:R}}},[`${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:j}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:y,color:p,fontSize:y,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:j},[`${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 ${le(E)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:a},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:w}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},mn(e)),nU(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:$g},[`&${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:xg},[`&${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:wg},[`&${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:Sg},[`${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`},jR(e,L,U)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:L,borderRadius:k,boxShadow:_,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:`${le(l)} ${c} ${z}`,li:Object.assign(Object.assign({},Qa),{borderRadius:H,paddingInline:E,paddingBlock:e.calc($).sub(V).div(2).equal(),cursor:"pointer",transition:`all ${M}`,"+ li":{marginTop:R},"&:hover":{background:D}})}},[`${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:`${le(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"),Hc(e,"move-up"),Hc(e,"move-down")]},Y8=un("DatePicker",e=>{const t=rn(Ms(e),aU(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[rU(t),cU(t),lU(t),sU(t),eU(t),Os(e,{focusElCls:`${e.componentCls}-focused`})]},iU);var uU={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"},dU=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:uU}))},Yr=i.forwardRef(dU);const Yg=i.createContext(null);var fU=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=me(v,2),p=g[0],y=g[1],x=i.useRef(),S=ge.useCallback(function($){return typeof u=="function"?u($):typeof u=="number"?u:$},[u]);function b(){Zt.cancel(x.current)}return i.useEffect(function(){var $={};if(n)if(r){$.width=S(n.width);var w=a?"right":"left";f==="start"&&($[w]=n[w]),f==="center"&&($[w]=n[w]+n.width/2,$.transform=a?"translateX(50%)":"translateX(-50%)"),f==="end"&&($[w]=n[w]+n.width,$.transform="translateX(-100%)")}else $.height=S(n.height),f==="start"&&($.top=n.top),f==="center"&&($.top=n.top+n.height/2,$.transform="translateY(-50%)"),f==="end"&&($.top=n.top+n.height,$.transform="translateY(-100%)");return b(),x.current=Zt(function(){var E=p&&$&&Object.keys($).every(function(R){var j=$[R],I=p[R];return typeof j=="number"&&typeof I=="number"?Math.round(j)===Math.round(I):j===I});E||y($)}),b},[JSON.stringify(n),r,a,f,S]),{style:p}},h4={width:0,height:0,left:0,top:0};function mU(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)||h4,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)||h4}var g=a.get(d)||ce({},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 b4(e,t){var n=i.useRef(e),r=i.useState({}),a=me(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 vU=.1,y4=.01,Rv=20,C4=Math.pow(.995,Rv);function gU(e,t){var n=i.useState(),r=me(n,2),a=r[0],l=r[1],c=i.useState(0),u=me(c,2),d=u[0],f=u[1],v=i.useState(0),g=me(v,2),p=g[0],y=g[1],x=i.useState(),S=me(x,2),b=S[0],$=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 R(N){if(a){var P=N.touches[0],B=P.screenX,L=P.screenY;l({x:B,y:L});var k=B-a.x,_=L-a.y;t(k,_);var H=Date.now();f(H),y(H-d),$({x:k,y:_})}}function j(){if(a&&(l(null),$(null),b)){var N=b.x/p,P=b.y/p,B=Math.abs(N),L=Math.abs(P);if(Math.max(B,L)<vU)return;var k=N,_=P;w.current=window.setInterval(function(){if(Math.abs(k)<y4&&Math.abs(_)<y4){window.clearInterval(w.current);return}k*=C4,_*=C4,t(k*Rv,_*Rv)},Rv)}}var I=i.useRef();function O(N){var P=N.deltaX,B=N.deltaY,L=0,k=Math.abs(P),_=Math.abs(B);k===_?L=I.current==="x"?P:B:k>_?(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:R,onTouchEnd:j,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 Q8(e){var t=i.useState(0),n=me(t,2),r=n[0],a=n[1],l=i.useRef(0),c=i.useRef();return c.current=e,cs(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 pU(e){var t=i.useRef([]),n=i.useState({}),r=me(n,2),a=r[1],l=i.useRef(typeof e=="function"?e():e),c=Q8(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 x4={width:0,height:0,left:0,top:0,right:0};function hU(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 y=u.length,x=y,S=0;S<y;S+=1){var b=e.get(u[S].key)||x4;if(Math.floor(b[g]+b[v])>Math.floor(p+t)){x=S-1;break}}for(var $=0,w=y-1;w>=0;w-=1){var E=e.get(u[w].key)||x4;if(E[g]<p){$=w+1;break}}return $>x?[0,-1]:[$,x]},[e,t,r,a,l,p,d,u.map(function(y){return y.key}).join("_"),f])}function S4(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var bU="TABS_DQ";function Z8(e){return String(e).replace(/"/g,bU)}function bC(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var J8=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||"+")}),$4=i.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var l,c={};return Ot(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}),yU=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,y=e.rtl,x=e.removeAriaLabel,S=e.onTabClick,b=e.getPopupContainer,$=e.popupClassName,w=i.useState(!1),E=me(w,2),R=E[0],j=E[1],I=i.useState(null),O=me(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"),_=M!==null?"".concat(L,"-").concat(M):null,H=l==null?void 0:l.dropdownAriaLabel;function z(q,K){q.preventDefault(),q.stopPropagation(),g.onEdit("remove",{key:K,event:q})}var D=i.createElement(au,{onClick:function(K){var Z=K.key,Q=K.domEvent;S(Z,Q),j(!1)},prefixCls:"".concat(k,"-menu"),id:L,tabIndex:-1,role:"listbox","aria-activedescendant":_,selectedKeys:[M],"aria-label":H!==void 0?H:"expanded dropdown"},a.map(function(q){var K=q.closable,Z=q.disabled,Q=q.closeIcon,te=q.key,X=q.label,oe=bC(K,Q,g,Z);return i.createElement(Cf,{key:te,id:"".concat(L,"-").concat(te),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(te),disabled:Z},i.createElement("span",null,X),oe&&i.createElement("button",{type:"button","aria-label":x||"remove",tabIndex:0,className:"".concat(k,"-menu-item-remove"),onClick:function(re){re.stopPropagation(),z(re,te)}},Q||g.removeIcon||"×"))}));function F(q){for(var K=a.filter(function(oe){return!oe.disabled}),Z=K.findIndex(function(oe){return oe.key===M})||0,Q=K.length,te=0;te<Q;te+=1){Z=(Z+q+Q)%Q;var X=K[Z];if(!X.disabled){N(X.key);return}}}function W(q){var K=q.which;if(!R){[ot.DOWN,ot.SPACE,ot.ENTER].includes(K)&&(j(!0),q.preventDefault());return}switch(K){case ot.UP:F(-1),q.preventDefault();break;case ot.DOWN:F(1),q.preventDefault();break;case ot.ESC:j(!1);break;case ot.SPACE:case ot.ENTER:M!==null&&S(M,q);break}}i.useEffect(function(){var q=document.getElementById(_);q&&q.scrollIntoView&&q.scrollIntoView(!1)},[M]),i.useEffect(function(){R||N(null)},[R]);var U=ne({},y?"marginRight":"marginLeft",p);a.length||(U.visibility="hidden",U.order=1);var V=de(ne({},"".concat(k,"-rtl"),y)),G=c?null:i.createElement(AR,Ce({prefixCls:k,overlay:D,visible:a.length?R:!1,onVisibleChange:j,overlayClassName:de(V,$),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},d),i.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:U,"aria-haspopup":"listbox","aria-controls":L,id:"".concat(r,"-more"),"aria-expanded":R,onKeyDown:W},B));return i.createElement("div",{className:de("".concat(n,"-nav-operations"),v),style:f,ref:t},G,i.createElement(J8,{prefixCls:n,locale:l,editable:g}))});const CU=i.memo(yU,function(e,t){return t.tabMoving});var xU=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,y=t.renderWrapper,x=t.removeAriaLabel,S=t.editable,b=t.onClick,$=t.onFocus,w=t.onBlur,E=t.onKeyDown,R=t.onMouseDown,j=t.onMouseUp,I=t.style,O=t.tabCount,M=t.currentPosition,N="".concat(n,"-tab"),P=bC(p,v,S,f);function B(z){f||b(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]),_=i.useRef(null);i.useEffect(function(){l&&_.current&&_.current.focus()},[l]);var H=i.createElement("div",{key:u,"data-node-key":Z8(u),className:de(N,ne(ne(ne(ne({},"".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:_,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(D){D.stopPropagation(),B(D)},onKeyDown:E,onMouseDown:R,onMouseUp:j,onFocus:$,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":x||"remove",tabIndex:a?0:-1,className:"".concat(N,"-remove"),onClick:function(D){D.stopPropagation(),L(D)}},v||S.removeIcon||"×"));return y?y(H):H},SU=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]},Cc=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]},Zm=function(t,n){return t[n?0:1]},w4=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,y=e.children,x=e.onTabClick,S=e.onTabScroll,b=e.indicator,$=i.useContext(Yg),w=$.prefixCls,E=$.tabs,R=i.useRef(null),j=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=b4(0,function(Ze,ut){B&&S&&S({direction:Ze>ut?"left":"right"})}),k=me(L,2),_=k[0],H=k[1],z=b4(0,function(Ze,ut){!B&&S&&S({direction:Ze>ut?"top":"bottom"})}),D=me(z,2),F=D[0],W=D[1],U=i.useState([0,0]),V=me(U,2),G=V[0],q=V[1],K=i.useState([0,0]),Z=me(K,2),Q=Z[0],te=Z[1],X=i.useState([0,0]),oe=me(X,2),ae=oe[0],re=oe[1],Y=i.useState([0,0]),ee=me(Y,2),ie=ee[0],ue=ee[1],se=pU(new Map),pe=me(se,2),fe=pe[0],he=pe[1],Se=mU(E,fe,Q[0]),be=Zm(G,B),$e=Zm(Q,B),xe=Zm(ae,B),ye=Zm(ie,B),Ne=Math.floor(be)<Math.floor($e+xe),_e=Ne?be-ye:be-xe,Qe="".concat(w,"-nav-operations-hidden"),Ke=0,Fe=0;B&&u?(Ke=0,Fe=Math.max(0,$e-_e)):(Ke=Math.min(0,_e-$e),Fe=0);function Xe(Ze){return Ze<Ke?Ke:Ze>Fe?Fe:Ze}var Pe=i.useRef(null),je=i.useState(),Ae=me(je,2),Re=Ae[0],ze=Ae[1];function we(){ze(Date.now())}function Oe(){Pe.current&&clearTimeout(Pe.current)}gU(O,function(Ze,ut){function Dt(Ut,gt){Ut(function(Mt){var Vt=Xe(Mt+gt);return Vt})}return Ne?(B?Dt(H,Ze):Dt(W,ut),Oe(),we(),!0):!1}),i.useEffect(function(){return Oe(),Re&&(Pe.current=setTimeout(function(){ze(0)},100)),Oe},[Re]);var Te=hU(Se,_e,B?_:F,$e,xe,ye,ce(ce({},e),{},{tabs:E})),Le=me(Te,2),tt=Le[0],Ct=Le[1],We=Qt(function(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,ut=Se.get(Ze)||{width:0,height:0,left:0,right:0,top:0};if(B){var Dt=_;u?ut.right<_?Dt=ut.right:ut.right+ut.width>_+_e&&(Dt=ut.right+ut.width-_e):ut.left<-_?Dt=-ut.left:ut.left+ut.width>-_+_e&&(Dt=-(ut.left+ut.width-_e)),W(0),H(Xe(Dt))}else{var Ut=F;ut.top<-F?Ut=-ut.top:ut.top+ut.height>-F+_e&&(Ut=-(ut.top+ut.height-_e)),H(0),W(Xe(Ut))}}),nt=i.useState(),dt=me(nt,2),at=dt[0],bt=dt[1],zt=i.useState(!1),jt=me(zt,2),ct=jt[0],wt=jt[1],xt=E.filter(function(Ze){return!Ze.disabled}).map(function(Ze){return Ze.key}),et=function(ut){var Dt=xt.indexOf(at||c),Ut=xt.length,gt=(Dt+ut+Ut)%Ut,Mt=xt[gt];bt(Mt)},Ve=function(ut,Dt){var Ut=xt.indexOf(ut),gt=E.find(function(Vt){return Vt.key===ut}),Mt=bC(gt==null?void 0:gt.closable,gt==null?void 0:gt.closeIcon,f,gt==null?void 0:gt.disabled);Mt&&(Dt.preventDefault(),Dt.stopPropagation(),f.onEdit("remove",{key:ut,event:Dt}),Ut===xt.length-1?et(-1):et(1))},qe=function(ut,Dt){wt(!0),Dt.button===1&&Ve(ut,Dt)},mt=function(ut){var Dt=ut.code,Ut=u&&B,gt=xt[0],Mt=xt[xt.length-1];switch(Dt){case"ArrowLeft":{B&&et(Ut?1:-1);break}case"ArrowRight":{B&&et(Ut?-1:1);break}case"ArrowUp":{ut.preventDefault(),B||et(-1);break}case"ArrowDown":{ut.preventDefault(),B||et(1);break}case"Home":{ut.preventDefault(),bt(gt);break}case"End":{ut.preventDefault(),bt(Mt);break}case"Enter":case"Space":{ut.preventDefault(),x(at??c,ut);break}case"Backspace":case"Delete":{Ve(at,ut);break}}},Tt={};B?Tt[u?"marginRight":"marginLeft"]=p:Tt.marginTop=p;var Nt=E.map(function(Ze,ut){var Dt=Ze.key;return i.createElement(xU,{id:a,prefixCls:w,key:Dt,tab:Ze,style:ut===0?void 0:Tt,closable:Ze.closable,editable:f,active:Dt===c,focus:Dt===at,renderWrapper:y,removeAriaLabel:v==null?void 0:v.removeAriaLabel,tabCount:xt.length,currentPosition:ut+1,onClick:function(gt){x(Dt,gt)},onKeyDown:mt,onFocus:function(){ct||bt(Dt),We(Dt),we(),O.current&&(u||(O.current.scrollLeft=0),O.current.scrollTop=0)},onBlur:function(){bt(void 0)},onMouseDown:function(gt){return qe(Dt,gt)},onMouseUp:function(){wt(!1)}})}),Wt=function(){return he(function(){var ut,Dt=new Map,Ut=(ut=M.current)===null||ut===void 0?void 0:ut.getBoundingClientRect();return E.forEach(function(gt){var Mt,Vt=gt.key,wn=(Mt=M.current)===null||Mt===void 0?void 0:Mt.querySelector('[data-node-key="'.concat(Z8(Vt),'"]'));if(wn){var An=SU(wn,Ut),Pn=me(An,4),Un=Pn[0],Rn=Pn[1],kn=Pn[2],wr=Pn[3];Dt.set(Vt,{width:Un,height:Rn,left:kn,top:wr})}}),Dt})};i.useEffect(function(){Wt()},[E.map(function(Ze){return Ze.key}).join("_")]);var ft=Q8(function(){var Ze=Cc(R),ut=Cc(j),Dt=Cc(I);q([Ze[0]-ut[0]-Dt[0],Ze[1]-ut[1]-Dt[1]]);var Ut=Cc(P);re(Ut);var gt=Cc(N);ue(gt);var Mt=Cc(M);te([Mt[0]-Ut[0],Mt[1]-Ut[1]]),Wt()}),lt=E.slice(0,tt),At=E.slice(Ct+1),Gt=[].concat(Me(lt),Me(At)),on=Se.get(c),Jt=fU({activeTabOffset:on,horizontal:B,indicator:b,rtl:u}),pn=Jt.style;i.useEffect(function(){We()},[c,Ke,Fe,S4(on),S4(Se),B]),i.useEffect(function(){ft()},[u]);var Xt=!!Gt.length,fn="".concat(w,"-nav-wrap"),st,St,yt,Ye;return B?u?(St=_>0,st=_!==Fe):(st=_<0,St=_!==Ke):(yt=F<0,Ye=F!==Ke),i.createElement(ha,{onResize:ft},i.createElement("div",{ref:Ri(t,R),role:"tablist","aria-orientation":B?"horizontal":"vertical",className:de("".concat(w,"-nav"),n),style:r,onKeyDown:function(){we()}},i.createElement($4,{ref:j,position:"left",extra:d,prefixCls:w}),i.createElement(ha,{onResize:ft},i.createElement("div",{className:de(fn,ne(ne(ne(ne({},"".concat(fn,"-ping-left"),st),"".concat(fn,"-ping-right"),St),"".concat(fn,"-ping-top"),yt),"".concat(fn,"-ping-bottom"),Ye)),ref:O},i.createElement(ha,{onResize:ft},i.createElement("div",{ref:M,className:"".concat(w,"-nav-list"),style:{transform:"translate(".concat(_,"px, ").concat(F,"px)"),transition:Re?"none":void 0}},Nt,i.createElement(J8,{ref:P,prefixCls:w,locale:v,editable:f,style:ce(ce({},Nt.length===0?void 0:Tt),{},{visibility:Xt?"hidden":null})}),i.createElement("div",{className:de("".concat(w,"-ink-bar"),ne({},"".concat(w,"-ink-bar-animated"),l.inkBar)),style:pn}))))),i.createElement(CU,Ce({},e,{removeAriaLabel:v==null?void 0:v.removeAriaLabel,ref:N,prefixCls:w,tabs:Gt,className:!Xt&&Qe,tabMoving:!!Re})),i.createElement($4,{ref:I,position:"right",extra:d,prefixCls:w})))}),eI=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:de(n,c&&"".concat(n,"-active"),r),ref:t},d)}),$U=["renderTabBar"],wU=["label","key"],EU=function(t){var n=t.renderTabBar,r=Lt(t,$U),a=i.useContext(Yg),l=a.tabs;if(n){var c=ce(ce({},r),{},{panes:l.map(function(u){var d=u.label,f=u.key,v=Lt(u,wU);return i.createElement(eI,Ce({tab:d,key:f,tabKey:f},v))})});return n(c,w4)}return i.createElement(w4,r)},OU=["key","forceRender","style","className","destroyInactiveTabPane"],jU=function(t){var n=t.id,r=t.activeKey,a=t.animated,l=t.tabPosition,c=t.destroyInactiveTabPane,u=i.useContext(Yg),d=u.prefixCls,f=u.tabs,v=a.tabPane,g="".concat(d,"-tabpane");return i.createElement("div",{className:de("".concat(d,"-content-holder"))},i.createElement("div",{className:de("".concat(d,"-content"),"".concat(d,"-content-").concat(l),ne({},"".concat(d,"-content-animated"),v))},f.map(function(p){var y=p.key,x=p.forceRender,S=p.style,b=p.className,$=p.destroyInactiveTabPane,w=Lt(p,OU),E=y===r;return i.createElement(ta,Ce({key:y,visible:E,forceRender:x,removeOnLeave:!!(c||$),leavedClassName:"".concat(g,"-hidden")},a.tabPaneMotion),function(R,j){var I=R.style,O=R.className;return i.createElement(eI,Ce({},w,{prefixCls:g,id:n,tabKey:y,animated:v,active:E,style:ce(ce({},S),I),className:de(b,O),ref:j}))})})))};function RU(){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=ce({inkBar:!0},Ot(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var IU=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],E4=0,NU=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,y=p===void 0?"top":p,x=e.tabBarGutter,S=e.tabBarStyle,b=e.tabBarExtraContent,$=e.locale,w=e.more,E=e.destroyInactiveTabPane,R=e.renderTabBar,j=e.onChange,I=e.onTabClick,O=e.onTabScroll,M=e.getPopupContainer,N=e.popupClassName,P=e.indicator,B=Lt(e,IU),L=i.useMemo(function(){return(c||[]).filter(function(ie){return ie&&Ot(ie)==="object"&&"key"in ie})},[c]),k=u==="rtl",_=RU(g),H=i.useState(!1),z=me(H,2),D=z[0],F=z[1];i.useEffect(function(){F(Pg())},[]);var W=Cn(function(){var ie;return(ie=L[0])===null||ie===void 0?void 0:ie.key},{value:d,defaultValue:f}),U=me(W,2),V=U[0],G=U[1],q=i.useState(function(){return L.findIndex(function(ie){return ie.key===V})}),K=me(q,2),Z=K[0],Q=K[1];i.useEffect(function(){var ie=L.findIndex(function(se){return se.key===V});if(ie===-1){var ue;ie=Math.max(0,Math.min(Z,L.length-1)),G((ue=L[ie])===null||ue===void 0?void 0:ue.key)}Q(ie)},[L.map(function(ie){return ie.key}).join("_"),V,Z]);var te=Cn(null,{value:n}),X=me(te,2),oe=X[0],ae=X[1];i.useEffect(function(){n||(ae("rc-tabs-".concat(E4)),E4+=1)},[]);function re(ie,ue){I==null||I(ie,ue);var se=ie!==V;G(ie),se&&(j==null||j(ie))}var Y={id:oe,activeKey:V,animated:_,tabPosition:y,rtl:k,mobile:D},ee=ce(ce({},Y),{},{editable:v,locale:$,more:w,tabBarGutter:x,onTabClick:re,onTabScroll:O,extra:b,style:S,panes:null,getPopupContainer:M,popupClassName:N,indicator:P});return i.createElement(Yg.Provider,{value:{tabs:L,prefixCls:a}},i.createElement("div",Ce({ref:t,id:n,className:de(a,"".concat(a,"-").concat(y),ne(ne(ne({},"".concat(a,"-mobile"),D),"".concat(a,"-editable"),v),"".concat(a,"-rtl"),k),l)},B),i.createElement(EU,Ce({},ee,{renderTabBar:R})),i.createElement(jU,Ce({destroyInactiveTabPane:E},Y,{animated:_}))))});const MU={motionAppear:!1,motionEnter:!0,motionLeave:!0};function TU(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({},MU),{motionName:Yo(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 zU(e){return e.filter(t=>t)}function DU(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=Jr(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 zU(n)}const _U=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")]]},AU=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:`${le(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)`]:Mo(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:le(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:le(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${le(e.borderRadiusLG)} 0 0 ${le(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 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},BU=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},mn(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:`${le(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({},Qa),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${le(e.paddingXXS)} ${le(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"}}})}})}},kU=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:`${le(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:le(u(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${le(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:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},LU=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 ${le(e.borderRadius)} ${le(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${le(e.borderRadius)} ${le(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${le(e.borderRadius)} ${le(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${le(e.borderRadius)} 0 0 ${le(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:l,minHeight:l}}}}}},HU=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}},Za(e)),"&:hover":{color:r},[`&${f}-active ${f}-btn`]:{color:u,textShadow:e.tabsActiveTextShadow},[`&${f}-focus ${f}-btn:focus-visible`]:Mo(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}}}},FU=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:le(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:le(e.marginXS)},marginLeft:{_skip_check_:!0,value:le(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"}}}}},VU=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({},mn(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:`${le(e.lineWidth)} ${e.lineType} ${u}`,borderRadius:`${le(e.borderRadiusLG)} ${le(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}},Za(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),HU(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Za(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"}}}}}},WU=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}},KU=un("Tabs",e=>{const t=rn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${le(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${le(e.horizontalItemGutter)}`});return[LU(t),FU(t),kU(t),BU(t),AU(t),VU(t),_U(t)]},WU),UU=()=>null;var qU=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 GU=i.forwardRef((e,t)=>{var n,r,a,l,c,u,d,f,v,g,p;const{type:y,className:x,rootClassName:S,size:b,onEdit:$,hideAdd:w,centered:E,addIcon:R,removeIcon:j,moreIcon:I,more:O,popupClassName:M,children:N,items:P,animated:B,style:L,indicatorSize:k,indicator:_,destroyInactiveTabPane:H,destroyOnHidden:z}=e,D=qU(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:F}=D,{direction:W,tabs:U,getPrefixCls:V,getPopupContainer:G}=i.useContext(Rt),q=V("tabs",F),K=vr(q),[Z,Q,te]=KU(q,K),X=i.useRef(null);i.useImperativeHandle(t,()=>({nativeElement:X.current}));let oe;y==="editable-card"&&(oe={onEdit:(se,{key:pe,event:fe})=>{$==null||$(se==="add"?fe:pe,se)},removeIcon:(n=j??(U==null?void 0:U.removeIcon))!==null&&n!==void 0?n:i.createElement(_o,null),addIcon:(R??(U==null?void 0:U.addIcon))||i.createElement(Yr,null),showAdd:w!==!0});const ae=V(),re=Tr(b),Y=DU(P,N),ee=TU(q,B),ie=Object.assign(Object.assign({},U==null?void 0:U.style),L),ue={align:(r=_==null?void 0:_.align)!==null&&r!==void 0?r:(a=U==null?void 0:U.indicator)===null||a===void 0?void 0:a.align,size:(d=(c=(l=_==null?void 0:_.size)!==null&&l!==void 0?l:k)!==null&&c!==void 0?c:(u=U==null?void 0:U.indicator)===null||u===void 0?void 0:u.size)!==null&&d!==void 0?d:U==null?void 0:U.indicatorSize};return Z(i.createElement(NU,Object.assign({ref:X,direction:W,getPopupContainer:G},D,{items:Y,className:de({[`${q}-${re}`]:re,[`${q}-card`]:["card","editable-card"].includes(y),[`${q}-editable-card`]:y==="editable-card",[`${q}-centered`]:E},U==null?void 0:U.className,x,S,Q,te,K),popupClassName:de(M,Q,te,K),style:ie,editable:oe,more:Object.assign({icon:(p=(g=(v=(f=U==null?void 0:U.more)===null||f===void 0?void 0:f.icon)!==null&&v!==void 0?v:U==null?void 0:U.moreIcon)!==null&&g!==void 0?g:I)!==null&&p!==void 0?p:i.createElement(aC,null),transitionName:`${ae}-slide-up`},O),prefixCls:q,animated:ee,indicator:ue,destroyInactiveTabPane:z??H})))}),Lo=GU;Lo.TabPane=UU;var XU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const tI=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=XU(e,["prefixCls","className","hoverable"]);const{getPrefixCls:l}=i.useContext(Rt),c=l("card",t),u=de(`${c}-grid`,n,{[`${c}-grid-hoverable`]:r});return i.createElement("div",Object.assign({},a,{className:u}))},YU=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 ${le(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0 0`},Xo()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Qa),{[`
|
|
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:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},QU=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
327
|
-
${le(a)} 0 0 0 ${n},
|
|
328
|
-
0 ${le(a)} 0 0 ${n},
|
|
329
|
-
${le(a)} ${le(a)} 0 0 ${n},
|
|
330
|
-
${le(a)} 0 0 0 ${n} inset,
|
|
331
|
-
0 ${le(a)} 0 0 ${n} inset;
|
|
332
|
-
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},ZU=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:`${le(e.lineWidth)} ${e.lineType} ${l}`,display:"flex",borderRadius:`0 0 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)}`},Xo()),{"& > 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:le(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:le(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${le(e.lineWidth)} ${e.lineType} ${l}`}}})},JU=e=>Object.assign(Object.assign({margin:`${le(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Xo()),{"&-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},Qa),"&-description":{color:e.colorTextDescription}}),eq=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:a}=e;return{[`${t}-head`]:{padding:`0 ${le(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${le(e.padding)} ${le(a)}`}}},tq=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},nq=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:l,bodyPadding:c,extraColor:u}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:l},[`${t}-head`]:YU(e),[`${t}-extra`]:{marginInlineStart:"auto",color:u,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:c,borderRadius:`0 0 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)}`},[`${t}-grid`]:QU(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:ZU(e),[`${t}-meta`]:JU(e)}),[`${t}-bordered`]:{border:`${le(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:`${le(e.borderRadiusLG)} ${le(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`]:eq(e),[`${t}-loading`]:tq(e),[`${t}-rtl`]:{direction:"rtl"}}},rq=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:a,headerFontSizeSM:l}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${le(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"}}}}},aq=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}},oq=un("Card",e=>{const t=rn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[nq(t),rq(t)]},aq);var O4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const iq=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))}))},lq=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:y,type:x,cover:S,actions:b,tabList:$,children:w,activeTabKey:E,defaultActiveTabKey:R,tabBarExtraContent:j,hoverable:I,tabProps:O={},classNames:M,styles:N}=e,P=O4(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),[_]=Il("card",p,g),H=Se=>{var be;(be=e.onTabChange)===null||be===void 0||be.call(e,Se)},z=Se=>{var be;return de((be=k==null?void 0:k.classNames)===null||be===void 0?void 0:be[Se],M==null?void 0:M[Se])},D=Se=>{var be;return Object.assign(Object.assign({},(be=k==null?void 0:k.styles)===null||be===void 0?void 0:be[Se]),N==null?void 0:N[Se])},F=i.useMemo(()=>{let Se=!1;return i.Children.forEach(w,be=>{(be==null?void 0:be.type)===tI&&(Se=!0)}),Se},[w]),W=B("card",n),[U,V,G]=oq(W),q=i.createElement(jl,{loading:!0,active:!0,paragraph:{rows:4},title:!1},w),K=E!==void 0,Z=Object.assign(Object.assign({},O),{[K?"activeKey":"defaultActiveKey"]:K?E:R,tabBarExtraContent:j});let Q;const te=Tr(y),X=!te||te==="default"?"large":te,oe=$?i.createElement(Lo,Object.assign({size:X},Z,{className:`${W}-head-tabs`,onChange:H,items:$.map(Se=>{var{tab:be}=Se,$e=O4(Se,["tab"]);return Object.assign({label:be},$e)})})):null;if(f||c||oe){const Se=de(`${W}-head`,z("header")),be=de(`${W}-head-title`,z("title")),$e=de(`${W}-extra`,z("extra")),xe=Object.assign(Object.assign({},u),D("header"));Q=i.createElement("div",{className:Se,style:xe},i.createElement("div",{className:`${W}-head-wrapper`},f&&i.createElement("div",{className:be,style:D("title")},f),c&&i.createElement("div",{className:$e,style:D("extra")},c)),oe)}const ae=de(`${W}-cover`,z("cover")),re=S?i.createElement("div",{className:ae,style:D("cover")},S):null,Y=de(`${W}-body`,z("body")),ee=Object.assign(Object.assign({},d),D("body")),ie=i.createElement("div",{className:Y,style:ee},v?q:w),ue=de(`${W}-actions`,z("actions")),se=b!=null&&b.length?i.createElement(iq,{actionClasses:ue,actionStyle:D("actions"),actions:b}):null,pe=En(P,["onTabChange"]),fe=de(W,k==null?void 0:k.className,{[`${W}-loading`]:v,[`${W}-bordered`]:_!=="borderless",[`${W}-hoverable`]:I,[`${W}-contain-grid`]:F,[`${W}-contain-tabs`]:$==null?void 0:$.length,[`${W}-${te}`]:te,[`${W}-type-${x}`]:!!x,[`${W}-rtl`]:L==="rtl"},r,a,V,G),he=Object.assign(Object.assign({},k==null?void 0:k.style),l);return U(i.createElement("div",Object.assign({ref:t},pe,{className:fe,style:he}),Q,re,ie,se))});var sq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const cq=e=>{const{prefixCls:t,className:n,avatar:r,title:a,description:l}=e,c=sq(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:u}=i.useContext(Rt),d=u("card",t),f=de(`${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,y=g||p?i.createElement("div",{className:`${d}-meta-detail`},g,p):null;return i.createElement("div",Object.assign({},c,{className:f}),v,y)},yn=lq;yn.Grid=tI;yn.Meta=cq;function uq(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 y(){v&&clearTimeout(v)}function x(b){var $=b||{},w=$.upcomingOnly,E=w===void 0?!1:w;y(),g=!E}function S(){for(var b=arguments.length,$=new Array(b),w=0;w<b;w++)$[w]=arguments[w];var E=this,R=Date.now()-p;if(g)return;function j(){p=Date.now(),t.apply(E,$)}function I(){v=void 0}!u&&f&&!v&&j(),y(),f===void 0&&R>e?u?(p=Date.now(),l||(v=setTimeout(f?I:j,e))):j():l!==!0&&(v=setTimeout(f?I:j,f===void 0?e-R:e))}return S.cancel=x,S}function dq(e,t,n){var r={},a=r.atBegin,l=a===void 0?!1:a;return uq(e,t,{debounceMode:l!==!1})}var lu=i.createContext({}),Pc="__rc_cascader_search_mark__",fq=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())})},mq=function(t,n,r,a){return n.map(function(l){return l[a.label]}).join(" / ")},vq=function(t,n,r,a,l,c){var u=l.filter,d=u===void 0?fq:u,f=l.render,v=f===void 0?mq:f,g=l.limit,p=g===void 0?50:g,y=l.sort;return i.useMemo(function(){var x=[];if(!t)return[];function S(b,$){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;b.forEach(function(E){if(!(!y&&p!==!1&&p>0&&x.length>=p)){var R=[].concat(Me($),[E]),j=E[r.children],I=w||E.disabled;if((!j||j.length===0||c)&&d(t,R,{label:r.label})){var O;x.push(ce(ce({},E),{},(O={disabled:I},ne(O,r.label,v(t,R,a,r)),ne(O,Pc,R),ne(O,r.children,void 0),O)))}j&&S(E[r.children],R,I)}})}return S(n,[]),y&&x.sort(function(b,$){return y(b[Pc],$[Pc],t,r)}),p!==!1&&p>0?x.slice(0,p):x},[t,n,r,a,v,c,d,y,p])},yC="__RC_CASCADER_SPLIT__",nI="SHOW_PARENT",rI="SHOW_CHILD";function jo(e){return e.join(yC)}function Wc(e){return e.map(jo)}function gq(e){return e.split(yC)}function aI(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 xd(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 pq(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 oI(e,t){return e.map(function(n){var r;return(r=n[Pc])===null||r===void 0?void 0:r.map(function(a){return a[t.value]})})}function hq(e){return Array.isArray(e)&&Array.isArray(e[0])}function Yv(e){return e?hq(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function iI(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===rI?!(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],y=(f=a)===null||f===void 0?void 0:f.findIndex(function(S){var b=S[n.value];return r?String(b)===String(p):b===p}),x=y!==-1?(v=a)===null||v===void 0?void 0:v[y]:null;l.push({value:(g=x==null?void 0:x[n.value])!==null&&g!==void 0?g:p,index:y,option:x}),a=x==null?void 0:x[n.children]},u=0;u<e.length;u+=1)c();return l}const bq=(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(Ot(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(Me(f),[d,p])},[])};return e.map(function(c){var u,d=Kc(c,t,n),f=l(d.map(function(g){var p,y=g.option,x=g.value;return(p=y==null?void 0:y[n.label])!==null&&p!==void 0?p:x}),d.map(function(g){var p=g.option;return p})),v=jo(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 lI(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 _a(e,t){return e[t]}var yq=["children"];function sI(e,t){return"".concat(e,"-").concat(t)}function Cq(e){return e&&e.type&&e.type.isTreeNode}function $f(e,t){return e??t}function Uc(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 cI(e){function t(n){var r=Jr(n);return r.map(function(a){if(!Cq(a))return Zn(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var l=a.key,c=a.props,u=c.children,d=Lt(c,yq),f=ce({key:l},d),v=t(u);return v.length&&(f.children=v),f}).filter(function(a){return a})}return t(e)}function Z0(e,t,n){var r=Uc(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,y){for(var x=sI(g?g.pos:"0",y),S=$f(p[l],x),b,$=0;$<a.length;$+=1){var w=a[$];if(p[w]!==void 0){b=p[w];break}}var E=Object.assign(En(p,[].concat(Me(a),[l,c])),{title:b,key:S,parent:g,pos:x,children:null,data:p,isStart:[].concat(Me(g?g.isStart:[]),[y===0]),isEnd:[].concat(Me(g?g.isEnd:[]),[y===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 xq(e,t,n){var r={};Ot(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var a=r,l=a.childrenPropName,c=a.externalGetKey,u=a.fieldNames,d=Uc(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,b){return $f(S[f],b)};function y(x,S,b,$){var w=x?x[g]:e,E=x?sI(b.pos,S):"0",R=x?[].concat(Me($),[x]):[];if(x){var j=p(x,E),I={node:x,index:S,pos:E,key:j,parentPos:b.node?b.pos:null,level:b.level+1,nodes:R};t(I)}w&&w.forEach(function(O,M){y(O,M,{node:x,pos:E,level:b?b.level+1:-1},R)})}y(null)}function Qg(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),xq(e,function(y){var x=y.node,S=y.index,b=y.pos,$=y.key,w=y.parentPos,E=y.level,R=y.nodes,j={node:x,nodes:R,index:S,key:$,pos:b,level:E},I=$f($,b);v[b]=j,g[I]=j,j.parent=v[w],j.parent&&(j.parent.children=j.parent.children||[],j.parent.children.push(j)),r&&r(j,p)},{externalGetKey:f,childrenPropName:c,fieldNames:u}),a&&a(p),p}function Nd(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=_a(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 Fr(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,y=e.eventKey,x=ce(ce({},t),{},{expanded:n,selected:r,checked:a,loaded:l,loading:c,halfChecked:u,dragOver:d,dragOverGapTop:f,dragOverGapBottom:v,pos:g,active:p,key:y});return"props"in x||Object.defineProperty(x,"props",{get:function(){return Zn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),x}const Sq=(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=Qg(e,{fieldNames:t,initWrapper:function(l){return ce(ce({},l),{},{pathKeyEntities:{}})},processEntity:function(l,c){var u=l.nodes.map(function(d){return d[t.value]}).join(yC);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=Sq(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 $q(e){return i.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&Ot(e)==="object"&&(t=ce(ce({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function dI(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function wq(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function Eq(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,y=g.node,x=g.children,S=x===void 0?[]:x;a.has(p)&&!r(y)&&S.filter(function(b){return!r(b.node)}).forEach(function(b){a.add(b.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,y=g.node;if(!(r(y)||!g.parent||d.has(g.parent.key))){if(r(g.parent.node)){d.add(p.key);return}var x=!0,S=!1;(p.children||[]).filter(function(b){return!r(b.node)}).forEach(function(b){var $=b.key,w=a.has($);x&&!w&&(x=!1),!S&&(w||l.has($))&&(S=!0)}),x&&a.add(p.key),S&&l.add(p.key),d.add(p.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(dI(l,a))}}function Oq(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 y=p.key,x=p.node,S=p.children,b=S===void 0?[]:S;!l.has(y)&&!c.has(y)&&!a(x)&&b.filter(function($){return!a($.node)}).forEach(function($){l.delete($.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 y=p.parent,x=p.node;if(!(a(x)||!p.parent||f.has(p.parent.key))){if(a(p.parent.node)){f.add(y.key);return}var S=!0,b=!1;(y.children||[]).filter(function($){return!a($.node)}).forEach(function($){var w=$.key,E=l.has(w);S&&!E&&(S=!1),!b&&(E||c.has(w))&&(b=!0)}),S||l.delete(y.key),b&&c.add(y.key),f.add(y.key)}})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(dI(c,l))}}function Si(e,t,n,r){var a=[],l;r?l=r:l=wq;var c=new Set(e.filter(function(v){var g=!!_a(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,y=u.get(p);y||(y=new Set,u.set(p,y)),y.add(g),d=Math.max(d,p)}),Zn(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(v){return"'".concat(v,"'")}).join(", ")));var f;return t===!0?f=Eq(c,u,d,l):f=Oq(c,t.halfCheckedKeys,u,d,l),f}function fI(e,t,n,r,a,l,c,u){return function(d){if(!e)t(d);else{var f=jo(d),v=Wc(n),g=Wc(r),p=v.includes(f),y=a.some(function(I){return jo(I)===f}),x=n,S=a;if(y&&!p)S=a.filter(function(I){return jo(I)!==f});else{var b=p?v.filter(function(I){return I!==f}):[].concat(Me(v),[f]),$=l(),w;if(p){var E=Si(b,{halfCheckedKeys:g},$);w=E.checkedKeys}else{var R=Si(b,!0,$);w=R.checkedKeys}var j=iI(w,l,u);x=c(j)}t([].concat(Me(S),Me(x)))}}}function mI(e,t,n,r,a){return i.useMemo(function(){var l=a(t),c=me(l,2),u=c[0],d=c[1];if(!e||!t.length)return[u,[],d];var f=Wc(u),v=n(),g=Si(f,!0,v),p=g.checkedKeys,y=g.halfCheckedKeys;return[r(p),r(y),d]},[e,t,n,r,a])}var jq=i.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function Rq(e){var t,n=e.prefixCls,r=e.checked,a=e.halfChecked,l=e.disabled,c=e.onClick,u=e.disableCheckbox,d=i.useContext(lu),f=d.checkable,v=typeof f!="boolean"?f:null;return i.createElement("span",{className:de("".concat(n),(t={},ne(t,"".concat(n,"-checked"),r),ne(t,"".concat(n,"-indeterminate"),!r&&a),ne(t,"".concat(n,"-disabled"),l||u),t)),onClick:c},v)}var vI="__cascader_fix_label__";function Iq(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,y=e.disabled,x="".concat(t,"-menu"),S="".concat(t,"-menu-item"),b=i.useContext(lu),$=b.fieldNames,w=b.changeOnSelect,E=b.expandTrigger,R=b.expandIcon,j=b.loadingIcon,I=b.dropdownMenuColumnStyle,O=b.optionRender,M=E==="hover",N=function(L){return y||L},P=i.useMemo(function(){return r.map(function(B){var L,k=B.disabled,_=B.disableCheckbox,H=B[Pc],z=(L=B[vI])!==null&&L!==void 0?L:B[$.label],D=B[$.value],F=xd(B,$),W=H?H.map(function(K){return K[$.value]}):[].concat(Me(l),[D]),U=jo(W),V=g.includes(U),G=f.has(U),q=v.has(U);return{disabled:k,label:z,value:D,isLeaf:F,isLoading:V,checked:G,halfChecked:q,option:B,disableCheckbox:_,fullPath:W,fullPathKey:U}})},[r,f,$,v,g,l]);return i.createElement("ul",{className:x,role:"menu"},P.map(function(B){var L,k=B.disabled,_=B.label,H=B.value,z=B.isLeaf,D=B.isLoading,F=B.checked,W=B.halfChecked,U=B.option,V=B.fullPath,G=B.fullPathKey,q=B.disableCheckbox,K=function(){if(!N(k)){var X=Me(V);M&&z&&X.pop(),d(X)}},Z=function(){p(U)&&!N(k)&&u(V,z)},Q;return typeof U.title=="string"?Q=U.title:typeof _=="string"&&(Q=_),i.createElement("li",{key:G,className:de(S,(L={},ne(L,"".concat(S,"-expand"),!z),ne(L,"".concat(S,"-active"),a===H||a===G),ne(L,"".concat(S,"-disabled"),N(k)),ne(L,"".concat(S,"-loading"),D),L)),style:I,role:"menuitemcheckbox",title:Q,"aria-checked":F,"data-path-key":G,onClick:function(){K(),!q&&(!n||z)&&Z()},onDoubleClick:function(){w&&c(!1)},onMouseEnter:function(){M&&K()},onMouseDown:function(X){X.preventDefault()}},n&&i.createElement(Rq,{prefixCls:"".concat(t,"-checkbox"),checked:F,halfChecked:W,disabled:N(k)||q,disableCheckbox:q,onClick:function(X){q||(X.stopPropagation(),Z())}}),i.createElement("div",{className:"".concat(S,"-content")},O?O(U):_),!D&&R&&!z&&i.createElement("div",{className:"".concat(S,"-expand-icon")},R),D&&j&&i.createElement("div",{className:"".concat(S,"-loading-icon")},j))}))}var Nq=function(t,n){var r=i.useContext(lu),a=r.values,l=a[0],c=i.useState([]),u=me(c,2),d=u[0],f=u[1];return i.useEffect(function(){t||f(l||[])},[n,l]),[d,f]};const Mq=(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=oI(t,n),L=function(D){var F=O.findIndex(function(W,U){return(B[U]?jo(B[U]):W[n.value])===r[D]});if(F===-1)return 1;I=F,M.push(I),N.push(r[D]),O=O[I][n.children]},k=0;k<P&&O&&!L(k);k+=1);for(var _=t,H=0;H<M.length-1;H+=1)_=_[M[H]][n.children];return[N,I,_,B]},[r,n,t]),y=me(p,4),x=y[0],S=y[1],b=y[2],$=y[3],w=function(O){a(O)},E=function(O){var M=b.length,N=S;N===-1&&O<0&&(N=M);for(var P=0;P<M;P+=1){N=(N+O+M)%M;var B=b[N];if(B&&!B.disabled){var L=x.slice(0,-1).concat($[N]?jo($[N]):B[n.value]);w(L);return}}},R=function(){if(x.length>1){var O=x.slice(0,-1);w(O)}else f(!1)},j=function(){var O,M=((O=b[S])===null||O===void 0?void 0:O[n.children])||[],N=M.find(function(B){return!B.disabled});if(N){var P=[].concat(Me(x),[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?j():R();break}case ot.RIGHT:{if(d)break;g?R():j();break}case ot.BACKSPACE:{d||R();break}case ot.ENTER:{if(x.length){var P=b[S],B=(P==null?void 0:P[Pc])||[];B.length?l(B.map(function(L){return L[n.value]}),B[B.length-1]):l(x,b[S])}break}case ot.ESC:f(!1),v&&O.stopPropagation()}},onKeyUp:function(){}}})});var gI=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,y=i.useRef(null),x=v==="rtl",S=i.useContext(lu),b=S.options,$=S.values,w=S.halfValues,E=S.fieldNames,R=S.changeOnSelect,j=S.onSelect,I=S.searchOptions,O=S.dropdownPrefixCls,M=S.loadData,N=S.expandTrigger,P=O||l,B=i.useState([]),L=me(B,2),k=L[0],_=L[1],H=function(ie){if(!(!M||u)){var ue=Kc(ie,b,E),se=ue.map(function(he){var Se=he.option;return Se}),pe=se[se.length-1];if(pe&&!xd(pe,E)){var fe=jo(ie);_(function(he){return[].concat(Me(he),[fe])}),M(se)}}};i.useEffect(function(){k.length&&k.forEach(function(ee){var ie=gq(ee),ue=Kc(ie,b,E,!0).map(function(pe){var fe=pe.option;return fe}),se=ue[ue.length-1];(!se||se[E.children]||xd(se,E))&&_(function(pe){return pe.filter(function(fe){return fe!==ee})})})},[b,k,E]);var z=i.useMemo(function(){return new Set(Wc($))},[$]),D=i.useMemo(function(){return new Set(Wc(w))},[w]),F=Nq(c,g),W=me(F,2),U=W[0],V=W[1],G=function(ie){V(ie),H(ie)},q=function(ie){if(p)return!1;var ue=ie.disabled,se=xd(ie,E);return!ue&&(se||R||c)},K=function(ie,ue){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;j(ie),!c&&(ue||R&&(N==="hover"||se))&&d(!1)},Z=i.useMemo(function(){return u?I:b},[u,I,b]),Q=i.useMemo(function(){for(var ee=[{options:Z}],ie=Z,ue=oI(ie,E),se=function(){var he=U[pe],Se=ie.find(function($e,xe){return(ue[xe]?jo(ue[xe]):$e[E.value])===he}),be=Se==null?void 0:Se[E.children];if(!(be!=null&&be.length))return 1;ie=be,ee.push({options:be})},pe=0;pe<U.length&&!se();pe+=1);return ee},[Z,U,E]),te=function(ie,ue){q(ue)&&K(ie,xd(ue,E),!0)};Mq(t,Z,E,U,G,te,{direction:v,searchValue:u,toggleOpen:d,open:g}),i.useEffect(function(){if(!u)for(var ee=0;ee<U.length;ee+=1){var ie,ue=U.slice(0,ee+1),se=jo(ue),pe=(ie=y.current)===null||ie===void 0?void 0:ie.querySelector('li[data-path-key="'.concat(se.replace(/\\{0,2}"/g,'\\"'),'"]'));pe&&pq(pe)}},[U,u]);var X=!((n=Q[0])!==null&&n!==void 0&&(n=n.options)!==null&&n!==void 0&&n.length),oe=[(r={},ne(r,E.value,"__EMPTY__"),ne(r,vI,f),ne(r,"disabled",!0),r)],ae=ce(ce({},e),{},{multiple:!X&&c,onSelect:K,onActive:G,onToggleOpen:d,checkedSet:z,halfCheckedSet:D,loadingKeys:k,isSelectable:q}),re=X?[{options:oe}]:Q,Y=re.map(function(ee,ie){var ue=U.slice(0,ie),se=U[ie];return i.createElement(Iq,Ce({key:ie},ae,{prefixCls:P,options:ee.options,prevValuePath:ue,activeValue:se}))});return i.createElement(jq,{open:g},i.createElement("div",{className:de("".concat(P,"-menus"),(a={},ne(a,"".concat(P,"-menu-empty"),X),ne(a,"".concat(P,"-rtl"),x),a)),ref:y},Y))}),Tq=i.forwardRef(function(e,t){var n=Zj();return i.createElement(gI,Ce({},e,n,{ref:t}))});function Pq(){}function pI(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,y=n.onChange,x=n.showCheckedStrategy,S=n.loadData,b=n.expandTrigger,$=n.expandIcon,w=$===void 0?">":$,E=n.loadingIcon,R=n.direction,j=n.notFoundContent,I=j===void 0?"Not Found":j,O=n.disabled,M=!!d,N=Cn(f,{value:v,postState:Yv}),P=me(N,2),B=P[0],L=P[1],k=i.useMemo(function(){return aI(g)},[JSON.stringify(g)]),_=uI(k,u),H=me(_,3),z=H[0],D=H[1],F=H[2],W=lI(z,k),U=mI(M,B,D,F,W),V=me(U,3),G=V[0],q=V[1],K=V[2],Z=Qt(function(re){if(L(re),y){var Y=Yv(re),ee=Y.map(function(se){return Kc(se,z,k).map(function(pe){return pe.option})}),ie=M?Y:Y[0],ue=M?ee:ee[0];y(ie,ue)}}),Q=fI(M,Z,G,q,K,D,F,x),te=Qt(function(re){Q(re)}),X=i.useMemo(function(){return{options:z,fieldNames:k,values:G,halfValues:q,changeOnSelect:p,onSelect:te,checkable:d,searchOptions:[],dropdownPrefixCls:void 0,loadData:S,expandTrigger:b,expandIcon:w,loadingIcon:E,dropdownMenuColumnStyle:void 0}},[z,k,G,q,p,te,d,S,b,w,E]),oe="".concat(a,"-panel"),ae=!z.length;return i.createElement(lu.Provider,{value:X},i.createElement("div",{className:de(oe,(t={},ne(t,"".concat(oe,"-rtl"),R==="rtl"),ne(t,"".concat(oe,"-empty"),ae),t),c),style:l},ae?I:i.createElement(gI,{prefixCls:a,searchValue:"",multiple:M,toggleOpen:Pq,open:!0,direction:R,disabled:O})))}var zq=["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"],wf=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,y=p===void 0?!0:p,x=e.searchValue,S=e.onSearch,b=e.showSearch,$=e.expandTrigger,w=e.options,E=e.dropdownPrefixCls,R=e.loadData,j=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,_=e.onPopupVisibleChange,H=e.onOpenChange,z=e.expandIcon,D=z===void 0?">":z,F=e.loadingIcon,W=e.children,U=e.dropdownMatchSelectWidth,V=U===void 0?!1:U,G=e.showCheckedStrategy,q=G===void 0?nI:G,K=e.optionRender,Z=Lt(e,zq),Q=uR(n),te=!!g,X=Cn(c,{value:u,postState:Yv}),oe=me(X,2),ae=oe[0],re=oe[1],Y=i.useMemo(function(){return aI(l)},[JSON.stringify(l)]),ee=uI(Y,w),ie=me(ee,3),ue=ie[0],se=ie[1],pe=ie[2],fe=Cn("",{value:x,postState:function(jt){return jt||""}}),he=me(fe,2),Se=he[0],be=he[1],$e=function(jt,ct){be(jt),ct.source!=="blur"&&S&&S(jt)},xe=$q(b),ye=me(xe,2),Ne=ye[0],_e=ye[1],Qe=vq(Se,ue,Y,E||a,_e,d||te),Ke=lI(ue,Y),Fe=mI(te,ae,se,pe,Ke),Xe=me(Fe,3),Pe=Xe[0],je=Xe[1],Ae=Xe[2],Re=i.useMemo(function(){var zt=Wc(Pe),jt=iI(zt,se,q);return[].concat(Me(Ae),Me(pe(jt)))},[Pe,se,pe,Ae,q]),ze=bq(Re,ue,Y,te,v),we=Qt(function(zt){if(re(zt),f){var jt=Yv(zt),ct=jt.map(function(et){return Kc(et,ue,Y).map(function(Ve){return Ve.option})}),wt=te?jt:jt[0],xt=te?ct:ct[0];f(wt,xt)}}),Oe=fI(te,we,Pe,je,Ae,se,pe,q),Te=Qt(function(zt){(!te||y)&&be(""),Oe(zt)}),Le=function(jt,ct){if(ct.type==="clear"){we([]);return}var wt=ct.values[0],xt=wt.valueCells;Te(xt)},tt=I!==void 0?I:j,Ct=M||O,We=L||B,nt=function(jt){H==null||H(jt),k==null||k(jt),_==null||_(jt)},dt=i.useMemo(function(){return{options:ue,fieldNames:Y,values:Pe,halfValues:je,changeOnSelect:d,onSelect:Te,checkable:g,searchOptions:Qe,dropdownPrefixCls:E,loadData:R,expandTrigger:$,expandIcon:D,loadingIcon:F,dropdownMenuColumnStyle:N,optionRender:K}},[ue,Y,Pe,je,d,Te,g,Qe,E,R,$,D,F,N,K]),at=!(Se?Qe:ue).length,bt=Se&&_e.matchInputWidth||at?{}:{minWidth:"auto"};return i.createElement(lu.Provider,{value:dt},i.createElement(lR,Ce({},Z,{ref:t,id:Q,prefixCls:a,autoClearSearchValue:y,dropdownMatchSelectWidth:V,dropdownStyle:ce(ce({},bt),P),displayValues:ze,onDisplayValuesChange:Le,mode:te?"multiple":void 0,searchValue:Se,onSearch:$e,showSearch:Ne,OptionList:Tq,emptyOptions:at,open:tt,dropdownClassName:Ct,placement:We,onDropdownVisibleChange:nt,getRawInputElement:function(){return W}})))});wf.SHOW_PARENT=nI;wf.SHOW_CHILD=rI;wf.Panel=pI;function hI(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 bI(e,t){return i.useMemo(()=>t?i.createElement("span",{className:`${e}-checkbox-inner`}):!1,[e,t])}const yI=(e,t,n)=>{let r=n;n||(r=t?i.createElement(Vc,null):i.createElement($i,null));const a=i.useMemo(()=>i.createElement("span",{className:`${e}-menu-item-loading-icon`},i.createElement(To,{spin:!0})),[e]);return i.useMemo(()=>[r,a],[r,a])},Dq=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},mn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},mn(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({},mn(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`]:Mo(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${le(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:`${le(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 CC(e,t){const n=rn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return Dq(n)}const CI=un("Checkbox",(e,{prefixCls:t})=>[CC(t,e)]),xI=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,a=`
|
|
339
|
-
&${r}-expand ${r}-expand-icon,
|
|
340
|
-
${r}-loading-icon
|
|
341
|
-
`;return[CC(`${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:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},Qa),{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}})}}}]},_q=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},xI(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Os(e)]},SI=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}},$I=un("Cascader",_q,SI,{unitless:{optionSelectedFontWeight:!0}}),Aq=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[xI(e),{display:"inline-flex",border:`${le(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}}]}},Bq=S6(["Cascader","Panel"],Aq,SI);function kq(e){const{prefixCls:t,className:n,multiple:r,rootClassName:a,notFoundContent:l,direction:c,expandIcon:u,disabled:d}=e,f=i.useContext(Kr),v=d??f,[g,p,y,x]=hI(t,c),S=vr(p),[b,$,w]=$I(p,S);Bq(p);const E=y==="rtl",[R,j]=yI(g,E,u),I=l||(x==null?void 0:x("Cascader"))||i.createElement(bf,{componentName:"Cascader"}),O=bI(p,r);return b(i.createElement(pI,Object.assign({},e,{checkable:O,prefixCls:p,className:de(n,$,a,w,S),notFoundContent:I,direction:y,expandIcon:R,loadingIcon:j,disabled:v})))}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{SHOW_CHILD:Hq,SHOW_PARENT:Fq}=wf;function Vq(e,t,n){const r=e.toLowerCase().split(t).reduce((c,u,d)=>d===0?[u]:[].concat(Me(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 Wq=(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=Vq(String(d),l,n)),a.push(d)}),a},su=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:y,choiceTransitionName:x="",popupClassName:S,dropdownClassName:b,expandIcon:$,placement:w,showSearch:E,allowClear:R=!0,notFoundContent:j,direction:I,getPopupContainer:O,status:M,showArrow:N,builtinPlacements:P,style:B,variant:L,dropdownRender:k,onDropdownVisibleChange:_,dropdownMenuColumnStyle:H,popupRender:z,dropdownStyle:D,popupMenuColumnStyle:F,onOpenChange:W,styles:U,classNames:V}=e,G=Lq(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"]),q=En(G,["suffixIcon"]),{getPrefixCls:K,getPopupContainer:Z,className:Q,style:te,classNames:X,styles:oe}=hr("cascader"),{popupOverflow:ae}=i.useContext(Rt),{status:re,hasFeedback:Y,isFormItemInput:ee,feedbackIcon:ie}=i.useContext(Ur),ue=Rl(re,M),[se,pe,fe,he]=hI(c,I),Se=fe==="rtl",be=K(),$e=vr(se),[xe,ye,Ne]=CR(se,$e),_e=vr(pe),[Qe]=$I(pe,_e),{compactSize:Ke,compactItemClassnames:Fe}=Bo(se,I),[Xe,Pe]=Il("cascader",L,p),je=j||(he==null?void 0:he("Cascader"))||i.createElement(bf,{componentName:"Cascader"}),Ae=de(((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||b,`${pe}-dropdown`,{[`${pe}-dropdown-rtl`]:fe==="rtl"},v,$e,X.root,V==null?void 0:V.root,_e,ye,Ne),Re=xR(z||k),ze=F||H,we=W||_,Oe=((a=U==null?void 0:U.popup)===null||a===void 0?void 0:a.root)||((l=oe.popup)===null||l===void 0?void 0:l.root)||D,Te=i.useMemo(()=>{if(!E)return E;let Ve={render:Wq};return typeof E=="object"&&(Ve=Object.assign(Object.assign({},Ve),E)),Ve},[E]),Le=Tr(Ve=>{var qe;return(qe=u??Ke)!==null&&qe!==void 0?qe:Ve}),tt=i.useContext(Kr),Ct=d??tt,[We,nt]=yI(se,Se,$),dt=bI(pe,g),at=SR(e.suffixIcon,N),{suffixIcon:bt,removeIcon:zt,clearIcon:jt}=q1(Object.assign(Object.assign({},e),{hasFeedback:Y,feedbackIcon:ie,showSuffixIcon:at,multiple:g,prefixCls:se,componentName:"Cascader"})),ct=i.useMemo(()=>w!==void 0?w:Se?"bottomRight":"bottomLeft",[w,Se]),wt=R===!0?{clearIcon:jt}:R,[xt]=Ao("SelectLike",Oe==null?void 0:Oe.zIndex),et=i.createElement(wf,Object.assign({prefixCls:se,className:de(!c&&pe,{[`${se}-lg`]:Le==="large",[`${se}-sm`]:Le==="small",[`${se}-rtl`]:Se,[`${se}-${Xe}`]:Pe,[`${se}-in-form-item`]:ee},Ei(se,ue,Y),Fe,Q,f,v,V==null?void 0:V.root,X.root,$e,_e,ye,Ne),disabled:Ct,style:Object.assign(Object.assign(Object.assign(Object.assign({},oe.root),U==null?void 0:U.root),te),B)},q,{builtinPlacements:vR(P,ae),direction:fe,placement:ct,notFoundContent:je,allowClear:wt,showSearch:Te,expandIcon:We,suffixIcon:bt,removeIcon:zt,loadingIcon:nt,checkable:dt,dropdownClassName:Ae,dropdownPrefixCls:c||pe,dropdownStyle:Object.assign(Object.assign({},Oe),{zIndex:xt}),dropdownRender:Re,dropdownMenuColumnStyle:ze,onOpenChange:we,choiceTransitionName:Yo(be,"",x),transitionName:Yo(be,"slide-up",y),getPopupContainer:O||Z,ref:t}));return Qe(xe(et))}),Kq=nu(su,"dropdownAlign",e=>En(e,["visible"]));su.SHOW_PARENT=Fq;su.SHOW_CHILD=Hq;su.Panel=kq;su._InternalPanelDoNotUseOrYouWillBeFired=Kq;const wI=ge.createContext(null);var Uq=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 qq=(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,y=Uq(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:x,direction:S,checkbox:b}=i.useContext(Rt),$=i.useContext(wI),{isFormItemInput:w}=i.useContext(Ur),E=i.useContext(Kr),R=(n=($==null?void 0:$.disabled)||p)!==null&&n!==void 0?n:E,j=i.useRef(y.value),I=i.useRef(null),O=Mr(t,I);i.useEffect(()=>{$==null||$.registerValue(y.value)},[]),i.useEffect(()=>{if(!g)return y.value!==j.current&&($==null||$.cancelValue(j.current),$==null||$.registerValue(y.value),j.current=y.value),()=>$==null?void 0:$.cancelValue(y.value)},[y.value]),i.useEffect(()=>{var F;!((F=I.current)===null||F===void 0)&&F.input&&(I.current.input.indeterminate=u)},[u]);const M=x("checkbox",r),N=vr(M),[P,B,L]=CI(M,N),k=Object.assign({},y);$&&!g&&(k.onChange=(...F)=>{y.onChange&&y.onChange.apply(y,F),$.toggleOption&&$.toggleOption({label:c,value:y.value})},k.name=$.name,k.checked=$.value.includes(y.value));const _=de(`${M}-wrapper`,{[`${M}-rtl`]:S==="rtl",[`${M}-wrapper-checked`]:k.checked,[`${M}-wrapper-disabled`]:R,[`${M}-wrapper-in-form-item`]:w},b==null?void 0:b.className,a,l,L,N,B),H=de({[`${M}-indeterminate`]:u},yg,B),[z,D]=A8(k.onClick);return P(i.createElement(cf,{component:"Checkbox",disabled:R},i.createElement("label",{className:_,style:Object.assign(Object.assign({},b==null?void 0:b.style),d),onMouseEnter:f,onMouseLeave:v,onClick:z},i.createElement(_8,Object.assign({},k,{onClick:D,prefixCls:M,className:H,disabled:R,ref:O})),c!=null&&i.createElement("span",{className:`${M}-label`},c))))},EI=i.forwardRef(qq);var Gq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Xq=i.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:a=[],prefixCls:l,className:c,rootClassName:u,style:d,onChange:f}=e,v=Gq(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:g,direction:p}=i.useContext(Rt),[y,x]=i.useState(v.value||n||[]),[S,b]=i.useState([]);i.useEffect(()=>{"value"in v&&x(v.value||[])},[v.value]);const $=i.useMemo(()=>a.map(H=>typeof H=="string"||typeof H=="number"?{label:H,value:H}:H),[a]),w=H=>{b(z=>z.filter(D=>D!==H))},E=H=>{b(z=>[].concat(Me(z),[H]))},R=H=>{const z=y.indexOf(H.value),D=Me(y);z===-1?D.push(H.value):D.splice(z,1),"value"in v||x(D),f==null||f(D.filter(F=>S.includes(F)).sort((F,W)=>{const U=$.findIndex(G=>G.value===F),V=$.findIndex(G=>G.value===W);return U-V}))},j=g("checkbox",l),I=`${j}-group`,O=vr(j),[M,N,P]=CI(j,O),B=En(v,["value","disabled"]),L=a.length?$.map(H=>i.createElement(EI,{prefixCls:j,key:H.value.toString(),disabled:"disabled"in H?H.disabled:v.disabled,value:H.value,checked:y.includes(H.value),onChange:H.onChange,className:de(`${I}-item`,H.className),style:H.style,title:H.title,id:H.id,required:H.required},H.label)):r,k=i.useMemo(()=>({toggleOption:R,value:y,disabled:v.disabled,name:v.name,registerValue:E,cancelValue:w}),[R,y,v.disabled,v.name,E,w]),_=de(I,{[`${I}-rtl`]:p==="rtl"},c,u,P,O,N);return M(i.createElement("div",Object.assign({className:_,style:d},B,{ref:t}),i.createElement(wI.Provider,{value:k},L)))}),Qr=EI;Qr.Group=Xq;Qr.__ANT_CHECKBOX=!0;const OI=i.createContext({});var Yq=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 j4(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 Qq=["xs","sm","md","lg","xl","xxl"],Qn=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=i.useContext(Rt),{gutter:a,wrap:l}=i.useContext(OI),{prefixCls:c,span:u,order:d,offset:f,push:v,pull:g,className:p,children:y,flex:x,style:S}=e,b=Yq(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),$=n("col",c),[w,E,R]=UB($),j={};let I={};Qq.forEach(N=>{let P={};const B=e[N];typeof B=="number"?P.span=B:typeof B=="object"&&(P=B||{}),delete b[N],I=Object.assign(Object.assign({},I),{[`${$}-${N}-${P.span}`]:P.span!==void 0,[`${$}-${N}-order-${P.order}`]:P.order||P.order===0,[`${$}-${N}-offset-${P.offset}`]:P.offset||P.offset===0,[`${$}-${N}-push-${P.push}`]:P.push||P.push===0,[`${$}-${N}-pull-${P.pull}`]:P.pull||P.pull===0,[`${$}-rtl`]:r==="rtl"}),P.flex&&(I[`${$}-${N}-flex`]=!0,j[`--${$}-${N}-flex`]=j4(P.flex))});const O=de($,{[`${$}-${u}`]:u!==void 0,[`${$}-order-${d}`]:d,[`${$}-offset-${f}`]:f,[`${$}-push-${v}`]:v,[`${$}-pull-${g}`]:g},p,I,E,R),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 x&&(M.flex=j4(x),l===!1&&!M.minWidth&&(M.minWidth=0)),w(i.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},M),S),j),className:O,ref:t}),y))});function Zq(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<hs.length;u++){const d=hs[u];if(a[d]&&l[d]!==void 0){n[c]=l[d];break}}else n[c]=l}),n}var Jq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function R4(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<hs.length;l++){const c=hs[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 Ro=i.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:l,style:c,children:u,gutter:d=0,wrap:f}=e,v=Jq(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:p}=i.useContext(Rt),y=_g(!0,null),x=R4(a,y),S=R4(r,y),b=g("row",n),[$,w,E]=KB(b),R=Zq(d,y),j=de(b,{[`${b}-no-wrap`]:f===!1,[`${b}-${S}`]:S,[`${b}-${x}`]:x,[`${b}-rtl`]:p==="rtl"},l,w,E),I={};if(R!=null&&R[0]){const P=typeof R[0]=="number"?`${R[0]/-2}px`:`calc(${R[0]} / -2)`;I.marginLeft=P,I.marginRight=P}const[O,M]=R;I.rowGap=M;const N=i.useMemo(()=>({gutter:[O,M],wrap:f}),[O,M,f]);return $(i.createElement(OI.Provider,{value:N},i.createElement("div",Object.assign({},v,{className:j,style:Object.assign(Object.assign({},I),c),ref:t}),u)))}),eG=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},tG=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:l,orientationMargin:c,verticalMarginInline:u}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{borderBlockStart:`${le(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:u,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${le(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${le(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${le(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:`${le(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:`${le(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:`${le(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}}})}},nG=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),rG=un("Divider",e=>{const t=rn(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[tG(t),eG(t)]},nG,{unitless:{orientationMargin:!0}});var aG=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 oG={small:"sm",middle:"md"},xC=e=>{const{getPrefixCls:t,direction:n,className:r,style:a}=hr("divider"),{prefixCls:l,type:c="horizontal",orientation:u="center",orientationMargin:d,className:f,rootClassName:v,children:g,dashed:p,variant:y="solid",plain:x,style:S,size:b}=e,$=aG(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),w=t("divider",l),[E,R,j]=rG(w),I=Tr(b),O=oG[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=de(w,r,R,j,`${w}-${c}`,{[`${w}-with-text`]:M,[`${w}-with-text-${N}`]:M,[`${w}-dashed`]:!!p,[`${w}-${y}`]:y!=="solid",[`${w}-plain`]:!!x,[`${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]),_={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)},$,{role:"separator"}),g&&c!=="vertical"&&i.createElement("span",{className:`${w}-inner-text`,style:_},g)))};var I4=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}},Ko=function(t){return t!==void 0?"".concat(t,"px"):void 0};function iG(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),y=me(p,2),x=y[0],S=y[1],b=function(H){var z,D=a(H),F=(z=n.current)===null||z===void 0?void 0:z.querySelectorAll(".".concat(t,"-item"))[D];return(F==null?void 0:F.offsetParent)&&F},$=i.useState(null),w=me($,2),E=w[0],R=w[1],j=i.useState(null),I=me(j,2),O=I[0],M=I[1];an(function(){if(x!==r){var _=b(x),H=b(r),z=I4(_,v),D=I4(H,v);S(r),R(z),M(D),_&&H?c():u()}},[r]);var N=i.useMemo(function(){if(v){var _;return Ko((_=E==null?void 0:E.top)!==null&&_!==void 0?_:0)}return Ko(d==="rtl"?-(E==null?void 0:E.right):E==null?void 0:E.left)},[v,d,E]),P=i.useMemo(function(){if(v){var _;return Ko((_=O==null?void 0:O.top)!==null&&_!==void 0?_:0)}return Ko(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(){R(null),M(null),u()};return!E||!O?null:i.createElement(ta,{visible:!0,motionName:l,motionAppear:!0,onAppearStart:B,onAppearActive:L,onVisibleChanged:k},function(_,H){var z=_.className,D=_.style,F=ce(ce({},D),{},{"--thumb-start-left":N,"--thumb-start-width":Ko(E==null?void 0:E.width),"--thumb-active-left":P,"--thumb-active-width":Ko(O==null?void 0:O.width),"--thumb-start-top":N,"--thumb-start-height":Ko(E==null?void 0:E.height),"--thumb-active-top":P,"--thumb-active-height":Ko(O==null?void 0:O.height)}),W={ref:Mr(g,H),style:F,className:de("".concat(t,"-thumb"),z)};return i.createElement("div",W)})}var lG=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function sG(e){if(typeof e.title<"u")return e.title;if(Ot(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function cG(e){return e.map(function(t){if(Ot(t)==="object"&&t!==null){var n=sG(t);return ce(ce({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var uG=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,y=t.onKeyDown,x=t.onKeyUp,S=t.onMouseDown,b=function(w){a||v(w,d)};return i.createElement("label",{className:de(r,ne({},"".concat(n,"-item-disabled"),a)),onMouseDown:S},i.createElement("input",{name:f,className:"".concat(n,"-item-input"),type:"radio",disabled:a,checked:l,onChange:b,onFocus:g,onBlur:p,onKeyDown:y,onKeyUp:x}),i.createElement("div",{className:"".concat(n,"-item-label"),title:u},c))},dG=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,y=e.onChange,x=e.className,S=x===void 0?"":x,b=e.motionName,$=b===void 0?"thumb-motion":b,w=Lt(e,lG),E=i.useRef(null),R=i.useMemo(function(){return Mr(E,t)},[E,t]),j=i.useMemo(function(){return cG(d)},[d]),I=Cn((n=j[0])===null||n===void 0?void 0:n.value,{value:g,defaultValue:v}),O=me(I,2),M=O[0],N=O[1],P=i.useState(!1),B=me(P,2),L=B[0],k=B[1],_=function(re,Y){N(Y),y==null||y(Y)},H=En(w,["children"]),z=i.useState(!1),D=me(z,2),F=D[0],W=D[1],U=i.useState(!1),V=me(U,2),G=V[0],q=V[1],K=function(){q(!0)},Z=function(){q(!1)},Q=function(){W(!1)},te=function(re){re.key==="Tab"&&W(!0)},X=function(re){var Y=j.findIndex(function(se){return se.value===M}),ee=j.length,ie=(Y+re+ee)%ee,ue=j[ie];ue&&(N(ue.value),y==null||y(ue.value))},oe=function(re){switch(re.key){case"ArrowLeft":case"ArrowUp":X(-1);break;case"ArrowRight":case"ArrowDown":X(1);break}};return i.createElement("div",Ce({role:"radiogroup","aria-label":"segmented control",tabIndex:f?void 0:0,"aria-orientation":c?"vertical":"horizontal"},H,{className:de(a,ne(ne(ne({},"".concat(a,"-rtl"),l==="rtl"),"".concat(a,"-disabled"),f),"".concat(a,"-vertical"),c),S),ref:R}),i.createElement("div",{className:"".concat(a,"-group")},i.createElement(iG,{vertical:c,prefixCls:a,value:M,containerRef:E,motionName:"".concat(a,"-").concat($),direction:l,getValueIndex:function(re){return j.findIndex(function(Y){return Y.value===re})},onMotionStart:function(){k(!0)},onMotionEnd:function(){k(!1)}}),j.map(function(ae){return i.createElement(uG,Ce({},ae,{name:p,key:ae.value,prefixCls:a,className:de(ae.className,"".concat(a,"-item"),ne(ne({},"".concat(a,"-item-selected"),ae.value===M&&!L),"".concat(a,"-item-focused"),G&&F&&ae.value===M)),checked:ae.value===M,onChange:_,onFocus:K,onBlur:Z,onKeyDown:oe,onKeyUp:te,onMouseDown:Q,disabled:!!f||!!ae.disabled}))})))}),fG=dG;function N4(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function M4(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const mG=Object.assign({overflow:"hidden"},Qa),vG=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({},mn(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`}),Za(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 ${le(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({},M4(e)),{color:e.itemSelectedColor}),"&-focused":Mo(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:le(n),padding:`0 ${le(e.segmentedPaddingHorizontal)}`},mG),"&-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({},M4(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${le(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:le(r),padding:`0 ${le(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:a,lineHeight:le(a),padding:`0 ${le(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),N4(`&-disabled ${t}-item`,e)),N4(`${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}}})}},gG=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}},pG=un("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=rn(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return vG(r)},gG);var T4=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 hG(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const bG=i.forwardRef((e,t)=>{const n=mf(),{prefixCls:r,className:a,rootClassName:l,block:c,options:u=[],size:d="middle",style:f,vertical:v,shape:g="default",name:p=n}=e,y=T4(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:x,direction:S,className:b,style:$}=hr("segmented"),w=x("segmented",r),[E,R,j]=pG(w),I=Tr(d),O=i.useMemo(()=>u.map(P=>{if(hG(P)){const{icon:B,label:L}=P,k=T4(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=de(a,l,b,{[`${w}-block`]:c,[`${w}-sm`]:I==="small",[`${w}-lg`]:I==="large",[`${w}-vertical`]:v,[`${w}-shape-${g}`]:g==="round"},R,j),N=Object.assign(Object.assign({},$),f);return E(i.createElement(fG,Object.assign({},y,{name:p,className:M,style:N,options:O,ref:t,prefixCls:w,direction:S,vertical:v})))}),yG=bG;var CG={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"},xG=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:CG}))},SG=i.forwardRef(xG);function Uy(){return typeof BigInt=="function"}function jI(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function ds(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 Zg(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function RI(e){var t=e.toLowerCase().split("e"),n=me(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=me(d,2),v=f[0],g=v===void 0?"0":v,p=f[1],y=p===void 0?"":p,x="".concat(g).concat(y).replace(/^0+/,"")||"0";return{decimal:y,digits:x,exponent:Number(l),integer:g,negative:c}}function $G(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 II(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function rs(e){var t=String(e);return Zg(e)?II(RI(t)):t.includes(".")&&SC(t)?t.length-t.indexOf(".")-1:0}function Jg(e){var t=String(e);if(Zg(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Uy()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Uy()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var n=RI(t),r=II(n);t=r>100?$G(n):e.toFixed(r)}return ds(t).fullStr}function SC(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 wG=(function(){function e(t){if(gr(this,e),ne(this,"origin",""),ne(this,"negative",void 0),ne(this,"integer",void 0),ne(this,"decimal",void 0),ne(this,"decimalLen",void 0),ne(this,"empty",void 0),ne(this,"nan",void 0),jI(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Zg(n)&&(n=Number(n)),n=typeof n=="string"?n:Jg(n),SC(n)){var r=ds(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 pr(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=ds(d),g=v.negativeStr,p=v.trimStr,y="".concat(g).concat(p.padStart(f+1,"0"));return new e("".concat(y.slice(0,-f),".").concat(y.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()?"":ds("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),EG=(function(){function e(t){if(gr(this,e),ne(this,"origin",""),ne(this,"number",void 0),ne(this,"empty",void 0),jI(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return pr(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(rs(this.number),rs(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(rs(this.number),rs(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()?"":Zg(this.number)&&rs(this.number)>100?String(this.number):Jg(this.number):this.origin}}]),e})();function So(e){return Uy()?new wG(e):new EG(e)}function Iv(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=ds(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=So(e).add("".concat(l,"0.").concat("0".repeat(n)).concat(10-v));return Iv(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 OG(e){return!!(e.addonBefore||e.addonAfter)}function jG(e){return!!(e.prefix||e.suffix||e.allowClear)}function P4(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 Qv(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=P4(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=P4(t,e,r),n(a);return}n(a)}}function $C(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 wC=ge.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,y=e.style,x=e.disabled,S=e.readOnly,b=e.focused,$=e.triggerFocus,w=e.allowClear,E=e.value,R=e.handleReset,j=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",_=(P==null?void 0:P.groupWrapper)||"span",H=(P==null?void 0:P.wrapper)||"span",z=(P==null?void 0:P.groupAddon)||"span",D=i.useRef(null),F=function(ue){var se;(se=D.current)!==null&&se!==void 0&&se.contains(ue.target)&&($==null||$())},W=jG(e),U=i.cloneElement(L,{value:E,className:de((n=L.props)===null||n===void 0?void 0:n.className,!W&&(O==null?void 0:O.variant))||null}),V=i.useRef(null);if(ge.useImperativeHandle(t,function(){return{nativeElement:V.current||D.current}}),W){var G=null;if(w){var q=!x&&!S&&E,K="".concat(u,"-clear-icon"),Z=Ot(w)==="object"&&w!==null&&w!==void 0&&w.clearIcon?w.clearIcon:"✖";G=ge.createElement("button",{type:"button",tabIndex:-1,onClick:function(ue){R==null||R(ue),B==null||B()},onMouseDown:function(ue){return ue.preventDefault()},className:de(K,ne(ne({},"".concat(K,"-hidden"),!q),"".concat(K,"-has-suffix"),!!f))},Z)}var Q="".concat(u,"-affix-wrapper"),te=de(Q,ne(ne(ne(ne(ne({},"".concat(u,"-disabled"),x),"".concat(Q,"-disabled"),x),"".concat(Q,"-focused"),b),"".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)&&ge.createElement("span",{className:de("".concat(u,"-suffix"),O==null?void 0:O.suffix),style:N==null?void 0:N.suffix},G,f);U=ge.createElement(k,Ce({className:te,style:N==null?void 0:N.affixWrapper,onClick:F},M==null?void 0:M.affixWrapper,{ref:D}),d&&ge.createElement("span",{className:de("".concat(u,"-prefix"),O==null?void 0:O.prefix),style:N==null?void 0:N.prefix},d),U,X)}if(OG(e)){var oe="".concat(u,"-group"),ae="".concat(oe,"-addon"),re="".concat(oe,"-wrapper"),Y=de("".concat(u,"-wrapper"),oe,I==null?void 0:I.wrapper,O==null?void 0:O.wrapper),ee=de(re,ne({},"".concat(re,"-disabled"),x),I==null?void 0:I.group,O==null?void 0:O.groupWrapper);U=ge.createElement(_,{className:ee,ref:V},ge.createElement(H,{className:Y},v&&ge.createElement(z,{className:ae},v),U,g&&ge.createElement(z,{className:ae},g)))}return ge.cloneElement(U,{className:de((r=U.props)===null||r===void 0?void 0:r.className,p)||null,style:ce(ce({},(a=U.props)===null||a===void 0?void 0:a.style),y),hidden:j})}),RG=["show"];function NI(e,t){return i.useMemo(function(){var n={};t&&(n.show=Ot(t)==="object"&&t.formatter?t.formatter:!!t),n=ce(ce({},n),e);var r=n,a=r.show,l=Lt(r,RG);return ce(ce({},l),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:l.strategy||function(c){return c.length}})},[e,t])}var IG=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],NG=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,y=e.className,x=e.maxLength,S=e.suffix,b=e.showCount,$=e.count,w=e.type,E=w===void 0?"text":w,R=e.classes,j=e.classNames,I=e.styles,O=e.onCompositionStart,M=e.onCompositionEnd,N=Lt(e,IG),P=i.useState(!1),B=me(P,2),L=B[0],k=B[1],_=i.useRef(!1),H=i.useRef(!1),z=i.useRef(null),D=i.useRef(null),F=function(ye){z.current&&$C(z.current,ye)},W=Cn(e.defaultValue,{value:e.value}),U=me(W,2),V=U[0],G=U[1],q=V==null?"":String(V),K=i.useState(null),Z=me(K,2),Q=Z[0],te=Z[1],X=NI($,b),oe=X.max||x,ae=X.strategy(q),re=!!oe&&ae>oe;i.useImperativeHandle(t,function(){var xe;return{focus:F,blur:function(){var Ne;(Ne=z.current)===null||Ne===void 0||Ne.blur()},setSelectionRange:function(Ne,_e,Qe){var Ke;(Ke=z.current)===null||Ke===void 0||Ke.setSelectionRange(Ne,_e,Qe)},select:function(){var Ne;(Ne=z.current)===null||Ne===void 0||Ne.select()},input:z.current,nativeElement:((xe=D.current)===null||xe===void 0?void 0:xe.nativeElement)||z.current}}),i.useEffect(function(){H.current&&(H.current=!1),k(function(xe){return xe&&g?!1:xe})},[g]);var Y=function(ye,Ne,_e){var Qe=Ne;if(!_.current&&X.exceedFormatter&&X.max&&X.strategy(Ne)>X.max){if(Qe=X.exceedFormatter(Ne,{max:X.max}),Ne!==Qe){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(_e.source==="compositionEnd")return;G(Qe),z.current&&Qv(z.current,ye,r,Qe)};i.useEffect(function(){if(Q){var xe;(xe=z.current)===null||xe===void 0||xe.setSelectionRange.apply(xe,Me(Q))}},[Q]);var ee=function(ye){Y(ye,ye.target.value,{source:"change"})},ie=function(ye){_.current=!1,Y(ye,ye.currentTarget.value,{source:"compositionEnd"}),M==null||M(ye)},ue=function(ye){c&&ye.key==="Enter"&&!H.current&&(H.current=!0,c(ye)),u==null||u(ye)},se=function(ye){ye.key==="Enter"&&(H.current=!1),d==null||d(ye)},pe=function(ye){k(!0),a==null||a(ye)},fe=function(ye){H.current&&(H.current=!1),k(!1),l==null||l(ye)},he=function(ye){G(""),F(),z.current&&Qv(z.current,ye,r)},Se=re&&"".concat(v,"-out-of-range"),be=function(){var ye=En(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ge.createElement("input",Ce({autoComplete:n},ye,{onChange:ee,onFocus:pe,onBlur:fe,onKeyDown:ue,onKeyUp:se,className:de(v,ne({},"".concat(v,"-disabled"),g),j==null?void 0:j.input),style:I==null?void 0:I.input,ref:z,size:p,type:E,onCompositionStart:function(_e){_.current=!0,O==null||O(_e)},onCompositionEnd:ie}))},$e=function(){var ye=Number(oe)>0;if(S||X.show){var Ne=X.showFormatter?X.showFormatter({value:q,count:ae,maxLength:oe}):"".concat(ae).concat(ye?" / ".concat(oe):"");return ge.createElement(ge.Fragment,null,X.show&&ge.createElement("span",{className:de("".concat(v,"-show-count-suffix"),ne({},"".concat(v,"-show-count-has-suffix"),!!S),j==null?void 0:j.count),style:ce({},I==null?void 0:I.count)},Ne),S)}return null};return ge.createElement(wC,Ce({},N,{prefixCls:v,className:de(y,Se),handleReset:he,value:q,focused:L,triggerFocus:F,suffix:$e(),disabled:g,classes:R,classNames:j,styles:I,ref:D}),be())});function MG(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 TG(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(y){Zn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(y.message))}}return[r,a]}var PG=function(){var t=i.useState(!1),n=me(t,2),r=n[0],a=n[1];return an(function(){a(Pg())},[]),r},zG=200,DG=600;function _G(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,R){E.preventDefault(),v(),f.current(R);function j(){f.current(R),u.current=setTimeout(j,zG)}u.current=setTimeout(j,DG)};i.useEffect(function(){return function(){v(),d.current.forEach(function(w){return Zt.cancel(w)})}},[]);var p=PG();if(p)return null;var y="".concat(t,"-handler"),x=de(y,"".concat(y,"-up"),ne({},"".concat(y,"-up-disabled"),a)),S=de(y,"".concat(y,"-down"),ne({},"".concat(y,"-down-disabled"),l)),b=function(){return d.current.push(Zt(v))},$={unselectable:"on",role:"button",onMouseUp:b,onMouseLeave:b};return i.createElement("div",{className:"".concat(y,"-wrap")},i.createElement("span",Ce({},$,{onMouseDown:function(E){g(E,!0)},"aria-label":"Increase Value","aria-disabled":a,className:x}),n||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),i.createElement("span",Ce({},$,{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 z4(e){var t=typeof e=="number"?Jg(e):ds(e).fullStr,n=t.includes(".");return n?ds(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const AG=(function(){var e=i.useRef(0),t=function(){Zt.cancel(e.current)};return i.useEffect(function(){return t},[]),function(n){t(),e.current=Zt(function(){n()})}});var BG=["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"],kG=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],D4=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},_4=function(t){var n=So(t);return n.isInvalidate()?null:n},LG=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,y=e.upHandler,x=e.downHandler,S=e.keyboard,b=e.changeOnWheel,$=b===void 0?!1:b,w=e.controls,E=w===void 0?!0:w;e.classNames;var R=e.stringMode,j=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,_=k===void 0?!0:k,H=e.domRef,z=Lt(e,BG),D="".concat(n,"-input"),F=i.useRef(null),W=i.useState(!1),U=me(W,2),V=U[0],G=U[1],q=i.useRef(!1),K=i.useRef(!1),Z=i.useRef(!1),Q=i.useState(function(){return So(v??f)}),te=me(Q,2),X=te[0],oe=te[1];function ae(We){v===void 0&&oe(We)}var re=i.useCallback(function(We,nt){if(!nt)return O>=0?O:Math.max(rs(We),rs(d))},[O,d]),Y=i.useCallback(function(We){var nt=String(We);if(j)return j(nt);var dt=nt;return M&&(dt=dt.replace(M,".")),dt.replace(/[^\w.-]+/g,"")},[j,M]),ee=i.useRef(""),ie=i.useCallback(function(We,nt){if(I)return I(We,{userTyping:nt,input:String(ee.current)});var dt=typeof We=="number"?Jg(We):We;if(!nt){var at=re(dt,nt);if(SC(dt)&&(M||at>=0)){var bt=M||".";dt=Iv(dt,bt,at)}}return dt},[I,re,M]),ue=i.useState(function(){var We=f??v;return X.isInvalidate()&&["string","number"].includes(Ot(We))?Number.isNaN(We)?"":We:ie(X.toString(),!1)}),se=me(ue,2),pe=se[0],fe=se[1];ee.current=pe;function he(We,nt){fe(ie(We.isInvalidate()?We.toString(!1):We.toString(!nt),nt))}var Se=i.useMemo(function(){return _4(c)},[c,O]),be=i.useMemo(function(){return _4(l)},[l,O]),$e=i.useMemo(function(){return!Se||!X||X.isInvalidate()?!1:Se.lessEquals(X)},[Se,X]),xe=i.useMemo(function(){return!be||!X||X.isInvalidate()?!1:X.lessEquals(be)},[be,X]),ye=TG(F.current,V),Ne=me(ye,2),_e=Ne[0],Qe=Ne[1],Ke=function(nt){return Se&&!nt.lessEquals(Se)?Se:be&&!be.lessEquals(nt)?be:null},Fe=function(nt){return!Ke(nt)},Xe=function(nt,dt){var at=nt,bt=Fe(at)||at.isEmpty();if(!at.isEmpty()&&!dt&&(at=Ke(at)||at,bt=!0),!p&&!g&&bt){var zt=at.toString(),jt=re(zt,dt);return jt>=0&&(at=So(Iv(zt,".",jt)),Fe(at)||(at=So(Iv(zt,".",jt,!0)))),at.equals(X)||(ae(at),N==null||N(at.isEmpty()?null:D4(R,at)),v===void 0&&he(at,dt)),at}return X},Pe=AG(),je=function We(nt){if(_e(),ee.current=nt,fe(nt),!K.current){var dt=Y(nt),at=So(dt);at.isNaN()||Xe(at,!0)}P==null||P(nt),Pe(function(){var bt=nt;j||(bt=nt.replace(/。/g,".")),bt!==nt&&We(bt)})},Ae=function(){K.current=!0},Re=function(){K.current=!1,je(F.current.value)},ze=function(nt){je(nt.target.value)},we=function(nt){var dt;if(!(nt&&$e||!nt&&xe)){q.current=!1;var at=So(Z.current?z4(d):d);nt||(at=at.negate());var bt=(X||So(0)).add(at.toString()),zt=Xe(bt,!1);L==null||L(D4(R,zt),{offset:Z.current?z4(d):d,type:nt?"up":"down"}),(dt=F.current)===null||dt===void 0||dt.focus()}},Oe=function(nt){var dt=So(Y(pe)),at;dt.isNaN()?at=Xe(X,nt):at=Xe(dt,nt),v!==void 0?he(X,!1):at.isNaN()||he(at,!1)},Te=function(){q.current=!0},Le=function(nt){var dt=nt.key,at=nt.shiftKey;q.current=!0,Z.current=at,dt==="Enter"&&(K.current||(q.current=!1),Oe(!1),B==null||B(nt)),S!==!1&&!K.current&&["Up","ArrowUp","Down","ArrowDown"].includes(dt)&&(we(dt==="Up"||dt==="ArrowUp"),nt.preventDefault())},tt=function(){q.current=!1,Z.current=!1};i.useEffect(function(){if($&&V){var We=function(at){we(at.deltaY<0),at.preventDefault()},nt=F.current;if(nt)return nt.addEventListener("wheel",We,{passive:!1}),function(){return nt.removeEventListener("wheel",We)}}});var Ct=function(){_&&Oe(!1),G(!1),q.current=!1};return cs(function(){X.isInvalidate()||he(X,!1)},[O,I]),cs(function(){var We=So(v);oe(We);var nt=So(Y(pe));(!We.equals(nt)||!q.current||I)&&he(We,q.current)},[v]),cs(function(){I&&Qe()},[pe]),i.createElement("div",{ref:H,className:de(n,r,ne(ne(ne(ne(ne({},"".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:Ct,onKeyDown:Le,onKeyUp:tt,onCompositionStart:Ae,onCompositionEnd:Re,onBeforeInput:Te},E&&i.createElement(_G,{prefixCls:n,upNode:y,downNode:x,upDisabled:$e,downDisabled:xe,onStep:we}),i.createElement("div",{className:"".concat(D,"-wrap")},i.createElement("input",Ce({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":X.isInvalidate()?null:X.toString(),step:d},z,{ref:Mr(F,t),className:D,value:pe,onChange:ze,disabled:g,readOnly:p}))))}),HG=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,y=Lt(e,kG),x=i.useRef(null),S=i.useRef(null),b=i.useRef(null),$=function(E){b.current&&$C(b.current,E)};return i.useImperativeHandle(t,function(){return MG(b.current,{focus:$,nativeElement:x.current.nativeElement||S.current})}),i.createElement(wC,{className:g,triggerFocus:$,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:x},i.createElement(LG,Ce({prefixCls:l,disabled:n,ref:b,domRef:S,className:p==null?void 0:p.input},y)))});const FG=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},Ts(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new bn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},A4=({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}}}},VG=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:y,colorIcon:x,motionDurationMid:S,handleHoverColor:b,handleOpacity:$,paddingInline:w,paddingBlock:E,handleBg:R,handleActiveBg:j,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({},mn(e)),Sf(e)),{display:"inline-block",width:N,margin:0,padding:0,borderRadius:a}),fC(e,{[`${t}-handler-wrap`]:{background:R,[`${t}-handler-down`]:{borderBlockStart:`${le(n)} ${r} ${P}`}}})),vC(e,{[`${t}-handler-wrap`]:{background:B,[`${t}-handler-down`]:{borderBlockStart:`${le(n)} ${r} ${P}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:R}}})),gC(e,{[`${t}-handler-wrap`]:{background:R,[`${t}-handler-down`]:{borderBlockStart:`${le(n)} ${r} ${P}`}}})),mC(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:`${le(p)} ${le(y)}`}},"&-sm":{padding:0,fontSize:l,borderRadius:O,[`input${t}-input`]:{height:k(d).sub(k(n).mul(2)).equal(),padding:`${le(g)} ${le(v)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:f}}},"&-group":Object.assign(Object.assign(Object.assign({},mn(e)),q8(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}}},F8(e)),W8(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({},mn(e)),{width:"100%",padding:`${le(E)} ${le(w)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${S} linear`,appearance:"textfield",fontSize:"inherit"}),pC(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:$,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:x,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${le(n)} ${r} ${P}`,transition:`all ${S} linear`,"&:active":{background:j},"&:hover":{height:"60%",[`
|
|
345
|
-
${t}-handler-up-inner,
|
|
346
|
-
${t}-handler-down-inner
|
|
347
|
-
`]:{color:b}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},$s()),{color:x,transition:`all ${S} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},A4(e,"lg")),A4(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}})}]},WG=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:`${le(n)} 0`}},Sf(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:l,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:c,paddingInlineStart:d,[`input${t}-input`]:{padding:`${le(v)} 0`}},"&-sm":{borderRadius:u,paddingInlineStart:f,[`input${t}-input`]:{padding:`${le(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}}},KG=un("InputNumber",e=>{const t=rn(e,Ms(e));return[VG(t),WG(t),Os(t)]},FG,{unitless:{handleOpacity:!0},resetFont:!1});var UG=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 MI=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:y,bordered:x,readOnly:S,status:b,controls:$,variant:w}=e,E=UG(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),R=n("input-number",f),j=vr(R),[I,O,M]=KG(R,j),{compactSize:N,compactItemClassnames:P}=Bo(R,r);let B=i.createElement(SG,{className:`${R}-handler-up-inner`}),L=i.createElement(yf,{className:`${R}-handler-down-inner`});const k=typeof $=="boolean"?$:void 0;typeof $=="object"&&(B=typeof $.upIcon>"u"?B:i.createElement("span",{className:`${R}-handler-up-inner`},$.upIcon),L=typeof $.downIcon>"u"?L:i.createElement("span",{className:`${R}-handler-down-inner`},$.downIcon));const{hasFeedback:_,status:H,isFormItemInput:z,feedbackIcon:D}=i.useContext(Ur),F=Rl(H,b),W=Tr(X=>{var oe;return(oe=u??N)!==null&&oe!==void 0?oe:X}),U=i.useContext(Kr),V=d??U,[G,q]=Il("inputNumber",w,x),K=_&&i.createElement(i.Fragment,null,D),Z=de({[`${R}-lg`]:W==="large",[`${R}-sm`]:W==="small",[`${R}-rtl`]:r==="rtl",[`${R}-in-form-item`]:z},O),Q=`${R}-group`,te=i.createElement(HG,Object.assign({ref:a,disabled:V,className:de(M,j,l,c,P),upHandler:B,downHandler:L,prefixCls:R,readOnly:S,controls:k,prefix:p,suffix:K||y,addonBefore:v&&i.createElement(Jo,{form:!0,space:!0},v),addonAfter:g&&i.createElement(Jo,{form:!0,space:!0},g),classNames:{input:Z,variant:de({[`${R}-${G}`]:q},Ei(R,F,_)),affixWrapper:de({[`${R}-affix-wrapper-sm`]:W==="small",[`${R}-affix-wrapper-lg`]:W==="large",[`${R}-affix-wrapper-rtl`]:r==="rtl",[`${R}-affix-wrapper-without-controls`]:$===!1||V||S},O),wrapper:de({[`${Q}-rtl`]:r==="rtl"},O),groupWrapper:de({[`${R}-group-wrapper-sm`]:W==="small",[`${R}-group-wrapper-lg`]:W==="large",[`${R}-group-wrapper-rtl`]:r==="rtl",[`${R}-group-wrapper-${G}`]:q},Ei(`${R}-group-wrapper`,F,_),O)}},E));return I(te)}),Zv=MI,qG=e=>i.createElement(Do,{theme:{components:{InputNumber:{handleVisible:!0}}}},i.createElement(MI,Object.assign({},e)));Zv._InternalPanelDoNotUseOrYouWillBeFired=qG;const TI=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ge.createElement(Ol,null)}),t};function PI(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 GG(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var XG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Ef=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:y,style:x,styles:S,rootClassName:b,onChange:$,classNames:w,variant:E,_skipAddonWarning:R}=e,j=XG(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}=hr("input"),_=I("input",n),H=i.useRef(null),z=vr(_),[D,F,W]=G8(_,b),[U]=X8(_,z),{compactSize:V,compactItemClassnames:G}=Bo(_,O),q=Tr(he=>{var Se;return(Se=l??V)!==null&&Se!==void 0?Se:he}),K=ge.useContext(Kr),Z=c??K,{status:Q,hasFeedback:te,feedbackIcon:X}=i.useContext(Ur),oe=Rl(Q,a),ae=GG(e)||!!te;i.useRef(ae);const re=PI(H,!0),Y=he=>{re(),u==null||u(he)},ee=he=>{re(),d==null||d(he)},ie=he=>{re(),$==null||$(he)},ue=(te||f)&&ge.createElement(ge.Fragment,null,f,te&&X),se=TI(v??M),[pe,fe]=Il("input",E,r);return D(U(ge.createElement(NG,Object.assign({ref:Mr(t,H),prefixCls:_,autoComplete:N},j,{disabled:Z,onBlur:Y,onFocus:ee,style:Object.assign(Object.assign({},B),x),styles:Object.assign(Object.assign({},k),S),suffix:ue,allowClear:se,className:de(y,b,W,z,G,P),onChange:ie,addonBefore:p&&ge.createElement(Jo,{form:!0,space:!0},p),addonAfter:g&&ge.createElement(Jo,{form:!0,space:!0},g),classNames:Object.assign(Object.assign(Object.assign({},w),L),{input:de({[`${_}-sm`]:q==="small",[`${_}-lg`]:q==="large",[`${_}-rtl`]:O==="rtl"},w==null?void 0:w.input,L.input,F),variant:de({[`${_}-${pe}`]:fe},Ei(_,oe)),affixWrapper:de({[`${_}-affix-wrapper-sm`]:q==="small",[`${_}-affix-wrapper-lg`]:q==="large",[`${_}-affix-wrapper-rtl`]:O==="rtl"},F),wrapper:de({[`${_}-group-rtl`]:O==="rtl"},F),groupWrapper:de({[`${_}-group-wrapper-sm`]:q==="small",[`${_}-group-wrapper-lg`]:q==="large",[`${_}-group-wrapper-rtl`]:O==="rtl",[`${_}-group-wrapper-${pe}`]:fe},Ei(`${_}-group-wrapper`,oe,te),F)})}))))});function qy(e,t,n){return(e-t)/(n-t)}function EC(e,t,n,r){var a=qy(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 as(e,t){return Array.isArray(e)?e[t]:e}var Ps=i.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),YG=i.createContext({}),QG=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],B4=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,y=e.onFocus,x=e.onMouseEnter,S=Lt(e,QG),b=i.useContext(Ps),$=b.min,w=b.max,E=b.direction,R=b.disabled,j=b.keyboard,I=b.range,O=b.tabIndex,M=b.ariaLabelForHandle,N=b.ariaLabelledByForHandle,P=b.ariaRequired,B=b.ariaValueTextFormatterForHandle,L=b.styles,k=b.classNames,_="".concat(n,"-handle"),H=function(Z){R||l(Z,a)},z=function(Z){y==null||y(Z,a)},D=function(Z){x(Z,a)},F=function(Z){if(!R&&j){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}},U=EC(E,r,$,w),V={};if(a!==null){var G;V={tabIndex:R?null:as(O,a),role:"slider","aria-valuemin":$,"aria-valuemax":w,"aria-valuenow":r,"aria-disabled":R,"aria-label":as(M,a),"aria-labelledby":as(N,a),"aria-required":as(P,a),"aria-valuetext":(G=as(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:D,onKeyDown:F,onKeyUp:W}}var q=i.createElement("div",Ce({ref:t,className:de(_,ne(ne(ne({},"".concat(_,"-").concat(a+1),a!==null&&I),"".concat(_,"-dragging"),f),"".concat(_,"-dragging-delete"),v),k.handle),style:ce(ce(ce({},U),u),L.handle)},V,S));return d&&(q=d(q,{index:a,prefixCls:n,value:r,dragging:f,draggingDelete:v})),q}),ZG=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],JG=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,ZG),y=i.useRef({}),x=i.useState(!1),S=me(x,2),b=S[0],$=S[1],w=i.useState(-1),E=me(w,2),R=E[0],j=E[1],I=function(B){j(B),$(!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=y.current[B])===null||L===void 0||L.focus()},hideHelp:function(){vo.flushSync(function(){$(!1)})}}});var N=ce({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(B4,Ce({ref:function(_){_?y.current[B]=_:delete y.current[B]},dragging:L,draggingDelete:L&&v,style:as(r,B),key:B,value:P,valueIndex:B},N))}),d&&b&&i.createElement(B4,Ce({key:"a11y"},N,{value:c[R],valueIndex:null,dragging:f!==-1,draggingDelete:v,render:d,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),eX=function(t){var n=t.prefixCls,r=t.style,a=t.children,l=t.value,c=t.onClick,u=i.useContext(Ps),d=u.min,f=u.max,v=u.direction,g=u.includedStart,p=u.includedEnd,y=u.included,x="".concat(n,"-text"),S=EC(v,l,d,f);return i.createElement("span",{className:de(x,ne({},"".concat(x,"-active"),y&&g<=l&&l<=p)),style:ce(ce({},S),r),onMouseDown:function($){$.stopPropagation()},onClick:function(){c(l)}},a)},tX=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(eX,{key:u,prefixCls:l,style:d,value:u,onClick:a},f)})):null},nX=function(t){var n=t.prefixCls,r=t.value,a=t.style,l=t.activeStyle,c=i.useContext(Ps),u=c.min,d=c.max,f=c.direction,v=c.included,g=c.includedStart,p=c.includedEnd,y="".concat(n,"-dot"),x=v&&g<=r&&r<=p,S=ce(ce({},EC(f,r,u,d)),typeof a=="function"?a(r):a);return x&&(S=ce(ce({},S),typeof l=="function"?l(r):l)),i.createElement("span",{className:de(y,ne({},"".concat(y,"-active"),x)),style:S})},rX=function(t){var n=t.prefixCls,r=t.marks,a=t.dots,l=t.style,c=t.activeStyle,u=i.useContext(Ps),d=u.min,f=u.max,v=u.step,g=i.useMemo(function(){var p=new Set;if(r.forEach(function(x){p.add(x.value)}),a&&v!==null)for(var y=d;y<=f;)p.add(y),y+=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(nX,{prefixCls:n,key:p,value:p,style:l,activeStyle:c})}))},k4=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(Ps),v=f.direction,g=f.min,p=f.max,y=f.disabled,x=f.range,S=f.classNames,b="".concat(n,"-track"),$=qy(a,g,p),w=qy(l,g,p),E=function(O){!y&&u&&u(O,-1)},R={};switch(v){case"rtl":R.right="".concat($*100,"%"),R.width="".concat(w*100-$*100,"%");break;case"btt":R.bottom="".concat($*100,"%"),R.height="".concat(w*100-$*100,"%");break;case"ttb":R.top="".concat($*100,"%"),R.height="".concat(w*100-$*100,"%");break;default:R.left="".concat($*100,"%"),R.width="".concat(w*100-$*100,"%")}var j=d||de(b,ne(ne({},"".concat(b,"-").concat(c+1),c!==null&&x),"".concat(n,"-track-draggable"),u),S.track);return i.createElement("div",{className:j,style:ce(ce({},R),r),onMouseDown:E,onTouchStart:E})},aX=function(t){var n=t.prefixCls,r=t.style,a=t.values,l=t.startPoint,c=t.onStartMove,u=i.useContext(Ps),d=u.included,f=u.range,v=u.min,g=u.styles,p=u.classNames,y=i.useMemo(function(){if(!f){if(a.length===0)return[];var S=l??v,b=a[0];return[{start:Math.min(S,b),end:Math.max(S,b)}]}for(var $=[],w=0;w<a.length-1;w+=1)$.push({start:a[w],end:a[w+1]});return $},[a,f,l,v]);if(!d)return null;var x=y!=null&&y.length&&(p.tracks||g.tracks)?i.createElement(k4,{index:null,prefixCls:n,start:y[0].start,end:y[y.length-1].end,replaceCls:de(p.tracks,"".concat(n,"-tracks")),style:g.tracks}):null;return i.createElement(i.Fragment,null,x,y.map(function(S,b){var $=S.start,w=S.end;return i.createElement(k4,{index:b,prefixCls:n,style:ce(ce({},as(r,b)),g.track),start:$,end:w,key:b,onStartMove:c})}))},oX=130;function L4(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function iX(e,t,n,r,a,l,c,u,d,f,v){var g=i.useState(null),p=me(g,2),y=p[0],x=p[1],S=i.useState(-1),b=me(S,2),$=b[0],w=b[1],E=i.useState(!1),R=me(E,2),j=R[0],I=R[1],O=i.useState(n),M=me(O,2),N=M[0],P=M[1],B=i.useState(n),L=me(B,2),k=L[0],_=L[1],H=i.useRef(null),z=i.useRef(null),D=i.useRef(null),F=i.useContext(YG),W=F.onDragStart,U=F.onDragChange;an(function(){$===-1&&P(n)},[n,$]),i.useEffect(function(){return function(){document.removeEventListener("mousemove",H.current),document.removeEventListener("mouseup",z.current),D.current&&(D.current.removeEventListener("touchmove",H.current),D.current.removeEventListener("touchend",z.current))}},[]);var V=function(Q,te,X){te!==void 0&&x(te),P(Q);var oe=Q;X&&(oe=Q.filter(function(ae,re){return re!==$})),c(oe),U&&U({rawValues:Q,deleteIndex:X?$:-1,draggingIndex:$,draggingValue:te})},G=Qt(function(Z,Q,te){if(Z===-1){var X=k[0],oe=k[k.length-1],ae=r-X,re=a-oe,Y=Q*(a-r);Y=Math.max(Y,ae),Y=Math.min(Y,re);var ee=l(X+Y);Y=ee-X;var ie=k.map(function(fe){return fe+Y});V(ie)}else{var ue=(a-r)*Q,se=Me(N);se[Z]=k[Z];var pe=d(se,ue,Z,"dist");V(pe.values,pe.value,te)}}),q=function(Q,te,X){Q.stopPropagation();var oe=X||n,ae=oe[te];w(te),x(ae),_(oe),P(oe),I(!1);var re=L4(Q),Y=re.pageX,ee=re.pageY,ie=!1;W&&W({rawValues:oe,draggingIndex:te,draggingValue:ae});var ue=function(fe){fe.preventDefault();var he=L4(fe),Se=he.pageX,be=he.pageY,$e=Se-Y,xe=be-ee,ye=e.current.getBoundingClientRect(),Ne=ye.width,_e=ye.height,Qe,Ke;switch(t){case"btt":Qe=-xe/_e,Ke=$e;break;case"ttb":Qe=xe/_e,Ke=$e;break;case"rtl":Qe=-$e/Ne,Ke=xe;break;default:Qe=$e/Ne,Ke=xe}ie=f?Math.abs(Ke)>oX&&v<N.length:!1,I(ie),G(te,Qe,ie)},se=function pe(fe){fe.preventDefault(),document.removeEventListener("mouseup",pe),document.removeEventListener("mousemove",ue),D.current&&(D.current.removeEventListener("touchmove",H.current),D.current.removeEventListener("touchend",z.current)),H.current=null,z.current=null,D.current=null,u(ie),w(-1),I(!1)};document.addEventListener("mouseup",se),document.addEventListener("mousemove",ue),Q.currentTarget.addEventListener("touchend",se),Q.currentTarget.addEventListener("touchmove",ue),H.current=ue,z.current=se,D.current=Q.currentTarget},K=i.useMemo(function(){var Z=Me(n).sort(function(ae,re){return ae-re}),Q=Me(N).sort(function(ae,re){return ae-re}),te={};Q.forEach(function(ae){te[ae]=(te[ae]||0)+1}),Z.forEach(function(ae){te[ae]=(te[ae]||0)-1});var X=f?1:0,oe=Object.values(te).reduce(function(ae,re){return ae+Math.abs(re)},0);return oe<=X?N:n},[n,N,f]);return[$,y,j,K,q]}function lX(e,t,n,r,a,l){var c=i.useCallback(function(y){return Math.max(e,Math.min(t,y))},[e,t]),u=i.useCallback(function(y){if(n!==null){var x=e+Math.round((c(y)-e)/n)*n,S=function(E){return(String(E).split(".")[1]||"").length},b=Math.max(S(n),S(t),S(e)),$=Number(x.toFixed(b));return e<=$&&$<=t?$:null}return null},[n,e,t,c]),d=i.useCallback(function(y){var x=c(y),S=r.map(function(w){return w.value});n!==null&&S.push(u(y)),S.push(e,t);var b=S[0],$=t-e;return S.forEach(function(w){var E=Math.abs(x-w);E<=$&&(b=w,$=E)}),b},[e,t,r,n,c,u]),f=function y(x,S,b){var $=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof S=="number"){var w,E=x[b],R=E+S,j=[];r.forEach(function(P){j.push(P.value)}),j.push(e,t),j.push(u(E));var I=S>0?1:-1;$==="unit"?j.push(u(E+I*n)):j.push(u(R)),j=j.filter(function(P){return P!==null}).filter(function(P){return S<0?P<=E:P>=E}),$==="unit"&&(j=j.filter(function(P){return P!==E}));var O=$==="unit"?E:R;w=j[0];var M=Math.abs(w-O);if(j.forEach(function(P){var B=Math.abs(P-O);B<M&&(w=P,M=B)}),w===void 0)return S<0?e:t;if($==="dist")return w;if(Math.abs(S)>1){var N=Me(x);return N[b]=w,y(N,S-I,b,$)}return w}else{if(S==="min")return e;if(S==="max")return t}},v=function(x,S,b){var $=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",w=x[b],E=f(x,S,b,$);return{value:E,changed:E!==w}},g=function(x){return l===null&&x===0||typeof l=="number"&&x<l},p=function(x,S,b){var $=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",w=x.map(d),E=w[b],R=f(w,S,b,$);if(w[b]=R,a===!1){var j=l||0;b>0&&w[b-1]!==E&&(w[b]=Math.max(w[b],w[b-1]+j)),b<w.length-1&&w[b+1]!==E&&(w[b]=Math.min(w[b],w[b+1]-j))}else if(typeof l=="number"||l===null){for(var I=b+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=b;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 _=v(w,-1,L-1);w[L-1]=_.value,k=_.changed}for(var H=0;H<w.length-1;H+=1)for(var z=!0;g(w[H+1]-w[H])&&z;){var D=v(w,1,H+1);w[H+1]=D.value,z=D.changed}}return{value:w[b],values:w}};return[d,p]}function sX(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 cX=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,y=e.autoFocus,x=e.onFocus,S=e.onBlur,b=e.min,$=b===void 0?0:b,w=e.max,E=w===void 0?100:w,R=e.step,j=R===void 0?1:R,I=e.value,O=e.defaultValue,M=e.range,N=e.count,P=e.onChange,B=e.onBeforeChange,L=e.onAfterChange,k=e.onChangeComplete,_=e.allowCross,H=_===void 0?!0:_,z=e.pushable,D=z===void 0?!1:z,F=e.reverse,W=e.vertical,U=e.included,V=U===void 0?!0:U,G=e.startPoint,q=e.trackStyle,K=e.handleStyle,Z=e.railStyle,Q=e.dotStyle,te=e.activeDotStyle,X=e.marks,oe=e.dots,ae=e.handleRender,re=e.activeHandleRender,Y=e.track,ee=e.tabIndex,ie=ee===void 0?0:ee,ue=e.ariaLabelForHandle,se=e.ariaLabelledByForHandle,pe=e.ariaRequired,fe=e.ariaValueTextFormatterForHandle,he=i.useRef(null),Se=i.useRef(null),be=i.useMemo(function(){return W?F?"ttb":"btt":F?"rtl":"ltr"},[F,W]),$e=sX(M),xe=me($e,5),ye=xe[0],Ne=xe[1],_e=xe[2],Qe=xe[3],Ke=xe[4],Fe=i.useMemo(function(){return isFinite($)?$:0},[$]),Xe=i.useMemo(function(){return isFinite(E)?E:100},[E]),Pe=i.useMemo(function(){return j!==null&&j<=0?1:j},[j]),je=i.useMemo(function(){return typeof D=="boolean"?D?Pe:!1:D>=0?D:!1},[D,Pe]),Ae=i.useMemo(function(){return Object.keys(X||{}).map(function(yt){var Ye=X[yt],Ze={value:Number(yt)};return Ye&&Ot(Ye)==="object"&&!i.isValidElement(Ye)&&("label"in Ye||"style"in Ye)?(Ze.style=Ye.style,Ze.label=Ye.label):Ze.label=Ye,Ze}).filter(function(yt){var Ye=yt.label;return Ye||typeof Ye=="number"}).sort(function(yt,Ye){return yt.value-Ye.value})},[X]),Re=lX(Fe,Xe,Pe,Ae,H,je),ze=me(Re,2),we=ze[0],Oe=ze[1],Te=Cn(O,{value:I}),Le=me(Te,2),tt=Le[0],Ct=Le[1],We=i.useMemo(function(){var yt=tt==null?[]:Array.isArray(tt)?tt:[tt],Ye=me(yt,1),Ze=Ye[0],ut=Ze===void 0?Fe:Ze,Dt=tt===null?[]:[ut];if(ye){if(Dt=Me(yt),N||tt===void 0){var Ut=N>=0?N+1:2;for(Dt=Dt.slice(0,Ut);Dt.length<Ut;){var gt;Dt.push((gt=Dt[Dt.length-1])!==null&>!==void 0?gt:Fe)}}Dt.sort(function(Mt,Vt){return Mt-Vt})}return Dt.forEach(function(Mt,Vt){Dt[Vt]=we(Mt)}),Dt},[tt,ye,Fe,N,we]),nt=function(Ye){return ye?Ye:Ye[0]},dt=Qt(function(yt){var Ye=Me(yt).sort(function(Ze,ut){return Ze-ut});P&&!No(Ye,We,!0)&&P(nt(Ye)),Ct(Ye)}),at=Qt(function(yt){yt&&he.current.hideHelp();var Ye=nt(We);L==null||L(Ye),Zn(!L,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),k==null||k(Ye)}),bt=function(Ye){if(!(v||!Ne||We.length<=Qe)){var Ze=Me(We);Ze.splice(Ye,1),B==null||B(nt(Ze)),dt(Ze);var ut=Math.max(0,Ye-1);he.current.hideHelp(),he.current.focus(ut)}},zt=iX(Se,be,We,Fe,Xe,we,dt,at,Oe,Ne,Qe),jt=me(zt,5),ct=jt[0],wt=jt[1],xt=jt[2],et=jt[3],Ve=jt[4],qe=function(Ye,Ze){if(!v){var ut=Me(We),Dt=0,Ut=0,gt=Xe-Fe;We.forEach(function(Pn,Un){var Rn=Math.abs(Ye-Pn);Rn<=gt&&(gt=Rn,Dt=Un),Pn<Ye&&(Ut=Un)});var Mt=Dt;Ne&>!==0&&(!Ke||We.length<Ke)?(ut.splice(Ut+1,0,Ye),Mt=Ut+1):ut[Dt]=Ye,ye&&!We.length&&N===void 0&&ut.push(Ye);var Vt=nt(ut);if(B==null||B(Vt),dt(ut),Ze){var wn,An;(wn=document.activeElement)===null||wn===void 0||(An=wn.blur)===null||An===void 0||An.call(wn),he.current.focus(Mt),Ve(Ze,Mt,ut)}else L==null||L(Vt),Zn(!L,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),k==null||k(Vt)}},mt=function(Ye){Ye.preventDefault();var Ze=Se.current.getBoundingClientRect(),ut=Ze.width,Dt=Ze.height,Ut=Ze.left,gt=Ze.top,Mt=Ze.bottom,Vt=Ze.right,wn=Ye.clientX,An=Ye.clientY,Pn;switch(be){case"btt":Pn=(Mt-An)/Dt;break;case"ttb":Pn=(An-gt)/Dt;break;case"rtl":Pn=(Vt-wn)/ut;break;default:Pn=(wn-Ut)/ut}var Un=Fe+Pn*(Xe-Fe);qe(we(Un),Ye)},Tt=i.useState(null),Nt=me(Tt,2),Wt=Nt[0],ft=Nt[1],lt=function(Ye,Ze){if(!v){var ut=Oe(We,Ye,Ze);B==null||B(nt(We)),dt(ut.values),ft(ut.value)}};i.useEffect(function(){if(Wt!==null){var yt=We.indexOf(Wt);yt>=0&&he.current.focus(yt)}ft(null)},[Wt]);var At=i.useMemo(function(){return _e&&Pe===null?!1:_e},[_e,Pe]),Gt=Qt(function(yt,Ye){Ve(yt,Ye),B==null||B(nt(We))}),on=ct!==-1;i.useEffect(function(){if(!on){var yt=We.lastIndexOf(wt);he.current.focus(yt)}},[on]);var Jt=i.useMemo(function(){return Me(et).sort(function(yt,Ye){return yt-Ye})},[et]),pn=i.useMemo(function(){return ye?[Jt[0],Jt[Jt.length-1]]:[Fe,Jt[0]]},[Jt,ye,Fe]),Xt=me(pn,2),fn=Xt[0],st=Xt[1];i.useImperativeHandle(t,function(){return{focus:function(){he.current.focus(0)},blur:function(){var Ye,Ze=document,ut=Ze.activeElement;(Ye=Se.current)!==null&&Ye!==void 0&&Ye.contains(ut)&&(ut==null||ut.blur())}}}),i.useEffect(function(){y&&he.current.focus(0)},[]);var St=i.useMemo(function(){return{min:Fe,max:Xe,direction:be,disabled:v,keyboard:p,step:Pe,included:V,includedStart:fn,includedEnd:st,range:ye,tabIndex:ie,ariaLabelForHandle:ue,ariaLabelledByForHandle:se,ariaRequired:pe,ariaValueTextFormatterForHandle:fe,styles:u||{},classNames:c||{}}},[Fe,Xe,be,v,p,Pe,V,fn,st,ye,ie,ue,se,pe,fe,u,c]);return i.createElement(Ps.Provider,{value:St},i.createElement("div",{ref:Se,className:de(r,a,ne(ne(ne(ne({},"".concat(r,"-disabled"),v),"".concat(r,"-vertical"),W),"".concat(r,"-horizontal"),!W),"".concat(r,"-with-marks"),Ae.length)),style:l,onMouseDown:mt,id:d},i.createElement("div",{className:de("".concat(r,"-rail"),c==null?void 0:c.rail),style:ce(ce({},Z),u==null?void 0:u.rail)}),Y!==!1&&i.createElement(aX,{prefixCls:r,style:q,values:We,startPoint:G,onStartMove:At?Gt:void 0}),i.createElement(rX,{prefixCls:r,marks:Ae,dots:oe,style:Q,activeStyle:te}),i.createElement(JG,{ref:he,prefixCls:r,style:K,values:et,draggingIndex:ct,draggingDelete:xt,onStartMove:Gt,onOffsetChange:lt,onFocus:x,onBlur:S,handleRender:ae,activeHandleRender:re,onChangeComplete:at,onDelete:Ne?bt:void 0}),i.createElement(tX,{prefixCls:r,marks:Ae,onClick:qe})))});const uX=i.createContext({}),H4=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(){Zt.cancel(u.current),u.current=null}function f(){u.current=Zt(()=>{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(_n,Object.assign({ref:Mr(l,t)},e,{open:c}))}),dX=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:y,handleLineWidth:x,handleLineWidthHover:S,motionDurationMid:b}=e;return{[t]:Object.assign(Object.assign({},mn(e)),{position:"relative",height:r,margin:`${le(c)} ${le(l)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${le(l)} ${le(c)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${b}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${b}`},[`${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 ${le(x)} ${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(x).mul(-1).equal(),insetBlockStart:f(x).mul(-1).equal(),width:f(v).add(f(x).mul(2)).equal(),height:f(v).add(f(x).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:v,height:v,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${le(x)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
|
354
|
-
inset-inline-start ${b},
|
|
355
|
-
inset-block-start ${b},
|
|
356
|
-
width ${b},
|
|
357
|
-
height ${b},
|
|
358
|
-
box-shadow ${b},
|
|
359
|
-
outline ${b}
|
|
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 ${le(S)} ${p}`,outline:`6px solid ${y}`,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:`${le(x)} 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 ${le(x)} ${d}`,insetInlineStart:0,insetBlockStart:0},[`
|
|
363
|
-
${t}-mark-text,
|
|
364
|
-
${t}-dot
|
|
365
|
-
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},zI=(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",y=u(r).mul(3).sub(a).div(2).equal(),x=u(a).sub(r).div(2).equal(),S=t?{borderWidth:`${le(x)} 0`,transform:`translateY(${le(u(x).mul(-1).equal())})`}:{borderWidth:`0 ${le(x)}`,transform:`translateX(${le(e.calc(x).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]:y},[`${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()}}},fX=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},zI(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},mX=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},zI(e,!1)),{height:"100%"})}},vX=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 bn(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 bn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},gX=un("Slider",e=>{const t=rn(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[dX(t),fX(t),mX(t)]},vX);function J0(){const[e,t]=i.useState(!1),n=i.useRef(null),r=()=>{Zt.cancel(n.current)},a=l=>{r(),l?t(l):n.current=Zt(()=>{t(l)})};return i.useEffect(()=>r,[]),[e,a]}var pX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function hX(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const bX=ge.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:y={},onChangeComplete:x,classNames:S,styles:b}=e,$=pX(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:w}=e,{getPrefixCls:E,direction:R,className:j,style:I,classNames:O,styles:M,getPopupContainer:N}=hr("slider"),P=ge.useContext(Kr),B=u??P,{handleRender:L,direction:k}=ge.useContext(uX),H=(k||R)==="rtl",[z,D]=J0(),[F,W]=J0(),U=Object.assign({},y),{open:V,placement:G,getPopupContainer:q,prefixCls:K,formatter:Z}=U,Q=V??v,te=(z||F)&&Q!==!1,X=hX(Z,f),[oe,ae]=J0(),re=ye=>{x==null||x(ye),ae(!1)},Y=(ye,Ne)=>ye||(Ne?H?"left":"right":"top"),ee=E("slider",n),[ie,ue,se]=gX(ee),pe=de(a,j,O.root,S==null?void 0:S.root,l,{[`${ee}-rtl`]:H,[`${ee}-lock`]:oe},ue,se);H&&!$.vertical&&($.reverse=!$.reverse),ge.useEffect(()=>{const ye=()=>{Zt(()=>{W(!1)},1)};return document.addEventListener("mouseup",ye),()=>{document.removeEventListener("mouseup",ye)}},[]);const fe=r&&!Q,he=L||((ye,Ne)=>{const{index:_e}=Ne,Qe=ye.props;function Ke(je,Ae,Re){var ze,we,Oe,Te;Re&&((we=(ze=$)[je])===null||we===void 0||we.call(ze,Ae)),(Te=(Oe=Qe)[je])===null||Te===void 0||Te.call(Oe,Ae)}const Fe=Object.assign(Object.assign({},Qe),{onMouseEnter:je=>{D(!0),Ke("onMouseEnter",je)},onMouseLeave:je=>{D(!1),Ke("onMouseLeave",je)},onMouseDown:je=>{W(!0),ae(!0),Ke("onMouseDown",je)},onFocus:je=>{var Ae;W(!0),(Ae=$.onFocus)===null||Ae===void 0||Ae.call($,je),Ke("onFocus",je,!0)},onBlur:je=>{var Ae;W(!1),(Ae=$.onBlur)===null||Ae===void 0||Ae.call($,je),Ke("onBlur",je,!0)}}),Xe=ge.cloneElement(ye,Fe),Pe=(!!Q||te)&&X!==null;return fe?Xe:ge.createElement(H4,Object.assign({},U,{prefixCls:E("tooltip",K??d),title:X?X(Ne.value):"",value:Ne.value,open:Pe,placement:Y(G??p,w),key:_e,classNames:{root:`${ee}-tooltip`},getPopupContainer:q||g||N}),Xe)}),Se=fe?(ye,Ne)=>{const _e=ge.cloneElement(ye,{style:Object.assign(Object.assign({},ye.props.style),{visibility:"hidden"})});return ge.createElement(H4,Object.assign({},U,{prefixCls:E("tooltip",K??d),title:X?X(Ne.value):"",open:X!==null&&te,placement:Y(G??p,w),key:"tooltip",classNames:{root:`${ee}-tooltip`},getPopupContainer:q||g||N,draggingDelete:Ne.draggingDelete}),_e)}:void 0,be=Object.assign(Object.assign(Object.assign(Object.assign({},M.root),I),b==null?void 0:b.root),c),$e=Object.assign(Object.assign({},M.tracks),b==null?void 0:b.tracks),xe=de(O.tracks,S==null?void 0:S.tracks);return ie(ge.createElement(cX,Object.assign({},$,{classNames:Object.assign({handle:de(O.handle,S==null?void 0:S.handle),rail:de(O.rail,S==null?void 0:S.rail),track:de(O.track,S==null?void 0:S.track)},xe?{tracks:xe}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},M.handle),b==null?void 0:b.handle),rail:Object.assign(Object.assign({},M.rail),b==null?void 0:b.rail),track:Object.assign(Object.assign({},M.track),b==null?void 0:b.track)},Object.keys($e).length?{tracks:$e}:{}),step:$.step,range:r,className:pe,style:be,disabled:B,ref:t,prefixCls:ee,handleRender:he,activeHandleRender:Se,onChangeComplete:re})))});var yX={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"},CX=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:yX}))},xX=i.forwardRef(CX);const DI=(e,t,n,r,a)=>{const{classNames:l,styles:c}=hr(e),[u,d]=kD([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:de((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 SX(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 $X(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 _I(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=q1(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[wX,EX]=["week","WeekPicker"],[OX,jX]=["month","MonthPicker"],[RX,IX]=["year","YearPicker"],[NX,MX]=["quarter","QuarterPicker"],[OC,F4]=["time","TimePicker"];var TX={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(ht,Ce({},t,{ref:n,icon:TX}))},zX=i.forwardRef(PX),DX={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"},_X=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:DX}))},qc=i.forwardRef(_X);const AI=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?ge.createElement(ge.Fragment,null,e===OC?ge.createElement(qc,null):ge.createElement(zX,null),t&&n):r,AX=e=>i.createElement(Ue,Object.assign({size:"small",type:"primary"},e));function BI(e){return i.useMemo(()=>Object.assign({button:AX},e),[e])}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 kX=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:y=!0,placeholder:x,popupStyle:S,popupClassName:b,dropdownClassName:$,status:w,rootClassName:E,variant:R,picker:j,styles:I,classNames:O,suffixIcon:M}=n,N=BX(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),P=j===OC?"timePicker":"datePicker",B=i.useRef(null),{getPrefixCls:L,direction:k,getPopupContainer:_,rangePicker:H}=i.useContext(Rt),z=L("picker",l),{compactSize:D,compactItemClassnames:F}=Bo(z,k),W=L(),[U,V]=Il("rangePicker",R,y),G=vr(z),[q,K,Z]=Y8(z,G),[Q,te]=DI(P,O,I,b||$,S),[X]=_I(n,z),oe=BI(u),ae=Tr(be=>{var $e;return($e=g??D)!==null&&$e!==void 0?$e:be}),re=i.useContext(Kr),Y=p??re,ee=i.useContext(Ur),{hasFeedback:ie,status:ue,feedbackIcon:se}=ee,pe=i.createElement(AI,{picker:j,hasFeedback:ie,feedbackIcon:se,suffixIcon:M});i.useImperativeHandle(r,()=>B.current);const[fe]=Aa("Calendar",Dv),he=Object.assign(Object.assign({},fe),n.locale),[Se]=Ao("DatePicker",(a=te.popup.root)===null||a===void 0?void 0:a.zIndex);return q(i.createElement(Jo,{space:!0},i.createElement($K,Object.assign({separator:i.createElement("span",{"aria-label":"to",className:`${z}-separator`},i.createElement(xX,null)),disabled:Y,ref:B,placement:v,placeholder:$X(he,j,x),suffixIcon:pe,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:j},N,{className:de({[`${z}-${ae}`]:ae,[`${z}-${U}`]:V},Ei(z,Rl(ue,w),ie),K,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:he.lang,prefixCls:z,getPopupContainer:c||_,generateConfig:e,components:oe,direction:k,classNames:{popup:de(K,Z,G,E,Q.popup.root)},styles:{popup:Object.assign(Object.assign({},te.popup.root),{zIndex:Se})},allowClear:X}))))});var LX=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 HX=e=>{const t=(d,f)=>{const v=f===F4?"timePicker":"datePicker";return i.forwardRef((p,y)=>{var x;const{prefixCls:S,getPopupContainer:b,components:$,style:w,className:E,rootClassName:R,size:j,bordered:I,placement:O,placeholder:M,popupStyle:N,popupClassName:P,dropdownClassName:B,disabled:L,status:k,variant:_,onCalendarChange:H,styles:z,classNames:D,suffixIcon:F}=p,W=LX(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:U,direction:V,getPopupContainer:G,[v]:q}=i.useContext(Rt),K=U("picker",S),{compactSize:Z,compactItemClassnames:Q}=Bo(K,V),te=i.useRef(null),[X,oe]=Il("datePicker",_,I),ae=vr(K),[re,Y,ee]=Y8(K,ae);i.useImperativeHandle(y,()=>te.current);const ie={showToday:!0},ue=d||p.picker,se=U(),{onSelect:pe,multiple:fe}=W,he=pe&&d==="time"&&!fe,Se=(Oe,Te,Le)=>{H==null||H(Oe,Te,Le),he&&pe(Oe)},[be,$e]=DI(v,D,z,P||B,N),[xe,ye]=_I(p,K),Ne=BI($),_e=Tr(Oe=>{var Te;return(Te=j??Z)!==null&&Te!==void 0?Te:Oe}),Qe=i.useContext(Kr),Ke=L??Qe,Fe=i.useContext(Ur),{hasFeedback:Xe,status:Pe,feedbackIcon:je}=Fe,Ae=i.createElement(AI,{picker:ue,hasFeedback:Xe,feedbackIcon:je,suffixIcon:F}),[Re]=Aa("DatePicker",Dv),ze=Object.assign(Object.assign({},Re),p.locale),[we]=Ao("DatePicker",(x=$e.popup.root)===null||x===void 0?void 0:x.zIndex);return re(i.createElement(Jo,{space:!0},i.createElement(IK,Object.assign({ref:te,placeholder:SX(ze,ue,M),suffixIcon:Ae,placement:O,prevIcon:i.createElement("span",{className:`${K}-prev-icon`}),nextIcon:i.createElement("span",{className:`${K}-next-icon`}),superPrevIcon:i.createElement("span",{className:`${K}-super-prev-icon`}),superNextIcon:i.createElement("span",{className:`${K}-super-next-icon`}),transitionName:`${se}-slide-up`,picker:d,onCalendarChange:Se},ie,W,{locale:ze.lang,className:de({[`${K}-${_e}`]:_e,[`${K}-${X}`]:oe},Ei(K,Rl(Pe,k),Xe),Y,Q,q==null?void 0:q.className,E,ee,ae,R,be.root),style:Object.assign(Object.assign(Object.assign({},q==null?void 0:q.style),w),$e.root),prefixCls:K,getPopupContainer:b||G,generateConfig:e,components:Ne,direction:V,disabled:Ke,classNames:{popup:de(Y,ee,ae,R,be.popup.root)},styles:{popup:Object.assign(Object.assign({},$e.popup.root),{zIndex:we})},allowClear:xe,removeIcon:ye}))))})},n=t(),r=t(wX,EX),a=t(OX,jX),l=t(RX,IX),c=t(NX,MX),u=t(OC,F4);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:l,TimePicker:u,QuarterPicker:c}},kI=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:l,QuarterPicker:c}=HX(e),u=kX(e),d=t;return d.WeekPicker=n,d.MonthPicker=r,d.YearPicker=a,d.RangePicker=u,d.TimePicker=l,d.QuarterPicker=c,d},cu=kI(MW),FX=nu(cu,"popupAlign",void 0,"picker");cu._InternalPanelDoNotUseOrYouWillBeFired=FX;const VX=nu(cu.RangePicker,"popupAlign",void 0,"picker");cu._InternalRangePanelDoNotUseOrYouWillBeFired=VX;cu.generatePicker=kI;function V4(e){return["small","middle","large"].includes(e)}function W4(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const WX=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}},Os(e,{focus:!1})]}},KX=un(["Space","Addon"],e=>[WX(e)]);var UX=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 qX=ge.forwardRef((e,t)=>{const{className:n,children:r,style:a,prefixCls:l}=e,c=UX(e,["className","children","style","prefixCls"]),{getPrefixCls:u,direction:d}=ge.useContext(Rt),f=u("space-addon",l),[v,g,p]=KX(f),{compactItemClassnames:y,compactSize:x}=Bo(f,d),S=de(f,g,y,p,{[`${f}-${x}`]:x},n);return v(ge.createElement("div",Object.assign({ref:t,className:S,style:a},c),r))}),LI=ge.createContext({latestIndex:0}),GX=LI.Provider,XX=({className:e,index:t,children:n,split:r,style:a})=>{const{latestIndex:l}=i.useContext(LI);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))},YX=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"}}}},QX=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}}}},ZX=un("Space",e=>{const t=rn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[YX(t),QX(t)]},()=>({}),{resetStyle:!1});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 eY=i.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,size:l,className:c,style:u,classNames:d,styles:f}=hr("space"),{size:v=l??"small",align:g,className:p,rootClassName:y,children:x,direction:S="horizontal",prefixCls:b,split:$,style:w,wrap:E=!1,classNames:R,styles:j}=e,I=JX(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[O,M]=Array.isArray(v)?v:[v,v],N=V4(M),P=V4(O),B=W4(M),L=W4(O),k=Jr(x,{keepEmpty:!0}),_=g===void 0&&S==="horizontal"?"center":g,H=r("space",b),[z,D,F]=ZX(H),W=de(H,c,D,`${H}-${S}`,{[`${H}-rtl`]:a==="rtl",[`${H}-align-${_}`]:_,[`${H}-gap-row-${M}`]:N,[`${H}-gap-col-${O}`]:P},p,y,F),U=de(`${H}-item`,(n=R==null?void 0:R.item)!==null&&n!==void 0?n:d.item),V=Object.assign(Object.assign({},f.item),j==null?void 0:j.item),G=k.map((Z,Q)=>{const te=(Z==null?void 0:Z.key)||`${U}-${Q}`;return i.createElement(XX,{className:U,key:te,index:Q,split:$,style:V},Z)}),q=i.useMemo(()=>({latestIndex:k.reduce((Q,te,X)=>te!=null?X:Q,0)}),[k]);if(k.length===0)return null;const K={};return E&&(K.flexWrap="wrap"),!P&&L&&(K.columnGap=O),!N&&B&&(K.rowGap=M),z(i.createElement("div",Object.assign({ref:t,className:W,style:Object.assign(Object.assign(Object.assign({},K),u),w)},I),i.createElement(GX,{value:q},G)))}),vt=eY;vt.Compact=M_;vt.Addon=qX;var tY=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 HI=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:y,arrow:x,autoFocus:S,overlay:b,trigger:$,align:w,open:E,onOpenChange:R,placement:j,getPopupContainer:I,href:O,icon:M=i.createElement(aC,null),title:N,buttonsRender:P=re=>re,mouseEnterDelay:B,mouseLeaveDelay:L,overlayClassName:k,overlayStyle:_,destroyOnHidden:H,destroyPopupOnHide:z,dropdownRender:D,popupRender:F}=e,W=tY(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"]),U=n("dropdown",a),V=`${U}-button`,q={menu:y,arrow:x,autoFocus:S,align:w,disabled:u,trigger:u?[]:$,onOpenChange:R,getPopupContainer:I||t,mouseEnterDelay:B,mouseLeaveDelay:L,overlayClassName:k,overlayStyle:_,destroyOnHidden:H,popupRender:F||D},{compactSize:K,compactItemClassnames:Z}=Bo(U,r),Q=de(V,Z,p);"destroyPopupOnHide"in e&&(q.destroyPopupOnHide=z),"overlay"in e&&(q.overlay=b),"open"in e&&(q.open=E),"placement"in e?q.placement=j:q.placement=r==="rtl"?"bottomLeft":"bottomRight";const te=i.createElement(Ue,{type:l,danger:c,disabled:u,loading:d,onClick:f,htmlType:v,href:O,title:N},g),X=i.createElement(Ue,{type:l,danger:c,icon:M}),[oe,ae]=P([te,X]);return i.createElement(vt.Compact,Object.assign({className:Q,size:K,block:!0},W),oe,i.createElement(Vg,Object.assign({},q),ae))};HI.__ANT_BUTTON=!0;const fs=Vg;fs.Button=HI;const jC=ge.createContext(void 0),{Provider:nY}=jC;function FI(e){return e==null?null:typeof e=="object"&&!i.isValidElement(e)?e:{title:e}}var rY={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"},aY=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:rY}))},uu=i.forwardRef(aY),oY=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 iY=e=>{const{icon:t,description:n,prefixCls:r,className:a}=e,l=oY(e,["icon","description","prefixCls","className"]),c=ge.createElement("div",{className:`${r}-icon`},ge.createElement(uu,null));return ge.createElement("div",Object.assign({},l,{className:de(a,`${r}-content`)}),t||n?ge.createElement(ge.Fragment,null,t&&ge.createElement("div",{className:`${r}-icon`},t),n&&ge.createElement("div",{className:`${r}-description`},n)):c)},lY=i.memo(iY),K4=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2),sY=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:a,calc:l}=e,c=new tn("antFloatButtonMoveTopIn",{"0%":{transform:`translate3d(0, ${le(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new tn("antFloatButtonMoveTopOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${le(n)}, 0)`,transformOrigin:"0 0",opacity:0}}),d=new tn("antFloatButtonMoveRightIn",{"0%":{transform:`translate3d(${le(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 tn("antFloatButtonMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${le(l(n).mul(-1).equal())}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),v=new tn("antFloatButtonMoveBottomIn",{"0%":{transform:`translate3d(0, ${le(l(n).mul(-1).equal())}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new tn("antFloatButtonMoveBottomOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${le(l(n).mul(-1).equal())}, 0)`,transformOrigin:"0 0",opacity:0}}),p=new tn("antFloatButtonMoveLeftIn",{"0%":{transform:`translate3d(${le(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),y=new tn("antFloatButtonMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${le(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),x=`${t}-group`;return[{[x]:{[`&${x}-top ${x}-wrap`]:gl(`${x}-wrap`,c,u,r,!0),[`&${x}-bottom ${x}-wrap`]:gl(`${x}-wrap`,v,g,r,!0),[`&${x}-left ${x}-wrap`]:gl(`${x}-wrap`,p,y,r,!0),[`&${x}-right ${x}-wrap`]:gl(`${x}-wrap`,d,f,r,!0)}},{[`${x}-wrap`]:{[`&${x}-wrap-enter, &${x}-wrap-appear`]:{opacity:0,animationTimingFunction:a},[`&${x}-wrap-leave`]:{opacity:1,animationTimingFunction:a}}}]},cY=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({},mn(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:`${le(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:`${le(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:`${le(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}}}}},uY=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({},mn(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:`${le(g(r).div(2).equal())} ${le(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:le(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:le(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},dY=e=>({dotOffsetInCircle:K4(e.controlHeightLG/2),dotOffsetInSquare:K4(e.borderRadiusLG)}),VI=un("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=rn(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[cY(g),uY(g),z1(e),sY(g)]},dY);var fY=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 ep="float-btn",mY=ge.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,y=fY(e,["prefixCls","className","rootClassName","style","type","shape","icon","description","tooltip","htmlType","badge"]),{getPrefixCls:x,direction:S}=i.useContext(Rt),b=i.useContext(jC),$=x(ep,n),w=vr($),[E,R,j]=VI($,w),I=b||u,O=de(R,j,w,$,r,a,`${$}-${c}`,`${$}-${I}`,{[`${$}-rtl`]:S==="rtl"}),[M]=Ao("FloatButton",l==null?void 0:l.zIndex),N=Object.assign(Object.assign({},l),{zIndex:M}),P=En(p,["title","children","status","text"]);let B=ge.createElement("div",{className:`${$}-body`},ge.createElement(lY,{prefixCls:$,description:f,icon:d}));"badge"in e&&(B=ge.createElement(ja,Object.assign({},P),B));const L=FI(v);return L&&(B=ge.createElement(_n,Object.assign({},L),B)),E(e.href?ge.createElement("a",Object.assign({ref:t},y,{className:O,style:N}),B):ge.createElement("button",Object.assign({ref:t},y,{className:O,style:N,type:g}),B))}),Ml=mY;var vY=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 gY=ge.createElement(CF,null),WI=ge.forwardRef((e,t)=>{var n;const{backTopIcon:r}=hr("floatButton"),{prefixCls:a,className:l,type:c="default",shape:u="circle",visibilityHeight:d=400,icon:f,target:v,onClick:g,duration:p=450}=e,y=vY(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),x=(n=f??r)!==null&&n!==void 0?n:gY,[S,b]=i.useState(d===0),$=ge.useRef(null);ge.useImperativeHandle(t,()=>({nativeElement:$.current}));const w=()=>{var B;return((B=$.current)===null||B===void 0?void 0:B.ownerDocument)||window},E=uP(B=>{const L=V6(B.target);b(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 R=B=>{W6(0,{getContainer:v||w,duration:p}),g==null||g(B)},{getPrefixCls:j}=i.useContext(Rt),I=j(ep,a),O=j(),N=i.useContext(jC)||u,P=Object.assign({prefixCls:I,icon:x,type:c,shape:N},y);return ge.createElement(ta,{visible:S,motionName:`${O}-fade`},({className:B},L)=>ge.createElement(Ml,Object.assign({ref:Mr($,L)},P,{onClick:R,className:de(l,B)})))});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 KI=e=>{var t;const{prefixCls:n,className:r,style:a,shape:l="circle",type:c="default",placement:u="top",icon:d=ge.createElement(uu,null),closeIcon:f,description:v,trigger:g,children:p,onOpenChange:y,open:x,onClick:S}=e,b=pY(e,["prefixCls","className","style","shape","type","placement","icon","closeIcon","description","trigger","children","onOpenChange","open","onClick"]),{direction:$,getPrefixCls:w,closeIcon:E}=hr("floatButtonGroup"),R=(t=f??E)!==null&&t!==void 0?t:ge.createElement(_o,null),j=w(ep,n),I=vr(j),[O,M,N]=VI(j,I),P=`${j}-group`,B=g&&["click","hover"].includes(g),L=u&&["top","left","right","bottom"].includes(u),k=de(P,M,N,I,r,{[`${P}-rtl`]:$==="rtl",[`${P}-${l}`]:l,[`${P}-${l}-shadow`]:!B,[`${P}-${u}`]:B&&L}),[_]=Ao("FloatButton",a==null?void 0:a.zIndex),H=Object.assign(Object.assign({},a),{zIndex:_}),z=de(M,`${P}-wrap`),[D,F]=Cn(!1,{value:x}),W=ge.useRef(null),U=g==="hover",V=g==="click",G=Qt(Q=>{D!==Q&&(F(Q),y==null||y(Q))}),q=()=>{U&&G(!0)},K=()=>{U&&G(!1)},Z=Q=>{V&&G(!D),S==null||S(Q)};return ge.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(ge.createElement(nY,{value:l},ge.createElement("div",{ref:W,className:k,style:H,onMouseEnter:q,onMouseLeave:K},B?ge.createElement(ge.Fragment,null,ge.createElement(ta,{visible:D,motionName:`${P}-wrap`},({className:Q})=>ge.createElement("div",{className:de(Q,z)},p)),ge.createElement(Ml,Object.assign({type:c,icon:D?R:d,description:v,"aria-label":e["aria-label"],className:`${P}-trigger`,onClick:Z},b))):p)))};var UI=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 U4=e=>{var{backTop:t}=e,n=UI(e,["backTop"]);return t?i.createElement(WI,Object.assign({},n,{visibilityHeight:0})):i.createElement(Ml,Object.assign({},n))},hY=e=>{var{className:t,items:n}=e,r=UI(e,["className","items"]);const{prefixCls:a}=r,{getPrefixCls:l}=i.useContext(Rt),u=`${l(ep,a)}-pure`;return n?i.createElement(KI,Object.assign({className:de(t,u)},r),n.map((d,f)=>i.createElement(U4,Object.assign({key:f},d)))):i.createElement(U4,Object.assign({className:de(t,u)},r))};Ml.BackTop=WI;Ml.Group=KI;Ml._InternalPanelDoNotUseOrYouWillBeFired=hY;function Jv(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 bY=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)"}}}}},yY=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${le(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 ${le(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),q4=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},CY=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},mn(e)),yY(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},q4(e,e.controlHeightSM)),"&-large":Object.assign({},q4(e,e.controlHeightLG))})}},xY=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({},mn(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:D1,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},os=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),SY=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`]:os(e)}}},$Y=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"}}}}},wY=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:os(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},EY=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`]:os(e)},[`@media (max-width: ${le(e.screenXSMax)})`]:[wY(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:os(e)}}}],[`@media (max-width: ${le(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:os(e)}}},[`@media (max-width: ${le(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:os(e)}}},[`@media (max-width: ${le(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:os(e)}}}}},OY=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}),qI=(e,t)=>rn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),RC=un("Form",(e,{rootPrefixCls:t})=>{const n=qI(e,t);return[CY(n),xY(n),bY(n),SY(n),$Y(n),EY(n),uf(n),D1]},OY,{order:-1e3}),G4=[];function eb(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const GI=({help:e,helpStatus:t,errors:n=G4,warnings:r=G4,className:a,fieldId:l,onVisibleChanged:c})=>{const{prefixCls:u}=i.useContext(F1),d=`${u}-item-explain`,f=vr(u),[v,g,p]=RC(u,f),y=i.useMemo(()=>Lc(u),[u]),x=Jv(n),S=Jv(r),b=i.useMemo(()=>e!=null?[eb(e,"help",t)]:[].concat(Me(x.map((E,R)=>eb(E,"error","error",R))),Me(S.map((E,R)=>eb(E,"warning","warning",R)))),[e,t,x,S]),$=i.useMemo(()=>{const E={};return b.forEach(({key:R})=>{E[R]=(E[R]||0)+1}),b.map((R,j)=>Object.assign(Object.assign({},R),{key:E[R.key]>1?`${R.key}-fallback-${j}`:R.key}))},[b]),w={};return l&&(w.id=`${l}_help`),v(i.createElement(ta,{motionDeadline:y.motionDeadline,motionName:`${u}-show-help`,visible:!!$.length,onVisibleChanged:c},E=>{const{className:R,style:j}=E;return i.createElement("div",Object.assign({},w,{className:de(d,R,p,f,a,g),style:j}),i.createElement(E1,Object.assign({keys:$},Lc(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:de(P,{[`${d}-${N}`]:N}),style:B},M)}))}))};var jY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const RY=(e,t)=>{const n=i.useContext(Kr),{getPrefixCls:r,direction:a,requiredMark:l,colon:c,scrollToFirstError:u,className:d,style:f}=hr("form"),{prefixCls:v,className:g,rootClassName:p,size:y,disabled:x=n,form:S,colon:b,labelAlign:$,labelWrap:w,labelCol:E,wrapperCol:R,hideRequiredMark:j,layout:I="horizontal",scrollToFirstError:O,requiredMark:M,onFinishFailed:N,name:P,style:B,feedbackIcons:L,variant:k}=e,_=jY(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),H=Tr(y),z=i.useContext(i6),D=i.useMemo(()=>M!==void 0?M:j?!1:l!==void 0?l:!0,[j,M,l]),F=b??c,W=r("form",v),U=vr(W),[V,G,q]=RC(W,U),K=de(W,`${W}-${I}`,{[`${W}-hide-required-mark`]:D===!1,[`${W}-rtl`]:a==="rtl",[`${W}-${H}`]:H},q,U,G,d,g,p),[Z]=H8(S),{__INTERNAL__:Q}=Z;Q.name=P;const te=i.useMemo(()=>({name:P,labelAlign:$,labelCol:E,labelWrap:w,wrapperCol:R,layout:I,colon:F,requiredMark:D,itemRef:Q.itemRef,form:Z,feedbackIcons:L}),[P,$,E,R,I,F,D,Z,L]),X=i.useRef(null);i.useImperativeHandle(t,()=>{var re;return Object.assign(Object.assign({},Z),{nativeElement:(re=X.current)===null||re===void 0?void 0:re.nativeElement})});const oe=(re,Y)=>{if(re){let ee={block:"nearest"};typeof re=="object"&&(ee=Object.assign(Object.assign({},ee),re)),Z.scrollToField(Y,ee)}},ae=re=>{if(N==null||N(re),re.errorFields.length){const Y=re.errorFields[0].name;if(O!==void 0){oe(O,Y);return}u!==void 0&&oe(u,Y)}};return V(i.createElement(Ij.Provider,{value:k},i.createElement(S1,{disabled:x},i.createElement(vs.Provider,{value:H},i.createElement(jj,{validateMessages:z},i.createElement(wi.Provider,{value:te},i.createElement(Rj,{status:!0},i.createElement(eu,Object.assign({id:P},_,{name:P,onFinishFailed:ae,form:Z,ref:X,style:Object.assign(Object.assign({},f),B),className:K})))))))))},IY=i.forwardRef(RY);function NY(e){if(typeof e=="function")return e;const t=Jr(e);return t.length<=1?t[0]:t}const XI=()=>{const{status:e,errors:t=[],warnings:n=[]}=i.useContext(Ur);return{status:e,errors:t,warnings:n}};XI.Context=Ur;function MY(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,Zt.cancel(r.current),r.current=null}),[]);function c(u){l.current||(r.current===null&&(a.current=[],r.current=Zt(()=>{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 TY(){const{itemRef:e}=i.useContext(wi),t=i.useRef({});function n(r,a){const l=a&&typeof a=="object"&&El(a),c=r.join("_");return(t.current.name!==c||t.current.originRef!==l)&&(t.current.name=c,t.current.originRef=l,t.current.ref=Mr(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"}}}},zY=Qc(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=qI(e,t);return PY(n)});var DY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const _Y=24,AY=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:y,label:x}=e,S=`${t}-item`,b=i.useContext(wi),$=i.useMemo(()=>{let _=Object.assign({},a||b.wrapperCol||{});return x===null&&!r&&!a&&b.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(z=>{const D=z?[z]:[],F=Ea(b.labelCol,D),W=typeof F=="object"?F:{},U=Ea(_,D),V=typeof U=="object"?U:{};"span"in W&&!("offset"in V)&&W.span<_Y&&(_=mo(_,[].concat(D,["offset"]),W.span))}),_},[a,b.wrapperCol,b.labelCol,x,r]),w=de(`${S}-control`,$.className),E=i.useMemo(()=>{const{labelCol:_,wrapperCol:H}=b;return DY(b,["labelCol","wrapperCol"])},[b]),R=i.useRef(null),[j,I]=i.useState(0);an(()=>{f&&R.current?I(R.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(F1.Provider,{value:M},i.createElement(GI,{fieldId:g,errors:c,warnings:u,help:v,helpStatus:n,className:`${S}-explain-connected`,onVisibleChanged:y})):null,P={};g&&(P.id=`${g}_extra`);const B=f?i.createElement("div",Object.assign({},P,{className:`${S}-extra`,ref:R}),f):null,L=N||B?i.createElement("div",{className:`${S}-additional`,style:p?{minHeight:p+j}:{}},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(wi.Provider,{value:E},i.createElement(Qn,Object.assign({},$,{className:w}),k),i.createElement(zY,{prefixCls:t}))};var BY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},kY=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:BY}))},YI=i.forwardRef(kY),LY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const HY=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:a,colon:l,required:c,requiredMark:u,tooltip:d,vertical:f})=>{var v;const[g]=Aa("Form"),{labelAlign:p,labelCol:y,labelWrap:x,colon:S}=i.useContext(wi);if(!t)return null;const b=r||y||{},$=a||p,w=`${e}-item-label`,E=de(w,$==="left"&&`${w}-left`,b.className,{[`${w}-wrap`]:!!x});let R=t;const j=l===!0||S!==!1&&l!==!1;j&&!f&&typeof t=="string"&&t.trim()&&(R=t.replace(/[:|:]\s*$/,""));const O=FI(d);if(O){const{icon:k=i.createElement(YI,null)}=O,_=LY(O,["icon"]),H=i.createElement(_n,Object.assign({},_),i.cloneElement(k,{className:`${e}-item-tooltip`,title:"",onClick:z=>{z.preventDefault()},tabIndex:null}));R=i.createElement(i.Fragment,null,R,H)}const M=u==="optional",N=typeof u=="function",P=u===!1;N?R=u(R,{required:!!c}):M&&!c&&(R=i.createElement(i.Fragment,null,R,i.createElement("span",{className:`${e}-item-optional`,title:""},(g==null?void 0:g.optional)||((v=po.Form)===null||v===void 0?void 0:v.optional))));let B;P?B="hidden":(M||N)&&(B="optional");const L=de({[`${e}-item-required`]:c,[`${e}-item-required-mark-${B}`]:B,[`${e}-item-no-colon`]:!j});return i.createElement(Qn,Object.assign({},b,{className:E}),i.createElement("label",{htmlFor:n,className:L,title:typeof t=="string"?t:""},R))},FY={success:ws,warning:Es,error:Ol,validating:To};function QI({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(wi),g=L8(t,n,c,null,!!r,a),{isFormItemInput:p,status:y,hasFeedback:x,feedbackIcon:S,name:b}=i.useContext(Ur),$=i.useMemo(()=>{var w;let E;if(r){const j=r!==!0&&r.icons||v,I=g&&((w=j==null?void 0:j({status:g,errors:t,warnings:n}))===null||w===void 0?void 0:w[g]),O=g?FY[g]:null;E=I!==!1&&O?i.createElement("span",{className:de(`${f}-feedback-icon`,`${f}-feedback-icon-${g}`)},I||i.createElement(O,null)):null}const R={status:g||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:E,isFormItemInput:!0,name:d};return u&&(R.status=(g??y)||"",R.isFormItemInput=p,R.hasFeedback=!!(r??x),R.feedbackIcon=r!==void 0?R.feedbackIcon:S,R.name=d??b),R},[g,r,u,p,y]);return i.createElement(Ur.Provider,{value:$},e)}var VY=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 WY(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:y,required:x,isRequired:S,onSubItemMetaChange:b,layout:$,name:w}=e,E=VY(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),R=`${t}-item`,{requiredMark:j,layout:I}=i.useContext(wi),O=$||I,M=O==="vertical",N=i.useRef(null),P=Jv(c),B=Jv(u),L=l!=null,k=!!(L||c.length||u.length),_=!!N.current&&Jc(N.current),[H,z]=i.useState(null);an(()=>{if(k&&N.current){const V=getComputedStyle(N.current);z(Number.parseInt(V.marginBottom,10))}},[k,_]);const D=V=>{V||z(null)},W=((V=!1)=>{const G=V?P:f.errors,q=V?B:f.warnings;return L8(G,q,f,"",!!v,d)})(),U=de(R,n,r,{[`${R}-with-help`]:L||P.length||B.length,[`${R}-has-feedback`]:W&&v,[`${R}-has-success`]:W==="success",[`${R}-has-warning`]:W==="warning",[`${R}-has-error`]:W==="error",[`${R}-is-validating`]:W==="validating",[`${R}-hidden`]:g,[`${R}-${O}`]:O});return i.createElement("div",{className:U,style:a,ref:N},i.createElement(Ro,Object.assign({className:`${R}-row`},En(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(HY,Object.assign({htmlFor:y},e,{requiredMark:j,required:x??S,prefixCls:t,vertical:M})),i.createElement(AY,Object.assign({},e,f,{errors:P,warnings:B,prefixCls:t,status:W,help:l,marginBottom:H,onErrorVisibleChanged:D}),i.createElement(Oj.Provider,{value:b},i.createElement(QI,{prefixCls:t,meta:f,errors:f.errors,warnings:f.warnings,hasFeedback:v,validateStatus:W,name:w},p)))),!!H&&i.createElement("div",{className:`${R}-margin-offset`,style:{marginBottom:-H}}))}const KY="__SPLIT__";function UY(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 qY=i.memo(({children:e})=>e,(e,t)=>UY(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function X4(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function GY(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:y,hidden:x,help:S,layout:b}=e,{getPrefixCls:$}=i.useContext(Rt),{name:w}=i.useContext(wi),E=NY(d),R=typeof E=="function",j=i.useContext(Oj),{validateTrigger:I}=i.useContext(ps),O=y!==void 0?y:I,M=t!=null,N=$("form",l),P=vr(N),[B,L,k]=RC(N,P);ti();const _=i.useContext(Ud),H=i.useRef(null),[z,D]=MY({}),[F,W]=gs(()=>X4()),U=te=>{const X=_==null?void 0:_.getKey(te.name);if(W(te.destroy?X4():te,!0),n&&S!==!1&&j){let oe=te.name;if(te.destroy)oe=H.current||oe;else if(X!==void 0){const[ae,re]=X;oe=[ae].concat(Me(re)),H.current=oe}j(te,oe)}},V=(te,X)=>{D(oe=>{const ae=Object.assign({},oe),Y=[].concat(Me(te.name.slice(0,-1)),Me(X)).join(KY);return te.destroy?delete ae[Y]:ae[Y]=te,ae})},[G,q]=i.useMemo(()=>{const te=Me(F.errors),X=Me(F.warnings);return Object.values(z).forEach(oe=>{te.push.apply(te,Me(oe.errors||[])),X.push.apply(X,Me(oe.warnings||[]))}),[te,X]},[z,F.errors,F.warnings]),K=TY();function Z(te,X,oe){return n&&!x?i.createElement(QI,{prefixCls:N,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:G,warnings:q,noStyle:!0,name:t},te):i.createElement(WY,Object.assign({key:"row"},e,{className:de(r,k,P,L),prefixCls:N,fieldId:X,isRequired:oe,errors:G,warnings:q,meta:F,onSubItemMetaChange:V,layout:b,name:t}),te)}if(!M&&!R&&!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(L1,Object.assign({},e,{messageVariables:Q,trigger:p,validateTrigger:O,onMetaChange:U}),(te,X,oe)=>{const ae=Id(t).length&&X?X.name:[],re=k8(ae,w),Y=f!==void 0?f:!!(u!=null&&u.some(ue=>{if(ue&&typeof ue=="object"&&ue.required&&!ue.warningOnly)return!0;if(typeof ue=="function"){const se=ue(oe);return(se==null?void 0:se.required)&&!(se!=null&&se.warningOnly)}return!1})),ee=Object.assign({},te);let ie=null;if(Array.isArray(E)&&M)ie=E;else if(!(R&&(!(c||a)||M))){if(!(a&&!R&&!M))if(i.isValidElement(E)){const ue=Object.assign(Object.assign({},E.props),ee);if(ue.id||(ue.id=re),S||G.length>0||q.length>0||e.extra){const fe=[];(S||G.length>0)&&fe.push(`${re}_help`),e.extra&&fe.push(`${re}_extra`),ue["aria-describedby"]=fe.join(" ")}G.length>0&&(ue["aria-invalid"]="true"),Y&&(ue["aria-required"]="true"),Io(E)&&(ue.ref=K(ae,E)),new Set([].concat(Me(Id(p)),Me(Id(O)))).forEach(fe=>{ue[fe]=(...he)=>{var Se,be,$e,xe,ye;($e=ee[fe])===null||$e===void 0||(Se=$e).call.apply(Se,[ee].concat(he)),(ye=(xe=E.props)[fe])===null||ye===void 0||(be=ye).call.apply(be,[xe].concat(he))}});const pe=[ue["aria-required"],ue["aria-invalid"],ue["aria-describedby"]];ie=i.createElement(qY,{control:ee,update:E,childProps:pe},Or(E,ue))}else R&&(c||a)&&!M?ie=E(oe):ie=E}return Z(ie,re,Y)}))}const ZI=GY;ZI.useStatus=XI;var XY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const YY=e=>{var{prefixCls:t,children:n}=e,r=XY(e,["prefixCls","children"]);const{getPrefixCls:a}=i.useContext(Rt),l=a("form",t),c=i.useMemo(()=>({prefixCls:l,status:"error"}),[l]);return i.createElement(Sj,Object.assign({},r),(u,d,f)=>i.createElement(F1.Provider,{value:c},n(u.map(v=>Object.assign(Object.assign({},v),{fieldKey:v.key})),d,{errors:f.errors,warnings:f.warnings})))};function QY(){const{form:e}=i.useContext(wi);return e}const Ht=IY;Ht.Item=ZI;Ht.List=YY;Ht.ErrorList=GI;Ht.useForm=H8;Ht.useFormInstance=QY;Ht.useWatch=Ej;Ht.Provider=jj;Ht.create=()=>{};var ZY={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"},JY=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:ZY}))},IC=i.forwardRef(JY);function Y4(e,t,n,r){var a=zd.unstable_batchedUpdates?function(c){zd.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 eQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},tQ=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:eQ}))},nQ=i.forwardRef(tQ);const rQ=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]=X8(c),v=de(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(Ur),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(Ur.Provider,{value:p},e.children)))},aQ=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}}}},oQ=un(["Input","OTP"],e=>{const t=rn(e,Ms(e));return aQ(t)},Ts);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 lQ=i.forwardRef((e,t)=>{const{className:n,value:r,onChange:a,onActiveChange:l,index:c,mask:u}=e,d=iQ(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 y=b=>{a(c,b.target.value)},x=()=>{Zt(()=>{var b;const $=(b=p.current)===null||b===void 0?void 0:b.input;document.activeElement===$&&$&&$.select()})},S=b=>{const{key:$,ctrlKey:w,metaKey:E}=b;$==="ArrowLeft"?l(c-1):$==="ArrowRight"?l(c+1):$==="z"&&(w||E)?b.preventDefault():$==="Backspace"&&!r&&l(c-1),x()};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(Ef,Object.assign({"aria-label":`OTP Input ${c+1}`,type:u===!0?"password":"text"},d,{ref:p,value:r,onInput:y,onFocus:x,onKeyDown:S,onMouseDown:x,onMouseUp:x,className:de(n,{[`${v}-mask-input`]:u})})))});var sQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Jm(e){return(e||"").split("")}const cQ=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},uQ=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:y,mask:x,type:S,onInput:b,inputMode:$}=e,w=sQ(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:E,direction:R}=i.useContext(Rt),j=E("otp",n),I=Nr(w,{aria:!0,data:!0,attr:!0}),[O,M,N]=oQ(j),P=Tr(K=>a??K),B=i.useContext(Ur),L=Rl(B.status,p),k=i.useMemo(()=>Object.assign(Object.assign({},B),{status:L,hasFeedback:!1,feedbackIcon:null}),[B,L]),_=i.useRef(null),H=i.useRef({});i.useImperativeHandle(t,()=>({focus:()=>{var K;(K=H.current[0])===null||K===void 0||K.focus()},blur:()=>{var K;for(let Z=0;Z<r;Z+=1)(K=H.current[Z])===null||K===void 0||K.blur()},nativeElement:_.current}));const z=K=>d?d(K):K,[D,F]=i.useState(()=>Jm(z(l||"")));i.useEffect(()=>{c!==void 0&&F(Jm(c))},[c]);const W=Qt(K=>{F(K),b&&b(K),u&&K.length===r&&K.every(Z=>Z)&&K.some((Z,Q)=>D[Q]!==Z)&&u(K.join(""))}),U=Qt((K,Z)=>{let Q=Me(D);for(let X=0;X<K;X+=1)Q[X]||(Q[X]="");Z.length<=1?Q[K]=Z:Q=Q.slice(0,K).concat(Jm(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=Jm(te).map((X,oe)=>X===" "&&!Q[oe]?Q[oe]:X),Q}),V=(K,Z)=>{var Q;const te=U(K,Z),X=Math.min(K+Z.length,r-1);X!==K&&te[K]!==void 0&&((Q=H.current[X])===null||Q===void 0||Q.focus()),W(te)},G=K=>{var Z;(Z=H.current[K])===null||Z===void 0||Z.focus()},q={variant:v,disabled:g,status:L,mask:x,type:S,inputMode:$};return O(i.createElement("div",Object.assign({},I,{ref:_,className:de(j,{[`${j}-sm`]:P==="small",[`${j}-lg`]:P==="large",[`${j}-rtl`]:R==="rtl"},N,M),role:"group"}),i.createElement(Ur.Provider,{value:k},Array.from({length:r}).map((K,Z)=>{const Q=`otp-${Z}`,te=D[Z]||"";return i.createElement(i.Fragment,{key:Q},i.createElement(lQ,Object.assign({ref:X=>{H.current[Z]=X},index:Z,size:P,htmlSize:1,className:`${j}-input`,onChange:V,value:te,onActiveChange:G,autoFocus:Z===0&&y},q)),Z<r-1&&i.createElement(cQ,{separator:f,index:Z,prefixCls:j}))}))))});var dQ={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"},fQ=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:dQ}))},mQ=i.forwardRef(fQ),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 gQ=e=>e?i.createElement(IC,null):i.createElement(mQ,null),pQ={click:"onClick",hover:"onMouseOver"},hQ=i.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:l=gQ,suffix:c}=e,u=i.useContext(Kr),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 y=PI(p),x=()=>{var B;if(d)return;v&&y();const L=!v;g(L),typeof a=="object"&&((B=a.onVisibleChange)===null||B===void 0||B.call(a,L))},S=B=>{const L=pQ[r]||"",k=l(v),_={[L]:x,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),_)},{className:b,prefixCls:$,inputPrefixCls:w,size:E}=e,R=vQ(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:j}=i.useContext(Rt),I=j("input",w),O=j("input-password",$),M=a&&S(O),N=de(O,b,{[`${O}-${E}`]:!!E}),P=Object.assign(Object.assign({},En(R,["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(Ef,Object.assign({ref:Mr(t,p)},P))});var bQ=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 yQ=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:y,onCompositionEnd:x,variant:S,onPressEnter:b}=e,$=bQ(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:w,direction:E}=i.useContext(Rt),R=i.useRef(!1),j=w("input-search",n),I=w("input",r),{compactSize:O}=Bo(j,E),M=Tr(q=>{var K;return(K=l??O)!==null&&K!==void 0?K:q}),N=i.useRef(null),P=q=>{q!=null&&q.target&&q.type==="click"&&g&&g(q.target.value,q,{source:"clear"}),p==null||p(q)},B=q=>{var K;document.activeElement===((K=N.current)===null||K===void 0?void 0:K.input)&&q.preventDefault()},L=q=>{var K,Z;g&&g((Z=(K=N.current)===null||K===void 0?void 0:K.input)===null||Z===void 0?void 0:Z.value,q,{source:"input"})},k=q=>{R.current||f||(b==null||b(q),L(q))},_=typeof u=="boolean"?i.createElement(Rs,null):null,H=`${j}-button`;let z;const D=u||{},F=D.type&&D.type.__ANT_BUTTON===!0;F||D.type==="button"?z=Or(D,Object.assign({onMouseDown:B,onClick:q=>{var K,Z;(Z=(K=D==null?void 0:D.props)===null||K===void 0?void 0:K.onClick)===null||Z===void 0||Z.call(K,q),L(q)},key:"enterButton"},F?{className:H,size:M}:{})):z=i.createElement(Ue,{className:H,color:u?"primary":"default",size:M,disabled:v,key:"enterButton",onMouseDown:B,onClick:L,loading:f,icon:_,variant:S==="borderless"||S==="filled"||S==="underlined"?"text":u?"solid":void 0},u),d&&(z=[z,Or(d,{key:"addonAfter"})]);const W=de(j,{[`${j}-rtl`]:E==="rtl",[`${j}-${M}`]:!!M,[`${j}-with-button`]:!!u},a),U=q=>{R.current=!0,y==null||y(q)},V=q=>{R.current=!1,x==null||x(q)},G=Object.assign(Object.assign({},$),{className:W,prefixCls:I,type:"search",size:M,variant:S,onPressEnter:k,onCompositionStart:U,onCompositionEnd:V,addonAfter:z,suffix:c,onChange:P,disabled:v,_skipAddonWarning:!0});return i.createElement(Ef,Object.assign({ref:Mr(N,t)},G))});var CQ=`
|
|
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
|
-
`,xQ=["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"],tb={},qa;function SQ(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&&tb[n])return tb[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=xQ.map(function(f){return"".concat(f,":").concat(r.getPropertyValue(f))}).join(";"),d={sizingStyle:u,paddingSize:l,borderSize:c,boxSizing:a};return t&&n&&(tb[n]=d),d}function $Q(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;qa||(qa=document.createElement("textarea"),qa.setAttribute("tab-index","-1"),qa.setAttribute("aria-hidden","true"),qa.setAttribute("name","hiddenTextarea"),document.body.appendChild(qa)),e.getAttribute("wrap")?qa.setAttribute("wrap",e.getAttribute("wrap")):qa.removeAttribute("wrap");var a=SQ(e,t),l=a.paddingSize,c=a.borderSize,u=a.boxSizing,d=a.sizingStyle;qa.setAttribute("style","".concat(d,";").concat(CQ)),qa.value=e.value||e.placeholder||"";var f=void 0,v=void 0,g,p=qa.scrollHeight;if(u==="border-box"?p+=c:u==="content-box"&&(p-=l),n!==null||r!==null){qa.value=" ";var y=qa.scrollHeight-l;n!==null&&(f=y*n,u==="border-box"&&(f=f+l+c),p=Math.max(f,p)),r!==null&&(v=y*r,u==="border-box"&&(v=v+l+c),g=p>v?"":"hidden",p=Math.min(v,p))}var x={height:p,overflowY:g,resize:"none"};return f&&(x.minHeight=f),v&&(x.maxHeight=v),x}var wQ=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],nb=0,rb=1,ab=2,EQ=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,wQ),y=Cn(a,{value:l,postState:function(q){return q??""}}),x=me(y,2),S=x[0],b=x[1],$=function(q){b(q.target.value),g==null||g(q)},w=i.useRef();i.useImperativeHandle(t,function(){return{textArea:w.current}});var E=i.useMemo(function(){return c&&Ot(c)==="object"?[c.minRows,c.maxRows]:[]},[c]),R=me(E,2),j=R[0],I=R[1],O=!!c,M=i.useState(ab),N=me(M,2),P=N[0],B=N[1],L=i.useState(),k=me(L,2),_=k[0],H=k[1],z=function(){B(nb)};an(function(){O&&z()},[l,j,I,O]),an(function(){if(P===nb)B(rb);else if(P===rb){var G=$Q(w.current,!1,j,I);B(ab),H(G)}},[P]);var D=i.useRef(),F=function(){Zt.cancel(D.current)},W=function(q){P===ab&&(u==null||u(q),c&&(F(),D.current=Zt(function(){z()})))};i.useEffect(function(){return F},[]);var U=O?_:null,V=ce(ce({},f),U);return(P===nb||P===rb)&&(V.overflowY="hidden",V.overflowX="hidden"),i.createElement(ha,{onResize:W,disabled:!(c||u)},i.createElement("textarea",Ce({},p,{ref:w,style:V,className:de(r,d,ne({},"".concat(r,"-disabled"),v)),disabled:v,value:S,onChange:$})))}),OQ=["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"],jQ=ge.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,y=e.prefixCls,x=y===void 0?"rc-textarea":y,S=e.showCount,b=e.count,$=e.className,w=e.style,E=e.disabled,R=e.hidden,j=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,OQ),_=Cn(r,{value:a,defaultValue:r}),H=me(_,2),z=H[0],D=H[1],F=z==null?"":String(z),W=ge.useState(!1),U=me(W,2),V=U[0],G=U[1],q=ge.useRef(!1),K=ge.useState(null),Z=me(K,2),Q=Z[0],te=Z[1],X=i.useRef(null),oe=i.useRef(null),ae=function(){var Re;return(Re=oe.current)===null||Re===void 0?void 0:Re.textArea},re=function(){ae().focus()};i.useImperativeHandle(t,function(){var Ae;return{resizableTextArea:oe.current,focus:re,blur:function(){ae().blur()},nativeElement:((Ae=X.current)===null||Ae===void 0?void 0:Ae.nativeElement)||ae()}}),i.useEffect(function(){G(function(Ae){return!E&&Ae})},[E]);var Y=ge.useState(null),ee=me(Y,2),ie=ee[0],ue=ee[1];ge.useEffect(function(){if(ie){var Ae;(Ae=ae()).setSelectionRange.apply(Ae,Me(ie))}},[ie]);var se=NI(b,S),pe=(n=se.max)!==null&&n!==void 0?n:f,fe=Number(pe)>0,he=se.strategy(F),Se=!!pe&&he>pe,be=function(Re,ze){var we=ze;!q.current&&se.exceedFormatter&&se.max&&se.strategy(ze)>se.max&&(we=se.exceedFormatter(ze,{max:se.max}),ze!==we&&ue([ae().selectionStart||0,ae().selectionEnd||0])),D(we),Qv(Re.currentTarget,Re,u,we)},$e=function(Re){q.current=!0,v==null||v(Re)},xe=function(Re){q.current=!1,be(Re,Re.currentTarget.value),g==null||g(Re)},ye=function(Re){be(Re,Re.target.value)},Ne=function(Re){Re.key==="Enter"&&N&&N(Re),L==null||L(Re)},_e=function(Re){G(!0),l==null||l(Re)},Qe=function(Re){G(!1),c==null||c(Re)},Ke=function(Re){D(""),re(),Qv(ae(),Re,u)},Fe=p,Xe;se.show&&(se.showFormatter?Xe=se.showFormatter({value:F,count:he,maxLength:pe}):Xe="".concat(he).concat(fe?" / ".concat(pe):""),Fe=ge.createElement(ge.Fragment,null,Fe,ge.createElement("span",{className:de("".concat(x,"-data-count"),j==null?void 0:j.count),style:I==null?void 0:I.count},Xe)));var Pe=function(Re){var ze;O==null||O(Re),(ze=ae())!==null&&ze!==void 0&&ze.style.height&&te(!0)},je=!B&&!S&&!d;return ge.createElement(wC,{ref:X,value:F,allowClear:d,handleReset:Ke,suffix:Fe,prefixCls:x,classNames:ce(ce({},j),{},{affixWrapper:de(j==null?void 0:j.affixWrapper,ne(ne({},"".concat(x,"-show-count"),S),"".concat(x,"-textarea-allow-clear"),d))}),disabled:E,focused:V,className:de($,Se&&"".concat(x,"-out-of-range")),style:ce(ce({},w),Q&&!je?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Xe=="string"?Xe:void 0}},hidden:R,readOnly:P,onClear:M},ge.createElement(EQ,Ce({},k,{autoSize:B,maxLength:f,onKeyDown:Ne,onChange:ye,onFocus:_e,onBlur:Qe,onCompositionStart:$e,onCompositionEnd:xe,className:de(j==null?void 0:j.textarea),style:ce(ce({},I==null?void 0:I.textarea),{},{resize:w==null?void 0:w.resize}),disabled:E,prefixCls:x,onResize:Pe,ref:oe,readOnly:P})))});const RQ=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}}}}}},IQ=un(["Input","TextArea"],e=>{const t=rn(e,Ms(e));return RQ(t)},Ts,{resetFont:!1});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 JI=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:y,variant:x,showCount:S,onMouseDown:b,onResize:$}=e,w=NQ(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:E,direction:R,allowClear:j,autoComplete:I,className:O,style:M,classNames:N,styles:P}=hr("textArea"),B=i.useContext(Kr),L=c??B,{status:k,hasFeedback:_,feedbackIcon:H}=i.useContext(Ur),z=Rl(k,u),D=i.useRef(null);i.useImperativeHandle(t,()=>{var se;return{resizableTextArea:(se=D.current)===null||se===void 0?void 0:se.resizableTextArea,focus:pe=>{var fe,he;$C((he=(fe=D.current)===null||fe===void 0?void 0:fe.resizableTextArea)===null||he===void 0?void 0:he.textArea,pe)},blur:()=>{var pe;return(pe=D.current)===null||pe===void 0?void 0:pe.blur()}}});const F=E("input",r),W=vr(F),[U,V,G]=G8(F,v),[q]=IQ(F,W),{compactSize:K,compactItemClassnames:Z}=Bo(F,R),Q=Tr(se=>{var pe;return(pe=l??K)!==null&&pe!==void 0?pe:se}),[te,X]=Il("textArea",x,a),oe=TI(d??j),[ae,re]=i.useState(!1),[Y,ee]=i.useState(!1),ie=se=>{re(!0),b==null||b(se);const pe=()=>{re(!1),document.removeEventListener("mouseup",pe)};document.addEventListener("mouseup",pe)},ue=se=>{var pe,fe;if($==null||$(se),ae&&typeof getComputedStyle=="function"){const he=(fe=(pe=D.current)===null||pe===void 0?void 0:pe.nativeElement)===null||fe===void 0?void 0:fe.querySelector("textarea");he&&getComputedStyle(he).resize==="both"&&ee(!0)}};return U(q(i.createElement(jQ,Object.assign({autoComplete:I},w,{style:Object.assign(Object.assign({},M),p),styles:Object.assign(Object.assign({},P),y),disabled:L,allowClear:oe,className:de(G,W,g,v,Z,O,Y&&`${F}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},f),N),{textarea:de({[`${F}-sm`]:Q==="small",[`${F}-lg`]:Q==="large"},V,f==null?void 0:f.textarea,N.textarea,ae&&`${F}-mouse-active`),variant:de({[`${F}-${te}`]:X},Ei(F,z)),affixWrapper:de(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:R==="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:_&&i.createElement("span",{className:`${F}-textarea-suffix`},H),showCount:S,ref:D,onResize:ue,onMouseDown:ie}))))}),sn=Ef;sn.Group=rQ;sn.Search=yQ;sn.TextArea=JI;sn.Password=hQ;sn.OTP=uQ;function MQ(e,t,n){return typeof n=="boolean"?n:e.length?!0:Jr(t).some(a=>a.type===JR)}var eN=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 tp({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 NC=i.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:l}=e,c=eN(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:u}=i.useContext(Rt),d=u("layout",n),[f,v,g]=ZR(d),p=r?`${d}-${r}`:d;return f(i.createElement(l,Object.assign({className:de(n||p,a,v,g),ref:t},c)))}),TQ=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=eN(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),y=En(p,["suffixCls"]),{getPrefixCls:x,className:S,style:b}=hr("layout"),$=x("layout",l),w=MQ(r,d,f),[E,R,j]=ZR($),I=de($,{[`${$}-has-sider`]:w,[`${$}-rtl`]:n==="rtl"},S,c,u,R,j),O=i.useMemo(()=>({siderHook:{addSider:M=>{a(N=>[].concat(Me(N),[M]))},removeSider:M=>{a(N=>N.filter(P=>P!==M))}}}),[]);return E(i.createElement(XR.Provider,{value:O},i.createElement(v,Object.assign({ref:t,className:I,style:Object.assign(Object.assign({},b),g)},y),d)))}),PQ=tp({tagName:"div",displayName:"Layout"})(TQ),zQ=tp({suffixCls:"header",tagName:"header",displayName:"Header"})(NC),DQ=tp({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(NC),_Q=tp({suffixCls:"content",tagName:"main",displayName:"Content"})(NC),Sl=PQ;Sl.Header=zQ;Sl.Footer=DQ;Sl.Content=_Q;Sl.Sider=JR;Sl._InternalSiderContext=Fg;var AQ={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"},BQ=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:AQ}))},Q4=i.forwardRef(BQ),kQ={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"},LQ=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:kQ}))},Z4=i.forwardRef(LQ),HQ={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:"页码"},FQ=[10,20,50,100],VQ=function(t){var n=t.pageSizeOptions,r=n===void 0?FQ: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,y=t.sizeChangerRender,x=ge.useState(""),S=me(x,2),b=S[0],$=S[1],w=function(){return!b||Number.isNaN(b)?void 0:Number(b)},E=typeof g=="function"?g:function(L){return"".concat(L," ").concat(a.items_per_page)},R=function(k){$(k.target.value)},j=function(k){u||b===""||($(""),!(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){b!==""&&(k.keyCode===ot.ENTER||k.type==="click")&&($(""),d==null||d(w()))},O=function(){return r.some(function(k){return k.toString()===c.toString()})?r:r.concat([c]).sort(function(k,_){var H=Number.isNaN(Number(k))?0:Number(k),z=Number.isNaN(Number(_))?0:Number(_);return H-z})},M="".concat(f,"-options");if(!p&&!d)return null;var N=null,P=null,B=null;return p&&y&&(N=y({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"?ge.createElement("button",{type:"button",onClick:I,onKeyUp:I,disabled:v,className:"".concat(M,"-quick-jumper-button")},a.jump_to_confirm):ge.createElement("span",{onClick:I,onKeyUp:I},u)),P=ge.createElement("div",{className:"".concat(M,"-quick-jumper")},a.jump_to,ge.createElement("input",{disabled:v,type:"text",value:b,onChange:R,onKeyUp:I,onBlur:j,"aria-label":a.page}),a.page,B)),ge.createElement("li",{className:M},N,P)},ud=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=de(v,"".concat(v,"-").concat(r),ne(ne({},"".concat(v,"-active"),a),"".concat(v,"-disabled"),!r),l),p=function(){u(r)},y=function(b){d(b,u,r)},x=f(r,"page",ge.createElement("a",{rel:"nofollow"},r));return x?ge.createElement("li",{title:c?String(r):null,className:g,onClick:p,onKeyDown:y,tabIndex:0},x):null},WQ=function(t,n,r){return r};function J4(){}function eO(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Ql(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var KQ=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,y=t.defaultPageSize,x=y===void 0?10:y,S=t.onChange,b=S===void 0?J4:S,$=t.hideOnSinglePage,w=t.align,E=t.showPrevNextJumpers,R=E===void 0?!0:E,j=t.showQuickJumper,I=t.showLessItems,O=t.showTitle,M=O===void 0?!0:O,N=t.onShowSizeChange,P=N===void 0?J4:N,B=t.locale,L=B===void 0?HQ:B,k=t.style,_=t.totalBoundaryShowSizeChanger,H=_===void 0?50:_,z=t.disabled,D=t.simple,F=t.showTotal,W=t.showSizeChanger,U=W===void 0?g>H:W,V=t.sizeChangerRender,G=t.pageSizeOptions,q=t.itemRender,K=q===void 0?WQ:q,Z=t.jumpPrevIcon,Q=t.jumpNextIcon,te=t.prevIcon,X=t.nextIcon,oe=ge.useRef(null),ae=Cn(10,{value:p,defaultValue:x}),re=me(ae,2),Y=re[0],ee=re[1],ie=Cn(1,{value:u,defaultValue:f,postState:function(Mt){return Math.max(1,Math.min(Mt,Ql(void 0,Y,g)))}}),ue=me(ie,2),se=ue[0],pe=ue[1],fe=ge.useState(se),he=me(fe,2),Se=he[0],be=he[1];i.useEffect(function(){be(se)},[se]);var $e=Math.max(1,se-(I?3:5)),xe=Math.min(Ql(void 0,Y,g),se+(I?3:5));function ye(gt,Mt){var Vt=gt||ge.createElement("button",{type:"button","aria-label":Mt,className:"".concat(r,"-item-link")});return typeof gt=="function"&&(Vt=ge.createElement(gt,ce({},t))),Vt}function Ne(gt){var Mt=gt.target.value,Vt=Ql(void 0,Y,g),wn;return Mt===""?wn=Mt:Number.isNaN(Number(Mt))?wn=Se:Mt>=Vt?wn=Vt:wn=Number(Mt),wn}function _e(gt){return eO(gt)&>!==se&&eO(g)&&g>0}var Qe=g>Y?j:!1;function Ke(gt){(gt.keyCode===ot.UP||gt.keyCode===ot.DOWN)&>.preventDefault()}function Fe(gt){var Mt=Ne(gt);switch(Mt!==Se&&be(Mt),gt.keyCode){case ot.ENTER:je(Mt);break;case ot.UP:je(Mt-1);break;case ot.DOWN:je(Mt+1);break}}function Xe(gt){je(Ne(gt))}function Pe(gt){var Mt=Ql(gt,Y,g),Vt=se>Mt&&Mt!==0?Mt:se;ee(gt),be(Vt),P==null||P(se,gt),pe(Vt),b==null||b(Vt,gt)}function je(gt){if(_e(gt)&&!z){var Mt=Ql(void 0,Y,g),Vt=gt;return gt>Mt?Vt=Mt:gt<1&&(Vt=1),Vt!==Se&&be(Vt),pe(Vt),b==null||b(Vt,Y),Vt}return se}var Ae=se>1,Re=se<Ql(void 0,Y,g);function ze(){Ae&&je(se-1)}function we(){Re&&je(se+1)}function Oe(){je($e)}function Te(){je(xe)}function Le(gt,Mt){if(gt.key==="Enter"||gt.charCode===ot.ENTER||gt.keyCode===ot.ENTER){for(var Vt=arguments.length,wn=new Array(Vt>2?Vt-2:0),An=2;An<Vt;An++)wn[An-2]=arguments[An];Mt.apply(void 0,wn)}}function tt(gt){Le(gt,ze)}function Ct(gt){Le(gt,we)}function We(gt){Le(gt,Oe)}function nt(gt){Le(gt,Te)}function dt(gt){var Mt=K(gt,"prev",ye(te,"prev page"));return ge.isValidElement(Mt)?ge.cloneElement(Mt,{disabled:!Ae}):Mt}function at(gt){var Mt=K(gt,"next",ye(X,"next page"));return ge.isValidElement(Mt)?ge.cloneElement(Mt,{disabled:!Re}):Mt}function bt(gt){(gt.type==="click"||gt.keyCode===ot.ENTER)&&je(Se)}var zt=null,jt=Nr(t,{aria:!0,data:!0}),ct=F&&ge.createElement("li",{className:"".concat(r,"-total-text")},F(g,[g===0?0:(se-1)*Y+1,se*Y>g?g:se*Y])),wt=null,xt=Ql(void 0,Y,g);if($&&g<=Y)return null;var et=[],Ve={rootPrefixCls:r,onClick:je,onKeyPress:Le,showTitle:M,itemRender:K,page:-1},qe=se-1>0?se-1:0,mt=se+1<xt?se+1:xt,Tt=j&&j.goButton,Nt=Ot(D)==="object"?D.readOnly:!D,Wt=Tt,ft=null;D&&(Tt&&(typeof Tt=="boolean"?Wt=ge.createElement("button",{type:"button",onClick:bt,onKeyUp:bt},L.jump_to_confirm):Wt=ge.createElement("span",{onClick:bt,onKeyUp:bt},Tt),Wt=ge.createElement("li",{title:M?"".concat(L.jump_to).concat(se,"/").concat(xt):null,className:"".concat(r,"-simple-pager")},Wt)),ft=ge.createElement("li",{title:M?"".concat(se,"/").concat(xt):null,className:"".concat(r,"-simple-pager")},Nt?Se:ge.createElement("input",{type:"text","aria-label":L.jump_to,value:Se,disabled:z,onKeyDown:Ke,onKeyUp:Fe,onChange:Fe,onBlur:Xe,size:3}),ge.createElement("span",{className:"".concat(r,"-slash")},"/"),xt));var lt=I?1:2;if(xt<=3+lt*2){xt||et.push(ge.createElement(ud,Ce({},Ve,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var At=1;At<=xt;At+=1)et.push(ge.createElement(ud,Ce({},Ve,{key:At,page:At,active:se===At})))}else{var Gt=I?L.prev_3:L.prev_5,on=I?L.next_3:L.next_5,Jt=K($e,"jump-prev",ye(Z,"prev page")),pn=K(xe,"jump-next",ye(Q,"next page"));R&&(zt=Jt?ge.createElement("li",{title:M?Gt:null,key:"prev",onClick:Oe,tabIndex:0,onKeyDown:We,className:de("".concat(r,"-jump-prev"),ne({},"".concat(r,"-jump-prev-custom-icon"),!!Z))},Jt):null,wt=pn?ge.createElement("li",{title:M?on:null,key:"next",onClick:Te,tabIndex:0,onKeyDown:nt,className:de("".concat(r,"-jump-next"),ne({},"".concat(r,"-jump-next-custom-icon"),!!Q))},pn):null);var Xt=Math.max(1,se-lt),fn=Math.min(se+lt,xt);se-1<=lt&&(fn=1+lt*2),xt-se<=lt&&(Xt=xt-lt*2);for(var st=Xt;st<=fn;st+=1)et.push(ge.createElement(ud,Ce({},Ve,{key:st,page:st,active:se===st})));if(se-1>=lt*2&&se!==3&&(et[0]=ge.cloneElement(et[0],{className:de("".concat(r,"-item-after-jump-prev"),et[0].props.className)}),et.unshift(zt)),xt-se>=lt*2&&se!==xt-2){var St=et[et.length-1];et[et.length-1]=ge.cloneElement(St,{className:de("".concat(r,"-item-before-jump-next"),St.props.className)}),et.push(wt)}Xt!==1&&et.unshift(ge.createElement(ud,Ce({},Ve,{key:1,page:1}))),fn!==xt&&et.push(ge.createElement(ud,Ce({},Ve,{key:xt,page:xt})))}var yt=dt(qe);if(yt){var Ye=!Ae||!xt;yt=ge.createElement("li",{title:M?L.prev_page:null,onClick:ze,tabIndex:Ye?null:0,onKeyDown:tt,className:de("".concat(r,"-prev"),ne({},"".concat(r,"-disabled"),Ye)),"aria-disabled":Ye},yt)}var Ze=at(mt);if(Ze){var ut,Dt;D?(ut=!Re,Dt=Ae?0:null):(ut=!Re||!xt,Dt=ut?null:0),Ze=ge.createElement("li",{title:M?L.next_page:null,onClick:we,tabIndex:Dt,onKeyDown:Ct,className:de("".concat(r,"-next"),ne({},"".concat(r,"-disabled"),ut)),"aria-disabled":ut},Ze)}var Ut=de(r,c,ne(ne(ne(ne(ne({},"".concat(r,"-start"),w==="start"),"".concat(r,"-center"),w==="center"),"".concat(r,"-end"),w==="end"),"".concat(r,"-simple"),D),"".concat(r,"-disabled"),z));return ge.createElement("ul",Ce({className:Ut,style:k,ref:oe},jt),ct,yt,D?ft:et,Ze,ge.createElement(VQ,{locale:L,rootPrefixCls:r,disabled:z,selectPrefixCls:l,changeSize:Pe,pageSize:Y,pageSizeOptions:G,quickGo:Qe?je:null,goButton:Wt,showSizeChanger:U,sizeChangerRender:V}))};const UQ=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}}}}},qQ=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:le(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:le(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:le(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:le(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:le(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:le(e.itemSizeSM),input:Object.assign(Object.assign({},hC(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},GQ=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:le(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:le(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 ${le(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${le(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:`${le(e.inputOutlineOffset)} 0 ${le(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:le(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:le(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},XQ=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:le(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:`${le(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:le(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Sf(e)),dC(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Xg(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},YQ=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:le(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${le(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${le(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}}}}},QQ=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mn(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:le(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),YQ(e)),XQ(e)),GQ(e)),qQ(e)),UQ(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"}}},ZQ=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Za(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Mo(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Mo(e)}}}},tN=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},Ts(e)),nN=e=>rn(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"},Ms(e)),JQ=un("Pagination",e=>{const t=nN(e);return[QQ(t),ZQ(t)]},tN),eZ=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:`${le(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}}}}},tZ=Qc(["Pagination","bordered"],e=>{const t=nN(e);return eZ(t)},tN);function tO(e){return i.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var nZ=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=>{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,y=nZ(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:x}=_g(f),[,S]=ua(),{getPrefixCls:b,direction:$,showSizeChanger:w,className:E,style:R}=hr("pagination"),j=b("pagination",n),[I,O,M]=JQ(j),N=Tr(u),P=N==="small"||!!(x&&!N&&f),[B]=Aa("Pagination",l6),L=Object.assign(Object.assign({},B),d),[k,_]=tO(v),[H,z]=tO(w),D=k??H,F=_??z,W=g||Fn,U=i.useMemo(()=>p?p.map(Q=>Number(Q)):void 0,[p]),V=Q=>{var te;const{disabled:X,size:oe,onSizeChange:ae,"aria-label":re,className:Y,options:ee}=Q,{className:ie,onChange:ue}=F||{},se=(te=ee.find(pe=>String(pe.value)===String(oe)))===null||te===void 0?void 0:te.value;return i.createElement(W,Object.assign({disabled:X,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:pe=>pe.parentNode,"aria-label":re,options:ee},F,{value:se,onChange:(pe,fe)=>{ae==null||ae(pe),ue==null||ue(pe,fe)},size:P?"small":"middle",className:de(Y,ie)}))},G=i.useMemo(()=>{const Q=i.createElement("span",{className:`${j}-item-ellipsis`},"•••"),te=i.createElement("button",{className:`${j}-item-link`,type:"button",tabIndex:-1},$==="rtl"?i.createElement($i,null):i.createElement(Vc,null)),X=i.createElement("button",{className:`${j}-item-link`,type:"button",tabIndex:-1},$==="rtl"?i.createElement(Vc,null):i.createElement($i,null)),oe=i.createElement("a",{className:`${j}-item-link`},i.createElement("div",{className:`${j}-item-container`},$==="rtl"?i.createElement(Z4,{className:`${j}-item-link-icon`}):i.createElement(Q4,{className:`${j}-item-link-icon`}),Q)),ae=i.createElement("a",{className:`${j}-item-link`},i.createElement("div",{className:`${j}-item-container`},$==="rtl"?i.createElement(Q4,{className:`${j}-item-link-icon`}):i.createElement(Z4,{className:`${j}-item-link-icon`}),Q));return{prevIcon:te,nextIcon:X,jumpPrevIcon:oe,jumpNextIcon:ae}},[$,j]),q=b("select",r),K=de({[`${j}-${t}`]:!!t,[`${j}-mini`]:P,[`${j}-rtl`]:$==="rtl",[`${j}-bordered`]:S.wireframe},E,a,l,O,M),Z=Object.assign(Object.assign({},R),c);return I(i.createElement(i.Fragment,null,S.wireframe&&i.createElement(tZ,{prefixCls:j}),i.createElement(KQ,Object.assign({},G,y,{style:Z,prefixCls:j,selectPrefixCls:q,className:K,locale:L,pageSizeOptions:U,showSizeChanger:D,sizeChangerRender:V}))))},eg=100,aN=eg/5,oN=eg/2-aN/2,ob=oN*2*Math.PI,nO=50,rO=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return i.createElement("circle",{className:de(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:oN,cx:nO,cy:nO,strokeWidth:aN,style:n})},rZ=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,a=`${r}-hidden`,[l,c]=i.useState(!1);an(()=>{e!==0&&c(!0)},[e!==0]);const u=Math.max(Math.min(e,100),0);if(!l)return null;const d={strokeDashoffset:`${ob/4}`,strokeDasharray:`${ob*u/100} ${ob*(100-u)/100}`};return i.createElement("span",{className:de(r,`${n}-progress`,u<=0&&a)},i.createElement("svg",{viewBox:`0 0 ${eg} ${eg}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u},i.createElement(rO,{dotClassName:n,hasCircleCls:!0}),i.createElement(rO,{dotClassName:n,style:d})))};function aZ(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:de(a,n>0&&l)},i.createElement("span",{className:de(r,`${t}-dot-spin`)},[1,2,3,4].map(c=>i.createElement("i",{className:`${t}-dot-item`,key:c})))),i.createElement(rZ,{prefixCls:t,percent:n}))}function oZ(e){var t;const{prefixCls:n,indicator:r,percent:a}=e,l=`${n}-dot`;return r&&i.isValidElement(r)?Or(r,{className:de((t=r.props)===null||t===void 0?void 0:t.className,l),percent:a}):i.createElement(aZ,{prefixCls:n,percent:a})}const iZ=new tn("antSpinMove",{to:{opacity:1}}),lZ=new tn("antRotate",{to:{transform:"rotate(405deg)"}}),sZ=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},mn(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:iZ,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:lZ,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"}})}},cZ=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},uZ=un("Spin",e=>{const t=rn(e,{spinDotDefault:e.colorTextDescription});return sZ(t)},cZ),dZ=200,aO=[[30,.05],[70,.03],[96,.01]];function fZ(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<aO.length;d+=1){const[f,v]=aO[d];if(c<=f)return c+u*v}return c})},dZ)),()=>{a.current&&(clearInterval(a.current),a.current=null)}),[l,e]),l?n:t}var mZ=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 iN;function vZ(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const la=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:y,percent:x}=e,S=mZ(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:b,direction:$,className:w,style:E,indicator:R}=hr("spin"),j=b("spin",n),[I,O,M]=uZ(j),[N,P]=i.useState(()=>r&&!vZ(r,a)),B=fZ(N,x);i.useEffect(()=>{if(r){const F=dq(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=de(j,w,{[`${j}-sm`]:u==="small",[`${j}-lg`]:u==="large",[`${j}-spinning`]:N,[`${j}-show-text`]:!!d,[`${j}-rtl`]:$==="rtl"},l,!p&&c,O,M),_=de(`${j}-container`,{[`${j}-blur`]:N}),H=(t=y??R)!==null&&t!==void 0?t:iN,z=Object.assign(Object.assign({},E),v),D=i.createElement("div",Object.assign({},S,{style:z,className:k,"aria-live":"polite","aria-busy":N}),i.createElement(oZ,{prefixCls:j,indicator:H,percent:B}),d&&(L||p)?i.createElement("div",{className:`${j}-text`},d):null);return I(L?i.createElement("div",Object.assign({},S,{className:de(`${j}-nested-loading`,f,O,M)}),N&&i.createElement("div",{key:"loading"},D),i.createElement("div",{className:_,key:"container"},g)):p?i.createElement("div",{className:de(`${j}-fullscreen`,{[`${j}-fullscreen-show`]:N},c,O,M)},D):D)};la.setDefaultIndicator=e=>{iN=e};const MC=ge.createContext({});MC.Consumer;var lN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const gZ=e=>{var{prefixCls:t,className:n,avatar:r,title:a,description:l}=e,c=lN(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:u}=i.useContext(Rt),d=u("list",t),f=de(`${d}-item-meta`,n),v=ge.createElement("div",{className:`${d}-item-meta-content`},a&&ge.createElement("h4",{className:`${d}-item-meta-title`},a),l&&ge.createElement("div",{className:`${d}-item-meta-description`},l));return ge.createElement("div",Object.assign({},c,{className:f}),r&&ge.createElement("div",{className:`${d}-item-meta-avatar`},r),(a||l)&&v)},pZ=ge.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:a,extra:l,styles:c,className:u,classNames:d,colStyle:f}=e,v=lN(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:g,itemLayout:p}=i.useContext(MC),{getPrefixCls:y,list:x}=i.useContext(Rt),S=O=>{var M,N;return de((N=(M=x==null?void 0:x.item)===null||M===void 0?void 0:M.classNames)===null||N===void 0?void 0:N[O],d==null?void 0:d[O])},b=O=>{var M,N;return Object.assign(Object.assign({},(N=(M=x==null?void 0:x.item)===null||M===void 0?void 0:M.styles)===null||N===void 0?void 0:N[O]),c==null?void 0:c[O])},$=()=>{let O=!1;return i.Children.forEach(r,M=>{typeof M=="string"&&(O=!0)}),O&&i.Children.count(r)>1},w=()=>p==="vertical"?!!l:!$(),E=y("list",n),R=a&&a.length>0&&ge.createElement("ul",{className:de(`${E}-item-action`,S("actions")),key:"actions",style:b("actions")},a.map((O,M)=>ge.createElement("li",{key:`${E}-item-action-${M}`},O,M!==a.length-1&&ge.createElement("em",{className:`${E}-item-action-split`})))),j=g?"div":"li",I=ge.createElement(j,Object.assign({},v,g?{}:{ref:t},{className:de(`${E}-item`,{[`${E}-item-no-flex`]:!w()},u)}),p==="vertical"&&l?[ge.createElement("div",{className:`${E}-item-main`,key:"content"},r,R),ge.createElement("div",{className:de(`${E}-item-extra`,S("extra")),key:"extra",style:b("extra")},l)]:[r,R,Or(l,{key:"extra"})]);return g?ge.createElement(Qn,{ref:t,flex:1,style:f},I):I}),sN=pZ;sN.Meta=gZ;const hZ=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:a,itemPaddingSM:l,itemPaddingLG:c,marginLG:u,borderRadiusLG:d}=e,f=le(e.calc(d).sub(e.lineWidth).equal());return{[t]:{border:`${le(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:`${le(a)} ${le(u)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:l}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:c}}}},bZ=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 ${le(c)}`}}}}}},yZ=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:y,colorText:x,colorTextDescription:S,motionDurationSlow:b,lineWidth:$,headerBg:w,footerBg:E,emptyTextPadding:R,metaMarginBottom:j,avatarMarginRight:I,titleMarginBottom:O,descriptionFontSize:M}=e;return{[t]:Object.assign(Object.assign({},mn(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:x,[`${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:x},[`${t}-item-meta-title`]:{margin:`0 0 ${le(e.marginXXS)} 0`,color:x,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:x,transition:`all ${b}`,"&: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 ${le(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:$,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${le(u)} 0`,color:S,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:R,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:y,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:j,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:O,color:x,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:u,marginInlineStart:"auto","> li":{padding:`0 ${le(u)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${le(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:`${le(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"}}}}},CZ=e=>({contentWidth:220,itemPadding:`${le(e.paddingContentVertical)} 0`,itemPaddingSM:`${le(e.paddingContentVerticalSM)} ${le(e.paddingContentHorizontal)}`,itemPaddingLG:`${le(e.paddingContentVerticalLG)} ${le(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),xZ=un("List",e=>{const t=rn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[yZ(t),hZ(t),bZ(t)]},CZ);var SZ=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 $Z(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:y=[],size:x,header:S,footer:b,loading:$=!1,rowKey:w,renderItem:E,locale:R}=e,j=SZ(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:_}=hr("list"),{renderEmpty:H}=i.useContext(Rt),z={current:1,total:0,position:"bottom"},D=$e=>(xe,ye)=>{var Ne;M(xe),P(ye),n&&((Ne=n==null?void 0:n[$e])===null||Ne===void 0||Ne.call(n,xe,ye))},F=D("onChange"),W=D("onShowSizeChange"),U=($e,xe)=>{if(!E)return null;let ye;return typeof w=="function"?ye=w($e):w?ye=$e[w]:ye=$e.key,ye||(ye=`list-item-${xe}`),i.createElement(i.Fragment,{key:ye},E($e,xe))},V=!!(g||n||b),G=B("list",r),[q,K,Z]=xZ(G);let Q=$;typeof Q=="boolean"&&(Q={spinning:Q});const te=!!(Q!=null&&Q.spinning),X=Tr(x);let oe="";switch(X){case"large":oe="lg";break;case"small":oe="sm";break}const ae=de(G,{[`${G}-vertical`]:v==="vertical",[`${G}-${oe}`]:oe,[`${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,K,Z),re=Wd(z,{total:y.length,current:O,pageSize:N},n||{}),Y=Math.ceil(re.total/re.pageSize);re.current=Math.min(re.current,Y);const ee=n&&i.createElement("div",{className:de(`${G}-pagination`)},i.createElement(rN,Object.assign({align:"end"},re,{onChange:F,onShowSizeChange:W})));let ie=Me(y);n&&y.length>(re.current-1)*re.pageSize&&(ie=Me(y).splice((re.current-1)*re.pageSize,re.pageSize));const ue=Object.keys(p||{}).some($e=>["xs","sm","md","lg","xl","xxl"].includes($e)),se=_g(ue),pe=i.useMemo(()=>{for(let $e=0;$e<hs.length;$e+=1){const xe=hs[$e];if(se[xe])return xe}},[se]),fe=i.useMemo(()=>{if(!p)return;const $e=pe&&p[pe]?p[pe]:p.column;if($e)return{width:`${100/$e}%`,maxWidth:`${100/$e}%`}},[JSON.stringify(p),pe]);let he=te&&i.createElement("div",{style:{minHeight:53}});if(ie.length>0){const $e=ie.map(U);he=p?i.createElement(Ro,{gutter:p.gutter},i.Children.map($e,xe=>i.createElement("div",{key:xe==null?void 0:xe.key,style:fe},xe))):i.createElement("ul",{className:`${G}-items`},$e)}else!f&&!te&&(he=i.createElement("div",{className:`${G}-empty-text`},(R==null?void 0:R.emptyText)||(H==null?void 0:H("List"))||i.createElement(bf,{componentName:"List"})));const Se=re.position,be=i.useMemo(()=>({grid:p,itemLayout:v}),[JSON.stringify(p),v]);return q(i.createElement(MC.Provider,{value:be},i.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},_),d),className:ae},j),(Se==="top"||Se==="both")&&ee,S&&i.createElement("div",{className:`${G}-header`},S),i.createElement(la,Object.assign({},Q),he,f),b&&i.createElement("div",{className:`${G}-footer`},b),g||(Se==="bottom"||Se==="both")&&ee)))}const wZ=i.forwardRef($Z),Xd=wZ;Xd.Item=sN;const EZ=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let fo=null,ss=e=>e(),Yd=[],Qd={};function oO(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=Qd,l=(e==null?void 0:e())||document.body;return{getContainer:()=>l,duration:t,rtl:n,maxCount:r,top:a}}const OZ=ge.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=i.useContext(Rt),l=Qd.prefixCls||a("message"),c=i.useContext(Ny),[u,d]=ej(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),c.message));return ge.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}),jZ=ge.forwardRef((e,t)=>{const[n,r]=ge.useState(oO),a=()=>{r(oO)};ge.useEffect(a,[]);const l=_6(),c=l.getRootPrefixCls(),u=l.getIconPrefixCls(),d=l.getTheme(),f=ge.createElement(OZ,{ref:t,sync:a,messageConfig:n});return ge.createElement(Do,{prefixCls:c,iconPrefixCls:u,theme:d},l.holderRender?l.holderRender(f):f)}),np=()=>{if(!fo){const e=document.createDocumentFragment(),t={fragment:e};fo=t,ss(()=>{M1()(ge.createElement(jZ,{ref:r=>{const{instance:a,sync:l}=r||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=l,np())})}}),e)});return}fo.instance&&(Yd.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{ss(()=>{const r=fo.instance.open(Object.assign(Object.assign({},Qd),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":ss(()=>{fo==null||fo.instance.destroy(e.key)});break;default:ss(()=>{var r;const a=(r=fo.instance)[t].apply(r,Me(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),Yd=[])};function RZ(e){Qd=Object.assign(Object.assign({},Qd),e),ss(()=>{var t;(t=fo==null?void 0:fo.sync)===null||t===void 0||t.call(fo)})}function IZ(e){const t=I1(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:l=>{r=l}};return Yd.push(a),()=>{r?ss(()=>{r()}):a.skipped=!0}});return np(),t}function NZ(e,t){const n=I1(r=>{let a;const l={type:e,args:t,resolve:r,setCloseFn:c=>{a=c}};return Yd.push(l),()=>{a?ss(()=>{a()}):l.skipped=!0}});return np(),n}const MZ=e=>{Yd.push({type:"destroy",key:e}),np()},TZ=["success","info","warning","error","loading"],PZ={open:IZ,destroy:MZ,config:RZ,useMessage:tj,_InternalPanelDoNotUseOrYouWillBeFired:ZD},Hn=PZ;TZ.forEach(e=>{Hn[e]=(...t)=>NZ(e,t)});var zZ=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 DZ=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:l,title:c,children:u,footer:d}=e,f=zZ(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:v}=i.useContext(Rt),g=v(),p=t||v("modal"),y=vr(g),[x,S,b]=_j(p,y),$=`${p}-confirm`;let w={};return l?w={closable:a??!1,title:"",footer:"",children:i.createElement(Bj,Object.assign({},e,{prefixCls:p,confirmPrefixCls:$,rootPrefixCls:g,content:u}))}:w={closable:a??!0,title:c,footer:d!==null&&i.createElement(Tj,Object.assign({},e)),children:u},x(i.createElement(pj,Object.assign({prefixCls:p,className:de(S,`${p}-pure-panel`,l&&$,l&&`${$}-${l}`,n,b,y)},f,{closeIcon:Mj(p,r),closable:a},w)))},_Z=Yj(DZ);function cN(e){return gf(Fj(e))}const ar=Aj;ar.useModal=qj;ar.info=function(t){return gf(Vj(t))};ar.success=function(t){return gf(Wj(t))};ar.error=function(t){return gf(Kj(t))};ar.warning=cN;ar.warn=cN;ar.confirm=function(t){return gf(Uj(t))};ar.destroyAll=function(){for(;ls.length;){const t=ls.pop();t&&t()}};ar.config=ak;ar._InternalPanelDoNotUseOrYouWillBeFired=_Z;const AZ=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}}}}},BZ=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},uN=un("Popconfirm",e=>AZ(e),BZ,{resetStyle:!1});var kZ=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 dN=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:a,description:l,cancelText:c,okText:u,okType:d="primary",icon:f=i.createElement(Es,null),showCancel:v=!0,close:g,onConfirm:p,onCancel:y,onPopupClick:x}=e,{getPrefixCls:S}=i.useContext(Rt),[b]=Aa("Popconfirm",po.Popconfirm),$=Fc(a),w=Fc(l);return i.createElement("div",{className:`${t}-inner-content`,onClick:x},i.createElement("div",{className:`${t}-message`},f&&i.createElement("span",{className:`${t}-message-icon`},f),i.createElement("div",{className:`${t}-message-text`},$&&i.createElement("div",{className:`${t}-title`},$),w&&i.createElement("div",{className:`${t}-description`},w))),i.createElement("div",{className:`${t}-buttons`},v&&i.createElement(Ue,Object.assign({onClick:y,size:"small"},r),c||(b==null?void 0:b.cancelText)),i.createElement(A1,{buttonProps:Object.assign(Object.assign({size:"small"},T1(d)),n),actionFn:p,close:g,prefixCls:S("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},u||(b==null?void 0:b.okText))))},LZ=e=>{const{prefixCls:t,placement:n,className:r,style:a}=e,l=kZ(e,["prefixCls","placement","className","style"]),{getPrefixCls:c}=i.useContext(Rt),u=c("popconfirm",t),[d]=uN(u);return d(i.createElement(zR,{placement:n,className:de(u,r),style:a,content:i.createElement(dN,Object.assign({prefixCls:u},l))}))};var HZ=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 FZ=i.forwardRef((e,t)=>{var n,r;const{prefixCls:a,placement:l="top",trigger:c="click",okType:u="primary",icon:d=i.createElement(Es,null),children:f,overlayClassName:v,onOpenChange:g,onVisibleChange:p,overlayStyle:y,styles:x,classNames:S}=e,b=HZ(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:$,className:w,style:E,classNames:R,styles:j}=hr("popconfirm"),[I,O]=Cn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),M=(D,F)=>{O(D,!0),p==null||p(D),g==null||g(D,F)},N=D=>{M(!1,D)},P=D=>{var F;return(F=e.onConfirm)===null||F===void 0?void 0:F.call(void 0,D)},B=D=>{var F;M(!1,D),(F=e.onCancel)===null||F===void 0||F.call(void 0,D)},L=(D,F)=>{const{disabled:W=!1}=e;W||M(D,F)},k=$("popconfirm",a),_=de(k,w,v,R.root,S==null?void 0:S.root),H=de(R.body,S==null?void 0:S.body),[z]=uN(k);return z(i.createElement(Y1,Object.assign({},En(b,["title"]),{trigger:c,placement:l,onOpenChange:L,open:I,ref:t,classNames:{root:_,body:H},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},j.root),E),y),x==null?void 0:x.root),body:Object.assign(Object.assign({},j.body),x==null?void 0:x.body)},content:i.createElement(dN,Object.assign({okType:u,icon:d},e,{prefixCls:k,close:N,onConfirm:P,onCancel:B})),"data-popover-inject":!0}),f))}),Ya=FZ;Ya._InternalPanelDoNotUseOrYouWillBeFired=LZ;var VZ={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},WZ=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},iO=0,KZ=sa();function UZ(){var e;return KZ?(e=iO,iO+=1):e="TEST_OR_SSR",e}const qZ=(function(e){var t=i.useState(),n=me(t,2),r=n[0],a=n[1];return i.useEffect(function(){a("rc_progress_".concat(UZ()))},[]),e||r});var lO=function(t){var n=t.bg,r=t.children;return i.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function sO(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 GZ=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&&Ot(r)==="object",y=p?"#FFF":void 0,x=v/2,S=i.createElement("circle",{className:"".concat(n,"-circle-path"),r:l,cx:x,cy:x,stroke:y,strokeLinecap:d,strokeWidth:f,opacity:u===0?0:1,style:c,ref:t});if(!p)return S;var b="".concat(a,"-conic"),$=g?"".concat(180+g/2,"deg"):"0deg",w=sO(r,(360-g)/360),E=sO(r,1),R="conic-gradient(from ".concat($,", ").concat(w.join(", "),")"),j="linear-gradient(to ".concat(g?"bottom":"top",", ").concat(E.join(", "),")");return i.createElement(i.Fragment,null,i.createElement("mask",{id:b},S),i.createElement("foreignObject",{x:0,y:0,width:v,height:v,mask:"url(#".concat(b,")")},i.createElement(lO,{bg:j},i.createElement(lO,{bg:R}))))}),Sd=100,ib=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),y=c===0?0:{bottom:0,top:180,left:90,right:-90}[u],x=(100-a)/100*n;f==="round"&&a!==100&&(x+=v/2,x>=n&&(x=n-.01));var S=Sd/2;return{stroke:typeof d=="string"?d:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:x+g,transform:"rotate(".concat(l+p+y,"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}},XZ=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function cO(e){var t=e??[];return Array.isArray(t)?t:[t]}var YZ=function(t){var n=ce(ce({},VZ),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,y=n.style,x=n.className,S=n.strokeColor,b=n.percent,$=Lt(n,XZ),w=Sd/2,E=qZ(r),R="".concat(E,"-gradient"),j=w-c/2,I=Math.PI*2*j,O=f>0?90+f/2:-90,M=I*((360-f)/360),N=Ot(l)==="object"?l:{count:l,gap:2},P=N.count,B=N.gap,L=cO(b),k=cO(S),_=k.find(function(V){return V&&Ot(V)==="object"}),H=_&&Ot(_)==="object",z=H?"butt":p,D=ib(I,M,0,100,O,f,v,g,z,c),F=WZ(),W=function(){var G=0;return L.map(function(q,K){var Z=k[K]||k[k.length-1],Q=ib(I,M,G,q,O,f,v,Z,z,c);return G+=q,i.createElement(GZ,{key:K,color:Z,ptg:q,radius:j,prefixCls:a,gradientId:R,style:Q,strokeLinecap:z,strokeWidth:c,gapDegree:f,ref:function(X){F[K]=X},size:Sd})}).reverse()},U=function(){var G=Math.round(P*(L[0]/100)),q=100/P,K=0;return new Array(P).fill(null).map(function(Z,Q){var te=Q<=G-1?k[0]:g,X=te&&Ot(te)==="object"?"url(#".concat(R,")"):void 0,oe=ib(I,M,K,q,O,f,v,te,"butt",c,B);return K+=(M-oe.strokeDashoffset+B)*100/M,i.createElement("circle",{key:Q,className:"".concat(a,"-circle-path"),r:j,cx:w,cy:w,stroke:X,strokeWidth:c,opacity:1,style:oe,ref:function(re){F[Q]=re}})})};return i.createElement("svg",Ce({className:de("".concat(a,"-circle"),x),viewBox:"0 0 ".concat(Sd," ").concat(Sd),style:y,id:r,role:"presentation"},$),!P&&i.createElement("circle",{className:"".concat(a,"-circle-trail"),r:j,cx:w,cy:w,stroke:g,strokeLinecap:z,strokeWidth:u||c,style:D}),P?U():W())};function bl(e){return!e||e<0?0:e>100?100:e}function tg({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const QZ=({percent:e,success:t,successPercent:n})=>{const r=bl(tg({success:t,successPercent:n}));return[r,bl(bl(e)-r)]},ZZ=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||Nc.green,t||null]},rp=(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]},JZ=3,eJ=e=>JZ/e*100,tJ=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,y]=rp(v,"circle");let{strokeWidth:x}=e;x===void 0&&(x=Math.max(eJ(p),6));const S={width:p,height:y,fontSize:p*.15+6},b=i.useMemo(()=>{if(l||l===0)return l;if(u==="dashboard")return 75},[l,u]),$=QZ(e),w=a||u==="dashboard"&&"bottom"||void 0,E=Object.prototype.toString.call(e.strokeColor)==="[object Object]",R=ZZ({success:f,strokeColor:e.strokeColor}),j=de(`${t}-inner`,{[`${t}-circle-gradient`]:E}),I=i.createElement(YZ,{steps:g,percent:g?$[1]:$,strokeWidth:x,trailWidth:x,strokeColor:g?R[1]:R,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:b,gapPosition:w}),O=p<=20,M=i.createElement("div",{className:j,style:S},I,!O&&d);return O?i.createElement(_n,{title:d},M):M},ng="--progress-line-stroke-color",fN="--progress-percent",uO=e=>{const t=e?"100%":"-100%";return new tn(`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}})},nJ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},mn(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(${ng})`]},height:"100%",width:`calc(1 / var(${fN}) * 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 ${le(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:uO(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:uO(!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}}})}},rJ=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"}}}},aJ=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}}}}}},oJ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},iJ=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),lJ=un("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=rn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[nJ(n),rJ(n),aJ(n),oJ(n)]},iJ);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 cJ=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(", ")},uJ=(e,t)=>{const{from:n=Nc.blue,to:r=Nc.blue,direction:a=t==="rtl"?"to left":"to right"}=e,l=sJ(e,["from","to","direction"]);if(Object.keys(l).length!==0){const u=cJ(l),d=`linear-gradient(${a}, ${u})`;return{background:d,[ng]:d}}const c=`linear-gradient(${a}, ${n}, ${r})`;return{background:c,[ng]:c}},dJ=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:y}=v,x=c&&typeof c!="string"?uJ(c,n):{[ng]:c,background:c},S=u==="square"||u==="butt"?0:void 0,b=a??[-1,l||(a==="small"?6:8)],[$,w]=rp(b,"line",{strokeWidth:l}),E={backgroundColor:f||void 0,borderRadius:S},R=Object.assign(Object.assign({width:`${bl(r)}%`,height:w,borderRadius:S},x),{[fN]:bl(r)/100}),j=tg(e),I={width:`${bl(j)}%`,height:w,borderRadius:S,backgroundColor:g==null?void 0:g.strokeColor},O={width:$<0?"100%":$},M=i.createElement("div",{className:`${t}-inner`,style:E},i.createElement("div",{className:de(`${t}-bg`,`${t}-bg-${y}`),style:R},y==="inner"&&d),j!==void 0&&i.createElement("div",{className:`${t}-success-bg`,style:I})),N=y==="outer"&&p==="start",P=y==="outer"&&p==="end";return y==="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)},fJ=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],[y,x]=rp(p,"step",{steps:n,strokeWidth:l}),S=y/n,b=Array.from({length:n});for(let $=0;$<n;$++){const w=Array.isArray(c)?c[$]:c;b[$]=i.createElement("div",{key:$,className:de(`${d}-steps-item`,{[`${d}-steps-item-active`]:$<=v-1}),style:{backgroundColor:$<=v-1?w:u,width:S,height:x}})}return i.createElement("div",{className:`${d}-steps-outer`},b,f)};var mJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const vJ=["normal","exception","active","success"],mN=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:y,percentPosition:x={}}=e,S=mJ(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:b="end",type:$="outer"}=x,w=Array.isArray(c)?c[0]:c,E=typeof c=="string"||Array.isArray(c)?c:void 0,R=i.useMemo(()=>{if(w){const W=typeof w=="string"?w:Object.values(w)[0];return new bn(W).isLight()}return!1},[c]),j=i.useMemo(()=>{var W,U;const V=tg(e);return Number.parseInt(V!==void 0?(W=V??0)===null||W===void 0?void 0:W.toString():(U=u??0)===null||U===void 0?void 0:U.toString(),10)},[u,e.success,e.successPercent]),I=i.useMemo(()=>!vJ.includes(g)&&j>=100?"success":g||"normal",[g,j]),{getPrefixCls:O,direction:M,progress:N}=i.useContext(Rt),P=O("progress",n),[B,L,k]=lJ(P),_=v==="line",H=_&&!l,z=i.useMemo(()=>{if(!f)return null;const W=tg(e);let U;const V=p||(q=>`${q}%`),G=_&&R&&$==="inner";return $==="inner"||p||I!=="exception"&&I!=="success"?U=V(bl(u),bl(W)):I==="exception"?U=_?i.createElement(Ol,null):i.createElement(_o,null):I==="success"&&(U=_?i.createElement(ws,null):i.createElement(js,null)),i.createElement("span",{className:de(`${P}-text`,{[`${P}-text-bright`]:G,[`${P}-text-${b}`]:H,[`${P}-text-${$}`]:H}),title:typeof U=="string"?U:void 0},U)},[f,u,j,I,v,P,p]);let D;v==="line"?D=l?i.createElement(fJ,Object.assign({},e,{strokeColor:E,prefixCls:P,steps:typeof l=="object"?l.count:l}),z):i.createElement(dJ,Object.assign({},e,{strokeColor:w,prefixCls:P,direction:M,percentPosition:{align:b,type:$}}),z):(v==="circle"||v==="dashboard")&&(D=i.createElement(tJ,Object.assign({},e,{strokeColor:w,prefixCls:P,progressStatus:I}),z));const F=de(P,`${P}-status-${I}`,{[`${P}-${v==="dashboard"&&"circle"||v}`]:v!=="line",[`${P}-inline-circle`]:v==="circle"&&rp(d,"circle")[0]<=20,[`${P}-line`]:H,[`${P}-line-align-${b}`]:H,[`${P}-line-position-${$}`]: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),y),className:F,role:"progressbar","aria-valuenow":j,"aria-valuemin":0,"aria-valuemax":100},En(S,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),D))});var gJ={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"},pJ=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:gJ}))},ys=i.forwardRef(pJ);const hJ=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)},bJ=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({},mn(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}}})}},yJ=e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}},CJ=un("Statistic",e=>{const t=rn(e,{});return bJ(t)},yJ);var xJ=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 Ci=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:y,precision:x,decimalSeparator:S=".",groupSeparator:b=",",onMouseEnter:$,onMouseLeave:w}=e,E=xJ(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:R,direction:j,className:I,style:O}=hr("statistic"),M=R("statistic",n),[N,P,B]=CJ(M),L=i.createElement(hJ,{decimalSeparator:S,groupSeparator:b,prefixCls:M,formatter:y,precision:x,value:u}),k=de(M,{[`${M}-rtl`]:j==="rtl"},I,r,a,P,B),_=i.useRef(null);i.useImperativeHandle(t,()=>({nativeElement:_.current}));const H=Nr(E,{aria:!0,data:!0});return N(i.createElement("div",Object.assign({},H,{ref:_,className:k,style:Object.assign(Object.assign({},O),l),onMouseEnter:$,onMouseLeave:w}),d&&i.createElement("div",{className:`${M}-title`},d),i.createElement(jl,{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)))))}),SJ=[["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 $J(e,t){let n=e;const r=/\[[^\]]*]/g,a=(t.match(r)||[]).map(d=>d.slice(1,-1)),l=t.replace(r,"[]"),c=SJ.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 y=p.length;return g.toString().padStart(y,"0")})}return d},l);let u=0;return c.replace(r,()=>{const d=a[u];return u+=1,d})}function wJ(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 $J(c,r)}var EJ=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 OJ(e){return new Date(e).getTime()}const vN=e=>{const{value:t,format:n="HH:mm:ss",onChange:r,onFinish:a,type:l}=e,c=EJ(e,["value","format","onChange","onFinish","type"]),u=l==="countdown",[d,f]=i.useState(null),v=Qt(()=>{const y=Date.now(),x=OJ(t);f({});const S=u?x-y:y-x;return r==null||r(S),u&&x<y?(a==null||a(),!1):!0});i.useEffect(()=>{let y;const x=()=>Zt.cancel(y),S=()=>{y=Zt(()=>{v()&&S()})};return S(),x},[t,u]),i.useEffect(()=>{f({})},[]);const g=(y,x)=>d?wJ(y,Object.assign(Object.assign({},x),{format:n}),u):"-",p=y=>Or(y,{title:void 0});return i.createElement(Ci,Object.assign({},c,{value:t,valueRender:p,formatter:g}))},jJ=e=>i.createElement(vN,Object.assign({},e,{type:"countdown"})),RJ=i.memo(jJ);Ci.Timer=vN;Ci.Countdown=RJ;var IJ=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],gN=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,y=e.onChange,x=e.onKeyDown,S=Lt(e,IJ),b=Cn(!1,{value:c,defaultValue:u}),$=me(b,2),w=$[0],E=$[1];function R(M,N){var P=w;return d||(P=M,E(P),y==null||y(P,N)),P}function j(M){M.which===ot.LEFT?R(!1,M):M.which===ot.RIGHT&&R(!0,M),x==null||x(M)}function I(M){var N=R(!w,M);p==null||p(N,M)}var O=de(a,l,(n={},ne(n,"".concat(a,"-checked"),w),ne(n,"".concat(a,"-disabled"),d),n));return i.createElement("button",Ce({},S,{type:"button",role:"switch","aria-checked":w,disabled:d,className:O,ref:t,onKeyDown:j,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)))});gN.displayName="Switch";const NJ=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:l,innerMaxMarginSM:c,handleSizeSM:u,calc:d}=e,f=`${t}-inner`,v=le(d(u).add(d(r).mul(2)).equal()),g=le(d(c).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:le(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% - ${le(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()}}}}}}},MJ=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}}}},TJ=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% - ${le(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}}}}},PJ=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:l,handleSize:c,calc:u}=e,d=`${t}-inner`,f=le(u(c).add(u(r).mul(2)).equal()),v=le(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()}}}}}},zJ=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},mn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:le(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}}),Za(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"}})}},DJ=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 bn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:d/2,innerMaxMargin:d+u+u*2,innerMinMarginSM:f/2,innerMaxMarginSM:f+u+u*2}},_J=un("Switch",e=>{const t=rn(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[zJ(t),PJ(t),TJ(t),MJ(t),NJ(t)]},DJ);var AJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const BJ=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:y}=e,x=AJ(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[S,b]=Cn(!1,{value:f??v,defaultValue:g??p}),{getPrefixCls:$,direction:w,switch:E}=i.useContext(Rt),R=i.useContext(Kr),j=(a??R)||l,I=$("switch",n),O=i.createElement("div",{className:`${I}-handle`},l&&i.createElement(To,{className:`${I}-loading-icon`})),[M,N,P]=_J(I),B=Tr(r),L=de(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),_=(...H)=>{b(H[0]),y==null||y.apply(void 0,H)};return M(i.createElement(cf,{component:"Switch",disabled:j},i.createElement(gN,Object.assign({},x,{checked:S,onChange:_,prefixCls:I,className:L,style:k,disabled:j,ref:t,loadingIcon:O}))))}),Zd=BJ;Zd.__ANT_SWITCH=!0;var dl={},Of="rc-table-internal-hook";function TC(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=me(d,1),v=f[0];return an(function(){vo.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 ca(e,t){var n=Qt(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(y){p[y]=g[y]}),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=me(d,2),v=f[1];return an(function(){if(!r)return;function g(p){var y=n(p);No(u.current,y,!0)||v({})}return l.add(g),function(){l.delete(g)}},[r]),u.current}function kJ(){var e=i.createContext(null);function t(){return i.useContext(e)}function n(a,l){var c=Io(a),u=function(f,v){var g=c?{ref:v}:{},p=i.useRef(0),y=i.useRef(f),x=t();return x!==null?i.createElement(a,Ce({},f,g)):((!l||l(y.current,f))&&(p.current+=1),y.current=f,i.createElement(e.Provider,{value:p.current},i.createElement(a,Ce({},f,g))))};return c?i.forwardRef(u):u}function r(a,l){var c=Io(a),u=function(f,v){var g=c?{ref:v}:{};return t(),i.createElement(a,Ce({},f,g))};return c?i.memo(i.forwardRef(u),l):i.memo(u,l)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var PC=kJ(),pN=PC.makeImmutable,du=PC.responseImmutable,LJ=PC.useImmutableMark,$a=TC(),hN=i.createContext({renderWithProps:!1}),HJ="RC_TABLE_KEY";function FJ(e){return e==null?[]:Array.isArray(e)?e:[e]}function ap(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},l=a.key,c=a.dataIndex,u=l||FJ(c).join("-")||HJ;n[u];)u="".concat(u,"_next");n[u]=!0,t.push(u)}),t}function Gy(e){return e!=null}function VJ(e){return typeof e=="number"&&!Number.isNaN(e)}function WJ(e){return e&&Ot(e)==="object"&&!Array.isArray(e)&&!i.isValidElement(e)}function KJ(e,t,n,r,a,l){var c=i.useContext(hN),u=LJ(),d=Ss(function(){if(Gy(r))return[r];var f=t==null||t===""?[]:Array.isArray(t)?t:[t],v=Ea(e,f),g=v,p=void 0;if(a){var y=a(v,e,n);WJ(y)?(g=y.children,p=y.props,c.renderWithProps=!0):g=y}return[g,p]},[u,e,r,t,a,n],function(f,v){if(l){var g=me(f,2),p=g[1],y=me(v,2),x=y[1];return l(x,p)}return c.renderWithProps?!0:!No(f,v,!0)});return d}function UJ(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function qJ(e,t){return ca($a,function(n){var r=UJ(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var GJ=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 XJ(e){var t,n,r,a,l,c,u,d,f=e.component,v=e.children,g=e.ellipsis,p=e.scope,y=e.prefixCls,x=e.className,S=e.align,b=e.record,$=e.render,w=e.dataIndex,E=e.renderIndex,R=e.shouldCellUpdate,j=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,_=e.lastFixRight,H=e.appendNode,z=e.additionalProps,D=z===void 0?{}:z,F=e.isSticky,W="".concat(y,"-cell"),U=ca($a,["supportSticky","allColumnsFixedLeft","rowHoverable"]),V=U.supportSticky,G=U.allColumnsFixedLeft,q=U.rowHoverable,K=KJ(b,w,E,v,$,R),Z=me(K,2),Q=Z[0],te=Z[1],X={},oe=typeof N=="number"&&V,ae=typeof P=="number"&&V;oe&&(X.position="sticky",X.left=N),ae&&(X.position="sticky",X.right=P);var re=(t=(n=(r=te==null?void 0:te.colSpan)!==null&&r!==void 0?r:D.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:D.rowSpan)!==null&&l!==void 0?l:M)!==null&&a!==void 0?a:1,ee=qJ(j,Y),ie=me(ee,2),ue=ie[0],se=ie[1],pe=Qt(function(ye){var Ne;b&&se(j,j+Y-1),D==null||(Ne=D.onMouseEnter)===null||Ne===void 0||Ne.call(D,ye)}),fe=Qt(function(ye){var Ne;b&&se(-1,-1),D==null||(Ne=D.onMouseLeave)===null||Ne===void 0||Ne.call(D,ye)});if(re===0||Y===0)return null;var he=(u=D.title)!==null&&u!==void 0?u:GJ({rowType:I,ellipsis:g,children:Q}),Se=de(W,x,(d={},ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(d,"".concat(W,"-fix-left"),oe&&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"),ae&&V),"".concat(W,"-fix-right-first"),k&&V),"".concat(W,"-fix-right-last"),_&&V),"".concat(W,"-ellipsis"),g),"".concat(W,"-with-append"),H),"".concat(W,"-fix-sticky"),(oe||ae)&&F&&V),ne(d,"".concat(W,"-row-hover"),!te&&ue)),D.className,te==null?void 0:te.className),be={};S&&(be.textAlign=S);var $e=ce(ce(ce(ce({},te==null?void 0:te.style),X),be),D.style),xe=Q;return Ot(xe)==="object"&&!Array.isArray(xe)&&!i.isValidElement(xe)&&(xe=null),g&&(L||k)&&(xe=i.createElement("span",{className:"".concat(W,"-content")},xe)),i.createElement(f,Ce({},te,D,{className:Se,style:$e,title:he,scope:p,onMouseEnter:q?pe:void 0,onMouseLeave:q?fe:void 0,colSpan:re!==1?re:null,rowSpan:Y!==1?Y:null}),H,xe)}const fu=i.memo(XJ);function zC(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,y=n[t+1],x=n[e-1],S=y&&!y.fixed||x&&!x.fixed||n.every(function(R){return R.fixed==="left"});if(a==="rtl"){if(u!==void 0){var b=x&&x.fixed==="left";p=!b&&S}else if(d!==void 0){var $=y&&y.fixed==="right";g=!$&&S}}else if(u!==void 0){var w=y&&y.fixed==="left";f=!w&&S}else if(d!==void 0){var E=x&&x.fixed==="right";v=!E&&S}return{fixLeft:u,fixRight:d,lastFixLeft:f,firstFixRight:v,lastFixRight:g,firstFixLeft:p,isSticky:r.isSticky}}var bN=i.createContext({});function YJ(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=ca($a,["prefixCls","direction"]),f=d.prefixCls,v=d.direction,g=i.useContext(bN),p=g.scrollColumnIndex,y=g.stickyOffsets,x=g.flattenColumns,S=n+l-1,b=S+1===p?l+1:l,$=zC(n,n+b-1,x,y,v);return i.createElement(fu,Ce({className:t,index:n,component:"td",prefixCls:f,record:null,dataIndex:null,align:u,colSpan:b,rowSpan:c,render:function(){return r}},$))}var QJ=["children"];function ZJ(e){var t=e.children,n=Lt(e,QJ);return i.createElement("tr",n,t)}function op(e){var t=e.children;return t}op.Row=ZJ;op.Cell=YJ;function JJ(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=ca($a,"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(bN.Provider,{value:u},i.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const ev=du(JJ);var yN=op;function eee(e){return null}function tee(e){return null}function CN(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)CN(e,t[r][f],n+1,r,a,l,f)}function xN(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];CN(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 SN(e,t,n,r){var a=ca($a,["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,y=a.rowClassName,x=c==="nest",S=c==="row"&&(!v||v(e)),b=S||x,$=u&&u.has(t),w=d&&e&&e[d],E=Qt(f),R=g==null?void 0:g(e,n),j=R==null?void 0:R.onClick,I=function(P){p&&b&&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];j==null||j.apply(void 0,[P].concat(L))},O;typeof y=="string"?O=y:typeof y=="function"&&(O=y(e,n,r));var M=ap(l);return ce(ce({},a),{},{columnsKey:M,nestExpandable:x,expanded:$,hasNestChildren:w,record:e,onTriggerExpand:E,rowSupportExpand:S,expandable:b,rowProps:ce(ce({},R),{},{className:de(O,R==null?void 0:R.className),onClick:I})})}function $N(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=ca($a,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),p=g.scrollbarSize,y=g.fixHeader,x=g.fixColumn,S=g.componentWidth,b=g.horizonScroll,$=n;return(d?b&&S:x)&&($=i.createElement("div",{style:{width:S-v-(y&&!d?p:0),position:"sticky",left:v,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},$)),i.createElement(r,{className:l,style:{display:c?null:"none"}},i.createElement(fu,{component:a,prefixCls:t,colSpan:u},$))}function nee(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:de(c,"".concat(t,"-row-spaced"))});var u=function(f){r(n,f),f.stopPropagation()};return i.createElement("span",{className:de(c,ne(ne({},"".concat(t,"-row-expanded"),a),"".concat(t,"-row-collapsed"),!a)),onClick:u})}function ree(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 wN(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function EN(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,y=e.nestExpandable,x=e.indentSize,S=e.expandIcon,b=e.expanded,$=e.hasNestChildren,w=e.onTriggerExpand,E=e.expandable,R=e.expandedKeys,j=v[n],I=g[n],O;n===(p||0)&&y&&(O=i.createElement(i.Fragment,null,i.createElement("span",{style:{paddingLeft:"".concat(x*r,"px")},className:"".concat(f,"-row-indent indent-level-").concat(r)}),S({prefixCls:f,expanded:b,expandable:$,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];R.has(k)&&(B+=1)}M.rowSpan=B}}return{key:j,fixedInfo:I,appendCellNode:O,additionalCellProps:M}}function aee(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,y=e.expandedRowInfo,x=SN(r,c,a,f),S=x.prefixCls,b=x.flattenColumns,$=x.expandedRowClassName,w=x.expandedRowRender,E=x.rowProps,R=x.expanded,j=x.rowSupportExpand,I=i.useRef(!1);I.current||(I.current=R);var O=wN($,r,a,f),M=i.createElement(v,Ce({},E,{"data-row-key":c,className:de(t,"".concat(S,"-row"),"".concat(S,"-row-level-").concat(f),E==null?void 0:E.className,ne({},O,f>=1)),style:ce(ce({},n),E==null?void 0:E.style)}),b.map(function(B,L){var k=B.render,_=B.dataIndex,H=B.className,z=EN(x,B,L,f,a,u,y==null?void 0:y.offset),D=z.key,F=z.fixedInfo,W=z.appendCellNode,U=z.additionalCellProps;return i.createElement(fu,Ce({className:H,ellipsis:B.ellipsis,align:B.align,scope:B.rowScope,component:B.rowScope?p:g,prefixCls:S,key:D,record:r,index:a,renderIndex:l,dataIndex:_,render:k,shouldCellUpdate:B.shouldCellUpdate},F,{appendNode:W,additionalProps:U}))})),N;if(j&&(I.current||R)){var P=w(r,a,f+1,R);N=i.createElement($N,{expanded:R,className:de("".concat(S,"-expanded-row"),"".concat(S,"-expanded-row-level-").concat(f+1),O),prefixCls:S,component:v,cellComponent:g,colSpan:y?y.colSpan:b.length,stickyOffset:y==null?void 0:y.sticky,isEmpty:!1},P)}return i.createElement(i.Fragment,null,M,N)}const oee=du(aee);function iee(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,a=e.title,l=i.useRef();return an(function(){l.current&&n(t,l.current.offsetWidth)},[]),i.createElement(ha,{data:t},i.createElement("th",{ref:l,className:"".concat(r,"-measure-cell")},i.createElement("div",{className:"".concat(r,"-measure-cell-content")},a||" ")))}function lee(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,a=e.columns,l=i.useRef(null),c=ca($a,["measureRowRender"]),u=c.measureRowRender,d=i.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:l,tabIndex:-1},i.createElement(ha.Collection,{onBatchResize:function(v){Jc(l.current)&&v.forEach(function(g){var p=g.data,y=g.size;r(p,y.offsetWidth)})}},n.map(function(f){var v=a.find(function(y){return y.key===f}),g=v==null?void 0:v.title,p=i.isValidElement(g)?i.cloneElement(g,{ref:null}):g;return i.createElement(iee,{prefixCls:t,key:f,columnKey:f,onColumnResize:r,title:p})})));return u?u(d):d}function see(e){var t=e.data,n=e.measureColumnWidth,r=ca($a,["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,y=p===void 0?0:p,x=r.colWidths,S=xN(t,v,f,d),b=i.useMemo(function(){return S.map(function(N){return N.rowKey})},[S]),$=i.useRef({renderWithProps:!1}),w=i.useMemo(function(){for(var N=u.length-y,P=0,B=0;B<y;B+=1)P+=x[B]||0;return{offset:y,colSpan:N,sticky:P}},[u.length,y,x]),E=l(["body","wrapper"],"tbody"),R=l(["body","row"],"tr"),j=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,_=N.rowKey;return i.createElement(oee,{key:_,rowKey:_,rowKeys:b,record:B,index:P,renderIndex:k,rowComponent:R,cellComponent:j,scopeCellComponent:I,indent:L,expandedRowInfo:w})}):O=i.createElement($N,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:R,cellComponent:j,colSpan:u.length,isEmpty:!0},g);var M=ap(u);return i.createElement(hN.Provider,{value:$.current},i.createElement(E,{className:"".concat(a,"-tbody")},n&&i.createElement(lee,{prefixCls:a,columnsKey:M,onColumnResize:c,columns:u}),O))}const cee=du(see);var uee=["expandable"],Md="RC_TABLE_INTERNAL_COL_DEFINE";function dee(e){var t=e.expandable,n=Lt(e,uee),r;return"expandable"in e?r=ce(ce({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var fee=["columnType"];function ON(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,a=ca($a,["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,y=void 0;if(g&&(p=g[Md],l==="auto"&&(y=g.minWidth)),v||y||p||d){var x=p||{};x.columnType;var S=Lt(x,fee);c.unshift(i.createElement("col",Ce({key:f,style:{width:v,minWidth:y}},S))),d=!0}}return c.length>0?i.createElement("colgroup",null,c):null}var mee=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function vee(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 gee=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,y=e.stickyBottomOffset,x=e.stickyClassName,S=e.scrollX,b=e.tableLayout,$=b===void 0?"fixed":b,w=e.onScroll,E=e.children,R=Lt(e,mee),j=ca($a,["prefixCls","scrollbarSize","isSticky","getComponent"]),I=j.prefixCls,O=j.scrollbarSize,M=j.isSticky,N=j.getComponent,P=N(["header","table"],"table"),B=M&&!g?0:O,L=i.useRef(null),k=i.useCallback(function(V){_d(t,V),_d(L,V)},[]);i.useEffect(function(){function V(q){var K=q,Z=K.currentTarget,Q=K.deltaX;Q&&(w({currentTarget:Z,scrollLeft:Z.scrollLeft+Q}),q.preventDefault())}var G=L.current;return G==null||G.addEventListener("wheel",V,{passive:!1}),function(){G==null||G.removeEventListener("wheel",V)}},[]);var _=l[l.length-1],H={fixed:_?_.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(I,"-cell-scrollbar")}}},z=i.useMemo(function(){return B?[].concat(Me(a),[H]):a},[B,a]),D=i.useMemo(function(){return B?[].concat(Me(l),[H]):l},[B,l]),F=i.useMemo(function(){var V=f.right,G=f.left;return ce(ce({},f),{},{left:v==="rtl"?[].concat(Me(G.map(function(q){return q+B})),[0]):G,right:v==="rtl"?V:[].concat(Me(V.map(function(q){return q+B})),[0]),isSticky:M})},[B,f,M]),W=vee(c,d),U=i.useMemo(function(){var V=!W||!W.length||W.every(function(G){return!G});return r||V},[r,W]);return i.createElement("div",{style:ce({overflow:"hidden"},M?{top:p,bottom:y}:{}),ref:k,className:de(n,ne({},x,!!x))},i.createElement(P,{style:{tableLayout:$,minWidth:"100%",width:S}},U?u:i.createElement(ON,{colWidths:[].concat(Me(W),[B]),columCount:d+1,columns:D}),E(ce(ce({},R),{},{stickyOffsets:F,columns:z,flattenColumns:D}))))});const dO=i.memo(gee);var pee=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=ca($a,["prefixCls","direction"]),v=f.prefixCls,g=f.direction,p;u&&(p=u(n.map(function(x){return x.column}),d));var y=ap(n.map(function(x){return x.column}));return i.createElement(l,p,n.map(function(x,S){var b=x.column,$=zC(x.colStart,x.colEnd,a,r,g),w;return b&&b.onHeaderCell&&(w=x.column.onHeaderCell(b)),i.createElement(fu,Ce({},x,{scope:b.title?x.colSpan>1?"colgroup":"col":null,ellipsis:b.ellipsis,align:b.align,component:c,prefixCls:v,key:y[S]},$,{additionalProps:w,rowType:"header"}))}))};function hee(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},y=1,x=g.children;return x&&x.length>0&&(y=n(x,f,d+1).reduce(function(S,b){return S+b},0),p.hasSubColumns=!0),"colSpan"in g&&(y=g.colSpan),"rowSpan"in g&&(p.rowSpan=g.rowSpan),p.colSpan=y,p.colEnd=p.colStart+y-1,t[d].push(p),f+=y,y});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 bee=function(t){var n=t.stickyOffsets,r=t.columns,a=t.flattenColumns,l=t.onHeaderRow,c=ca($a,["prefixCls","getComponent"]),u=c.prefixCls,d=c.getComponent,f=i.useMemo(function(){return hee(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(y,x){var S=i.createElement(pee,{key:x,flattenColumns:a,cells:y,stickyOffsets:n,rowComponent:g,cellComponent:p,onHeaderRow:l,index:x});return S}))};const fO=du(bee);function mO(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 yee(e,t,n){return i.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(p){var y=mO(t,p.width);y?r+=y: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 y=ce({},p),x=mO(t,y.width);if(x)y.width=x;else{var S=Math.floor(d);y.width=u===1?c:S,c-=S,u-=1}return f+=y.width,y});if(f<l){var g=l/f;c=l,v.forEach(function(p,y){var x=Math.floor(p.width*g);p.width=y===v.length-1?c:x,c-=x})}return[v,Math.max(f,l)]}return[e,t]},[e,t,n])}var Cee=["children"],xee=["fixed"];function DC(e){return Jr(e).filter(function(t){return i.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,a=r.children,l=Lt(r,Cee),c=ce({key:n},l);return a&&(c.children=DC(a)),c})}function jN(e){return e.filter(function(t){return t&&Ot(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?ce(ce({},t),{},{children:jN(n)}):t})}function Xy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&Ot(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(Me(n),Me(Xy(d,u).map(function(f){var v;return ce(ce({},f),{},{fixed:(v=f.fixed)!==null&&v!==void 0?v:c})}))):[].concat(Me(n),[ce(ce({key:u},r),{},{fixed:c})])},[])}function See(e){return e.map(function(t){var n=t.fixed,r=Lt(t,xee),a=n;return n==="left"?a="right":n==="right"&&(a="left"),ce({fixed:a},r)})}function $ee(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,y=e.expandedRowOffset,x=y===void 0?0:y,S=e.direction,b=e.expandRowByClick,$=e.columnWidth,w=e.fixed,E=e.scrollWidth,R=e.clientWidth,j=i.useMemo(function(){var _=r||DC(a)||[];return jN(_.slice())},[r,a]),I=i.useMemo(function(){if(l){var _=j.slice();if(!_.includes(dl)){var H=p||0,z=H===0&&w==="right"?j.length:H;z>=0&&_.splice(z,0,dl)}var D=_.indexOf(dl);_=_.filter(function(V,G){return V!==dl||G===D});var F=j[D],W;w?W=w:W=F?F.fixed:null;var U=ne(ne(ne(ne(ne(ne({},Md,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",u),"fixed",W),"className","".concat(n,"-row-expand-icon-cell")),"width",$),"render",function(G,q,K){var Z=d(q,K),Q=c.has(Z),te=g?g(q):!0,X=v({prefixCls:n,expanded:Q,expandable:te,record:q,onExpand:f});return b?i.createElement("span",{onClick:function(ae){return ae.stopPropagation()}},X):X});return _.map(function(V,G){var q=V===dl?U:V;return G<x?ce(ce({},q),{},{fixed:q.fixed||"left"}):q})}return j.filter(function(V){return V!==dl})},[l,j,d,c,v,S,x]),O=i.useMemo(function(){var _=I;return t&&(_=t(_)),_.length||(_=[{render:function(){return null}}]),_},[t,I,S]),M=i.useMemo(function(){return S==="rtl"?See(Xy(O)):Xy(O)},[O,S,E]),N=i.useMemo(function(){for(var _=-1,H=M.length-1;H>=0;H-=1){var z=M[H].fixed;if(z==="left"||z===!0){_=H;break}}if(_>=0)for(var D=0;D<=_;D+=1){var F=M[D].fixed;if(F!=="left"&&F!==!0)return!0}var W=M.findIndex(function(G){var q=G.fixed;return q==="right"});if(W>=0)for(var U=W;U<M.length;U+=1){var V=M[U].fixed;if(V!=="right")return!0}return!1},[M]),P=yee(M,E,R),B=me(P,2),L=B[0],k=B[1];return[O,L,k,N]}function wee(e,t,n){var r=dee(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||nee,y=g||"children",x=i.useMemo(function(){return d?"row":e.expandable&&e.internalHooks===Of&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(j){return j&&Ot(j)==="object"&&j[y]})?"nest":!1},[!!d,t]),S=i.useState(function(){return c||(u?ree(t,n,y):[])}),b=me(S,2),$=b[0],w=b[1],E=i.useMemo(function(){return new Set(l||$||[])},[l,$]),R=i.useCallback(function(j){var I=n(j,t.indexOf(j)),O,M=E.has(I);M?(E.delete(I),O=Me(E)):O=[].concat(Me(E),[I]),w(O),f&&f(!M,j),v&&v(O)},[n,E,t,f,v]);return[r,x,E,p,y,R]}function Eee(e,t,n){var r=e.map(function(a,l){return zC(l,l,e,t,n)});return Ss(function(){return r},[r],function(a,l){return!No(a,l)})}function Oee(e){var t=i.useRef(e),n=i.useState({}),r=me(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 jee(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 Ree(){var e=i.useState(-1),t=me(e,2),n=t[0],r=t[1],a=i.useState(-1),l=me(a,2),c=l[0],u=l[1],d=i.useCallback(function(f,v){r(f),u(v)},[]);return[n,c,d]}var vO=sa()?window:null;function Iee(e,t){var n=Ot(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 vO}:f,g=v()||vO,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 Nee(e,t,n){var r=i.useMemo(function(){var a=t.length,l=function(f,v,g){for(var p=[],y=0,x=f;x!==v;x+=g)p.push(y),t[x].fixed&&(y+=e[x]||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 gO(e){var t=e.className,n=e.children;return i.createElement("div",{className:t},n)}function pO(e){var t=of(e),n=t.getBoundingClientRect(),r=document.documentElement;return{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}var Mee=function(t,n){var r,a,l=t.scrollBodyRef,c=t.onScroll,u=t.offsetScroll,d=t.container,f=t.direction,v=ca($a,"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,y=g&&p*(p/g),x=i.useRef(),S=Oee({scrollLeft:0,isHiddenScrollBar:!0}),b=me(S,2),$=b[0],w=b[1],E=i.useRef({delta:0,x:0}),R=i.useState(!1),j=me(R,2),I=j[0],O=j[1],M=i.useRef(null);i.useEffect(function(){return function(){Zt.cancel(M.current)}},[]);var N=function(){O(!1)},P=function(H){H.persist(),E.current.delta=H.pageX-$.scrollLeft,E.current.x=0,O(!0),H.preventDefault()},B=function(H){var z,D=H||((z=window)===null||z===void 0?void 0:z.event),F=D.buttons;if(!I||F===0){I&&O(!1);return}var W=E.current.x+H.pageX-E.current.x-E.current.delta,U=f==="rtl";W=Math.max(U?y-p:0,Math.min(U?0:p-y,W));var V=!U||Math.abs(W)+Math.abs(y)<p;V&&(c({scrollLeft:W/p*(g+2)}),E.current.x=H.pageX)},L=function(){Zt.cancel(M.current),M.current=Zt(function(){if(l.current){var H=pO(l.current).top,z=H+l.current.offsetHeight,D=d===window?document.documentElement.scrollTop+window.innerHeight:pO(d).top+d.clientHeight;w(function(F){return ce(ce({},F),{},{isHiddenScrollBar:z-Uw()<=D||H>=D-u})})}})},k=function(H){w(function(z){return ce(ce({},z),{},{scrollLeft:g?H/g*p:0})})};return i.useImperativeHandle(n,function(){return{setScrollLeft:k,checkScrollBarVisible:L}}),i.useEffect(function(){var _=Y4(document.body,"mouseup",N,!1),H=Y4(document.body,"mousemove",B,!1);return L(),function(){_.remove(),H.remove()}},[y,I]),i.useEffect(function(){if(l.current){for(var _=[],H=of(l.current);H;)_.push(H),H=H.parentElement;return _.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(){_.forEach(function(z){return z.removeEventListener("scroll",L)}),window.removeEventListener("resize",L),window.removeEventListener("scroll",L),d.removeEventListener("scroll",L)}}},[d]),i.useEffect(function(){$.isHiddenScrollBar||w(function(_){var H=l.current;return H?ce(ce({},_),{},{scrollLeft:H.scrollLeft/H.scrollWidth*H.clientWidth}):_})},[$.isHiddenScrollBar]),g<=p||!y||$.isHiddenScrollBar?null:i.createElement("div",{style:{height:Uw(),width:p,bottom:u},className:"".concat(v,"-sticky-scroll")},i.createElement("div",{onMouseDown:P,ref:x,className:de("".concat(v,"-sticky-scroll-bar"),ne({},"".concat(v,"-sticky-scroll-bar-active"),I)),style:{width:"".concat(y,"px"),transform:"translate3d(".concat($.scrollLeft,"px, 0, 0)")}}))};const Tee=i.forwardRef(Mee);var RN="rc-table",Pee=[],zee={};function Dee(){return"No Data"}function _ee(e,t){var n=ce({rowKey:"key",prefixCls:RN,emptyText:Dee},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,y=n.footer,x=n.summary,S=n.caption,b=n.id,$=n.showHeader,w=n.components,E=n.emptyText,R=n.onRow,j=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,_=n.rowHoverable,H=_===void 0?!0:_,z=u||Pee,D=!!z.length,F=M===Of,W=i.useCallback(function(pt,It){return Ea(w,pt)||It},[w]),U=i.useMemo(function(){return typeof d=="function"?d:function(pt){var It=pt&&pt[d];return It}},[d]),V=W(["body"]),G=Ree(),q=me(G,3),K=q[0],Z=q[1],Q=q[2],te=wee(n,z,U),X=me(te,6),oe=X[0],ae=X[1],re=X[2],Y=X[3],ee=X[4],ie=X[5],ue=f==null?void 0:f.x,se=i.useState(0),pe=me(se,2),fe=pe[0],he=pe[1],Se=$ee(ce(ce(ce({},n),oe),{},{expandable:!!oe.expandedRowRender,columnTitle:oe.columnTitle,expandedKeys:re,getRowKey:U,onTriggerExpand:ie,expandIcon:Y,expandIconColumnIndex:oe.expandIconColumnIndex,direction:g,scrollWidth:F&&B&&typeof ue=="number"?ue:null,clientWidth:fe}),F?N:null),be=me(Se,4),$e=be[0],xe=be[1],ye=be[2],Ne=be[3],_e=ye??ue,Qe=i.useMemo(function(){return{columns:$e,flattenColumns:xe}},[$e,xe]),Ke=i.useRef(),Fe=i.useRef(),Xe=i.useRef(),Pe=i.useRef();i.useImperativeHandle(t,function(){return{nativeElement:Ke.current,scrollTo:function(It){var vn;if(Xe.current instanceof HTMLElement){var zn=It.index,tr=It.top,qn=It.key;if(VJ(tr)){var qr;(qr=Xe.current)===null||qr===void 0||qr.scrollTo({top:tr})}else{var na,zr=qn??U(z[zn]);(na=Xe.current.querySelector('[data-row-key="'.concat(zr,'"]')))===null||na===void 0||na.scrollIntoView()}}else(vn=Xe.current)!==null&&vn!==void 0&&vn.scrollTo&&Xe.current.scrollTo(It)}}});var je=i.useRef(),Ae=i.useState(!1),Re=me(Ae,2),ze=Re[0],we=Re[1],Oe=i.useState(!1),Te=me(Oe,2),Le=Te[0],tt=Te[1],Ct=i.useState(new Map),We=me(Ct,2),nt=We[0],dt=We[1],at=ap(xe),bt=at.map(function(pt){return nt.get(pt)}),zt=i.useMemo(function(){return bt},[bt.join("_")]),jt=Nee(zt,xe,g),ct=f&&Gy(f.y),wt=f&&Gy(_e)||!!oe.fixed,xt=wt&&xe.some(function(pt){var It=pt.fixed;return It}),et=i.useRef(),Ve=Iee(k,r),qe=Ve.isSticky,mt=Ve.offsetHeader,Tt=Ve.offsetSummary,Nt=Ve.offsetScroll,Wt=Ve.stickyClassName,ft=Ve.container,lt=i.useMemo(function(){return x==null?void 0:x(z)},[x,z]),At=(ct||qe)&&i.isValidElement(lt)&<.type===op&<.props.fixed,Gt,on,Jt;ct&&(on={overflowY:D?"scroll":"auto",maxHeight:f.y}),wt&&(Gt={overflowX:"auto"},ct||(on={overflowY:"hidden"}),Jt={width:_e===!0?"auto":_e,minWidth:"100%"});var pn=i.useCallback(function(pt,It){dt(function(vn){if(vn.get(pt)!==It){var zn=new Map(vn);return zn.set(pt,It),zn}return vn})},[]),Xt=jee(),fn=me(Xt,2),st=fn[0],St=fn[1];function yt(pt,It){It&&(typeof It=="function"?It(pt):It.scrollLeft!==pt&&(It.scrollLeft=pt,It.scrollLeft!==pt&&setTimeout(function(){It.scrollLeft=pt},0)))}var Ye=Qt(function(pt){var It=pt.currentTarget,vn=pt.scrollLeft,zn=g==="rtl",tr=typeof vn=="number"?vn:It.scrollLeft,qn=It||zee;if(!St()||St()===qn){var qr;st(qn),yt(tr,Fe.current),yt(tr,Xe.current),yt(tr,je.current),yt(tr,(qr=et.current)===null||qr===void 0?void 0:qr.setScrollLeft)}var na=It||Fe.current;if(na){var zr=F&&B&&typeof _e=="number"?_e:na.scrollWidth,da=na.clientWidth;if(zr===da){we(!1),tt(!1);return}zn?(we(-tr<zr-da),tt(-tr>0)):(we(tr>0),tt(tr<zr-da))}}),Ze=Qt(function(pt){Ye(pt),O==null||O(pt)}),ut=function(){if(wt&&Xe.current){var It;Ye({currentTarget:of(Xe.current),scrollLeft:(It=Xe.current)===null||It===void 0?void 0:It.scrollLeft})}else we(!1),tt(!1)},Dt=function(It){var vn,zn=It.width;(vn=et.current)===null||vn===void 0||vn.checkScrollBarVisible();var tr=Ke.current?Ke.current.offsetWidth:zn;F&&L&&Ke.current&&(tr=L(Ke.current,tr)||tr),tr!==fe&&(ut(),he(tr))},Ut=i.useRef(!1);i.useEffect(function(){Ut.current&&ut()},[wt,u,$e.length]),i.useEffect(function(){Ut.current=!0},[]);var gt=i.useState(0),Mt=me(gt,2),Vt=Mt[0],wn=Mt[1],An=i.useState(!0),Pn=me(An,2),Un=Pn[0],Rn=Pn[1];an(function(){(!B||!F)&&(Xe.current instanceof Element?wn(py(Xe.current).width):wn(py(Pe.current).width)),Rn(jy("position","sticky"))},[]),i.useEffect(function(){F&&P&&(P.body.current=Xe.current)});var kn=i.useCallback(function(pt){return i.createElement(i.Fragment,null,i.createElement(fO,pt),At==="top"&&i.createElement(ev,pt,lt))},[At,lt]),wr=i.useCallback(function(pt){return i.createElement(ev,pt,lt)},[lt]),Pr=W(["table"],"table"),Cr=i.useMemo(function(){return v||(xt?_e==="max-content"?"auto":"fixed":ct||qe||xe.some(function(pt){var It=pt.ellipsis;return It})?"fixed":"auto")},[ct,xt,xe,v,qe]),Sn,Bt={colWidths:zt,columCount:xe.length,stickyOffsets:jt,onHeaderRow:j,fixHeader:ct,scroll:f},kt=i.useMemo(function(){return D?null:typeof E=="function"?E():E},[D,E]),ln=i.createElement(cee,{data:z,measureColumnWidth:ct||wt||qe}),Pt=i.createElement(ON,{colWidths:xe.map(function(pt){var It=pt.width;return It}),columns:xe}),_t=S!=null?i.createElement("caption",{className:"".concat(r,"-caption")},S):void 0,gn=Nr(n,{data:!0}),In=Nr(n,{aria:!0});if(ct||qe){var Jn;typeof V=="function"?(Jn=V(z,{scrollbarSize:Vt,ref:Xe,onScroll:Ye}),Bt.colWidths=xe.map(function(pt,It){var vn=pt.width,zn=It===xe.length-1?vn-Vt:vn;return typeof zn=="number"&&!Number.isNaN(zn)?zn:0})):Jn=i.createElement("div",{style:ce(ce({},Gt),on),onScroll:Ze,ref:Xe,className:de("".concat(r,"-body"))},i.createElement(Pr,Ce({style:ce(ce({},Jt),{},{tableLayout:Cr})},In),_t,Pt,ln,!At&<&&i.createElement(ev,{stickyOffsets:jt,flattenColumns:xe},lt)));var Er=ce(ce(ce({noData:!z.length},Bt),Qe),{},{direction:g,stickyClassName:Wt,scrollX:_e,tableLayout:Cr,onScroll:Ye});Sn=i.createElement(i.Fragment,null,$!==!1&&i.createElement(dO,Ce({},Er,{stickyTopOffset:mt,className:"".concat(r,"-header"),ref:Fe,colGroup:Pt}),kn),Jn,At&&At!=="top"&&i.createElement(dO,Ce({},Er,{stickyBottomOffset:Tt,className:"".concat(r,"-summary"),ref:je,colGroup:Pt}),wr),qe&&Xe.current&&Xe.current instanceof Element&&i.createElement(Tee,{ref:et,offsetScroll:Nt,scrollBodyRef:Xe,onScroll:Ye,container:ft,direction:g}))}else Sn=i.createElement("div",{style:ce(ce({},Gt),on),className:de("".concat(r,"-content")),onScroll:Ye,ref:Xe},i.createElement(Pr,Ce({style:ce(ce({},Jt),{},{tableLayout:Cr})},In),_t,Pt,$!==!1&&i.createElement(fO,Ce({},Bt,Qe)),ln,lt&&i.createElement(ev,{stickyOffsets:jt,flattenColumns:xe},lt)));var er=i.createElement("div",Ce({className:de(r,a,ne(ne(ne(ne(ne(ne(ne(ne(ne(ne({},"".concat(r,"-rtl"),g==="rtl"),"".concat(r,"-ping-left"),ze),"".concat(r,"-ping-right"),Le),"".concat(r,"-layout-fixed"),v==="fixed"),"".concat(r,"-fixed-header"),ct),"".concat(r,"-fixed-column"),xt),"".concat(r,"-fixed-column-gapped"),xt&&Ne),"".concat(r,"-scroll-horizontal"),wt),"".concat(r,"-has-fix-left"),xe[0]&&xe[0].fixed),"".concat(r,"-has-fix-right"),xe[xe.length-1]&&xe[xe.length-1].fixed==="right")),style:c,id:b,ref:Ke},gn),p&&i.createElement(gO,{className:"".concat(r,"-title")},p(z)),i.createElement("div",{ref:Pe,className:"".concat(r,"-container")},Sn),y&&i.createElement(gO,{className:"".concat(r,"-footer")},y(z)));wt&&(er=i.createElement(ha,{onResize:Dt},er));var jr=Eee(xe,jt,g),dn=i.useMemo(function(){return{scrollX:_e,prefixCls:r,getComponent:W,scrollbarSize:Vt,direction:g,fixedInfoList:jr,isSticky:qe,supportSticky:Un,componentWidth:fe,fixHeader:ct,fixColumn:xt,horizonScroll:wt,tableLayout:Cr,rowClassName:l,expandedRowClassName:oe.expandedRowClassName,expandIcon:Y,expandableType:ae,expandRowByClick:oe.expandRowByClick,expandedRowRender:oe.expandedRowRender,expandedRowOffset:oe.expandedRowOffset,onTriggerExpand:ie,expandIconColumnIndex:oe.expandIconColumnIndex,indentSize:oe.indentSize,allColumnsFixedLeft:xe.every(function(pt){return pt.fixed==="left"}),emptyNode:kt,columns:$e,flattenColumns:xe,onColumnResize:pn,colWidths:zt,hoverStartRow:K,hoverEndRow:Z,onHover:Q,rowExpandable:oe.rowExpandable,onRow:R,getRowKey:U,expandedKeys:re,childrenColumnName:ee,rowHoverable:H,measureRowRender:I}},[_e,r,W,Vt,g,jr,qe,Un,fe,ct,xt,wt,Cr,l,oe.expandedRowClassName,Y,ae,oe.expandRowByClick,oe.expandedRowRender,oe.expandedRowOffset,ie,oe.expandIconColumnIndex,oe.indentSize,kt,$e,xe,pn,zt,K,Z,Q,oe.rowExpandable,R,U,re,ee,H,I]);return i.createElement($a.Provider,{value:dn},er)}var Aee=i.forwardRef(_ee);function IN(e){return pN(Aee,e)}var mu=IN();mu.EXPAND_COLUMN=dl;mu.INTERNAL_HOOKS=Of;mu.Column=eee;mu.ColumnGroup=tee;mu.Summary=yN;var _C=TC(null),NN=TC(null);function Bee(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function kee(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,y=n.render,x=n.dataIndex,S=n.className,b=n.width,$=ca(NN,["columnsOffset"]),w=$.columnsOffset,E=EN(t,n,r,a,l),R=E.key,j=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,_=Bee(k,P,w),H=P>1?b-_:0,z=ce(ce(ce({},M),f),{},{flex:"0 0 ".concat(_,"px"),width:"".concat(_,"px"),marginRight:H,pointerEvents:"auto"}),D=i.useMemo(function(){return g?L<=1:P===0||L===0||L>1},[L,P,g]);D?z.visibility="hidden":g&&(z.height=p==null?void 0:p(L));var F=D?function(){return null}:y,W={};return(L===0||P===0)&&(W.rowSpan=1,W.colSpan=1),i.createElement(fu,Ce({className:de(S,v),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:c,prefixCls:t.prefixCls,key:R,record:d,index:l,renderIndex:u,dataIndex:x,render:F,shouldCellUpdate:n.shouldCellUpdate},j,{appendNode:I,additionalProps:ce(ce({},O),{},{style:z},W)}))}var Lee=["data","index","className","rowKey","style","extra","getHeight"],Hee=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,Lee),v=n.record,g=n.indent,p=n.index,y=ca($a,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),x=y.scrollX,S=y.flattenColumns,b=y.prefixCls,$=y.fixColumn,w=y.componentWidth,E=ca(_C,["getComponent"]),R=E.getComponent,j=SN(v,l,r,g),I=R(["body","row"],"div"),O=R(["body","cell"],"div"),M=j.rowSupportExpand,N=j.expanded,P=j.rowProps,B=j.expandedRowRender,L=j.expandedRowClassName,k;if(M&&N){var _=B(v,r,g+1,N),H=wN(L,v,r,g),z={};$&&(z={style:ne({},"--virtual-width","".concat(w,"px"))});var D="".concat(b,"-expanded-row-cell");k=i.createElement(I,{className:de("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(g+1),H)},i.createElement(fu,{component:O,prefixCls:b,className:de(D,ne({},"".concat(D,"-fixed"),$)),additionalProps:z},_))}var F=ce(ce({},c),{},{width:x});u&&(F.position="absolute",F.pointerEvents="none");var W=i.createElement(I,Ce({},P,f,{"data-row-key":l,ref:M?null:t,className:de(a,"".concat(b,"-row"),P==null?void 0:P.className,ne({},"".concat(b,"-row-extra"),u)),style:ce(ce({},F),P==null?void 0:P.style)}),S.map(function(U,V){return i.createElement(kee,{key:V,component:O,rowInfo:j,column:U,colIndex:V,indent:g,index:r,renderIndex:p,record:v,inverse:u,getHeight:d})}));return M?i.createElement("div",{ref:t},W,k):W}),hO=du(Hee),Fee=i.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=ca($a,["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,y=ca(_C),x=y.sticky,S=y.scrollY,b=y.listItemHeight,$=y.getComponent,w=y.onScroll,E=i.useRef(),R=xN(n,v,d,u),j=i.useMemo(function(){var k=0;return l.map(function(_){var H=_.width,z=_.minWidth,D=_.key,F=Math.max(H||0,z||0);return k+=F,[D,F,k]})},[l]),I=i.useMemo(function(){return j.map(function(k){return k[2]})},[j]);i.useEffect(function(){j.forEach(function(k){var _=me(k,2),H=_[0],z=_[1];c(H,z)})},[j]),i.useImperativeHandle(t,function(){var k,_={scrollTo:function(z){var D;(D=E.current)===null||D===void 0||D.scrollTo(z)},nativeElement:(k=E.current)===null||k===void 0?void 0:k.nativeElement};return Object.defineProperty(_,"scrollLeft",{get:function(){var z;return((z=E.current)===null||z===void 0?void 0:z.getScrollInfo().x)||0},set:function(z){var D;(D=E.current)===null||D===void 0||D.scrollTo({left:z})}}),Object.defineProperty(_,"scrollTop",{get:function(){var z;return((z=E.current)===null||z===void 0?void 0:z.getScrollInfo().y)||0},set:function(z){var D;(D=E.current)===null||D===void 0||D.scrollTo({top:z})}}),_});var O=function(_,H){var z,D=(z=R[H])===null||z===void 0?void 0:z.record,F=_.onCell;if(F){var W,U=F(D,H);return(W=U==null?void 0:U.rowSpan)!==null&&W!==void 0?W:1}return 1},M=function(_){var H=_.start,z=_.end,D=_.getSize,F=_.offsetY;if(z<0)return null;for(var W=l.filter(function(re){return O(re,H)===0}),U=H,V=function(Y){if(W=W.filter(function(ee){return O(ee,Y)===0}),!W.length)return U=Y,1},G=H;G>=0&&!V(G);G-=1);for(var q=l.filter(function(re){return O(re,z)!==1}),K=z,Z=function(Y){if(q=q.filter(function(ee){return O(ee,Y)!==1}),!q.length)return K=Math.max(Y-1,z),1},Q=z;Q<R.length&&!Z(Q);Q+=1);for(var te=[],X=function(Y){var ee=R[Y];if(!ee)return 1;l.some(function(ie){return O(ie,Y)>1})&&te.push(Y)},oe=U;oe<=K;oe+=1)X(oe);var ae=te.map(function(re){var Y=R[re],ee=u(Y.record,re),ie=function(pe){var fe=re+pe-1,he=u(R[fe].record,fe),Se=D(ee,he);return Se.bottom-Se.top},ue=D(ee);return i.createElement(hO,{key:re,data:Y,rowKey:ee,index:re,style:{top:-F+ue.top},extra:!0,getHeight:ie})});return ae},N=i.useMemo(function(){return{columnsOffset:I}},[I]),P="".concat(f,"-tbody"),B=$(["body","wrapper"]),L={};return x&&(L.position="sticky",L.bottom=0,Ot(x)==="object"&&x.offsetScroll&&(L.bottom=x.offsetScroll)),i.createElement(NN.Provider,{value:N},i.createElement(Dg,{fullHeight:!1,ref:E,prefixCls:"".concat(P,"-virtual"),styles:{horizontalScrollBar:L},className:P,height:S,itemHeight:b||24,data:R,itemKey:function(_){return u(_.record)},component:B,scrollWidth:g,direction:p,onVirtualScroll:function(_){var H,z=_.x;r({currentTarget:(H=E.current)===null||H===void 0?void 0:H.nativeElement,scrollLeft:z})},onScroll:w,extraRender:M},function(k,_,H){var z=u(k.record,_);return i.createElement(hO,{data:k,rowKey:z,index:_,style:H.style})}))}),Vee=du(Fee),Wee=function(t,n){var r=n.ref,a=n.onScroll;return i.createElement(Vee,{ref:r,data:t,onScroll:a})};function Kee(e,t){var n=e.data,r=e.columns,a=e.scroll,l=e.sticky,c=e.prefixCls,u=c===void 0?RN:c,d=e.className,f=e.listItemHeight,v=e.components,g=e.onScroll,p=a||{},y=p.x,x=p.y;typeof y!="number"&&(y=1),typeof x!="number"&&(x=500);var S=Qt(function(w,E){return Ea(v,w)||E}),b=Qt(g),$=i.useMemo(function(){return{sticky:l,scrollY:x,listItemHeight:f,getComponent:S,onScroll:b}},[l,x,f,S,b]);return i.createElement(_C.Provider,{value:$},i.createElement(mu,Ce({},e,{className:de(d,"".concat(u,"-virtual")),scroll:ce(ce({},a),{},{x:y}),components:ce(ce({},v),{},{body:n!=null&&n.length?Wee:void 0}),columns:r,internalHooks:Of,tailor:!0,ref:t})))}var Uee=i.forwardRef(Kee);function MN(e){return pN(Uee,e)}MN();const qee=e=>null,Gee=e=>null;var AC=i.createContext(null),Xee=i.createContext({}),Yee=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:de(c,ne(ne({},"".concat(c,"-start"),a[d]),"".concat(c,"-end"),l[d]))}));return i.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},u)};const Qee=i.memo(Yee);var Zee=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],bO="open",yO="close",Jee="---",Jd=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,y=t.isEnd,x=t.expanded,S=t.selected,b=t.checked,$=t.halfChecked,w=t.loading,E=t.domRef,R=t.active,j=t.data,I=t.onMouseMove,O=t.selectable,M=Lt(t,Zee),N=ge.useContext(AC),P=ge.useContext(Xee),B=ge.useRef(null),L=ge.useState(!1),k=me(L,2),_=k[0],H=k[1],z=!!(N.disabled||t.disabled||(n=P.nodeDisabled)!==null&&n!==void 0&&n.call(P,j)),D=ge.useMemo(function(){return!N.checkable||t.checkable===!1?!1:N.checkable},[N.checkable,t.checkable]),F=function(je){z||N.onNodeSelect(je,Fr(t))},W=function(je){z||!D||t.disableCheckbox||N.onNodeCheck(je,Fr(t),!b)},U=ge.useMemo(function(){return typeof O=="boolean"?O:N.selectable},[O,N.selectable]),V=function(je){N.onNodeClick(je,Fr(t)),U?F(je):W(je)},G=function(je){N.onNodeDoubleClick(je,Fr(t))},q=function(je){N.onNodeMouseEnter(je,Fr(t))},K=function(je){N.onNodeMouseLeave(je,Fr(t))},Z=function(je){N.onNodeContextMenu(je,Fr(t))},Q=ge.useMemo(function(){return!!(N.draggable&&(!N.draggable.nodeDraggable||N.draggable.nodeDraggable(j)))},[N.draggable,j]),te=function(je){je.stopPropagation(),H(!0),N.onNodeDragStart(je,t);try{je.dataTransfer.setData("text/plain","")}catch{}},X=function(je){je.preventDefault(),je.stopPropagation(),N.onNodeDragEnter(je,t)},oe=function(je){je.preventDefault(),je.stopPropagation(),N.onNodeDragOver(je,t)},ae=function(je){je.stopPropagation(),N.onNodeDragLeave(je,t)},re=function(je){je.stopPropagation(),H(!1),N.onNodeDragEnd(je,t)},Y=function(je){je.preventDefault(),je.stopPropagation(),H(!1),N.onNodeDrop(je,t)},ee=function(je){w||N.onNodeExpand(je,Fr(t))},ie=ge.useMemo(function(){var Pe=_a(N.keyEntities,l)||{},je=Pe.children;return!!(je||[]).length},[N.keyEntities,l]),ue=ge.useMemo(function(){return g===!1?!1:g||!N.loadData&&!ie||N.loadData&&t.loaded&&!ie},[g,N.loadData,ie,t.loaded]);ge.useEffect(function(){w||typeof N.loadData=="function"&&x&&!ue&&!t.loaded&&N.onNodeLoad(Fr(t))},[w,N.loadData,N.onNodeLoad,x,ue,t]);var se=ge.useMemo(function(){var Pe;return(Pe=N.draggable)!==null&&Pe!==void 0&&Pe.icon?ge.createElement("span",{className:"".concat(N.prefixCls,"-draggable-icon")},N.draggable.icon):null},[N.draggable]),pe=function(je){var Ae=t.switcherIcon||N.switcherIcon;return typeof Ae=="function"?Ae(ce(ce({},t),{},{isLeaf:je})):Ae},fe=function(){if(ue){var je=pe(!0);return je!==!1?ge.createElement("span",{className:de("".concat(N.prefixCls,"-switcher"),"".concat(N.prefixCls,"-switcher-noop"))},je):null}var Ae=pe(!1);return Ae!==!1?ge.createElement("span",{onClick:ee,className:de("".concat(N.prefixCls,"-switcher"),"".concat(N.prefixCls,"-switcher_").concat(x?bO:yO))},Ae):null},he=ge.useMemo(function(){if(!D)return null;var Pe=typeof D!="boolean"?D:null;return ge.createElement("span",{className:de("".concat(N.prefixCls,"-checkbox"),ne(ne(ne({},"".concat(N.prefixCls,"-checkbox-checked"),b),"".concat(N.prefixCls,"-checkbox-indeterminate"),!b&&$),"".concat(N.prefixCls,"-checkbox-disabled"),z||t.disableCheckbox)),onClick:W,role:"checkbox","aria-checked":$?"mixed":b,"aria-disabled":z||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},Pe)},[D,b,$,z,t.disableCheckbox,t.title]),Se=ge.useMemo(function(){return ue?null:x?bO:yO},[ue,x]),be=ge.useMemo(function(){return ge.createElement("span",{className:de("".concat(N.prefixCls,"-iconEle"),"".concat(N.prefixCls,"-icon__").concat(Se||"docu"),ne({},"".concat(N.prefixCls,"-icon_loading"),w))})},[N.prefixCls,Se,w]),$e=ge.useMemo(function(){var Pe=!!N.draggable,je=!t.disabled&&Pe&&N.dragOverNodeKey===l;return je?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]),xe=ge.useMemo(function(){var Pe=t.title,je=Pe===void 0?Jee:Pe,Ae="".concat(N.prefixCls,"-node-content-wrapper"),Re;if(N.showIcon){var ze=t.icon||N.icon;Re=ze?ge.createElement("span",{className:de("".concat(N.prefixCls,"-iconEle"),"".concat(N.prefixCls,"-icon__customize"))},typeof ze=="function"?ze(t):ze):be}else N.loadData&&w&&(Re=be);var we;return typeof je=="function"?we=je(j):N.titleRender?we=N.titleRender(j):we=je,ge.createElement("span",{ref:B,title:typeof je=="string"?je:"",className:de(Ae,"".concat(Ae,"-").concat(Se||"normal"),ne({},"".concat(N.prefixCls,"-node-selected"),!z&&(S||_))),onMouseEnter:q,onMouseLeave:K,onContextMenu:Z,onClick:V,onDoubleClick:G},Re,ge.createElement("span",{className:"".concat(N.prefixCls,"-title")},we),$e)},[N.prefixCls,N.showIcon,t,N.icon,be,N.titleRender,j,Se,q,K,Z,V,G]),ye=Nr(M,{aria:!0,data:!0}),Ne=_a(N.keyEntities,l)||{},_e=Ne.level,Qe=y[y.length-1],Ke=!z&&Q,Fe=N.draggingNodeKey===l,Xe=O!==void 0?{"aria-selected":!!O}:void 0;return ge.createElement("div",Ce({ref:E,role:"treeitem","aria-expanded":g?void 0:x,className:de(c,"".concat(N.prefixCls,"-treenode"),(a={},ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(a,"".concat(N.prefixCls,"-treenode-disabled"),z),"".concat(N.prefixCls,"-treenode-switcher-").concat(x?"open":"close"),!g),"".concat(N.prefixCls,"-treenode-checkbox-checked"),b),"".concat(N.prefixCls,"-treenode-checkbox-indeterminate"),$),"".concat(N.prefixCls,"-treenode-selected"),S),"".concat(N.prefixCls,"-treenode-loading"),w),"".concat(N.prefixCls,"-treenode-active"),R),"".concat(N.prefixCls,"-treenode-leaf-last"),Qe),"".concat(N.prefixCls,"-treenode-draggable"),Q),"dragging",Fe),ne(ne(ne(ne(ne(ne(ne(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,Fr(t))),"".concat(N.prefixCls,"-treenode-leaf"),ue))),style:u,draggable:Ke,onDragStart:Ke?te:void 0,onDragEnter:Q?X:void 0,onDragOver:Q?oe:void 0,onDragLeave:Q?ae:void 0,onDrop:Q?Y:void 0,onDragEnd:Q?re:void 0,onMouseMove:I},Xe,ye),ge.createElement(Qee,{prefixCls:N.prefixCls,level:_e,isStart:p,isEnd:y}),se,fe(),he,xe)};Jd.isTreeNode=1;function qo(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function yi(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function BC(e){return e.split("-")}function ete(e,t){var n=[],r=_a(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 tte(e){if(e.parent){var t=BC(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function nte(e){var t=BC(e.pos);return Number(t[t.length-1])===0}function CO(e,t,n,r,a,l,c,u,d,f){var v,g=e.clientX,p=e.clientY,y=e.target.getBoundingClientRect(),x=y.top,S=y.height,b=(f==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-g),$=(b-12)/r,w=d.filter(function(z){var D;return(D=u[z])===null||D===void 0||(D=D.children)===null||D===void 0?void 0:D.length}),E=_a(u,n.eventKey);if(p<x+S/2){var R=c.findIndex(function(z){return z.key===E.key}),j=R<=0?0:R-1,I=c[j].key;E=_a(u,I)}var O=E.key,M=E,N=E.key,P=0,B=0;if(!w.includes(O))for(var L=0;L<$&&tte(E);L+=1)E=E.parent,B+=1;var k=t.data,_=E.node,H=!0;return nte(E)&&E.level===0&&p<x+S/2&&l({dragNode:k,dropNode:_,dropPosition:-1})&&E.key===n.eventKey?P=-1:(M.children||[]).length&&w.includes(N)?l({dragNode:k,dropNode:_,dropPosition:0})?P=0:H=!1:B===0?$>-1.5?l({dragNode:k,dropNode:_,dropPosition:1})?P=1:H=!1:l({dragNode:k,dropNode:_,dropPosition:0})?P=0:l({dragNode:k,dropNode:_,dropPosition:1})?P=1:H=!1:l({dragNode:k,dropNode:_,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 xO(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function lb(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Ot(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Zn(!1,"`checkedKeys` is not an array or an object"),null;return t}function Yy(e,t){var n=new Set;function r(a){if(!n.has(a)){var l=_a(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)}),Me(n)}const ul={},Qy="SELECT_ALL",Zy="SELECT_INVERT",Jy="SELECT_NONE",SO=[],TN=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&TN(e,r[e],n)}),n),rte=(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:y,type:x,selections:S,fixed:b,renderCell:$,hideSelectAll:w,checkStrictly:E=!0}=t||{},{prefixCls:R,data:j,pageData:I,getRecordByKey:O,getRowKey:M,expandType:N,childrenColumnName:P,locale:B,getPopupContainer:L}=e,k=ti(),[_,H]=LD(Y=>Y),[z,D]=Cn(r||a||SO,{value:r}),F=i.useRef(new Map),W=i.useCallback(Y=>{if(n){const ee=new Map;Y.forEach(ie=>{let ue=O(ie);!ue&&F.current.has(ie)&&(ue=F.current.get(ie)),ee.set(ie,ue)}),F.current=ee}},[O,n]);i.useEffect(()=>{W(z)},[z]);const U=i.useMemo(()=>TN(P,I),[P,I]),{keyEntities:V}=i.useMemo(()=>{if(E)return{keyEntities:null};let Y=j;if(n){const ee=new Set(U.map((ue,se)=>M(ue,se))),ie=Array.from(F.current).reduce((ue,[se,pe])=>ee.has(se)?ue:ue.concat(pe),[]);Y=[].concat(Me(Y),Me(ie))}return Qg(Y,{externalGetKey:M,childrenPropName:P})},[j,M,E,P,n,U]),G=i.useMemo(()=>{const Y=new Map;return U.forEach((ee,ie)=>{const ue=M(ee,ie),se=(l?l(ee):null)||{};Y.set(ue,se)}),Y},[U,M,l]),q=i.useCallback(Y=>{const ee=M(Y);let ie;return G.has(ee)?ie=G.get(M(Y)):ie=l?l(Y):void 0,!!(ie!=null&&ie.disabled)},[G,M]),[K,Z]=i.useMemo(()=>{if(E)return[z||[],[]];const{checkedKeys:Y,halfCheckedKeys:ee}=Si(z,!0,V,q);return[Y||[],ee]},[z,E,V,q]),Q=i.useMemo(()=>{const Y=x==="radio"?K.slice(0,1):K;return new Set(Y)},[K,x]),te=i.useMemo(()=>x==="radio"?new Set:new Set(Z),[Z,x]);i.useEffect(()=>{t||D(SO)},[!!t]);const X=i.useCallback((Y,ee)=>{let ie,ue;W(Y),n?(ie=Y,ue=Y.map(se=>F.current.get(se))):(ie=[],ue=[],Y.forEach(se=>{const pe=O(se);pe!==void 0&&(ie.push(se),ue.push(pe))})),D(ie),u==null||u(ie,ue,{type:ee})},[D,O,u,n]),oe=i.useCallback((Y,ee,ie,ue)=>{if(d){const se=ie.map(pe=>O(pe));d(O(Y),ee,se,ue)}X(ie,"single")},[d,O,X]),ae=i.useMemo(()=>!S||w?null:(S===!0?[Qy,Zy,Jy]:S).map(ee=>ee===Qy?{key:"all",text:B.selectionAll,onSelect(){X(j.map((ie,ue)=>M(ie,ue)).filter(ie=>{const ue=G.get(ie);return!(ue!=null&&ue.disabled)||Q.has(ie)}),"all")}}:ee===Zy?{key:"invert",text:B.selectInvert,onSelect(){const ie=new Set(Q);I.forEach((se,pe)=>{const fe=M(se,pe),he=G.get(fe);he!=null&&he.disabled||(ie.has(fe)?ie.delete(fe):ie.add(fe))});const ue=Array.from(ie);v&&(k.deprecated(!1,"onSelectInvert","onChange"),v(ue)),X(ue,"invert")}}:ee===Jy?{key:"none",text:B.selectNone,onSelect(){g==null||g(),X(Array.from(Q).filter(ie=>{const ue=G.get(ie);return ue==null?void 0:ue.disabled}),"none")}}:ee).map(ee=>Object.assign(Object.assign({},ee),{onSelect:(...ie)=>{var ue,se;(se=ee.onSelect)===null||se===void 0||(ue=se).call.apply(ue,[ee].concat(ie)),H(null)}})),[S,Q,I,M,v,X]);return[i.useCallback(Y=>{var ee;if(!t)return Y.filter(Pe=>Pe!==ul);let ie=Me(Y);const ue=new Set(Q),se=U.map(M).filter(Pe=>!G.get(Pe).disabled),pe=se.every(Pe=>ue.has(Pe)),fe=se.some(Pe=>ue.has(Pe)),he=()=>{const Pe=[];pe?se.forEach(Ae=>{ue.delete(Ae),Pe.push(Ae)}):se.forEach(Ae=>{ue.has(Ae)||(ue.add(Ae),Pe.push(Ae))});const je=Array.from(ue);f==null||f(!pe,je.map(Ae=>O(Ae)),Pe.map(Ae=>O(Ae))),X(je,"all"),H(null)};let Se,be;if(x!=="radio"){let Pe;if(ae){const Le={getPopupContainer:L,items:ae.map((tt,Ct)=>{const{key:We,text:nt,onSelect:dt}=tt;return{key:We??Ct,onClick:()=>{dt==null||dt(se)},label:nt}})};Pe=i.createElement("div",{className:`${R}-selection-extra`},i.createElement(fs,{menu:Le,getPopupContainer:L},i.createElement("span",null,i.createElement(yf,null))))}const je=U.map((Le,tt)=>{const Ct=M(Le,tt),We=G.get(Ct)||{};return Object.assign({checked:ue.has(Ct)},We)}).filter(({disabled:Le})=>Le),Ae=!!je.length&&je.length===U.length,Re=Ae&&je.every(({checked:Le})=>Le),ze=Ae&&je.some(({checked:Le})=>Le),we=(c==null?void 0:c())||{},{onChange:Oe,disabled:Te}=we;be=i.createElement(Qr,Object.assign({"aria-label":Pe?"Custom selection":"Select all"},we,{checked:Ae?Re:!!U.length&&pe,indeterminate:Ae?!Re&&ze:!pe&&fe,onChange:Le=>{he(),Oe==null||Oe(Le)},disabled:Te??(U.length===0||Ae),skipGroup:!0})),Se=!w&&i.createElement("div",{className:`${R}-selection`},be,Pe)}let $e;x==="radio"?$e=(Pe,je,Ae)=>{const Re=M(je,Ae),ze=ue.has(Re),we=G.get(Re);return{node:i.createElement(fr,Object.assign({},we,{checked:ze,onClick:Oe=>{var Te;Oe.stopPropagation(),(Te=we==null?void 0:we.onClick)===null||Te===void 0||Te.call(we,Oe)},onChange:Oe=>{var Te;ue.has(Re)||oe(Re,!0,[Re],Oe.nativeEvent),(Te=we==null?void 0:we.onChange)===null||Te===void 0||Te.call(we,Oe)}})),checked:ze}}:$e=(Pe,je,Ae)=>{var Re;const ze=M(je,Ae),we=ue.has(ze),Oe=te.has(ze),Te=G.get(ze);let Le;return N==="nest"?Le=Oe:Le=(Re=Te==null?void 0:Te.indeterminate)!==null&&Re!==void 0?Re:Oe,{node:i.createElement(Qr,Object.assign({},Te,{indeterminate:Le,checked:we,skipGroup:!0,onClick:tt=>{var Ct;tt.stopPropagation(),(Ct=Te==null?void 0:Te.onClick)===null||Ct===void 0||Ct.call(Te,tt)},onChange:tt=>{var Ct;const{nativeEvent:We}=tt,{shiftKey:nt}=We,dt=se.indexOf(ze),at=K.some(bt=>se.includes(bt));if(nt&&E&&at){const bt=_(dt,se,ue),zt=Array.from(ue);p==null||p(!we,zt.map(jt=>O(jt)),bt.map(jt=>O(jt))),X(zt,"multiple")}else{const bt=K;if(E){const zt=we?qo(bt,ze):yi(bt,ze);oe(ze,!we,zt,We)}else{const zt=Si([].concat(Me(bt),[ze]),!0,V,q),{checkedKeys:jt,halfCheckedKeys:ct}=zt;let wt=jt;if(we){const xt=new Set(jt);xt.delete(ze),wt=Si(Array.from(xt),{halfCheckedKeys:ct},V,q).checkedKeys}oe(ze,!we,wt,We)}}H(we?null:dt),(Ct=Te==null?void 0:Te.onChange)===null||Ct===void 0||Ct.call(Te,tt)}})),checked:we}};const xe=(Pe,je,Ae)=>{const{node:Re,checked:ze}=$e(Pe,je,Ae);return $?$(ze,je,Ae,Re):Re};if(!ie.includes(ul))if(ie.findIndex(Pe=>{var je;return((je=Pe[Md])===null||je===void 0?void 0:je.columnType)==="EXPAND_COLUMN"})===0){const[Pe,...je]=ie;ie=[Pe,ul].concat(Me(je))}else ie=[ul].concat(Me(ie));const ye=ie.indexOf(ul);ie=ie.filter((Pe,je)=>Pe!==ul||je===ye);const Ne=ie[ye-1],_e=ie[ye+1];let Qe=b;Qe===void 0&&((_e==null?void 0:_e.fixed)!==void 0?Qe=_e.fixed:(Ne==null?void 0:Ne.fixed)!==void 0&&(Qe=Ne.fixed)),Qe&&Ne&&((ee=Ne[Md])===null||ee===void 0?void 0:ee.columnType)==="EXPAND_COLUMN"&&Ne.fixed===void 0&&(Ne.fixed=Qe);const Ke=de(`${R}-selection-col`,{[`${R}-selection-col-with-dropdown`]:S&&x==="checkbox"}),Fe=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(be):t.columnTitle:Se,Xe={fixed:Qe,width:y,className:`${R}-selection-column`,title:Fe(),render:xe,onCell:t.onCell,align:t.align,[Md]:{className:Ke}};return ie.map(Pe=>Pe===ul?Xe:Pe)},[M,U,t,K,Q,te,y,ae,N,G,p,oe,q]),Q]};function ate(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:de(u,{[`${u}-spaced`]:!c,[`${u}-expanded`]:c&&l,[`${u}-collapsed`]:c&&!l}),"aria-label":l?e.collapse:e.expand,"aria-expanded":l})}}function ote(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 $l=(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 vu(e,t){return t?`${t}-${e}`:`${e}`}const ip=(e,t)=>typeof e=="function"?e(t):e,ite=(e,t)=>{const n=ip(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};var lte={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"},ste=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:lte}))},cte=i.forwardRef(ste),ute=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 ge.createElement("div",{style:l})};function PN(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function dte(e,t){var n=i.useState(!1),r=me(n,2),a=r[0],l=r[1];an(function(){if(a)return e(),function(){t()}},[a]),an(function(){return l(!0),function(){l(!1)}},[])}var fte=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],mte=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,fte),p=i.useState(!0),y=me(p,2),x=y[0],S=y[1],b=i.useContext(AC),$=b.prefixCls,w=l&&c!=="hide";an(function(){l&&w!==x&&S(w)},[l]);var E=function(){l&&u()},R=i.useRef(!1),j=function(){l&&!R.current&&(R.current=!0,d())};dte(E,j);var I=function(M){w===M&&j()};return l?i.createElement(ta,Ce({ref:t,visible:x},a,{motionAppear:c==="show",onVisibleChanged:I}),function(O,M){var N=O.className,P=O.style;return i.createElement("div",{ref:M,className:de("".concat($,"-treenode-motion"),N),style:P},l.map(function(B){var L=Object.assign({},(PN(B.data),B.data)),k=B.title,_=B.key,H=B.isStart,z=B.isEnd;delete L.children;var D=Nd(_,v);return i.createElement(Jd,Ce({},L,D,{title:k,active:f,data:B.data,key:_,isStart:H,isEnd:z}))}))}):i.createElement(Jd,Ce({domRef:t,className:n,style:r},g,{active:f}))});function vte(){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 $O(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 gte=["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"],wO={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},pte=function(){},Cs="RC_TREE_MOTION_".concat(Math.random()),e1={key:Cs},zN={key:Cs,level:0,index:0,pos:"0",node:e1,nodes:[e1]},EO={parent:null,children:[],pos:zN.pos,data:e1,title:null,key:Cs,isStart:[],isEnd:[]};function OO(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function jO(e){var t=e.key,n=e.pos;return $f(t,n)}function hte(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 bte=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,y=e.dragOverNodeKey,x=e.dropPosition,S=e.motion,b=e.height,$=e.itemHeight,w=e.virtual,E=e.scrollWidth,R=e.focusable,j=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,_=Lt(e,gte),H=i.useRef(null),z=i.useRef(null);i.useImperativeHandle(t,function(){return{scrollTo:function($e){H.current.scrollTo($e)},getIndentWidth:function(){return z.current.offsetWidth}}});var D=i.useState(a),F=me(D,2),W=F[0],U=F[1],V=i.useState(r),G=me(V,2),q=G[0],K=G[1],Z=i.useState(r),Q=me(Z,2),te=Q[0],X=Q[1],oe=i.useState([]),ae=me(oe,2),re=ae[0],Y=ae[1],ee=i.useState(null),ie=me(ee,2),ue=ie[0],se=ie[1],pe=i.useRef(r);pe.current=r;function fe(){var be=pe.current;K(be),X(be),Y([]),se(null),k()}an(function(){U(a);var be=vte(W,a);if(be.key!==null)if(be.add){var $e=q.findIndex(function(Ke){var Fe=Ke.key;return Fe===be.key}),xe=OO($O(q,r,be.key),w,b,$),ye=q.slice();ye.splice($e+1,0,EO),X(ye),Y(xe),se("show")}else{var Ne=r.findIndex(function(Ke){var Fe=Ke.key;return Fe===be.key}),_e=OO($O(r,q,be.key),w,b,$),Qe=r.slice();Qe.splice(Ne+1,0,EO),X(Qe),Y(_e),se("hide")}else q!==r&&(K(r),X(r))},[a,r]),i.useEffect(function(){p||fe()},[p]);var he=S?te:r,Se={expandedKeys:a,selectedKeys:l,loadedKeys:u,loadingKeys:d,checkedKeys:c,halfCheckedKeys:f,dragOverNodeKey:y,dropPosition:x,keyEntities:v};return i.createElement(i.Fragment,null,I&&j&&i.createElement("span",{style:wO,"aria-live":"assertive"},hte(j)),i.createElement("div",null,i.createElement("input",{style:wO,disabled:R===!1||g,tabIndex:R!==!1?O:null,onKeyDown:M,onFocus:N,onBlur:P,value:"",onChange:pte,"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(Dg,Ce({},_,{data:he,itemKey:jO,height:b,fullHeight:!1,virtual:w,itemHeight:$,scrollWidth:E,prefixCls:"".concat(n,"-list"),ref:H,role:"tree",onVisibleChange:function($e){$e.every(function(xe){return jO(xe)!==Cs})&&fe()}}),function(be){var $e=be.pos,xe=Object.assign({},(PN(be.data),be.data)),ye=be.title,Ne=be.key,_e=be.isStart,Qe=be.isEnd,Ke=$f(Ne,$e);delete xe.key,delete xe.children;var Fe=Nd(Ke,Se);return i.createElement(mte,Ce({},xe,Fe,{title:ye,active:!!j&&Ne===j.key,pos:$e,data:be.data,isStart:_e,isEnd:Qe,motion:S,motionNodes:Ne===Cs?re:null,motionType:ue,onMotionStart:L,onMotionEnd:fe,treeNodeRequiredProps:Se,onMouseMove:function(){B(null)}}))}))}),yte=10,kC=(function(e){Ja(n,e);var t=ho(n);function n(){var r;gr(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)),ne(Et(r),"destroyed",!1),ne(Et(r),"delayedDragEnterLogic",void 0),ne(Et(r),"loadingRetryTimes",{}),ne(Et(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:Uc()}),ne(Et(r),"dragStartMousePosition",null),ne(Et(r),"dragNodeProps",null),ne(Et(r),"currentMouseOverDroppableNodeKey",null),ne(Et(r),"listRef",i.createRef()),ne(Et(r),"onNodeDragStart",function(u,d){var f=r.state,v=f.expandedKeys,g=f.keyEntities,p=r.props.onDragStart,y=d.eventKey;r.dragNodeProps=d,r.dragStartMousePosition={x:u.clientX,y:u.clientY};var x=qo(v,y);r.setState({draggingNodeKey:y,dragChildrenKeys:ete(y,g),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(x),window.addEventListener("dragend",r.onWindowDragEnd),p==null||p({event:u,node:Fr(d)})}),ne(Et(r),"onNodeDragEnter",function(u,d){var f=r.state,v=f.expandedKeys,g=f.keyEntities,p=f.dragChildrenKeys,y=f.flattenNodes,x=f.indent,S=r.props,b=S.onDragEnter,$=S.onExpand,w=S.allowDrop,E=S.direction,R=d.pos,j=d.eventKey;if(r.currentMouseOverDroppableNodeKey!==j&&(r.currentMouseOverDroppableNodeKey=j),!r.dragNodeProps){r.resetDragState();return}var I=CO(u,r.dragNodeProps,d,x,r.dragStartMousePosition,w,y,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(_){clearTimeout(r.delayedDragEnterLogic[_])}),r.dragNodeProps.eventKey!==d.eventKey&&(u.persist(),r.delayedDragEnterLogic[R]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var _=Me(v),H=_a(g,d.eventKey);H&&(H.children||[]).length&&(_=yi(v,d.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(_),$==null||$(_,{node:Fr(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}),b==null||b({event:u,node:Fr(d),expandedKeys:v})}),ne(Et(r),"onNodeDragOver",function(u,d){var f=r.state,v=f.dragChildrenKeys,g=f.flattenNodes,p=f.keyEntities,y=f.expandedKeys,x=f.indent,S=r.props,b=S.onDragOver,$=S.allowDrop,w=S.direction;if(r.dragNodeProps){var E=CO(u,r.dragNodeProps,d,x,r.dragStartMousePosition,$,g,p,y,w),R=E.dropPosition,j=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&&j===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():R===r.state.dropPosition&&j===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:R,dropLevelOffset:j,dropTargetKey:I,dropContainerKey:O,dropTargetPos:M,dropAllowed:N,dragOverNodeKey:P}),b==null||b({event:u,node:Fr(d)}))}}),ne(Et(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:Fr(d)})}),ne(Et(r),"onWindowDragEnd",function(u){r.onNodeDragEnd(u,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),ne(Et(r),"onNodeDragEnd",function(u,d){var f=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),f==null||f({event:u,node:Fr(d)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),ne(Et(r),"onNodeDrop",function(u,d){var f,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=r.state,p=g.dragChildrenKeys,y=g.dropPosition,x=g.dropTargetKey,S=g.dropTargetPos,b=g.dropAllowed;if(b){var $=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),x!==null){var w=ce(ce({},Nd(x,r.getTreeNodeRequiredProps())),{},{active:((f=r.getActiveItem())===null||f===void 0?void 0:f.key)===x,data:_a(r.state.keyEntities,x).node}),E=p.includes(x);Zn(!E,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var R=BC(S),j={event:u,node:Fr(w),dragNode:r.dragNodeProps?Fr(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(p),dropToGap:y!==0,dropPosition:y+Number(R[R.length-1])};v||$==null||$(j),r.dragNodeProps=null}}}),ne(Et(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}),ne(Et(r),"triggerExpandActionExpand",function(u,d){var f=r.state,v=f.expandedKeys,g=f.flattenNodes,p=d.expanded,y=d.key,x=d.isLeaf;if(!(x||u.shiftKey||u.metaKey||u.ctrlKey)){var S=g.filter(function($){return $.key===y})[0],b=Fr(ce(ce({},Nd(y,r.getTreeNodeRequiredProps())),{},{data:S.data}));r.setExpandedKeys(p?qo(v,y):yi(v,y)),r.onNodeExpand(u,b)}}),ne(Et(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)}),ne(Et(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)}),ne(Et(r),"onNodeSelect",function(u,d){var f=r.state.selectedKeys,v=r.state,g=v.keyEntities,p=v.fieldNames,y=r.props,x=y.onSelect,S=y.multiple,b=d.selected,$=d[p.key],w=!b;w?S?f=yi(f,$):f=[$]:f=qo(f,$);var E=f.map(function(R){var j=_a(g,R);return j?j.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:f}),x==null||x(f,{event:"select",selected:w,node:d,selectedNodes:E,nativeEvent:u.nativeEvent})}),ne(Et(r),"onNodeCheck",function(u,d,f){var v=r.state,g=v.keyEntities,p=v.checkedKeys,y=v.halfCheckedKeys,x=r.props,S=x.checkStrictly,b=x.onCheck,$=d.key,w,E={event:"check",node:d,checked:f,nativeEvent:u.nativeEvent};if(S){var R=f?yi(p,$):qo(p,$),j=qo(y,$);w={checked:R,halfChecked:j},E.checkedNodes=R.map(function(B){return _a(g,B)}).filter(Boolean).map(function(B){return B.node}),r.setUncontrolledState({checkedKeys:R})}else{var I=Si([].concat(Me(p),[$]),!0,g),O=I.checkedKeys,M=I.halfCheckedKeys;if(!f){var N=new Set(O);N.delete($);var P=Si(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=_a(g,B);if(L){var k=L.node,_=L.pos;E.checkedNodes.push(k),E.checkedNodesPositions.push({node:k,pos:_})}}),r.setUncontrolledState({checkedKeys:O},!1,{halfCheckedKeys:M})}b==null||b(w,E)}),ne(Et(r),"onNodeLoad",function(u){var d,f=u.key,v=r.state.keyEntities,g=_a(v,f);if(!(g!=null&&(d=g.children)!==null&&d!==void 0&&d.length)){var p=new Promise(function(y,x){r.setState(function(S){var b=S.loadedKeys,$=b===void 0?[]:b,w=S.loadingKeys,E=w===void 0?[]:w,R=r.props,j=R.loadData,I=R.onLoad;if(!j||$.includes(f)||E.includes(f))return null;var O=j(u);return O.then(function(){var M=r.state.loadedKeys,N=yi(M,f);I==null||I(N,{event:"load",node:u}),r.setUncontrolledState({loadedKeys:N}),r.setState(function(P){return{loadingKeys:qo(P.loadingKeys,f)}}),y()}).catch(function(M){if(r.setState(function(P){return{loadingKeys:qo(P.loadingKeys,f)}}),r.loadingRetryTimes[f]=(r.loadingRetryTimes[f]||0)+1,r.loadingRetryTimes[f]>=yte){var N=r.state.loadedKeys;Zn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:yi(N,f)}),y()}x(M)}),{loadingKeys:yi(E,f)}})});return p.catch(function(){}),p}}),ne(Et(r),"onNodeMouseEnter",function(u,d){var f=r.props.onMouseEnter;f==null||f({event:u,node:d})}),ne(Et(r),"onNodeMouseLeave",function(u,d){var f=r.props.onMouseLeave;f==null||f({event:u,node:d})}),ne(Et(r),"onNodeContextMenu",function(u,d){var f=r.props.onRightClick;f&&(u.preventDefault(),f({event:u,node:d}))}),ne(Et(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)}),ne(Et(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)}),ne(Et(r),"getTreeNodeRequiredProps",function(){var u=r.state,d=u.expandedKeys,f=u.selectedKeys,v=u.loadedKeys,g=u.loadingKeys,p=u.checkedKeys,y=u.halfCheckedKeys,x=u.dragOverNodeKey,S=u.dropPosition,b=u.keyEntities;return{expandedKeys:d||[],selectedKeys:f||[],loadedKeys:v||[],loadingKeys:g||[],checkedKeys:p||[],halfCheckedKeys:y||[],dragOverNodeKey:x,dropPosition:S,keyEntities:b}}),ne(Et(r),"setExpandedKeys",function(u){var d=r.state,f=d.treeData,v=d.fieldNames,g=Z0(f,u,v);r.setUncontrolledState({expandedKeys:u,flattenNodes:g},!0)}),ne(Et(r),"onNodeExpand",function(u,d){var f=r.state.expandedKeys,v=r.state,g=v.listChanging,p=v.fieldNames,y=r.props,x=y.onExpand,S=y.loadData,b=d.expanded,$=d[p.key];if(!g){var w=f.includes($),E=!b;if(Zn(b&&w||!b&&!w,"Expand state not sync with index check"),f=E?yi(f,$):qo(f,$),r.setExpandedKeys(f),x==null||x(f,{node:d,expanded:E,nativeEvent:u.nativeEvent}),E&&S){var R=r.onNodeLoad(d);R&&R.then(function(){var j=Z0(r.state.treeData,f,p);r.setUncontrolledState({flattenNodes:j})}).catch(function(){var j=r.state.expandedKeys,I=qo(j,$);r.setExpandedKeys(I)})}}}),ne(Et(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),ne(Et(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),ne(Et(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))}),ne(Et(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}),ne(Et(r),"offsetActiveKey",function(u){var d=r.state,f=d.flattenNodes,v=d.activeKey,g=f.findIndex(function(x){var S=x.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 y=p.key;r.onActiveChange(y)}else r.onActiveChange(null)}),ne(Et(r),"onKeyDown",function(u){var d=r.state,f=d.activeKey,v=d.expandedKeys,g=d.checkedKeys,p=d.fieldNames,y=r.props,x=y.onKeyDown,S=y.checkable,b=y.selectable;switch(u.which){case ot.UP:{r.offsetActiveKey(-1),u.preventDefault();break}case ot.DOWN:{r.offsetActiveKey(1),u.preventDefault();break}}var $=r.getActiveItem();if($&&$.data){var w=r.getTreeNodeRequiredProps(),E=$.data.isLeaf===!1||!!($.data[p.children]||[]).length,R=Fr(ce(ce({},Nd(f,w)),{},{data:$.data,active:!0}));switch(u.which){case ot.LEFT:{E&&v.includes(f)?r.onNodeExpand({},R):$.parent&&r.onActiveChange($.parent.key),u.preventDefault();break}case ot.RIGHT:{E&&!v.includes(f)?r.onNodeExpand({},R):$.children&&$.children.length&&r.onActiveChange($.children[0].key),u.preventDefault();break}case ot.ENTER:case ot.SPACE:{S&&!R.disabled&&R.checkable!==!1&&!R.disableCheckbox?r.onNodeCheck({},R,!g.includes(f)):!S&&b&&!R.disabled&&R.selectable!==!1&&r.onNodeSelect({},R);break}}}x==null||x(u)}),ne(Et(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(y){if(r.props.hasOwnProperty(y)){g=!1;return}v=!0,p[y]=u[y]}),v&&(!d||g)&&r.setState(ce(ce({},p),f))}}),ne(Et(r),"scrollTo",function(u){r.listRef.current.scrollTo(u)}),r}return pr(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,y=a.dropPosition,x=a.dragOverNodeKey,S=a.indent,b=this.props,$=b.prefixCls,w=b.className,E=b.style,R=b.showLine,j=b.focusable,I=b.tabIndex,O=I===void 0?0:I,M=b.selectable,N=b.showIcon,P=b.icon,B=b.switcherIcon,L=b.draggable,k=b.checkable,_=b.checkStrictly,H=b.disabled,z=b.motion,D=b.loadData,F=b.filterTreeNode,W=b.height,U=b.itemHeight,V=b.scrollWidth,G=b.virtual,q=b.titleRender,K=b.dropIndicatorRender,Z=b.onContextMenu,Q=b.onScroll,te=b.direction,X=b.rootClassName,oe=b.rootStyle,ae=Nr(this.props,{aria:!0,data:!0}),re;L&&(Ot(L)==="object"?re=L:typeof L=="function"?re={nodeDraggable:L}:re={});var Y={prefixCls:$,selectable:M,showIcon:N,icon:P,switcherIcon:B,draggable:re,draggingNodeKey:d,checkable:k,checkStrictly:_,disabled:H,keyEntities:u,dropLevelOffset:v,dropContainerKey:g,dropTargetKey:p,dropPosition:y,dragOverNodeKey:x,indent:S,direction:te,dropIndicatorRender:K,loadData:D,filterTreeNode:F,titleRender:q,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(AC.Provider,{value:Y},i.createElement("div",{className:de($,w,X,ne(ne(ne({},"".concat($,"-show-line"),R),"".concat($,"-focused"),l),"".concat($,"-active-focused"),f!==null)),style:oe},i.createElement(bte,Ce({ref:this.listRef,prefixCls:$,style:E,data:c,disabled:H,selectable:M,checkable:!!k,motion:z,dragging:d!==null,height:W,itemHeight:U,virtual:G,focusable:j,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(),ae))))}}],[{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=Uc(a.fieldNames),u.fieldNames=v),d("treeData")?f=a.treeData:d("children")&&(Zn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),f=cI(a.children)),f){u.treeData=f;var g=Qg(f,{fieldNames:v});u.keyEntities=ce(ne({},Cs,zN),g.keyEntities)}var p=u.keyEntities||l.keyEntities;if(d("expandedKeys")||c&&d("autoExpandParent"))u.expandedKeys=a.autoExpandParent||!c&&a.defaultExpandParent?Yy(a.expandedKeys,p):a.expandedKeys;else if(!c&&a.defaultExpandAll){var y=ce({},p);delete y[Cs];var x=[];Object.keys(y).forEach(function(O){var M=y[O];M.children&&M.children.length&&x.push(M.key)}),u.expandedKeys=x}else!c&&a.defaultExpandedKeys&&(u.expandedKeys=a.autoExpandParent||a.defaultExpandParent?Yy(a.defaultExpandedKeys,p):a.defaultExpandedKeys);if(u.expandedKeys||delete u.expandedKeys,f||u.expandedKeys){var S=Z0(f||l.treeData,u.expandedKeys||l.expandedKeys,v);u.flattenNodes=S}if(a.selectable&&(d("selectedKeys")?u.selectedKeys=xO(a.selectedKeys,a):!c&&a.defaultSelectedKeys&&(u.selectedKeys=xO(a.defaultSelectedKeys,a))),a.checkable){var b;if(d("checkedKeys")?b=lb(a.checkedKeys)||{}:!c&&a.defaultCheckedKeys?b=lb(a.defaultCheckedKeys)||{}:f&&(b=lb(a.checkedKeys)||{checkedKeys:l.checkedKeys,halfCheckedKeys:l.halfCheckedKeys}),b){var $=b,w=$.checkedKeys,E=w===void 0?[]:w,R=$.halfCheckedKeys,j=R===void 0?[]:R;if(!a.checkStrictly){var I=Si(E,!0,p);E=I.checkedKeys,j=I.halfCheckedKeys}u.checkedKeys=E,u.halfCheckedKeys=j}}return d("loadedKeys")&&(u.loadedKeys=a.loadedKeys),u}}]),n})(i.Component);ne(kC,"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:ute,allowDrop:function(){return!0},expandAction:!1});ne(kC,"TreeNode",Jd);var Cte={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"},xte=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Cte}))},DN=i.forwardRef(xte),Ste={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"},$te=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Ste}))},Gc=i.forwardRef($te),wte={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"},Ete=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:wte}))},Nv=i.forwardRef(Ete),Ote={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"},jte=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Ote}))},Rte=i.forwardRef(jte);const Ite=({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}}}}}),Nte=new tn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Mte=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Tte=(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:`${le(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Pte=(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({},mn(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)`]:Mo(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:Nte,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:a,lineHeight:le(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({},Mte(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`},Tte(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:`${le(t.calc(l).div(2).equal())} !important`}})}},zte=(e,t,n=!0)=>{const r=`.${e}`,a=`${r}-treenode`,l=t.calc(t.paddingXS).div(2).equal(),c=rn(t,{treeCls:r,treeNodeCls:a,treeNodePadding:l});return[Pte(e,c),n&&Ite(c)].filter(Boolean)},Dte=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}},_te=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},Dte(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},Ate=un("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:CC(`${t}-checkbox`,e)},zte(t,e),uf(e)],_te),RO=4;function Bte(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+RO,[u]:0};switch(t){case-1:d.top=-3;break;case 1:d.bottom=-3;break;default:d.bottom=-3,d[c]=a+RO;break}return ge.createElement("div",{style:d,className:`${r}-drop-indicator`})}var kte={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"},Lte=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:kte}))},Hte=i.forwardRef(Lte),Fte={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"},Vte=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Fte}))},Wte=i.forwardRef(Vte),Kte={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"},Ute=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Kte}))},qte=i.forwardRef(Ute);const Gte=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(To,{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 x=typeof g=="function"?g(l):g,S=`${r}-switcher-line-custom-icon`;return i.isValidElement(x)?Or(x,{className:de((t=x.props)===null||t===void 0?void 0:t.className,S)}):x}return g?i.createElement(DN,{className:`${r}-switcher-line-icon`}):i.createElement("span",{className:`${r}-switcher-leaf-line`})}const p=`${r}-switcher-icon`,y=typeof a=="function"?a(l):a;return i.isValidElement(y)?Or(y,{className:de((n=y.props)===null||n===void 0?void 0:n.className,p)}):y!==void 0?y:c?f?i.createElement(Wte,{className:`${r}-switcher-line-icon`}):i.createElement(qte,{className:`${r}-switcher-line-icon`}):i.createElement(Hte,{className:p})},_N=ge.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:l,tree:c}=ge.useContext(Rt),{prefixCls:u,className:d,showIcon:f=!1,showLine:v,switcherIcon:g,switcherLoadingIcon:p,blockNode:y=!1,children:x,checkable:S=!1,selectable:b=!0,draggable:$,disabled:w,motion:E,style:R}=e,j=r("tree",u),I=r(),O=ge.useContext(Kr),M=w??O,N=E??Object.assign(Object.assign({},Lc(I)),{motionAppear:!1}),P=Object.assign(Object.assign({},e),{checkable:S,selectable:b,showIcon:f,motion:N,blockNode:y,disabled:M,showLine:!!v,dropIndicatorRender:Bte}),[B,L,k]=Ate(j),[,_]=ua(),H=_.paddingXS/2+(((n=_.Tree)===null||n===void 0?void 0:n.titleHeight)||_.controlHeightSM),z=ge.useMemo(()=>{if(!$)return!1;let F={};switch(typeof $){case"function":F.nodeDraggable=$;break;case"object":F=Object.assign({},$);break}return F.icon!==!1&&(F.icon=F.icon||ge.createElement(Rte,null)),F},[$]),D=F=>ge.createElement(Gte,{prefixCls:j,switcherIcon:g,switcherLoadingIcon:p,treeNodeProps:F,showLine:v});return B(ge.createElement(kC,Object.assign({itemHeight:H,ref:t,virtual:l},P,{style:Object.assign(Object.assign({},c==null?void 0:c.style),R),prefixCls:j,className:de({[`${j}-icon-hide`]:!f,[`${j}-block-node`]:y,[`${j}-unselectable`]:!b,[`${j}-rtl`]:a==="rtl",[`${j}-disabled`]:M},c==null?void 0:c.className,d,L,k),direction:a,checkable:S&&ge.createElement("span",{className:`${j}-checkbox-inner`}),selectable:b,switcherIcon:D,draggable:z}),x))}),IO=0,sb=1,NO=2;function LC(e,t,n){const{key:r,children:a}=n;function l(c){const u=c[r],d=c[a];t(u,c)!==!1&&LC(d||[],t,n)}e.forEach(l)}function Xte({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:a}){const l=[];let c=IO;if(n&&n===r)return[n];if(!n||!r)return[];function u(d){return d===n||d===r}return LC(e,d=>{if(c===NO)return!1;if(u(d)){if(l.push(d),c===IO)c=sb;else if(c===sb)return c=NO,!1}else c===sb&&l.push(d);return t.includes(d)},Uc(a)),l}function cb(e,t,n){const r=Me(t),a=[];return LC(e,(l,c)=>{const u=r.indexOf(l);return u!==-1&&(a.push(c),r.splice(u,1)),!!r.length},Uc(n)),a}var MO=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 Yte(e){const{isLeaf:t,expanded:n}=e;return t?i.createElement(DN,null):n?i.createElement(Gc,null):i.createElement(Nv,null)}function TO({treeData:e,children:t}){return e||cI(t)}const Qte=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,l=MO(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const c=i.useRef(null),u=i.useRef(null),d=()=>{const{keyEntities:M}=Qg(TO(l),{fieldNames:l.fieldNames});let N;return n?N=Object.keys(M):r?N=Yy(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 y=(M,N)=>{var P;return"expandedKeys"in l||p(M),(P=l.onExpand)===null||P===void 0?void 0:P.call(l,M,N)},x=(M,N)=>{var P;const{multiple:B,fieldNames:L}=l,{node:k,nativeEvent:_}=N,{key:H=""}=k,z=TO(l),D=Object.assign(Object.assign({},N),{selected:!0}),F=(_==null?void 0:_.ctrlKey)||(_==null?void 0:_.metaKey),W=_==null?void 0:_.shiftKey;let U;B&&F?(U=M,c.current=H,u.current=U,D.selectedNodes=cb(z,U,L)):B&&W?(U=Array.from(new Set([].concat(Me(u.current||[]),Me(Xte({treeData:z,expandedKeys:g,startKey:H,endKey:c.current,fieldNames:L}))))),D.selectedNodes=cb(z,U,L)):(U=[H],c.current=H,u.current=U,D.selectedNodes=cb(z,U,L)),(P=l.onSelect)===null||P===void 0||P.call(l,U,D),"selectedKeys"in l||v(U)},{getPrefixCls:S,direction:b}=i.useContext(Rt),{prefixCls:$,className:w,showIcon:E=!0,expandAction:R="click"}=l,j=MO(l,["prefixCls","className","showIcon","expandAction"]),I=S("tree",$),O=de(`${I}-directory`,{[`${I}-directory-rtl`]:b==="rtl"},w);return i.createElement(_N,Object.assign({icon:Yte,ref:t,blockNode:!0},j,{showIcon:E,expandAction:R,prefixCls:I,className:O,expandedKeys:g,selectedKeys:f,onSelect:x,onExpand:y}))},Zte=i.forwardRef(Qte),HC=_N;HC.DirectoryTree=Zte;HC.TreeNode=Jd;const PO=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(Ef,{prefix:i.createElement(Rs,null),placeholder:a.filterSearchPlaceholder,onChange:l,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},Jte=e=>{const{keyCode:t}=e;t===ot.ENTER&&e.stopPropagation()},ene=i.forwardRef((e,t)=>i.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:Jte,ref:t},e.children));function zc(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(Me(t),Me(zc(r))))}),t}function tne(e){return e.some(({children:t})=>t)}function AN(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function BN({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:BN({filters:c.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:l})};const f=r?Qr:fr,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:AN(a,c.text)?v:null:v})}function ub(e){return e||[]}const nne=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:y=!1,filterState:x,triggerFilter:S,locale:b,children:$,getPopupContainer:w,rootClassName:E}=e,{filterResetToDefaultFilteredValue:R,defaultFilteredValue:j,filterDropdownProps:I={},filterDropdownOpen:O,filterDropdownVisible:M,onFilterDropdownVisibleChange:N,onFilterDropdownOpenChange:P}=u,[B,L]=i.useState(!1),k=!!(x&&(!((t=x.filteredKeys)===null||t===void 0)&&t.length||x.forceFiltered)),_=be=>{var $e;L(be),($e=I.onOpenChange)===null||$e===void 0||$e.call(I,be),P==null||P(be),N==null||N(be)},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=x==null?void 0:x.filteredKeys,[D,F]=WD(ub(z)),W=({selectedKeys:be})=>{F(be)},U=(be,{node:$e,checked:xe})=>{W(g?{selectedKeys:be}:{selectedKeys:xe&&$e.key?[$e.key]:[]})};i.useEffect(()=>{B&&W({selectedKeys:ub(z)})},[z]);const[V,G]=i.useState([]),q=be=>{G(be)},[K,Z]=i.useState(""),Q=be=>{const{value:$e}=be.target;Z($e)};i.useEffect(()=>{B||Z("")},[B]);const te=be=>{const $e=be!=null&&be.length?be:null;if($e===null&&(!x||!x.filteredKeys)||No($e,x==null?void 0:x.filteredKeys,!0))return null;S({column:u,key:f,filteredKeys:$e})},X=()=>{_(!1),te(D())},oe=({confirm:be,closeDropdown:$e}={confirm:!1,closeDropdown:!1})=>{be&&te([]),$e&&_(!1),Z(""),F(R?(j||[]).map(xe=>String(xe)):[])},ae=({closeDropdown:be}={closeDropdown:!0})=>{be&&_(!1),te(D())},re=(be,$e)=>{$e.source==="trigger"&&(be&&z!==void 0&&F(ub(z)),_(be),!be&&!u.filterDropdown&&v&&X())},Y=de({[`${d}-menu-without-submenu`]:!tne(u.filters||[])}),ee=be=>{if(be.target.checked){const $e=zc(u==null?void 0:u.filters).map(xe=>String(xe));F($e)}else F([])},ie=({filters:be})=>(be||[]).map(($e,xe)=>{const ye=String($e.value),Ne={title:$e.text,key:$e.value!==void 0?ye:String(xe)};return $e.children&&(Ne.children=ie({filters:$e.children})),Ne}),ue=be=>{var $e;return Object.assign(Object.assign({},be),{text:be.title,value:be.key,children:(($e=be.children)===null||$e===void 0?void 0:$e.map(xe=>ue(xe)))||[]})};let se;const{direction:pe,renderEmpty:fe}=i.useContext(Rt);if(typeof u.filterDropdown=="function")se=u.filterDropdown({prefixCls:`${d}-custom`,setSelectedKeys:be=>W({selectedKeys:be}),selectedKeys:D(),confirm:ae,clearFilters:oe,filters:u.filters,visible:H,close:()=>{_(!1)}});else if(u.filterDropdown)se=u.filterDropdown;else{const be=D()||[],$e=()=>{var ye,Ne;const _e=(ye=fe==null?void 0:fe("Table.filter"))!==null&&ye!==void 0?ye:i.createElement(Bn,{image:Bn.PRESENTED_IMAGE_SIMPLE,description:b.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((u.filters||[]).length===0)return _e;if(p==="tree")return i.createElement(i.Fragment,null,i.createElement(PO,{filterSearch:y,value:K,onChange:Q,tablePrefixCls:l,locale:b}),i.createElement("div",{className:`${l}-filter-dropdown-tree`},g?i.createElement(Qr,{checked:be.length===zc(u.filters).length,indeterminate:be.length>0&&be.length<zc(u.filters).length,className:`${l}-filter-dropdown-checkall`,onChange:ee},(Ne=b==null?void 0:b.filterCheckall)!==null&&Ne!==void 0?Ne:b==null?void 0:b.filterCheckAll):null,i.createElement(HC,{checkable:!0,selectable:!1,blockNode:!0,multiple:g,checkStrictly:!g,className:`${d}-menu`,onCheck:U,checkedKeys:be,selectedKeys:be,showIcon:!1,treeData:ie({filters:u.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:K.trim()?Fe=>typeof y=="function"?y(K,ue(Fe)):AN(K,Fe.title):void 0})));const Qe=BN({filters:u.filters||[],filterSearch:y,prefixCls:c,filteredKeys:D(),filterMultiple:g,searchValue:K}),Ke=Qe.every(Fe=>Fe===null);return i.createElement(i.Fragment,null,i.createElement(PO,{filterSearch:y,value:K,onChange:Q,tablePrefixCls:l,locale:b}),Ke?_e:i.createElement(xl,{selectable:!0,multiple:g,prefixCls:`${d}-menu`,className:Y,onSelect:W,onDeselect:W,selectedKeys:be,getPopupContainer:w,openKeys:V,onOpenChange:q,items:Qe}))},xe=()=>R?No((j||[]).map(ye=>String(ye)),be,!0):be.length===0;se=i.createElement(i.Fragment,null,$e(),i.createElement("div",{className:`${c}-dropdown-btns`},i.createElement(Ue,{type:"link",size:"small",disabled:xe(),onClick:()=>oe()},b.filterReset),i.createElement(Ue,{type:"primary",size:"small",onClick:X},b.filterConfirm)))}u.filterDropdown&&(se=i.createElement(n8,{selectable:void 0},se)),se=i.createElement(ene,{className:`${c}-dropdown`},se);const Se=Wd({trigger:["click"],placement:pe==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let be;return typeof u.filterIcon=="function"?be=u.filterIcon(k):u.filterIcon?be=u.filterIcon:be=i.createElement(cte,null),i.createElement("span",{role:"button",tabIndex:-1,className:de(`${c}-trigger`,{active:k}),onClick:$e=>{$e.stopPropagation()}},be)})(),getPopupContainer:w},Object.assign(Object.assign({},I),{rootClassName:de(E,I.rootClassName),open:H,onOpenChange:re,popupRender:()=>typeof(I==null?void 0:I.dropdownRender)=="function"?I.dropdownRender(se):se}));return i.createElement("div",{className:`${c}-column`},i.createElement("span",{className:`${l}-column-title`},$),i.createElement(fs,Object.assign({},Se)))},t1=(e,t,n)=>{let r=[];return(e||[]).forEach((a,l)=>{var c;const u=vu(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:$l(a,u),filteredKeys:f,forceFiltered:a.filtered})}else r.push({column:a,key:$l(a,u),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(Me(r),Me(t1(a.children,t,u))))}),r};function kN(e,t,n,r,a,l,c,u,d){return n.map((f,v)=>{const g=vu(v,u),{filterOnClose:p=!0,filterMultiple:y=!0,filterMode:x,filterSearch:S}=f;let b=f;if(b.filters||b.filterDropdown){const $=$l(b,g),w=r.find(({key:E})=>$===E);b=Object.assign(Object.assign({},b),{title:E=>i.createElement(nne,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:b,columnKey:$,filterState:w,filterOnClose:p,filterMultiple:y,filterMode:x,filterSearch:S,triggerFilter:l,locale:a,getPopupContainer:c,rootClassName:d},ip(f.title,E))})}return"children"in b&&(b=Object.assign(Object.assign({},b),{children:kN(e,t,b.children,r,a,l,c,g,d)})),b})}const zO=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=zc(c);t[l]=d.filter(f=>r.includes(String(f)))}else t[l]=null}),t},n1=(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=zc(u),p=g.findIndex(x=>String(x)===String(v)),y=p!==-1?g[p]:v;return f[n]&&(f[n]=n1(f[n],t,n)),c(y,f)})):a},e),LN=e=>e.flatMap(t=>"children"in t?[t].concat(Me(LN(t.children||[]))):[t]),rne=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:l,locale:c,rootClassName:u}=e;ti();const d=i.useMemo(()=>LN(r||[]),[r]),[f,v]=i.useState(()=>t1(d,!0)),g=i.useMemo(()=>{const S=t1(d,!1);if(S.length===0)return S;let b=!0;if(S.forEach(({filteredKeys:$})=>{$!==void 0&&(b=!1)}),b){const $=(d||[]).map((w,E)=>$l(w,vu(E)));return f.filter(({key:w})=>$.includes(w)).map(w=>{const E=d[$.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(()=>zO(g),[g]),y=S=>{const b=g.filter(({key:$})=>$!==S.key);b.push(S),v(b),a(zO(b),b)};return[S=>kN(t,n,S,g,c,y,l,void 0,u),g,p]},ane=(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 y=n(g,p);d.set(y,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 one=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 HN=10;function ine(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 lne(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,l=one(r,["total"]),[c,u]=i.useState(()=>({current:"defaultCurrent"in l?l.defaultCurrent:1,pageSize:"defaultPageSize"in l?l.defaultPageSize:HN})),d=Wd(c,l,{total:a>0?a:e}),f=Math.ceil((a||e)/d.pageSize);d.current>f&&(d.current=f||1);const v=(p,y)=>{u({current:p??1,pageSize:y||d.pageSize})},g=(p,y)=>{var x;n&&((x=n.onChange)===null||x===void 0||x.call(n,p,y)),v(p,y),t(p,y||(d==null?void 0:d.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},d),{onChange:g}),v]}var sne={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"},cne=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:sne}))},une=i.forwardRef(cne),dne={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"},fne=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:dne}))},mne=i.forwardRef(fne);const Mv="ascend",db="descend",rg=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,DO=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,vne=(e,t)=>t?e[e.indexOf(t)+1]:e[0],r1=(e,t,n)=>{let r=[];const a=(l,c)=>{r.push({column:l,key:$l(l,c),multiplePriority:rg(l),sortOrder:l.sortOrder})};return(e||[]).forEach((l,c)=>{const u=vu(c,n);l.children?("sortOrder"in l&&a(l,u),r=[].concat(Me(r),Me(r1(l.children,t,u)))):l.sorter&&("sortOrder"in l?a(l,u):t&&l.defaultSortOrder&&r.push({column:l,key:$l(l,u),multiplePriority:rg(l),sortOrder:l.defaultSortOrder}))}),r},FN=(e,t,n,r,a,l,c,u)=>(t||[]).map((f,v)=>{const g=vu(v,u);let p=f;if(p.sorter){const y=p.sortDirections||a,x=p.showSorterTooltip===void 0?c:p.showSorterTooltip,S=$l(p,g),b=n.find(({key:N})=>N===S),$=b?b.sortOrder:null,w=vne(y,$);let E;if(f.sortIcon)E=f.sortIcon({sortOrder:$});else{const N=y.includes(Mv)&&i.createElement(mne,{className:de(`${e}-column-sorter-up`,{active:$===Mv})}),P=y.includes(db)&&i.createElement(une,{className:de(`${e}-column-sorter-down`,{active:$===db})});E=i.createElement("span",{className:de(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(N&&P)})},i.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},N,P))}const{cancelSort:R,triggerAsc:j,triggerDesc:I}=l||{};let O=R;w===db?O=I:w===Mv&&(O=j);const M=typeof x=="object"?Object.assign({title:O},x):{title:O};p=Object.assign(Object.assign({},p),{className:de(p.className,{[`${e}-column-sort`]:$}),title:N=>{const P=`${e}-column-sorters`,B=i.createElement("span",{className:`${e}-column-title`},ip(f.title,N)),L=i.createElement("div",{className:P},B,E);return x?typeof x!="boolean"&&(x==null?void 0:x.target)==="sorter-icon"?i.createElement("div",{className:de(P,`${P}-tooltip-target-sorter`)},B,i.createElement(_n,Object.assign({},M),E)):i.createElement(_n,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:rg(f)}),L==null||L(z)},B.onKeyDown=z=>{z.keyCode===ot.ENTER&&(r({column:f,key:S,sortOrder:w,multiplePriority:rg(f)}),k==null||k(z))};const _=ite(f.title,{}),H=_==null?void 0:_.toString();return $&&(B["aria-sort"]=$==="ascend"?"ascending":"descending"),B["aria-label"]=H||"",B.className=de(B.className,`${e}-column-has-sorters`),B.tabIndex=0,f.ellipsis&&(B.title=(_??"").toString()),B}})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:FN(e,p.children,n,r,a,l,c,g)})),p}),_O=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},AO=e=>{const t=e.filter(({sortOrder:n})=>n).map(_O);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},_O(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},a1=(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})=>DO(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=DO(v);if(p&&g){const y=p(c,u,g);if(y!==0)return g===Mv?y:-y}}return 0}).map(c=>{const u=c[n];return u?Object.assign(Object.assign({},c),{[n]:a1(u,t,n)}):c}):a},gne=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:l,onSorterChange:c}=e,[u,d]=i.useState(()=>r1(n,!0)),f=(S,b)=>{const $=[];return S.forEach((w,E)=>{const R=vu(E,b);if($.push($l(w,R)),Array.isArray(w.children)){const j=f(w.children,R);$.push.apply($,Me(j))}}),$},v=i.useMemo(()=>{let S=!0;const b=r1(n,!1);if(!b.length){const R=f(n);return u.filter(({key:j})=>R.includes(j))}const $=[];function w(R){S?$.push(R):$.push(Object.assign(Object.assign({},R),{sortOrder:null}))}let E=null;return b.forEach(R=>{E===null?(w(R),R.sortOrder&&(R.multiplePriority===!1?S=!1:E=!0)):(E&&R.multiplePriority!==!1||(S=!1),w(R))}),$},[n,u]),g=i.useMemo(()=>{var S,b;const $=v.map(({column:w,sortOrder:E})=>({column:w,order:E}));return{sortColumns:$,sortColumn:(S=$[0])===null||S===void 0?void 0:S.column,sortOrder:(b=$[0])===null||b===void 0?void 0:b.order}},[v]),p=S=>{let b;S.multiplePriority===!1||!v.length||v[0].multiplePriority===!1?b=[S]:b=[].concat(Me(v.filter(({key:$})=>$!==S.key)),[S]),d(b),c(AO(b),b)};return[S=>FN(t,S,v,p,r,a,l),v,g,()=>AO(v)]},VN=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=ip(r.title,t),"children"in a&&(a.children=VN(a.children,t)),a}),pne=e=>[i.useCallback(n=>VN(n,e),[e])],hne=IN((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),bne=MN((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),yne=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:l,tablePaddingVertical:c,tablePaddingHorizontal:u,calc:d}=e,f=`${le(n)} ${r} ${a}`,v=(g,p,y)=>({[`&${t}-${g}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${le(d(p).mul(-1).equal())}
|
|
399
|
-
${le(d(d(y).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:`${le(d(c).mul(-1).equal())} ${le(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 ${le(n)} 0 ${le(n)} ${l}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:f}}}},Cne=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Qa),{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"}})}}},xne=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}}}}},Sne=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:y,paddingXXS:x,expandIconMarginTop:S,expandIconSize:b,expandIconHalfInner:$,expandIconScale:w,calc:E}=e,R=`${le(a)} ${c} ${u}`,j=E(x).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({},$1(e)),{position:"relative",float:"left",width:b,height:b,color:"inherit",lineHeight:le(b),background:d,border:R,borderRadius:v,transform:`scale(${w})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:$,insetInlineEnd:j,insetInlineStart:j,height:a},"&::after":{top:j,bottom:j,insetInlineStart:$,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:y}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${le(E(g).mul(-1).equal())} ${le(E(p).mul(-1).equal())}`,padding:`${le(g)} ${le(p)}`}}}},$ne=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:y,tablePaddingHorizontal:x,borderRadius:S,motionDurationSlow:b,colorIcon:$,colorPrimary:w,tableHeaderFilterActiveBg:E,colorTextDisabled:R,tableFilterDropdownBg:j,tableFilterDropdownHeight:I,controlItemBgHover:O,controlItemBgActive:M,boxShadowSecondary:N,filterDropdownMenuBg:P,calc:B}=e,L=`${n}-dropdown`,k=`${t}-filter-dropdown`,_=`${n}-tree`,H=`${le(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:`${le(c)} ${le(B(x).div(2).mul(-1).equal())}`,padding:`0 ${le(c)}`,color:p,fontSize:y,borderRadius:S,cursor:"pointer",transition:`all ${b}`,"&:hover":{color:$,background:E},"&.active":{color:w}}}},{[`${n}-dropdown`]:{[k]:Object.assign(Object.assign({},mn(e)),{minWidth:a,backgroundColor:j,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:`${le(u)} 0`,color:R,fontSize:y,textAlign:"center",content:'"Not Found"'}},[`${k}-tree`]:{paddingBlock:`${le(u)} 0`,paddingInline:u,[_]:{padding:0},[`${_}-treenode ${_}-node-content-wrapper:hover`]:{backgroundColor:O},[`${_}-treenode-checkbox-checked ${_}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:M}}},[`${k}-search`]:{padding:u,borderBottom:H,"&-input":{input:{minWidth:l},[r]:{color:R}}},[`${k}-checkall`]:{width:"100%",marginBottom:c,marginInlineStart:c},[`${k}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${le(B(u).sub(f).equal())} ${le(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"}}}]},wne=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"}}}}},Ene=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${le(r)} 0`}}},One=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${le(n)} ${le(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 ${le(n)} ${le(n)}`}}}}},jne=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"}}}}},Rne=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:y,calc:x}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:f,[`&${t}-selection-col-with-dropdown`]:{width:x(f).add(a).add(x(l).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:x(f).add(x(c).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:x(f).add(a).add(x(l).div(4)).add(x(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:x(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:le(x(y).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}}}}}},Ine=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:`${le(c)} ${le(u)}`},[`${t}-filter-trigger`]:{marginInlineEnd:le(r(u).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${le(r(c).mul(-1).equal())} ${le(r(u).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:le(r(c).mul(-1).equal()),marginInline:`${le(r(n).sub(u).equal())} ${le(r(u).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:le(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))}},Nne=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}}}},Mne=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=`${le(f)} ${v} ${g}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:u,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${le(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}}}}}}},BO=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,l=`${le(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 ${le(a(n).mul(-1).equal())} 0 ${r}`}}}},Tne=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:l,calc:c}=e,u=`${le(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) - ${le(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}}}}}},Pne=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:y,tableHeaderBg:x,tableHeaderCellSplitColor:S,tableFooterTextColor:b,tableFooterBg:$,calc:w}=e,E=`${le(c)} ${u} ${d}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},Xo()),{[t]:Object.assign(Object.assign({},mn(e)),{fontSize:f,background:v,borderRadius:`${le(g)} ${le(g)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${le(g)} ${le(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:`${le(r)} ${le(a)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${le(r)} ${le(a)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:x,borderBottom:E,transition:`background ${y} 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 ${y}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${y}, border-color ${y}`,borderBottom:E,[`
|
|
457
|
-
> ${t}-wrapper:only-child,
|
|
458
|
-
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
|
459
|
-
`]:{[t]:{marginBlock:le(w(r).mul(-1).equal()),marginInline:`${le(w(l).sub(a).equal())}
|
|
460
|
-
${le(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:x,borderBottom:E,transition:`background ${y} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${le(r)} ${le(a)}`,color:b,background:$}})}},zne=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:y,colorTextPlaceholder:x,fontSize:S,fontSizeSM:b,lineHeight:$,lineWidth:w,colorIcon:E,colorIconHover:R,opacityLoading:j,controlInteractiveSize:I}=e,O=new bn(a).onBackground(n).toHexString(),M=new bn(l).onBackground(n).toHexString(),N=new bn(t).onBackground(n).toHexString(),P=new bn(E),B=new bn(R),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:y,stickyScrollBarBg:x,stickyScrollBarBorderRadius:100,expandIconMarginTop:(S*$-w*3)/2-Math.ceil((b*1.4-w*3)/2),headerIconColor:P.clone().setA(P.a*j).toRgbString(),headerIconHoverColor:B.clone().setA(B.a*j).toRgbString(),expandIconHalfInner:L,expandIconSize:k,expandIconScale:I/k}},kO=2,Dne=un("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:y,cellPaddingBlock:x,cellPaddingInline:S,cellPaddingBlockMD:b,cellPaddingInlineMD:$,cellPaddingBlockSM:w,cellPaddingInlineSM:E,borderColor:R,footerBg:j,footerColor:I,headerBorderRadius:O,cellFontSize:M,cellFontSizeMD:N,cellFontSizeSM:P,headerSplitColor:B,fixedHeaderSortActiveBg:L,headerFilterHoverBg:k,filterDropdownBg:_,expandIconBg:H,selectionColumnWidth:z,stickyScrollBarBg:D,calc:F}=e,W=rn(e,{tableFontSize:M,tableBg:r,tableRadius:O,tablePaddingVertical:x,tablePaddingHorizontal:S,tablePaddingVerticalMiddle:b,tablePaddingHorizontalMiddle:$,tablePaddingVerticalSmall:w,tablePaddingHorizontalSmall:E,tableBorderColor:R,tableHeaderTextColor:c,tableHeaderBg:l,tableFooterTextColor:I,tableFooterBg:j,tableHeaderCellSplitColor:B,tableHeaderSortBg:u,tableHeaderSortHoverBg:d,tableBodySortBg:f,tableFixedHeaderSortActiveBg:L,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:_,tableRowHoverBg:v,tableSelectedRowBg:g,tableSelectedRowHoverBg:p,zIndexTableFixed:kO,zIndexTableSticky:F(kO).add(1).equal({unit:!1}),tableFontSizeMiddle:N,tableFontSizeSmall:P,tableSelectionColumnWidth:z,tableExpandIconBg:H,tableExpandColumnWidth:F(a).add(F(e.padding).mul(2)).equal(),tableExpandedRowBg:y,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:D,tableScrollThumbBgHover:t,tableScrollBg:n});return[Pne(W),Ene(W),BO(W),Nne(W),$ne(W),yne(W),One(W),Sne(W),BO(W),xne(W),Rne(W),wne(W),Mne(W),Cne(W),Ine(W),jne(W),Tne(W)]},zne,{unitless:{expandIconScale:!0}}),LO=[],_ne=(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:y,rowKey:x="key",rowClassName:S,columns:b,children:$,childrenColumnName:w,onChange:E,getPopupContainer:R,loading:j,expandIcon:I,expandable:O,expandedRowRender:M,expandIconColumnIndex:N,indentSize:P,scroll:B,sortDirections:L,locale:k,showSorterTooltip:_={target:"full-header"},virtual:H}=e;ti();const z=i.useMemo(()=>b||DC($),[b,$]),D=i.useMemo(()=>z.some(ft=>ft.responsive),[z]),F=_g(D),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]),U=En(e,["className","style","columns"]),{locale:V=po,direction:G,table:q,renderEmpty:K,getPrefixCls:Z,getPopupContainer:Q}=i.useContext(Rt),te=Tr(d),X=Object.assign(Object.assign({},V.Table),k),oe=g||LO,ae=Z("table",a),re=Z("dropdown",v),[,Y]=ua(),ee=vr(ae),[ie,ue,se]=Dne(ae,ee),pe=Object.assign(Object.assign({childrenColumnName:w,expandIconColumnIndex:N},O),{expandIcon:(n=O==null?void 0:O.expandIcon)!==null&&n!==void 0?n:(r=q==null?void 0:q.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:fe="children"}=pe,he=i.useMemo(()=>oe.some(ft=>ft==null?void 0:ft[fe])?"nest":M||O!=null&&O.expandedRowRender?"row":null,[oe]),Se={body:i.useRef(null)},be=ote(ae),$e=i.useRef(null),xe=i.useRef(null);VD(t,()=>Object.assign(Object.assign({},xe.current),{nativeElement:$e.current}));const ye=i.useMemo(()=>typeof x=="function"?x:ft=>ft==null?void 0:ft[x],[x]),[Ne]=ane(oe,fe,ye),_e={},Qe=(ft,lt,At=!1)=>{var Gt,on,Jt,pn;const Xt=Object.assign(Object.assign({},_e),ft);At&&((Gt=_e.resetPagination)===null||Gt===void 0||Gt.call(_e),!((on=Xt.pagination)===null||on===void 0)&&on.current&&(Xt.pagination.current=1),p&&((Jt=p.onChange)===null||Jt===void 0||Jt.call(p,1,(pn=Xt.pagination)===null||pn===void 0?void 0:pn.pageSize))),B&&B.scrollToFirstRowOnChange!==!1&&Se.body.current&&W6(0,{getContainer:()=>Se.body.current}),E==null||E(Xt.pagination,Xt.filters,Xt.sorter,{currentDataSource:n1(a1(oe,Xt.sorterStates,fe),Xt.filterStates,fe),action:lt})},Ke=(ft,lt)=>{Qe({sorter:ft,sorterStates:lt},"sort",!1)},[Fe,Xe,Pe,je]=gne({prefixCls:ae,mergedColumns:W,onSorterChange:Ke,sortDirections:L||["ascend","descend"],tableLocale:X,showSorterTooltip:_}),Ae=i.useMemo(()=>a1(oe,Xe,fe),[oe,Xe]);_e.sorter=je(),_e.sorterStates=Xe;const Re=(ft,lt)=>{Qe({filters:ft,filterStates:lt},"filter",!0)},[ze,we,Oe]=rne({prefixCls:ae,locale:X,dropdownPrefixCls:re,mergedColumns:W,onFilterChange:Re,getPopupContainer:R||Q,rootClassName:de(c,ee)}),Te=n1(Ae,we,fe);_e.filters=Oe,_e.filterStates=we;const Le=i.useMemo(()=>{const ft={};return Object.keys(Oe).forEach(lt=>{Oe[lt]!==null&&(ft[lt]=Oe[lt])}),Object.assign(Object.assign({},Pe),{filters:ft})},[Pe,Oe]),[tt]=pne(Le),Ct=(ft,lt)=>{Qe({pagination:Object.assign(Object.assign({},_e.pagination),{current:ft,pageSize:lt})},"paginate")},[We,nt]=lne(Te.length,Ct,p);_e.pagination=p===!1?{}:ine(We,p),_e.resetPagination=nt;const dt=i.useMemo(()=>{if(p===!1||!We.pageSize)return Te;const{current:ft=1,total:lt,pageSize:At=HN}=We;return Te.length<lt?Te.length>At?Te.slice((ft-1)*At,ft*At):Te:Te.slice((ft-1)*At,ft*At)},[!!p,Te,We==null?void 0:We.current,We==null?void 0:We.pageSize,We==null?void 0:We.total]),[at,bt]=rte({prefixCls:ae,data:Te,pageData:dt,getRowKey:ye,getRecordByKey:Ne,expandType:he,childrenColumnName:fe,locale:X,getPopupContainer:R||Q},y),zt=(ft,lt,At)=>{let Gt;return typeof S=="function"?Gt=de(S(ft,lt,At)):Gt=de(S),de({[`${ae}-row-selected`]:bt.has(ye(ft,lt))},Gt)};pe.__PARENT_RENDER_ICON__=pe.expandIcon,pe.expandIcon=pe.expandIcon||I||ate(X),he==="nest"&&pe.expandIconColumnIndex===void 0?pe.expandIconColumnIndex=y?1:0:pe.expandIconColumnIndex>0&&y&&(pe.expandIconColumnIndex-=1),typeof pe.indentSize!="number"&&(pe.indentSize=typeof P=="number"?P:15);const jt=i.useCallback(ft=>tt(at(ze(Fe(ft)))),[Fe,ze,at]),ct=()=>{if(p===!1||!(We!=null&&We.total))return{};const ft=()=>We.size||(te==="small"||te==="middle"?"small":void 0),lt=Ye=>{const Ze=Ye==="left"?"start":Ye==="right"?"end":Ye;return i.createElement(rN,Object.assign({},We,{align:We.align||Ze,className:de(`${ae}-pagination`,We.className),size:ft()}))},At=G==="rtl"?"left":"right",Gt=We.position;if(Gt===null||!Array.isArray(Gt))return{bottom:lt(At)};const on=Gt.find(Ye=>typeof Ye=="string"&&Ye.toLowerCase().includes("top")),Jt=Gt.find(Ye=>typeof Ye=="string"&&Ye.toLowerCase().includes("bottom")),pn=Gt.every(Ye=>`${Ye}`=="none"),Xt=on?on.toLowerCase().replace("top",""):"",fn=Jt?Jt.toLowerCase().replace("bottom",""):"",st=!on&&!Jt&&!pn,St=()=>Xt?lt(Xt):void 0,yt=()=>{if(fn)return lt(fn);if(st)return lt(At)};return{top:St(),bottom:yt()}},wt=i.useMemo(()=>typeof j=="boolean"?{spinning:j}:typeof j=="object"&&j!==null?Object.assign({spinning:!0},j):void 0,[j]),xt=de(se,ee,`${ae}-wrapper`,q==null?void 0:q.className,{[`${ae}-wrapper-rtl`]:G==="rtl"},l,c,ue),et=Object.assign(Object.assign({},q==null?void 0:q.style),u),Ve=i.useMemo(()=>wt!=null&&wt.spinning&&oe===LO?null:typeof(k==null?void 0:k.emptyText)<"u"?k.emptyText:(K==null?void 0:K("Table"))||i.createElement(bf,{componentName:"Table"}),[wt==null?void 0:wt.spinning,oe,k==null?void 0:k.emptyText,K]),qe=H?bne:hne,mt={},Tt=i.useMemo(()=>{const{fontSize:ft,lineHeight:lt,lineWidth:At,padding:Gt,paddingXS:on,paddingSM:Jt}=Y,pn=Math.floor(ft*lt);switch(te){case"middle":return Jt*2+pn+At;case"small":return on*2+pn+At;default:return Gt*2+pn+At}},[Y,te]);H&&(mt.listItemHeight=Tt);const{top:Nt,bottom:Wt}=ct();return ie(i.createElement("div",{ref:$e,className:xt,style:et},i.createElement(la,Object.assign({spinning:!1},wt),Nt,i.createElement(qe,Object.assign({},mt,U,{ref:xe,columns:W,direction:G,expandable:pe,prefixCls:ae,className:de({[`${ae}-middle`]:te==="middle",[`${ae}-small`]:te==="small",[`${ae}-bordered`]:f,[`${ae}-empty`]:oe.length===0},se,ee,ue),data:dt,rowKey:ye,rowClassName:zt,emptyText:Ve,internalHooks:Of,internalRefs:Se,transformColumns:jt,getContainerWidth:be,measureRowRender:ft=>i.createElement(Do,{getPopupContainer:lt=>lt},ft)})),Wt)))},Ane=i.forwardRef(_ne),Bne=(e,t)=>{const n=i.useRef(0);return n.current+=1,i.createElement(Ane,Object.assign({},e,{ref:t,_renderTimes:n.current}))},mr=i.forwardRef(Bne);mr.SELECTION_COLUMN=ul;mr.EXPAND_COLUMN=dl;mr.SELECTION_ALL=Qy;mr.SELECTION_INVERT=Zy;mr.SELECTION_NONE=Jy;mr.Column=qee;mr.ColumnGroup=Gee;mr.Summary=yN;const kne=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({},mn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:c,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${le(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}}},FC=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return rn(e,{tagFontSize:a,tagLineHeight:le(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},VC=e=>({defaultBg:new bn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),WN=un("Tag",e=>{const t=FC(e);return kne(t)},VC);var Lne=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 Hne=i.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:a,checked:l,children:c,icon:u,onChange:d,onClick:f}=e,v=Lne(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:g,tag:p}=i.useContext(Rt),y=E=>{d==null||d(!l),f==null||f(E)},x=g("tag",n),[S,b,$]=WN(x),w=de(x,`${x}-checkable`,{[`${x}-checkable-checked`]:l},p==null?void 0:p.className,a,b,$);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:y}),u,i.createElement("span",null,c)))}),Fne=e=>gg(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"}}})),Vne=Qc(["Tag","preset"],e=>{const t=FC(e);return Fne(t)},VC);function Wne(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const tv=(e,t,n)=>{const r=Wne(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"}}}},Kne=Qc(["Tag","status"],e=>{const t=FC(e);return[tv(t,"success","Success"),tv(t,"processing","Info"),tv(t,"error","Error"),tv(t,"warning","Warning")]},VC);var Une=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 qne=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=Une(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:y,direction:x,tag:S}=i.useContext(Rt),[b,$]=i.useState(!0),w=En(p,["closeIcon","closable"]);i.useEffect(()=>{g!==void 0&&$(g)},[g]);const E=kg(d),R=lF(d),j=E||R,I=Object.assign(Object.assign({backgroundColor:d&&!j?d:void 0},S==null?void 0:S.style),l),O=y("tag",n),[M,N,P]=WN(O),B=de(O,S==null?void 0:S.className,{[`${O}-${d}`]:j,[`${O}-has-color`]:d&&!j,[`${O}-hidden`]:!b,[`${O}-rtl`]:x==="rtl",[`${O}-borderless`]:!v},r,a,N,P),L=F=>{F.stopPropagation(),f==null||f(F),!F.defaultPrevented&&$(!1)},[,k]=X6(kv(e),kv(S),{closable:!1,closeIconRender:F=>{const W=i.createElement("span",{className:`${O}-close-icon`,onClick:L},F);return O1(F,W,U=>({onClick:V=>{var G;(G=U==null?void 0:U.onClick)===null||G===void 0||G.call(U,V),L(V)},className:de(U==null?void 0:U.className,`${O}-close-icon`)}))}}),_=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,D=i.createElement("span",Object.assign({},w,{ref:t,className:B,style:I}),z,k,E&&i.createElement(Vne,{key:"preset",prefixCls:O}),R&&i.createElement(Kne,{key:"status",prefixCls:O}));return M(_?i.createElement(cf,{component:"Tag"},D):D)}),qt=qne;qt.CheckableTag=Hne;var Gne={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"},Xne=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Gne}))},$r=i.forwardRef(Xne),Yne={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"},Qne=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Yne}))},yl=i.forwardRef(Qne),Zne={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"},Jne=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Zne}))},ere=i.forwardRef(Jne);const tre=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:l}=r;return{marginBottom:a,color:n,fontWeight:l,fontSize:e,lineHeight:t}},nre=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
|
-
`]=tre(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},rre=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},$1(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},are=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:_v[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}}),ore=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"}}}},ire=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),lre=()=>({"\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"}}),sre=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"}},nre(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}}}),are(e)),rre(e)),{[`
|
|
472
|
-
${t}-expand,
|
|
473
|
-
${t}-collapse,
|
|
474
|
-
${t}-edit,
|
|
475
|
-
${t}-copy
|
|
476
|
-
`]:Object.assign(Object.assign({},$1(e)),{marginInlineStart:e.marginXXS})}),ore(e)),ire(e)),lre()),{"&-rtl":{direction:"rtl"}})}},cre=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),KN=un("Typography",sre,cre),ure=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:y=i.createElement(ere,null)}=e,x=i.useRef(null),S=i.useRef(!1),b=i.useRef(null),[$,w]=i.useState(d);i.useEffect(()=>{w(d)},[d]),i.useEffect(()=>{var _;if(!((_=x.current)===null||_===void 0)&&_.resizableTextArea){const{textArea:H}=x.current.resizableTextArea;H.focus();const{length:z}=H.value;H.setSelectionRange(z,z)}},[]);const E=({target:_})=>{w(_.value.replace(/[\n\r]/g,""))},R=()=>{S.current=!0},j=()=>{S.current=!1},I=({keyCode:_})=>{S.current||(b.current=_)},O=()=>{f($.trim())},M=({keyCode:_,ctrlKey:H,altKey:z,metaKey:D,shiftKey:F})=>{b.current!==_||S.current||H||z||D||F||(_===ot.ENTER?(O(),g==null||g()):_===ot.ESC&&v())},N=()=>{O()},[P,B,L]=KN(t),k=de(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(JI,{ref:x,maxLength:c,value:$,onChange:E,onKeyDown:I,onKeyUp:M,onCompositionStart:R,onCompositionEnd:j,onBlur:N,"aria-label":n,rows:1,autoSize:u}),y!==null?Or(y,{className:`${t}-edit-content-confirm`}):null))};var fb,HO;function dre(){return HO||(HO=1,fb=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()}}),fb}var mb,FO;function fre(){if(FO)return mb;FO=1;var e=dre(),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,y=!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 b=t[c.format]||t.default;window.clipboardData.setData(b,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 x=document.execCommand("copy");if(!x)throw new Error("copy command was unsuccessful");y=!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),y=!0}catch(b){u&&console.error("unable to copy using clipboardData: ",b),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 y}return mb=a,mb}var mre=fre();const vre=zo(mre);var gre=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 pre=({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=Qt(v=>gre(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;vre(p||EZ(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 vb(e,t){return i.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const hre=e=>{const t=i.useRef(void 0);return i.useEffect(()=>{t.current=e}),t.current},bre=(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 yre=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=i.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:a,rootClassName:l,setContentRef:c,children:u,direction:d,style:f}=e,v=yre(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:p,className:y,style:x}=hr("typography"),S=d??p,b=c?Mr(t,c):t,$=g("typography",n),[w,E,R]=KN($),j=de($,y,{[`${$}-rtl`]:S==="rtl"},a,l,E,R),I=Object.assign(Object.assign({},x),f);return w(i.createElement(r,Object.assign({className:j,style:I,ref:b},v),u))});var Cre={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"},xre=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Cre}))},ei=i.forwardRef(xre);function VO(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function gb(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Sre(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 WC=e=>["string","number"].includes(typeof e),$re=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:a,icon:l,tabIndex:c,onCopy:u,loading:d})=>{const f=VO(a),v=VO(l),{copied:g,copy:p}=n??{},y=t?g:p,x=gb(f[t?1:0],y),S=typeof x=="string"?x:y;return i.createElement(_n,{title:x},i.createElement("button",{type:"button",className:de(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:u,"aria-label":S,tabIndex:c},t?gb(v[1],i.createElement(js,null),!0):gb(v[0],d?i.createElement(To,null):i.createElement(ei,null),!0)))},nv=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)}),wre=e=>e.reduce((t,n)=>t+(WC(n)?String(n).length:1),0);function WO(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=WC(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 pb=0,hb=1,bb=2,yb=3,KO=4,rv={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Ere(e){const{enableMeasure:t,width:n,text:r,children:a,rows:l,expanded:c,miscDeps:u,onEllipsis:d}=e,f=i.useMemo(()=>Jr(r),[r]),v=i.useMemo(()=>wre(f),[r]),g=i.useMemo(()=>a(f,!1),[r]),[p,y]=i.useState(null),x=i.useRef(null),S=i.useRef(null),b=i.useRef(null),$=i.useRef(null),w=i.useRef(null),[E,R]=i.useState(!1),[j,I]=i.useState(pb),[O,M]=i.useState(0),[N,P]=i.useState(null);an(()=>{I(t&&n&&v?hb:pb)},[n,r,l,t,f]),an(()=>{var _,H,z,D;if(j===hb){I(bb);const F=S.current&&getComputedStyle(S.current).whiteSpace;P(F)}else if(j===bb){const F=!!(!((_=b.current)===null||_===void 0)&&_.isExceed());I(F?yb:KO),y(F?[0,v]:null),R(F);const W=((H=b.current)===null||H===void 0?void 0:H.getHeight())||0,U=l===1?0:((z=$.current)===null||z===void 0?void 0:z.getHeight())||0,V=((D=w.current)===null||D===void 0?void 0:D.getHeight())||0,G=Math.max(W,U+V);M(G+1),d(F)}},[j]);const B=p?Math.ceil((p[0]+p[1])/2):0;an(()=>{var _;const[H,z]=p||[0,0];if(H!==z){const F=(((_=x.current)===null||_===void 0?void 0:_.getHeight())||0)>O;let W=B;z-H===1&&(W=F?H:z),y(F?[H,W]:[W,z])}},[p,B]);const L=i.useMemo(()=>{if(!t)return a(f,!1);if(j!==yb||!p||p[0]!==p[1]){const _=a(f,!1);return[KO,pb].includes(j)?_:i.createElement("span",{style:Object.assign(Object.assign({},rv),{WebkitLineClamp:l})},_)}return a(c?f:WO(f,p[0]),E)},[c,j,p,f].concat(Me(u))),k={width:n,margin:0,padding:0,whiteSpace:N==="nowrap"?"normal":"inherit"};return i.createElement(i.Fragment,null,L,j===bb&&i.createElement(i.Fragment,null,i.createElement(nv,{style:Object.assign(Object.assign(Object.assign({},k),rv),{WebkitLineClamp:l}),ref:b},g),i.createElement(nv,{style:Object.assign(Object.assign(Object.assign({},k),rv),{WebkitLineClamp:l-1}),ref:$},g),i.createElement(nv,{style:Object.assign(Object.assign(Object.assign({},k),rv),{WebkitLineClamp:1}),ref:w},a([],!0))),j===yb&&p&&p[0]!==p[1]&&i.createElement(nv,{style:Object.assign(Object.assign({},k),{top:400}),ref:x},a(WO(f,B),!0)),j===hb&&i.createElement("span",{style:{whiteSpace:"inherit"},ref:S}))}const Ore=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:i.createElement(_n,Object.assign({open:t?void 0:!1},r),n);var jre=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 Rre({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 Ire="...",UO=["delete","mark","code","underline","strong","keyboard","italic"],lp=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:y}=e,x=jre(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:S,direction:b}=i.useContext(Rt),[$]=Aa("Text"),w=i.useRef(null),E=i.useRef(null),R=S("typography",r),j=En(x,UO),[I,O]=vb(v),[M,N]=Cn(!1,{value:O.editing}),{triggerType:P=["icon"]}=O,B=we=>{var Oe;we&&((Oe=O.onStart)===null||Oe===void 0||Oe.call(O)),N(we)},L=hre(M);an(()=>{var we;!M&&L&&((we=E.current)===null||we===void 0||we.focus())},[M]);const k=we=>{we==null||we.preventDefault(),B(!0)},_=we=>{var Oe;(Oe=O.onChange)===null||Oe===void 0||Oe.call(O,we),B(!1)},H=()=>{var we;(we=O.onCancel)===null||we===void 0||we.call(O),B(!1)},[z,D]=vb(g),{copied:F,copyLoading:W,onClick:U}=pre({copyConfig:D,children:d}),[V,G]=i.useState(!1),[q,K]=i.useState(!1),[Z,Q]=i.useState(!1),[te,X]=i.useState(!1),[oe,ae]=i.useState(!0),[re,Y]=vb(f,{expandable:!1,symbol:we=>we?$==null?void 0:$.collapse:$==null?void 0:$.expand}),[ee,ie]=Cn(Y.defaultExpanded||!1,{value:Y.expanded}),ue=re&&(!ee||Y.expandable==="collapsible"),{rows:se=1}=Y,pe=i.useMemo(()=>ue&&(Y.suffix!==void 0||Y.onEllipsis||Y.expandable||I||z),[ue,Y,I,z]);an(()=>{re&&!pe&&(G(jy("webkitLineClamp")),K(jy("textOverflow")))},[pe,re]);const[fe,he]=i.useState(ue),Se=i.useMemo(()=>pe?!1:se===1?q:V,[pe,q,V]);an(()=>{he(Se&&ue)},[Se,ue]);const be=ue&&(fe?te:Z),$e=ue&&se===1&&fe,xe=ue&&se>1&&fe,ye=(we,Oe)=>{var Te;ie(Oe.expanded),(Te=Y.onExpand)===null||Te===void 0||Te.call(Y,we,Oe)},[Ne,_e]=i.useState(0),Qe=({offsetWidth:we})=>{_e(we)},Ke=we=>{var Oe;Q(we),Z!==we&&((Oe=Y.onEllipsis)===null||Oe===void 0||Oe.call(Y,we))};i.useEffect(()=>{const we=w.current;if(re&&fe&&we){const Oe=Sre(we);te!==Oe&&X(Oe)}},[re,fe,d,xe,oe,Ne]),i.useEffect(()=>{const we=w.current;if(typeof IntersectionObserver>"u"||!we||!fe||!ue)return;const Oe=new IntersectionObserver(()=>{ae(!!we.offsetParent)});return Oe.observe(we),()=>{Oe.disconnect()}},[fe,ue]);const Fe=bre(Y.tooltip,O.text,d),Xe=i.useMemo(()=>{if(!(!re||fe))return[O.text,d,y,Fe.title].find(WC)},[re,fe,y,Fe.title,be]);if(M)return i.createElement(ure,{value:(n=O.text)!==null&&n!==void 0?n:typeof d=="string"?d:"",onSave:_,onCancel:H,onEnd:O.onEnd,prefixCls:R,className:a,style:l,direction:b,component:p,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const Pe=()=>{const{expandable:we,symbol:Oe}=Y;return we?i.createElement("button",{type:"button",key:"expand",className:`${R}-${ee?"collapse":"expand"}`,onClick:Te=>ye(Te,{expanded:!ee}),"aria-label":ee?$.collapse:$==null?void 0:$.expand},typeof Oe=="function"?Oe(ee):Oe):null},je=()=>{if(!I)return;const{icon:we,tooltip:Oe,tabIndex:Te}=O,Le=Jr(Oe)[0]||($==null?void 0:$.edit),tt=typeof Le=="string"?Le:"";return P.includes("icon")?i.createElement(_n,{key:"edit",title:Oe===!1?"":Le},i.createElement("button",{type:"button",ref:E,className:`${R}-edit`,onClick:k,"aria-label":tt,tabIndex:Te},we||i.createElement(yl,{role:"button"}))):null},Ae=()=>z?i.createElement($re,Object.assign({key:"copy"},D,{prefixCls:R,copied:F,locale:$,onCopy:U,loading:W,iconOnly:d==null})):null,Re=we=>[we&&Pe(),je(),Ae()],ze=we=>[we&&!ee&&i.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Ire),Y.suffix,Re(we)];return i.createElement(ha,{onResize:Qe,disabled:!ue},we=>i.createElement(Ore,{tooltipProps:Fe,enableEllipsis:ue,isEllipsis:be},i.createElement(UN,Object.assign({className:de({[`${R}-${c}`]:c,[`${R}-disabled`]:u,[`${R}-ellipsis`]:re,[`${R}-ellipsis-single-line`]:$e,[`${R}-ellipsis-multiple-line`]:xe},a),prefixCls:r,style:Object.assign(Object.assign({},l),{WebkitLineClamp:xe?se:void 0}),component:p,ref:Mr(we,w,t),direction:b,onClick:P.includes("text")?k:void 0,"aria-label":Xe==null?void 0:Xe.toString(),title:y},j),i.createElement(Ere,{enableMeasure:ue&&!fe,text:d,rows:se,width:Ne,onEllipsis:Ke,expanded:ee,miscDeps:[F,ee,W,I,z,$].concat(Me(UO.map(Oe=>e[Oe])))},(Oe,Te)=>Rre(e,i.createElement(i.Fragment,null,Oe.length>0&&Te&&!ee&&Xe?i.createElement("span",{key:"show-content","aria-hidden":!0},Oe):Oe,ze(Te)))))))});var Nre=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 Mre=i.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:a,navigate:l}=e,c=Nre(e,["ellipsis","rel","children","navigate"]),u=Object.assign(Object.assign({},c),{rel:r===void 0&&c.target==="_blank"?"noopener noreferrer":r});return i.createElement(lp,Object.assign({},u,{ref:t,ellipsis:!!n,component:"a"}),a)});var Tre=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 Pre=i.forwardRef((e,t)=>{const{children:n}=e,r=Tre(e,["children"]);return i.createElement(lp,Object.assign({ref:t},r,{component:"div"}),n)});var zre=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 Dre=(e,t)=>{const{ellipsis:n,children:r}=e,a=zre(e,["ellipsis","children"]),l=i.useMemo(()=>n&&typeof n=="object"?En(n,["expandable","rows"]):n,[n]);return i.createElement(lp,Object.assign({ref:t},a,{ellipsis:l,component:"span"}),r)},_re=i.forwardRef(Dre);var Are=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 Bre=[1,2,3,4,5],kre=i.forwardRef((e,t)=>{const{level:n=1,children:r}=e,a=Are(e,["level","children"]),l=Bre.includes(n)?`h${n}`:"h1";return i.createElement(lp,Object.assign({ref:t},a,{component:l}),r)}),Xn=UN;Xn.Text=_re;Xn.Link=Mre;Xn.Title=kre;Xn.Paragraph=Pre;const Cb=(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)?(Zn(!1,"Upload takes an invalidate 'accept' type '".concat(u,"'.Skip for check.")),!0):!1})}return!0});function Lre(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 qO(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function GO(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(Lre(e,t),qO(t)):e.onSuccess(qO(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 Hre=(function(){var e=Oa(Kn().mark(function t(n,r){var a,l,c,u,d,f,v,g;return Kn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:f=function(){return f=Oa(Kn().mark(function S(b){return Kn().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",new Promise(function(E){b.file(function(R){r(R)?(b.fullPath&&!R.webkitRelativePath&&(Object.defineProperties(R,{webkitRelativePath:{writable:!0}}),R.webkitRelativePath=b.fullPath.replace(/^\//,""),Object.defineProperties(R,{webkitRelativePath:{writable:!1}})),E(R)):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=Oa(Kn().mark(function S(b){var $,w,E,R,j;return Kn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:$=b.createReader(),w=[];case 2:return O.next=5,new Promise(function(M){$.readEntries(M,function(){return M([])})});case 5:if(E=O.sent,R=E.length,R){O.next=9;break}return O.abrupt("break",12);case 9:for(j=0;j<R;j++)w.push(E[j]);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(x){return l.push(x.webkitGetAsEntry())}),v=(function(){var x=Oa(Kn().mark(function S(b,$){var w,E;return Kn().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(b){j.next=2;break}return j.abrupt("return");case 2:if(b.path=$||"",!b.isFile){j.next=10;break}return j.next=6,d(b);case 6:w=j.sent,w&&a.push(w),j.next=15;break;case 10:if(!b.isDirectory){j.next=15;break}return j.next=13,c(b);case 13:E=j.sent,l.push.apply(l,Me(E));case 15:case"end":return j.stop()}},S)}));return function(b,$){return x.apply(this,arguments)}})(),g=0;case 9:if(!(g<l.length)){y.next=15;break}return y.next=12,v(l[g]);case 12:g++,y.next=9;break;case 15:return y.abrupt("return",a);case 16:case"end":return y.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}})(),Fre=+new Date,Vre=0;function xb(){return"rc-upload-".concat(Fre,"-").concat(++Vre)}var Wre=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","folder","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Kre=(function(e){Ja(n,e);var t=ho(n);function n(){var r;gr(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)),ne(Et(r),"state",{uid:xb()}),ne(Et(r),"reqs",{}),ne(Et(r),"fileInput",void 0),ne(Et(r),"_isMounted",void 0),ne(Et(r),"onChange",function(u){var d=r.props,f=d.accept,v=d.directory,g=u.target.files,p=Me(g).filter(function(y){return!v||Cb(y,f)});r.uploadFiles(p),r.reset()}),ne(Et(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)}}),ne(Et(r),"onKeyDown",function(u){u.key==="Enter"&&r.onClick(u)}),ne(Et(r),"onDataTransferFiles",(function(){var u=Oa(Kn().mark(function d(f,v){var g,p,y,x,S,b,$;return Kn().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(g=r.props,p=g.multiple,y=g.accept,x=g.directory,S=Me(f.items||[]),b=Me(f.files||[]),(b.length>0||S.some(function(R){return R.kind==="file"}))&&(v==null||v()),!x){E.next=11;break}return E.next=7,Hre(Array.prototype.slice.call(S),function(R){return Cb(R,r.props.accept)});case 7:b=E.sent,r.uploadFiles(b),E.next=14;break;case 11:$=Me(b).filter(function(R){return Cb(R,y)}),p===!1&&($=b.slice(0,1)),r.uploadFiles($);case 14:case"end":return E.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}})()),ne(Et(r),"onFilePaste",(function(){var u=Oa(Kn().mark(function d(f){var v,g;return Kn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(v=r.props.pastable,v){y.next=3;break}return y.abrupt("return");case 3:if(f.type!=="paste"){y.next=6;break}return g=f.clipboardData,y.abrupt("return",r.onDataTransferFiles(g,function(){f.preventDefault()}));case 6:case"end":return y.stop()}},d)}));return function(d){return u.apply(this,arguments)}})()),ne(Et(r),"onFileDragOver",function(u){u.preventDefault()}),ne(Et(r),"onFileDrop",(function(){var u=Oa(Kn().mark(function d(f){var v;return Kn().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)}})()),ne(Et(r),"uploadFiles",function(u){var d=Me(u),f=d.map(function(v){return v.uid=xb(),r.processFile(v,d)});Promise.all(f).then(function(v){var g=r.props.onBatchStart;g==null||g(v.map(function(p){var y=p.origin,x=p.parsedFile;return{file:y,parsedFile:x}})),v.filter(function(p){return p.parsedFile!==null}).forEach(function(p){r.post(p)})})}),ne(Et(r),"processFile",(function(){var u=Oa(Kn().mark(function d(f,v){var g,p,y,x,S,b,$,w,E;return Kn().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(g=r.props.beforeUpload,p=f,!g){j.next=14;break}return j.prev=3,j.next=6,g(f,v);case 6:p=j.sent,j.next=12;break;case 9:j.prev=9,j.t0=j.catch(3),p=!1;case 12:if(p!==!1){j.next=14;break}return j.abrupt("return",{origin:f,parsedFile:null,action:null,data:null});case 14:if(y=r.props.action,typeof y!="function"){j.next=21;break}return j.next=18,y(f);case 18:x=j.sent,j.next=22;break;case 21:x=y;case 22:if(S=r.props.data,typeof S!="function"){j.next=29;break}return j.next=26,S(f);case 26:b=j.sent,j.next=30;break;case 29:b=S;case 30:return $=(Ot(p)==="object"||typeof p=="string")&&p?p:f,$ instanceof File?w=$:w=new File([$],f.name,{type:f.type}),E=w,E.uid=f.uid,j.abrupt("return",{origin:f,data:b,parsedFile:E,action:x});case 35:case"end":return j.stop()}},d,null,[[3,9]])}));return function(d,f){return u.apply(this,arguments)}})()),ne(Et(r),"saveFileInput",function(u){r.fileInput=u}),r}return pr(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,y=v.name,x=v.headers,S=v.withCredentials,b=v.method,$=u.uid,w=p||GO,E={action:d,filename:y,data:c,file:f,headers:x,withCredentials:S,method:b||"post",onProgress:function(j){var I=l.props.onProgress;I==null||I(j,f)},onSuccess:function(j,I){var O=l.props.onSuccess;O==null||O(j,f,I),delete l.reqs[$]},onError:function(j,I){var O=l.props.onError;O==null||O(j,I,f),delete l.reqs[$]}};g(u),this.reqs[$]=w(E,{defaultRequest:GO})}}},{key:"reset",value:function(){this.setState({uid:xb()})}},{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,y=a.style,x=a.styles,S=x===void 0?{}:x,b=a.multiple,$=a.accept,w=a.capture,E=a.children,R=a.directory,j=a.folder,I=a.openFileDialogOnClick,O=a.onMouseEnter,M=a.onMouseLeave,N=a.hasControlInside,P=Lt(a,Wre),B=de(ne(ne(ne({},c,!0),"".concat(c,"-disabled"),v),u,u)),L=R||j?{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 ge.createElement(l,Ce({},k,{className:B,role:N?void 0:"button",style:y}),ge.createElement("input",Ce({},Nr(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:ce({display:"none"},S.input),className:f.input,accept:$},L,{multiple:b,onChange:this.onChange},w!=null?{capture:w}:{})),E)}}]),n})(i.Component);function Sb(){}var o1=(function(e){Ja(n,e);var t=ho(n);function n(){var r;gr(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)),ne(Et(r),"uploader",void 0),ne(Et(r),"saveUploader",function(u){r.uploader=u}),r}return pr(n,[{key:"abort",value:function(a){this.uploader.abort(a)}},{key:"render",value:function(){return ge.createElement(Kre,Ce({},this.props,{ref:this.saveUploader}))}}]),n})(i.Component);ne(o1,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Sb,onError:Sb,onSuccess:Sb,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const Ure=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${le(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:`${le(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 ${le(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}}}}}},qre=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({},Xo()),{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({},Qa),{padding:`0 ${le(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:'""'}}})}}},Gre=e=>{const{componentCls:t}=e,n=new tn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new tn("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`]:z1(e)},n,r]},Xre=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:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${u}-thumbnail`]:Object.assign(Object.assign({},Qa),{width:r,height:r,lineHeight:le(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% - ${le(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='${kc[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${kc.primary}']`]:{fill:e.colorError}}},[`${u}-uploading`]:{borderStyle:"dashed",[`${u}-name`]:{marginBottom:a}}},[`${c}${c}-picture-circle ${u}`]:{[`&, &::before, ${u}-thumbnail`]:{borderRadius:"50%"}}}}},Yre=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({},Xo()),{display:"block",[`${t}${t}-select`]:{width:d,height:d,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${le(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% - ${le(l(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${le(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 ${le(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% - ${le(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% - ${le(l(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Qre=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Zre=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},mn(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"}})}},Jre=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),eae=un("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:a,calc:l}=e,c=rn(e,{uploadThumbnailSize:l(t).mul(2).equal(),uploadProgressOffset:l(l(n).div(2)).add(r).equal(),uploadPicCardSize:a});return[Zre(c),Ure(c),Xre(c),Yre(c),qre(c),Gre(c),Qre(c),uf(c)]},Jre);var tae={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"},nae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:tae}))},rae=i.forwardRef(nae),aae={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"},oae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:aae}))},iae=i.forwardRef(oae),lae={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"},sae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:lae}))},cae=i.forwardRef(sae);function av(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 ov(e,t){const n=Me(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function $b(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function uae(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 dae=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},qN=e=>e.indexOf("image/")===0,fae=e=>{if(e.type&&!e.thumbUrl)return qN(e.type);const t=e.thumbUrl||e.url||"",n=dae(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)},nl=200;function mae(e){return new Promise(t=>{if(!e.type||!qN(e.type)){t("");return}const n=document.createElement("canvas");n.width=nl,n.height=nl,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${nl}px; height: ${nl}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=nl,d=nl,f=0,v=0;l>c?(d=c*(nl/l),v=-(d-u)/2):(u=l*(nl/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 vae={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"},gae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:vae}))},KC=i.forwardRef(gae);const pae=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:y,showDownloadIcon:x,previewIcon:S,removeIcon:b,downloadIcon:$,extra:w,onPreview:E,onDownload:R,onClose:j},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(l);let H=i.createElement("div",{className:`${e}-icon`},_);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(P==="uploading"||!l.thumbUrl&&!l.url){const Y=de(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:P!=="uploading"});H=i.createElement("div",{className:Y},_)}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}):_,ee=de(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:g&&!g(l)});H=i.createElement("a",{className:ee,onClick:ie=>E(l,ie),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Y)}const z=de(`${e}-list-item`,`${e}-list-item-${P}`),D=typeof l.linkProps=="string"?JSON.parse(l.linkProps):l.linkProps,F=(typeof y=="function"?y(l):y)?f((typeof b=="function"?b(l):b)||i.createElement($r,null),()=>j(l),e,r.removeFile,!0):null,W=(typeof x=="function"?x(l):x)&&P==="done"?f((typeof $=="function"?$(l):$)||i.createElement(KC,null),()=>R(l),e,r.downloadFile):null,U=a!=="picture-card"&&a!=="picture-circle"&&i.createElement("span",{key:"download-delete",className:de(`${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),q=de(`${e}-list-item-name`),K=l.url?i.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:q,title:l.name},D,{href:l.url,onClick:Y=>E(l,Y)}),l.name,G):i.createElement("span",{key:"view",className:q,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(IC,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(),oe=i.createElement("div",{className:z},H,K,U,Q,L&&i.createElement(ta,{motionName:`${X}-fade`,visible:P==="uploading",motionDeadline:2e3},({className:Y})=>{const ee="percent"in l?i.createElement(mN,Object.assign({type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]},u)):null;return i.createElement("div",{className:de(`${e}-list-item-progress`,Y)},ee)})),ae=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,re=P==="error"?i.createElement(_n,{title:ae,getPopupContainer:Y=>Y.parentNode},oe):oe;return i.createElement("div",{className:de(`${e}-list-item-container`,t),style:n,ref:I},v?v(re,l,c,{download:R.bind(null,l),preview:E.bind(null,l),remove:j.bind(null,l)}):re)}),hae=(e,t)=>{const{listType:n="text",previewFile:r=mae,onPreview:a,onDownload:l,onRemove:c,locale:u,iconRender:d,isImageUrl:f=fae,prefixCls:v,items:g=[],showPreviewIcon:p=!0,showRemoveIcon:y=!0,showDownloadIcon:x=!1,removeIcon:S,previewIcon:b,downloadIcon:$,extra:w,progress:E={size:[-1,2],showInfo:!1},appendAction:R,appendActionVisible:j=!0,itemRender:I,disabled:O}=e,[,M]=j1(),[N,P]=i.useState(!1),B=["picture-card","picture-circle"].includes(n);i.useEffect(()=>{n.startsWith("picture")&&(g||[]).forEach(q=>{!(q.originFileObj instanceof File||q.originFileObj instanceof Blob)||q.thumbUrl!==void 0||(q.thumbUrl="",r==null||r(q.originFileObj).then(K=>{q.thumbUrl=K||"",M()}))})},[n,g,r]),i.useEffect(()=>{P(!0)},[]);const L=(q,K)=>{if(a)return K==null||K.preventDefault(),a(q)},k=q=>{typeof l=="function"?l(q):q.url&&window.open(q.url)},_=q=>{c==null||c(q)},H=q=>{if(d)return d(q,n);const K=q.status==="uploading";if(n.startsWith("picture")){const Z=n==="picture"?i.createElement(To,null):u.uploading,Q=f!=null&&f(q)?i.createElement(cae,null):i.createElement(rae,null);return K?Z:Q}return K?i.createElement(To,null):i.createElement(iae,null)},z=(q,K,Z,Q,te)=>{const X={type:"text",size:"small",title:Q,onClick:oe=>{var ae,re;K(),i.isValidElement(q)&&((re=(ae=q.props).onClick)===null||re===void 0||re.call(ae,oe))},className:`${Z}-list-item-action`,disabled:te?O:!1};return i.isValidElement(q)?i.createElement(Ue,Object.assign({},X,{icon:Or(q,Object.assign(Object.assign({},q.props),{onClick:()=>{}}))})):i.createElement(Ue,Object.assign({},X),i.createElement("span",null,q))};i.useImperativeHandle(t,()=>({handlePreview:L,handleDownload:k}));const{getPrefixCls:D}=i.useContext(Rt),F=D("upload",v),W=D(),U=de(`${F}-list`,`${F}-list-${n}`),V=i.useMemo(()=>En(Lc(W),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[W]),G=Object.assign(Object.assign({},B?{}:V),{motionDeadline:2e3,motionName:`${F}-${B?"animate-inline":"animate"}`,keys:Me(g.map(q=>({key:q.uid,file:q}))),motionAppear:N});return i.createElement("div",{className:U},i.createElement(E1,Object.assign({},G,{component:!1}),({key:q,file:K,className:Z,style:Q})=>i.createElement(pae,{key:q,locale:u,prefixCls:F,className:Z,style:Q,file:K,items:g,progress:E,listType:n,isImgUrl:f,showPreviewIcon:p,showRemoveIcon:y,showDownloadIcon:x,removeIcon:S,previewIcon:b,downloadIcon:$,extra:w,iconRender:H,actionIconRender:z,itemRender:I,onPreview:L,onDownload:k,onClose:_})),R&&i.createElement(ta,Object.assign({},G,{visible:j,forceRender:!0}),({className:q,style:K})=>Or(R,Z=>({className:de(Z.className,q),style:Object.assign(Object.assign(Object.assign({},K),{pointerEvents:q?"none":void 0}),Z.style)}))))},bae=i.forwardRef(hae);var yae=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 $d=`__LIST_IGNORE_${Date.now()}__`,Cae=(e,t)=>{const n=hr("upload"),{fileList:r,defaultFileList:a,onRemove:l,showUploadList:c=!0,listType:u="text",onPreview:d,onDownload:f,onChange:v,onDrop:g,previewFile:p,disabled:y,locale:x,iconRender:S,isImageUrl:b,progress:$,prefixCls:w,className:E,type:R="select",children:j,style:I,itemRender:O,maxCount:M,data:N={},multiple:P=!1,hasControlInside:B=!0,action:L="",accept:k="",supportServerRender:_=!0,rootClassName:H}=e,z=i.useContext(Kr),D=y??z,F=e.customRequest||n.customRequest,[W,U]=Cn(a||[],{value:r,postState:we=>we??[]}),[V,G]=i.useState("drop"),q=i.useRef(null),K=i.useRef(null);i.useMemo(()=>{const we=Date.now();(r||[]).forEach((Oe,Te)=>{!Oe.uid&&!Object.isFrozen(Oe)&&(Oe.uid=`__AUTO__${we}_${Te}__`)})},[r]);const Z=(we,Oe,Te)=>{let Le=Me(Oe),tt=!1;M===1?Le=Le.slice(-1):M&&(tt=Le.length>M,Le=Le.slice(0,M)),vo.flushSync(()=>{U(Le)});const Ct={file:we,fileList:Le};Te&&(Ct.event=Te),(!tt||we.status==="removed"||Le.some(We=>We.uid===we.uid))&&vo.flushSync(()=>{v==null||v(Ct)})},Q=(we,Oe)=>yae(void 0,void 0,void 0,function*(){const{beforeUpload:Te,transformFile:Le}=e;let tt=we;if(Te){const Ct=yield Te(we,Oe);if(Ct===!1)return!1;if(delete we[$d],Ct===$d)return Object.defineProperty(we,$d,{value:!0,configurable:!0}),!1;typeof Ct=="object"&&Ct&&(tt=Ct)}return Le&&(tt=yield Le(tt)),tt}),te=we=>{const Oe=we.filter(tt=>!tt.file[$d]);if(!Oe.length)return;const Te=Oe.map(tt=>av(tt.file));let Le=Me(W);Te.forEach(tt=>{Le=ov(tt,Le)}),Te.forEach((tt,Ct)=>{let We=tt;if(Oe[Ct].parsedFile)tt.status="uploading";else{const{originFileObj:nt}=tt;let dt;try{dt=new File([nt],nt.name,{type:nt.type})}catch{dt=new Blob([nt],{type:nt.type}),dt.name=nt.name,dt.lastModifiedDate=new Date,dt.lastModified=new Date().getTime()}dt.uid=tt.uid,We=dt}Z(We,Le)})},X=(we,Oe,Te)=>{try{typeof we=="string"&&(we=JSON.parse(we))}catch{}if(!$b(Oe,W))return;const Le=av(Oe);Le.status="done",Le.percent=100,Le.response=we,Le.xhr=Te;const tt=ov(Le,W);Z(Le,tt)},oe=(we,Oe)=>{if(!$b(Oe,W))return;const Te=av(Oe);Te.status="uploading",Te.percent=we.percent;const Le=ov(Te,W);Z(Te,Le,we)},ae=(we,Oe,Te)=>{if(!$b(Te,W))return;const Le=av(Te);Le.error=we,Le.response=Oe,Le.status="error";const tt=ov(Le,W);Z(Le,tt)},re=we=>{let Oe;Promise.resolve(typeof l=="function"?l(we):l).then(Te=>{var Le;if(Te===!1)return;const tt=uae(we,W);tt&&(Oe=Object.assign(Object.assign({},we),{status:"removed"}),W==null||W.forEach(Ct=>{const We=Oe.uid!==void 0?"uid":"name";Ct[We]===Oe[We]&&!Object.isFrozen(Ct)&&(Ct.status="removed")}),(Le=q.current)===null||Le===void 0||Le.abort(Oe),Z(Oe,tt))})},Y=we=>{G(we.type),we.type==="drop"&&(g==null||g(we))};i.useImperativeHandle(t,()=>({onBatchStart:te,onSuccess:X,onProgress:oe,onError:ae,fileList:W,upload:q.current,nativeElement:K.current}));const{getPrefixCls:ee,direction:ie,upload:ue}=i.useContext(Rt),se=ee("upload",w),pe=Object.assign(Object.assign({onBatchStart:te,onError:ae,onProgress:oe,onSuccess:X},e),{customRequest:F,data:N,multiple:P,action:L,accept:k,supportServerRender:_,prefixCls:se,disabled:D,beforeUpload:Q,onChange:void 0,hasControlInside:B});delete pe.className,delete pe.style,(!j||D)&&delete pe.id;const fe=`${se}-wrapper`,[he,Se,be]=eae(se,fe),[$e]=Aa("Upload",po.Upload),{showRemoveIcon:xe,showPreviewIcon:ye,showDownloadIcon:Ne,removeIcon:_e,previewIcon:Qe,downloadIcon:Ke,extra:Fe}=typeof c=="boolean"?{}:c,Xe=typeof xe>"u"?!D:xe,Pe=(we,Oe)=>c?i.createElement(bae,{prefixCls:se,listType:u,items:W,previewFile:p,onPreview:d,onDownload:f,onRemove:re,showRemoveIcon:Xe,showPreviewIcon:ye,showDownloadIcon:Ne,removeIcon:_e,previewIcon:Qe,downloadIcon:Ke,iconRender:S,extra:Fe,locale:Object.assign(Object.assign({},$e),x),isImageUrl:b,progress:$,appendAction:we,appendActionVisible:Oe,itemRender:O,disabled:D}):we,je=de(fe,E,H,Se,be,ue==null?void 0:ue.className,{[`${se}-rtl`]:ie==="rtl",[`${se}-picture-card-wrapper`]:u==="picture-card",[`${se}-picture-circle-wrapper`]:u==="picture-circle"}),Ae=Object.assign(Object.assign({},ue==null?void 0:ue.style),I);if(R==="drag"){const we=de(Se,se,`${se}-drag`,{[`${se}-drag-uploading`]:W.some(Oe=>Oe.status==="uploading"),[`${se}-drag-hover`]:V==="dragover",[`${se}-disabled`]:D,[`${se}-rtl`]:ie==="rtl"});return he(i.createElement("span",{className:je,ref:K},i.createElement("div",{className:we,style:Ae,onDrop:Y,onDragOver:Y,onDragLeave:Y},i.createElement(o1,Object.assign({},pe,{ref:q,className:`${se}-btn`}),i.createElement("div",{className:`${se}-drag-container`},j))),Pe()))}const Re=de(se,`${se}-select`,{[`${se}-disabled`]:D,[`${se}-hidden`]:!j}),ze=i.createElement("div",{className:Re,style:Ae},i.createElement(o1,Object.assign({},pe,{ref:q})));return he(u==="picture-card"||u==="picture-circle"?i.createElement("span",{className:je,ref:K},Pe(ze,!!j)):i.createElement("span",{className:je,ref:K},ze,Pe()))},GN=i.forwardRef(Cae);var xae=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 Sae=i.forwardRef((e,t)=>{const{style:n,height:r,hasControlInside:a=!1,children:l}=e,c=xae(e,["style","height","hasControlInside","children"]),u=Object.assign(Object.assign({},n),{height:r});return i.createElement(GN,Object.assign({ref:t,hasControlInside:a},c,{style:u,type:"drag"}),l)}),sp=GN;sp.Dragger=Sae;sp.LIST_IGNORE=$d;var $ae={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"},wae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:$ae}))},XN=i.forwardRef(wae),Eae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"},Oae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Eae}))},jae=i.forwardRef(Oae),Rae={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"},Iae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Rae}))},i1=i.forwardRef(Iae),Nae={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"},Mae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Nae}))},YN=i.forwardRef(Mae),Tae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"},Pae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Tae}))},l1=i.forwardRef(Pae),zae={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"},Dae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:zae}))},ef=i.forwardRef(Dae),_ae={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"},Aae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:_ae}))},Oi=i.forwardRef(Aae),Bae={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"},kae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Bae}))},UC=i.forwardRef(kae),Lae={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"},Hae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Lae}))},Fae=i.forwardRef(Hae),Vae={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"},Wae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Vae}))},Kae=i.forwardRef(Wae),Uae={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"},qae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Uae}))},Gae=i.forwardRef(qae),Xae={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},Yae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Xae}))},XO=i.forwardRef(Yae),Qae={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"},Zae=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Qae}))},ji=i.forwardRef(Zae),Jae={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"},eoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Jae}))},YO=i.forwardRef(eoe),toe={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"},noe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:toe}))},roe=i.forwardRef(noe),aoe={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"},ooe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:aoe}))},s1=i.forwardRef(ooe),ioe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z"}}]},name:"customer-service",theme:"outlined"},loe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:ioe}))},soe=i.forwardRef(loe),coe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"},uoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:coe}))},doe=i.forwardRef(uoe),foe={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"},moe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:foe}))},voe=i.forwardRef(moe),goe={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"},poe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:goe}))},ag=i.forwardRef(poe),hoe={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"},boe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:hoe}))},qC=i.forwardRef(boe),yoe={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"},Coe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:yoe}))},QN=i.forwardRef(Coe),xoe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 392h64v64h-64zm0 190v160h128V582h-64v-62h-64v62zm80 48v64h-32v-64h32zm-16-302h64v64h-64zm-64-64h64v64h-64zm64 192h64v64h-64zm0-256h64v64h-64zm494.6 88.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 562H232V136h64v64h64v-64h174v216a42 42 0 0042 42h216v494z"}}]},name:"file-zip",theme:"outlined"},Soe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:xoe}))},QO=i.forwardRef(Soe),$oe={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"},woe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:$oe}))},Eoe=i.forwardRef(woe),Ooe={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"},joe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Ooe}))},tf=i.forwardRef(joe),Roe={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"},Ioe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Roe}))},c1=i.forwardRef(Ioe),Noe={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"},Moe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Noe}))},Toe=i.forwardRef(Moe),Poe={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"},zoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Poe}))},Doe=i.forwardRef(zoe),_oe={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"},Aoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:_oe}))},jf=i.forwardRef(Aoe),Boe={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"},koe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Boe}))},Loe=i.forwardRef(koe),Hoe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},Foe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Hoe}))},Voe=i.forwardRef(Foe),Woe={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"},Koe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Woe}))},nf=i.forwardRef(Koe),Uoe={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"},qoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Uoe}))},Goe=i.forwardRef(qoe),Xoe={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"},Yoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Xoe}))},rf=i.forwardRef(Yoe),Qoe={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"},Zoe=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Qoe}))},xs=i.forwardRef(Zoe),Joe={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"},eie=function(t,n){return i.createElement(ht,Ce({},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:"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"},rie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:nie}))},Td=i.forwardRef(rie),aie={icon:{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 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"},oie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:aie}))},iie=i.forwardRef(oie),lie={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"},sie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:lie}))},wb=i.forwardRef(sie),cie={icon:{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.2zM304 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"}}]},name:"picture",theme:"outlined"},uie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:cie}))},ZO=i.forwardRef(uie),die={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"},fie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:die}))},mie=i.forwardRef(fie),vie={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"},gie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:vie}))},u1=i.forwardRef(gie),pie={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"},hie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:pie}))},af=i.forwardRef(hie),bie={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"},yie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:bie}))},wl=i.forwardRef(yie),Cie={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"},xie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Cie}))},Sie=i.forwardRef(xie),$ie={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"},wie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:$ie}))},Eie=i.forwardRef(wie),Oie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 384h56c4.4 0 8-3.6 8-8V200h176c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-37.6 0-68 30.4-68 68v180c0 4.4 3.6 8 8 8zm512-184h176v176c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V196c0-37.6-30.4-68-68-68H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM376 824H200V648c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v180c0 37.6 30.4 68 68 68h180c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm512-184h-56c-4.4 0-8 3.6-8 8v176H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h180c37.6 0 68-30.4 68-68V648c0-4.4-3.6-8-8-8zm16-164H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"scan",theme:"outlined"},jie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Oie}))},JO=i.forwardRef(jie),Rie={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"},Iie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Rie}))},GC=i.forwardRef(Iie),Nie={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"},Mie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Nie}))},ZN=i.forwardRef(Mie),Tie={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"},Pie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Tie}))},og=i.forwardRef(Pie),zie={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"},Die=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:zie}))},ig=i.forwardRef(Die),_ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},Aie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:_ie}))},Bie=i.forwardRef(Aie),kie={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"},Lie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:kie}))},JN=i.forwardRef(Lie),Hie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226zM208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"video-camera",theme:"outlined"},Fie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Hie}))},Vie=i.forwardRef(Fie),Wie={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"},Kie=function(t,n){return i.createElement(ht,Ce({},t,{ref:n,icon:Wie}))},Xc=i.forwardRef(Kie);const Uie="0.1.21",qie={version:Uie};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 Sr={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"})},Gie={list:()=>$t("/api/plugins")},rl={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"})},bi={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"})},Eb={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})})},eM={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})})},Vr={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})})},iv={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)})},xc={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)})},Ca={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})})},Rc={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"})},Pd={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"})},al={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)})},Ob={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})})},dd={scan:e=>$t("/api/file-organizer/scan",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),execute:e=>$t("/api/file-organizer/execute",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getHistory:()=>$t("/api/file-organizer/history"),undo:e=>$t("/api/file-organizer/undo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:e})}),browse:e=>$t("/api/file-organizer/browse",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e})})},ol={listApps:()=>$t("/api/branch-sync/apps"),createApp:e=>$t("/api/branch-sync/apps",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),updateApp:(e,t)=>$t(`/api/branch-sync/apps/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),deleteApp:e=>$t(`/api/branch-sync/apps/${e}`,{method:"DELETE"}),check:e=>$t("/api/branch-sync/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({app:e})}),createPr:e=>$t("/api/branch-sync/create-pr",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),createBranch:e=>$t("/api/branch-sync/create-branch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),getBranches:e=>$t(`/api/branch-sync/branches?repo=${encodeURIComponent(e)}`)},Xie="modulepreload",Yie=function(e){return"/"+e},e3={},tM=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=Yie(f),f in e3)return;e3[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":Xie,v||(p.as="script"),p.crossOrigin="",p.href=f,d&&p.setAttribute("nonce",d),document.head.appendChild(p),v)return new Promise((y,x)=>{p.addEventListener("load",y),p.addEventListener("error",()=>x(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 nM(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 Qie(e,t={}){const{quality:n=75,progressive:r=!0,optimizeCoding:a=!0,autoSubsample:l=!0}=t,[{encode:c},{imageData:u}]=await Promise.all([tM(()=>import("./index-Dty-56mC.js"),[]),nM(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 t3=[{value:"chrome",label:"Google Chrome"},{value:"edge",label:"Microsoft Edge"},{value:"safari",label:"Safari"}];function Zie(e=!0){return e?t3:t3.filter(t=>t.value!=="safari")}function Zr(e){e&&eM.open(e).catch(()=>{window.open(e,"_blank")})}function XC(e,t){if(!e||!t)return"";const n=e.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`https://${n.startsWith("jira.")?n:`jira.${n}`}/browse/${t.toUpperCase()}`}function Jie(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:ele,Text:Sc,Paragraph:tle}=Xn,fd=()=>new Intl.DateTimeFormat("en-CA").format(new Date),nle=[{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 rle({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 y of f.matchAll(u)){y.index>p&&g.push(f.slice(p,y.index));const x=y[0],S=XC(t,x);g.push(h.jsx("a",{href:S,target:"_blank",rel:"noreferrer",onClick:b=>{b.preventDefault(),Zr(S)},children:x},`${v}-${y.index}`)),p=y.index+x.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(h.jsx("a",{href:v[2],target:"_blank",rel:"noreferrer",onClick:g=>{g.preventDefault(),Zr(v[2])},children:v[1]},f.index));else{const g=f[0].replace(/[),.;:!?]+$/,"");r.push(h.jsx("a",{href:g,target:"_blank",rel:"noreferrer",onClick:p=>{p.preventDefault(),Zr(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 n3=e=>e.text||e.preview||"";function Zl(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 ale(){const{message:e}=Ra.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(fd()),[f,v]=i.useState([]),[g,p]=i.useState([]),[y,x]=i.useState(null),[S,b]=i.useState(""),[$,w]=i.useState("all"),[E,R]=i.useState(null),[j,I]=i.useState(""),[O,M]=i.useState(""),[N,P]=i.useState(60),[B,L]=i.useState(!1),[k,_]=i.useState(!0);i.useEffect(()=>{Vr.status().then(X=>{if(X){if(X.isMac!==void 0&&L(X.isMac),X.clipboardEnabled!==void 0){const oe=X.clipboardEnabled!==!1;n(oe),localStorage.setItem("buddy_clipboard_enabled",String(oe))}X.clipboardImageEnabled!==void 0&&_(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 ae=(await Vr.saveClipboardEnabled(X)).clipboardEnabled!==!1;n(ae),localStorage.setItem("buddy_clipboard_enabled",String(ae)),e.success(X?"Clipboard history enabled":"Clipboard history disabled")}catch(oe){e.error(oe.message)}},z=async X=>{_(X);try{const oe=await Vr.saveClipboardImageEnabled(X);oe&&oe.clipboardImageEnabled!==void 0&&_(oe.clipboardImageEnabled!==!1),e.success(X?"Image clipboard monitoring enabled":"Image clipboard monitoring disabled")}catch(oe){e.error(oe.message)}},D=async X=>{P(X);try{await Vr.saveClipboardDeduplicateMinutes(X),e.success("Duplicate filter window updated.")}catch(oe){e.error(oe.message)}},F=async X=>{try{const[oe,ae]=await Promise.all([rl.list(X),rl.tagged().catch(()=>({items:[]}))]);c(oe.dates),v(oe.items),p(ae.items||[])}catch(oe){e.error(oe.message)}},W=async(X,oe)=>{const ae=(oe||"").trim();if(!ae)return;const re=X.tags||[];if(re.includes(ae)){x(null);return}const Y=[...re,ae],ee=X.date||u;try{await rl.updateTags(ee,X.id,Y),v(ie=>ie.map(ue=>ue.id===X.id?{...ue,tags:Y}:ue)),p(ie=>ie.some(se=>se.id===X.id)?ie.map(se=>se.id===X.id?{...se,tags:Y}:se):[{...X,tags:Y,date:ee},...ie]),e.success("Tag added")}catch(ie){e.error(ie.message)}finally{x(null),b("")}},U=async(X,oe)=>{const re=(X.tags||[]).filter(ee=>ee!==oe),Y=X.date||u;try{await rl.updateTags(Y,X.id,re),v(ee=>ee.map(ie=>ie.id===X.id?{...ie,tags:re}:ie)),p(ee=>re.length===0?ee.filter(ie=>ie.id!==X.id):ee.map(ie=>ie.id===X.id?{...ie,tags:re}:ie)),e.success("Tag removed")}catch(ee){e.error(ee.message)}},V=i.useRef(fd());i.useEffect(()=>{if(!t)return;const X=()=>{const Y=fd();if(Y!==V.current){const ee=V.current;if(V.current=Y,u===ee)return d(Y),!0}return!1};X()||F(u);const ae=()=>{X()||F(u)};window.addEventListener("visibilitychange",ae),window.addEventListener("focus",ae);let re=null;return u===fd()&&(re=setInterval(()=>{document.visibilityState==="visible"&&F(u)},3e3)),()=>{window.removeEventListener("visibilitychange",ae),window.removeEventListener("focus",ae),re&&clearInterval(re)}},[u,t]);const G=async X=>{try{await rl.remove(u,X),await F(u),e.success("Clipboard entry deleted.")}catch(oe){e.error(oe.message)}},q=async X=>{const oe=X.date||u;if(X.imageFile)try{const re=await(await fetch(`${window.location.origin}/api/clipboard/image/${X.imageFile}`)).blob();await navigator.clipboard.write([new ClipboardItem({[re.type]:re})]),rl.copied(oe,X.id).catch(()=>{}),R(X.id),setTimeout(()=>{R(Y=>Y===X.id?null:Y)},1e3)}catch(ae){e.error("Failed to copy image: "+ae.message)}else navigator.clipboard.writeText(X.text||X.preview),rl.copied(oe,X.id).catch(()=>{}),R(X.id),setTimeout(()=>{R(ae=>ae===X.id?null:ae)},1e3)};i.useEffect(()=>{if(!t)return;const X=oe=>{const ae=document.activeElement;if(!(ae&&(ae.tagName==="INPUT"||ae.tagName==="TEXTAREA"||ae.isContentEditable))){if(oe.key==="ArrowLeft"){const re=[...new Set([...l,u])].sort(),Y=re.indexOf(u);Y<re.length-1&&Y!==-1&&d(re[Y+1])}else if(oe.key==="ArrowRight"){const re=[...new Set([...l,u])].sort(),Y=re.indexOf(u);Y>0&&d(re[Y-1])}}};return window.addEventListener("keydown",X),()=>window.removeEventListener("keydown",X)},[l,u,t]),i.useEffect(()=>{if(!t)return;const X=async oe=>{var Y;const ae=document.activeElement;if(ae&&(ae.tagName==="INPUT"||ae.tagName==="TEXTAREA"||ae.isContentEditable))return;const re=(Y=oe.clipboardData)==null?void 0:Y.items;if(re){for(const ee of re)if(ee.type.startsWith("image/")){const ie=ee.getAsFile();if(ie){try{e.loading({content:"Compressing and saving image from paste…",key:"paste-upload",duration:0});const ue=await Qie(ie);await rl.uploadImage(ue);const se=fd();d(se),await F(se),e.success({content:"Image pasted and saved to history!",key:"paste-upload"})}catch(ue){e.error({content:"Failed to save pasted image: "+ue.message,key:"paste-upload"})}break}}}};return window.addEventListener("paste",X),()=>window.removeEventListener("paste",X)},[u,t]);const K=l.reduce((X,oe)=>{var ee;const[ae,re,Y]=oe.split("-");return X[ae]||(X[ae]={}),(ee=X[ae])[re]||(ee[re]=[]),X[ae][re].push(Y),X},{}),Z=Object.entries(K).sort(([X],[oe])=>oe.localeCompare(X)).map(([X,oe])=>({value:X,label:X,children:Object.entries(oe).sort(([ae],[re])=>re.localeCompare(ae)).map(([ae,re])=>({value:ae,label:ae,children:re.sort().reverse().map(Y=>({value:Y,label:Y}))}))})),Q=i.useMemo(()=>$==="tagged"?g:$==="all"?f:$==="image"?f.filter(X=>!!X.imageFile):f.filter(X=>!X.imageFile&&Zl(n3(X),$,O)),[$,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 oe of f)if(oe.imageFile)X.image++;else{const ae=n3(oe);Zl(ae,"jira",O)&&X.jira++,Zl(ae,"account")&&X.account++,Zl(ae,"id")&&X.id++,Zl(ae,"url")&&X.url++,Zl(ae,"json")&&X.json++,Zl(ae,"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 h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx(Sc,{type:"secondary",children:"LOCAL CLIPBOARD"}),h.jsx(ele,{level:2,children:"Clipboard history"}),h.jsx(tle,{type:"secondary",children:"Saved locally and archived by date."})]}),h.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:8},children:[h.jsxs(vt,{size:16,align:"center",children:[h.jsx(Zd,{loading:r,checked:t,onChange:H,checkedChildren:"On",unCheckedChildren:"Off"}),h.jsx(su,{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"})]}),h.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:6},children:[h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[h.jsx(Sc,{type:"secondary",style:{fontSize:12},children:"Deduplicate filter:"}),h.jsx(Fn,{size:"small",disabled:!t||r,value:N,onChange:D,style:{width:160},options:nle})]}),B&&h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[h.jsx(Sc,{type:"secondary",style:{fontSize:12},children:"Monitor image clipboard:"}),h.jsx(Zd,{size:"small",disabled:!t||r,checked:k,onChange:z,checkedChildren:"On",unCheckedChildren:"Off"})]})]})]})]}),t?h.jsxs(h.Fragment,{children:[h.jsx(Lo,{className:"clipboard-tabs",activeKey:$,onChange:w,items:te}),Q.length?h.jsx("div",{className:"clipboard-list",children:Q.map(X=>{const oe=X.date||u,ae=`${window.location.origin}/api/clipboard/${oe}/${X.id}`,re=new Date(X.createdAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return h.jsxs(yn,{size:"small",className:"clipboard-item",children:[h.jsxs("div",{children:[h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[h.jsx(Sc,{type:"secondary",children:re}),X.date&&X.date!==u&&h.jsx(qt,{style:{margin:0},children:X.date}),(X.tags||[]).map(Y=>h.jsx(qt,{color:"blue",closable:!0,onClose:ee=>{ee.preventDefault(),U(X,Y)},style:{margin:0},children:Y},Y)),h.jsx(Y1,{content:h.jsxs(vt.Compact,{style:{width:200},children:[h.jsx(sn,{size:"small",placeholder:"Tag name",value:S,onChange:Y=>b(Y.target.value),onPressEnter:()=>W(X,S)}),h.jsx(Ue,{size:"small",type:"primary",onClick:()=>W(X,S),children:"Add"})]}),title:"Add Tag",trigger:"click",open:y===X.id,onOpenChange:Y=>{x(Y?X.id:null),b("")},children:h.jsxs(qt,{style:{cursor:"pointer",borderStyle:"dashed",margin:0},children:[h.jsx(Yr,{})," Tag"]})})]}),X.imageFile?h.jsx("div",{style:{marginTop:8},children:h.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")})}):h.jsxs(h.Fragment,{children:[h.jsx("pre",{style:{marginTop:8},children:h.jsx(rle,{value:X.preview||X.text,domain:j,jiraIssuePrefix:O})}),X.contentFile&&h.jsxs("span",{className:"clipboard-original",children:[h.jsx("a",{href:ae,target:"_blank",rel:"noreferrer",children:"View original content"}),h.jsxs("a",{href:X.editorUrl,children:["Open in ",X.editorName||"editor"]})]})]})]}),h.jsxs("span",{className:"clipboard-actions",children:[h.jsx(_n,{title:E===X.id?"Copied!":"Copy",children:h.jsx(Ue,{type:"text",icon:E===X.id?h.jsx(js,{style:{color:"#52c41a"}}):h.jsx(ei,{}),onClick:()=>q(X)})}),h.jsx(_n,{title:"Delete",children:h.jsx(Ue,{type:"text",danger:!0,icon:h.jsx($r,{}),onClick:()=>G(X.id)})})]})]},X.id)})}):h.jsx(Bn,{description:`No ${$==="all"?"clipboard entries":`${$==="id"?"ID":$} entries`}${$==="tagged"?".":` for ${u}.`}`})]}):h.jsx(yn,{style:{marginTop:24,textAlign:"center",padding:"48px 0"},children:h.jsx(Bn,{image:h.jsx(og,{style:{fontSize:48,color:"#9ca3af"}}),description:h.jsxs("div",{style:{marginTop:8},children:[h.jsx(Sc,{strong:!0,style:{fontSize:16,display:"block",color:"#374151"},children:"Clipboard history is disabled"}),h.jsx(Sc,{type:"secondary",children:"Turn on the switch in the top-right corner to start capturing and viewing history."})]})})}),h.jsx(Ml.BackTop,{visibilityHeight:240})]})}const rM=[{value:"vscode",label:"VS Code"},{value:"devin",label:"Devin"},{value:"idea",label:"IntelliJ IDEA"}];function aM(e="vscode"){const t=rM.find(n=>n.value===e);return t?t.label:"VS Code"}function oM(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:jb}=Xn;function ole({tasks:e,running:t,onCreate:n,onEdit:r,onStart:a,onStop:l,onRemove:c}){const u=[{title:"Name",dataIndex:"name",render:d=>h.jsx(jb,{strong:!0,children:d})},{title:"Scripts",dataIndex:"items",width:110,render:d=>h.jsxs(jb,{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 h.jsxs(vt,{children:[h.jsx(Ue,{size:"small",danger:v,icon:v?h.jsx(og,{}):h.jsx(u1,{}),onClick:()=>v?l(f):a(f),children:v?"Stop":"Start"}),h.jsx(Ue,{size:"small",onClick:()=>r(f),children:"Edit"}),h.jsx(Ue,{size:"small",danger:!0,icon:h.jsx($r,{}),onClick:()=>c(f),children:"Delete"})]})}}];return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"group-task-header",children:[h.jsx(jb,{type:"secondary",children:"Start selected scripts across multiple services."}),h.jsx(Ue,{type:"primary",icon:h.jsx(Yr,{}),onClick:n,children:"Add quick launch"})]}),e.length?h.jsx(mr,{className:"group-task-table",rowKey:"id",dataSource:e,columns:u,pagination:!1,size:"small"}):h.jsx(Bn,{description:"No quick launches yet.",className:"group-task-empty"})]})}const{Text:Jl}=Xn,md=(e,t)=>`${e}:${t}`,ile=()=>h.jsx("div",{style:{width:"0.8em",height:"0.8em",backgroundColor:"rgba(0,0,0,0.88)"}});function lle({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}:`))),[y,x]=i.useState(()=>p);return i.useEffect(()=>{p&&x(!0)},[t==null?void 0:t.id]),i.useEffect(()=>{p||x(!1)},[p]),h.jsx(Ht.List,{name:"scripts",children:(S,{add:b,remove:$})=>{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}))],R=y?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(md(t.id,O.id))}):E,j=[{title:"Source",width:100,render:(I,O)=>h.jsx(qt,{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(md(t.id,M.id));return h.jsxs(vt,{direction:"vertical",size:1,style:{width:"100%"},children:[O.kind!=="custom"||P?h.jsxs(vt,{size:4,children:[h.jsx(Jl,{strong:!0,children:(M==null?void 0:M.name)||((B=O.script)==null?void 0:B.name)}),N&&h.jsx(wl,{className:"start-script-icon"})]}):h.jsx(Ht.Item,{noStyle:!0,name:[O.name,"name"],rules:[{required:!0,message:"Required"}],children:h.jsx(sn,{placeholder:"serve",allowClear:!0,suffix:N?h.jsx(wl,{className:"start-script-icon"}):null})}),P&&h.jsx(ja,{status:"success",text:h.jsx(Jl,{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(md(t.id,M.id));return O.kind==="package"?h.jsxs(vt,{direction:"vertical",size:0,children:[h.jsxs(Jl,{code:!0,children:[n," run ",O.script.name]}),h.jsx(Jl,{type:"secondary",style:{fontSize:12},children:O.script.command})]}):O.kind==="install"?h.jsx(Jl,{code:!0,children:O.script.command}):N?h.jsx(Jl,{code:!0,children:M==null?void 0:M.command}):h.jsx(Ht.Item,{noStyle:!0,name:[O.name,"command"],rules:[{required:!0,message:"Required"}],children:h.jsx(sn,{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(md(t.id,M.id)),P=t&&(M!=null&&M.id)&&a[md(t.id,M.id)]||0;return h.jsxs(vt,{size:2,children:[t&&h.jsx(_n,{title:N?"Stop":"Start",children:h.jsx(Ue,{type:"text",danger:N,icon:N?h.jsx(ile,{}):h.jsx(mie,{}),onClick:()=>N?f(M):O.kind==="package"?d(M):O.kind==="install"?u(M):c(M),disabled:!(M!=null&&M.id)})}),h.jsx(_n,{title:"Logs",children:h.jsx(ja,{count:P,size:"small",offset:[-2,2],children:h.jsx(Ue,{type:"text",icon:h.jsx(uu,{}),onClick:()=>O.kind==="package"?g(M):v(M),disabled:!t||!(M!=null&&M.id)})})}),O.kind==="custom"&&!N&&h.jsx(_n,{title:"Remove",children:h.jsx(Ue,{type:"text",danger:!0,icon:h.jsx($r,{}),onClick:()=>$(O.name)})})]})}}];return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"script-header",children:[h.jsx(xC,{orientation:"left",children:"Scripts"}),h.jsxs(vt,{size:"middle",align:"center",children:[h.jsxs("label",{style:{display:"inline-flex",alignItems:"center",gap:6,cursor:"pointer",userSelect:"none"},children:[h.jsx(Zd,{size:"small",checked:y,onChange:x,disabled:!t}),h.jsx(Jl,{type:"secondary",style:{fontSize:13},children:"Show running only"})]}),h.jsx(Ue,{icon:h.jsx(Yr,{}),onClick:()=>{x(!1),b({name:"",command:""})},children:"Add script"})]})]}),h.jsx(mr,{size:"small",rowKey:"key",pagination:!1,loading:l===null,dataSource:R,columns:j})]})}})}const sle=e=>h.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"currentColor",style:{verticalAlign:"-0.125em",...e.style},...e,children:h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",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 cle(e){if(!e)return null;const t=e.toLowerCase();return t.includes("bitbucket")?h.jsx(sle,{style:{color:"#2584FF"}}):t.includes("github")?h.jsx(Toe,{style:{color:"#24292e"}}):t.includes("gitlab")?h.jsx(Doe,{style:{color:"#fc6d26"}}):h.jsx(jf,{style:{color:"#1890ff"}})}function iM({repoUrl:e,style:t}){if(!e)return null;const n=cle(e);return n?h.jsx(_n,{title:"Open repository in browser",children:h.jsx(Ue,{type:"text",size:"small",icon:n,onClick:r=>{r.preventDefault(),r.stopPropagation(),Zr(e)},style:{padding:0,width:20,height:20,minWidth:20,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:4,...t}})}):null}const ule=()=>({alias:"",folder:"",groupName:"",executor:"npm",startCommand:void 0,scripts:[]});function dle({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:y,modal:x}=Ra.useApp(),[S]=Ht.useForm(),[b,$]=i.useState(null),[w,E]=i.useState(!1),R=async()=>{E(!0);try{const O=await Vr.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){y.error(O.message)}finally{E(!1)}},j=()=>{x.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){y.error(O.message)}}})};i.useEffect(()=>{e&&(S.resetFields(),S.setFieldsValue(t?{...t,startCommand:t.startCommand||void 0,scripts:t.scripts}:ule()),$(t?null:[]),t&&Sr.packageScripts(t.id).then(O=>$(O.scripts)).catch(()=>$([])))},[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;y.error(O.message)}};return h.jsx(ar,{title:t?h.jsxs(vt,{align:"center",size:6,children:[h.jsxs("span",{children:["Service details · ",t.alias]}),h.jsx(iM,{repoUrl:t.repoUrl})]}):"Add service",open:e,onCancel:l,onOk:I,okText:t?"Save":"Save service",width:860,destroyOnClose:!0,footer:h.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[t?h.jsx(Ue,{type:"primary",danger:!0,onClick:j,children:"Delete service"}):h.jsx("div",{}),h.jsxs(vt,{children:[h.jsx(Ue,{onClick:l,children:"Cancel"}),h.jsx(Ue,{type:"primary",onClick:I,children:t?"Save":"Save service"})]})]}),children:h.jsxs(Ht,{form:S,layout:"vertical",children:[h.jsx(Fv,{className:"service-config",defaultActiveKey:t?[]:["configuration"],items:[{key:"configuration",label:"Service configuration",children:h.jsxs(Ro,{gutter:[16,0],children:[h.jsx(Qn,{xs:24,sm:12,children:h.jsx(Ht.Item,{label:"Name",name:"alias",rules:[{required:!0}],children:h.jsx(sn,{placeholder:"Service name",allowClear:!0})})}),h.jsx(Qn,{xs:24,sm:12,children:h.jsx(Ht.Item,{label:"Project folder",name:"folder",rules:[{required:!0}],children:h.jsx(sn,{prefix:h.jsx(Gc,{style:{color:"#8c8c8c"}}),suffix:h.jsx(Ue,{type:"text",size:"small",icon:h.jsx(Gc,{}),loading:w,onClick:R,style:{fontSize:12,padding:"0 4px"},children:"Browse"}),placeholder:"Project folder path",allowClear:!0})})}),h.jsx(Qn,{xs:24,sm:8,children:h.jsx(Ht.Item,{label:"Group",name:"groupName",children:h.jsx(Wv,{options:n.map(O=>({value:O})),placeholder:"Group name",allowClear:!0})})}),h.jsx(Qn,{xs:24,sm:8,children:h.jsx(Ht.Item,{label:"Executor",name:"executor",rules:[{required:!0}],children:h.jsx(Wv,{options:["npm","pnpm","yarn"].map(O=>({value:O})),placeholder:"npm",allowClear:!0})})}),h.jsx(Qn,{xs:24,sm:8,children:h.jsx(Ht.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=(b||[]).map(P=>P.name),N=[...new Set([...O,...M])].map(P=>({label:P,value:P}));return h.jsx(Ht.Item,{label:"Start script name",name:"startCommand",children:h.jsx(Fn,{placeholder:"Select start script",allowClear:!0,options:N})})}})})]})}]}),h.jsx(Ht.Item,{noStyle:!0,shouldUpdate:(O,M)=>O.executor!==M.executor||O.startCommand!==M.startCommand||O.scripts!==M.scripts,children:()=>h.jsx(lle,{form:S,editing:t,executor:S.getFieldValue("executor")||"npm",running:r,errorCounts:a,packageScripts:b,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:fle}=Xn;function mle({open:e,editingGroupTask:t,groupCatalog:n,onCancel:r,onSave:a}){const{message:l}=Ra.useApp(),[c]=Ht.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:h.jsx("div",{className:"group-task-projects",children:v.map(g=>h.jsx(yn,{size:"small",title:g.alias,children:h.jsx(vt,{direction:"vertical",children:g.scripts.map(p=>h.jsxs(Qr,{value:`${g.id}|${p.id}`,children:[p.name," ",h.jsxs(fle,{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,y]=g.split("|");return{launcherId:p,scriptId:y}})};await a(v)}catch(f){f!=null&&f.errorFields||l.error(f.message)}};return h.jsx(ar,{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:h.jsxs(Ht,{form:c,layout:"vertical",children:[h.jsx(Ht.Item,{label:"Name",name:"name",rules:[{required:!0}],children:h.jsx(sn,{placeholder:"Start local stack",allowClear:!0})}),h.jsx(Ht.Item,{label:"Scripts",name:"items",rules:[{required:!0,message:"Select at least one script."}],children:h.jsx(Qr.Group,{className:"group-task-selector",children:h.jsx(Lo,{items:u})})})]})})}const r3={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 d1({value:e,editor:t}){const[n,r]=i.useState(t||"vscode"),[a,l]=i.useState(""),[c,u]=i.useState("");i.useEffect(()=>{t&&r(t),Vr.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 y="";const x=(w,E)=>w.split(/(\u001b\[[0-9;]*m)/g).map((j,I)=>{const O=j.match(/^\u001b\[([0-9;]*)m$/);if(O){const N=O[1].split(";").map(Number);return y=N.includes(0)?"":r3[N.find(P=>r3[P])]||y,null}if(!j)return null;const M=y||(/\b(error|failed|fatal|exception|TS\d{4,5})\b/i.test(j)?"log-error":/\b(warn|warning)\b/i.test(j)?"log-warning":/\b(success|ready|started|listening)\b/i.test(j)?"log-success":"");return h.jsx("span",{className:M,children:j},`${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,b=f&&f.test(g);return!g.includes("http")&&!g.includes("/")&&!b?x(g,`${p}-0`):g.split(S).map((w,E)=>{if(!w)return null;const R=`${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 h.jsxs("span",{children:[h.jsx("a",{className:"log-link",href:O,target:"_blank",rel:"noreferrer",onClick:N=>{N.preventDefault(),Zr(O)},children:x(w.slice(0,w.length-M.length),`${R}-url`)}),M&&x(M,`${R}-suf`)]},R)}const j=w.replace(/\u001b\[[0-9;]*m/g,"");if(j.startsWith("/")){const[,I,O=""]=j.match(/^(.*?)(:\d+(?::\d+)?)?$/)||[];if(I){const M=oM(n,I,O);return h.jsx("a",{className:"log-link",href:M,target:"_blank",rel:"noreferrer",title:`Open in ${aM(n)}`,children:x(w,R)},R)}}if(f&&a&&(f.lastIndex=0,f.test(j))){const I=[];let O=0;f.lastIndex=0;for(const M of j.matchAll(f)){M.index>O&&I.push(x(j.slice(O,M.index),`${R}-sub-${M.index}`));const N=M[0],P=XC(a,N);I.push(h.jsx("a",{className:"log-link",href:P,target:"_blank",rel:"noreferrer",onClick:B=>{B.preventDefault(),Zr(P)},children:N},`${R}-jira-${M.index}`)),O=M.index+N.length}return O<j.length&&I.push(x(j.slice(O),`${R}-sub-end`)),h.jsx("span",{children:I},R)}return x(w,R)})};return h.jsx("div",{className:"log-output",role:"log",children:e.split(`
|
|
497
|
-
`).map((g,p)=>h.jsx("div",{className:"log-line",children:h.jsx("code",{children:v(g,p)})},p))})}function vle({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 Sr.packageScriptErrorLogs(t.launcher.id,t.script.name):await Sr.packageScriptLogs(t.launcher.id,t.script.name):r==="error"?await Sr.errorLogs(t.launcher.id,t.script.id):await Sr.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 Sr.clearPackageScriptLogs(t.launcher.id,t.script.name):await Sr.clearLogs(t.launcher.id,t.script.id),c(r==="error"?"No error logs yet.":"No logs yet.")}catch{}};return h.jsx(ar,{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:h.jsx(Lo,{activeKey:r,onChange:a,tabBarExtraContent:t&&h.jsxs(vt,{children:[h.jsx(Ue,{icon:h.jsx(Kae,{}),onClick:u,children:"Clear log"}),h.jsx(Ue,{icon:h.jsx(jf,{}),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:h.jsx(d1,{value:l})},{key:"error",label:"Error logs",children:h.jsx(d1,{value:l})}]})})}const{Title:gle,Text:a3,Paragraph:ple}=Xn;function hle({launchers:e,running:t,errorCounts:n={},refresh:r,loading:a}){const{message:l}=Ra.useApp(),[c,u]=i.useState("all"),[d,f]=i.useState([]),[v,g]=i.useState([]),[p,y]=i.useState(!1),[x,S]=i.useState(!1),[b,$]=i.useState(null),[w,E]=i.useState(!1),[R,j]=i.useState(null),[I,O]=i.useState(!1),[M,N]=i.useState(null),[P,B]=i.useState("vscode");i.useEffect(()=>{bi.list().then(f).catch(ae=>l.error(ae.message)),Vr.status().then(ae=>{ae!=null&&ae.defaultEditor&&B(ae.defaultEditor)}).catch(()=>{})},[]);const L=i.useMemo(()=>[...new Set(e.map(ae=>ae.groupName).filter(Boolean))].sort((ae,re)=>ae.localeCompare(re)),[e]),k=c==="all"?e:e.filter(ae=>ae.groupName===c),_=(ae=null)=>{j(ae),E(!0)},H=async ae=>{if(R){const re=await Sr.update(R.id,ae);j(re)}else await Sr.create(ae),E(!1);l.success("Saved"),await r()},z=async ae=>{try{const re=[...t].filter(Y=>Y.startsWith(`${ae.id}:`));if(re.length>0){const Y=re.map(ee=>ee.slice(`${ae.id}:`.length));await Promise.all(Y.map(ee=>Sr.stop(ae.id,ee)))}await Sr.remove(ae.id),E(!1),l.success("Deleted"),await r()}catch(re){l.error(re.message)}},D=async(ae,re)=>{try{await Sr.run(ae.id,re.id),await r()}catch(Y){l.error(Y.message)}},F=async ae=>{try{await Sr.runInstall(ae.id),await r()}catch(re){l.error(re.message)}},W=async(ae,re)=>{try{await Sr.runPackageScript(ae.id,re.name),await r()}catch(Y){l.error(Y.message)}},U=(ae,re,Y=!1)=>{N({launcher:ae,script:re,package:Y}),O(!0)},V=async ae=>{try{await Sr.start(ae.id),await r()}catch(re){l.warning(re.message)}},G=async(ae,re)=>{try{await Sr.stop(ae.id,re),await r()}catch(Y){await r(),l.error(Y.message)}},q=async(ae,re)=>{try{await Promise.all(re.map(Y=>Sr.stop(ae.id,Y))),await r()}catch(Y){await r(),l.error(Y.message)}},K=async(ae=null)=>{if($(ae),S(!0),!v.length)try{g(await bi.catalog())}catch(re){l.error(re.message)}},Z=async ae=>{b?await bi.update(b.id,ae):await bi.create(ae),S(!1),f(await bi.list())},Q=async ae=>{const re=`group-task-${ae.id}`;l.loading({content:`Starting ${ae.name}…`,key:re,duration:0});try{const Y=await bi.start(ae.id),ee=Y.results.filter(ie=>ie.error);ee.length?l.warning({content:`${Y.results.length-ee.length} started, ${ee.length} failed.`,key:re}):l.success({content:`${Y.results.length} scripts started.`,key:re}),await r()}catch(Y){l.error({content:Y.message,key:re})}},te=async ae=>{const re=`group-task-${ae.id}`;l.loading({content:`Stopping ${ae.name}…`,key:re,duration:0});try{const ee=(await bi.stop(ae.id)).results.filter(ie=>ie.ok).length;l.success({content:`${ee} scripts stopped.`,key:re}),await r()}catch(Y){l.error({content:Y.message,key:re})}},X=async ae=>{try{await bi.remove(ae.id),f(await bi.list())}catch(re){l.error(re.message)}},oe=[{title:"Service",dataIndex:"alias",render:(ae,re)=>h.jsxs(vt,{size:8,align:"center",children:[h.jsx("a",{href:oM(P,re.folder,"",{newWindow:!0}),title:`Open ${re.folder} in ${aM(P)}`,onClick:Y=>{Y.preventDefault(),Y.stopPropagation(),eM.openPath(re.folder)},style:{fontWeight:600},children:ae}),h.jsx(iM,{repoUrl:re.repoUrl}),re.branch&&h.jsx(a3,{code:!0,style:{margin:0},children:re.branch})]})},{title:"Scripts",width:170,align:"center",render:(ae,re)=>{const Y=[...t].filter(ue=>ue.startsWith(`${re.id}:`)).length,ee=re.scripts.length+(re.packageScriptCount||0),ie=Object.entries(n).filter(([ue])=>ue.startsWith(`${re.id}:`)).reduce((ue,[,se])=>ue+(se||0),0);return h.jsxs(vt,{size:8,children:[h.jsx(ja,{status:Y?"success":"default",text:`${Y} / ${ee} running`}),ie>0&&h.jsx(ja,{count:ie,overflowCount:999,style:{backgroundColor:"#ff4d4f"}})]})}},{title:"Action",width:108,align:"center",render:(ae,re)=>{const Y=[...t].filter(ie=>ie.startsWith(`${re.id}:`)),ee=Y.length>0;return h.jsx(Ue,{size:"small",type:ee?"default":"primary",danger:ee,icon:ee?h.jsx(og,{}):h.jsx(u1,{}),onClick:ie=>{ie.stopPropagation(),ee?q(re,Y.map(ue=>ue.slice(`${re.id}:`.length))):V(re)},children:ee?"Stop":"Start"})}}];return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx(a3,{type:"secondary",children:"SERVICES"}),h.jsx(gle,{level:2,children:"Launcher"}),h.jsx(ple,{type:"secondary",children:"Manage and run local project scripts."})]}),h.jsxs(vt,{children:[h.jsx(Ue,{onClick:()=>y(!0),children:"Quick Launch"}),h.jsx(Ue,{type:"primary",icon:h.jsx(Yr,{}),onClick:()=>_(),children:"Add service"})]})]}),a?h.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:h.jsx(la,{size:"large"})}):e.length?h.jsxs(h.Fragment,{children:[d.length>0&&h.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:h.jsxs(vt,{wrap:!0,size:"middle",children:[h.jsx("span",{style:{fontSize:11,color:"#727b94",fontWeight:750,textTransform:"uppercase",letterSpacing:"0.08em"},children:"Quick Launch:"}),d.map(ae=>{const re=ae.items.every(Y=>t.has(`${Y.launcherId}:${Y.scriptId}`));return h.jsxs(Ue,{type:re?"default":"primary",danger:re,icon:re?h.jsx(og,{}):h.jsx(u1,{}),onClick:()=>re?te(ae):Q(ae),children:[re?"Stop":"Start"," ",ae.name]},ae.id)})]})}),h.jsx(Lo,{activeKey:c,onChange:u,className:"group-tabs",items:[{key:"all",label:`All (${e.length})`},...L.map(ae=>({key:ae,label:`${ae} (${e.filter(re=>re.groupName===ae).length})`}))]}),k.length?h.jsx(mr,{className:"launcher-table",rowKey:"id",dataSource:k,columns:oe,pagination:!1,onRow:ae=>({onClick:()=>_(ae)})}):h.jsx(Bn,{description:"No services in this group."})]}):h.jsx(Bn,{description:"No services yet",children:h.jsx(Ue,{type:"primary",onClick:()=>_(),children:"Add service"})}),h.jsx(dle,{open:w,editing:R,groups:L,running:t,errorCounts:n,onCancel:()=>E(!1),onSave:H,onRun:D,onRunInstall:F,onRunPackage:W,onStop:G,onLogs:U,onDelete:z}),h.jsx(ar,{title:"Quick Launch",open:p,onCancel:()=>y(!1),footer:null,width:760,destroyOnClose:!0,children:h.jsx(ole,{tasks:d,running:t,onCreate:()=>K(),onEdit:K,onStart:Q,onStop:te,onRemove:X})}),h.jsx(mle,{open:x,editingGroupTask:b,groupCatalog:v,onCancel:()=>S(!1),onSave:Z}),h.jsx(vle,{open:I,logTarget:M,onCancel:()=>O(!1)})]})}const{Title:ble,Text:Uo,Paragraph:yle}=Xn;function Cle({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),y=async()=>{a(!0);try{n((await Eb.list()).ports)}catch($){Hn.error($.message)}finally{a(!1)}};i.useEffect(()=>{y()},[]);const x=async()=>{if(l){d(!0);try{const $=(await Eb.get(l)).process;p($),v(!0)}catch($){Hn.error($.message)}finally{d(!1)}}},S=async({port:$,pid:w})=>{try{await Eb.kill($,w),Hn.success(`Process on port ${$} was killed.`),await y(),e&&await e()}catch(E){Hn.error(E.message)}},b=[{title:"Port",dataIndex:"port",width:100,render:$=>h.jsx(Uo,{code:!0,children:$})},{title:"Last used",dataIndex:"launcher",render:($,w)=>h.jsxs(vt,{direction:"vertical",size:0,children:[h.jsx(Uo,{strong:!0,children:$}),h.jsx(Uo,{type:"secondary",children:w.script})]})},{title:"Process",dataIndex:"command",render:($,w)=>h.jsxs(vt,{direction:"vertical",size:0,children:[h.jsx(Uo,{code:!0,children:w.currentCommand||$}),h.jsxs(Uo,{type:"secondary",children:["PID ",w.currentPid||w.pid]})]})},{title:"Status",width:170,render:($,w)=>w.ghost?h.jsx(qt,{color:"error",children:"Ghost process"}):w.listening?h.jsx(qt,{color:"success",children:"Script running"}):w.reused?h.jsx(qt,{color:"warning",children:"Port reused"}):h.jsx(qt,{children:"Port released"})},{title:"Action",width:100,render:($,w)=>w.listening||w.reused?h.jsx(Ya,{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:h.jsx(Ue,{danger:!0,icon:h.jsx($r,{}),children:"Kill"})}):h.jsx(Ue,{disabled:!0,icon:h.jsx($r,{}),children:"Kill"})}];return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx(Uo,{type:"secondary",children:"DIAGNOSTICS"}),h.jsx(ble,{level:2,children:"Port Diagnostic"}),h.jsx(yle,{type:"secondary",children:"Every port observed while a recent Launcher script was running. Ghost processes still listen after their script has stopped."})]}),h.jsx(Ue,{icon:h.jsx(ys,{}),onClick:y,loading:r,children:"Refresh"})]}),h.jsxs(yn,{className:"port-manual-query",size:"small",children:[h.jsxs(vt,{wrap:!0,children:[h.jsx(Uo,{strong:!0,children:"Query port"}),h.jsx(Zv,{min:1,max:65535,controls:!1,value:l,onChange:c,onPressEnter:x,placeholder:"e.g. 3000"}),h.jsx(Ue,{type:"primary",onClick:x,loading:u,disabled:!l,children:"Query"})]}),f&&h.jsx("div",{className:"port-query-result",children:g?h.jsxs(vt,{wrap:!0,children:[h.jsx(qt,{color:"success",children:"Listening"}),h.jsxs(Uo,{code:!0,children:["PID ",g.pid]}),h.jsx(Uo,{code:!0,children:g.command}),h.jsx(Ya,{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:h.jsx(Ue,{danger:!0,icon:h.jsx($r,{}),children:"Kill"})})]}):h.jsxs(Uo,{type:"secondary",children:["No process is listening on port ",l,"."]})})]}),h.jsx(mr,{className:"port-diagnostic-table",rowKey:$=>`${$.startedAt}-${$.port}-${$.pid}`,loading:r,dataSource:t,columns:b,pagination:!1,locale:{emptyText:h.jsx(Bn,{description:"No ports have been observed from Launcher scripts yet."})}})]})}const{Title:lv,Paragraph:Rb,Text:xo}=Xn,Ib=[{id:"bitbucket",label:"Bitbucket"},{id:"jira",label:"Jira"},{id:"confluence",label:"Confluence"}];function xle({onStaticPagesChange:e}){const[t]=Ht.useForm(),[n]=Ht.useForm(),[r,a]=i.useState({}),[l,c]=i.useState(!1),[u,d]=i.useState(!1),[f,v]=i.useState([]),[g,p]=i.useState(!1),[y,x]=i.useState(null),[S,b]=i.useState(!1),$=async()=>{try{const N=await Rc.list();v(N)}catch(N){Hn.error(N.message)}};i.useEffect(()=>{Vr.status().then(N=>{a(N),t.setFieldsValue({domain:N.domain,jiraIssuePrefix:N.jiraIssuePrefix||"",defaultEditor:N.defaultEditor||"vscode",defaultBrowser:N.defaultBrowser||"chrome"})}).catch(N=>Hn.error(N.message)),$()},[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 Vr.saveDomain(N.domain);a(B=>({...B,...P})),t.setFieldValue("domain",P.domain)}if(N.jiraIssuePrefix!=null){const P=await Vr.saveJiraIssuePrefix(N.jiraIssuePrefix);a(B=>({...B,...P})),t.setFieldValue("jiraIssuePrefix",P.jiraIssuePrefix)}if(N.defaultEditor!=null){const P=await Vr.saveDefaultEditor(N.defaultEditor);a(B=>({...B,...P})),t.setFieldValue("defaultEditor",P.defaultEditor)}if(N.defaultBrowser!=null){const P=await Vr.saveDefaultBrowser(N.defaultBrowser);a(B=>({...B,...P})),t.setFieldValue("defaultBrowser",P.defaultBrowser)}for(const{id:P}of Ib)if(N[P]){const B=await Vr.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||Hn.error(N.message)}},R=async N=>{try{const P=await Vr.saveAccessToken(N,"");a(P),t.resetFields([N]),Hn.success(`${Ib.find(B=>B.id===N).label} Access Token removed.`)}catch(P){Hn.error(P.message)}},j=()=>{x(null),n.resetFields(),p(!0)},I=N=>{x(N),n.setFieldsValue({name:N.name,url:N.url}),p(!0)},O=async N=>{try{await Rc.remove(N),Hn.success("Static page deleted."),await $(),e==null||e()}catch(P){Hn.error(P.message)}},M=async()=>{try{const N=await n.validateFields();b(!0),y?(await Rc.update(y.id,N),Hn.success("Static page updated.")):(await Rc.create(N),Hn.success("Static page created.")),b(!1),p(!1),await $(),e==null||e()}catch(N){b(!1),N!=null&&N.errorFields||Hn.error(N.message)}};return h.jsxs("div",{className:"settings-page",children:[h.jsx(xo,{type:"secondary",children:"SETTINGS"}),h.jsxs("div",{className:"settings-page-header",children:[h.jsx(lv,{level:2,children:"Settings"}),h.jsx(Ue,{type:"primary",color:u?"green":"primary",variant:"solid",icon:u?h.jsx(js,{}):null,loading:!u&&l,onClick:E,children:u?"Saved":"Save"})]}),h.jsxs(Ht,{form:t,layout:"vertical",children:[h.jsxs(yn,{className:"settings-card",style:{marginBottom:20},children:[h.jsxs("div",{className:"settings-title",children:[h.jsx("div",{className:"settings-icon-wrap",children:h.jsx(ji,{className:"settings-icon"})}),h.jsxs("div",{children:[h.jsx(lv,{level:4,children:"Default Applications"}),h.jsx(Rb,{type:"secondary",children:"Choose your preferred editor and browser to open files, folders, and links."})]})]}),h.jsxs("div",{className:"token-settings-form",children:[h.jsxs("div",{className:"token-row",children:[h.jsxs("div",{className:"token-row-info",children:[h.jsx(xo,{strong:!0,className:"token-row-name",children:"Default Editor"}),h.jsx(xo,{type:"secondary",className:"token-row-hint",children:"VS Code, Devin, or IntelliJ IDEA"})]}),h.jsx(Ht.Item,{name:"defaultEditor",children:h.jsx(Fn,{options:rM,style:{width:220}})})]}),h.jsxs("div",{className:"token-row",children:[h.jsxs("div",{className:"token-row-info",children:[h.jsx(xo,{strong:!0,className:"token-row-name",children:"Default Browser"}),h.jsx(xo,{type:"secondary",className:"token-row-hint",children:"Choose your default browser"})]}),h.jsx(Ht.Item,{name:"defaultBrowser",style:{marginBottom:0},children:h.jsx(Fn,{options:Zie(r.isMac!==!1),style:{width:220}})})]})]})]}),h.jsxs(yn,{className:"settings-card",style:{marginBottom:20},children:[h.jsxs("div",{className:"settings-title",style:{borderBottom:"none",marginBottom:12,paddingBottom:0},children:[h.jsx("div",{className:"settings-icon-wrap",children:h.jsx(jf,{className:"settings-icon"})}),h.jsxs("div",{style:{flex:1},children:[h.jsx(lv,{level:4,children:"Static Pages"}),h.jsx(Rb,{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."})]}),h.jsx(Ue,{type:"primary",icon:h.jsx(Yr,{}),onClick:j,children:"Add Static Page"})]}),h.jsx(mr,{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=>h.jsx("a",{href:N,target:"_blank",rel:"noreferrer",children:N})},{title:"Action",key:"action",width:140,align:"right",render:(N,P)=>h.jsxs(vt,{children:[h.jsx(Ue,{type:"link",size:"small",icon:h.jsx(yl,{}),onClick:()=>I(P),children:"Edit"}),h.jsx(Ya,{title:"Delete static page?",description:"Are you sure you want to delete this page?",onConfirm:()=>O(P.id),okText:"Yes",cancelText:"No",children:h.jsx(Ue,{type:"link",danger:!0,size:"small",icon:h.jsx($r,{}),children:"Delete"})})]})}]})]}),h.jsxs(yn,{className:"settings-card",children:[h.jsxs("div",{className:"settings-title",children:[h.jsx("div",{className:"settings-icon-wrap",children:h.jsx(tie,{className:"settings-icon"})}),h.jsxs("div",{children:[h.jsx(lv,{level:4,children:"Access Tokens & Domain"}),h.jsx(Rb,{type:"secondary",children:"Tokens are stored locally and are never shown again."})]})]}),h.jsxs("div",{className:"token-settings-form",children:[h.jsxs("div",{className:"token-row",children:[h.jsxs("div",{className:"token-row-info",children:[h.jsx(xo,{strong:!0,className:"token-row-name",children:"Domain"}),h.jsx(xo,{type:"secondary",className:"token-row-hint",children:"e.g. abc.com"})]}),h.jsx(Ht.Item,{name:"domain",rules:[{pattern:/^([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/,message:"Enter a valid domain, e.g. abc.com"}],children:h.jsx(sn,{placeholder:"abc.com",allowClear:!0})})]}),h.jsxs("div",{className:"token-row",children:[h.jsxs("div",{className:"token-row-info",children:[h.jsx(xo,{strong:!0,className:"token-row-name",children:"Jira Issue Prefix"}),h.jsx(xo,{type:"secondary",className:"token-row-hint",children:"e.g. PROJ"})]}),h.jsx(Ht.Item,{name:"jiraIssuePrefix",children:h.jsx(sn,{placeholder:"PROJ",allowClear:!0})})]}),Ib.map(({id:N,label:P})=>h.jsxs("div",{className:`token-row ${w(N)?"is-configured":""}`,children:[h.jsxs("div",{className:"token-row-info",children:[h.jsxs("div",{className:"token-row-name-line",children:[h.jsx(xo,{strong:!0,className:"token-row-name",children:P}),w(N)&&h.jsx(qt,{color:"success",closable:!0,onClose:B=>{B.preventDefault(),R(N)},className:"token-row-tag",children:"Configured"})]}),h.jsxs(xo,{type:"secondary",className:"token-row-hint",children:[P," API access token"]})]}),h.jsx(Ht.Item,{name:N,children:h.jsx(sn.Password,{placeholder:w(N)?"Enter new token to replace":"Paste access token",autoComplete:"off",allowClear:!0})})]},N))]})]})]}),h.jsx(ar,{title:y?"Edit Static Page":"Add Static Page",open:g,onOk:M,onCancel:()=>p(!1),okText:"Save",confirmLoading:S,destroyOnClose:!0,children:h.jsxs(Ht,{form:n,layout:"vertical",style:{marginTop:16},children:[h.jsx(Ht.Item,{name:"name",label:"Page Name",rules:[{required:!0,message:"Please enter page name"}],children:h.jsx(sn,{placeholder:"e.g. test name"})}),h.jsx(Ht.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:h.jsx(sn,{placeholder:"e.g. /pages/welcome/index.html or https://example.com"})})]})})]})}const{Title:o3,Text:Da,Paragraph:Sle}=Xn,{Dragger:$le}=sp,i3=(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]}`},wle=e=>({file:e,name:e.name||"clipboard-image.png",url:URL.createObjectURL(e),size:e.size});function Ele(){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,y]=i.useState(2),[x,S]=i.useState(!1),[b,$]=i.useState(null),[w,E]=i.useState(100),[R,j]=i.useState(!1),[I,O]=i.useState(!1),[M,N]=Hn.useMessage(),P=i.useRef(null),B=i.useRef(null),L=U=>{var V;(V=U.current)!=null&&V.url&&URL.revokeObjectURL(U.current.url)},k=U=>{var G;if(!((G=U==null?void 0:U.type)!=null&&G.startsWith("image/")))return M.error("Please choose an image file."),!1;L(P),L(B);const V=wle(U);return P.current=V,B.current=null,t(V),r(null),D(U),!1},_=U=>{var V;return[...((V=U.dataTransfer)==null?void 0:V.types)||[]].includes("Files")},H=U=>{var G;U.preventDefault(),O(!1);const V=[...((G=U.dataTransfer)==null?void 0:G.files)||[]].find(q=>q.type.startsWith("image/"));V?k(V):M.error("Drop an image file to compress it.")};i.useEffect(()=>()=>{L(P),L(B)},[]),i.useEffect(()=>{const U=V=>{var K;const G=[...((K=V.clipboardData)==null?void 0:K.items)||[]].find(Z=>Z.type.startsWith("image/"));if(!G)return;V.preventDefault();const q=G.getAsFile();q&&(k(new File([q],`clipboard-${Date.now()}.${q.type.split("/")[1]||"png"}`,{type:q.type})),M.success("Image read from clipboard."))};return window.addEventListener("paste",U),()=>window.removeEventListener("paste",U)},[M]);const z=async()=>{var U;try{if(!((U=navigator.clipboard)!=null&&U.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 q=G.types.find(K=>K.startsWith("image/"));if(q){const K=await G.getType(q);k(new File([K],`clipboard-${Date.now()}.${q.split("/")[1]||"png"}`,{type:q})),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.")}},D=async(U=e==null?void 0:e.file)=>{if(U){j(!0);try{const[{encode:V},{imageData:G,width:q,height:K}]=await Promise.all([tM(()=>import("./index-Dty-56mC.js"),[]),nM(U,b,w)]),Z=await V(G,{quality:a,progressive:c,optimize_coding:d,auto_subsample:v,chroma_subsample:p,trellis_multipass:x});L(B);const Q=new Blob([Z],{type:"image/jpeg"}),te={url:URL.createObjectURL(Q),size:Q.size,width:q,height:K};B.current=te,r(te),M.success("MozJPEG compression complete.")}catch(V){M.error(V.message||"Image compression failed.")}finally{j(!1)}}},F=()=>{if(!n)return;const U=e.name.replace(/\.[^.]+$/,"")||"image",V=document.createElement("a");V.href=n.url,V.download=`${U}-mozjpeg.jpg`,V.click()},W=n&&e?Math.round((1-n.size/e.size)*100):null;return h.jsxs(h.Fragment,{children:[N,h.jsxs("div",{className:`squoosh-page ${I?"is-file-dragging":""}`,onDragOver:U=>{_(U)&&(U.preventDefault(),O(!0))},onDragLeave:U=>{U.currentTarget===U.target&&O(!1)},onDrop:H,children:[h.jsxs("header",{className:"squoosh-header",children:[h.jsxs("div",{children:[h.jsx(Da,{children:"MOZJPEG WORKBENCH"}),h.jsx(o3,{level:2,children:"Image compression"})]}),h.jsxs(vt,{children:[h.jsx(Ue,{icon:h.jsx(ei,{}),onClick:z,children:"Read clipboard"}),h.jsx(Ue,{type:"primary",icon:h.jsx(s1,{}),onClick:()=>D(),disabled:!e,loading:R,children:"Compress"})]})]}),h.jsxs("div",{className:"squoosh-studio",children:[h.jsxs("div",{className:"squoosh-preview-area",children:[h.jsx(l3,{title:"Original",detail:e?`${i3(e.size)} · ${e.name}`:"Choose an image to begin",children:e?h.jsx(s3,{label:"Original image",image:e.url}):h.jsxs($le,{accept:"image/*",multiple:!1,showUploadList:!1,beforeUpload:k,className:"image-dropzone",children:[h.jsx("p",{className:"ant-upload-drag-icon",children:h.jsx(rf,{})}),h.jsx("p",{className:"ant-upload-text",children:"Drop an image or click to choose"}),h.jsx("p",{className:"ant-upload-hint",children:"Or paste an image with ⌘ / Ctrl + V."})]})}),h.jsx(l3,{title:"MozJPEG output",detail:n?`${i3(n.size)} · ${n.width} × ${n.height}`:"Waiting for compression",action:n&&h.jsx(Ue,{type:"primary",size:"small",icon:h.jsx(KC,{}),onClick:F,children:"Download"}),children:R?h.jsx("div",{className:"image-loading",children:h.jsx(la,{tip:"Compressing…"})}):n?h.jsxs(h.Fragment,{children:[h.jsx(s3,{label:"Compressed JPEG",image:n.url}),W!==null&&h.jsx("div",{className:`compression-saving ${W>0?"is-saving":""}`,children:W>0?`${W}% smaller`:"No size reduction at current settings."})]}):h.jsx(Bn,{image:Bn.PRESENTED_IMAGE_SIMPLE,description:"Compressed preview"})})]}),h.jsxs("aside",{className:"squoosh-settings",children:[h.jsxs("div",{className:"settings-heading",children:[h.jsx(Da,{children:"ENCODER"}),h.jsx(o3,{level:4,children:"MozJPEG"}),h.jsx(Sle,{children:"Fine-tune output size and image quality."})]}),h.jsxs("div",{className:"option-row",children:[h.jsxs("div",{children:[h.jsx(Da,{strong:!0,children:"Quality"}),h.jsx("br",{}),h.jsx(Da,{type:"secondary",children:"Higher values preserve more detail."})]}),h.jsx(qt,{color:"blue",children:a})]}),h.jsx(bX,{min:1,max:100,value:a,onChange:l,tooltip:{formatter:U=>`${U}`}}),h.jsxs("div",{className:"option-select",children:[h.jsxs("div",{children:[h.jsx(Da,{strong:!0,children:"Long edge"}),h.jsx("br",{}),h.jsx(Da,{type:"secondary",children:"Scale the longest edge to this value. Never crops the image."})]}),h.jsx(Zv,{min:1,max:16384,value:b,onChange:$,placeholder:"Original",addonAfter:"px"})]}),h.jsxs("div",{className:"option-select",children:[h.jsxs("div",{children:[h.jsx(Da,{strong:!0,children:"Scale"}),h.jsx("br",{}),h.jsx(Da,{type:"secondary",children:"Scale the image by percentage."})]}),h.jsx(Zv,{min:1,max:100,value:w,onChange:E,placeholder:"100",addonAfter:"%",allowClear:!0})]}),h.jsx(sv,{label:"Progressive JPEG",description:"Display a low-detail preview while loading.",checked:c,onChange:u}),h.jsx(sv,{label:"Optimize coding",description:"Reduce size without changing image quality.",checked:d,onChange:f}),h.jsx(Fv,{ghost:!0,className:"advanced-options",items:[{key:"advanced",label:"Advanced settings",children:h.jsxs(h.Fragment,{children:[h.jsx(sv,{label:"Automatic chroma subsampling",description:"Pick sampling based on the image content.",checked:v,onChange:g}),h.jsxs("div",{className:"option-select",children:[h.jsxs("div",{children:[h.jsx(Da,{strong:!0,children:"Chroma subsampling"}),h.jsx("br",{}),h.jsx(Da,{type:"secondary",children:"Enabled when automatic mode is off."})]}),h.jsx(Fn,{disabled:v,value:p,onChange:y,options:[{value:0,label:"4:4:4 (colour detail)"},{value:1,label:"4:2:2 (balanced)"},{value:2,label:"4:2:0 (smaller file)"}]})]}),h.jsx(sv,{label:"Trellis multi-pass",description:"Further size reduction with a longer encode time.",checked:x,onChange:S})]})}]}),h.jsx(Ue,{type:"primary",size:"large",block:!0,icon:h.jsx(s1,{}),onClick:()=>D(),disabled:!e,loading:R,children:"Compress image"})]})]})]})]})}function l3({title:e,detail:t,action:n,children:r}){return h.jsxs("div",{className:"preview-pane",children:[h.jsxs("header",{children:[h.jsxs("div",{children:[h.jsx(Da,{children:e}),h.jsx("span",{children:t})]}),n]}),h.jsx("div",{className:"preview-canvas",children:r})]})}function sv({label:e,description:t,checked:n,onChange:r}){return h.jsxs("div",{className:"option-switch",children:[h.jsxs("div",{children:[h.jsx(Da,{strong:!0,children:e}),h.jsx("br",{}),h.jsx(Da,{type:"secondary",children:t})]}),h.jsx(Zd,{checked:n,onChange:r})]})}function s3({label:e,image:t,metadata:n}){return h.jsxs("div",{className:"image-panel",children:[h.jsx("img",{src:t,alt:e}),n&&h.jsx("div",{className:"image-panel-meta",children:h.jsx(Da,{type:"secondary",children:n})})]})}const{Title:Ole,Text:ia,Paragraph:c3}=Xn;function jle({prs:e,selectedPrKeys:t,onToggleSelectPr:n,onSelectPr:r}){return e.length===0?h.jsx(Bn,{description:"No open pull requests found.",style:{padding:"24px 0"}}):h.jsx("div",{style:{display:"grid",gap:"12px"},children:e.map(a=>{var d,f,v,g,p,y,x,S,b;const l=a.reviewUrl||"",c=a.reviewUrl||a.id,u=t.includes(c);return h.jsx(yn,{size:"small",hoverable:!0,style:{borderColor:u?"#1677ff":"#e3e6ef",backgroundColor:u?"#f0f5ff":"#ffffff",transition:"all 0.2s"},onClick:()=>l&&r(l),children:h.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:"12px"},children:[h.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",alignItems:"center",gap:"12px"},children:[h.jsx(Qr,{checked:u,onChange:$=>{$.stopPropagation(),n(c)},onClick:$=>$.stopPropagation()}),h.jsxs("div",{style:{flex:1,minWidth:0},children:[h.jsxs(vt,{size:8,wrap:!0,children:[h.jsxs(ia,{strong:!0,style:{fontSize:"14px"},children:["#",a.id," ",a.title]}),a.draft&&h.jsx(qt,{color:"gold",children:"Draft"})]}),h.jsxs("div",{style:{marginTop:"6px",fontSize:"12px",display:"flex",alignItems:"center",flexWrap:"wrap",gap:"6px",color:"#727b94"},children:[h.jsxs(ia,{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]}),h.jsx("span",{style:{color:"#d9d9d9"},children:"|"}),h.jsx(qt,{size:"small",color:"cyan",style:{margin:0},children:(y=a.fromRef)==null?void 0:y.displayId}),h.jsx(YN,{style:{fontSize:"10px",color:"#8c8c8c"}}),h.jsx(qt,{size:"small",color:"blue",style:{margin:0},children:(x=a.toRef)==null?void 0:x.displayId}),h.jsx("span",{style:{color:"#d9d9d9"},children:"|"}),h.jsxs("span",{children:["Author: ",h.jsx("strong",{children:(b=(S=a.author)==null?void 0:S.user)==null?void 0:b.displayName})]}),h.jsx("span",{style:{color:"#d9d9d9"},children:"|"}),h.jsxs("span",{children:["Updated: ",new Date(a.updatedDate).toLocaleDateString()]})]})]})]}),h.jsxs(vt,{size:8,children:[h.jsx(Ue,{size:"small",icon:h.jsx(Td,{}),onClick:$=>{$.stopPropagation(),l&&Zr(l)},children:"Open"}),h.jsx(Ue,{type:"primary",size:"small",onClick:$=>{$.stopPropagation(),l&&r(l)},children:"Review"})]})]})},c)})})}function Rle(){const[e]=Ht.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([]),[y,x]=i.useState(!1),[S,b]=i.useState("review"),[$,w]=i.useState([]),[E,R]=i.useState(!1),[j,I]=i.useState(null),[O,M]=i.useState(""),[N,P]=i.useState(!1),[B,L]=i.useState(new Set),k=async()=>{x(!0);try{const[Q,te]=await Promise.all([iv.myPrs().catch(()=>({values:[]})),iv.reviewPrs().catch(()=>({values:[]}))]);v((Q==null?void 0:Q.values)||[]),p((te==null?void 0:te.values)||[])}catch{}x(!1)};i.useEffect(()=>{Vr.status().then(Q=>{a(Q.bitbucketTokenConfigured),Q.bitbucketTokenConfigured&&k()}).catch(()=>{})},[]);const _=S==="review"?g:f,H=Q=>{b(Q),w([])},z=Q=>{w(te=>te.includes(Q)?te.filter(X=>X!==Q):[...te,Q])},D=Q=>{if(Q.target.checked){const te=_.map(X=>X.reviewUrl||X.id);w(te)}else w([])},F=()=>{const te=_.filter(oe=>$.includes(oe.reviewUrl||oe.id)).map(oe=>oe.reviewUrl).filter(Boolean);if(te.length===0){Hn.warning("No PR URLs selected");return}const X=te.join(`
|
|
498
|
-
`);navigator.clipboard.writeText(X),Hn.success(`Copied ${te.length} PR URL(s) to clipboard`)},W=_.length>0&&_.every(Q=>$.includes(Q.reviewUrl||Q.id)),U=$.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 iv.check(te.trim());c(X),L(new Set),Hn.success("PR Review completed successfully.")}catch(X){Hn.error(X.message)}finally{n(!1)}}},G=(Q,te)=>{const X=`${Q}:${te.line}:${te.rule}`,oe=`⚠️ [${te.severity.toUpperCase()}] ${te.rule}: ${te.message}
|
|
499
|
-
\`\`\`javascript
|
|
500
|
-
${te.code.trim()}
|
|
501
|
-
\`\`\``;I({filePath:Q,issue:te,issueKey:X}),M(oe),R(!0)},q=async()=>{if(!(!j||!O.trim()||!l)){P(!0);try{const Q=await iv.comment({projectKey:l.pr.projectKey,repositorySlug:l.pr.repositorySlug,pullRequestId:l.pr.pullRequestId,filePath:j.filePath,line:j.issue.line,commentText:O.trim()});Hn.success(Q.message||"Comment posted to PR successfully."),L(te=>new Set([...te,j.issueKey])),R(!1)}catch(Q){Hn.error(Q.message||"Failed to post comment.")}finally{P(!1)}}},K=()=>{if(!l)return;const{pr:Q,stats:te,files:X}=l;let oe=`## 🔍 PR Review Report: ${Q.title}
|
|
502
|
-
`;if(oe+=`* **Author:** ${Q.author}
|
|
503
|
-
`,oe+=`* **Branch:** \`${Q.sourceBranch}\` ➔ \`${Q.targetBranch}\`
|
|
504
|
-
|
|
505
|
-
`,oe+=`### 📊 Summary
|
|
506
|
-
`,oe+=`* **Total Files Changed:** ${te.totalFilesChanged}
|
|
507
|
-
`,oe+=`* **Filtered Files (Ignored):** ${te.filteredCount}
|
|
508
|
-
`,oe+=`* **Reviewed Files:** ${te.reviewedCount}
|
|
509
|
-
`,oe+=`* **Total Issues Found:** ${te.totalIssues} (Critical: ${te.criticalCount}, Warnings: ${te.warningCount}, Suggestions: ${te.infoCount})
|
|
510
|
-
|
|
511
|
-
`,X.length===0)oe+=`✅ **LGTM!** No code style or quality issues detected in the reviewed files.
|
|
512
|
-
`;else{oe+=`### ⚠️ Findings
|
|
513
|
-
`;for(const ae of X){oe+=`#### 📄 File: \`${ae.filePath}\` (${ae.issues.length} issues)
|
|
514
|
-
`;for(const re of ae.issues){const Y=re.severity==="critical"?"🔴 [Critical]":re.severity==="warning"?"🟡 [Warning]":"🔵 [Suggestion]";oe+=`- **${Y}** line ${re.line}: *${re.rule}* - ${re.message}
|
|
515
|
-
`,oe+=` \`\`\`javascript
|
|
516
|
-
${re.code.trim()}
|
|
517
|
-
\`\`\`
|
|
518
|
-
`}oe+=`
|
|
519
|
-
`}}navigator.clipboard.writeText(oe),d(!0),Hn.success("Markdown report copied to clipboard."),setTimeout(()=>d(!1),2e3)},Z=Q=>Q==="critical"?h.jsx(qt,{color:"error",icon:h.jsx(ag,{}),children:"Critical"}):Q==="warning"?h.jsx(qt,{color:"warning",icon:h.jsx(Xc,{}),children:"Warning"}):h.jsx(qt,{color:"processing",icon:h.jsx(xs,{}),children:"Suggestion"});return h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"page-header",children:h.jsxs("div",{children:[h.jsx(ia,{type:"secondary",children:"CODE QUALITY"}),h.jsx(Ole,{level:2,children:"PR Review"}),h.jsx(c3,{type:"secondary",children:"Analyze pull requests on Bitbucket for quality issues, leaks, and debug flags."})]})}),!r&&h.jsx(pl,{className:"service-config",message:"Bitbucket Token Required",description:h.jsxs("span",{children:["Please configure your ",h.jsx("strong",{children:"Bitbucket Access Token"})," in the ",h.jsx("a",{href:"#/settings",children:"Settings"})," page to review internal PRs."]}),type:"warning",showIcon:!0,closable:!1}),h.jsx(yn,{className:"service-config",children:h.jsx(Ht,{form:e,layout:"vertical",onFinish:V,children:h.jsx(Ht.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:h.jsx(sn,{placeholder:"https://bitbucket.xxx.com/projects/PROJ/repos/repo/pull-requests/123",disabled:t,allowClear:!0,addonAfter:h.jsxs(vt,{size:8,children:[h.jsx(Ue,{type:"link",size:"small",onClick:()=>e.submit(),disabled:t,style:{padding:0,height:"auto"},children:"Review"}),h.jsx(xC,{type:"vertical",style:{margin:"0 2px"}}),h.jsx(Ue,{type:"link",size:"small",icon:h.jsx(Td,{}),onClick:()=>{const Q=e.getFieldValue("prLink");Q&&Q.trim()?Zr(Q.trim()):Hn.warning("Please enter a Pull Request URL first.")},disabled:t,style:{padding:0,height:"auto"},children:"Open"})]})})})})}),t&&h.jsx(yn,{style:{textAlign:"center",padding:"40px 0"},children:h.jsxs(vt,{direction:"vertical",size:"middle",children:[h.jsx(To,{style:{fontSize:32,color:"#6d5ce7"},spin:!0}),h.jsx(ia,{type:"secondary",children:"Fetching diffs and reviewing code changes..."})]})}),!l&&!t&&r&&h.jsxs(yn,{tabList:[{key:"review",tab:`Waiting for my Review (${g.length})`},{key:"mine",tab:`Authored by Me (${f.length})`}],activeTabKey:S,onTabChange:H,loading:y,style:{borderColor:"#e3e6ef",marginTop:16},children:[_.length>0&&h.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16,paddingBottom:12,borderBottom:"1px solid #f0f0f0"},children:[h.jsxs(vt,{size:12,children:[h.jsxs(Qr,{checked:W,indeterminate:U,onChange:D,children:["Select All (",_.length,")"]}),$.length>0&&h.jsxs(ia,{type:"secondary",style:{fontSize:"13px"},children:[$.length," selected"]})]}),h.jsxs(Ue,{icon:h.jsx(ei,{}),disabled:$.length===0,onClick:F,children:["Copy Selected URLs ",$.length>0?`(${$.length})`:""]})]}),h.jsx(jle,{prs:_,selectedPrKeys:$,onToggleSelectPr:z,onSelectPr:V})]}),l&&h.jsxs(vt,{direction:"vertical",size:"large",style:{width:"100%",paddingBottom:24},children:[h.jsx("div",{children:h.jsx(Ue,{onClick:()=>c(null),children:"← Back to PR list"})}),h.jsx(yn,{title:h.jsxs(vt,{children:[h.jsx(QN,{}),h.jsx("span",{children:l.pr.title})]}),extra:h.jsx(Ue,{icon:h.jsx(ei,{}),onClick:K,children:u?"Copied":"Copy Report"}),children:h.jsxs(Ro,{gutter:[16,16],children:[h.jsx(Qn,{xs:24,sm:12,md:6,children:h.jsxs(vt,{direction:"vertical",size:2,children:[h.jsx(ia,{type:"secondary",style:{fontSize:12},children:"Author"}),h.jsx(ia,{strong:!0,children:l.pr.author})]})}),h.jsx(Qn,{xs:24,sm:12,md:6,children:h.jsxs(vt,{direction:"vertical",size:2,children:[h.jsx(ia,{type:"secondary",style:{fontSize:12},children:"Repository"}),h.jsx(ia,{strong:!0,children:l.pr.repositorySlug})]})}),h.jsx(Qn,{xs:24,sm:12,md:6,children:h.jsxs(vt,{direction:"vertical",size:2,children:[h.jsx(ia,{type:"secondary",style:{fontSize:12},children:"Source Branch"}),h.jsx(qt,{color:"cyan",style:{margin:0},children:l.pr.sourceBranch})]})}),h.jsx(Qn,{xs:24,sm:12,md:6,children:h.jsxs(vt,{direction:"vertical",size:2,children:[h.jsx(ia,{type:"secondary",style:{fontSize:12},children:"Target Branch"}),h.jsx(qt,{color:"blue",style:{margin:0},children:l.pr.targetBranch})]})})]})}),h.jsxs(Ro,{gutter:[16,16],children:[h.jsx(Qn,{xs:12,md:6,children:h.jsx(yn,{size:"small",style:{textAlign:"center"},children:h.jsx(Ci,{title:"Total Changed",value:l.stats.totalFilesChanged})})}),h.jsx(Qn,{xs:12,md:6,children:h.jsx(yn,{size:"small",style:{textAlign:"center"},children:h.jsx(Ci,{title:"Filtered (Ignored)",value:l.stats.filteredCount,valueStyle:{color:"#8c8c8c"}})})}),h.jsx(Qn,{xs:12,md:6,children:h.jsx(yn,{size:"small",style:{textAlign:"center"},children:h.jsx(Ci,{title:"Reviewed Files",value:l.stats.reviewedCount,valueStyle:{color:"#6d5ce7"}})})}),h.jsx(Qn,{xs:12,md:6,children:h.jsx(yn,{size:"small",style:{textAlign:"center"},children:h.jsx(Ci,{title:"Total Issues",value:l.stats.totalIssues,valueStyle:{color:l.stats.totalIssues>0?"#ff4d4f":"#52c41a"}})})})]}),h.jsx(yn,{title:"Review Findings",children:l.files.length===0?h.jsx(Bn,{image:Bn.PRESENTED_IMAGE_SIMPLE,description:h.jsxs(vt,{direction:"vertical",size:"small",children:[h.jsxs(ia,{strong:!0,style:{color:"#52c41a",fontSize:"16px"},children:[h.jsx(Oi,{})," LGTM! No issues found."]}),h.jsxs(ia,{type:"secondary",children:["Review completed on ",l.stats.reviewedCount," files (filtered out ",l.stats.filteredCount," build/test configs)."]})]})}):h.jsx(Fv,{defaultActiveKey:l.files.map(Q=>Q.filePath),expandIconPosition:"end",children:l.files.map(Q=>{const te=Q.issues.filter(re=>re.severity==="critical").length,X=Q.issues.filter(re=>re.severity==="warning").length,oe=Q.issues.filter(re=>re.severity==="info").length,ae=h.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"92%",flexWrap:"wrap",gap:"8px"},children:[h.jsx(ia,{strong:!0,children:Q.filePath}),h.jsxs(vt,{children:[te>0&&h.jsx(ja,{count:te,style:{backgroundColor:"#ff4d4f"},title:"Critical Issues"}),X>0&&h.jsx(ja,{count:X,style:{backgroundColor:"#faad14"},title:"Warnings"}),oe>0&&h.jsx(ja,{count:oe,style:{backgroundColor:"#1890ff"},title:"Suggestions"})]})]});return h.jsx(Fv.Panel,{header:ae,children:h.jsx(mr,{dataSource:Q.issues.map((re,Y)=>({...re,key:Y})),pagination:!1,size:"small",columns:[{title:"Severity",dataIndex:"severity",width:110,render:re=>Z(re)},{title:"Line",dataIndex:"line",width:80,render:re=>h.jsxs(ia,{code:!0,children:["L",re]})},{title:"Issue Description",dataIndex:"message",render:(re,Y)=>h.jsxs(vt,{direction:"vertical",size:2,style:{width:"100%"},children:[h.jsx(ia,{strong:!0,children:Y.rule}),h.jsx(ia,{type:"secondary",children:re}),h.jsx("pre",{style:{margin:"4px 0 0",padding:"6px 10px",background:"#f5f5f5",borderRadius:"4px",fontSize:"12px",overflowX:"auto"},children:h.jsx("code",{children:Y.code})})]})},{title:"Action",key:"action",width:120,align:"center",render:(re,Y)=>{const ee=`${Q.filePath}:${Y.line}:${Y.rule}`;return B.has(ee)?h.jsx(qt,{color:"green",icon:h.jsx(Oi,{}),children:"Commented"}):h.jsx(Ue,{size:"small",icon:h.jsx(YO,{}),onClick:()=>G(Q.filePath,Y),children:"Comment"})}}]})},Q.filePath)})})}),l.filteredOut.length>0&&h.jsx(yn,{title:`Ignored Files (${l.filteredOut.length})`,size:"small",children:h.jsx("div",{style:{maxHeight:200,overflowY:"auto"},children:h.jsx(vt,{size:[4,8],wrap:!0,children:l.filteredOut.map(Q=>h.jsx(qt,{style:{color:"#8c8c8c"},children:Q},Q))})})}),h.jsx(ar,{title:h.jsxs(vt,{children:[h.jsx(YO,{}),h.jsx("span",{children:"Post Comment to Bitbucket PR"})]}),open:E,onCancel:()=>!N&&R(!1),onOk:q,okText:"Submit Comment",cancelText:"Cancel",confirmLoading:N,okButtonProps:{icon:h.jsx(GC,{})},width:600,children:j&&h.jsxs("div",{style:{marginTop:12},children:[h.jsxs(c3,{type:"secondary",style:{marginBottom:12,fontSize:13},children:["File: ",h.jsx(ia,{code:!0,children:j.filePath})," (Line ",j.issue.line,")"]}),h.jsx(sn.TextArea,{rows:6,value:O,onChange:Q=>M(Q.target.value),placeholder:"Write your review comment..."})]})})]})]})}function Ile({open:e,editingFilter:t,onCancel:n,onSave:r}){const[a]=Ht.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 h.jsx(ar,{title:t?"Edit Filter":"Add Filter",open:e,onCancel:n,onOk:l,destroyOnClose:!0,children:h.jsxs(Ht,{form:a,layout:"vertical",style:{marginTop:16},children:[h.jsx(Ht.Item,{name:"name",label:"Filter Name",rules:[{required:!0,message:"Please enter filter name"}],children:h.jsx(sn,{placeholder:"e.g. My Sprint Issues"})}),h.jsx(Ht.Item,{name:"filterId",label:"Filter ID",rules:[{required:!0,message:"Please enter Jira Filter ID"}],children:h.jsx(sn,{placeholder:"e.g. 12345"})})]})})}const{Text:Nle}=Xn;function Mle({open:e,filters:t,onCancel:n,onCreate:r,onEdit:a,onDelete:l}){const[c,u]=i.useState("");i.useEffect(()=>{e&&Vr.status().then(f=>{u(f.domain||"")}).catch(()=>{})},[e]);const d=[{title:"Filter Name",dataIndex:"name",key:"name",render:(f,v)=>{const g=Jie(c,v.filterId);return h.jsxs(vt,{size:4,children:[h.jsx("a",{style:{fontWeight:600},onClick:p=>{p.preventDefault(),Zr(g)},title:"Open filter in Jira",children:f}),h.jsx(qC,{style:{fontSize:11,color:"#1677ff",cursor:"pointer"},onClick:()=>Zr(g),title:"Open filter in Jira"})]})}},{title:"Filter ID",dataIndex:"filterId",key:"filterId",width:150,render:f=>h.jsx(Nle,{code:!0,children:f})},{title:"Action",key:"action",width:130,align:"right",render:(f,v)=>h.jsxs(vt,{size:"small",children:[h.jsx(Ue,{type:"text",icon:h.jsx(yl,{}),onClick:()=>a(v)}),h.jsx(Ya,{title:"Delete filter?",description:"Are you sure you want to delete this filter?",onConfirm:()=>l(v.id),okText:"Yes",cancelText:"No",children:h.jsx(Ue,{type:"text",danger:!0,icon:h.jsx($r,{})})})]})}];return h.jsx(ar,{title:"Filter List",open:e,onCancel:n,footer:[h.jsx(Ue,{onClick:n,children:"Close"},"close"),h.jsx(Ue,{type:"primary",icon:h.jsx(Yr,{}),onClick:r,children:"Add Filter"},"add")],width:640,children:h.jsx(mr,{rowKey:"id",dataSource:t,columns:d,pagination:!1,size:"small",style:{marginTop:16}})})}const{Text:u3}=Xn;function Tle({open:e,confirmLoading:t,issue:n,onCancel:r,onClone:a}){const[l]=Ht.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 h.jsx(ar,{title:n?`Clone Ticket (${n.key})`:"Clone Ticket",open:e,onCancel:r,onOk:c,confirmLoading:t,destroyOnClose:!0,okText:"Clone",children:h.jsxs(Ht,{form:l,layout:"vertical",style:{marginTop:16},children:[h.jsxs(Ht.Item,{label:"Original Ticket",children:[h.jsx(u3,{code:!0,children:n==null?void 0:n.key})," ",h.jsx(u3,{type:"secondary",children:n==null?void 0:n.summary})]}),h.jsx(Ht.Item,{name:"summary",label:"Clone Ticket Summary",rules:[{required:!0,message:"Please enter clone ticket summary"}],children:h.jsx(sn,{placeholder:"Enter summary for the cloned ticket"})})]})})}const{Title:Ple,Text:$c,Paragraph:zle}=Xn,Dle=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"},d3=e=>e?typeof e=="string"?e:e.name||"—":"—",f3=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},lM=(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},m3=(e,t,n)=>!!lM(e,t,n);function _le(){const{message:e}=Ra.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(""),[y,x]=i.useState([]),[S,b]=i.useState(!1),[$,w]=i.useState(null),[E,R]=i.useState(!1),[j,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 K=await Ca.list();x(K)}catch{}},[]),_=i.useCallback(async()=>{try{const K=await xc.list();n(K),K.length>0?(!r||!K.some(Z=>Z.id===r))&&a(K[0].id):(a(null),c({}))}catch(K){e.error(K.message)}finally{d(!1)}},[r,e]),H=i.useCallback(async K=>{if(K){v(!0),p("");try{const Z=await xc.issues(K);c(Q=>({...Q,[K]:Z.issues||[]}))}catch(Z){p(Z.message),c(Q=>{const te={...Q};return delete te[K],te})}finally{v(!1)}}},[]);i.useEffect(()=>{_(),k()},[_,k]),i.useEffect(()=>{r&&H(r)},[r,H]),i.useEffect(()=>{if(!B.open)return;const K=()=>{L(Z=>({...Z,open:!1}))};return window.addEventListener("click",K),window.addEventListener("contextmenu",K),()=>{window.removeEventListener("click",K),window.removeEventListener("contextmenu",K)}},[B.open]);const z=()=>{w(null),b(!0)},D=K=>{w(K),b(!0)},F=async K=>{try{if($)await xc.update($.id,K),e.success("Filter updated");else{const Z=await xc.create(K);e.success("Filter created"),a(Z.id)}b(!1),await _()}catch(Z){e.error(Z.message)}},W=async K=>{var Z;if(!(!N||!r)){M(!0);try{const Q=await xc.cloneIssue({filterId:r,issueKey:N.key,summary:K.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)}}},U=async K=>{try{await xc.remove(K),e.success("Filter deleted"),await _()}catch(Z){e.error(Z.message)}},V=async K=>{if(!(!K||!K.key))try{const Z=await Ca.list();if(m3(Z,K.key,K.url)){e.info(`Task [${K.key}] is already in the Todo list`);return}const te=d3(K.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 oe={title:`[${K.key}] ${K.summary}`,description:K.url?`[${K.key}](${K.url}) - ${K.summary}`:K.summary,priority:X,category:"work",dueDate:K.dueDate||null,completed:!1,archived:!1};await Ca.create(oe),e.success(`Added [${K.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:(K,Z)=>(K.summary||"").localeCompare(Z.summary||""),render:(K,Z)=>{const Q=lM(y,Z.key,Z.url);return h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"nowrap",minWidth:0},children:[Q&&(Q.completed?h.jsx(_n,{title:"Todo: Completed (已完成)",children:h.jsx(ws,{style:{color:"#52c41a",fontSize:15,flexShrink:0}})}):h.jsx(_n,{title:"Todo: Pending (待处理)",children:h.jsx(Gae,{style:{color:"#fa8c16",fontSize:15,flexShrink:0}})})),h.jsx($c,{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}),h.jsx("a",{style:{fontWeight:500,wordBreak:"break-word",overflowWrap:"break-word"},onClick:te=>{te.preventDefault(),Zr(Z.url)},children:K})]})}},{title:"Status",dataIndex:"status",key:"status",width:140,align:"center",sorter:(K,Z)=>(K.status||"").localeCompare(Z.status||""),render:K=>K?h.jsx(qt,{style:{whiteSpace:"nowrap"},children:K}):h.jsx($c,{type:"secondary",children:"—"})},{title:"Priority",dataIndex:"priority",key:"priority",width:130,align:"center",sorter:(K,Z)=>f3(K.priority)-f3(Z.priority),render:K=>{const Z=d3(K),Q=Dle(K);return h.jsx(qt,{color:Q,style:{whiteSpace:"nowrap"},children:Z})}},{title:"Due Date",dataIndex:"dueDate",key:"dueDate",width:140,align:"center",sorter:(K,Z)=>(K.dueDate||"").localeCompare(Z.dueDate||""),render:K=>K?h.jsx($c,{type:"secondary",children:K}):h.jsx($c,{type:"secondary",children:"—"})}],q=B.record?m3(y,B.record.key,B.record.url):!1;return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx($c,{type:"secondary",children:"JIRA"}),h.jsx(Ple,{level:2,children:"Jira Filters"}),h.jsx(zle,{type:"secondary",children:"Track issues across configured Jira filters."})]}),h.jsxs(vt,{children:[h.jsx(Ue,{onClick:()=>R(!0),children:"Filter List"}),h.jsx(Ue,{type:"primary",icon:h.jsx(Yr,{}),onClick:z,children:"+ Filter"})]})]}),u?h.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:h.jsx(la,{size:"large"})}):t.length?h.jsxs(h.Fragment,{children:[h.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16,width:"100%",minWidth:0},children:[h.jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden"},children:h.jsx(Lo,{activeKey:r,onChange:a,style:{marginBottom:0},items:t.map(K=>{var te;const Z=K.id in l,Q=(te=l[K.id])==null?void 0:te.length;return{key:K.id,label:Z?`${K.name} (${Q})`:K.name}})})}),r&&h.jsx(Ue,{icon:h.jsx(ys,{}),loading:f,onClick:()=>H(r),style:{marginLeft:16,flexShrink:0},children:"Refresh"})]}),f&&!(r in l)?h.jsx("div",{style:{padding:"60px 0",textAlign:"center"},children:h.jsx(la,{size:"large"})}):g&&!(r in l)?h.jsxs("div",{style:{padding:"40px 0",textAlign:"center"},children:[h.jsx($c,{danger:!0,children:g}),h.jsx("div",{style:{marginTop:12},children:h.jsx(Ue,{size:"small",icon:h.jsx(ys,{}),onClick:()=>H(r),children:"Retry"})})]}):h.jsx(mr,{className:"jira-filters-table",rowKey:"id",dataSource:l[r]||[],columns:G,pagination:!1,scroll:{x:"max-content"},onRow:K=>({onContextMenu:Z=>{Z.preventDefault(),Z.stopPropagation(),k(),L({open:!0,x:Z.clientX,y:Z.clientY,record:K})}})})]}):h.jsx(Bn,{description:"No Jira filters configured yet.",style:{marginTop:80}}),B.open&&h.jsx(fs,{trigger:["click"],menu:{items:[{key:"add-todo",disabled:q,icon:h.jsx(UC,{style:q?{color:"#52c41a"}:void 0}),label:q?"Already in Todo List":"Add to Todo List",onClick:()=>{B.record&&!q&&V(B.record),L(K=>({...K,open:!1}))}},{key:"clone-issue",icon:h.jsx(ei,{}),label:"Clone Ticket",onClick:()=>{B.record&&(P(B.record),I(!0)),L(K=>({...K,open:!1}))}},{key:"open-jira",icon:h.jsx(qC,{}),label:"Open in Jira",onClick:()=>{var K;(K=B.record)!=null&&K.url&&Zr(B.record.url),L(Z=>({...Z,open:!1}))}}]},open:B.open,onOpenChange:K=>{K||L(Z=>({...Z,open:!1}))},children:h.jsx("div",{style:{position:"fixed",left:B.x,top:B.y,width:1,height:1,zIndex:9999}})}),h.jsx(Ile,{open:S,editingFilter:$,onCancel:()=>b(!1),onSave:F}),h.jsx(Mle,{open:E,filters:t,onCancel:()=>R(!1),onCreate:()=>{R(!1),z()},onEdit:K=>{R(!1),D(K)},onDelete:U}),h.jsx(Tle,{open:j,confirmLoading:O,issue:N,onCancel:()=>{O||(I(!1),P(null))},onClone:W})]})}const{TextArea:Ale}=sn;function Ble({open:e,editingTodo:t,onCancel:n,onSave:r}){const[a]=Ht.useForm();i.useEffect(()=>{e&&(t?a.setFieldsValue({title:t.title||"",description:t.description||"",priority:t.priority||"medium",category:t.category||"work",dueDate:t.dueDate?pa(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 h.jsx(ar,{title:t?"Edit Task":"New Task",open:e,onOk:l,onCancel:n,destroyOnClose:!0,okText:t?"Save":"Create",cancelText:"Cancel",children:h.jsxs(Ht,{form:a,layout:"vertical",style:{marginTop:16},children:[h.jsx(Ht.Item,{name:"title",label:"Task Title",rules:[{required:!0,message:"Please enter task title"}],children:h.jsx(sn,{placeholder:"Enter task title...",maxLength:100,showCount:!0})}),h.jsx(Ht.Item,{name:"description",label:"Description / Notes",children:h.jsx(Ale,{rows:6,placeholder:"Add relevant details, background, or notes...",maxLength:500,showCount:!0})}),h.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:12},children:[h.jsx(Ht.Item,{name:"priority",label:"Priority",children:h.jsx(Fn,{options:[{value:"high",label:h.jsxs(vt,{size:4,children:[h.jsx(tf,{style:{color:"#ff4d4f"}}),h.jsx("span",{children:"High"})]})},{value:"medium",label:h.jsxs(vt,{size:4,children:[h.jsx(Xc,{style:{color:"#faad14"}}),h.jsx("span",{children:"Medium"})]})},{value:"low",label:h.jsxs(vt,{size:4,children:[h.jsx(xs,{style:{color:"#1677ff"}}),h.jsx("span",{children:"Low"})]})}]})}),h.jsx(Ht.Item,{name:"category",label:"Category",children:h.jsx(Fn,{options:[{value:"work",label:h.jsxs(vt,{size:4,children:[h.jsx(af,{style:{color:"#1677ff"}}),h.jsx("span",{children:"Work"})]})},{value:"dev",label:h.jsxs(vt,{size:4,children:[h.jsx(ji,{style:{color:"#722ed1"}}),h.jsx("span",{children:"Dev"})]})},{value:"bug",label:h.jsxs(vt,{size:4,children:[h.jsx(ef,{style:{color:"#ff4d4f"}}),h.jsx("span",{children:"Bug"})]})},{value:"feature",label:h.jsxs(vt,{size:4,children:[h.jsx(wl,{style:{color:"#52c41a"}}),h.jsx("span",{children:"Feature"})]})},{value:"personal",label:h.jsxs(vt,{size:4,children:[h.jsx(nf,{style:{color:"#fa8c16"}}),h.jsx("span",{children:"Personal"})]})}]})}),h.jsx(Ht.Item,{name:"dueDate",label:"Due Date",children:h.jsx(cu,{style:{width:"100%"},placeholder:"Select date"})})]})]})})}function lg({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 y=[];let x=0;f.lastIndex=0;for(const S of g.matchAll(f)){S.index>x&&y.push(g.slice(x,S.index));const b=S[0],$=t?XC(t,b):null;$?y.push(h.jsx("a",{href:$,target:"_blank",rel:"noreferrer",onClick:w=>{w.preventDefault(),w.stopPropagation(),Zr($)},style:{color:"#1677ff",textDecoration:"underline",fontWeight:500},children:b},`${p}-${S.index}`)):y.push(b),x=S.index+b.length}return x<g.length&&y.push(g.slice(x)),y};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(h.jsx("a",{href:p[2],target:"_blank",rel:"noreferrer",onClick:y=>{y.preventDefault(),y.stopPropagation(),Zr(p[2])},style:{color:"#1677ff",textDecoration:"underline"},children:p[1]},g.index));else{const y=g[0].replace(/[),.;:!?]+$/,"");l.push(h.jsx("a",{href:y,target:"_blank",rel:"noreferrer",onClick:x=>{x.preventDefault(),x.stopPropagation(),Zr(y)},style:{color:"#1677ff",textDecoration:"underline"},children:y},g.index)),g[0].length>y.length&&l.push(g[0].slice(y.length))}u=g.index+g[0].length}return u<e.length&&l.push(...v(e.slice(u),"txt-end")),h.jsx("span",{style:r,className:a,children:l})}const{Title:kle,Text:il,Paragraph:Lle}=Xn,Hle={work:{label:"Work",icon:h.jsx(af,{}),color:"blue"},dev:{label:"Dev",icon:h.jsx(ji,{}),color:"purple"},bug:{label:"Bug",icon:h.jsx(ef,{}),color:"red"},feature:{label:"Feature",icon:h.jsx(wl,{}),color:"green"},personal:{label:"Personal",icon:h.jsx(nf,{}),color:"orange"}},Fle={high:{label:"High",icon:h.jsx(tf,{}),color:"error"},medium:{label:"Medium",icon:h.jsx(Xc,{}),color:"warning"},low:{label:"Low",icon:h.jsx(xs,{}),color:"default"}};function Vle(){const{message:e}=Ra.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"),[y,x]=i.useState("createdDesc"),[S,b]=i.useState(""),[$,w]=i.useState("medium"),[E,R]=i.useState("work"),[j,I]=i.useState(!1),[O,M]=i.useState([]),[N,P]=i.useState({domain:"",jiraIssuePrefix:""}),[B,L]=i.useState(!1),[k,_]=i.useState(null),H=i.useCallback(async()=>{a(!0);try{const Y=await Ca.list();n(Y)}catch(Y){e.error(Y.message)}finally{a(!1)}},[e]);i.useEffect(()=>{H(),Vr.status().then(Y=>{Y&&P(Y)}).catch(()=>{})},[H]);const z=i.useMemo(()=>t.filter(Y=>!Y.archived),[t]),D=i.useMemo(()=>t.filter(Y=>Y.archived).length,[t]),F=i.useMemo(()=>{const Y=z.length,ee=z.filter(pe=>pe.completed).length,ie=Y-ee,ue=Y>0?Math.round(ee/Y*100):0,se=z.filter(pe=>!pe.completed&&pe.priority==="high").length;return{total:Y,completed:ee,active:ie,rate:ue,highPriorityCount:se}},[z]),W=async()=>{const Y=S.trim();if(Y)try{const ee=await Ca.create({title:Y,priority:$,category:E,completed:!1});n(ie=>[ee,...ie]),b(""),e.success("Task added")}catch(ee){e.error(ee.message)}},U=async Y=>{try{if(k){const ee=await Ca.update(k.id,Y);n(ie=>ie.map(ue=>ue.id===ee.id?ee:ue)),e.success("Task updated")}else{const ee=await Ca.create(Y);n(ie=>[ee,...ie]),e.success("Task created")}L(!1)}catch(ee){e.error(ee.message)}},V=async Y=>{try{const ee=await Ca.update(Y.id,{...Y,completed:!Y.completed});n(ie=>ie.map(ue=>ue.id===ee.id?ee:ue))}catch(ee){e.error(ee.message)}},G=async Y=>{try{await Ca.archive(Y),n(ee=>ee.map(ie=>ie.id===Y?{...ie,archived:!0,archivedAt:new Date().toISOString()}:ie)),e.success("Task archived")}catch(ee){e.error(ee.message)}},q=async Y=>{try{await Ca.remove(Y),n(ee=>ee.filter(ie=>ie.id!==Y)),M(ee=>ee.filter(ie=>ie!==Y)),e.success("Task deleted")}catch(ee){e.error(ee.message)}},K=async Y=>{if(Y==="clearCompleted"){try{const ee=await Ca.batch("clearCompleted");n(ee),M([]),e.success("Completed tasks cleared")}catch(ee){e.error(ee.message)}return}if(O.length)try{const ee=await Ca.batch(Y,O);n(ee),M([]),e.success("Batch action succeeded")}catch(ee){e.error(ee.message)}},Z=i.useMemo(()=>{let Y=z;if(l.trim()){const ee=l.toLowerCase().trim();Y=Y.filter(ie=>ie.title.toLowerCase().includes(ee)||(ie.description||"").toLowerCase().includes(ee))}return u==="active"?Y=Y.filter(ee=>!ee.completed):u==="completed"&&(Y=Y.filter(ee=>ee.completed)),f!=="all"&&(Y=Y.filter(ee=>ee.priority===f)),g!=="all"&&(Y=Y.filter(ee=>ee.category===g)),[...Y].sort((ee,ie)=>{if(y==="dueAsc")return ee.dueDate?ie.dueDate?ee.dueDate.localeCompare(ie.dueDate):-1:1;if(y==="priorityDesc"){const ue={high:3,medium:2,low:1};return(ue[ie.priority]||0)-(ue[ee.priority]||0)}return new Date(ie.createdAt||0)-new Date(ee.createdAt||0)})},[z,l,u,f,g,y]),Q=i.useMemo(()=>Z.map(Y=>Y.id),[Z]),te=Q.length>0&&Q.every(Y=>O.includes(Y)),X=O.length>0,oe=Y=>{Y.target.checked?M(Q):M([])},ae=Y=>{M(ee=>ee.includes(Y)?ee.filter(ie=>ie!==Y):[...ee,Y])},re=pa().format("YYYY-MM-DD");return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx(il,{type:"secondary",children:"WORKBENCH"}),h.jsx(kle,{level:2,children:"To-Do List"}),h.jsx(Lle,{type:"secondary",children:"Manage and track development tasks, bug fixes, and feature items efficiently."})]}),h.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:8},children:[h.jsxs(vt,{children:[h.jsx(Ue,{icon:h.jsx(ys,{}),onClick:H,loading:r,children:"Refresh"}),h.jsx(Ue,{type:"primary",icon:h.jsx(Yr,{}),onClick:()=>{_(null),L(!0)},children:"New Task"})]}),h.jsxs(Ue,{icon:h.jsx(rf,{}),onClick:()=>{window.location.hash="#/todo-list/archived"},style:{marginTop:8},children:["Archived (",D,")"]})]})]}),h.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:16,marginBottom:24},children:[h.jsxs(yn,{size:"small",style:{borderRadius:8},children:[h.jsx(il,{type:"secondary",style:{fontSize:13},children:"Total Tasks"}),h.jsx("div",{style:{fontSize:24,fontWeight:600,marginTop:4},children:F.total})]}),h.jsxs(yn,{size:"small",style:{borderRadius:8},children:[h.jsx(il,{type:"secondary",style:{fontSize:13},children:"Active (Pending)"}),h.jsxs("div",{style:{fontSize:24,fontWeight:600,marginTop:4,color:F.active>0?"#fa8c16":"inherit"},children:[F.active,F.highPriorityCount>0&&h.jsxs("span",{style:{fontSize:12,fontWeight:"normal",color:"#ff4d4f",marginLeft:8},children:["(",F.highPriorityCount," high priority)"]})]})]}),h.jsxs(yn,{size:"small",style:{borderRadius:8},children:[h.jsx(il,{type:"secondary",style:{fontSize:13},children:"Completed"}),h.jsx("div",{style:{fontSize:24,fontWeight:600,marginTop:4,color:"#52c41a"},children:F.completed})]}),h.jsxs(yn,{size:"small",style:{borderRadius:8},children:[h.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[h.jsx(il,{type:"secondary",style:{fontSize:13},children:"Completion Rate"}),h.jsxs(il,{style:{fontSize:13,fontWeight:600},children:[F.rate,"%"]})]}),h.jsx(mN,{percent:F.rate,showInfo:!1,size:"small",status:"active",style:{marginTop:12}})]})]}),h.jsx(yn,{size:"small",style:{marginBottom:20,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.02)"},children:h.jsxs("div",{style:{display:"flex",gap:12,alignItems:"center"},children:[h.jsx(sn,{placeholder:"Quickly add a task... (Press Enter to submit)",value:S,onChange:Y=>b(Y.target.value),onPressEnter:W,size:"large",style:{flex:1}}),h.jsx(Fn,{value:$,onChange:w,size:"large",style:{width:130},options:[{value:"high",label:h.jsxs(vt,{size:4,children:[h.jsx(tf,{style:{color:"#ff4d4f"}}),h.jsx("span",{children:"High"})]})},{value:"medium",label:h.jsxs(vt,{size:4,children:[h.jsx(Xc,{style:{color:"#faad14"}}),h.jsx("span",{children:"Medium"})]})},{value:"low",label:h.jsxs(vt,{size:4,children:[h.jsx(xs,{style:{color:"#1677ff"}}),h.jsx("span",{children:"Low"})]})}]}),h.jsx(Fn,{value:E,onChange:R,size:"large",style:{width:130},options:[{value:"work",label:h.jsxs(vt,{size:4,children:[h.jsx(af,{style:{color:"#1677ff"}}),h.jsx("span",{children:"Work"})]})},{value:"dev",label:h.jsxs(vt,{size:4,children:[h.jsx(ji,{style:{color:"#722ed1"}}),h.jsx("span",{children:"Dev"})]})},{value:"bug",label:h.jsxs(vt,{size:4,children:[h.jsx(ef,{style:{color:"#ff4d4f"}}),h.jsx("span",{children:"Bug"})]})},{value:"feature",label:h.jsxs(vt,{size:4,children:[h.jsx(wl,{style:{color:"#52c41a"}}),h.jsx("span",{children:"Feature"})]})},{value:"personal",label:h.jsxs(vt,{size:4,children:[h.jsx(nf,{style:{color:"#fa8c16"}}),h.jsx("span",{children:"Personal"})]})}]}),h.jsx(Ue,{type:"primary",size:"large",icon:h.jsx(Yr,{}),onClick:W,children:"Add"})]})}),h.jsx(yn,{size:"small",style:{marginBottom:16,borderRadius:8},children:h.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:16,alignItems:"center",justifyContent:"space-between"},children:[h.jsxs(fr.Group,{value:u,onChange:Y=>d(Y.target.value),optionType:"button",buttonStyle:"solid",children:[h.jsxs(fr.Button,{value:"all",children:["All (",F.total,")"]}),h.jsxs(fr.Button,{value:"active",children:["Active (",F.active,")"]}),h.jsxs(fr.Button,{value:"completed",children:["Completed (",F.completed,")"]})]}),h.jsxs(vt,{wrap:!0,children:[h.jsx(sn,{prefix:h.jsx(Rs,{}),placeholder:"Search tasks...",value:l,onChange:Y=>c(Y.target.value),allowClear:!0,style:{width:220}}),h.jsx(Fn,{value:y,onChange:x,style:{width:140},options:[{value:"createdDesc",label:"Sort: Created"},{value:"dueAsc",label:"Sort: Due Date"},{value:"priorityDesc",label:"Sort: Priority"}]})]})]})}),(j||X)&&h.jsxs("div",{style:{padding:"10px 16px",marginBottom:16,backgroundColor:"#e6f4ff",border:"1px solid #91caff",borderRadius:8,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[h.jsxs(il,{style:{color:"#0958d9"},children:[h.jsx("strong",{style:{color:"#0958d9",fontWeight:600},children:O.length})," items selected"]}),h.jsxs(vt,{wrap:!0,children:[h.jsx(Ue,{size:"small",onClick:()=>{M(te?[]:Q)},children:te?"Deselect All":"Select All"}),h.jsx(Ue,{size:"small",icon:h.jsx(Oi,{}),disabled:!O.length,onClick:()=>K("markCompleted"),children:"Mark Completed"}),h.jsx(Ue,{size:"small",icon:h.jsx(qc,{}),disabled:!O.length,onClick:()=>K("markPending"),children:"Mark Active"}),h.jsx(Ya,{title:"Are you sure you want to delete selected tasks?",onConfirm:()=>K("delete"),okText:"Delete",cancelText:"Cancel",disabled:!O.length,children:h.jsx(Ue,{size:"small",danger:!0,icon:h.jsx($r,{}),disabled:!O.length,children:"Delete Selected"})}),h.jsx(Ue,{size:"small",type:"link",onClick:()=>{I(!1),M([])},children:"Exit Select Mode"})]})]}),t.length>0&&h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 16px",color:"#727b94",fontSize:12,borderBottom:"1px solid #e8e8e8",marginBottom:8},children:[h.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:20},children:j?h.jsx(Qr,{checked:te,onChange:oe}):h.jsx(_n,{title:"Enter Select Mode",children:h.jsx(UC,{style:{fontSize:15,cursor:"pointer",color:j?"#1677ff":"#727b94",transition:"color 0.2s"},onClick:()=>I(!0)})})}),h.jsx("span",{style:{flex:1,fontWeight:500},children:"Task Content"}),h.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:h.jsx(Fn,{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:h.jsxs(vt,{size:4,children:[h.jsx(af,{style:{color:"#1677ff"}}),h.jsx("span",{children:"Work"})]})},{value:"dev",label:h.jsxs(vt,{size:4,children:[h.jsx(ji,{style:{color:"#722ed1"}}),h.jsx("span",{children:"Dev"})]})},{value:"bug",label:h.jsxs(vt,{size:4,children:[h.jsx(ef,{style:{color:"#ff4d4f"}}),h.jsx("span",{children:"Bug"})]})},{value:"feature",label:h.jsxs(vt,{size:4,children:[h.jsx(wl,{style:{color:"#52c41a"}}),h.jsx("span",{children:"Feature"})]})},{value:"personal",label:h.jsxs(vt,{size:4,children:[h.jsx(nf,{style:{color:"#fa8c16"}}),h.jsx("span",{children:"Personal"})]})}]})}),h.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:h.jsx(Fn,{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:h.jsxs(vt,{size:4,children:[h.jsx(tf,{style:{color:"#ff4d4f"}}),h.jsx("span",{children:"High"})]})},{value:"medium",label:h.jsxs(vt,{size:4,children:[h.jsx(Xc,{style:{color:"#faad14"}}),h.jsx("span",{children:"Medium"})]})},{value:"low",label:h.jsxs(vt,{size:4,children:[h.jsx(xs,{style:{color:"#1677ff"}}),h.jsx("span",{children:"Low"})]})}]})}),h.jsx("div",{style:{width:120,textAlign:"center"},children:"Due Date"}),h.jsx("div",{style:{width:120,textAlign:"right"},children:"Actions"})]}),r?h.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:h.jsx(la,{size:"large"})}):Z.length===0?h.jsx(Bn,{image:Bn.PRESENTED_IMAGE_SIMPLE,description:t.length===0?"No tasks yet. Create your first task!":"No matching tasks found.",children:t.length===0&&h.jsx(Ue,{type:"primary",icon:h.jsx(Yr,{}),onClick:()=>{_(null),L(!0)},children:"New Task"})}):h.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:Z.map(Y=>{var se;const ee=Hle[Y.category]||{label:Y.category,color:"default"},ie=Fle[Y.priority]||{label:Y.priority,color:"default"},ue=Y.dueDate&&Y.dueDate<re&&!Y.completed;return h.jsx(yn,{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:h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[h.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:20},children:j?h.jsx(Qr,{checked:O.includes(Y.id),onChange:()=>ae(Y.id)}):h.jsx(_n,{title:Y.completed?"Mark as active":"Mark as completed",children:h.jsx(Qr,{checked:Y.completed,onChange:()=>V(Y),style:{transform:"scale(1.1)"}})})}),h.jsxs("div",{style:{flex:1,minWidth:0},children:[h.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:h.jsx(lg,{text:Y.title,domain:N.domain,jiraIssuePrefix:N.jiraIssuePrefix})}),!!((se=Y.description)!=null&&se.trim())&&h.jsx("div",{style:{fontSize:12,color:Y.completed?"rgba(0, 0, 0, 0.35)":"#666666",marginTop:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h.jsx(lg,{text:Y.description.trim(),domain:N.domain,jiraIssuePrefix:N.jiraIssuePrefix})})]}),h.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:h.jsx(qt,{color:ee.color,icon:ee.icon,style:{margin:0},children:ee.label})}),h.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:h.jsx(qt,{color:ie.color,icon:ie.icon,style:{margin:0},children:ie.label})}),h.jsx("div",{style:{width:120,textAlign:"center"},children:Y.dueDate?h.jsxs(qt,{color:ue?"error":"default",style:{margin:0},children:[h.jsx(qc,{style:{marginRight:4}}),Y.dueDate,ue&&" (Overdue)"]}):h.jsx(il,{type:"secondary",style:{fontSize:12},children:"—"})}),h.jsx("div",{style:{width:120,textAlign:"right"},children:h.jsxs(vt,{size:"small",children:[Y.completed&&h.jsx(_n,{title:"Archive task",children:h.jsx(Ue,{type:"text",size:"small",icon:h.jsx(c1,{style:{color:"#fa8c16"}}),onClick:()=>G(Y.id)})}),h.jsx(Ue,{type:"text",size:"small",icon:h.jsx(yl,{}),onClick:()=>{_(Y),L(!0)}}),h.jsx(Ya,{title:"Are you sure you want to delete this task?",onConfirm:()=>q(Y.id),okText:"Delete",cancelText:"Cancel",children:h.jsx(Ue,{type:"text",danger:!0,size:"small",icon:h.jsx($r,{})})})]})})]})},Y.id)})}),u==="completed"&&F.completed>0&&h.jsx("div",{style:{marginTop:24,textAlign:"right"},children:h.jsx(Ya,{title:`Are you sure you want to clear all ${F.completed} completed tasks?`,onConfirm:()=>K("clearCompleted"),okText:"Clear",cancelText:"Cancel",children:h.jsxs(Ue,{type:"dashed",danger:!0,icon:h.jsx($r,{}),children:["Clear all completed tasks (",F.completed,")"]})})}),h.jsx(Ble,{open:B,editingTodo:k,onCancel:()=>L(!1),onSave:U})]})}const{Title:Wle,Text:v3,Paragraph:Kle}=Xn,Ule={work:{label:"Work",icon:h.jsx(af,{}),color:"blue"},dev:{label:"Dev",icon:h.jsx(ji,{}),color:"purple"},bug:{label:"Bug",icon:h.jsx(ef,{}),color:"red"},feature:{label:"Feature",icon:h.jsx(wl,{}),color:"green"},personal:{label:"Personal",icon:h.jsx(nf,{}),color:"orange"}},qle={high:{label:"High",icon:h.jsx(tf,{}),color:"error"},medium:{label:"Medium",icon:h.jsx(Xc,{}),color:"warning"},low:{label:"Low",icon:h.jsx(xs,{}),color:"default"}};function Gle(){const{message:e}=Ra.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 x=await Ca.list();n(x)}catch(x){e.error(x.message)}finally{a(!1)}},[e]);i.useEffect(()=>{f(),Vr.status().then(x=>{x&&d(x)}).catch(()=>{})},[f]);const v=i.useMemo(()=>{let x=t.filter(S=>S.archived);if(l.trim()){const S=l.toLowerCase().trim();x=x.filter(b=>b.title.toLowerCase().includes(S)||(b.description||"").toLowerCase().includes(S))}return x.sort((S,b)=>new Date(b.archivedAt||0)-new Date(S.archivedAt||0))},[t,l]),g=async x=>{try{await Ca.unarchive(x),n(S=>S.map(b=>b.id===x?{...b,archived:!1,archivedAt:null}:b)),e.success("Task restored to To-Do List")}catch(S){e.error(S.message)}},p=async x=>{try{await Ca.remove(x),n(S=>S.filter(b=>b.id!==x)),e.success("Task permanently deleted")}catch(S){e.error(S.message)}},y=async()=>{try{const x=await Ca.batch("clearArchived");n(x),e.success("All archived tasks cleared")}catch(x){e.error(x.message)}};return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx(v3,{type:"secondary",children:"WORKBENCH"}),h.jsxs(Wle,{level:2,children:[h.jsx(rf,{style:{marginRight:8,color:"#1677ff"}}),"Archived Tasks"]}),h.jsx(Kle,{type:"secondary",children:"View and manage archived tasks. Archived items can be restored back to your active To-Do list."})]}),h.jsxs(vt,{children:[h.jsx(Ue,{icon:h.jsx(i1,{}),onClick:()=>{window.location.hash="#/todo-list"},children:"Back to To-Do List"}),h.jsx(Ue,{icon:h.jsx(ys,{}),onClick:f,loading:r,children:"Refresh"})]})]}),h.jsx(yn,{size:"small",style:{marginBottom:16,borderRadius:8},children:h.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[h.jsxs(v3,{type:"secondary",children:["Total Archived: ",h.jsx("strong",{style:{color:"#1677ff"},children:v.length})," items"]}),h.jsx(sn,{prefix:h.jsx(Rs,{}),placeholder:"Search archived tasks...",value:l,onChange:x=>c(x.target.value),allowClear:!0,style:{width:240}})]})}),v.length>0&&h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 16px",color:"#727b94",fontSize:12,borderBottom:"1px solid #e8e8e8",marginBottom:8},children:[h.jsx("span",{style:{flex:1,fontWeight:500},children:"Task Content"}),h.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:"Category"}),h.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:"Priority"}),h.jsx("div",{style:{width:140,textAlign:"center"},children:"Archived At"}),h.jsx("div",{style:{width:100,textAlign:"right"},children:"Actions"})]}),r?h.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:h.jsx(la,{size:"large"})}):v.length===0?h.jsx(Bn,{image:Bn.PRESENTED_IMAGE_SIMPLE,description:"No archived tasks found.",children:h.jsx(Ue,{icon:h.jsx(i1,{}),onClick:()=>{window.location.hash="#/todo-list"},children:"Back to To-Do List"})}):h.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:v.map(x=>{var w;const S=Ule[x.category]||{label:x.category,color:"default"},b=qle[x.priority]||{label:x.priority,color:"default"},$=x.archivedAt?pa(x.archivedAt).format("YYYY-MM-DD HH:mm"):"—";return h.jsx(yn,{size:"small",style:{borderRadius:8,opacity:.85},bodyStyle:{padding:"12px 16px"},children:h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[h.jsxs("div",{style:{flex:1,minWidth:0},children:[h.jsx("div",{style:{fontWeight:500,fontSize:15,lineHeight:"1.4",textDecoration:x.completed?"line-through":"none",color:"inherit",wordBreak:"break-word"},children:h.jsx(lg,{text:x.title,domain:u.domain,jiraIssuePrefix:u.jiraIssuePrefix})}),!!((w=x.description)!=null&&w.trim())&&h.jsx("div",{style:{fontSize:12,color:"#666666",marginTop:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h.jsx(lg,{text:x.description.trim(),domain:u.domain,jiraIssuePrefix:u.jiraIssuePrefix})})]}),h.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:h.jsx(qt,{color:S.color,icon:S.icon,style:{margin:0},children:S.label})}),h.jsx("div",{style:{width:120,display:"flex",justifyContent:"center"},children:h.jsx(qt,{color:b.color,icon:b.icon,style:{margin:0},children:b.label})}),h.jsx("div",{style:{width:140,textAlign:"center"},children:h.jsxs(qt,{color:"default",style:{margin:0},children:[h.jsx(qc,{style:{marginRight:4}}),$]})}),h.jsx("div",{style:{width:100,textAlign:"right"},children:h.jsxs(vt,{size:"small",children:[h.jsx(_n,{title:"Restore to To-Do List",children:h.jsx(Ue,{type:"text",size:"small",icon:h.jsx(JN,{style:{color:"#1677ff"}}),onClick:()=>g(x.id)})}),h.jsx(Ya,{title:"Permanently delete this archived task?",onConfirm:()=>p(x.id),okText:"Delete",cancelText:"Cancel",children:h.jsx(Ue,{type:"text",danger:!0,size:"small",icon:h.jsx($r,{})})})]})})]})},x.id)})}),v.length>0&&h.jsx("div",{style:{marginTop:24,textAlign:"right"},children:h.jsx(Ya,{title:`Are you sure you want to permanently delete all ${v.length} archived tasks?`,onConfirm:y,okText:"Delete All",cancelText:"Cancel",children:h.jsxs(Ue,{type:"dashed",danger:!0,icon:h.jsx($r,{}),children:["Clear all archived tasks (",v.length,")"]})})})]})}const{Title:Xle}=Xn,Yle=()=>{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 Qle(){const{message:e}=Ra.useApp(),{launcherId:t,isPackage:n,scriptIdOrName:r}=Yle(),[a,l]=i.useState("output"),[c,u]=i.useState(""),[d,f]=i.useState(!0),[v,g]=i.useState(!1),[p,y]=i.useState(""),[x,S]=i.useState(r),b=i.useRef(null);i.useEffect(()=>{t&&Sr.list().then(E=>{var j;const R=E.find(I=>I.id===t);if(R&&(R.alias&&y(R.alias),!n&&r))if(r==="install")S("Install");else{const I=(j=R.scripts)==null?void 0:j.find(O=>O.id===r);I!=null&&I.name&&S(I.name)}}).catch(()=>{})},[t,n,r]),i.useEffect(()=>{const E=p?`${p} · `:"",R=x||r||"Logs";return document.title=`${E}${R} · DevBuddy`,()=>{document.title="DevBuddy · Workbench"}},[p,x,r]),i.useEffect(()=>{if(!t||!r)return;const E=async()=>{try{const j=n?a==="error"?await Sr.packageScriptErrorLogs(t,r):await Sr.packageScriptLogs(t,r):a==="error"?await Sr.errorLogs(t,r):await Sr.logs(t,r);u(j.log||(a==="error"?"No error logs yet.":"No logs yet."))}catch(j){u(j.message)}finally{f(!1)}};E();const R=setInterval(E,1e3);return()=>clearInterval(R)},[t,n,r,a]),i.useEffect(()=>{if(b.current){const E=b.current.querySelector(".log-output");E&&(E.scrollTop=E.scrollHeight)}},[c]);const $=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?h.jsx("div",{className:"standalone-log-container",style:{display:"grid",placeItems:"center",height:"100vh",background:"#111827",color:"#ef4444"},children:h.jsx("div",{children:"Invalid log target specified in URL."})}):h.jsxs("div",{className:"standalone-log-container",ref:b,children:[h.jsxs("header",{className:"standalone-log-header",children:[h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16},children:[h.jsxs(Xle,{level:4,style:{margin:0,color:"#f3f4f6",fontSize:16},children:[p||t," ",h.jsx("span",{style:{color:"#9ca3af",fontWeight:"normal"},children:"/"})," ",x||r]}),d&&h.jsx(la,{size:"small"})]}),h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[h.jsxs(fr.Group,{value:a,onChange:E=>l(E.target.value),size:"small",buttonStyle:"solid",children:[h.jsx(fr.Button,{value:"output",children:"Output"}),h.jsx(fr.Button,{value:"error",children:"Errors"})]}),h.jsx(Ue,{size:"small",icon:v?h.jsx(js,{}):h.jsx(ei,{}),onClick:$,children:v?"Copied":"Copy URL"}),h.jsx(Ue,{type:"text",icon:h.jsx(_o,{}),onClick:w,style:{color:"#9ca3af"},title:"Close Tab"})]})]}),h.jsx("div",{className:"standalone-log-body",children:h.jsx(d1,{value:c,className:"standalone-log-output"})})]})}const{Title:Zle,Text:vd,Paragraph:Jle}=Xn;function ese(){const{message:e}=Ra.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),y=async()=>{a(!0);try{const I=await Pd.list();n(I||[])}catch(I){e.error(I.message)}finally{a(!1)}};i.useEffect(()=>{y()},[]);const x=async()=>{try{await Pd.clear(),n([]),e.success("All error records cleared")}catch(I){e.error(I.message)}},S=async I=>{try{await Pd.remove(I),n(O=>O.filter(M=>M.id!==I)),e.success("Error record deleted")}catch(O){e.error(O.message)}},b=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)},$=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]),R=(I="")=>I.startsWith("Launcher")?"orange":I.startsWith("Backend")?"processing":I.startsWith("Frontend")?"purple":"default",j=I=>{if(!I)return"";try{return new Date(I).toLocaleString("sv-SE").replace(" "," ")}catch{return I}};return h.jsxs("div",{className:"error-logs-page",children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx(vd,{type:"secondary",children:"SYSTEM LOGS"}),h.jsx(Zle,{level:2,children:"Error history"}),h.jsx(Jle,{type:"secondary",children:"Captures the 100 most recent errors from launchers, backend APIs, and frontend execution."})]}),h.jsxs(vt,{size:12,align:"center",children:[h.jsx(Ue,{icon:h.jsx(ys,{}),loading:r,onClick:y,children:"Refresh"}),h.jsx(Ya,{title:"Clear all error logs?",description:"This action will permanently delete all stored error records.",onConfirm:x,okText:"Yes, clear",cancelText:"Cancel",okButtonProps:{danger:!0},children:h.jsxs(Ue,{danger:!0,icon:h.jsx($r,{}),disabled:t.length===0,children:["Clear All (",t.length,")"]})})]})]}),h.jsxs("div",{style:{marginBottom:16,display:"flex",gap:12,flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},children:[h.jsx(yG,{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}),h.jsx(sn,{placeholder:"Search error message or details...",prefix:h.jsx(Rs,{style:{color:"#8c8c8c"}}),allowClear:!0,value:l,onChange:I=>c(I.target.value),style:{width:280}})]}),E.length>0?h.jsx("div",{style:{display:"grid",gap:10},children:E.map(I=>{const O=f.has(I.id);return h.jsxs(yn,{size:"small",className:"error-log-item",style:{borderLeft:"4px solid #ff4d4f"},children:[h.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:12},children:[h.jsxs("div",{style:{flex:1,minWidth:0},children:[h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap",marginBottom:4},children:[h.jsxs(qt,{color:"error",style:{margin:0},children:[h.jsx(XN,{})," ERROR"]}),h.jsx(qt,{color:R(I.source),style:{margin:0},children:I.source}),h.jsx(vd,{type:"secondary",style:{fontSize:12},children:j(I.timestamp)})]}),h.jsx(vd,{strong:!0,style:{fontSize:14,color:"#111827",display:"block",wordBreak:"break-word"},children:I.message})]}),h.jsxs(vt,{size:4,style:{flexShrink:0},children:[I.details&&h.jsx(Ue,{type:"text",size:"small",icon:O?h.jsx(yf,{}):h.jsx($i,{}),onClick:()=>$(I.id),children:O?"Hide Details":"Details"}),h.jsx(_n,{title:g===I.id?"Copied!":"Copy error",children:h.jsx(Ue,{type:"text",size:"small",icon:g===I.id?h.jsx(js,{style:{color:"#52c41a"}}):h.jsx(ei,{}),onClick:()=>b(I)})}),h.jsx(_n,{title:"Delete entry",children:h.jsx(Ue,{type:"text",size:"small",danger:!0,icon:h.jsx($r,{}),onClick:()=>S(I.id)})})]})]}),I.details&&O&&h.jsx("div",{style:{marginTop:10},children:h.jsx("pre",{className:"log-output",style:{minHeight:"auto",maxHeight:360,margin:0,padding:10,borderRadius:6,fontSize:12},children:h.jsx("code",{style:{color:"#fca5a5"},children:I.details})})})]},I.id)})}):h.jsx(yn,{style:{marginTop:16,textAlign:"center",padding:"48px 0"},children:h.jsx(Bn,{image:h.jsx(Oi,{style:{fontSize:48,color:"#52c41a"}}),description:h.jsxs("div",{style:{marginTop:8},children:[h.jsx(vd,{strong:!0,style:{fontSize:16,display:"block",color:"#374151"},children:t.length===0?"No error records":"No matching error records"}),h.jsx(vd,{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."})]})})}),h.jsx(Ml.BackTop,{visibilityHeight:240})]})}const{Text:es}=Xn,tse={GET:"green",POST:"gold",PUT:"blue",DELETE:"red",PATCH:"purple",HEAD:"cyan",OPTIONS:"volcano"};function nse({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),[y,x]=i.useState(new Set),[S,b]=i.useState(!1),[$,w]=i.useState(null),[E,R]=i.useState(""),j=k=>{x(_=>{const H=new Set(_);return H.has(k)?H.delete(k):H.add(k),H})},I=k=>{p(_=>{const H=new Set(_);return H.has(k)?H.delete(k):H.add(k),H})},O=(k,_,H,z)=>{w({type:k,collectionId:_,itemId:H,currentName:z}),R(z||""),b(!0)},M=()=>{if(!$||!E.trim())return;const{type:k,collectionId:_,itemId:H}=$,z=E.trim();if(k==="collection")u(_,{name:z});else if(k==="item"){const D=e.find(F=>F.id===_);if(D){const F=(D.items||[]).map(W=>W.id===H?{...W,name:z}:W);u(_,{items:F})}}b(!1),w(null)},N=(k,_=null)=>{const H=e.find(W=>W.id===k);if(!H)return;x(W=>{if(W.has(k)){const U=new Set(W);return U.delete(k),U}return W}),_&&p(W=>new Set(W).add(_));const z=`req_${Date.now()}`,D={id:z,name:"New Request",parentId:_,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||[],D];u(k,{items:F}),r(k,z)},P=(k,_=null)=>{const H=e.find(F=>F.id===k);if(!H)return;x(F=>{if(F.has(k)){const W=new Set(F);return W.delete(k),W}return F}),_&&p(F=>new Set(F).add(_));const z={id:`folder_${Date.now()}`,name:"New Folder",parentId:_,isFolder:!0},D=[...H.items||[],z];u(k,{items:D})},B=(k,_)=>{const H=e.find(W=>W.id===k);if(!H)return;const z=new Set([_]);let D=!0;for(;D;)D=!1,H.items.forEach(W=>{W.parentId&&z.has(W.parentId)&&!z.has(W.id)&&(z.add(W.id),D=!0)});const F=H.items.filter(W=>!z.has(W.id));u(k,{items:F})},L=(k,_=null,H=1)=>(k.items||[]).filter(D=>(D.parentId||null)===_).map(D=>{var W,U;if(f){const V=(W=D.name)==null?void 0:W.toLowerCase().includes(f.toLowerCase()),G=(U=D.url)==null?void 0:U.toLowerCase().includes(f.toLowerCase());if(!D.isFolder&&!V&&!G)return null}if(D.isFolder){const V=g.has(D.id)||!!f;return h.jsxs("div",{className:"tree-folder-node",children:[h.jsxs("div",{className:"tree-node-row folder-row",style:{paddingLeft:H*14},onClick:()=>I(D.id),children:[h.jsx("span",{className:"node-icon",children:V?h.jsx(Gc,{style:{color:"#faad14"}}):h.jsx(Nv,{style:{color:"#faad14"}})}),h.jsx(es,{className:"node-title",ellipsis:!0,children:D.name}),h.jsx("div",{className:"node-actions",onClick:G=>G.stopPropagation(),children:h.jsx(fs,{menu:{items:[{key:"rename-folder",label:"Rename Folder",icon:h.jsx(yl,{}),onClick:()=>O("item",k.id,D.id,D.name)},{key:"add-req",label:"Add Request",icon:h.jsx(Yr,{}),onClick:()=>N(k.id,D.id)},{key:"add-folder",label:"Add Subfolder",icon:h.jsx(Nv,{}),onClick:()=>P(k.id,D.id)},{key:"delete",label:"Delete",icon:h.jsx($r,{}),danger:!0,onClick:()=>B(k.id,D.id)}]},trigger:["click"],children:h.jsx(Ue,{type:"text",size:"small",icon:h.jsx(wb,{})})})})]}),V&&h.jsx("div",{className:"tree-folder-children",children:L(k,D.id,H+1)})]},D.id)}const F=n===D.id;return h.jsxs("div",{className:`tree-node-row request-row ${F?"is-active":""}`,style:{paddingLeft:H*14},onClick:()=>r(k.id,D.id),children:[h.jsx(qt,{color:tse[D.method]||"default",style:{marginRight:6,fontSize:"10px",padding:"0 4px",fontWeight:"bold"},children:D.method}),h.jsx(es,{className:"node-title",ellipsis:!0,children:D.name}),h.jsx("div",{className:"node-actions",onClick:V=>V.stopPropagation(),children:h.jsx(fs,{menu:{items:[{key:"rename-req",label:"Rename Request",icon:h.jsx(yl,{}),onClick:()=>O("item",k.id,D.id,D.name)},{key:"delete",label:"Delete",icon:h.jsx($r,{}),danger:!0,onClick:()=>B(k.id,D.id)}]},trigger:["click"],children:h.jsx(Ue,{type:"text",size:"small",icon:h.jsx(wb,{})})})})]},D.id)});return h.jsxs("div",{className:"postman-sidebar",children:[h.jsxs("div",{className:"sidebar-header",children:[h.jsxs("div",{className:"sidebar-title-row",children:[h.jsx(es,{strong:!0,style:{fontSize:15,color:"#172033"},children:"Collections"}),h.jsxs(vt,{size:2,children:[h.jsx(_n,{title:"Open in new browser tab",children:h.jsx(Ue,{type:"text",size:"small",icon:h.jsx(qC,{}),onClick:()=>{const k=`${window.location.origin}/#/postman`;window.open(k,"_blank")}})}),h.jsx(_n,{title:"Open in default browser",children:h.jsx(Ue,{type:"text",size:"small",icon:h.jsx(jf,{}),onClick:()=>{const k=`${window.location.origin}/#/postman`;Zr(k)}})})]})]}),h.jsxs("div",{className:"sidebar-toolbar",children:[h.jsx(Ue,{size:"small",type:"primary",icon:h.jsx(Yr,{}),onClick:c,style:{flex:1},children:"New"}),h.jsx(Ue,{size:"small",icon:h.jsx(Goe,{}),onClick:a,style:{flex:1},children:"Import"}),h.jsx(_n,{title:"Manage Environments",children:h.jsx(Ue,{size:"small",icon:h.jsx(ZN,{}),onClick:l})})]}),h.jsx("div",{className:"sidebar-search-row",children:h.jsx(sn,{prefix:h.jsx(Rs,{style:{color:"#a0a6b1"}}),placeholder:"Filter collections & requests…",size:"small",value:f,onChange:k=>v(k.target.value),allowClear:!0})})]}),h.jsx("div",{className:"sidebar-content",children:e.length===0?h.jsx(Bn,{image:Bn.PRESENTED_IMAGE_SIMPLE,description:h.jsxs("div",{style:{color:"#7d8799",fontSize:"12px",marginTop:4,lineHeight:"1.6"},children:["No Collections yet.",h.jsx("br",{}),"Click ",h.jsx(es,{strong:!0,style:{color:"#1677ff"},children:"+"})," to create or ",h.jsx(es,{strong:!0,style:{color:"#1677ff"},children:"Import"})," to load Postman / cURL."]}),style:{marginTop:40}}):e.map(k=>{const _=!y.has(k.id)||!!f,H=(k.items||[]).filter(z=>!z.isFolder).length;return h.jsxs("div",{className:"collection-group",children:[h.jsxs("div",{className:"collection-header",onClick:()=>j(k.id),children:[h.jsxs("span",{className:"collection-title-wrap",children:[h.jsx("span",{className:"node-icon",style:{display:"inline-flex",alignItems:"center",marginRight:6,fontSize:11,color:"#7d8799"},children:_?h.jsx(yf,{}):h.jsx($i,{})}),h.jsx(es,{strong:!0,ellipsis:!0,className:"collection-name",children:k.name}),h.jsxs(es,{type:"secondary",className:"collection-count",children:["(",H,")"]})]}),h.jsx("div",{className:"collection-actions",onClick:z=>z.stopPropagation(),children:h.jsx(fs,{menu:{items:[{key:"rename-col",label:"Rename Collection",icon:h.jsx(yl,{}),onClick:()=>O("collection",k.id,null,k.name)},{key:"add-req",label:"Add Request",icon:h.jsx(Yr,{}),onClick:()=>N(k.id)},{key:"add-folder",label:"Add Folder",icon:h.jsx(Nv,{}),onClick:()=>P(k.id)},{key:"delete-col",label:"Delete Collection",icon:h.jsx($r,{}),danger:!0,onClick:()=>d(k.id)}]},trigger:["click"],children:h.jsx(Ue,{type:"text",size:"small",icon:h.jsx(wb,{})})})})]}),_&&h.jsx("div",{className:"collection-tree-body",children:L(k,null,1)})]},k.id)})}),h.jsx(ar,{title:`Rename ${($==null?void 0:$.type)==="collection"?"Collection":"Item"}`,open:S,onCancel:()=>b(!1),onOk:M,destroyOnClose:!0,width:420,children:h.jsx(sn,{value:E,onChange:k=>R(k.target.value),onPressEnter:M,placeholder:"Enter new name",autoFocus:!0,style:{marginTop:12}})})]})}const{Option:gd}=Fn,{TextArea:rse}=sn,{Text:ts}=Xn,ase=["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"];function ose({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([]),[y,x]=i.useState([]),[S,b]=i.useState({mode:"none",raw:"",json:"",formdata:[],urlencoded:[]}),[$,w]=i.useState({type:"none",token:"",username:"",password:""}),[E,R]=i.useState(""),[j,I]=i.useState("params");if(i.useEffect(()=>{e&&(d(e.method||"GET"),v(e.url||""),p(e.params||[]),x(e.headers||[]),b(e.body||{mode:"none",raw:"",json:"",formdata:[],urlencoded:[]}),w(e.auth||{type:"none",token:"",username:"",password:""}),R(e.name||"Untitled Request"))},[e==null?void 0:e.id]),!e)return h.jsx("div",{className:"request-editor-empty",children:h.jsx(ts,{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:y,body:S,auth:$})},M=()=>{l({...e,name:E,method:u,url:f,params:g,headers:y,body:S,auth:$})},N=()=>{p([...g,{key:"",value:"",enabled:!0}])},P=(D,F,W)=>{const U=[...g];U[D]={...U[D],[F]:W},p(U)},B=D=>{p(g.filter((F,W)=>W!==D))},L=()=>{x([...y,{key:"",value:"",enabled:!0}])},k=(D,F,W)=>{const U=[...y];U[D]={...U[D],[F]:W},x(U)},_=D=>{x(y.filter((F,W)=>W!==D))},H=[{title:"",dataIndex:"enabled",width:40,render:(D,F,W)=>h.jsx(Qr,{checked:D!==!1,onChange:U=>P(W,"enabled",U.target.checked)})},{title:"Key",dataIndex:"key",width:"40%",render:(D,F,W)=>h.jsx(sn,{placeholder:"Parameter Key",value:D,onChange:U=>P(W,"key",U.target.value),size:"small"})},{title:"Value",dataIndex:"value",width:"50%",render:(D,F,W)=>h.jsx(sn,{placeholder:"Parameter Value",value:D,onChange:U=>P(W,"value",U.target.value),size:"small"})},{title:"",key:"actions",width:40,render:(D,F,W)=>h.jsx(Ue,{type:"text",danger:!0,size:"small",icon:h.jsx($r,{}),onClick:()=>B(W)})}],z=[{title:"",dataIndex:"enabled",width:40,render:(D,F,W)=>h.jsx(Qr,{checked:D!==!1,onChange:U=>k(W,"enabled",U.target.checked)})},{title:"Header",dataIndex:"key",width:"40%",render:(D,F,W)=>h.jsx(sn,{placeholder:"Header (e.g. Content-Type)",value:D,onChange:U=>k(W,"key",U.target.value),size:"small"})},{title:"Value",dataIndex:"value",width:"50%",render:(D,F,W)=>h.jsx(sn,{placeholder:"Header Value",value:D,onChange:U=>k(W,"value",U.target.value),size:"small"})},{title:"",key:"actions",width:40,render:(D,F,W)=>h.jsx(Ue,{type:"text",danger:!0,size:"small",icon:h.jsx($r,{}),onClick:()=>_(W)})}];return h.jsxs("div",{className:"request-editor",children:[h.jsxs("div",{className:"request-bar",children:[h.jsx(sn,{value:E,onChange:D=>R(D.target.value),className:"request-name-input",placeholder:"Request Name"}),h.jsxs("div",{className:"request-url-row",children:[h.jsx(Fn,{value:u,onChange:d,className:`method-select method-${u.toLowerCase()}`,style:{width:110},children:ase.map(D=>h.jsx(gd,{value:D,children:D},D))}),h.jsx(sn,{value:f,onChange:D=>v(D.target.value),placeholder:"Enter request URL or {{variable}}",className:"url-input",onPressEnter:O}),h.jsx(Fn,{value:n,onChange:r,placeholder:"Environment",allowClear:!0,style:{width:160},suffixIcon:h.jsx(voe,{}),children:t.map(D=>h.jsx(gd,{value:D.id,children:D.name},D.id))}),h.jsx(Ue,{type:"primary",icon:h.jsx(GC,{}),loading:c,onClick:O,className:"send-btn",children:"Send"}),h.jsx(Ue,{icon:h.jsx(Eie,{}),onClick:M,children:"Save"})]})]}),h.jsx("div",{className:"request-tabs-wrap",children:h.jsx(Lo,{activeKey:j,onChange:I,size:"small",items:[{key:"params",label:`Params (${g.filter(D=>D.key).length})`,children:h.jsxs("div",{className:"tab-pane-content",children:[h.jsx(mr,{dataSource:g,columns:H,rowKey:(D,F)=>`param_${F}`,pagination:!1,size:"small"}),h.jsx(Ue,{type:"dashed",size:"small",icon:h.jsx(Yr,{}),onClick:N,style:{marginTop:8},children:"Add Query Parameter"})]})},{key:"headers",label:`Headers (${y.filter(D=>D.key).length})`,children:h.jsxs("div",{className:"tab-pane-content",children:[h.jsx(mr,{dataSource:y,columns:z,rowKey:(D,F)=>`hdr_${F}`,pagination:!1,size:"small"}),h.jsx(Ue,{type:"dashed",size:"small",icon:h.jsx(Yr,{}),onClick:L,style:{marginTop:8},children:"Add Header"})]})},{key:"body",label:`Body (${S.mode})`,children:h.jsxs("div",{className:"tab-pane-content",children:[h.jsx("div",{style:{marginBottom:12},children:h.jsxs(fr.Group,{value:S.mode||"none",onChange:D=>b({...S,mode:D.target.value}),size:"small",children:[h.jsx(fr.Button,{value:"none",children:"none"}),h.jsx(fr.Button,{value:"json",children:"json"}),h.jsx(fr.Button,{value:"raw",children:"raw"}),h.jsx(fr.Button,{value:"urlencoded",children:"x-www-form-urlencoded"})]})}),S.mode==="json"||S.mode==="raw"?h.jsx(rse,{rows:8,value:S.raw||S.json||"",onChange:D=>b({...S,raw:D.target.value,json:D.target.value}),placeholder:'{\\n "key": "value"\\n}',style:{fontFamily:"monospace",fontSize:"13px"}}):S.mode==="urlencoded"?h.jsx(ts,{type:"secondary",children:"x-www-form-urlencoded parameters configured via Headers / Params."}):h.jsx(ts,{type:"secondary",children:"This request does not have a body."})]})},{key:"auth",label:`Auth (${$.type||"none"})`,children:h.jsxs("div",{className:"tab-pane-content",style:{maxWidth:520},children:[h.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:12},children:[h.jsx(ts,{strong:!0,style:{width:80,flexShrink:0},children:"Type:"}),h.jsxs(Fn,{value:$.type||"none",onChange:D=>w({...$,type:D}),style:{flex:1},size:"small",children:[h.jsx(gd,{value:"none",children:"No Auth"}),h.jsx(gd,{value:"bearer",children:"Bearer Token"}),h.jsx(gd,{value:"basic",children:"Basic Auth"})]})]}),$.type==="bearer"&&h.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:12},children:[h.jsx(ts,{strong:!0,style:{width:80,flexShrink:0},children:"Token:"}),h.jsx(sn,{value:$.token||"",onChange:D=>w({...$,token:D.target.value}),placeholder:"Bearer token or {{token}}",size:"small",style:{flex:1}})]}),$.type==="basic"&&h.jsxs(vt,{direction:"vertical",style:{width:"100%"},size:"small",children:[h.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:6},children:[h.jsx(ts,{strong:!0,style:{width:80,flexShrink:0},children:"Username:"}),h.jsx(sn,{value:$.username||"",onChange:D=>w({...$,username:D.target.value}),size:"small",style:{flex:1}})]}),h.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[h.jsx(ts,{strong:!0,style:{width:80,flexShrink:0},children:"Password:"}),h.jsx(sn.Password,{value:$.password||"",onChange:D=>w({...$,password:D.target.value}),size:"small",style:{flex:1}})]})]})]})}]})})]})}const{Text:g3}=Xn;function ise({response:e,loading:t}){const[n,r]=i.useState("pretty");if(t)return h.jsx("div",{className:"response-panel loading-state",children:h.jsxs("div",{className:"loading-spinner",children:[h.jsx(qc,{spin:!0,style:{fontSize:28,color:"#1677ff",marginBottom:12}}),h.jsx(g3,{type:"secondary",children:"Sending HTTP Request…"})]})});if(!e)return h.jsx("div",{className:"response-panel empty-state",children:h.jsx(Bn,{image:Bn.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,x=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`,b=()=>{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||"")},$=()=>{navigator.clipboard.writeText(b()),Hn.success("Response body copied to clipboard!")},w=Object.entries(c).map(([E,R],j)=>({key:j,keyName:E,value:String(R)}));return h.jsxs("div",{className:"response-panel",children:[h.jsxs("div",{className:"response-header-bar",children:[h.jsxs("div",{className:"response-status-group",children:[g?h.jsx(qt,{color:"error",children:"Error"}):h.jsxs(qt,{color:x,style:{fontSize:13,padding:"2px 8px"},children:[a," ",l]}),d!==void 0&&h.jsxs("span",{className:"response-meta-item",children:[h.jsx(qc,{})," ",d," ms"]}),f!==void 0&&h.jsxs("span",{className:"response-meta-item",children:[h.jsx(Loe,{})," ",S(f)]})]}),h.jsx(_n,{title:"Copy Response",children:h.jsx(Ue,{size:"small",icon:h.jsx(ei,{}),onClick:$,children:"Copy"})})]}),h.jsx("div",{className:"response-body-wrap",children:h.jsx(Lo,{activeKey:n,onChange:r,size:"small",items:[{key:"pretty",label:"Pretty",children:h.jsx("pre",{className:"code-viewer",children:h.jsx("code",{children:b()})})},{key:"raw",label:"Raw",children:h.jsx("pre",{className:"code-viewer raw",children:h.jsx("code",{children:typeof u=="string"?u:JSON.stringify(u)})})},{key:"headers",label:`Headers (${Object.keys(c).length})`,children:h.jsx(mr,{dataSource:w,columns:[{title:"Header",dataIndex:"keyName",width:"30%",render:E=>h.jsx(g3,{strong:!0,children:E})},{title:"Value",dataIndex:"value"}],size:"small",pagination:!1,style:{marginTop:8}})}]})})]})}const{Dragger:lse}=sp,{TextArea:p3}=sn,{Text:h3}=Xn;function sse({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 y=>{if(!y||!y.trim()){Hn.warning("Please select a file or paste content to import");return}try{v(!0),await n(y.trim()),Hn.success("Imported successfully!"),c(""),d(""),t()}catch(x){Hn.error(`Import failed: ${x.message}`)}finally{v(!1)}},p={name:"file",multiple:!1,accept:".json",showUploadList:!1,beforeUpload(y){if(!(y.type==="application/json"||y.name.endsWith(".json")))return Hn.error("Please upload a valid .json file!"),!1;const S=new FileReader;return S.onload=b=>{const $=b.target.result;g($)},S.readAsText(y),!1}};return h.jsx(ar,{title:"Import Postman Collection / cURL",open:e,onCancel:t,footer:[h.jsx(Ue,{onClick:t,children:"Cancel"},"cancel"),(r==="text"||r==="curl")&&h.jsx(Ue,{type:"primary",loading:f,onClick:()=>g(r==="text"?l:u),children:"Import"},"submit")].filter(Boolean),width:640,destroyOnClose:!0,children:h.jsx(Lo,{activeKey:r,onChange:a,items:[{key:"file",label:h.jsxs("span",{children:[h.jsx(rf,{})," Upload JSON File"]}),children:h.jsx("div",{style:{padding:"16px 0"},children:h.jsxs(lse,{...p,children:[h.jsx("p",{className:"ant-upload-drag-icon",children:h.jsx(rf,{style:{color:"#1677ff",fontSize:48}})}),h.jsx("p",{className:"ant-upload-text",children:"Click or drag Postman Collection JSON file to this area"}),h.jsx("p",{className:"ant-upload-hint",children:"Supports Postman Collection v2.0 and v2.1 JSON files."})]})})},{key:"text",label:h.jsxs("span",{children:[h.jsx(uu,{})," Raw Collection JSON"]}),children:h.jsxs("div",{style:{padding:"12px 0"},children:[h.jsx(h3,{type:"secondary",style:{display:"block",marginBottom:8},children:"Paste raw Postman Collection JSON content:"}),h.jsx(p3,{rows:10,value:l,onChange:y=>c(y.target.value),placeholder:'{ "info": { "name": "Sample Collection" }, "item": [...] }',style:{fontFamily:"monospace",fontSize:"13px"}})]})},{key:"curl",label:h.jsxs("span",{children:[h.jsx(ji,{})," cURL Command"]}),children:h.jsxs("div",{style:{padding:"12px 0"},children:[h.jsx(h3,{type:"secondary",style:{display:"block",marginBottom:8},children:"Paste a raw cURL command to import as a request:"}),h.jsx(p3,{rows:10,value:u,onChange:y=>d(y.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:cse}=Fn,{Text:use}=Xn;function dse({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(j=>j.id===f),p=()=>{const j={id:`env_${Date.now()}`,name:`Environment ${l.length+1}`,variables:[{key:"baseUrl",value:"http://localhost:3000",enabled:!0}]};c([...l,j]),v(j.id),u||d(j.id)},y=j=>{var O,M;const I=l.filter(N=>N.id!==j);c(I),u===j&&d(((O=I[0])==null?void 0:O.id)||null),f===j&&v(((M=I[0])==null?void 0:M.id)||null)},x=j=>{f&&c(l.map(I=>I.id===f?{...I,name:j}:I))},S=j=>{f&&c(l.map(I=>I.id===f?{...I,variables:j}:I))},b=()=>{if(!g)return;const j=[...g.variables||[],{key:"",value:"",enabled:!0}];S(j)},$=(j,I,O)=>{if(!g)return;const M=[...g.variables||[]];M[j]={...M[j],[I]:O},S(M)},w=j=>{if(!g)return;const I=g.variables.filter((O,M)=>M!==j);S(I)},E=()=>{a({environments:l,activeEnvironmentId:u}),t()},R=[{title:"",dataIndex:"enabled",width:40,render:(j,I,O)=>h.jsx(Qr,{checked:j!==!1,onChange:M=>$(O,"enabled",M.target.checked)})},{title:"Variable Name",dataIndex:"key",width:"40%",render:(j,I,O)=>h.jsx(sn,{placeholder:"VARIABLE_NAME",value:j,onChange:M=>$(O,"key",M.target.value),size:"small"})},{title:"Value",dataIndex:"value",width:"50%",render:(j,I,O)=>h.jsx(sn,{placeholder:"Value",value:j,onChange:M=>$(O,"value",M.target.value),size:"small"})},{title:"",key:"actions",width:40,render:(j,I,O)=>h.jsx(Ue,{type:"text",danger:!0,size:"small",icon:h.jsx($r,{}),onClick:()=>w(O)})}];return h.jsx(ar,{title:"Manage Environment Variables",open:e,onCancel:t,onOk:E,width:720,destroyOnClose:!0,children:h.jsxs(vt,{direction:"vertical",style:{width:"100%"},size:"middle",children:[h.jsxs("div",{style:{display:"flex",gap:12,alignItems:"center"},children:[h.jsx(use,{strong:!0,children:"Active Environment:"}),h.jsx(Fn,{style:{width:220},value:u,onChange:d,placeholder:"No Active Environment",allowClear:!0,children:l.map(j=>h.jsx(cse,{value:j.id,children:j.name},j.id))}),h.jsx(Ue,{icon:h.jsx(Yr,{}),onClick:p,children:"New Environment"})]}),f&&g?h.jsxs("div",{style:{border:"1px solid #303030",borderRadius:8,padding:16},children:[h.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:12},children:[h.jsx(sn,{value:g.name,onChange:j=>x(j.target.value),style:{width:260,fontWeight:"bold"}}),h.jsx(Ya,{title:"Delete this environment?",onConfirm:()=>y(g.id),okText:"Yes",cancelText:"No",children:h.jsx(Ue,{type:"text",danger:!0,icon:h.jsx($r,{}),children:"Delete Environment"})})]}),h.jsx(mr,{dataSource:g.variables||[],columns:R,rowKey:(j,I)=>`var_${I}`,pagination:!1,size:"small"}),h.jsx(Ue,{type:"dashed",icon:h.jsx(Yr,{}),onClick:b,block:!0,style:{marginTop:12},children:"Add Variable"})]}):h.jsx("div",{style:{textAlign:"center",padding:"32px 0",color:"#888"},children:'No environments created yet. Click "New Environment" to create one.'})]})})}function fse(){const{message:e}=Ra.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),[y,x]=i.useState(!0),[S,b]=i.useState(!1),[$,w]=i.useState(!1),[E,R]=i.useState(!1),j=async()=>{try{x(!0);const F=await al.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 U=(W.items||[]).find(V=>!V.isFolder);U&&v(U.id)}}catch(F){e.error(`Failed to load Postman data: ${F.message}`)}finally{x(!1)}};i.useEffect(()=>{j()},[]);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 al.importCollection(F);await j(),d(W.id);const U=(W.items||[]).find(V=>!V.isFolder);U&&v(U.id)}catch(W){throw e.error(`Import failed: ${W.message}`),W}},B=async()=>{try{const F=await al.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 U=await al.updateCollection(F,W);n(t.map(V=>V.id===F?U:V))}catch(U){e.error(U.message)}},k=async F=>{var W;try{await al.deleteCollection(F);const U=t.filter(V=>V.id!==F);n(U),u===F&&(d(((W=U[0])==null?void 0:W.id)||null),v(null)),e.success("Collection deleted")}catch(U){e.error(U.message)}},_=async({environments:F,activeEnvironmentId:W})=>{try{const U=await al.saveEnvironments({environments:F,activeEnvironmentId:W});a(U.environments||[]),c(U.activeEnvironmentId||null),e.success("Environments saved")}catch(U){e.error(U.message)}},H=async F=>{try{c(F),await al.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")},D=async F=>{if(!F.url){e.warning("Please enter a target URL");return}try{b(!0),p(null);const W=(I==null?void 0:I.variables)||[],U=(M==null?void 0:M.variables)||[],V=await al.sendRequest({...F,collectionVariables:W,environmentVariables:U});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{b(!1)}};return y?h.jsx("div",{style:{textAlign:"center",padding:"100px 0"},children:h.jsx(la,{size:"large",tip:"Loading Postman Workbench..."})}):h.jsxs("div",{className:"postman-container",children:[h.jsx(nse,{collections:t,activeCollectionId:u,activeRequestId:f,onSelectRequest:N,onOpenImportModal:()=>w(!0),onOpenEnvModal:()=>R(!0),onCreateCollection:B,onUpdateCollection:L,onDeleteCollection:k}),h.jsxs("div",{className:"postman-workspace",children:[h.jsx(ose,{request:O,environments:r,activeEnvironmentId:l,onSelectEnvironment:H,onSend:D,onSave:z,sending:S}),h.jsx(ise,{response:g,loading:S})]}),h.jsx(sse,{open:$,onClose:()=>w(!1),onImport:P}),h.jsx(dse,{open:E,onClose:()=>R(!1),environments:r,activeEnvironmentId:l,onSave:_})]})}const{Title:Nb,Text:ll,Paragraph:Mb}=Xn;function mse(){var j,I,O,M,N,P,B,L,k,_,H,z,D,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,y]=i.useState(!1),[x,S]=i.useState(null),b=async()=>{t(!0);try{const W=await Ob.status();u(W)}catch(W){Hn.error(W.message||"Failed to fetch bookmark status.")}finally{t(!1)}};i.useEffect(()=>{b()},[]);const $=async()=>{l(!0);try{const W=await Ob.preview(d);g(W),y(!0)}catch(W){Hn.error(W.message||"Failed to generate preview.")}finally{l(!1)}},w=async()=>{r(!0),S(null);try{const W=await Ob.sync(d);S(W),Hn.success("Bookmarks synchronized successfully!"),b()}catch(W){Hn.error(W.message||"Failed to sync bookmarks.")}finally{r(!1)}},E=[{title:"Bookmark Name",dataIndex:"name",key:"name",render:W=>h.jsx(ll,{strong:!0,children:W||"Untitled"})},{title:"URL",dataIndex:"url",key:"url",ellipsis:!0,render:W=>h.jsx("a",{href:W,target:"_blank",rel:"noreferrer",children:W})},{title:"Folder Location",dataIndex:"folderPath",key:"folderPath",render:W=>h.jsx(qt,{color:"blue",children:W||"Bookmark Bar"})}];if(e&&!c)return h.jsx("div",{style:{textAlign:"center",padding:"60px 0"},children:h.jsx(la,{size:"large",tip:"Checking browser bookmark paths…"})});const R=((j=c==null?void 0:c.chrome)==null?void 0:j.running)||((I=c==null?void 0:c.edge)==null?void 0:I.running);return h.jsxs("div",{style:{maxWidth:1e3,margin:"0 auto",paddingBottom:40},children:[h.jsx("div",{className:"page-header",children:h.jsxs("div",{children:[h.jsx(ll,{type:"secondary",children:"UTILITIES"}),h.jsx(Nb,{level:2,children:"Bookmark Sync"}),h.jsx(Mb,{type:"secondary",className:"page-header-desc",children:"Seamlessly merge and sync bookmarks between Google Chrome and Microsoft Edge with automatic deduplication and safe backups."})]})}),R&&h.jsx(pl,{type:"warning",showIcon:!0,icon:h.jsx(ag,{}),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}}),h.jsxs(Ro,{gutter:[16,16],style:{marginBottom:24},children:[h.jsx(Qn,{xs:24,sm:12,children:h.jsxs(yn,{title:h.jsxs(vt,{children:[h.jsx(Fae,{style:{fontSize:18,color:"#1890ff"}}),h.jsx("span",{children:"Google Chrome"})]}),extra:(O=c==null?void 0:c.chrome)!=null&&O.exists?h.jsx(qt,{color:"success",icon:h.jsx(Oi,{}),children:"Ready"}):h.jsx(qt,{color:"default",children:"File Not Found"}),bordered:!0,hoverable:!0,style:{borderRadius:10},children:[h.jsxs(Mb,{type:"secondary",style:{fontSize:12,marginBottom:12},children:["Path: ",((M=c==null?void 0:c.chrome)==null?void 0:M.path)||"-"]}),h.jsxs(vt,{direction:"vertical",style:{width:"100%"},children:[h.jsxs("div",{children:["Bookmarks Count:"," ",h.jsx(ll,{strong:!0,style:{fontSize:18,color:"#1890ff"},children:((N=c==null?void 0:c.chrome)==null?void 0:N.count)??0})," ","items"]}),h.jsxs("div",{children:["Process Status:"," ",(P=c==null?void 0:c.chrome)!=null&&P.running?h.jsx(ja,{status:"processing",text:"Running"}):h.jsx(ja,{status:"default",text:"Not running"})]})]})]})}),h.jsx(Qn,{xs:24,sm:12,children:h.jsxs(yn,{title:h.jsxs(vt,{children:[h.jsx(roe,{style:{fontSize:18,color:"#0078d4"}}),h.jsx("span",{children:"Microsoft Edge"})]}),extra:(B=c==null?void 0:c.edge)!=null&&B.exists?h.jsx(qt,{color:"success",icon:h.jsx(Oi,{}),children:"Ready"}):h.jsx(qt,{color:"default",children:"File Not Found"}),bordered:!0,hoverable:!0,style:{borderRadius:10},children:[h.jsxs(Mb,{type:"secondary",style:{fontSize:12,marginBottom:12},children:["Path: ",((L=c==null?void 0:c.edge)==null?void 0:L.path)||"-"]}),h.jsxs(vt,{direction:"vertical",style:{width:"100%"},children:[h.jsxs("div",{children:["Bookmarks Count:"," ",h.jsx(ll,{strong:!0,style:{fontSize:18,color:"#722ed1"},children:((k=c==null?void 0:c.edge)==null?void 0:k.count)??0})," ","items"]}),h.jsxs("div",{children:["Process Status:"," ",(_=c==null?void 0:c.edge)!=null&&_.running?h.jsx(ja,{status:"processing",text:"Running"}):h.jsx(ja,{status:"default",text:"Not running"})]})]})]})})]}),h.jsx(yn,{title:"Sync Mode & Controls",style:{borderRadius:10,marginBottom:24},children:h.jsxs(vt,{direction:"vertical",size:"large",style:{width:"100%"},children:[h.jsxs("div",{children:[h.jsx(ll,{strong:!0,style:{display:"block",marginBottom:8},children:"Select Sync Rule:"}),h.jsxs(fr.Group,{value:d,onChange:W=>f(W.target.value),buttonStyle:"solid",children:[h.jsx(fr.Button,{value:"two-way",children:h.jsxs(vt,{size:4,children:[h.jsx(nQ,{}),h.jsx("span",{children:"Two-way Merge (Union)"})]})}),h.jsx(fr.Button,{value:"chrome-to-edge",children:h.jsxs(vt,{size:4,children:[h.jsx(YN,{}),h.jsx("span",{children:"Chrome to Edge"})]})}),h.jsx(fr.Button,{value:"edge-to-chrome",children:h.jsxs(vt,{size:4,children:[h.jsx(i1,{}),h.jsx("span",{children:"Edge to Chrome"})]})})]})]}),h.jsx(xC,{style:{margin:"8px 0"}}),h.jsxs(vt,{size:"middle",children:[h.jsx(Ue,{type:"primary",size:"large",icon:h.jsx(ig,{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"}),h.jsx(Ue,{size:"large",icon:h.jsx(IC,{}),loading:a,disabled:!((D=c==null?void 0:c.chrome)!=null&&D.exists)&&!((F=c==null?void 0:c.edge)!=null&&F.exists),onClick:$,style:{borderRadius:6},children:"Preview Changes"}),h.jsx(Ue,{icon:h.jsx(ys,{}),onClick:b,loading:e,children:"Refresh Status"})]})]})}),x&&h.jsx(pl,{type:"success",showIcon:!0,icon:h.jsx(Sie,{}),message:"Sync Completed Successfully",description:h.jsxs(vt,{direction:"vertical",style:{marginTop:8},children:[h.jsxs("div",{children:["Bookmarks updated! Added to Edge: ",h.jsx(ll,{strong:!0,children:x.addedToEdgeCount})," items, Added to Chrome:"," ",h.jsx(ll,{strong:!0,children:x.addedToChromeCount})," items."]}),x.backupsCreated&&x.backupsCreated.length>0&&h.jsxs("div",{children:[h.jsx(ll,{type:"secondary",style:{fontSize:12},children:"Safety backups created:"}),h.jsx(Xd,{size:"small",dataSource:x.backupsCreated,renderItem:W=>h.jsx(Xd.Item,{style:{padding:"2px 0",fontSize:12},children:h.jsx("code",{children:W})})})]})]}),style:{borderRadius:8,marginBottom:24}}),h.jsx(ar,{title:"Bookmark Sync Changes Preview",open:p,onCancel:()=>y(!1),footer:[h.jsx(Ue,{onClick:()=>y(!1),children:"Cancel"},"close"),h.jsx(Ue,{type:"primary",icon:h.jsx(ig,{}),loading:n,onClick:()=>{y(!1),w()},children:"Confirm & Sync Now"},"sync")],width:800,children:v?h.jsxs(vt,{direction:"vertical",size:"middle",style:{width:"100%",marginTop:12},children:[h.jsx(pl,{type:"info",showIcon:!0,icon:h.jsx(xs,{}),message:`Current Mode: ${d==="two-way"?"Two-way Merge":d==="chrome-to-edge"?"Chrome to Edge":"Edge to Chrome"}`}),v.toAddEdge.length>0&&h.jsxs("div",{children:[h.jsxs(Nb,{level:5,children:["Pending Items to Add to Microsoft Edge (",v.toAddEdge.length,"):"]}),h.jsx(mr,{dataSource:v.toAddEdge,columns:E,rowKey:(W,U)=>`${W.url}-${W.folderPath}-${U}`,pagination:{defaultPageSize:5,showSizeChanger:!0,pageSizeOptions:["5","10","20","50"]},size:"small"})]}),v.toAddChrome.length>0&&h.jsxs("div",{children:[h.jsxs(Nb,{level:5,children:["Pending Items to Add to Google Chrome (",v.toAddChrome.length,"):"]}),h.jsx(mr,{dataSource:v.toAddChrome,columns:E,rowKey:(W,U)=>`${W.url}-${W.folderPath}-${U}`,pagination:{defaultPageSize:5,showSizeChanger:!0,pageSizeOptions:["5","10","20","50"]},size:"small"})]}),v.toAddEdge.length===0&&v.toAddChrome.length===0&&h.jsx("div",{style:{textAlign:"center",padding:"30px 0",color:"#999"},children:"Chrome and Edge bookmarks are fully synchronized. No pending changes."})]}):h.jsx(la,{})})]})}const{Title:vse,Text:Ga,Paragraph:gse}=Xn;function Tb(e){if(e===0)return"0 B";const t=1024,n=["B","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,r)).toFixed(2))+" "+n[r]}function pse(e){if(!e)return"-";const t=new Date(e);if(isNaN(t.getTime()))return e;const n=r=>String(r).padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`}function b3(e){if(!e)return"";const t=e.trim().replace(/[/\\]+$/,""),n=t.split(/[/\\]/);return`.../${n[n.length-1]||t}`}const cv={screenshots:{label:"Screenshots",color:"purple",icon:h.jsx(ZO,{})},images:{label:"Images",color:"magenta",icon:h.jsx(ZO,{})},videos:{label:"Videos",color:"volcano",icon:h.jsx(Vie,{})},audio:{label:"Audio",color:"lime",icon:h.jsx(soe,{})},documents:{label:"Documents",color:"blue",icon:h.jsx(uu,{})},emails:{label:"Emails",color:"gold",icon:h.jsx(iie,{})},json:{label:"JSON",color:"cyan",icon:h.jsx(ji,{})},code:{label:"Code",color:"green",icon:h.jsx(ji,{})},archives:{label:"Archives",color:"orange",icon:h.jsx(QO,{})},installers:{label:"Installers",color:"geekblue",icon:h.jsx(jae,{})},others:{label:"Others",color:"default",icon:h.jsx(QO,{})}};function hse(){const{message:e,modal:t}=Ra.useApp(),[n,r]=i.useState("organize"),[a,l]=i.useState("~/Downloads"),[c,u]=i.useState("default"),[d,f]=i.useState(""),[v,g]=i.useState(!0),[p,y]=i.useState(!1),[x,S]=i.useState(!1),[b,$]=i.useState("move"),[w,E]=i.useState(!1),[R,j]=i.useState(null),[I,O]=i.useState([]),[M,N]=i.useState("all"),[P,B]=i.useState(!1),[L,k]=i.useState([]),[_,H]=i.useState(!1),[z,D]=i.useState(!1),[F,W]=i.useState("~"),[U,V]=i.useState(null),[G,q]=i.useState(!1),K=()=>{const ee=a.trim().replace(/[/\\]+$/,"");if(c==="custom"&&d.trim()){const pe=d.trim();return pe.startsWith("~")||pe.startsWith("/")||/^[a-zA-Z]:[/\\]/.test(pe)?pe:`${ee}/${pe.replace(/^[/\\]+/,"")}`}const ie=new Date().toISOString().slice(0,10),ue=new Date().toTimeString().slice(0,5).replace(":",""),se=`Organized_${ie}_${ue}`;return`${ee}/${se}`},Z=async()=>{if(!a.trim()){e.error("Please specify a source directory path.");return}E(!0);try{const ee=K(),ie=await dd.scan({sourcePath:a.trim(),targetPath:ee,includeSubfolders:p,skipOrganized:v});j(ie),O(ie.files.map(ue=>ue.id)),e.success(`Scan completed. Found ${ie.files.length} files.`)}catch(ee){e.error(ee.message||"Folder scan failed")}finally{E(!1)}},Q=()=>{if(!R||R.files.length===0){e.error("Please scan the folder first.");return}const ee=R.files.filter(se=>I.includes(se.id));if(ee.length===0){e.warning("Please select at least one file to organize.");return}const ie=K(),ue=b==="move"?"Move":"Copy";t.confirm({title:`Confirm ${ue} Files?`,icon:h.jsx(YI,{style:{color:"#1890ff"}}),content:h.jsxs("div",{children:[h.jsxs("p",{children:["Will ",h.jsx("strong",{children:ue.toLowerCase()})," ",h.jsx("strong",{children:ee.length})," file(s) into the target directory:"]}),h.jsx("div",{style:{background:"#f5f5f5",padding:"8px 12px",borderRadius:6,fontFamily:"monospace",wordBreak:"break-all"},children:ie}),h.jsxs("p",{style:{marginTop:12,color:"#666",fontSize:13},children:["Target subdirectories: ",Array.from(new Set(ee.map(se=>se.subfolder))).join(", ")]})]}),okText:`Confirm ${ue}`,cancelText:"Cancel",onOk:async()=>{B(!0);try{const se=await dd.execute({sourcePath:R.sourcePath,targetPath:ie,files:ee,operation:b,deleteEmptyFolders:x}),pe=se.deletedDirsCount>0?` (cleaned ${se.deletedDirsCount} empty folders)`:"";e.success(`Successfully ${b==="move"?"moved":"copied"} ${se.successCount} files!${pe}`),j(null),O([]),te()}catch(se){e.error(se.message||"Execution failed")}finally{B(!1)}}})},te=async()=>{H(!0);try{const ee=await dd.getHistory();k(ee)}catch(ee){e.error(ee.message||"Failed to load history list.")}finally{H(!1)}};i.useEffect(()=>{n==="history"&&te()},[n]);const X=ee=>{t.confirm({title:"Undo Organization?",content:`Will restore ${ee.successCount} ${ee.operation==="move"?"moved":"copied"} file(s) back to their original paths.`,okText:"Confirm Undo",okType:"danger",cancelText:"Cancel",onOk:async()=>{try{const ie=await dd.undo(ee.id);e.success(`Undo completed! Successfully restored ${ie.revertSuccessCount} files.`),te()}catch(ie){e.error(ie.message||"Undo operation failed")}}})},oe=async ee=>{q(!0);try{const ie=await dd.browse(ee);V(ie),W(ie.currentPath)}catch(ie){e.error(ie.message||"Failed to read directory")}finally{q(!1)}},ae=ee=>{D(!0),oe(ee||"~")},re=[{title:"File Name",dataIndex:"filename",key:"filename",render:(ee,ie)=>h.jsxs(vt,{direction:"vertical",size:2,style:{wordBreak:"break-all",whiteSpace:"normal"},children:[h.jsx(Ga,{strong:!0,style:{wordBreak:"break-all"},children:ee}),ie.relativePath!==ee&&h.jsx(Ga,{type:"secondary",style:{fontSize:12,wordBreak:"break-all"},children:ie.relativePath})]})},{title:"Category",dataIndex:"categoryKey",key:"categoryKey",width:140,render:ee=>{const ie=cv[ee]||cv.others;return h.jsx(qt,{color:ie.color,icon:ie.icon,children:ie.label})}},{title:"Target Subfolder",dataIndex:"subfolder",key:"subfolder",width:150,render:ee=>h.jsxs(qt,{style:{fontFamily:"monospace"},children:[ee,"/"]})},{title:"Size",dataIndex:"size",key:"size",width:120,render:ee=>Tb(ee)}],Y=R?R.files.filter(ee=>M==="all"?!0:ee.categoryKey===M):[];return h.jsxs("div",{style:{paddingBottom:40},children:[h.jsx("div",{className:"page-header",children:h.jsxs("div",{children:[h.jsx(Ga,{type:"secondary",children:"UTILITIES"}),h.jsx(vse,{level:2,children:"Folder Organizer"}),h.jsx(gse,{type:"secondary",className:"page-header-desc",children:"Organize files in any directory into structured folders (Images, Screenshots, Videos, Audio, Documents, Emails, JSON, Code, Archives, Installers, etc.) with pre-execution preview and 1-click undo."})]})}),h.jsx(Lo,{activeKey:n,onChange:r,type:"card",items:[{key:"organize",label:h.jsxs("span",{children:[h.jsx(JO,{})," Organize Files"]}),children:h.jsxs(h.Fragment,{children:[h.jsx(yn,{style:{marginBottom:16,borderRadius:8,boxShadow:"0 1px 3px rgba(0,0,0,0.05)"},children:h.jsxs(Ro,{gutter:[16,16],children:[h.jsxs(Qn,{span:24,children:[h.jsx(Ga,{strong:!0,style:{display:"block",marginBottom:8},children:"Source Directory Path:"}),h.jsx(sn.Search,{value:a,onChange:ee=>l(ee.target.value),placeholder:"Enter directory path to organize, e.g. ~/Downloads",enterButton:h.jsxs(vt,{children:[h.jsx(JO,{})," Scan Folder"]}),loading:w,onSearch:Z,addonAfter:h.jsx(Ue,{type:"text",size:"small",icon:h.jsx(c1,{}),onClick:()=>ae(a),children:"Browse"})}),h.jsxs(vt,{style:{marginTop:8},children:[h.jsx(Ga,{type:"secondary",style:{fontSize:12},children:"Quick Presets:"}),h.jsx(Ue,{size:"small",type:"dashed",icon:h.jsx(KC,{}),onClick:()=>l("~/Downloads"),children:"Downloads"}),h.jsx(Ue,{size:"small",type:"dashed",icon:h.jsx(doe,{}),onClick:()=>l("~/Desktop"),children:"Desktop"}),h.jsx(Ue,{size:"small",type:"dashed",icon:h.jsx(uu,{}),onClick:()=>l("~/Documents"),children:"Documents"})]})]}),h.jsxs(Qn,{span:24,children:[h.jsx(Ga,{strong:!0,style:{display:"block",marginBottom:8},children:"Target Directory Settings:"}),h.jsxs(fr.Group,{value:c,onChange:ee=>u(ee.target.value),style:{marginBottom:8},children:[h.jsxs(fr,{value:"default",children:["Create default subdirectory (inside source folder ",h.jsx("code",{children:"Organized_YYYY-MM-DD..."}),")"]}),h.jsx(fr,{value:"custom",children:"Custom target path"})]}),c==="custom"&&h.jsx("div",{style:{marginTop:4},children:h.jsx(sn,{value:d,onChange:ee=>f(ee.target.value),placeholder:"Enter target directory path, e.g. ~/OrganizedFiles",addonAfter:h.jsx(Ue,{type:"text",size:"small",icon:h.jsx(c1,{}),onClick:()=>ae(d),children:"Browse"})})}),h.jsx("div",{style:{marginTop:6,background:"#fafafa",padding:"6px 12px",borderRadius:4},children:h.jsxs(Ga,{type:"secondary",style:{fontSize:12},children:["Projected target path: ",h.jsx("code",{style:{color:"#1890ff"},children:K()})]})})]}),h.jsx(Qn,{span:24,children:h.jsxs(vt,{size:"large",wrap:!0,children:[h.jsxs("div",{children:[h.jsx(Ga,{strong:!0,style:{marginRight:8},children:"Options:"}),h.jsx(Qr,{checked:v,onChange:ee=>g(ee.target.checked),children:"Skip Organized / target folders"}),h.jsx(Qr,{checked:p,onChange:ee=>y(ee.target.checked),children:"Include subfolders"}),h.jsx(Qr,{checked:x,onChange:ee=>S(ee.target.checked),children:"Delete empty folders"})]}),h.jsxs("div",{children:[h.jsx(Ga,{strong:!0,style:{marginRight:8},children:"Operation:"}),h.jsxs(fr.Group,{value:b,onChange:ee=>$(ee.target.value),optionType:"button",buttonStyle:"solid",size:"small",children:[h.jsx(fr.Button,{value:"move",children:"Move files"}),h.jsx(fr.Button,{value:"copy",children:"Copy files"})]})]})]})})]})}),R&&h.jsxs(h.Fragment,{children:[h.jsx(yn,{style:{marginBottom:16,borderRadius:8},children:h.jsxs(Ro,{gutter:[16,16],children:[h.jsx(Qn,{xs:12,sm:8,md:3,children:h.jsx(Ci,{title:"Files Found",value:R.stats.totalCount,suffix:"items"})}),h.jsx(Qn,{xs:12,sm:8,md:3,children:h.jsx(Ci,{title:"Total Size",value:Tb(R.stats.totalSize)})}),h.jsxs(Qn,{xs:24,sm:16,md:18,children:[h.jsx(Ga,{type:"secondary",style:{display:"block",marginBottom:8},children:"Category Breakdown:"}),h.jsx(vt,{wrap:!0,size:[8,8],children:Object.entries(R.stats.byCategory).map(([ee,ie])=>{const ue=cv[ee]||cv.others;return h.jsxs(qt,{color:ie.count>0?ue.color:"default",style:{padding:"4px 10px",fontSize:13,cursor:"pointer",border:M===ee?"2px solid #1890ff":void 0},onClick:()=>N(ee),children:[ue.icon," ",ue.label,": ",h.jsx("strong",{children:ie.count})," items (",Tb(ie.size),")"]},ee)})})]})]})}),h.jsx(yn,{title:h.jsxs(vt,{children:[h.jsx("span",{children:"Preview Files to Organize"}),h.jsxs(qt,{color:"blue",children:["Selected ",I.length," / ",R.files.length," items"]})]}),extra:h.jsxs(vt,{children:[M!=="all"&&h.jsx(Ue,{size:"small",onClick:()=>N("all"),children:"Reset Filter (Show All)"}),h.jsxs(Ue,{type:"primary",icon:h.jsx(Oi,{}),loading:P,onClick:Q,disabled:I.length===0,children:["Organize Files (",b==="move"?"Move":"Copy",")"]})]}),style:{borderRadius:8},children:h.jsx(mr,{rowKey:"id",dataSource:Y,columns:re,scroll:{x:"max-content"},pagination:{pageSize:15,showSizeChanger:!0,pageSizeOptions:["15","30","50","100"]},rowSelection:{selectedRowKeys:I,onChange:ee=>O(ee)},size:"small"})})]})]})},{key:"history",label:h.jsxs("span",{children:[h.jsx(Voe,{})," History & Undo (",L.length,")"]}),children:h.jsx(yn,{style:{borderRadius:8},children:h.jsx(mr,{loading:_,rowKey:"id",dataSource:L,scroll:{x:"max-content"},columns:[{title:"Timestamp",dataIndex:"timestamp",key:"timestamp",width:150,render:ee=>pse(ee)},{title:"Source & Target Directory",key:"paths",render:(ee,ie)=>h.jsxs("div",{children:[h.jsx(_n,{title:`Full Source: ${ie.sourcePath}`,placement:"topLeft",children:h.jsxs("div",{children:[h.jsx(Ga,{type:"secondary",style:{fontSize:12},children:"Source:"})," ",h.jsx("code",{style:{fontSize:12},children:b3(ie.sourcePath)})]})}),h.jsx(_n,{title:`Full Target: ${ie.targetPath}`,placement:"topLeft",children:h.jsxs("div",{style:{marginTop:2},children:[h.jsx(Ga,{type:"secondary",style:{fontSize:12},children:"Target:"})," ",h.jsx("code",{style:{fontSize:12},children:b3(ie.targetPath)})]})})]})},{title:"Operation",dataIndex:"operation",key:"operation",width:90,render:ee=>h.jsx(qt,{color:ee==="move"?"blue":"green",children:ee==="move"?"Move":"Copy"})},{title:"Success / Total",key:"count",width:140,render:(ee,ie)=>h.jsxs(vt,{direction:"vertical",size:2,children:[h.jsxs("span",{children:[ie.successCount," / ",ie.totalFiles," items"]}),ie.deletedDirsCount>0&&h.jsxs(Ga,{type:"secondary",style:{fontSize:11},children:["Cleaned ",ie.deletedDirsCount," empty folder(s)"]})]})},{title:"Status",dataIndex:"status",key:"status",width:100,render:ee=>ee==="reverted"?h.jsx(qt,{color:"warning",children:"Reverted"}):h.jsx(qt,{color:"success",children:"Completed"})},{title:"Action",key:"action",width:90,render:(ee,ie)=>ie.status!=="reverted"&&h.jsx(Ue,{size:"small",danger:!0,icon:h.jsx(JN,{}),onClick:()=>X(ie),children:"Undo"})}],pagination:{pageSize:10}})})}]}),h.jsx(ar,{title:"Browse Directory",open:z,onCancel:()=>D(!1),footer:null,width:600,children:h.jsxs(la,{spinning:G,children:[h.jsx("div",{style:{marginBottom:12},children:h.jsx(sn,{value:F,onChange:ee=>W(ee.target.value),onPressEnter:()=>oe(F),addonAfter:h.jsx(Ue,{size:"small",type:"text",onClick:()=>oe(F),children:"Go"})})}),U&&h.jsxs("div",{children:[h.jsx("div",{style:{marginBottom:8},children:h.jsx(Ue,{size:"small",onClick:()=>oe(U.parentPath),disabled:U.currentPath===U.parentPath,children:"⬅ Parent Directory"})}),h.jsx("div",{style:{maxHeight:300,overflowY:"auto",border:"1px solid #f0f0f0",borderRadius:4},children:U.subdirectories.length===0?h.jsx("div",{style:{padding:16,textAlign:"center",color:"#999"},children:"No subdirectories found"}):U.subdirectories.map(ee=>h.jsxs("div",{style:{padding:"8px 12px",borderBottom:"1px solid #f5f5f5",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer"},onClick:()=>oe(ee.fullPath),children:[h.jsxs("span",{children:[h.jsx(Gc,{style:{color:"#1890ff",marginRight:8}}),ee.name]}),h.jsx(Ue,{size:"small",type:"link",onClick:ie=>{ie.stopPropagation(),z&&(n==="organize"&&l(ee.fullPath),D(!1))},children:"Select Folder"})]},ee.fullPath))}),h.jsx("div",{style:{marginTop:12,textAlign:"right"},children:h.jsxs(Ue,{type:"primary",onClick:()=>{l(U.currentPath),D(!1)},children:["Confirm Path: ",U.currentPath]})})]})]})})]})}const{Title:bse,Text:oa,Paragraph:yse}=Xn,y3=[{label:"master",value:"master"},{label:"main",value:"main"},{label:"develop",value:"develop"},{label:"release/v1.0.0",value:"release/v1.0.0"},{label:"feature/v1.0.0",value:"feature/v1.0.0"}];function C3(e){if(!e||typeof e!="string")return"";let t=e.trim().replace(/\.git$/i,"");if(!t)return"";if(/^https?:\/\/[^/]+\/(?:projects\/[^/]+|users\/[^/]+)\/repos\/[^/]+/i.test(t))return t;const n=t.match(/^(https?:\/\/[^/]+)\/scm\/(?:projects\/)?([^/]+)\/([^/]+)/i);if(n){const l=n[1].replace(/^(https?:\/\/)(([^/@]+)@)/i,"$1"),c=n[2],u=n[3],d=c.startsWith("~")?`users/${c.slice(1)}`:`projects/${c}`;return`${l}/${d}/repos/${u}`}const r=t.match(/^(https?:\/\/[^/]+)\/(.+)$/i);if(r){const l=r[1].replace(/^(https?:\/\/)(([^/@]+)@)/i,"$1"),c=r[2].replace(/^\/+/,"").split("/").filter(Boolean);if(c.length>=2){const u=c[c.length-2],d=c[c.length-1],f=u.startsWith("~")?`users/${u.slice(1)}`:`projects/${u}`;return`${l}/${f}/repos/${d}`}return l}const a=t.match(/^(?:[a-zA-Z0-9_.-]+@)?([^:/]+)[:/](.+)$/);if(a){const l=a[1],u=a[2].replace(/^\/+/,"").replace(/^scm\//i,"").split("/").filter(Boolean);if(u.length>=2){const d=u[u.length-2],f=u[u.length-1],v=d.startsWith("~")?`users/${d.slice(1)}`:`projects/${d}`;return`https://${l}/${v}/repos/${f}`}}return t}function Cse(){var ue,se,pe;const{message:e}=Ra.useApp(),[t,n]=i.useState([]),[r,a]=i.useState(!0),[l,c]=i.useState(!0),[u,d]=i.useState(!1),[f,v]=i.useState(!1),[g,p]=i.useState(null),[y,x]=i.useState(!1),[S,b]=i.useState(!1),[$,w]=i.useState(null),[E,R]=i.useState({creating:!1,completed:!1,results:[]}),[j]=Ht.useForm(),[I]=Ht.useForm(),[O]=Ht.useForm(),[M,N]=i.useState({}),[P,B]=i.useState({}),[L,k]=i.useState([]),_=async()=>{a(!0);try{const[fe,he]=await Promise.all([ol.listApps(),Vr.status().catch(()=>({}))]);n(fe||[]),he&&typeof he.bitbucketTokenConfigured=="boolean"&&c(he.bitbucketTokenConfigured)}catch(fe){e.error(fe.message||"Failed to load branch sync apps.")}finally{a(!1)}};i.useEffect(()=>{_()},[]);const[H,z]=i.useState({}),[D,F]=i.useState(""),[W,U]=i.useState(""),V=async fe=>{var Se,be;if(!fe||typeof fe!="string"||!fe.trim())return[];const he=fe.trim();if((be=(Se=H[he])==null?void 0:Se.options)!=null&&be.length)return H[he].options;z($e=>({...$e,[he]:{loading:!0,options:[]}}));try{const ye=((await ol.getBranches(he)).branches||[]).map(Ne=>({label:Ne,value:Ne}));return z(Ne=>({...Ne,[he]:{loading:!1,options:ye}})),ye}catch{return z($e=>({...$e,[he]:{loading:!1,options:[]}})),[]}},G=async()=>{try{const fe=await j.validateFields();let he=[];if(fe.subApps&&fe.subApps.trim())try{if(he=JSON.parse(fe.subApps.trim()),!Array.isArray(he))throw new Error("subApps must be a JSON array.")}catch(be){e.error(`Invalid JSON in subApps: ${be.message}`);return}const Se={name:fe.name,repo:fe.repo,activeBranch:fe.activeBranch,lastReleaseBranch:fe.lastReleaseBranch,subApps:he};await ol.createApp(Se),e.success("App created successfully!"),d(!1),j.resetFields(),_()}catch(fe){fe.message&&e.error(fe.message)}},q=fe=>{var Se;const he=((Se=H[fe==null?void 0:fe.trim()])==null?void 0:Se.options)||[];return he.length>0?he:y3},K=fe=>{var he;return!!((he=H[fe==null?void 0:fe.trim()])!=null&&he.loading)},Z=fe=>{p(fe),U(fe.repo||""),I.setFieldsValue({name:fe.name,repo:fe.repo,activeBranch:fe.activeBranch,lastReleaseBranch:fe.lastReleaseBranch,subApps:fe.subApps?JSON.stringify(fe.subApps,null,2):""}),x(!0),fe.repo&&V(fe.repo)},Q=async()=>{if(g)try{const fe=await I.validateFields();let he=[];if(fe.subApps&&fe.subApps.trim())try{if(he=JSON.parse(fe.subApps.trim()),!Array.isArray(he))throw new Error("subApps must be a JSON array.")}catch(be){e.error(`Invalid JSON in subApps: ${be.message}`);return}const Se={name:fe.name,repo:fe.repo,activeBranch:fe.activeBranch,lastReleaseBranch:fe.lastReleaseBranch,subApps:he};await ol.updateApp(g.id,Se),e.success("App updated successfully!"),x(!1),p(null),_()}catch(fe){fe.message&&e.error(fe.message)}},te=async fe=>{try{await ol.deleteApp(fe),e.success("App deleted."),_()}catch(he){e.error(he.message||"Failed to delete app.")}},X=async fe=>{N(he=>({...he,[fe.id]:{...he[fe.id]||{},checking:!0}}));try{const he=await ol.check(fe);N(Se=>({...Se,[fe.id]:{checking:!1,parentCheck:he.parentCheck,subAppResults:he.subAppResults,checkedAt:he.checkedAt}})),fe.subApps&&fe.subApps.length>0&&k(Se=>Array.from(new Set([...Se,fe.id]))),e.success(`Check completed for ${fe.name}`)}catch(he){N(Se=>({...Se,[fe.id]:{checking:!1,error:he.message}})),e.error(he.message||`Failed to check ${fe.name}`)}},oe=async(fe,he,Se,be)=>{B($e=>({...$e,[fe]:{creating:!0,error:null,prUrl:null}}));try{const $e=await ol.createPr({repo:he,sourceBranch:Se,targetBranch:be,title:`Merge ${Se} to ${be}`});$e.success&&(e.success("PR created successfully!"),B(xe=>({...xe,[fe]:{creating:!1,error:null,prUrl:$e.prUrl}})))}catch($e){const xe=$e.message||"Failed to create PR.";B(ye=>({...ye,[fe]:{creating:!1,error:xe,prUrl:null}})),e.error(`PR Creation Failed: ${xe}`)}},ae=fe=>{w(fe),O.setFieldsValue({sourceBranch:fe.activeBranch||"master",targetBranch:""}),R({creating:!1,completed:!1,results:[]}),b(!0),fe.repo&&V(fe.repo)},re=async()=>{if($)try{const fe=await O.validateFields(),{sourceBranch:he,targetBranch:Se}=fe;R({creating:!0,completed:!1,results:[{name:$.name,repo:$.repo,isParent:!0,status:"creating"},...($.subApps||[]).map(ye=>({name:ye.name,repo:ye.repo,isParent:!1,status:"creating"}))]});const $e=(await ol.createBranch({app:$,sourceBranch:he,targetBranch:Se})).results||[],xe=$e.filter(ye=>!ye.success).length;R({creating:!1,completed:!0,results:$e}),xe===0?e.success(`Branch '${Se}' created successfully across all applications!`):e.warning(`Branch creation finished: ${$e.length-xe} succeeded, ${xe} failed.`)}catch(fe){fe.message&&e.error(fe.message),R(he=>({...he,creating:!1}))}},Y=(fe,he,Se)=>{if(!he)return h.jsx(oa,{type:"secondary",style:{fontSize:13},children:"Not checked yet"});if(he.error)return h.jsx(_n,{title:he.error,children:h.jsx(qt,{icon:h.jsx(XO,{}),color:"error",children:"Error"})});const{sourceBranch:be,targetBranch:$e,merged:xe,openPr:ye}=he,Ne=P[fe]||{};if(xe)return h.jsx(qt,{icon:h.jsx(Oi,{}),color:"success",children:"Merged"});const _e=Ne.prUrl||(ye==null?void 0:ye.url);return h.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4,alignItems:"flex-start"},children:[h.jsxs(vt,{size:6,wrap:!0,children:[h.jsx(qt,{icon:h.jsx(ag,{}),color:"warning",children:"Not Merged"}),_e?h.jsxs(Ue,{size:"small",type:"link",icon:h.jsx(Td,{}),onClick:()=>Zr(_e),style:{padding:0,height:"auto"},children:["Open PR #",(ye==null?void 0:ye.id)||""]}):h.jsx(Ue,{size:"small",type:"primary",ghost:!0,loading:Ne.creating,onClick:()=>oe(fe,Se,be,$e),children:"Create PR"})]}),Ne.error&&h.jsx(pl,{type:"error",message:`PR Error: ${Ne.error}`,showIcon:!0,style:{fontSize:11,padding:"2px 8px",marginTop:2,borderRadius:4}})]})},ee=[{title:"App Name",dataIndex:"name",key:"name",render:(fe,he)=>h.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[h.jsxs(Xn.Link,{strong:!0,onClick:()=>Zr(C3(he.repo)||he.repo),style:{fontSize:14},children:[fe," ",h.jsx(Td,{style:{fontSize:11,marginLeft:2}})]}),he.subApps&&he.subApps.length>0&&h.jsx(ja,{count:`${he.subApps.length} sub-apps`,style:{backgroundColor:"#52c41a",fontSize:10}})]})},{title:"Active Branch",dataIndex:"activeBranch",key:"activeBranch",render:fe=>h.jsx(qt,{color:"blue",children:fe||"—"})},{title:"Last Release",dataIndex:"lastReleaseBranch",key:"lastReleaseBranch",render:fe=>h.jsx(qt,{color:"cyan",children:fe||"—"})},{title:"Sync Status",key:"syncStatus",width:320,render:(fe,he)=>{const Se=M[he.id];if(!Se||Se.checking)return Se!=null&&Se.checking?h.jsx(la,{size:"small"}):h.jsx(oa,{type:"secondary",style:{fontSize:12},children:"Not checked"});if(Se.error)return h.jsx(qt,{color:"error",children:Se.error});const be=Se.parentCheck||{};return h.jsxs(vt,{direction:"vertical",size:4,style:{width:"100%"},children:[h.jsxs("div",{style:{fontSize:12,display:"flex",alignItems:"center",gap:6},children:[h.jsx(oa,{type:"secondary",style:{minWidth:105,fontSize:11},children:"Release → Master:"}),Y(`${he.id}-parent-releaseToMaster`,be.releaseToMaster,he.repo)]}),h.jsxs("div",{style:{fontSize:12,display:"flex",alignItems:"center",gap:6},children:[h.jsx(oa,{type:"secondary",style:{minWidth:105,fontSize:11},children:"Master → Active:"}),Y(`${he.id}-parent-masterToActive`,be.masterToActive,he.repo)]})]})}},{title:"Action",key:"action",width:220,render:(fe,he)=>{var be;const Se=(be=M[he.id])==null?void 0:be.checking;return h.jsxs(vt,{size:8,children:[h.jsx(Ue,{type:"primary",size:"small",icon:h.jsx(ig,{spin:Se}),loading:Se,onClick:()=>X(he),children:"Check"}),h.jsx(Ue,{size:"small",icon:h.jsx(l1,{}),onClick:()=>ae(he),children:"Create Branch"})]})}}],ie=fe=>{if(!fe.subApps||fe.subApps.length===0)return h.jsx(Bn,{image:Bn.PRESENTED_IMAGE_SIMPLE,description:"No sub-apps configured."});const he=M[fe.id]||{},Se=he.subAppResults||[],be=[{title:"Sub-App Name",dataIndex:"name",key:"name",render:($e,xe)=>h.jsxs(Xn.Link,{strong:!0,onClick:()=>Zr(C3(xe.repo)||xe.repo),style:{fontSize:13},children:[$e," ",h.jsx(Td,{style:{fontSize:10,marginLeft:2}})]})},{title:"Active Branch",key:"activeBranch",render:($e,xe)=>{const ye=!!(xe.branch&&xe.branch.trim()),Ne=ye?xe.branch.trim():fe.activeBranch||"—";return h.jsxs(vt,{size:4,children:[h.jsx(qt,{color:"blue",children:Ne}),ye&&h.jsx(oa,{type:"secondary",style:{fontSize:10},children:"(Custom)"})]})}},{title:"Last Release",key:"lastReleaseBranch",render:()=>h.jsx(qt,{color:"cyan",children:fe.lastReleaseBranch||"—"})},{title:"Sync Status",key:"syncStatus",width:320,render:($e,xe,ye)=>{if(he.checking)return h.jsx(la,{size:"small"});const Ne=Se.find(_e=>_e.repo===xe.repo||_e.name===xe.name);return Ne?Ne.error?h.jsx(qt,{color:"error",children:Ne.error}):h.jsxs(vt,{direction:"vertical",size:4,style:{width:"100%"},children:[h.jsxs("div",{style:{fontSize:12,display:"flex",alignItems:"center",gap:6},children:[h.jsx(oa,{type:"secondary",style:{minWidth:105,fontSize:11},children:"Release → Master:"}),Y(`${fe.id}-sub-${ye}-releaseToMaster`,Ne.releaseToMaster,xe.repo)]}),h.jsxs("div",{style:{fontSize:12,display:"flex",alignItems:"center",gap:6},children:[h.jsx(oa,{type:"secondary",style:{minWidth:105,fontSize:11},children:"Master → Active:"}),Y(`${fe.id}-sub-${ye}-masterToActive`,Ne.masterToActive,xe.repo)]})]}):h.jsx(oa,{type:"secondary",style:{fontSize:12},children:"Not checked"})}}];return h.jsx(yn,{size:"small",title:h.jsxs(oa,{style:{fontSize:12,fontWeight:600,color:"#64748b"},children:["SUB-APPS (",fe.subApps.length,")"]}),style:{margin:"8px 0",backgroundColor:"#f8fafc",borderColor:"#e2e8f0"},children:h.jsx(mr,{columns:be,dataSource:fe.subApps.map(($e,xe)=>({...$e,key:$e.repo||xe})),pagination:!1,size:"small"})})};return h.jsxs("div",{style:{maxWidth:1200,margin:"0 auto",paddingBottom:40},children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx(oa,{type:"secondary",children:"GIT"}),h.jsx(bse,{level:2,children:"Branch Sync Status"}),h.jsx(yse,{type:"secondary",className:"page-header-desc",children:"Monitor branch synchronization status across applications and sub-apps, check unmerged branches, and create pull requests."})]}),h.jsxs(vt,{children:[h.jsx(Ue,{onClick:()=>v(!0),children:"App List"}),h.jsx(Ue,{type:"primary",icon:h.jsx(Yr,{}),onClick:()=>{j.resetFields(),d(!0)},children:"app"})]})]}),!l&&h.jsx(pl,{type:"warning",showIcon:!0,icon:h.jsx(ag,{}),message:"Bitbucket Access Token Not Configured",description:"Please configure your Bitbucket Access Token in Settings to allow automated branch checking, PR creation, and branch creation.",style:{marginBottom:20,borderRadius:8}}),r?h.jsx("div",{style:{padding:"80px 0",textAlign:"center"},children:h.jsx(la,{size:"large"})}):t.length===0?h.jsx(Bn,{description:"No application configurations found. Click 'app' at the top right to add your first app.",style:{marginTop:60}}):h.jsx(yn,{style:{borderRadius:10},children:h.jsx(mr,{columns:ee,dataSource:t.map(fe=>({...fe,key:fe.id})),pagination:!1,expandable:{expandedRowRender:ie,expandedRowKeys:L,onExpandedRowsChange:fe=>k(fe),rowExpandable:fe=>fe.subApps&&fe.subApps.length>0}})}),h.jsx(ar,{title:"Add New Application",open:u,onOk:G,onCancel:()=>d(!1),okText:"Add App",width:800,destroyOnClose:!0,children:h.jsxs(Ht,{form:j,layout:"vertical",style:{marginTop:16},children:[h.jsx(Ht.Item,{name:"name",label:"Name",rules:[{required:!0,message:"Please enter application name"}],children:h.jsx(sn,{placeholder:"e.g. Core Service App"})}),h.jsx(Ht.Item,{name:"repo",label:"Repository",rules:[{required:!0,message:"Please enter repository URL"}],children:h.jsx(sn,{placeholder:"e.g. bitbucket@abc.com/PROJECT/repo.git",onChange:fe=>F(fe.target.value),onBlur:fe=>V(fe.target.value)})}),h.jsxs(Ro,{gutter:16,children:[h.jsx(Qn,{span:12,children:h.jsx(Ht.Item,{name:"activeBranch",label:"Active Branch",rules:[{required:!0,message:"Please select or enter active branch"}],children:h.jsx(Fn,{showSearch:!0,allowClear:!0,mode:"combobox",placeholder:"Select or enter active branch",loading:K(D),options:q(D),onFocus:()=>V(D)})})}),h.jsx(Qn,{span:12,children:h.jsx(Ht.Item,{name:"lastReleaseBranch",label:"Last Release Branch",rules:[{required:!0,message:"Please select or enter last release branch"}],children:h.jsx(Fn,{showSearch:!0,allowClear:!0,mode:"combobox",placeholder:"Select or enter last release branch",loading:K(D),options:q(D),onFocus:()=>V(D)})})})]}),h.jsx(Ht.Item,{name:"subApps",label:"subApps (JSON Array)",extra:'JSON structure: [ { "name": "sub-app1", "repo": "bitbucket@abc.com/xxx.git", "branch": "custom-branch" } ]. If "branch" is omitted, inherits parent active branch.',children:h.jsx(sn.TextArea,{rows:4,placeholder:`[
|
|
525
|
-
{
|
|
526
|
-
"name": "sub-app1",
|
|
527
|
-
"repo": "http://bitbucket.abc.com/scm/PROJ/sub-app1.git",
|
|
528
|
-
"branch": "feature/custom-sub-branch"
|
|
529
|
-
}
|
|
530
|
-
]`})})]})}),h.jsx(ar,{title:"App List Configurations",open:f,onCancel:()=>v(!1),footer:[h.jsx(Ue,{onClick:()=>v(!1),children:"Close"},"close")],width:700,children:h.jsx("div",{style:{marginTop:16},children:t.length===0?h.jsx(Bn,{description:"No apps configured."}):h.jsx(mr,{dataSource:t.map(fe=>({...fe,key:fe.id})),pagination:!1,size:"small",columns:[{title:"Name",dataIndex:"name",key:"name",render:fe=>h.jsx(oa,{strong:!0,children:fe})},{title:"Branches",key:"branches",render:(fe,he)=>h.jsxs(vt,{direction:"vertical",size:2,children:[h.jsxs(oa,{style:{fontSize:11},children:["Active: ",h.jsx(qt,{size:"small",color:"blue",children:he.activeBranch})]}),h.jsxs(oa,{style:{fontSize:11},children:["Release: ",h.jsx(qt,{size:"small",color:"cyan",children:he.lastReleaseBranch})]})]})},{title:"Sub-Apps",key:"subAppsCount",render:(fe,he)=>h.jsx(ja,{count:he.subApps?he.subApps.length:0,showZero:!0,color:"#64748b"})},{title:"Action",key:"action",render:(fe,he)=>h.jsxs(vt,{size:8,children:[h.jsx(Ue,{size:"small",icon:h.jsx(yl,{}),onClick:()=>Z(he),children:"Edit"}),h.jsx(Ya,{title:"Delete this app config?",onConfirm:()=>te(he.id),okText:"Yes",cancelText:"No",children:h.jsx(Ue,{size:"small",danger:!0,icon:h.jsx($r,{}),children:"Delete"})})]})}]})})}),h.jsx(ar,{title:`Edit App Config: ${(g==null?void 0:g.name)||""}`,open:y,onOk:Q,onCancel:()=>{x(!1),p(null)},okText:"Save Changes",width:800,destroyOnClose:!0,children:h.jsxs(Ht,{form:I,layout:"vertical",style:{marginTop:16},children:[h.jsx(Ht.Item,{name:"name",label:"Name",rules:[{required:!0,message:"Please enter application name"}],children:h.jsx(sn,{})}),h.jsx(Ht.Item,{name:"repo",label:"Repository",rules:[{required:!0,message:"Please enter repository URL"}],children:h.jsx(sn,{onChange:fe=>U(fe.target.value),onBlur:fe=>V(fe.target.value)})}),h.jsxs(Ro,{gutter:16,children:[h.jsx(Qn,{span:12,children:h.jsx(Ht.Item,{name:"activeBranch",label:"Active Branch",rules:[{required:!0,message:"Please select or enter active branch"}],children:h.jsx(Fn,{showSearch:!0,allowClear:!0,mode:"combobox",placeholder:"Select or enter active branch",loading:K(W),options:q(W),onFocus:()=>V(W)})})}),h.jsx(Qn,{span:12,children:h.jsx(Ht.Item,{name:"lastReleaseBranch",label:"Last Release Branch",rules:[{required:!0,message:"Please select or enter last release branch"}],children:h.jsx(Fn,{showSearch:!0,allowClear:!0,mode:"combobox",placeholder:"Select or enter last release branch",loading:K(W),options:q(W),onFocus:()=>V(W)})})})]}),h.jsx(Ht.Item,{name:"subApps",label:"subApps (JSON Array)",extra:'JSON structure: [ { "name": "sub-app1", "repo": "bitbucket@abc.com/xxx.git", "branch": "custom-branch" } ]. If "branch" is omitted, inherits parent active branch.',children:h.jsx(sn.TextArea,{rows:4})})]})}),h.jsxs(ar,{title:`Create Branch for ${($==null?void 0:$.name)||"App"}`,open:S,onCancel:()=>{E.creating||(b(!1),w(null))},footer:[h.jsx(Ue,{disabled:E.creating,onClick:()=>{b(!1),w(null)},children:E.completed?"Close":"Cancel"},"cancel"),h.jsx(Ue,{type:"primary",icon:h.jsx(l1,{}),loading:E.creating,onClick:re,children:"Create Branch"},"submit")],width:850,destroyOnClose:!0,children:[h.jsx(Ht,{form:O,layout:"vertical",style:{marginTop:16},children:h.jsxs(Ro,{gutter:16,children:[h.jsx(Qn,{span:12,children:h.jsx(Ht.Item,{name:"sourceBranch",label:"Source Branch",rules:[{required:!0,message:"Please select or enter source branch"}],children:h.jsx(Fn,{showSearch:!0,allowClear:!0,mode:"combobox",placeholder:"Select or enter source branch",loading:K($==null?void 0:$.repo),options:Array.from(new Map([...$!=null&&$.activeBranch?[{label:`Active Branch (${$.activeBranch})`,value:$.activeBranch}]:[],...$!=null&&$.lastReleaseBranch?[{label:`Last Release Branch (${$.lastReleaseBranch})`,value:$.lastReleaseBranch}]:[],...((se=H[(ue=$==null?void 0:$.repo)==null?void 0:ue.trim()])==null?void 0:se.options)||[],...y3].map(fe=>[fe.value,fe])).values()),onFocus:()=>V($==null?void 0:$.repo)})})}),h.jsx(Qn,{span:12,children:h.jsx(Ht.Item,{name:"targetBranch",label:"Target Branch Name",rules:[{required:!0,message:"Please enter target branch name"}],children:h.jsx(sn,{placeholder:"e.g. feature/v1.2.0"})})})]})}),h.jsxs("div",{style:{marginTop:12},children:[h.jsxs(oa,{strong:!0,style:{fontSize:13,color:"#475569"},children:["Target Repositories (",1+(((pe=$==null?void 0:$.subApps)==null?void 0:pe.length)||0),")"]}),E.results.length===0?h.jsx(yn,{size:"small",style:{marginTop:8,backgroundColor:"#f8fafc"},children:h.jsxs("div",{style:{fontSize:12,display:"flex",flexDirection:"column",gap:6},children:[h.jsxs("div",{children:[h.jsx(qt,{color:"purple",children:"Parent App"})," ",h.jsx(oa,{strong:!0,children:$==null?void 0:$.name})," (",$==null?void 0:$.repo,")"]}),(($==null?void 0:$.subApps)||[]).map((fe,he)=>h.jsxs("div",{style:{paddingLeft:12},children:[h.jsx(qt,{color:"cyan",children:"Sub-App"})," ",h.jsx(oa,{strong:!0,children:fe.name})," (",fe.repo,")"]},he))]})}):h.jsx(Xd,{style:{marginTop:8},size:"small",bordered:!0,dataSource:E.results,renderItem:fe=>h.jsxs(Xd.Item,{style:{display:"block",padding:"10px 12px"},children:[h.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[h.jsxs(vt,{size:8,children:[h.jsx(qt,{color:fe.isParent?"purple":"cyan",children:fe.isParent?"Parent App":"Sub-App"}),h.jsx(oa,{strong:!0,style:{fontSize:13},children:fe.name}),h.jsxs(oa,{type:"secondary",style:{fontSize:11},children:["(",fe.repo,")"]})]}),h.jsx("div",{children:fe.status==="creating"?h.jsx(qt,{icon:h.jsx(la,{size:"small"}),color:"processing",children:"Creating..."}):fe.success?h.jsx(qt,{icon:h.jsx(Oi,{}),color:"success",children:"Created"}):h.jsx(qt,{icon:h.jsx(XO,{}),color:"error",children:"Failed"})})]}),fe.error&&h.jsx(pl,{type:"error",message:`Creation Error: ${fe.error}`,showIcon:!0,style:{marginTop:6,fontSize:12,padding:"4px 8px"}})]})})]})]})]})}const{Content:xse,Sider:Sse}=Sl,{Title:x3,Text:S3}=Xn,$se=()=>{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","file-organizer","branch-sync","settings","errors"].includes(t)?{page:t,pluginId:null}:{page:"launcher",pluginId:null}};function wse(){const{message:e}=Ra.useApp(),t=$se(),[n,r]=i.useState([]),[a,l]=i.useState(new Set),[c,u]=i.useState({}),[d,f]=i.useState(!0),[v,g]=i.useState([]),[p,y]=i.useState([]),[x,S]=i.useState(!0),[b,$]=i.useState(t.page),[w,E]=i.useState(t.pluginId?{id:t.pluginId,name:"Plugin"}:null),[R,j]=i.useState(null),[I,O]=i.useState(""),M=async()=>{try{const[k,_]=await Promise.all([Sr.list(),Sr.running()]);r(k),Array.isArray(_)?(l(new Set(_)),u({})):(l(new Set((_==null?void 0:_.running)||[])),u((_==null?void 0:_.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(),Gie.list().then(g),Rc.list().then(y),Vr.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),D=v.find(F=>F.id===z);D?(j(null),$("plugin"),E(D),N(D)):v.length>0&&(window.location.hash="#/launcher")}else if(H.startsWith("static:")){const z=H.slice(7),D=p.find(F=>String(F.id)===String(z));D?(E(null),$("static-page"),j(D)):p.length>0&&(window.location.hash="#/launcher")}else H.startsWith("logs/")?(E(null),j(null),$("logs")):["todo-list/archived","todo-archived"].includes(H)?(E(null),j(null),$("todo-archived")):["launcher","clipboard","ports","image-compress","pr-review","jira-filters","todo-list","postman","bookmark-sync","file-organizer","branch-sync","settings","errors"].includes(H)?(E(null),j(null),$(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)&&Pd.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(()=>{})},_=H=>{var z,D;Pd.log({source:"Frontend (Promise)",message:((z=H.reason)==null?void 0:z.message)||String(H.reason||"Unhandled Promise Rejection"),details:((D=H.reason)==null?void 0:D.stack)||String(H.reason)}).catch(()=>{})};return window.addEventListener("error",k),window.addEventListener("unhandledrejection",_),()=>{window.removeEventListener("error",k),window.removeEventListener("unhandledrejection",_)}},[]),i.useEffect(()=>{const k=_=>{(_.metaKey||_.ctrlKey)&&_.shiftKey&&(_.key==="r"||_.key==="R"||_.code==="KeyR")&&(_.preventDefault(),_.stopPropagation())};return window.addEventListener("keydown",k,!0),()=>window.removeEventListener("keydown",k,!0)},[]),i.useEffect(()=>{if(b!=="launcher"&&b!=="ports")return;const k=setInterval(M,2e3);return()=>clearInterval(k)},[b]);const P=i.useMemo(()=>[{key:"launcher",icon:h.jsx(wl,{}),label:"Launcher"},{key:"ports",icon:h.jsx(Bie,{}),label:"Port Diagnostic"},{key:"image-compress",icon:h.jsx(s1,{}),label:"Image compression"},...x?[{key:"clipboard",icon:h.jsx(ei,{}),label:"Clipboard history"}]:[],{key:"pr-review",icon:h.jsx(QN,{}),label:"PR Review"},{key:"jira-filters",icon:h.jsx(Eoe,{}),label:"Jira Filters"},{key:"todo-list",icon:h.jsx(UC,{}),label:"To-Do List"},{key:"postman",icon:h.jsx(GC,{}),label:"Postman"},{key:"bookmark-sync",icon:h.jsx(ig,{}),label:"Bookmark Sync"},{key:"file-organizer",icon:h.jsx(Gc,{}),label:"Folder Organizer"},{key:"branch-sync",icon:h.jsx(l1,{}),label:"Branch Sync"},...p.map(k=>({key:`static:${k.id}`,icon:h.jsx(jf,{}),label:k.name}))],[p,x]),B=({key:k})=>{window.location.hash=`#/${k}`},L=w?`plugin:${w.id}`:R?`static:${R.id}`:b==="todo-archived"?"todo-list":b;return b==="logs"?h.jsx(Qle,{}):h.jsxs(Sl,{className:"workbench",role:"application",children:[h.jsxs(Sse,{className:"sidebar",width:240,children:[h.jsxs("div",{className:"brand",children:[h.jsx("span",{children:"✦"})," DevBuddy ",h.jsxs("span",{style:{fontSize:"11px",fontWeight:"400",color:"#727b94",marginLeft:"6px",letterSpacing:"normal",verticalAlign:"middle"},children:["v",qie.version]})]}),h.jsx(xl,{theme:"dark",mode:"inline",selectedKeys:[L],items:P,onClick:B}),h.jsx("div",{className:"sidebar-bottom",children:h.jsxs("div",{className:"sidebar-bottom-inner",children:[h.jsx(xl,{theme:"dark",mode:"inline",selectedKeys:w||R?[]:[b],items:[{key:"settings",icon:h.jsx(ZN,{}),label:"Settings"}],onClick:B}),h.jsx(_n,{title:"Error Logs (Recent 100 Errors)",placement:"right",children:h.jsx(Ue,{type:b==="errors"?"primary":"text",icon:h.jsx(XN,{}),size:"small",className:`sidebar-error-btn ${b==="errors"?"is-active":""}`,onClick:()=>{window.location.hash="#/errors"}})})]})})]}),h.jsx(Sl,{children:h.jsx(xse,{className:`page ${["static-page","postman"].includes(b)?"is-static-page":""}`,children:w?h.jsxs(h.Fragment,{children:[h.jsx(S3,{type:"secondary",children:"PLUGIN"}),h.jsx(x3,{level:2,children:w.name}),h.jsx(yn,{children:h.jsx("div",{dangerouslySetInnerHTML:{__html:I}})})]}):b==="static-page"&&R?h.jsx("div",{className:"static-page-container",children:h.jsx("iframe",{src:R.url,title:R.name,className:"static-page-iframe"})}):b==="image-compress"?h.jsx(Ele,{}):b==="clipboard"?x?h.jsx(ale,{}):h.jsxs(yn,{style:{textAlign:"center",margin:"60px auto",maxWidth:500,borderRadius:10},children:[h.jsx(x3,{level:4,children:"Clipboard History Unavailable on Windows"}),h.jsx(S3,{type:"secondary",children:"Clipboard History monitoring relies on macOS system APIs and is currently only supported on macOS."})]}):b==="ports"?h.jsx(Cle,{refreshLaunchers:M}):b==="pr-review"?h.jsx(Rle,{}):b==="jira-filters"?h.jsx(_le,{}):b==="todo-list"?h.jsx(Vle,{}):b==="todo-archived"?h.jsx(Gle,{}):b==="postman"?h.jsx(fse,{}):b==="bookmark-sync"?h.jsx(mse,{}):b==="file-organizer"?h.jsx(hse,{}):b==="branch-sync"?h.jsx(Cse,{}):b==="errors"?h.jsx(ese,{}):b==="settings"?h.jsx(xle,{onStaticPagesChange:()=>Rc.list().then(y)}):h.jsx(hle,{launchers:n,running:a,errorCounts:c,refresh:M,loading:d})})})]})}function Ese(){return h.jsx(Ra,{children:h.jsx(wse,{})})}b5.createRoot(document.getElementById("app")).render(h.jsx(ge.StrictMode,{children:h.jsx(Ese,{})}));
|