Files
ai_site/web/dist/assets/index-WRB2YG1b.js
2026-07-31 10:31:17 +08:00

380 lines
1.1 MiB
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var L6=Object.defineProperty;var k6=(e,t,n)=>t in e?L6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fe=(e,t,n)=>k6(e,typeof t!="symbol"?t+"":t,n);function A6(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function k0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bE={exports:{}},Lf={},xE={exports:{}},kt={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var kc=Symbol.for("react.element"),D6=Symbol.for("react.portal"),F6=Symbol.for("react.fragment"),H6=Symbol.for("react.strict_mode"),V6=Symbol.for("react.profiler"),W6=Symbol.for("react.provider"),K6=Symbol.for("react.context"),U6=Symbol.for("react.forward_ref"),q6=Symbol.for("react.suspense"),G6=Symbol.for("react.memo"),X6=Symbol.for("react.lazy"),b$=Symbol.iterator;function Y6(e){return e===null||typeof e!="object"?null:(e=b$&&e[b$]||e["@@iterator"],typeof e=="function"?e:null)}var $E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},SE=Object.assign,CE={};function Ya(e,t,n){this.props=e,this.context=t,this.refs=CE,this.updater=n||$E}Ya.prototype.isReactComponent={};Ya.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ya.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function wE(){}wE.prototype=Ya.prototype;function A0(e,t,n){this.props=e,this.context=t,this.refs=CE,this.updater=n||$E}var D0=A0.prototype=new wE;D0.constructor=A0;SE(D0,Ya.prototype);D0.isPureReactComponent=!0;var x$=Array.isArray,EE=Object.prototype.hasOwnProperty,F0={current:null},IE={key:!0,ref:!0,__self:!0,__source:!0};function PE(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)EE.call(t,r)&&!IE.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:kc,type:e,key:s,ref:i,props:o,_owner:F0.current}}function Q6(e,t){return{$$typeof:kc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function H0(e){return typeof e=="object"&&e!==null&&e.$$typeof===kc}function J6(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var $$=/\/+/g;function tp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?J6(""+e.key):t.toString(36)}function nd(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case kc:case D6:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+tp(i,0):r,x$(o)?(n="",e!=null&&(n=e.replace($$,"$&/")+"/"),nd(o,t,n,"",function(u){return u})):o!=null&&(H0(o)&&(o=Q6(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace($$,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",x$(e))for(var l=0;l<e.length;l++){s=e[l];var c=r+tp(s,l);i+=nd(s,t,n,c,o)}else if(c=Y6(e),typeof c=="function")for(e=c.call(e),l=0;!(s=e.next()).done;)s=s.value,c=r+tp(s,l++),i+=nd(s,t,n,c,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function mu(e,t,n){if(e==null)return e;var r=[],o=0;return nd(e,r,"","",function(s){return t.call(n,s,o++)}),r}function Z6(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ur={current:null},rd={transition:null},e8={ReactCurrentDispatcher:ur,ReactCurrentBatchConfig:rd,ReactCurrentOwner:F0};function NE(){throw Error("act(...) is not supported in production builds of React.")}kt.Children={map:mu,forEach:function(e,t,n){mu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return mu(e,function(){t++}),t},toArray:function(e){return mu(e,function(t){return t})||[]},only:function(e){if(!H0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};kt.Component=Ya;kt.Fragment=F6;kt.Profiler=V6;kt.PureComponent=A0;kt.StrictMode=H6;kt.Suspense=q6;kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e8;kt.act=NE;kt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=SE({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=F0.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)EE.call(t,c)&&!IE.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:kc,type:e.type,key:o,ref:s,props:r,_owner:i}};kt.createContext=function(e){return e={$$typeof:K6,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:W6,_context:e},e.Consumer=e};kt.createElement=PE;kt.createFactory=function(e){var t=PE.bind(null,e);return t.type=e,t};kt.createRef=function(){return{current:null}};kt.forwardRef=function(e){return{$$typeof:U6,render:e}};kt.isValidElement=H0;kt.lazy=function(e){return{$$typeof:X6,_payload:{_status:-1,_result:e},_init:Z6}};kt.memo=function(e,t){return{$$typeof:G6,type:e,compare:t===void 0?null:t}};kt.startTransition=function(e){var t=rd.transition;rd.transition={};try{e()}finally{rd.transition=t}};kt.unstable_act=NE;kt.useCallback=function(e,t){return ur.current.useCallback(e,t)};kt.useContext=function(e){return ur.current.useContext(e)};kt.useDebugValue=function(){};kt.useDeferredValue=function(e){return ur.current.useDeferredValue(e)};kt.useEffect=function(e,t){return ur.current.useEffect(e,t)};kt.useId=function(){return ur.current.useId()};kt.useImperativeHandle=function(e,t,n){return ur.current.useImperativeHandle(e,t,n)};kt.useInsertionEffect=function(e,t){return ur.current.useInsertionEffect(e,t)};kt.useLayoutEffect=function(e,t){return ur.current.useLayoutEffect(e,t)};kt.useMemo=function(e,t){return ur.current.useMemo(e,t)};kt.useReducer=function(e,t,n){return ur.current.useReducer(e,t,n)};kt.useRef=function(e){return ur.current.useRef(e)};kt.useState=function(e){return ur.current.useState(e)};kt.useSyncExternalStore=function(e,t,n){return ur.current.useSyncExternalStore(e,t,n)};kt.useTransition=function(){return ur.current.useTransition()};kt.version="18.3.1";xE.exports=kt;var a=xE.exports;const J=k0(a),t8=A6({__proto__:null,default:J},[a]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n8=a,r8=Symbol.for("react.element"),o8=Symbol.for("react.fragment"),s8=Object.prototype.hasOwnProperty,i8=n8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a8={key:!0,ref:!0,__self:!0,__source:!0};function RE(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)s8.call(t,r)&&!a8.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:r8,type:e,key:s,ref:i,props:o,_owner:i8.current}}Lf.Fragment=o8;Lf.jsx=RE;Lf.jsxs=RE;bE.exports=Lf;var I=bE.exports,Bg={},TE={exports:{}},Lr={},ME={exports:{}},OE={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(j,O){var A=j.length;j.push(O);e:for(;0<A;){var k=A-1>>>1,_=j[k];if(0<o(_,O))j[k]=O,j[A]=_,A=k;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var O=j[0],A=j.pop();if(A!==O){j[0]=A;e:for(var k=0,_=j.length,D=_>>>1;k<D;){var V=2*(k+1)-1,W=j[V],K=V+1,q=j[K];if(0>o(W,A))K<_&&0>o(q,W)?(j[k]=q,j[K]=A,k=K):(j[k]=W,j[V]=A,k=V);else if(K<_&&0>o(q,A))j[k]=q,j[K]=A,k=K;else break e}}return O}function o(j,O){var A=j.sortIndex-O.sortIndex;return A!==0?A:j.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],u=[],d=1,m=null,f=3,p=!1,y=!1,b=!1,x=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(j){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=j)r(u),O.sortIndex=O.expirationTime,t(c,O);else break;O=n(u)}}function $(j){if(b=!1,h(j),!y)if(n(c)!==null)y=!0,F(C);else{var O=n(u);O!==null&&L($,O.startTime-j)}}function C(j,O){y=!1,b&&(b=!1,v(E),E=-1),p=!0;var A=f;try{for(h(O),m=n(c);m!==null&&(!(m.expirationTime>O)||j&&!P());){var k=m.callback;if(typeof k=="function"){m.callback=null,f=m.priorityLevel;var _=k(m.expirationTime<=O);O=e.unstable_now(),typeof _=="function"?m.callback=_:m===n(c)&&r(c),h(O)}else r(c);m=n(c)}if(m!==null)var D=!0;else{var V=n(u);V!==null&&L($,V.startTime-O),D=!1}return D}finally{m=null,f=A,p=!1}}var N=!1,S=null,E=-1,w=5,R=-1;function P(){return!(e.unstable_now()-R<w)}function T(){if(S!==null){var j=e.unstable_now();R=j;var O=!0;try{O=S(!0,j)}finally{O?M():(N=!1,S=null)}}else N=!1}var M;if(typeof g=="function")M=function(){g(T)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,B=z.port2;z.port1.onmessage=T,M=function(){B.postMessage(null)}}else M=function(){x(T,0)};function F(j){S=j,N||(N=!0,M())}function L(j,O){E=x(function(){j(e.unstable_now())},O)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){y||p||(y=!0,F(C))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(j){switch(f){case 1:case 2:case 3:var O=3;break;default:O=f}var A=f;f=O;try{return j()}finally{f=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,O){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var A=f;f=j;try{return O()}finally{f=A}},e.unstable_scheduleCallback=function(j,O,A){var k=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?k+A:k):A=k,j){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=A+_,j={id:d++,callback:O,priorityLevel:j,startTime:A,expirationTime:_,sortIndex:-1},A>k?(j.sortIndex=A,t(u,j),n(c)===null&&j===n(u)&&(b?(v(E),E=-1):b=!0,L($,A-k))):(j.sortIndex=_,t(c,j),y||p||(y=!0,F(C))),j},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(j){var O=f;return function(){var A=f;f=O;try{return j.apply(this,arguments)}finally{f=A}}}})(OE);ME.exports=OE;var l8=ME.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var c8=a,zr=l8;function He(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var _E=new Set,rc={};function Mi(e,t){_a(e,t),_a(e+"Capture",t)}function _a(e,t){for(rc[e]=t,e=0;e<t.length;e++)_E.add(t[e])}var ts=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lg=Object.prototype.hasOwnProperty,u8=/^[: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]*$/,S$={},C$={};function d8(e){return Lg.call(C$,e)?!0:Lg.call(S$,e)?!1:u8.test(e)?C$[e]=!0:(S$[e]=!0,!1)}function f8(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function m8(e,t,n,r){if(t===null||typeof t>"u"||f8(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function dr(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var qn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qn[e]=new dr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qn[t]=new dr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qn[e]=new dr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qn[e]=new dr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qn[e]=new dr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qn[e]=new dr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qn[e]=new dr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qn[e]=new dr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qn[e]=new dr(e,5,!1,e.toLowerCase(),null,!1,!1)});var V0=/[\-:]([a-z])/g;function W0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(V0,W0);qn[t]=new dr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(V0,W0);qn[t]=new dr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(V0,W0);qn[t]=new dr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qn[e]=new dr(e,1,!1,e.toLowerCase(),null,!1,!1)});qn.xlinkHref=new dr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qn[e]=new dr(e,1,!1,e.toLowerCase(),null,!0,!0)});function K0(e,t,n,r){var o=qn.hasOwnProperty(t)?qn[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(m8(t,n,o,r)&&(n=null),r||o===null?d8(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ls=c8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,pu=Symbol.for("react.element"),aa=Symbol.for("react.portal"),la=Symbol.for("react.fragment"),U0=Symbol.for("react.strict_mode"),kg=Symbol.for("react.profiler"),zE=Symbol.for("react.provider"),jE=Symbol.for("react.context"),q0=Symbol.for("react.forward_ref"),Ag=Symbol.for("react.suspense"),Dg=Symbol.for("react.suspense_list"),G0=Symbol.for("react.memo"),ms=Symbol.for("react.lazy"),BE=Symbol.for("react.offscreen"),w$=Symbol.iterator;function cl(e){return e===null||typeof e!="object"?null:(e=w$&&e[w$]||e["@@iterator"],typeof e=="function"?e:null)}var gn=Object.assign,np;function El(e){if(np===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);np=t&&t[1]||""}return`
`+np+e}var rp=!1;function op(e,t){if(!e||rp)return"";rp=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
`),s=r.stack.split(`
`),i=o.length-1,l=s.length-1;1<=i&&0<=l&&o[i]!==s[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==s[l]){if(i!==1||l!==1)do if(i--,l--,0>l||o[i]!==s[l]){var c=`
`+o[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=l);break}}}finally{rp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?El(e):""}function p8(e){switch(e.tag){case 5:return El(e.type);case 16:return El("Lazy");case 13:return El("Suspense");case 19:return El("SuspenseList");case 0:case 2:case 15:return e=op(e.type,!1),e;case 11:return e=op(e.type.render,!1),e;case 1:return e=op(e.type,!0),e;default:return""}}function Fg(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case la:return"Fragment";case aa:return"Portal";case kg:return"Profiler";case U0:return"StrictMode";case Ag:return"Suspense";case Dg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case jE:return(e.displayName||"Context")+".Consumer";case zE:return(e._context.displayName||"Context")+".Provider";case q0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G0:return t=e.displayName||null,t!==null?t:Fg(e.type)||"Memo";case ms:t=e._payload,e=e._init;try{return Fg(e(t))}catch{}}return null}function g8(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Fg(t);case 8:return t===U0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function js(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function LE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h8(e){var t=LE(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gu(e){e._valueTracker||(e._valueTracker=h8(e))}function kE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=LE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Td(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Hg(e,t){var n=t.checked;return gn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function E$(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=js(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function AE(e,t){t=t.checked,t!=null&&K0(e,"checked",t,!1)}function Vg(e,t){AE(e,t);var n=js(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wg(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wg(e,t.type,js(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function I$(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Wg(e,t,n){(t!=="number"||Td(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Il=Array.isArray;function Sa(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+js(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Kg(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(He(91));return gn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function P$(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(He(92));if(Il(n)){if(1<n.length)throw Error(He(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:js(n)}}function DE(e,t){var n=js(t.value),r=js(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function N$(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function FE(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ug(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?FE(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var hu,HE=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(hu=hu||document.createElement("div"),hu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=hu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function oc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},y8=["Webkit","ms","Moz","O"];Object.keys(jl).forEach(function(e){y8.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jl[t]=jl[e]})});function VE(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||jl.hasOwnProperty(e)&&jl[e]?(""+t).trim():t+"px"}function WE(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=VE(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var v8=gn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function qg(e,t){if(t){if(v8[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(He(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(He(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(He(61))}if(t.style!=null&&typeof t.style!="object")throw Error(He(62))}}function Gg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xg=null;function X0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yg=null,Ca=null,wa=null;function R$(e){if(e=Fc(e)){if(typeof Yg!="function")throw Error(He(280));var t=e.stateNode;t&&(t=Hf(t),Yg(e.stateNode,e.type,t))}}function KE(e){Ca?wa?wa.push(e):wa=[e]:Ca=e}function UE(){if(Ca){var e=Ca,t=wa;if(wa=Ca=null,R$(e),t)for(e=0;e<t.length;e++)R$(t[e])}}function qE(e,t){return e(t)}function GE(){}var sp=!1;function XE(e,t,n){if(sp)return e(t,n);sp=!0;try{return qE(e,t,n)}finally{sp=!1,(Ca!==null||wa!==null)&&(GE(),UE())}}function sc(e,t){var n=e.stateNode;if(n===null)return null;var r=Hf(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(He(231,t,typeof n));return n}var Qg=!1;if(ts)try{var ul={};Object.defineProperty(ul,"passive",{get:function(){Qg=!0}}),window.addEventListener("test",ul,ul),window.removeEventListener("test",ul,ul)}catch{Qg=!1}function b8(e,t,n,r,o,s,i,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Bl=!1,Md=null,Od=!1,Jg=null,x8={onError:function(e){Bl=!0,Md=e}};function $8(e,t,n,r,o,s,i,l,c){Bl=!1,Md=null,b8.apply(x8,arguments)}function S8(e,t,n,r,o,s,i,l,c){if($8.apply(this,arguments),Bl){if(Bl){var u=Md;Bl=!1,Md=null}else throw Error(He(198));Od||(Od=!0,Jg=u)}}function Oi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function YE(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function T$(e){if(Oi(e)!==e)throw Error(He(188))}function C8(e){var t=e.alternate;if(!t){if(t=Oi(e),t===null)throw Error(He(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return T$(o),e;if(s===r)return T$(o),t;s=s.sibling}throw Error(He(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=s;break}if(l===r){i=!0,r=o,n=s;break}l=l.sibling}if(!i){for(l=s.child;l;){if(l===n){i=!0,n=s,r=o;break}if(l===r){i=!0,r=s,n=o;break}l=l.sibling}if(!i)throw Error(He(189))}}if(n.alternate!==r)throw Error(He(190))}if(n.tag!==3)throw Error(He(188));return n.stateNode.current===n?e:t}function QE(e){return e=C8(e),e!==null?JE(e):null}function JE(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=JE(e);if(t!==null)return t;e=e.sibling}return null}var ZE=zr.unstable_scheduleCallback,M$=zr.unstable_cancelCallback,w8=zr.unstable_shouldYield,E8=zr.unstable_requestPaint,xn=zr.unstable_now,I8=zr.unstable_getCurrentPriorityLevel,Y0=zr.unstable_ImmediatePriority,e2=zr.unstable_UserBlockingPriority,_d=zr.unstable_NormalPriority,P8=zr.unstable_LowPriority,t2=zr.unstable_IdlePriority,kf=null,Ro=null;function N8(e){if(Ro&&typeof Ro.onCommitFiberRoot=="function")try{Ro.onCommitFiberRoot(kf,e,void 0,(e.current.flags&128)===128)}catch{}}var uo=Math.clz32?Math.clz32:M8,R8=Math.log,T8=Math.LN2;function M8(e){return e>>>=0,e===0?32:31-(R8(e)/T8|0)|0}var yu=64,vu=4194304;function Pl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=Pl(l):(s&=i,s!==0&&(r=Pl(s)))}else i=n&~o,i!==0?r=Pl(i):s!==0&&(r=Pl(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-uo(t),o=1<<n,r|=e[n],t&=~o;return r}function O8(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _8(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-uo(s),l=1<<i,c=o[i];c===-1?(!(l&n)||l&r)&&(o[i]=O8(l,t)):c<=t&&(e.expiredLanes|=l),s&=~l}}function Zg(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function n2(){var e=yu;return yu<<=1,!(yu&4194240)&&(yu=64),e}function ip(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ac(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-uo(t),e[t]=n}function z8(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-uo(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function Q0(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-uo(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Qt=0;function r2(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var o2,J0,s2,i2,a2,eh=!1,bu=[],Is=null,Ps=null,Ns=null,ic=new Map,ac=new Map,bs=[],j8="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function O$(e,t){switch(e){case"focusin":case"focusout":Is=null;break;case"dragenter":case"dragleave":Ps=null;break;case"mouseover":case"mouseout":Ns=null;break;case"pointerover":case"pointerout":ic.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ac.delete(t.pointerId)}}function dl(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=Fc(t),t!==null&&J0(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function B8(e,t,n,r,o){switch(t){case"focusin":return Is=dl(Is,e,t,n,r,o),!0;case"dragenter":return Ps=dl(Ps,e,t,n,r,o),!0;case"mouseover":return Ns=dl(Ns,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return ic.set(s,dl(ic.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,ac.set(s,dl(ac.get(s)||null,e,t,n,r,o)),!0}return!1}function l2(e){var t=li(e.target);if(t!==null){var n=Oi(t);if(n!==null){if(t=n.tag,t===13){if(t=YE(n),t!==null){e.blockedOn=t,a2(e.priority,function(){s2(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function od(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=th(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Xg=r,n.target.dispatchEvent(r),Xg=null}else return t=Fc(n),t!==null&&J0(t),e.blockedOn=n,!1;t.shift()}return!0}function _$(e,t,n){od(e)&&n.delete(t)}function L8(){eh=!1,Is!==null&&od(Is)&&(Is=null),Ps!==null&&od(Ps)&&(Ps=null),Ns!==null&&od(Ns)&&(Ns=null),ic.forEach(_$),ac.forEach(_$)}function fl(e,t){e.blockedOn===t&&(e.blockedOn=null,eh||(eh=!0,zr.unstable_scheduleCallback(zr.unstable_NormalPriority,L8)))}function lc(e){function t(o){return fl(o,e)}if(0<bu.length){fl(bu[0],e);for(var n=1;n<bu.length;n++){var r=bu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Is!==null&&fl(Is,e),Ps!==null&&fl(Ps,e),Ns!==null&&fl(Ns,e),ic.forEach(t),ac.forEach(t),n=0;n<bs.length;n++)r=bs[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<bs.length&&(n=bs[0],n.blockedOn===null);)l2(n),n.blockedOn===null&&bs.shift()}var Ea=ls.ReactCurrentBatchConfig,jd=!0;function k8(e,t,n,r){var o=Qt,s=Ea.transition;Ea.transition=null;try{Qt=1,Z0(e,t,n,r)}finally{Qt=o,Ea.transition=s}}function A8(e,t,n,r){var o=Qt,s=Ea.transition;Ea.transition=null;try{Qt=4,Z0(e,t,n,r)}finally{Qt=o,Ea.transition=s}}function Z0(e,t,n,r){if(jd){var o=th(e,t,n,r);if(o===null)hp(e,t,r,Bd,n),O$(e,r);else if(B8(o,e,t,n,r))r.stopPropagation();else if(O$(e,r),t&4&&-1<j8.indexOf(e)){for(;o!==null;){var s=Fc(o);if(s!==null&&o2(s),s=th(e,t,n,r),s===null&&hp(e,t,r,Bd,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else hp(e,t,r,null,n)}}var Bd=null;function th(e,t,n,r){if(Bd=null,e=X0(r),e=li(e),e!==null)if(t=Oi(e),t===null)e=null;else if(n=t.tag,n===13){if(e=YE(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Bd=e,null}function c2(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(I8()){case Y0:return 1;case e2:return 4;case _d:case P8:return 16;case t2:return 536870912;default:return 16}default:return 16}}var $s=null,eb=null,sd=null;function u2(){if(sd)return sd;var e,t=eb,n=t.length,r,o="value"in $s?$s.value:$s.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return sd=o.slice(e,1<r?1-r:void 0)}function id(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function xu(){return!0}function z$(){return!1}function kr(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?xu:z$,this.isPropagationStopped=z$,this}return gn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=xu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=xu)},persist:function(){},isPersistent:xu}),t}var Qa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tb=kr(Qa),Dc=gn({},Qa,{view:0,detail:0}),D8=kr(Dc),ap,lp,ml,Af=gn({},Dc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nb,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ml&&(ml&&e.type==="mousemove"?(ap=e.screenX-ml.screenX,lp=e.screenY-ml.screenY):lp=ap=0,ml=e),ap)},movementY:function(e){return"movementY"in e?e.movementY:lp}}),j$=kr(Af),F8=gn({},Af,{dataTransfer:0}),H8=kr(F8),V8=gn({},Dc,{relatedTarget:0}),cp=kr(V8),W8=gn({},Qa,{animationName:0,elapsedTime:0,pseudoElement:0}),K8=kr(W8),U8=gn({},Qa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),q8=kr(U8),G8=gn({},Qa,{data:0}),B$=kr(G8),X8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Y8={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"},Q8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function J8(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Q8[e])?!!t[e]:!1}function nb(){return J8}var Z8=gn({},Dc,{key:function(e){if(e.key){var t=X8[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=id(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Y8[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nb,charCode:function(e){return e.type==="keypress"?id(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?id(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),e3=kr(Z8),t3=gn({},Af,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),L$=kr(t3),n3=gn({},Dc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nb}),r3=kr(n3),o3=gn({},Qa,{propertyName:0,elapsedTime:0,pseudoElement:0}),s3=kr(o3),i3=gn({},Af,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),a3=kr(i3),l3=[9,13,27,32],rb=ts&&"CompositionEvent"in window,Ll=null;ts&&"documentMode"in document&&(Ll=document.documentMode);var c3=ts&&"TextEvent"in window&&!Ll,d2=ts&&(!rb||Ll&&8<Ll&&11>=Ll),k$=" ",A$=!1;function f2(e,t){switch(e){case"keyup":return l3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function m2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ca=!1;function u3(e,t){switch(e){case"compositionend":return m2(t);case"keypress":return t.which!==32?null:(A$=!0,k$);case"textInput":return e=t.data,e===k$&&A$?null:e;default:return null}}function d3(e,t){if(ca)return e==="compositionend"||!rb&&f2(e,t)?(e=u2(),sd=eb=$s=null,ca=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return d2&&t.locale!=="ko"?null:t.data;default:return null}}var f3={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 D$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!f3[e.type]:t==="textarea"}function p2(e,t,n,r){KE(r),t=Ld(t,"onChange"),0<t.length&&(n=new tb("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var kl=null,cc=null;function m3(e){E2(e,0)}function Df(e){var t=fa(e);if(kE(t))return e}function p3(e,t){if(e==="change")return t}var g2=!1;if(ts){var up;if(ts){var dp="oninput"in document;if(!dp){var F$=document.createElement("div");F$.setAttribute("oninput","return;"),dp=typeof F$.oninput=="function"}up=dp}else up=!1;g2=up&&(!document.documentMode||9<document.documentMode)}function H$(){kl&&(kl.detachEvent("onpropertychange",h2),cc=kl=null)}function h2(e){if(e.propertyName==="value"&&Df(cc)){var t=[];p2(t,cc,e,X0(e)),XE(m3,t)}}function g3(e,t,n){e==="focusin"?(H$(),kl=t,cc=n,kl.attachEvent("onpropertychange",h2)):e==="focusout"&&H$()}function h3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Df(cc)}function y3(e,t){if(e==="click")return Df(t)}function v3(e,t){if(e==="input"||e==="change")return Df(t)}function b3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var po=typeof Object.is=="function"?Object.is:b3;function uc(e,t){if(po(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Lg.call(t,o)||!po(e[o],t[o]))return!1}return!0}function V$(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function W$(e,t){var n=V$(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=V$(n)}}function y2(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?y2(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function v2(){for(var e=window,t=Td();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Td(e.document)}return t}function ob(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function x3(e){var t=v2(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&y2(n.ownerDocument.documentElement,n)){if(r!==null&&ob(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=W$(n,s);var i=W$(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var $3=ts&&"documentMode"in document&&11>=document.documentMode,ua=null,nh=null,Al=null,rh=!1;function K$(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rh||ua==null||ua!==Td(r)||(r=ua,"selectionStart"in r&&ob(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Al&&uc(Al,r)||(Al=r,r=Ld(nh,"onSelect"),0<r.length&&(t=new tb("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ua)))}function $u(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var da={animationend:$u("Animation","AnimationEnd"),animationiteration:$u("Animation","AnimationIteration"),animationstart:$u("Animation","AnimationStart"),transitionend:$u("Transition","TransitionEnd")},fp={},b2={};ts&&(b2=document.createElement("div").style,"AnimationEvent"in window||(delete da.animationend.animation,delete da.animationiteration.animation,delete da.animationstart.animation),"TransitionEvent"in window||delete da.transitionend.transition);function Ff(e){if(fp[e])return fp[e];if(!da[e])return e;var t=da[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in b2)return fp[e]=t[n];return e}var x2=Ff("animationend"),$2=Ff("animationiteration"),S2=Ff("animationstart"),C2=Ff("transitionend"),w2=new Map,U$="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Hs(e,t){w2.set(e,t),Mi(t,[e])}for(var mp=0;mp<U$.length;mp++){var pp=U$[mp],S3=pp.toLowerCase(),C3=pp[0].toUpperCase()+pp.slice(1);Hs(S3,"on"+C3)}Hs(x2,"onAnimationEnd");Hs($2,"onAnimationIteration");Hs(S2,"onAnimationStart");Hs("dblclick","onDoubleClick");Hs("focusin","onFocus");Hs("focusout","onBlur");Hs(C2,"onTransitionEnd");_a("onMouseEnter",["mouseout","mouseover"]);_a("onMouseLeave",["mouseout","mouseover"]);_a("onPointerEnter",["pointerout","pointerover"]);_a("onPointerLeave",["pointerout","pointerover"]);Mi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Mi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Mi("onBeforeInput",["compositionend","keypress","textInput","paste"]);Mi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Mi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Mi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nl="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(" "),w3=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nl));function q$(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,S8(r,t,void 0,e),e.currentTarget=null}function E2(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==s&&o.isPropagationStopped())break e;q$(o,l,u),s=c}else for(i=0;i<r.length;i++){if(l=r[i],c=l.instance,u=l.currentTarget,l=l.listener,c!==s&&o.isPropagationStopped())break e;q$(o,l,u),s=c}}}if(Od)throw e=Jg,Od=!1,Jg=null,e}function sn(e,t){var n=t[lh];n===void 0&&(n=t[lh]=new Set);var r=e+"__bubble";n.has(r)||(I2(t,e,2,!1),n.add(r))}function gp(e,t,n){var r=0;t&&(r|=4),I2(n,e,r,t)}var Su="_reactListening"+Math.random().toString(36).slice(2);function dc(e){if(!e[Su]){e[Su]=!0,_E.forEach(function(n){n!=="selectionchange"&&(w3.has(n)||gp(n,!1,e),gp(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Su]||(t[Su]=!0,gp("selectionchange",!1,t))}}function I2(e,t,n,r){switch(c2(t)){case 1:var o=k8;break;case 4:o=A8;break;default:o=Z0}n=o.bind(null,t,n,e),o=void 0,!Qg||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function hp(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var c=i.tag;if((c===3||c===4)&&(c=i.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;i=i.return}for(;l!==null;){if(i=li(l),i===null)return;if(c=i.tag,c===5||c===6){r=s=i;continue e}l=l.parentNode}}r=r.return}XE(function(){var u=s,d=X0(n),m=[];e:{var f=w2.get(e);if(f!==void 0){var p=tb,y=e;switch(e){case"keypress":if(id(n)===0)break e;case"keydown":case"keyup":p=e3;break;case"focusin":y="focus",p=cp;break;case"focusout":y="blur",p=cp;break;case"beforeblur":case"afterblur":p=cp;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=j$;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=H8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=r3;break;case x2:case $2:case S2:p=K8;break;case C2:p=s3;break;case"scroll":p=D8;break;case"wheel":p=a3;break;case"copy":case"cut":case"paste":p=q8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=L$}var b=(t&4)!==0,x=!b&&e==="scroll",v=b?f!==null?f+"Capture":null:f;b=[];for(var g=u,h;g!==null;){h=g;var $=h.stateNode;if(h.tag===5&&$!==null&&(h=$,v!==null&&($=sc(g,v),$!=null&&b.push(fc(g,$,h)))),x)break;g=g.return}0<b.length&&(f=new p(f,y,null,n,d),m.push({event:f,listeners:b}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==Xg&&(y=n.relatedTarget||n.fromElement)&&(li(y)||y[ns]))break e;if((p||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,p?(y=n.relatedTarget||n.toElement,p=u,y=y?li(y):null,y!==null&&(x=Oi(y),y!==x||y.tag!==5&&y.tag!==6)&&(y=null)):(p=null,y=u),p!==y)){if(b=j$,$="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(b=L$,$="onPointerLeave",v="onPointerEnter",g="pointer"),x=p==null?f:fa(p),h=y==null?f:fa(y),f=new b($,g+"leave",p,n,d),f.target=x,f.relatedTarget=h,$=null,li(d)===u&&(b=new b(v,g+"enter",y,n,d),b.target=h,b.relatedTarget=x,$=b),x=$,p&&y)t:{for(b=p,v=y,g=0,h=b;h;h=Ki(h))g++;for(h=0,$=v;$;$=Ki($))h++;for(;0<g-h;)b=Ki(b),g--;for(;0<h-g;)v=Ki(v),h--;for(;g--;){if(b===v||v!==null&&b===v.alternate)break t;b=Ki(b),v=Ki(v)}b=null}else b=null;p!==null&&G$(m,f,p,b,!1),y!==null&&x!==null&&G$(m,x,y,b,!0)}}e:{if(f=u?fa(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var C=p3;else if(D$(f))if(g2)C=v3;else{C=h3;var N=g3}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=y3);if(C&&(C=C(e,u))){p2(m,C,n,d);break e}N&&N(e,f,u),e==="focusout"&&(N=f._wrapperState)&&N.controlled&&f.type==="number"&&Wg(f,"number",f.value)}switch(N=u?fa(u):window,e){case"focusin":(D$(N)||N.contentEditable==="true")&&(ua=N,nh=u,Al=null);break;case"focusout":Al=nh=ua=null;break;case"mousedown":rh=!0;break;case"contextmenu":case"mouseup":case"dragend":rh=!1,K$(m,n,d);break;case"selectionchange":if($3)break;case"keydown":case"keyup":K$(m,n,d)}var S;if(rb)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else ca?f2(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(d2&&n.locale!=="ko"&&(ca||E!=="onCompositionStart"?E==="onCompositionEnd"&&ca&&(S=u2()):($s=d,eb="value"in $s?$s.value:$s.textContent,ca=!0)),N=Ld(u,E),0<N.length&&(E=new B$(E,e,null,n,d),m.push({event:E,listeners:N}),S?E.data=S:(S=m2(n),S!==null&&(E.data=S)))),(S=c3?u3(e,n):d3(e,n))&&(u=Ld(u,"onBeforeInput"),0<u.length&&(d=new B$("onBeforeInput","beforeinput",null,n,d),m.push({event:d,listeners:u}),d.data=S))}E2(m,t)})}function fc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ld(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=sc(e,n),s!=null&&r.unshift(fc(e,s,o)),s=sc(e,t),s!=null&&r.push(fc(e,s,o))),e=e.return}return r}function Ki(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function G$(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,o?(c=sc(n,s),c!=null&&i.unshift(fc(n,c,l))):o||(c=sc(n,s),c!=null&&i.push(fc(n,c,l)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var E3=/\r\n?/g,I3=/\u0000|\uFFFD/g;function X$(e){return(typeof e=="string"?e:""+e).replace(E3,`
`).replace(I3,"")}function Cu(e,t,n){if(t=X$(t),X$(e)!==t&&n)throw Error(He(425))}function kd(){}var oh=null,sh=null;function ih(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ah=typeof setTimeout=="function"?setTimeout:void 0,P3=typeof clearTimeout=="function"?clearTimeout:void 0,Y$=typeof Promise=="function"?Promise:void 0,N3=typeof queueMicrotask=="function"?queueMicrotask:typeof Y$<"u"?function(e){return Y$.resolve(null).then(e).catch(R3)}:ah;function R3(e){setTimeout(function(){throw e})}function yp(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),lc(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);lc(t)}function Rs(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Q$(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ja=Math.random().toString(36).slice(2),Po="__reactFiber$"+Ja,mc="__reactProps$"+Ja,ns="__reactContainer$"+Ja,lh="__reactEvents$"+Ja,T3="__reactListeners$"+Ja,M3="__reactHandles$"+Ja;function li(e){var t=e[Po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ns]||n[Po]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Q$(e);e!==null;){if(n=e[Po])return n;e=Q$(e)}return t}e=n,n=e.parentNode}return null}function Fc(e){return e=e[Po]||e[ns],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(He(33))}function Hf(e){return e[mc]||null}var ch=[],ma=-1;function Vs(e){return{current:e}}function ln(e){0>ma||(e.current=ch[ma],ch[ma]=null,ma--)}function tn(e,t){ma++,ch[ma]=e.current,e.current=t}var Bs={},nr=Vs(Bs),xr=Vs(!1),$i=Bs;function za(e,t){var n=e.type.contextTypes;if(!n)return Bs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function $r(e){return e=e.childContextTypes,e!=null}function Ad(){ln(xr),ln(nr)}function J$(e,t,n){if(nr.current!==Bs)throw Error(He(168));tn(nr,t),tn(xr,n)}function P2(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(He(108,g8(e)||"Unknown",o));return gn({},n,r)}function Dd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bs,$i=nr.current,tn(nr,e),tn(xr,xr.current),!0}function Z$(e,t,n){var r=e.stateNode;if(!r)throw Error(He(169));n?(e=P2(e,t,$i),r.__reactInternalMemoizedMergedChildContext=e,ln(xr),ln(nr),tn(nr,e)):ln(xr),tn(xr,n)}var Ko=null,Vf=!1,vp=!1;function N2(e){Ko===null?Ko=[e]:Ko.push(e)}function O3(e){Vf=!0,N2(e)}function Ws(){if(!vp&&Ko!==null){vp=!0;var e=0,t=Qt;try{var n=Ko;for(Qt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ko=null,Vf=!1}catch(o){throw Ko!==null&&(Ko=Ko.slice(e+1)),ZE(Y0,Ws),o}finally{Qt=t,vp=!1}}return null}var pa=[],ga=0,Fd=null,Hd=0,Wr=[],Kr=0,Si=null,Xo=1,Yo="";function ei(e,t){pa[ga++]=Hd,pa[ga++]=Fd,Fd=e,Hd=t}function R2(e,t,n){Wr[Kr++]=Xo,Wr[Kr++]=Yo,Wr[Kr++]=Si,Si=e;var r=Xo;e=Yo;var o=32-uo(r)-1;r&=~(1<<o),n+=1;var s=32-uo(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Xo=1<<32-uo(t)+o|n<<o|r,Yo=s+e}else Xo=1<<s|n<<o|r,Yo=e}function sb(e){e.return!==null&&(ei(e,1),R2(e,1,0))}function ib(e){for(;e===Fd;)Fd=pa[--ga],pa[ga]=null,Hd=pa[--ga],pa[ga]=null;for(;e===Si;)Si=Wr[--Kr],Wr[Kr]=null,Yo=Wr[--Kr],Wr[Kr]=null,Xo=Wr[--Kr],Wr[Kr]=null}var _r=null,Mr=null,un=!1,co=null;function T2(e,t){var n=Gr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function eS(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,_r=e,Mr=Rs(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,_r=e,Mr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Si!==null?{id:Xo,overflow:Yo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Gr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,_r=e,Mr=null,!0):!1;default:return!1}}function uh(e){return(e.mode&1)!==0&&(e.flags&128)===0}function dh(e){if(un){var t=Mr;if(t){var n=t;if(!eS(e,t)){if(uh(e))throw Error(He(418));t=Rs(n.nextSibling);var r=_r;t&&eS(e,t)?T2(r,n):(e.flags=e.flags&-4097|2,un=!1,_r=e)}}else{if(uh(e))throw Error(He(418));e.flags=e.flags&-4097|2,un=!1,_r=e}}}function tS(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_r=e}function wu(e){if(e!==_r)return!1;if(!un)return tS(e),un=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ih(e.type,e.memoizedProps)),t&&(t=Mr)){if(uh(e))throw M2(),Error(He(418));for(;t;)T2(e,t),t=Rs(t.nextSibling)}if(tS(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(He(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Mr=Rs(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Mr=null}}else Mr=_r?Rs(e.stateNode.nextSibling):null;return!0}function M2(){for(var e=Mr;e;)e=Rs(e.nextSibling)}function ja(){Mr=_r=null,un=!1}function ab(e){co===null?co=[e]:co.push(e)}var _3=ls.ReactCurrentBatchConfig;function pl(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(He(309));var r=n.stateNode}if(!r)throw Error(He(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var l=o.refs;i===null?delete l[s]:l[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(He(284));if(!n._owner)throw Error(He(290,e))}return e}function Eu(e,t){throw e=Object.prototype.toString.call(t),Error(He(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function nS(e){var t=e._init;return t(e._payload)}function O2(e){function t(v,g){if(e){var h=v.deletions;h===null?(v.deletions=[g],v.flags|=16):h.push(g)}}function n(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function r(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function o(v,g){return v=_s(v,g),v.index=0,v.sibling=null,v}function s(v,g,h){return v.index=h,e?(h=v.alternate,h!==null?(h=h.index,h<g?(v.flags|=2,g):h):(v.flags|=2,g)):(v.flags|=1048576,g)}function i(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,g,h,$){return g===null||g.tag!==6?(g=Ep(h,v.mode,$),g.return=v,g):(g=o(g,h),g.return=v,g)}function c(v,g,h,$){var C=h.type;return C===la?d(v,g,h.props.children,$,h.key):g!==null&&(g.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===ms&&nS(C)===g.type)?($=o(g,h.props),$.ref=pl(v,g,h),$.return=v,$):($=md(h.type,h.key,h.props,null,v.mode,$),$.ref=pl(v,g,h),$.return=v,$)}function u(v,g,h,$){return g===null||g.tag!==4||g.stateNode.containerInfo!==h.containerInfo||g.stateNode.implementation!==h.implementation?(g=Ip(h,v.mode,$),g.return=v,g):(g=o(g,h.children||[]),g.return=v,g)}function d(v,g,h,$,C){return g===null||g.tag!==7?(g=yi(h,v.mode,$,C),g.return=v,g):(g=o(g,h),g.return=v,g)}function m(v,g,h){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Ep(""+g,v.mode,h),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case pu:return h=md(g.type,g.key,g.props,null,v.mode,h),h.ref=pl(v,null,g),h.return=v,h;case aa:return g=Ip(g,v.mode,h),g.return=v,g;case ms:var $=g._init;return m(v,$(g._payload),h)}if(Il(g)||cl(g))return g=yi(g,v.mode,h,null),g.return=v,g;Eu(v,g)}return null}function f(v,g,h,$){var C=g!==null?g.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return C!==null?null:l(v,g,""+h,$);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case pu:return h.key===C?c(v,g,h,$):null;case aa:return h.key===C?u(v,g,h,$):null;case ms:return C=h._init,f(v,g,C(h._payload),$)}if(Il(h)||cl(h))return C!==null?null:d(v,g,h,$,null);Eu(v,h)}return null}function p(v,g,h,$,C){if(typeof $=="string"&&$!==""||typeof $=="number")return v=v.get(h)||null,l(g,v,""+$,C);if(typeof $=="object"&&$!==null){switch($.$$typeof){case pu:return v=v.get($.key===null?h:$.key)||null,c(g,v,$,C);case aa:return v=v.get($.key===null?h:$.key)||null,u(g,v,$,C);case ms:var N=$._init;return p(v,g,h,N($._payload),C)}if(Il($)||cl($))return v=v.get(h)||null,d(g,v,$,C,null);Eu(g,$)}return null}function y(v,g,h,$){for(var C=null,N=null,S=g,E=g=0,w=null;S!==null&&E<h.length;E++){S.index>E?(w=S,S=null):w=S.sibling;var R=f(v,S,h[E],$);if(R===null){S===null&&(S=w);break}e&&S&&R.alternate===null&&t(v,S),g=s(R,g,E),N===null?C=R:N.sibling=R,N=R,S=w}if(E===h.length)return n(v,S),un&&ei(v,E),C;if(S===null){for(;E<h.length;E++)S=m(v,h[E],$),S!==null&&(g=s(S,g,E),N===null?C=S:N.sibling=S,N=S);return un&&ei(v,E),C}for(S=r(v,S);E<h.length;E++)w=p(S,v,E,h[E],$),w!==null&&(e&&w.alternate!==null&&S.delete(w.key===null?E:w.key),g=s(w,g,E),N===null?C=w:N.sibling=w,N=w);return e&&S.forEach(function(P){return t(v,P)}),un&&ei(v,E),C}function b(v,g,h,$){var C=cl(h);if(typeof C!="function")throw Error(He(150));if(h=C.call(h),h==null)throw Error(He(151));for(var N=C=null,S=g,E=g=0,w=null,R=h.next();S!==null&&!R.done;E++,R=h.next()){S.index>E?(w=S,S=null):w=S.sibling;var P=f(v,S,R.value,$);if(P===null){S===null&&(S=w);break}e&&S&&P.alternate===null&&t(v,S),g=s(P,g,E),N===null?C=P:N.sibling=P,N=P,S=w}if(R.done)return n(v,S),un&&ei(v,E),C;if(S===null){for(;!R.done;E++,R=h.next())R=m(v,R.value,$),R!==null&&(g=s(R,g,E),N===null?C=R:N.sibling=R,N=R);return un&&ei(v,E),C}for(S=r(v,S);!R.done;E++,R=h.next())R=p(S,v,E,R.value,$),R!==null&&(e&&R.alternate!==null&&S.delete(R.key===null?E:R.key),g=s(R,g,E),N===null?C=R:N.sibling=R,N=R);return e&&S.forEach(function(T){return t(v,T)}),un&&ei(v,E),C}function x(v,g,h,$){if(typeof h=="object"&&h!==null&&h.type===la&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case pu:e:{for(var C=h.key,N=g;N!==null;){if(N.key===C){if(C=h.type,C===la){if(N.tag===7){n(v,N.sibling),g=o(N,h.props.children),g.return=v,v=g;break e}}else if(N.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===ms&&nS(C)===N.type){n(v,N.sibling),g=o(N,h.props),g.ref=pl(v,N,h),g.return=v,v=g;break e}n(v,N);break}else t(v,N);N=N.sibling}h.type===la?(g=yi(h.props.children,v.mode,$,h.key),g.return=v,v=g):($=md(h.type,h.key,h.props,null,v.mode,$),$.ref=pl(v,g,h),$.return=v,v=$)}return i(v);case aa:e:{for(N=h.key;g!==null;){if(g.key===N)if(g.tag===4&&g.stateNode.containerInfo===h.containerInfo&&g.stateNode.implementation===h.implementation){n(v,g.sibling),g=o(g,h.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=Ip(h,v.mode,$),g.return=v,v=g}return i(v);case ms:return N=h._init,x(v,g,N(h._payload),$)}if(Il(h))return y(v,g,h,$);if(cl(h))return b(v,g,h,$);Eu(v,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,g!==null&&g.tag===6?(n(v,g.sibling),g=o(g,h),g.return=v,v=g):(n(v,g),g=Ep(h,v.mode,$),g.return=v,v=g),i(v)):n(v,g)}return x}var Ba=O2(!0),_2=O2(!1),Vd=Vs(null),Wd=null,ha=null,lb=null;function cb(){lb=ha=Wd=null}function ub(e){var t=Vd.current;ln(Vd),e._currentValue=t}function fh(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ia(e,t){Wd=e,lb=ha=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(br=!0),e.firstContext=null)}function Yr(e){var t=e._currentValue;if(lb!==e)if(e={context:e,memoizedValue:t,next:null},ha===null){if(Wd===null)throw Error(He(308));ha=e,Wd.dependencies={lanes:0,firstContext:e}}else ha=ha.next=e;return t}var ci=null;function db(e){ci===null?ci=[e]:ci.push(e)}function z2(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,db(t)):(n.next=o.next,o.next=n),t.interleaved=n,rs(e,r)}function rs(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ps=!1;function fb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function j2(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Qo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ts(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ut&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,rs(e,n)}return o=r.interleaved,o===null?(t.next=t,db(r)):(t.next=o.next,o.next=t),r.interleaved=t,rs(e,n)}function ad(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Q0(e,n)}}function rS(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Kd(e,t,n,r){var o=e.updateQueue;ps=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var c=l,u=c.next;c.next=null,i===null?s=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==i&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(s!==null){var m=o.baseState;i=0,d=u=c=null,l=s;do{var f=l.lane,p=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,b=l;switch(f=t,p=n,b.tag){case 1:if(y=b.payload,typeof y=="function"){m=y.call(p,m,f);break e}m=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,f=typeof y=="function"?y.call(p,m,f):y,f==null)break e;m=gn({},m,f);break e;case 2:ps=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=p,c=m):d=d.next=p,i|=f;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;f=l,l=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(d===null&&(c=m),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);wi|=i,e.lanes=i,e.memoizedState=m}}function oS(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(He(191,o));o.call(r)}}}var Hc={},To=Vs(Hc),pc=Vs(Hc),gc=Vs(Hc);function ui(e){if(e===Hc)throw Error(He(174));return e}function mb(e,t){switch(tn(gc,t),tn(pc,e),tn(To,Hc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ug(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ug(t,e)}ln(To),tn(To,t)}function La(){ln(To),ln(pc),ln(gc)}function B2(e){ui(gc.current);var t=ui(To.current),n=Ug(t,e.type);t!==n&&(tn(pc,e),tn(To,n))}function pb(e){pc.current===e&&(ln(To),ln(pc))}var mn=Vs(0);function Ud(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var bp=[];function gb(){for(var e=0;e<bp.length;e++)bp[e]._workInProgressVersionPrimary=null;bp.length=0}var ld=ls.ReactCurrentDispatcher,xp=ls.ReactCurrentBatchConfig,Ci=0,pn=null,Mn=null,An=null,qd=!1,Dl=!1,hc=0,z3=0;function Qn(){throw Error(He(321))}function hb(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!po(e[n],t[n]))return!1;return!0}function yb(e,t,n,r,o,s){if(Ci=s,pn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ld.current=e===null||e.memoizedState===null?k3:A3,e=n(r,o),Dl){s=0;do{if(Dl=!1,hc=0,25<=s)throw Error(He(301));s+=1,An=Mn=null,t.updateQueue=null,ld.current=D3,e=n(r,o)}while(Dl)}if(ld.current=Gd,t=Mn!==null&&Mn.next!==null,Ci=0,An=Mn=pn=null,qd=!1,t)throw Error(He(300));return e}function vb(){var e=hc!==0;return hc=0,e}function Eo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return An===null?pn.memoizedState=An=e:An=An.next=e,An}function Qr(){if(Mn===null){var e=pn.alternate;e=e!==null?e.memoizedState:null}else e=Mn.next;var t=An===null?pn.memoizedState:An.next;if(t!==null)An=t,Mn=e;else{if(e===null)throw Error(He(310));Mn=e,e={memoizedState:Mn.memoizedState,baseState:Mn.baseState,baseQueue:Mn.baseQueue,queue:Mn.queue,next:null},An===null?pn.memoizedState=An=e:An=An.next=e}return An}function yc(e,t){return typeof t=="function"?t(e):t}function $p(e){var t=Qr(),n=t.queue;if(n===null)throw Error(He(311));n.lastRenderedReducer=e;var r=Mn,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var l=i=null,c=null,u=s;do{var d=u.lane;if((Ci&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var m={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=m,i=r):c=c.next=m,pn.lanes|=d,wi|=d}u=u.next}while(u!==null&&u!==s);c===null?i=r:c.next=l,po(r,t.memoizedState)||(br=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,pn.lanes|=s,wi|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sp(e){var t=Qr(),n=t.queue;if(n===null)throw Error(He(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);po(s,t.memoizedState)||(br=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function L2(){}function k2(e,t){var n=pn,r=Qr(),o=t(),s=!po(r.memoizedState,o);if(s&&(r.memoizedState=o,br=!0),r=r.queue,bb(F2.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||An!==null&&An.memoizedState.tag&1){if(n.flags|=2048,vc(9,D2.bind(null,n,r,o,t),void 0,null),Dn===null)throw Error(He(349));Ci&30||A2(n,t,o)}return o}function A2(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=pn.updateQueue,t===null?(t={lastEffect:null,stores:null},pn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function D2(e,t,n,r){t.value=n,t.getSnapshot=r,H2(t)&&V2(e)}function F2(e,t,n){return n(function(){H2(t)&&V2(e)})}function H2(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!po(e,n)}catch{return!0}}function V2(e){var t=rs(e,1);t!==null&&fo(t,e,1,-1)}function sS(e){var t=Eo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:yc,lastRenderedState:e},t.queue=e,e=e.dispatch=L3.bind(null,pn,e),[t.memoizedState,e]}function vc(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=pn.updateQueue,t===null?(t={lastEffect:null,stores:null},pn.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function W2(){return Qr().memoizedState}function cd(e,t,n,r){var o=Eo();pn.flags|=e,o.memoizedState=vc(1|t,n,void 0,r===void 0?null:r)}function Wf(e,t,n,r){var o=Qr();r=r===void 0?null:r;var s=void 0;if(Mn!==null){var i=Mn.memoizedState;if(s=i.destroy,r!==null&&hb(r,i.deps)){o.memoizedState=vc(t,n,s,r);return}}pn.flags|=e,o.memoizedState=vc(1|t,n,s,r)}function iS(e,t){return cd(8390656,8,e,t)}function bb(e,t){return Wf(2048,8,e,t)}function K2(e,t){return Wf(4,2,e,t)}function U2(e,t){return Wf(4,4,e,t)}function q2(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function G2(e,t,n){return n=n!=null?n.concat([e]):null,Wf(4,4,q2.bind(null,t,e),n)}function xb(){}function X2(e,t){var n=Qr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hb(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Y2(e,t){var n=Qr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hb(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Q2(e,t,n){return Ci&21?(po(n,t)||(n=n2(),pn.lanes|=n,wi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,br=!0),e.memoizedState=n)}function j3(e,t){var n=Qt;Qt=n!==0&&4>n?n:4,e(!0);var r=xp.transition;xp.transition={};try{e(!1),t()}finally{Qt=n,xp.transition=r}}function J2(){return Qr().memoizedState}function B3(e,t,n){var r=Os(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Z2(e))eI(t,n);else if(n=z2(e,t,n,r),n!==null){var o=sr();fo(n,e,r,o),tI(n,t,r)}}function L3(e,t,n){var r=Os(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Z2(e))eI(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,n);if(o.hasEagerState=!0,o.eagerState=l,po(l,i)){var c=t.interleaved;c===null?(o.next=o,db(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=z2(e,t,o,r),n!==null&&(o=sr(),fo(n,e,r,o),tI(n,t,r))}}function Z2(e){var t=e.alternate;return e===pn||t!==null&&t===pn}function eI(e,t){Dl=qd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tI(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Q0(e,n)}}var Gd={readContext:Yr,useCallback:Qn,useContext:Qn,useEffect:Qn,useImperativeHandle:Qn,useInsertionEffect:Qn,useLayoutEffect:Qn,useMemo:Qn,useReducer:Qn,useRef:Qn,useState:Qn,useDebugValue:Qn,useDeferredValue:Qn,useTransition:Qn,useMutableSource:Qn,useSyncExternalStore:Qn,useId:Qn,unstable_isNewReconciler:!1},k3={readContext:Yr,useCallback:function(e,t){return Eo().memoizedState=[e,t===void 0?null:t],e},useContext:Yr,useEffect:iS,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,cd(4194308,4,q2.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cd(4194308,4,e,t)},useInsertionEffect:function(e,t){return cd(4,2,e,t)},useMemo:function(e,t){var n=Eo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Eo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=B3.bind(null,pn,e),[r.memoizedState,e]},useRef:function(e){var t=Eo();return e={current:e},t.memoizedState=e},useState:sS,useDebugValue:xb,useDeferredValue:function(e){return Eo().memoizedState=e},useTransition:function(){var e=sS(!1),t=e[0];return e=j3.bind(null,e[1]),Eo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pn,o=Eo();if(un){if(n===void 0)throw Error(He(407));n=n()}else{if(n=t(),Dn===null)throw Error(He(349));Ci&30||A2(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,iS(F2.bind(null,r,s,e),[e]),r.flags|=2048,vc(9,D2.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Eo(),t=Dn.identifierPrefix;if(un){var n=Yo,r=Xo;n=(r&~(1<<32-uo(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=hc++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=z3++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},A3={readContext:Yr,useCallback:X2,useContext:Yr,useEffect:bb,useImperativeHandle:G2,useInsertionEffect:K2,useLayoutEffect:U2,useMemo:Y2,useReducer:$p,useRef:W2,useState:function(){return $p(yc)},useDebugValue:xb,useDeferredValue:function(e){var t=Qr();return Q2(t,Mn.memoizedState,e)},useTransition:function(){var e=$p(yc)[0],t=Qr().memoizedState;return[e,t]},useMutableSource:L2,useSyncExternalStore:k2,useId:J2,unstable_isNewReconciler:!1},D3={readContext:Yr,useCallback:X2,useContext:Yr,useEffect:bb,useImperativeHandle:G2,useInsertionEffect:K2,useLayoutEffect:U2,useMemo:Y2,useReducer:Sp,useRef:W2,useState:function(){return Sp(yc)},useDebugValue:xb,useDeferredValue:function(e){var t=Qr();return Mn===null?t.memoizedState=e:Q2(t,Mn.memoizedState,e)},useTransition:function(){var e=Sp(yc)[0],t=Qr().memoizedState;return[e,t]},useMutableSource:L2,useSyncExternalStore:k2,useId:J2,unstable_isNewReconciler:!1};function so(e,t){if(e&&e.defaultProps){t=gn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function mh(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:gn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Kf={isMounted:function(e){return(e=e._reactInternals)?Oi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=sr(),o=Os(e),s=Qo(r,o);s.payload=t,n!=null&&(s.callback=n),t=Ts(e,s,o),t!==null&&(fo(t,e,o,r),ad(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=sr(),o=Os(e),s=Qo(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Ts(e,s,o),t!==null&&(fo(t,e,o,r),ad(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=sr(),r=Os(e),o=Qo(n,r);o.tag=2,t!=null&&(o.callback=t),t=Ts(e,o,r),t!==null&&(fo(t,e,r,n),ad(t,e,r))}};function aS(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!uc(n,r)||!uc(o,s):!0}function nI(e,t,n){var r=!1,o=Bs,s=t.contextType;return typeof s=="object"&&s!==null?s=Yr(s):(o=$r(t)?$i:nr.current,r=t.contextTypes,s=(r=r!=null)?za(e,o):Bs),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Kf,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function lS(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Kf.enqueueReplaceState(t,t.state,null)}function ph(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},fb(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=Yr(s):(s=$r(t)?$i:nr.current,o.context=za(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(mh(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Kf.enqueueReplaceState(o,o.state,null),Kd(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function ka(e,t){try{var n="",r=t;do n+=p8(r),r=r.return;while(r);var o=n}catch(s){o=`
Error generating stack: `+s.message+`
`+s.stack}return{value:e,source:t,stack:o,digest:null}}function Cp(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function gh(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var F3=typeof WeakMap=="function"?WeakMap:Map;function rI(e,t,n){n=Qo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Yd||(Yd=!0,Eh=r),gh(e,t)},n}function oI(e,t,n){n=Qo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){gh(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){gh(e,t),typeof r!="function"&&(Ms===null?Ms=new Set([this]):Ms.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function cS(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new F3;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=tO.bind(null,e,t,n),t.then(e,e))}function uS(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function dS(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Qo(-1,1),t.tag=2,Ts(n,t,1))),n.lanes|=1),e)}var H3=ls.ReactCurrentOwner,br=!1;function rr(e,t,n,r){t.child=e===null?_2(t,null,n,r):Ba(t,e.child,n,r)}function fS(e,t,n,r,o){n=n.render;var s=t.ref;return Ia(t,o),r=yb(e,t,n,r,s,o),n=vb(),e!==null&&!br?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,os(e,t,o)):(un&&n&&sb(t),t.flags|=1,rr(e,t,r,o),t.child)}function mS(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!Nb(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,sI(e,t,s,r,o)):(e=md(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:uc,n(i,r)&&e.ref===t.ref)return os(e,t,o)}return t.flags|=1,e=_s(s,r),e.ref=t.ref,e.return=t,t.child=e}function sI(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(uc(s,r)&&e.ref===t.ref)if(br=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(br=!0);else return t.lanes=e.lanes,os(e,t,o)}return hh(e,t,n,r,o)}function iI(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},tn(va,Rr),Rr|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,tn(va,Rr),Rr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,tn(va,Rr),Rr|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,tn(va,Rr),Rr|=r;return rr(e,t,o,n),t.child}function aI(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function hh(e,t,n,r,o){var s=$r(n)?$i:nr.current;return s=za(t,s),Ia(t,o),n=yb(e,t,n,r,s,o),r=vb(),e!==null&&!br?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,os(e,t,o)):(un&&r&&sb(t),t.flags|=1,rr(e,t,n,o),t.child)}function pS(e,t,n,r,o){if($r(n)){var s=!0;Dd(t)}else s=!1;if(Ia(t,o),t.stateNode===null)ud(e,t),nI(t,n,r),ph(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var c=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Yr(u):(u=$r(n)?$i:nr.current,u=za(t,u));var d=n.getDerivedStateFromProps,m=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";m||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||c!==u)&&lS(t,i,r,u),ps=!1;var f=t.memoizedState;i.state=f,Kd(t,r,i,o),c=t.memoizedState,l!==r||f!==c||xr.current||ps?(typeof d=="function"&&(mh(t,n,d,r),c=t.memoizedState),(l=ps||aS(t,n,l,r,f,c,u))?(m||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,j2(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:so(t.type,l),i.props=u,m=t.pendingProps,f=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=Yr(c):(c=$r(n)?$i:nr.current,c=za(t,c));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==m||f!==c)&&lS(t,i,r,c),ps=!1,f=t.memoizedState,i.state=f,Kd(t,r,i,o);var y=t.memoizedState;l!==m||f!==y||xr.current||ps?(typeof p=="function"&&(mh(t,n,p,r),y=t.memoizedState),(u=ps||aS(t,n,u,r,f,y,c)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=c,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return yh(e,t,n,r,s,o)}function yh(e,t,n,r,o,s){aI(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&Z$(t,n,!1),os(e,t,s);r=t.stateNode,H3.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Ba(t,e.child,null,s),t.child=Ba(t,null,l,s)):rr(e,t,l,s),t.memoizedState=r.state,o&&Z$(t,n,!0),t.child}function lI(e){var t=e.stateNode;t.pendingContext?J$(e,t.pendingContext,t.pendingContext!==t.context):t.context&&J$(e,t.context,!1),mb(e,t.containerInfo)}function gS(e,t,n,r,o){return ja(),ab(o),t.flags|=256,rr(e,t,n,r),t.child}var vh={dehydrated:null,treeContext:null,retryLane:0};function bh(e){return{baseLanes:e,cachePool:null,transitions:null}}function cI(e,t,n){var r=t.pendingProps,o=mn.current,s=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),tn(mn,o&1),e===null)return dh(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=Gf(i,r,0,null),e=yi(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=bh(n),t.memoizedState=vh,e):$b(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return V3(e,t,i,r,l,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,l=o.sibling;var c={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=_s(o,c),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?s=_s(l,s):(s=yi(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?bh(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=vh,r}return s=e.child,e=s.sibling,r=_s(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function $b(e,t){return t=Gf({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Iu(e,t,n,r){return r!==null&&ab(r),Ba(t,e.child,null,n),e=$b(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function V3(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=Cp(Error(He(422))),Iu(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Gf({mode:"visible",children:r.children},o,0,null),s=yi(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Ba(t,e.child,null,i),t.child.memoizedState=bh(i),t.memoizedState=vh,s);if(!(t.mode&1))return Iu(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(He(419)),r=Cp(s,r,void 0),Iu(e,t,i,r)}if(l=(i&e.childLanes)!==0,br||l){if(r=Dn,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,rs(e,o),fo(r,e,o,-1))}return Pb(),r=Cp(Error(He(421))),Iu(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=nO.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,Mr=Rs(o.nextSibling),_r=t,un=!0,co=null,e!==null&&(Wr[Kr++]=Xo,Wr[Kr++]=Yo,Wr[Kr++]=Si,Xo=e.id,Yo=e.overflow,Si=t),t=$b(t,r.children),t.flags|=4096,t)}function hS(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),fh(e.return,t,n)}function wp(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function uI(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(rr(e,t,r.children,n),r=mn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hS(e,n,t);else if(e.tag===19)hS(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(tn(mn,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ud(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),wp(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ud(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}wp(t,!0,n,null,s);break;case"together":wp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ud(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function os(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(He(153));if(t.child!==null){for(e=t.child,n=_s(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_s(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function W3(e,t,n){switch(t.tag){case 3:lI(t),ja();break;case 5:B2(t);break;case 1:$r(t.type)&&Dd(t);break;case 4:mb(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;tn(Vd,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(tn(mn,mn.current&1),t.flags|=128,null):n&t.child.childLanes?cI(e,t,n):(tn(mn,mn.current&1),e=os(e,t,n),e!==null?e.sibling:null);tn(mn,mn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return uI(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),tn(mn,mn.current),r)break;return null;case 22:case 23:return t.lanes=0,iI(e,t,n)}return os(e,t,n)}var dI,xh,fI,mI;dI=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};xh=function(){};fI=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ui(To.current);var s=null;switch(n){case"input":o=Hg(e,o),r=Hg(e,r),s=[];break;case"select":o=gn({},o,{value:void 0}),r=gn({},r,{value:void 0}),s=[];break;case"textarea":o=Kg(e,o),r=Kg(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=kd)}qg(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(rc.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(s||(s=[]),s.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(s=s||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(s=s||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(rc.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&sn("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};mI=function(e,t,n,r){n!==r&&(t.flags|=4)};function gl(e,t){if(!un)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Jn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function K3(e,t,n){var r=t.pendingProps;switch(ib(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Jn(t),null;case 1:return $r(t.type)&&Ad(),Jn(t),null;case 3:return r=t.stateNode,La(),ln(xr),ln(nr),gb(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,co!==null&&(Nh(co),co=null))),xh(e,t),Jn(t),null;case 5:pb(t);var o=ui(gc.current);if(n=t.type,e!==null&&t.stateNode!=null)fI(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(He(166));return Jn(t),null}if(e=ui(To.current),wu(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Po]=t,r[mc]=s,e=(t.mode&1)!==0,n){case"dialog":sn("cancel",r),sn("close",r);break;case"iframe":case"object":case"embed":sn("load",r);break;case"video":case"audio":for(o=0;o<Nl.length;o++)sn(Nl[o],r);break;case"source":sn("error",r);break;case"img":case"image":case"link":sn("error",r),sn("load",r);break;case"details":sn("toggle",r);break;case"input":E$(r,s),sn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},sn("invalid",r);break;case"textarea":P$(r,s),sn("invalid",r)}qg(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&Cu(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Cu(r.textContent,l,e),o=["children",""+l]):rc.hasOwnProperty(i)&&l!=null&&i==="onScroll"&&sn("scroll",r)}switch(n){case"input":gu(r),I$(r,s,!0);break;case"textarea":gu(r),N$(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=kd)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=FE(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Po]=t,e[mc]=r,dI(e,t,!1,!1),t.stateNode=e;e:{switch(i=Gg(n,r),n){case"dialog":sn("cancel",e),sn("close",e),o=r;break;case"iframe":case"object":case"embed":sn("load",e),o=r;break;case"video":case"audio":for(o=0;o<Nl.length;o++)sn(Nl[o],e);o=r;break;case"source":sn("error",e),o=r;break;case"img":case"image":case"link":sn("error",e),sn("load",e),o=r;break;case"details":sn("toggle",e),o=r;break;case"input":E$(e,r),o=Hg(e,r),sn("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=gn({},r,{value:void 0}),sn("invalid",e);break;case"textarea":P$(e,r),o=Kg(e,r),sn("invalid",e);break;default:o=r}qg(n,o),l=o;for(s in l)if(l.hasOwnProperty(s)){var c=l[s];s==="style"?WE(e,c):s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&HE(e,c)):s==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&oc(e,c):typeof c=="number"&&oc(e,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(rc.hasOwnProperty(s)?c!=null&&s==="onScroll"&&sn("scroll",e):c!=null&&K0(e,s,c,i))}switch(n){case"input":gu(e),I$(e,r,!1);break;case"textarea":gu(e),N$(e);break;case"option":r.value!=null&&e.setAttribute("value",""+js(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Sa(e,!!r.multiple,s,!1):r.defaultValue!=null&&Sa(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=kd)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Jn(t),null;case 6:if(e&&t.stateNode!=null)mI(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(He(166));if(n=ui(gc.current),ui(To.current),wu(t)){if(r=t.stateNode,n=t.memoizedProps,r[Po]=t,(s=r.nodeValue!==n)&&(e=_r,e!==null))switch(e.tag){case 3:Cu(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Cu(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Po]=t,t.stateNode=r}return Jn(t),null;case 13:if(ln(mn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(un&&Mr!==null&&t.mode&1&&!(t.flags&128))M2(),ja(),t.flags|=98560,s=!1;else if(s=wu(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(He(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(He(317));s[Po]=t}else ja(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Jn(t),s=!1}else co!==null&&(Nh(co),co=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||mn.current&1?_n===0&&(_n=3):Pb())),t.updateQueue!==null&&(t.flags|=4),Jn(t),null);case 4:return La(),xh(e,t),e===null&&dc(t.stateNode.containerInfo),Jn(t),null;case 10:return ub(t.type._context),Jn(t),null;case 17:return $r(t.type)&&Ad(),Jn(t),null;case 19:if(ln(mn),s=t.memoizedState,s===null)return Jn(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)gl(s,!1);else{if(_n!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Ud(e),i!==null){for(t.flags|=128,gl(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return tn(mn,mn.current&1|2),t.child}e=e.sibling}s.tail!==null&&xn()>Aa&&(t.flags|=128,r=!0,gl(s,!1),t.lanes=4194304)}else{if(!r)if(e=Ud(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),gl(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!un)return Jn(t),null}else 2*xn()-s.renderingStartTime>Aa&&n!==1073741824&&(t.flags|=128,r=!0,gl(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=xn(),t.sibling=null,n=mn.current,tn(mn,r?n&1|2:n&1),t):(Jn(t),null);case 22:case 23:return Ib(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Rr&1073741824&&(Jn(t),t.subtreeFlags&6&&(t.flags|=8192)):Jn(t),null;case 24:return null;case 25:return null}throw Error(He(156,t.tag))}function U3(e,t){switch(ib(t),t.tag){case 1:return $r(t.type)&&Ad(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return La(),ln(xr),ln(nr),gb(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pb(t),null;case 13:if(ln(mn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(He(340));ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ln(mn),null;case 4:return La(),null;case 10:return ub(t.type._context),null;case 22:case 23:return Ib(),null;case 24:return null;default:return null}}var Pu=!1,er=!1,q3=typeof WeakSet=="function"?WeakSet:Set,rt=null;function ya(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){vn(e,t,r)}else n.current=null}function $h(e,t,n){try{n()}catch(r){vn(e,t,r)}}var yS=!1;function G3(e,t){if(oh=jd,e=v2(),ob(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,l=-1,c=-1,u=0,d=0,m=e,f=null;t:for(;;){for(var p;m!==n||o!==0&&m.nodeType!==3||(l=i+o),m!==s||r!==0&&m.nodeType!==3||(c=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(p=m.firstChild)!==null;)f=m,m=p;for(;;){if(m===e)break t;if(f===n&&++u===o&&(l=i),f===s&&++d===r&&(c=i),(p=m.nextSibling)!==null)break;m=f,f=m.parentNode}m=p}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(sh={focusedElem:e,selectionRange:n},jd=!1,rt=t;rt!==null;)if(t=rt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,rt=e;else for(;rt!==null;){t=rt;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var b=y.memoizedProps,x=y.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?b:so(t.type,b),x);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(He(163))}}catch($){vn(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,rt=e;break}rt=t.return}return y=yS,yS=!1,y}function Fl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&$h(t,n,s)}o=o.next}while(o!==r)}}function Uf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Sh(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function pI(e){var t=e.alternate;t!==null&&(e.alternate=null,pI(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Po],delete t[mc],delete t[lh],delete t[T3],delete t[M3])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function gI(e){return e.tag===5||e.tag===3||e.tag===4}function vS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gI(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ch(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=kd));else if(r!==4&&(e=e.child,e!==null))for(Ch(e,t,n),e=e.sibling;e!==null;)Ch(e,t,n),e=e.sibling}function wh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(wh(e,t,n),e=e.sibling;e!==null;)wh(e,t,n),e=e.sibling}var Wn=null,io=!1;function cs(e,t,n){for(n=n.child;n!==null;)hI(e,t,n),n=n.sibling}function hI(e,t,n){if(Ro&&typeof Ro.onCommitFiberUnmount=="function")try{Ro.onCommitFiberUnmount(kf,n)}catch{}switch(n.tag){case 5:er||ya(n,t);case 6:var r=Wn,o=io;Wn=null,cs(e,t,n),Wn=r,io=o,Wn!==null&&(io?(e=Wn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Wn.removeChild(n.stateNode));break;case 18:Wn!==null&&(io?(e=Wn,n=n.stateNode,e.nodeType===8?yp(e.parentNode,n):e.nodeType===1&&yp(e,n),lc(e)):yp(Wn,n.stateNode));break;case 4:r=Wn,o=io,Wn=n.stateNode.containerInfo,io=!0,cs(e,t,n),Wn=r,io=o;break;case 0:case 11:case 14:case 15:if(!er&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&$h(n,t,i),o=o.next}while(o!==r)}cs(e,t,n);break;case 1:if(!er&&(ya(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){vn(n,t,l)}cs(e,t,n);break;case 21:cs(e,t,n);break;case 22:n.mode&1?(er=(r=er)||n.memoizedState!==null,cs(e,t,n),er=r):cs(e,t,n);break;default:cs(e,t,n)}}function bS(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new q3),t.forEach(function(r){var o=rO.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function no(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 5:Wn=l.stateNode,io=!1;break e;case 3:Wn=l.stateNode.containerInfo,io=!0;break e;case 4:Wn=l.stateNode.containerInfo,io=!0;break e}l=l.return}if(Wn===null)throw Error(He(160));hI(s,i,o),Wn=null,io=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){vn(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)yI(t,e),t=t.sibling}function yI(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(no(t,e),So(e),r&4){try{Fl(3,e,e.return),Uf(3,e)}catch(b){vn(e,e.return,b)}try{Fl(5,e,e.return)}catch(b){vn(e,e.return,b)}}break;case 1:no(t,e),So(e),r&512&&n!==null&&ya(n,n.return);break;case 5:if(no(t,e),So(e),r&512&&n!==null&&ya(n,n.return),e.flags&32){var o=e.stateNode;try{oc(o,"")}catch(b){vn(e,e.return,b)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&AE(o,s),Gg(l,i);var u=Gg(l,s);for(i=0;i<c.length;i+=2){var d=c[i],m=c[i+1];d==="style"?WE(o,m):d==="dangerouslySetInnerHTML"?HE(o,m):d==="children"?oc(o,m):K0(o,d,m,u)}switch(l){case"input":Vg(o,s);break;case"textarea":DE(o,s);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var p=s.value;p!=null?Sa(o,!!s.multiple,p,!1):f!==!!s.multiple&&(s.defaultValue!=null?Sa(o,!!s.multiple,s.defaultValue,!0):Sa(o,!!s.multiple,s.multiple?[]:"",!1))}o[mc]=s}catch(b){vn(e,e.return,b)}}break;case 6:if(no(t,e),So(e),r&4){if(e.stateNode===null)throw Error(He(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(b){vn(e,e.return,b)}}break;case 3:if(no(t,e),So(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{lc(t.containerInfo)}catch(b){vn(e,e.return,b)}break;case 4:no(t,e),So(e);break;case 13:no(t,e),So(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(wb=xn())),r&4&&bS(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(er=(u=er)||d,no(t,e),er=u):no(t,e),So(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(rt=e,d=e.child;d!==null;){for(m=rt=d;rt!==null;){switch(f=rt,p=f.child,f.tag){case 0:case 11:case 14:case 15:Fl(4,f,f.return);break;case 1:ya(f,f.return);var y=f.stateNode;if(typeof y.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(b){vn(r,n,b)}}break;case 5:ya(f,f.return);break;case 22:if(f.memoizedState!==null){$S(m);continue}}p!==null?(p.return=f,rt=p):$S(m)}d=d.sibling}e:for(d=null,m=e;;){if(m.tag===5){if(d===null){d=m;try{o=m.stateNode,u?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=m.stateNode,c=m.memoizedProps.style,i=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=VE("display",i))}catch(b){vn(e,e.return,b)}}}else if(m.tag===6){if(d===null)try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(b){vn(e,e.return,b)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;d===m&&(d=null),m=m.return}d===m&&(d=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:no(t,e),So(e),r&4&&bS(e);break;case 21:break;default:no(t,e),So(e)}}function So(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(gI(n)){var r=n;break e}n=n.return}throw Error(He(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(oc(o,""),r.flags&=-33);var s=vS(e);wh(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,l=vS(e);Ch(e,l,i);break;default:throw Error(He(161))}}catch(c){vn(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function X3(e,t,n){rt=e,vI(e)}function vI(e,t,n){for(var r=(e.mode&1)!==0;rt!==null;){var o=rt,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Pu;if(!i){var l=o.alternate,c=l!==null&&l.memoizedState!==null||er;l=Pu;var u=er;if(Pu=i,(er=c)&&!u)for(rt=o;rt!==null;)i=rt,c=i.child,i.tag===22&&i.memoizedState!==null?SS(o):c!==null?(c.return=i,rt=c):SS(o);for(;s!==null;)rt=s,vI(s),s=s.sibling;rt=o,Pu=l,er=u}xS(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,rt=s):xS(e)}}function xS(e){for(;rt!==null;){var t=rt;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:er||Uf(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!er)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:so(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&oS(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}oS(t,i,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var m=d.dehydrated;m!==null&&lc(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(He(163))}er||t.flags&512&&Sh(t)}catch(f){vn(t,t.return,f)}}if(t===e){rt=null;break}if(n=t.sibling,n!==null){n.return=t.return,rt=n;break}rt=t.return}}function $S(e){for(;rt!==null;){var t=rt;if(t===e){rt=null;break}var n=t.sibling;if(n!==null){n.return=t.return,rt=n;break}rt=t.return}}function SS(e){for(;rt!==null;){var t=rt;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Uf(4,t)}catch(c){vn(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){vn(t,o,c)}}var s=t.return;try{Sh(t)}catch(c){vn(t,s,c)}break;case 5:var i=t.return;try{Sh(t)}catch(c){vn(t,i,c)}}}catch(c){vn(t,t.return,c)}if(t===e){rt=null;break}var l=t.sibling;if(l!==null){l.return=t.return,rt=l;break}rt=t.return}}var Y3=Math.ceil,Xd=ls.ReactCurrentDispatcher,Sb=ls.ReactCurrentOwner,Xr=ls.ReactCurrentBatchConfig,Ut=0,Dn=null,Pn=null,Un=0,Rr=0,va=Vs(0),_n=0,bc=null,wi=0,qf=0,Cb=0,Hl=null,vr=null,wb=0,Aa=1/0,Ho=null,Yd=!1,Eh=null,Ms=null,Nu=!1,Ss=null,Qd=0,Vl=0,Ih=null,dd=-1,fd=0;function sr(){return Ut&6?xn():dd!==-1?dd:dd=xn()}function Os(e){return e.mode&1?Ut&2&&Un!==0?Un&-Un:_3.transition!==null?(fd===0&&(fd=n2()),fd):(e=Qt,e!==0||(e=window.event,e=e===void 0?16:c2(e.type)),e):1}function fo(e,t,n,r){if(50<Vl)throw Vl=0,Ih=null,Error(He(185));Ac(e,n,r),(!(Ut&2)||e!==Dn)&&(e===Dn&&(!(Ut&2)&&(qf|=n),_n===4&&xs(e,Un)),Sr(e,r),n===1&&Ut===0&&!(t.mode&1)&&(Aa=xn()+500,Vf&&Ws()))}function Sr(e,t){var n=e.callbackNode;_8(e,t);var r=zd(e,e===Dn?Un:0);if(r===0)n!==null&&M$(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&M$(n),t===1)e.tag===0?O3(CS.bind(null,e)):N2(CS.bind(null,e)),N3(function(){!(Ut&6)&&Ws()}),n=null;else{switch(r2(r)){case 1:n=Y0;break;case 4:n=e2;break;case 16:n=_d;break;case 536870912:n=t2;break;default:n=_d}n=II(n,bI.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bI(e,t){if(dd=-1,fd=0,Ut&6)throw Error(He(327));var n=e.callbackNode;if(Pa()&&e.callbackNode!==n)return null;var r=zd(e,e===Dn?Un:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Jd(e,r);else{t=r;var o=Ut;Ut|=2;var s=$I();(Dn!==e||Un!==t)&&(Ho=null,Aa=xn()+500,hi(e,t));do try{Z3();break}catch(l){xI(e,l)}while(!0);cb(),Xd.current=s,Ut=o,Pn!==null?t=0:(Dn=null,Un=0,t=_n)}if(t!==0){if(t===2&&(o=Zg(e),o!==0&&(r=o,t=Ph(e,o))),t===1)throw n=bc,hi(e,0),xs(e,r),Sr(e,xn()),n;if(t===6)xs(e,r);else{if(o=e.current.alternate,!(r&30)&&!Q3(o)&&(t=Jd(e,r),t===2&&(s=Zg(e),s!==0&&(r=s,t=Ph(e,s))),t===1))throw n=bc,hi(e,0),xs(e,r),Sr(e,xn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(He(345));case 2:ti(e,vr,Ho);break;case 3:if(xs(e,r),(r&130023424)===r&&(t=wb+500-xn(),10<t)){if(zd(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){sr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ah(ti.bind(null,e,vr,Ho),t);break}ti(e,vr,Ho);break;case 4:if(xs(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-uo(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=xn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Y3(r/1960))-r,10<r){e.timeoutHandle=ah(ti.bind(null,e,vr,Ho),r);break}ti(e,vr,Ho);break;case 5:ti(e,vr,Ho);break;default:throw Error(He(329))}}}return Sr(e,xn()),e.callbackNode===n?bI.bind(null,e):null}function Ph(e,t){var n=Hl;return e.current.memoizedState.isDehydrated&&(hi(e,t).flags|=256),e=Jd(e,t),e!==2&&(t=vr,vr=n,t!==null&&Nh(t)),e}function Nh(e){vr===null?vr=e:vr.push.apply(vr,e)}function Q3(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!po(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xs(e,t){for(t&=~Cb,t&=~qf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-uo(t),r=1<<n;e[n]=-1,t&=~r}}function CS(e){if(Ut&6)throw Error(He(327));Pa();var t=zd(e,0);if(!(t&1))return Sr(e,xn()),null;var n=Jd(e,t);if(e.tag!==0&&n===2){var r=Zg(e);r!==0&&(t=r,n=Ph(e,r))}if(n===1)throw n=bc,hi(e,0),xs(e,t),Sr(e,xn()),n;if(n===6)throw Error(He(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ti(e,vr,Ho),Sr(e,xn()),null}function Eb(e,t){var n=Ut;Ut|=1;try{return e(t)}finally{Ut=n,Ut===0&&(Aa=xn()+500,Vf&&Ws())}}function Ei(e){Ss!==null&&Ss.tag===0&&!(Ut&6)&&Pa();var t=Ut;Ut|=1;var n=Xr.transition,r=Qt;try{if(Xr.transition=null,Qt=1,e)return e()}finally{Qt=r,Xr.transition=n,Ut=t,!(Ut&6)&&Ws()}}function Ib(){Rr=va.current,ln(va)}function hi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,P3(n)),Pn!==null)for(n=Pn.return;n!==null;){var r=n;switch(ib(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ad();break;case 3:La(),ln(xr),ln(nr),gb();break;case 5:pb(r);break;case 4:La();break;case 13:ln(mn);break;case 19:ln(mn);break;case 10:ub(r.type._context);break;case 22:case 23:Ib()}n=n.return}if(Dn=e,Pn=e=_s(e.current,null),Un=Rr=t,_n=0,bc=null,Cb=qf=wi=0,vr=Hl=null,ci!==null){for(t=0;t<ci.length;t++)if(n=ci[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}ci=null}return e}function xI(e,t){do{var n=Pn;try{if(cb(),ld.current=Gd,qd){for(var r=pn.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}qd=!1}if(Ci=0,An=Mn=pn=null,Dl=!1,hc=0,Sb.current=null,n===null||n.return===null){_n=1,bc=t,Pn=null;break}e:{var s=e,i=n.return,l=n,c=t;if(t=Un,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,m=d.tag;if(!(d.mode&1)&&(m===0||m===11||m===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=uS(i);if(p!==null){p.flags&=-257,dS(p,i,l,s,t),p.mode&1&&cS(s,u,t),t=p,c=u;var y=t.updateQueue;if(y===null){var b=new Set;b.add(c),t.updateQueue=b}else y.add(c);break e}else{if(!(t&1)){cS(s,u,t),Pb();break e}c=Error(He(426))}}else if(un&&l.mode&1){var x=uS(i);if(x!==null){!(x.flags&65536)&&(x.flags|=256),dS(x,i,l,s,t),ab(ka(c,l));break e}}s=c=ka(c,l),_n!==4&&(_n=2),Hl===null?Hl=[s]:Hl.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var v=rI(s,c,t);rS(s,v);break e;case 1:l=c;var g=s.type,h=s.stateNode;if(!(s.flags&128)&&(typeof g.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Ms===null||!Ms.has(h)))){s.flags|=65536,t&=-t,s.lanes|=t;var $=oI(s,l,t);rS(s,$);break e}}s=s.return}while(s!==null)}CI(n)}catch(C){t=C,Pn===n&&n!==null&&(Pn=n=n.return);continue}break}while(!0)}function $I(){var e=Xd.current;return Xd.current=Gd,e===null?Gd:e}function Pb(){(_n===0||_n===3||_n===2)&&(_n=4),Dn===null||!(wi&268435455)&&!(qf&268435455)||xs(Dn,Un)}function Jd(e,t){var n=Ut;Ut|=2;var r=$I();(Dn!==e||Un!==t)&&(Ho=null,hi(e,t));do try{J3();break}catch(o){xI(e,o)}while(!0);if(cb(),Ut=n,Xd.current=r,Pn!==null)throw Error(He(261));return Dn=null,Un=0,_n}function J3(){for(;Pn!==null;)SI(Pn)}function Z3(){for(;Pn!==null&&!w8();)SI(Pn)}function SI(e){var t=EI(e.alternate,e,Rr);e.memoizedProps=e.pendingProps,t===null?CI(e):Pn=t,Sb.current=null}function CI(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=U3(n,t),n!==null){n.flags&=32767,Pn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{_n=6,Pn=null;return}}else if(n=K3(n,t,Rr),n!==null){Pn=n;return}if(t=t.sibling,t!==null){Pn=t;return}Pn=t=e}while(t!==null);_n===0&&(_n=5)}function ti(e,t,n){var r=Qt,o=Xr.transition;try{Xr.transition=null,Qt=1,eO(e,t,n,r)}finally{Xr.transition=o,Qt=r}return null}function eO(e,t,n,r){do Pa();while(Ss!==null);if(Ut&6)throw Error(He(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(He(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(z8(e,s),e===Dn&&(Pn=Dn=null,Un=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Nu||(Nu=!0,II(_d,function(){return Pa(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Xr.transition,Xr.transition=null;var i=Qt;Qt=1;var l=Ut;Ut|=4,Sb.current=null,G3(e,n),yI(n,e),x3(sh),jd=!!oh,sh=oh=null,e.current=n,X3(n),E8(),Ut=l,Qt=i,Xr.transition=s}else e.current=n;if(Nu&&(Nu=!1,Ss=e,Qd=o),s=e.pendingLanes,s===0&&(Ms=null),N8(n.stateNode),Sr(e,xn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Yd)throw Yd=!1,e=Eh,Eh=null,e;return Qd&1&&e.tag!==0&&Pa(),s=e.pendingLanes,s&1?e===Ih?Vl++:(Vl=0,Ih=e):Vl=0,Ws(),null}function Pa(){if(Ss!==null){var e=r2(Qd),t=Xr.transition,n=Qt;try{if(Xr.transition=null,Qt=16>e?16:e,Ss===null)var r=!1;else{if(e=Ss,Ss=null,Qd=0,Ut&6)throw Error(He(331));var o=Ut;for(Ut|=4,rt=e.current;rt!==null;){var s=rt,i=s.child;if(rt.flags&16){var l=s.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(rt=u;rt!==null;){var d=rt;switch(d.tag){case 0:case 11:case 15:Fl(8,d,s)}var m=d.child;if(m!==null)m.return=d,rt=m;else for(;rt!==null;){d=rt;var f=d.sibling,p=d.return;if(pI(d),d===u){rt=null;break}if(f!==null){f.return=p,rt=f;break}rt=p}}}var y=s.alternate;if(y!==null){var b=y.child;if(b!==null){y.child=null;do{var x=b.sibling;b.sibling=null,b=x}while(b!==null)}}rt=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,rt=i;else e:for(;rt!==null;){if(s=rt,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Fl(9,s,s.return)}var v=s.sibling;if(v!==null){v.return=s.return,rt=v;break e}rt=s.return}}var g=e.current;for(rt=g;rt!==null;){i=rt;var h=i.child;if(i.subtreeFlags&2064&&h!==null)h.return=i,rt=h;else e:for(i=g;rt!==null;){if(l=rt,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Uf(9,l)}}catch(C){vn(l,l.return,C)}if(l===i){rt=null;break e}var $=l.sibling;if($!==null){$.return=l.return,rt=$;break e}rt=l.return}}if(Ut=o,Ws(),Ro&&typeof Ro.onPostCommitFiberRoot=="function")try{Ro.onPostCommitFiberRoot(kf,e)}catch{}r=!0}return r}finally{Qt=n,Xr.transition=t}}return!1}function wS(e,t,n){t=ka(n,t),t=rI(e,t,1),e=Ts(e,t,1),t=sr(),e!==null&&(Ac(e,1,t),Sr(e,t))}function vn(e,t,n){if(e.tag===3)wS(e,e,n);else for(;t!==null;){if(t.tag===3){wS(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ms===null||!Ms.has(r))){e=ka(n,e),e=oI(t,e,1),t=Ts(t,e,1),e=sr(),t!==null&&(Ac(t,1,e),Sr(t,e));break}}t=t.return}}function tO(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=sr(),e.pingedLanes|=e.suspendedLanes&n,Dn===e&&(Un&n)===n&&(_n===4||_n===3&&(Un&130023424)===Un&&500>xn()-wb?hi(e,0):Cb|=n),Sr(e,t)}function wI(e,t){t===0&&(e.mode&1?(t=vu,vu<<=1,!(vu&130023424)&&(vu=4194304)):t=1);var n=sr();e=rs(e,t),e!==null&&(Ac(e,t,n),Sr(e,n))}function nO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wI(e,n)}function rO(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(He(314))}r!==null&&r.delete(t),wI(e,n)}var EI;EI=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xr.current)br=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return br=!1,W3(e,t,n);br=!!(e.flags&131072)}else br=!1,un&&t.flags&1048576&&R2(t,Hd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ud(e,t),e=t.pendingProps;var o=za(t,nr.current);Ia(t,n),o=yb(null,t,r,e,o,n);var s=vb();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$r(r)?(s=!0,Dd(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,fb(t),o.updater=Kf,t.stateNode=o,o._reactInternals=t,ph(t,r,e,n),t=yh(null,t,r,!0,s,n)):(t.tag=0,un&&s&&sb(t),rr(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ud(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=sO(r),e=so(r,e),o){case 0:t=hh(null,t,r,e,n);break e;case 1:t=pS(null,t,r,e,n);break e;case 11:t=fS(null,t,r,e,n);break e;case 14:t=mS(null,t,r,so(r.type,e),n);break e}throw Error(He(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:so(r,o),hh(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:so(r,o),pS(e,t,r,o,n);case 3:e:{if(lI(t),e===null)throw Error(He(387));r=t.pendingProps,s=t.memoizedState,o=s.element,j2(e,t),Kd(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=ka(Error(He(423)),t),t=gS(e,t,r,n,o);break e}else if(r!==o){o=ka(Error(He(424)),t),t=gS(e,t,r,n,o);break e}else for(Mr=Rs(t.stateNode.containerInfo.firstChild),_r=t,un=!0,co=null,n=_2(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ja(),r===o){t=os(e,t,n);break e}rr(e,t,r,n)}t=t.child}return t;case 5:return B2(t),e===null&&dh(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,ih(r,o)?i=null:s!==null&&ih(r,s)&&(t.flags|=32),aI(e,t),rr(e,t,i,n),t.child;case 6:return e===null&&dh(t),null;case 13:return cI(e,t,n);case 4:return mb(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ba(t,null,r,n):rr(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:so(r,o),fS(e,t,r,o,n);case 7:return rr(e,t,t.pendingProps,n),t.child;case 8:return rr(e,t,t.pendingProps.children,n),t.child;case 12:return rr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,tn(Vd,r._currentValue),r._currentValue=i,s!==null)if(po(s.value,i)){if(s.children===o.children&&!xr.current){t=os(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){i=s.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(s.tag===1){c=Qo(-1,n&-n),c.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),fh(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(He(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),fh(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}rr(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ia(t,n),o=Yr(o),r=r(o),t.flags|=1,rr(e,t,r,n),t.child;case 14:return r=t.type,o=so(r,t.pendingProps),o=so(r.type,o),mS(e,t,r,o,n);case 15:return sI(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:so(r,o),ud(e,t),t.tag=1,$r(r)?(e=!0,Dd(t)):e=!1,Ia(t,n),nI(t,r,o),ph(t,r,o,n),yh(null,t,r,!0,e,n);case 19:return uI(e,t,n);case 22:return iI(e,t,n)}throw Error(He(156,t.tag))};function II(e,t){return ZE(e,t)}function oO(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gr(e,t,n,r){return new oO(e,t,n,r)}function Nb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sO(e){if(typeof e=="function")return Nb(e)?1:0;if(e!=null){if(e=e.$$typeof,e===q0)return 11;if(e===G0)return 14}return 2}function _s(e,t){var n=e.alternate;return n===null?(n=Gr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function md(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")Nb(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case la:return yi(n.children,o,s,t);case U0:i=8,o|=8;break;case kg:return e=Gr(12,n,t,o|2),e.elementType=kg,e.lanes=s,e;case Ag:return e=Gr(13,n,t,o),e.elementType=Ag,e.lanes=s,e;case Dg:return e=Gr(19,n,t,o),e.elementType=Dg,e.lanes=s,e;case BE:return Gf(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zE:i=10;break e;case jE:i=9;break e;case q0:i=11;break e;case G0:i=14;break e;case ms:i=16,r=null;break e}throw Error(He(130,e==null?e:typeof e,""))}return t=Gr(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function yi(e,t,n,r){return e=Gr(7,e,r,t),e.lanes=n,e}function Gf(e,t,n,r){return e=Gr(22,e,r,t),e.elementType=BE,e.lanes=n,e.stateNode={isHidden:!1},e}function Ep(e,t,n){return e=Gr(6,e,null,t),e.lanes=n,e}function Ip(e,t,n){return t=Gr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function iO(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ip(0),this.expirationTimes=ip(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ip(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Rb(e,t,n,r,o,s,i,l,c){return e=new iO(e,t,n,l,c),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Gr(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fb(s),e}function aO(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:aa,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function PI(e){if(!e)return Bs;e=e._reactInternals;e:{if(Oi(e)!==e||e.tag!==1)throw Error(He(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($r(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(He(171))}if(e.tag===1){var n=e.type;if($r(n))return P2(e,n,t)}return t}function NI(e,t,n,r,o,s,i,l,c){return e=Rb(n,r,!0,e,o,s,i,l,c),e.context=PI(null),n=e.current,r=sr(),o=Os(n),s=Qo(r,o),s.callback=t??null,Ts(n,s,o),e.current.lanes=o,Ac(e,o,r),Sr(e,r),e}function Xf(e,t,n,r){var o=t.current,s=sr(),i=Os(o);return n=PI(n),t.context===null?t.context=n:t.pendingContext=n,t=Qo(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ts(o,t,i),e!==null&&(fo(e,o,i,s),ad(e,o,i)),i}function Zd(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ES(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Tb(e,t){ES(e,t),(e=e.alternate)&&ES(e,t)}function lO(){return null}var RI=typeof reportError=="function"?reportError:function(e){console.error(e)};function Mb(e){this._internalRoot=e}Yf.prototype.render=Mb.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(He(409));Xf(e,t,null,null)};Yf.prototype.unmount=Mb.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ei(function(){Xf(null,e,null,null)}),t[ns]=null}};function Yf(e){this._internalRoot=e}Yf.prototype.unstable_scheduleHydration=function(e){if(e){var t=i2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<bs.length&&t!==0&&t<bs[n].priority;n++);bs.splice(n,0,e),n===0&&l2(e)}};function Ob(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Qf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function IS(){}function cO(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=Zd(i);s.call(u)}}var i=NI(t,r,e,0,null,!1,!1,"",IS);return e._reactRootContainer=i,e[ns]=i.current,dc(e.nodeType===8?e.parentNode:e),Ei(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=Zd(c);l.call(u)}}var c=Rb(e,0,!1,null,null,!1,!1,"",IS);return e._reactRootContainer=c,e[ns]=c.current,dc(e.nodeType===8?e.parentNode:e),Ei(function(){Xf(t,c,n,r)}),c}function Jf(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var l=o;o=function(){var c=Zd(i);l.call(c)}}Xf(t,i,e,o)}else i=cO(n,t,e,o,r);return Zd(i)}o2=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Pl(t.pendingLanes);n!==0&&(Q0(t,n|1),Sr(t,xn()),!(Ut&6)&&(Aa=xn()+500,Ws()))}break;case 13:Ei(function(){var r=rs(e,1);if(r!==null){var o=sr();fo(r,e,1,o)}}),Tb(e,1)}};J0=function(e){if(e.tag===13){var t=rs(e,134217728);if(t!==null){var n=sr();fo(t,e,134217728,n)}Tb(e,134217728)}};s2=function(e){if(e.tag===13){var t=Os(e),n=rs(e,t);if(n!==null){var r=sr();fo(n,e,t,r)}Tb(e,t)}};i2=function(){return Qt};a2=function(e,t){var n=Qt;try{return Qt=e,t()}finally{Qt=n}};Yg=function(e,t,n){switch(t){case"input":if(Vg(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Hf(r);if(!o)throw Error(He(90));kE(r),Vg(r,o)}}}break;case"textarea":DE(e,n);break;case"select":t=n.value,t!=null&&Sa(e,!!n.multiple,t,!1)}};qE=Eb;GE=Ei;var uO={usingClientEntryPoint:!1,Events:[Fc,fa,Hf,KE,UE,Eb]},hl={findFiberByHostInstance:li,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},dO={bundleType:hl.bundleType,version:hl.version,rendererPackageName:hl.rendererPackageName,rendererConfig:hl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ls.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=QE(e),e===null?null:e.stateNode},findFiberByHostInstance:hl.findFiberByHostInstance||lO,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ru.isDisabled&&Ru.supportsFiber)try{kf=Ru.inject(dO),Ro=Ru}catch{}}Lr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uO;Lr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ob(t))throw Error(He(200));return aO(e,t,null,n)};Lr.createRoot=function(e,t){if(!Ob(e))throw Error(He(299));var n=!1,r="",o=RI;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Rb(e,1,!1,null,null,n,!1,r,o),e[ns]=t.current,dc(e.nodeType===8?e.parentNode:e),new Mb(t)};Lr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(He(188)):(e=Object.keys(e).join(","),Error(He(268,e)));return e=QE(t),e=e===null?null:e.stateNode,e};Lr.flushSync=function(e){return Ei(e)};Lr.hydrate=function(e,t,n){if(!Qf(t))throw Error(He(200));return Jf(null,e,t,!0,n)};Lr.hydrateRoot=function(e,t,n){if(!Ob(e))throw Error(He(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=RI;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=NI(t,null,e,1,n??null,o,!1,s,i),e[ns]=t.current,dc(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Yf(t)};Lr.render=function(e,t,n){if(!Qf(t))throw Error(He(200));return Jf(null,e,t,!1,n)};Lr.unmountComponentAtNode=function(e){if(!Qf(e))throw Error(He(40));return e._reactRootContainer?(Ei(function(){Jf(null,null,e,!1,function(){e._reactRootContainer=null,e[ns]=null})}),!0):!1};Lr.unstable_batchedUpdates=Eb;Lr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qf(n))throw Error(He(200));if(e==null||e._reactInternals===void 0)throw Error(He(38));return Jf(e,t,n,!1,r)};Lr.version="18.3.1-next-f1338f8080-20240426";function TI(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(TI)}catch(e){console.error(e)}}TI(),TE.exports=Lr;var ss=TE.exports,MI,PS=ss;MI=Bg.createRoot=PS.createRoot,Bg.hydrateRoot=PS.hydrateRoot;const vt=e=>{const t=a.useRef(e);return t.current=e,a.useCallback((...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[])};function lr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const NS=lr()?a.useLayoutEffect:a.useEffect,It=(e,t)=>{const n=a.useRef(!0);NS(()=>e(n.current),t),NS(()=>(n.current=!1,()=>{n.current=!0}),[])},pd=(e,t)=>{It(n=>{if(!n)return e()},t)},_b=e=>{const t=a.useRef(!1),[n,r]=a.useState(e);a.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function o(s,i){i&&t.current||r(s)}return[n,o]};function nn(e,t){const[n,r]=a.useState(e),o=t!==void 0?t:n;return It(s=>{s||r(t)},[t]),[o,r]}let OI=e=>+setTimeout(e,16),_I=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(OI=e=>window.requestAnimationFrame(e),_I=e=>window.cancelAnimationFrame(e));let RS=0;const zb=new Map;function zI(e){zb.delete(e)}const Ct=(e,t=1)=>{RS+=1;const n=RS;function r(o){if(o===0)zI(n),e();else{const s=OI(()=>{r(o-1)});zb.set(n,s)}}return r(t),n};Ct.cancel=e=>{const t=zb.get(e);return zI(e),_I(t)};function fO(){return{...t8}.useId}let TS=0;function jI(e,t){const r=String(t).replace(/[^a-zA-Z0-9_.:-]/g,"-");return`${e}-${r}`}const MS=fO(),jo=MS?function(t){const n=MS();return t||n}:function(t){const[n,r]=a.useState("ssr-id");return a.useEffect(()=>{const o=TS;TS+=1,r(`rc_unique_${o}`)},[]),t||n};function _i(e,t,n){const r=a.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function mO(e){const[,t]=a.useReducer(s=>s+1,0),n=a.useRef(e),r=vt(()=>n.current),o=vt(s=>{n.current=typeof s=="function"?s(n.current):s,t()});return[r,o]}var BI={exports:{}},Zt={};/**
* @license React
* react-is.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var jb=Symbol.for("react.transitional.element"),Bb=Symbol.for("react.portal"),Zf=Symbol.for("react.fragment"),em=Symbol.for("react.strict_mode"),tm=Symbol.for("react.profiler"),nm=Symbol.for("react.consumer"),rm=Symbol.for("react.context"),om=Symbol.for("react.forward_ref"),sm=Symbol.for("react.suspense"),im=Symbol.for("react.suspense_list"),am=Symbol.for("react.memo"),lm=Symbol.for("react.lazy"),pO=Symbol.for("react.view_transition"),gO=Symbol.for("react.client.reference");function eo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case jb:switch(e=e.type,e){case Zf:case tm:case em:case sm:case im:case pO:return e;default:switch(e=e&&e.$$typeof,e){case rm:case om:case lm:case am:return e;case nm:return e;default:return t}}case Bb:return t}}}Zt.ContextConsumer=nm;Zt.ContextProvider=rm;Zt.Element=jb;Zt.ForwardRef=om;Zt.Fragment=Zf;Zt.Lazy=lm;Zt.Memo=am;Zt.Portal=Bb;Zt.Profiler=tm;Zt.StrictMode=em;Zt.Suspense=sm;Zt.SuspenseList=im;Zt.isContextConsumer=function(e){return eo(e)===nm};Zt.isContextProvider=function(e){return eo(e)===rm};Zt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===jb};Zt.isForwardRef=function(e){return eo(e)===om};Zt.isFragment=function(e){return eo(e)===Zf};Zt.isLazy=function(e){return eo(e)===lm};Zt.isMemo=function(e){return eo(e)===am};Zt.isPortal=function(e){return eo(e)===Bb};Zt.isProfiler=function(e){return eo(e)===tm};Zt.isStrictMode=function(e){return eo(e)===em};Zt.isSuspense=function(e){return eo(e)===sm};Zt.isSuspenseList=function(e){return eo(e)===im};Zt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zf||e===tm||e===em||e===sm||e===im||typeof e=="object"&&e!==null&&(e.$$typeof===lm||e.$$typeof===am||e.$$typeof===rm||e.$$typeof===nm||e.$$typeof===om||e.$$typeof===gO||e.getModuleId!==void 0)};Zt.typeOf=eo;BI.exports=Zt;var Pp=BI.exports;const hO=Symbol.for("react.element"),yO=Symbol.for("react.transitional.element"),vO=Symbol.for("react.fragment");function LI(e){return e&&typeof e=="object"&&(e.$$typeof===hO||e.$$typeof===yO)&&e.type===vO}const bO=Number(a.version.split(".")[0]),Rh=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},Tn=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{Rh(r,n)})}},$o=(...e)=>_i(()=>Tn(...e),e,(t,n)=>t.length!==n.length||t.every((r,o)=>r!==n[o])),is=e=>{var n,r;if(!e)return!1;if(Lb(e)&&bO>=19)return!0;const t=Pp.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!((n=t.prototype)!=null&&n.render)&&t.$$typeof!==Pp.ForwardRef||typeof e=="function"&&!((r=e.prototype)!=null&&r.render)&&e.$$typeof!==Pp.ForwardRef)};function Lb(e){return a.isValidElement(e)&&!LI(e)}const kI=e=>Lb(e)&&is(e),Bo=e=>{if(e&&Lb(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Th(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}const OS="data-rc-order",_S="data-rc-priority",xO="rc-util-key",Mh=new Map;function AI({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:xO}function cm(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function $O(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function kb(e){return Array.from((Mh.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function DI(e,t={}){if(!lr())return null;const{csp:n,prepend:r,priority:o=0}=t,s=$O(r),i=s==="prependQueue",l=document.createElement("style");l.setAttribute(OS,s),i&&o&&l.setAttribute(_S,`${o}`),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;const c=cm(t),{firstChild:u}=c;if(r){if(i){const d=(t.styles||kb(c)).filter(m=>{if(!["prepend","prependQueue"].includes(m.getAttribute(OS)))return!1;const f=Number(m.getAttribute(_S)||0);return o>=f});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function FI(e,t={}){let{styles:n}=t;return n||(n=kb(cm(t))),n.find(r=>r.getAttribute(AI(t))===e)}function xc(e,t={}){const n=FI(e,t);n&&cm(t).removeChild(n)}function SO(e,t){const n=Mh.get(e);if(!n||!Th(document,n)){const r=DI("",t),{parentNode:o}=r;Mh.set(e,o),e.removeChild(r)}}function vi(e,t,n={}){var c,u,d;const r=cm(n),o=kb(r),s={...n,styles:o};SO(r,s);const i=FI(t,s);if(i)return(c=s.csp)!=null&&c.nonce&&i.nonce!==((u=s.csp)==null?void 0:u.nonce)&&(i.nonce=(d=s.csp)==null?void 0:d.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const l=DI(e,s);return l.setAttribute(AI(s),t),l}function Da(e){return e instanceof HTMLElement||e instanceof SVGElement}function go(e){return e&&typeof e=="object"&&Da(e.nativeElement)?e.nativeElement:Da(e)?e:null}const Vc=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1};function zS(e,t=!1){if(Vc(e)){const n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),s=Number(o);let i=null;return o&&!Number.isNaN(s)?i=s:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function Ab(e,t=!1){const n=[...e.querySelectorAll("*")].filter(r=>zS(r,t));return zS(e,t)&&n.unshift(e),n}function Db(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}let Na=null,gs=[];const Oh=new Map,Fb=new Map;function Hb(){return gs[gs.length-1]}function CO(e){const t=Hb();if(e&&t){let n;for(const[o,s]of Oh.entries())if(s===t){n=o;break}const r=Fb.get(n);return!!r&&(r===e||r.contains(e))}return!1}function wO(e){const{activeElement:t}=document;return e===t||e.contains(t)}function Np(){const e=Hb(),{activeElement:t}=document;if(!CO(t))if(e&&!wO(e)){const n=Ab(e),r=n.includes(Na)?Na:n[0];r==null||r.focus({preventScroll:!0})}else Na=t}function jS(e){if(e.key==="Tab"){const{activeElement:t}=document,n=Hb(),r=Ab(n),o=r[r.length-1];e.shiftKey&&t===r[0]?Na=o:!e.shiftKey&&t===o&&(Na=r[0])}}function EO(e,t){return e&&(Oh.set(t,e),gs=gs.filter(n=>n!==e),gs.push(e),window.addEventListener("focusin",Np),window.addEventListener("keydown",jS,!0),Np()),()=>{Na=null,gs=gs.filter(n=>n!==e),Oh.delete(t),Fb.delete(t),gs.length===0&&(window.removeEventListener("focusin",Np),window.removeEventListener("keydown",jS,!0))}}function IO(e,t){const n=a.useRef(0),[r,o]=a.useState(0);a.useEffect(()=>{n.current=0},t),a.useEffect(()=>{const[s,i]=e(n.current);return i||(n.current+=1,o(l=>l+1)),s},[...t,r])}function PO(e,t){const n=jo(),r=a.useRef(t);return r.current=t,IO(i=>{if(!e)return[void 0,!0];const l=r.current();return l?[EO(l,n),!0]:[void 0,i>=1]},[n,e]),[i=>{i&&Fb.set(n,i)}]}function HI(e){var t;return(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e)}function NO(e){return HI(e)instanceof ShadowRoot}function _h(e){return NO(e)?HI(e):null}const RO=e=>{if(lr()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(r=>r in n.style)}return!1};function BS(e,t){return RO(e)}const nt={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224};let Rp;function VI(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement("div");n.id=t;const r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";let o,s;if(e){const c=getComputedStyle(e);r.scrollbarColor=c.scrollbarColor,r.scrollbarWidth=c.scrollbarWidth;const u=getComputedStyle(e,"::-webkit-scrollbar"),d=parseInt(u.width,10),m=parseInt(u.height,10);try{const f=d?`width: ${u.width};`:"",p=m?`height: ${u.height};`:"";vi(`
#${t}::-webkit-scrollbar {
${f}
${p}
}`,t)}catch(f){console.error(f),o=d,s=m}}document.body.appendChild(n);const i=e&&o&&!Number.isNaN(o)?o:n.offsetWidth-n.clientWidth,l=e&&s&&!Number.isNaN(s)?s:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),xc(t),{width:i,height:l}}function LS(e){return typeof document>"u"?0:(Rp===void 0&&(Rp=VI()),Rp.width)}function zh(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:VI(e)}let jh={};const TO=e=>{};function MO(e,t){}function OO(e,t){}function _O(){jh={}}function WI(e,t,n){!t&&!jh[n]&&(e(!1,n),jh[n]=!0)}function fn(e,t){WI(MO,e,t)}function zO(e,t){WI(OO,e,t)}fn.preMessage=TO;fn.resetWarned=_O;fn.noteOnce=zO;function ho(e,t,n=!1){const r=new Set;function o(s,i,l=1){const c=r.has(s);if(fn(!c,"Warning: There may be circular references"),c)return!1;if(s===i)return!0;if(n&&l>1)return!1;r.add(s);const u=l+1;if(Array.isArray(s)){if(!Array.isArray(i)||s.length!==i.length)return!1;for(let d=0;d<s.length;d++)if(!o(s[d],i[d],u))return!1;return!0}if(s&&i&&typeof s=="object"&&typeof i=="object"){const d=Object.keys(s);return d.length!==Object.keys(i).length?!1:d.every(m=>o(s[m],i[m],u))}return!1}return o(e,t)}var um={exports:{}};um.exports=Vb;um.exports.isMobile=Vb;um.exports.default=Vb;const jO=/(android|bb\d+|meego).+mobile|armv7l|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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,BO=/CrOS/,LO=/android|ipad|playbook|silk/i;function Vb(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let n=jO.test(t)&&!BO.test(t)||!!e.tablet&&LO.test(t);return!n&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(n=!0),n}var kO=um.exports;const AO=k0(kO);let Tp;const DO=()=>(typeof Tp>"u"&&(Tp=AO()),Tp);function Dt(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete n[r]}),n}const FO=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,HO=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad
onPointerDown onPointerMove onPointerUp onPointerCancel onPointerEnter onPointerLeave onPointerOver onPointerOut onGotPointerCapture onLostPointerCapture
onAnimationStart onAnimationEnd onAnimationIteration
onTransitionEnd onTransitionRun onTransitionStart onTransitionCancel
onBeforeInput onReset onInvalid
onAuxClick onToggle onBeforeToggle onCancel onClose onResize onScrollEnd`,VO=`${FO} ${HO}`.split(/[\s\n]+/),WO="aria-",KO="data-";function kS(e,t){return e.indexOf(t)===0}function Nn(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const r={};return Object.keys(e).forEach(o=>{(n.aria&&(o==="role"||kS(o,WO))||n.data&&kS(o,KO)||n.attr&&VO.includes(o))&&(r[o]=e[o])}),r}function UO(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get(n,r){if(t[r])return t[r];const o=n[r];return typeof o=="function"?o.bind(n):o}}):e}function zn(e,t={}){let n=[];return J.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(zn(r)):LI(r)&&r.props?n=n.concat(zn(r.props.children,t)):n.push(r))}),n}function Fa(...e){const t={};for(const n of e)if(n)for(const r of Object.keys(n))n[r]!==void 0&&(t[r]=n[r]);return t}function Kn(e,t){let n=e;for(let r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function KI(e,t,n,r){if(!t.length)return n;const[o,...s]=t;let i;return!e&&typeof o=="number"?i=[]:Array.isArray(e)?i=[...e]:i={...e},r&&n===void 0&&s.length===1?delete i[o][s[0]]:i[o]=KI(i[o],s,n,r),i}function hr(e,t,n,r=!1){return t.length&&r&&n===void 0&&!Kn(e,t.slice(0,-1))?e:KI(e,t,n,r)}function qO(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function AS(e){return Array.isArray(e)?[]:{}}const GO=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function XO(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let o=AS(e[0]);return e.forEach(s=>{function i(l,c){const u=new Set(c),d=Kn(s,l),m=Array.isArray(d);if(m||qO(d)){if(!u.has(d)){u.add(d);const f=Kn(o,l);m?o=hr(o,l,r(f,d)):(!f||typeof f!="object")&&(o=hr(o,l,AS(d))),GO(d).forEach(p=>{Object.getOwnPropertyDescriptor(d,p).enumerable&&i([...l,p],u)})}}else o=hr(o,l,d)}i([])}),o}function ba(...e){return XO(e)}const ef="__rc_react_root__";function Wb(e,t){const n=t[ef]||MI(t);n.render(e),t[ef]=n}async function UI(e){return Promise.resolve().then(()=>{var t;(t=e[ef])==null||t.unmount(),delete e[ef]})}function YO(){}const QO=a.createContext({}),yo=()=>{const e=()=>{};return e.deprecated=YO,e},Bh=a.createContext(null);function JO({children:e,onBatchResize:t}){const n=a.useRef(0),r=a.useRef([]),o=a.useContext(Bh),s=a.useCallback((i,l,c)=>{n.current+=1;const u=n.current;r.current.push({size:i,element:l,data:c}),Promise.resolve().then(()=>{u===n.current&&(t==null||t(r.current),r.current=[])}),o==null||o(i,l,c)},[t,o]);return a.createElement(Bh.Provider,{value:s},e)}const Cs=new Map;function ZO(e){e.forEach(t=>{var r;const{target:n}=t;(r=Cs.get(n))==null||r.forEach(o=>o(n))})}let Mp;function qI(){return Mp||(Mp=new ResizeObserver(ZO)),Mp}function e_(e,t){Cs.has(e)||(Cs.set(e,new Set),qI().observe(e)),Cs.get(e).add(t)}function t_(e,t){Cs.has(e)&&(Cs.get(e).delete(t),Cs.get(e).size||(qI().unobserve(e),Cs.delete(e)))}function GI(e,t,n,r){const o=a.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),s=vt(c=>{const{width:u,height:d}=c.getBoundingClientRect(),{offsetWidth:m,offsetHeight:f}=c,p=Math.floor(u),y=Math.floor(d);if(o.current.width!==p||o.current.height!==y||o.current.offsetWidth!==m||o.current.offsetHeight!==f){const b={width:p,height:y,offsetWidth:m,offsetHeight:f};o.current=b;const x=m===Math.round(u)?u:m,v=f===Math.round(d)?d:f,g={...b,offsetWidth:x,offsetHeight:v};r==null||r(g,c),Promise.resolve().then(()=>{n==null||n(g,c)})}}),i=typeof t=="function",l=a.useRef(0);a.useEffect(()=>{const c=i?t():t;return c&&e?e_(c,s):e&&i&&(l.current+=1),()=>{c&&t_(c,s)}},[e,i?l.current:t])}function n_(e,t){const{children:n,disabled:r,onResize:o,data:s}=e,i=a.useRef(null),l=a.useContext(Bh),c=typeof n=="function",u=c?n(i):n,d=!c&&a.isValidElement(u)&&is(u),m=d?Bo(u):null,f=$o(m,i),p=()=>go(i.current);return a.useImperativeHandle(t,()=>p()),GI(!r,p,o,(y,b)=>{l==null||l(y,b,s)}),d?a.cloneElement(u,{ref:f}):u}const r_=a.forwardRef(n_);function Lh(){return Lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lh.apply(this,arguments)}const o_="rc-observer-key";function s_(e,t){const{children:n}=e;return(typeof n=="function"?[n]:zn(n)).map((o,s)=>{const i=(o==null?void 0:o.key)||`${o_}-${s}`;return a.createElement(r_,Lh({},e,{key:i,ref:s===0?t:void 0}),o)})}const ir=a.forwardRef(s_);ir.Collection=JO;function XI(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=XI(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function H(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=XI(e))&&(r&&(r+=" "),r+=t);return r}function kh(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 i_(e){if(Array.isArray(e))return kh(e)}function a_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YI(e,t){if(e){if(typeof e=="string")return kh(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)?kh(e,t):void 0}}function l_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $t(e){return i_(e)||a_(e)||YI(e)||l_()}const $c="ant",dm="anticon",c_=["outlined","borderless","filled","underlined"],u_=(e,t)=>t||(e?`${$c}-${e}`:$c),ct=a.createContext({getPrefixCls:u_,iconPrefixCls:dm}),{Consumer:TZ}=ct,DS={};function Pt(e){const t=a.useContext(ct),{getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:s}=t,i=t[e];return{classNames:DS,styles:DS,...i,getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:s}}function Sc(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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)}const d_="%";function Ah(e){return e.join(d_)}let FS=0;class f_{constructor(t){fe(this,"instanceId");fe(this,"cache",new Map);fe(this,"updateTimes",new Map);fe(this,"extracted",new Set);this.instanceId=t}get(t){return this.opGet(Ah(t))}opGet(t){return this.cache.get(t)||null}update(t,n){return this.opUpdate(Ah(t),n)}opUpdate(t,n){const r=this.cache.get(t),o=n(r);o===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,o),this.updateTimes.set(t,FS),FS+=1)}}const Kb="data-token-hash",Jo="data-css-hash",qo="__cssinjs_instance__";function m_(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Jo}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(o=>{o[qo]||(o[qo]=e),o[qo]===e&&document.head.insertBefore(o,n)});const r={};Array.from(document.querySelectorAll(`style[${Jo}]`)).forEach(o=>{var i;const s=o.getAttribute(Jo);r[s]?o[qo]===e&&((i=o.parentNode)==null||i.removeChild(o)):r[s]=!0})}return new f_(e)}const Wc=a.createContext({hashPriority:"low",cache:m_(),defaultCache:!0,autoPrefix:!1});function p_(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const $a=class $a{constructor(){fe(this,"cache");fe(this,"keys");fe(this,"cacheCallTimes");this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,n=!1){let r={map:this.cache};return t.forEach(o=>{var s;r?r=(s=r==null?void 0:r.map)==null?void 0:s.get(o):r=void 0}),r!=null&&r.value&&n&&(r.value[1]=this.cacheCallTimes++),r==null?void 0:r.value}get(t){var n;return(n=this.internalGet(t,!0))==null?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>$a.MAX_CACHE_SIZE+$a.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((s,i)=>{const[,l]=s;return this.internalGet(i)[1]<l?[i,this.internalGet(i)[1]]:s},[this.keys[0],this.cacheCallTimes]);this.delete(o)}this.keys.push(t)}let r=this.cache;t.forEach((o,s)=>{if(s===t.length-1)r.set(o,{value:[n,this.cacheCallTimes++]});else{const i=r.get(o);i?i.map||(i.map=new Map):r.set(o,{map:new Map}),r=r.get(o).map}})}deleteByPath(t,n){var s;const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(s=r.value)==null?void 0:s[0];const o=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),o}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!p_(n,t)),this.deleteByPath(this.cache,t)}};fe($a,"MAX_CACHE_SIZE",20),fe($a,"MAX_CACHE_OFFSET",5);let Dh=$a,HS=0;class QI{constructor(t){fe(this,"derivatives");fe(this,"id");this.derivatives=Array.isArray(t)?t:[t],this.id=HS,t.length===0&&(t.length>0,void 0),HS+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const Op=new Dh;function tf(e){const t=Array.isArray(e)?e:[e];return Op.has(t)||Op.set(t,new QI(t)),Op.get(t)}const g_=new WeakMap,_p={};function h_(e,t){let n=g_;for(let r=0;r<t.length;r+=1){const o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(_p)||n.set(_p,e()),n.get(_p)}const VS=new WeakMap;function Wl(e){let t=VS.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof QI?t+=r.id:r&&typeof r=="object"?t+=Wl(r):t+=r}),t=Sc(t),VS.set(e,t)),t}function y_(e,t){return Sc(`${t}_${Wl(e)}`)}const Fh=lr();function G(e){return typeof e=="number"?`${e}px`:e}function JI(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const r=`.${t}`;return n==="low"?`:where(${r})`:r}const v_=e=>e!=null;function Ub(e,t){const n=typeof t=="function"?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}const gd=(e,t="")=>`--${t?`${t}-`:""}${e}`.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(),b_=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",scope:s}=n||{};if(!Object.keys(e).length)return"";const i=`${JI({hashCls:r,hashPriority:o})}.${t}`,l=[s].flat().filter(Boolean);return`${l.length?l.map(u=>`${i}.${u}`).join(", "):i}{${Object.entries(e).map(([u,d])=>`${u}:${d};`).join("")}}`},ZI=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",prefix:s,unitless:i,ignore:l,preserve:c}=n||{},u={},d={};return Object.entries(e).forEach(([m,f])=>{if(c!=null&&c[m])d[m]=f;else if((typeof f=="string"||typeof f=="number")&&!(l!=null&&l[m])){const p=gd(m,s);u[p]=typeof f=="number"&&!(i!=null&&i[m])?`${f}px`:String(f),d[m]=`var(${p})`}}),[d,b_(u,t,{scope:n==null?void 0:n.scope,hashCls:r,hashPriority:o})]},Tu=new Map;function qb(e,t,n,r,o){const{cache:s}=a.useContext(Wc),i=[e,...t],l=Ah(i),c=m=>{s.opUpdate(l,f=>{const[p=0,y]=f||[void 0,void 0],x=y||n(),v=[p,x];return m?m(v):v})};a.useMemo(()=>{c()},[l]);const d=s.opGet(l)[1];return a.useInsertionEffect(()=>(c(([m,f])=>[m+1,f]),Tu.has(l)||(o==null||o(d),Tu.set(l,!0),Promise.resolve().then(()=>{Tu.delete(l)})),()=>{s.opUpdate(l,m=>{const[f=0,p]=m||[];return f-1===0?(r==null||r(p,!1),Tu.delete(l),null):[f-1,p]})}),[l]),d}const x_={},$_="css",ni=new Map;function S_(e){ni.set(e,(ni.get(e)||0)+1)}function C_(e,t){typeof document<"u"&&document.querySelectorAll(`style[${Kb}="${e}"]`).forEach(r=>{var o;r[qo]===t&&((o=r.parentNode)==null||o.removeChild(r))})}const w_=-1;function E_(e,t){ni.set(e,(ni.get(e)||0)-1);const n=new Set;ni.forEach((r,o)=>{r<=0&&n.add(o)}),ni.size-n.size>w_&&n.forEach(r=>{C_(r,t),ni.delete(r)})}const eP=(e,t,n,r)=>{let s={...n.getDerivativeToken(e),...t};return r&&(s=r(s)),s},I_="token";function P_(e,t,n){const{cache:{instanceId:r},container:o,hashPriority:s}=a.useContext(Wc),{salt:i="",override:l=x_,formatToken:c,getComputedToken:u,cssVar:d,nonce:m}=n,f=h_(()=>Object.assign({},...t),t),p=Wl(f),y=Wl(l),b=Wl(d);return qb(I_,[i,e.id,p,y,b],()=>{const v=u?u(f,l,e):eP(f,l,e,c),g={...v},h=`${i}_${d.prefix}`,$=Sc(h),C=`${$_}-${$}`;g._tokenKey=y_(g,h);const[N,S]=ZI(v,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve,hashPriority:s,hashCls:d.hashed?C:void 0});return N._hashId=$,S_(d.key),[N,C,g,S,d.key]},([,,,,v])=>{E_(v,r)},([,,,v,g])=>{if(!v)return;let h={mark:Jo,prepend:"queue",attachTo:o,priority:-999};h=Ub(h,m);const $=vi(v,Sc(`css-var-${g}`),h);$[qo]=r,$.setAttribute(Kb,g)})}var N_={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},an="-ms-",Kl="-moz-",Xt="-webkit-",tP="comm",Gb="rule",Xb="decl",R_="@import",T_="@namespace",nP="@keyframes",M_="@layer",O_=Math.abs,Ul=String.fromCharCode,Hh=Object.assign;function __(e,t){return On(e,0)^45?(((t<<2^On(e,0))<<2^On(e,1))<<2^On(e,2))<<2^On(e,3):0}function rP(e){return e.trim()}function Vo(e,t){return(e=t.exec(e))?e[0]:e}function zt(e,t,n){return e.replace(t,n)}function zp(e,t){return e.indexOf(t)}function On(e,t){return e.charCodeAt(t)|0}function Ii(e,t,n){return e.slice(t,n)}function ao(e){return e.length}function oP(e){return e.length}function Rl(e,t){return t.push(e),e}function z_(e,t){return e.map(t).join("")}function WS(e,t){return e.filter(function(n){return!Vo(n,t)})}var fm=1,Ha=1,sP=0,Jr=0,In=0,Za="";function mm(e,t,n,r,o,s,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:fm,column:Ha,length:i,return:"",siblings:l}}function ds(e,t){return Hh(mm("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ui(e){for(;e.root;)e=ds(e.root,{children:[e]});Rl(e,e.siblings)}function j_(){return In}function B_(){return In=Jr>0?On(Za,--Jr):0,Ha--,In===10&&(Ha=1,fm--),In}function mo(){return In=Jr<sP?On(Za,Jr++):0,Ha++,In===10&&(Ha=1,fm++),In}function ws(){return On(Za,Jr)}function hd(){return Jr}function pm(e,t){return Ii(Za,e,t)}function Cc(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 L_(e){return fm=Ha=1,sP=ao(Za=e),Jr=0,[]}function k_(e){return Za="",e}function jp(e){return rP(pm(Jr-1,Vh(e===91?e+2:e===40?e+1:e)))}function A_(e){for(;(In=ws())&&In<33;)mo();return Cc(e)>2||Cc(In)>3?"":" "}function D_(e,t){for(;--t&&mo()&&!(In<48||In>102||In>57&&In<65||In>70&&In<97););return pm(e,hd()+(t<6&&ws()==32&&mo()==32))}function Vh(e){for(;mo();)switch(In){case e:return Jr;case 34:case 39:e!==34&&e!==39&&Vh(In);break;case 40:e===41&&Vh(e);break;case 92:mo();break}return Jr}function F_(e,t){for(;mo()&&e+In!==57;)if(e+In===84&&ws()===47)break;return"/*"+pm(t,Jr-1)+"*"+Ul(e===47?e:mo())}function H_(e){for(;!Cc(ws());)mo();return pm(e,Jr)}function KS(e){return k_(yd("",null,null,null,[""],e=L_(e),0,[0],e))}function yd(e,t,n,r,o,s,i,l,c){for(var u=0,d=0,m=i,f=0,p=0,y=0,b=1,x=1,v=1,g=0,h=0,$="",C=o,N=s,S=r,E=$;x;)switch(y=h,h=mo()){case 40:y!=108&&On(E,m-1)==58?(g++,E+="("):E+=jp(h);break;case 41:g--,E+=")";break;case 34:case 39:case 91:E+=jp(h);break;case 9:case 10:case 13:case 32:if(g>0){E+=Ul(h);break}E+=A_(y);break;case 92:E+=D_(hd()-1,7);continue;case 47:switch(ws()){case 42:case 47:Rl(V_(F_(mo(),hd()),t,n,c),c),(Cc(y||1)==5||Cc(ws()||1)==5)&&ao(E)&&Ii(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*b:l[u++]=ao(E)*v;case 125*b:case 59:case 0:if(g>0&&h){E+=Ul(h);break}switch(h){case 0:case 125:x=0;case 59+d:v==-1&&(E=zt(E,/\f/g,"")),p>0&&(ao(E)-m||b===0)&&Rl(p>32?qS(E+";",r,n,m-1,c):qS(zt(E," ","")+";",r,n,m-2,c),c);break;case 59:E+=";";default:if(Rl(S=US(E,t,n,u,d,o,l,$,C=[],N=[],m,s),s),h===123)if(d===0)yd(E,t,S,S,C,s,m,l,N);else{switch(f){case 99:if(On(E,3)===110)break;case 108:if(On(E,2)===97)break;default:d=0;case 100:case 109:case 115:}d?yd(e,S,S,r&&Rl(US(e,S,S,0,0,o,l,$,o,C=[],m,N),N),o,N,m,l,r?C:N):yd(E,S,S,S,[""],N,0,l,N)}}u=d=p=0,b=v=1,$=E="",m=i;break;case 58:m=1+ao(E),p=y;default:if(b<1){if(h==123)--b;else if(h==125&&b++==0&&B_()==125)continue}switch(E+=Ul(h),h*b){case 38:v=d>0?1:(E+="\f",-1);break;case 44:if(g>0)break;l[u++]=(ao(E)-1)*v,v=1;break;case 64:ws()===45&&(E+=jp(mo())),f=ws(),d=m=ao($=E+=H_(hd())),h++;break;case 45:y===45&&ao(E)==2&&(b=0)}}return s}function US(e,t,n,r,o,s,i,l,c,u,d,m){for(var f=o-1,p=o===0?s:[""],y=oP(p),b=0,x=0,v=0;b<r;++b)for(var g=0,h=Ii(e,f+1,f=O_(x=i[b])),$=e;g<y;++g)($=rP(x>0?p[g]+" "+h:zt(h,/&\f/g,p[g])))&&(c[v++]=$);return mm(e,t,n,o===0?Gb:l,c,u,d,m)}function V_(e,t,n,r){return mm(e,t,n,tP,Ul(j_()),Ii(e,2,-2),0,r)}function qS(e,t,n,r,o){return mm(e,t,n,Xb,Ii(e,0,r),Ii(e,r+1,-1),r,o)}function iP(e,t,n){switch(__(e,t)){case 5103:return Xt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Xt+e+e;case 4855:return Xt+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Kl+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Xt+e+Kl+e+an+e+e;case 5936:switch(On(e,t+11)){case 114:return Xt+e+an+zt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xt+e+an+zt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xt+e+an+zt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Xt+e+an+e+e;case 6165:return Xt+e+an+"flex-"+e+e;case 5187:return Xt+e+zt(e,/(\w+).+(:[^]+)/,Xt+"box-$1$2"+an+"flex-$1$2")+e;case 5443:return Xt+e+an+"flex-item-"+zt(e,/flex-|-self/g,"")+(Vo(e,/flex-|baseline/)?"":an+"grid-row-"+zt(e,/flex-|-self/g,""))+e;case 4675:return Xt+e+an+"flex-line-pack"+zt(e,/align-content|flex-|-self/g,"")+e;case 5548:return Xt+e+an+zt(e,"shrink","negative")+e;case 5292:return Xt+e+an+zt(e,"basis","preferred-size")+e;case 6060:return Xt+"box-"+zt(e,"-grow","")+Xt+e+an+zt(e,"grow","positive")+e;case 4554:return Xt+zt(e,/([^-])(transform)/g,"$1"+Xt+"$2")+e;case 6187:return zt(zt(zt(e,/(zoom-|grab)/,Xt+"$1"),/(image-set)/,Xt+"$1"),e,"")+e;case 5495:case 3959:return zt(e,/(image-set\([^]*)/,Xt+"$1$`$1");case 4968:return zt(zt(e,/(.+:)(flex-)?(.*)/,Xt+"box-pack:$3"+an+"flex-pack:$3"),/space-between/,"justify")+Xt+e+e;case 4200:if(!Vo(e,/flex-|baseline/))return an+"grid-column-align"+Ii(e,t)+e;break;case 2592:case 3360:return an+zt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Vo(r.props,/grid-\w+-end/)})?~zp(e+(n=n[t].value),"span")?e:an+zt(e,"-start","")+e+an+"grid-row-span:"+(~zp(n,"span")?Vo(n,/\d+/):+Vo(n,/\d+/)-+Vo(e,/\d+/))+";":an+zt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Vo(r.props,/grid-\w+-start/)})?e:an+zt(zt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return zt(e,/(.+)-inline(.+)/,Xt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ao(e)-1-t>6)switch(On(e,t+1)){case 109:if(On(e,t+4)!==45)break;case 102:return zt(e,/(.+:)(.+)-([^]+)/,"$1"+Xt+"$2-$3$1"+Kl+(On(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zp(e,"stretch")?iP(zt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return zt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,i,l,c,u){return an+o+":"+s+u+(i?an+o+"-span:"+(l?c:+c-+s)+u:"")+e});case 4949:if(On(e,t+6)===121)return zt(e,":",":"+Xt)+e;break;case 6444:switch(On(e,On(e,14)===45?18:11)){case 120:return zt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Xt+(On(e,14)===45?"inline-":"")+"box$3$1"+Xt+"$2$3$1"+an+"$2box$3")+e;case 100:return zt(e,":",":"+an)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return zt(e,"scroll-","scroll-snap-")+e}return e}function wc(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function GS(e,t,n,r){switch(e.type){case M_:if(e.children.length)break;case R_:case T_:case Xb:return e.return=e.return||e.value;case tP:return"";case nP:return e.return=e.value+"{"+wc(e.children,r)+"}";case Gb:if(!ao(e.value=e.props.join(",")))return""}return ao(n=wc(e.children,r))?e.return=e.value+"{"+n+"}":""}function W_(e){var t=oP(e);return function(n,r,o,s){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,s)||"";return i}}function K_(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Xb:e.return=iP(e.value,e.length,n);return;case nP:return wc([ds(e,{value:zt(e.value,"@","@"+Xt)})],r);case Gb:if(e.length)return z_(n=e.props,function(o){switch(Vo(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ui(ds(e,{props:[zt(o,/:(read-\w+)/,":"+Kl+"$1")]})),Ui(ds(e,{props:[o]})),Hh(e,{props:WS(n,r)});break;case"::placeholder":Ui(ds(e,{props:[zt(o,/:(plac\w+)/,":"+Xt+"input-$1")]})),Ui(ds(e,{props:[zt(o,/:(plac\w+)/,":"+Kl+"$1")]})),Ui(ds(e,{props:[zt(o,/:(plac\w+)/,an+"input-$1")]})),Ui(ds(e,{props:[o]})),Hh(e,{props:WS(n,r)});break}return""})}}const XS="data-ant-cssinjs-cache-path",aP="_FILE_STYLE__";let bi,lP=!0;function U_(){var e;if(!bi&&(bi={},lr())){const t=document.createElement("div");t.className=XS,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(o=>{const[s,i]=o.split(":");bi[s]=i});const r=document.querySelector(`style[${XS}]`);r&&(lP=!1,(e=r.parentNode)==null||e.removeChild(r)),document.body.removeChild(t)}}function q_(e){return U_(),!!bi[e]}function G_(e){const t=bi[e];let n=null;if(t&&lr())if(lP)n=aP;else{const r=document.querySelector(`style[${Jo}="${bi[e]}"]`);r?n=r.innerHTML:delete bi[e]}return[n,t]}const X_="_skip_check_",cP="_multi_value_";function Bp(e,t){return(t?wc(KS(e),W_([K_,GS])):wc(KS(e),GS)).replace(/\{%%%\:[^;];}/g,";")}function Y_(e){return typeof e=="object"&&e&&(X_ in e||cP in e)}function YS(e,t,n="high"){if(!t)return e;const r=JI({hashCls:t,hashPriority:n});return e.split(",").map(s=>{var u;const i=s.trim().split(/\s+/);let l=i[0]||"";const c=((u=l.match(/^\w+/))==null?void 0:u[0])||"";return l=`${c}${r}${l.slice(c.length)}`,[l,...i.slice(1)].join(" ")}).join(",")}const Wh=(e,t={},{root:n,injectHash:r,parentSelectors:o}={root:!0,parentSelectors:[]})=>{const{hashId:s,layer:i,path:l,hashPriority:c,transformers:u=[],linters:d=[]}=t;let m="",f={};function p(x){const v=x.getName(s);if(!f[v]){const[g]=Wh(x.style,t,{root:!1,parentSelectors:o});f[v]=`@keyframes ${x.getName(s)}${g}`}}function y(x,v=[]){return x.forEach(g=>{Array.isArray(g)?y(g,v):g&&v.push(g)}),v}return y(Array.isArray(e)?e:[e]).forEach(x=>{const v=typeof x=="string"&&!n?{}:x;if(typeof v=="string")m+=`${v}
`;else if(v._keyframe)p(v);else{const g=u.reduce((h,$)=>{var C;return((C=$==null?void 0:$.visit)==null?void 0:C.call($,h))||h},v);Object.keys(g).forEach(h=>{const $=g[h];if(typeof $=="object"&&$&&(h!=="animationName"||!$._keyframe)&&!Y_($)){let C=!1,N=h.trim(),S=!1;(n||r)&&s?N.startsWith("@")?C=!0:N==="&"?N=YS("",s,c):N=YS(h,s,c):n&&!s&&(N==="&"||N==="")&&(N="",S=!0);const[E,w]=Wh($,t,{root:S,injectHash:C,parentSelectors:[...o,N]});f={...f,...w},m+=`${N}${E}`}else{let C=function(S,E){const w=S.replace(/[A-Z]/g,P=>`-${P.toLowerCase()}`);let R=E;!N_[S]&&typeof R=="number"&&R!==0&&(R=`${R}px`),S==="animationName"&&(E!=null&&E._keyframe)&&(p(E),R=E.getName(s)),m+=`${w}:${R};`};const N=($==null?void 0:$.value)??$;typeof $=="object"&&($!=null&&$[cP])&&Array.isArray(N)?N.forEach(S=>{C(h,S)}):v_(N)&&C(h,N)}})}}),n?i&&(m&&(m=`@layer ${i.name} {${m}}`),i.dependencies&&(f[`@layer ${i.name}`]=i.dependencies.map(x=>`@layer ${x}, ${i.name};`).join(`
`))):m=`{${m}}`,[m,f]};function uP(e,t){return Sc(`${e.join("%")}${t}`)}const Q_="style";function Kh(e,t){const{path:n,hashId:r,layer:o,nonce:s,clientOnly:i,order:l=0}=e,{mock:c,hashPriority:u,container:d,transformers:m,linters:f,cache:p,layer:y,autoPrefix:b}=a.useContext(Wc),x=[r||""];y&&x.push("layer"),x.push(...n);let v=Fh;qb(Q_,x,()=>{const g=x.join("|");if(q_(g)){const[E,w]=G_(g);if(E)return[E,w,{},i,l]}const h=t(),[$,C]=Wh(h,{hashId:r,hashPriority:u,layer:y?o:void 0,path:n.join("-"),transformers:m,linters:f}),N=Bp($,b||!1),S=uP(x,N);return[N,S,C,i,l]},(g,h)=>{const[,$]=g;h&&Fh&&xc($,{mark:Jo,attachTo:d})},g=>{const[h,$,C,,N]=g;if(v&&h!==aP){let S={mark:Jo,prepend:y?!1:"queue",attachTo:d,priority:N};S=Ub(S,s);const E=[],w=[];Object.keys(C).forEach(P=>{P.startsWith("@layer")?E.push(P):w.push(P)}),E.forEach(P=>{vi(Bp(C[P],b||!1),`_layer-${P}`,{...S,prepend:!0})});const R=vi(h,$,S);R[qo]=p.instanceId,w.forEach(P=>{vi(Bp(C[P],b||!1),`_effect-${P}`,S)})}})}const J_="cssVar",Z_=(e,t)=>{const{key:n,prefix:r,unitless:o,ignore:s,token:i,hashId:l,scope:c,nonce:u}=e,{cache:{instanceId:d},container:m,hashPriority:f}=a.useContext(Wc),{_tokenKey:p}=i,y=Array.isArray(c)?c.join("@@"):c,b=[...e.path,n,y,p];return qb(J_,b,()=>{const v=t(),[g,h]=ZI(v,n,{prefix:r,unitless:o,ignore:s,scope:c,hashPriority:f,hashCls:l}),$=uP(b,h);return[g,h,$,n]},([,,v])=>{Fh&&xc(v,{mark:Jo,attachTo:m})},([,v,g])=>{if(!v)return;let h={mark:Jo,prepend:"queue",attachTo:m,priority:-999};h=Ub(h,u);const $=vi(v,g,h);$[qo]=d,$.setAttribute(Kb,n)})};class Ht{constructor(t,n){fe(this,"name");fe(this,"style");fe(this,"_keyframe",!0);this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}}function qi(e){return e.notSplit=!0,e}qi(["borderTop","borderBottom"]),qi(["borderTop"]),qi(["borderBottom"]),qi(["borderLeft","borderRight"]),qi(["borderLeft"]),qi(["borderRight"]);function vo(e){"@babel/helpers - typeof";return vo=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},vo(e)}function ez(e){if(Array.isArray(e))return e}function tz(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,i,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=s.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}function nz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nf(e,t){return ez(e)||tz(e,t)||YI(e,t)||nz()}function rz(e,t){if(vo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dP(e){var t=rz(e,"string");return vo(t)=="symbol"?t:t+""}function En(e,t,n){return(t=dP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QS(Object(n),!0).forEach(function(r){En(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oz(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,dP(r.key),r)}}function ji(e,t,n){return t&&oz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uh(e,t){return Uh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Uh(e,t)}function fP(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&&Uh(e,t)}function Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Va(e)}function Yb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yb=function(){return!!e})()}function mP(e,t){if(t&&(vo(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vd(e)}function sz(e){var t=Yb();return function(){var n,r=Va(e);if(t){var o=Va(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mP(this,n)}}var iz=ji(function e(){zi(this,e)}),pP="CALC_UNIT",az=new RegExp(pP,"g");function Lp(e){return typeof e=="number"?"".concat(e).concat(pP):e}var lz=function(e){fP(n,e);var t=sz(n);function n(r,o){var s;zi(this,n),s=t.call(this),En(vd(s),"result",""),En(vd(s),"unitlessCssVar",void 0),En(vd(s),"lowPriority",void 0);var i=vo(r);return s.unitlessCssVar=o,r instanceof n?s.result="(".concat(r.result,")"):i==="number"?s.result=Lp(r):i==="string"&&(s.result=r),s}return ji(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(Lp(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(Lp(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var s=this,i=o||{},l=i.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(u){return s.result.includes(u)})&&(c=!1),this.result=this.result.replace(az,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(iz),cz=function(t,n){var r=lz;return function(o){return new r(o,n)}},JS=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 ZS(e,t,n,r){var o=yr({},t[e]);if(r!=null&&r.deprecatedTokens){var s=r.deprecatedTokens;s.forEach(function(l){var c=nf(l,2),u=c[0],d=c[1];if(o!=null&&o[u]||o!=null&&o[d]){var m;(m=o[d])!==null&&m!==void 0||(o[d]=o==null?void 0:o[u])}})}var i=yr(yr({},n),o);return Object.keys(i).forEach(function(l){i[l]===t[l]&&delete i[l]}),i}var gP=typeof CSSINJS_STATISTIC<"u",qh=!0;function Rt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!gP)return Object.assign.apply(Object,[{}].concat(t));qh=!1;var r={};return t.forEach(function(o){if(vo(o)==="object"){var s=Object.keys(o);s.forEach(function(i){Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),qh=!0,r}var e1={};function uz(){}var dz=function(t){var n,r=t,o=uz;return gP&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(i,l){if(qh){var c;(c=n)===null||c===void 0||c.add(l)}return i[l]}}),o=function(i,l){var c;e1[i]={global:Array.from(n),component:yr(yr({},(c=e1[i])===null||c===void 0?void 0:c.component),l)}}),{token:r,keys:n,flush:o}};function t1(e,t,n){if(typeof n=="function"){var r;return n(Rt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function fz(e){return{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(s){return G(s)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(s){return G(s)}).join(","),")")}}}var mz=1e3*60*10,pz=function(){function e(){zi(this,e),En(this,"map",new Map),En(this,"objectIDMap",new WeakMap),En(this,"nextID",0),En(this,"lastAccessBeat",new Map),En(this,"accessBeat",0)}return ji(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(s){return s&&vo(s)==="object"?"obj_".concat(r.getObjectID(s)):"".concat(vo(s),"_").concat(s)});return o.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(o,s){r-o>mz&&(n.map.delete(s),n.lastAccessBeat.delete(s))}),this.accessBeat=0}}}]),e}(),n1=new pz;function gz(e,t){return J.useMemo(function(){var n=n1.get(t);if(n)return n;var r=e();return n1.set(t,r),r},t)}var hz=function(){return{}};function yz(e){var t=e.useCSP,n=t===void 0?hz:t,r=e.useToken,o=e.usePrefix,s=e.getResetStyles,i=e.getCommonStyle,l=e.getCompUnitless;function c(f,p,y,b){var x=Array.isArray(f)?f[0]:f;function v(E){return"".concat(String(x)).concat(E.slice(0,1).toUpperCase()).concat(E.slice(1))}var g=(b==null?void 0:b.unitless)||{},h=typeof l=="function"?l(f):{},$=yr(yr({},h),{},En({},v("zIndexPopup"),!0));Object.keys(g).forEach(function(E){$[v(E)]=g[E]});var C=yr(yr({},b),{},{unitless:$,prefixToken:v}),N=d(f,p,y,C),S=u(x,y,C);return function(E){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,R=N(E,w),P=b==null?void 0:b.extraCssVarPrefixCls,T=typeof P=="function"?P({prefixCls:E,rootCls:w}):P,M=S(T!=null&&T.length?[w].concat($t(T)):w);return[R,M]}}function u(f,p,y){var b=y.unitless,x=y.prefixToken,v=y.ignore;return function(g){var h=r(),$=h.cssVar,C=h.realToken,N=n();return Z_({path:[f],prefix:$.prefix,key:$.key,unitless:b,ignore:v,token:C,scope:g,nonce:function(){return N.nonce}},function(){var S=t1(f,C,p),E=ZS(f,C,S,{deprecatedTokens:y==null?void 0:y.deprecatedTokens});return S&&Object.keys(S).forEach(function(w){E[x(w)]=E[w],delete E[w]}),E}),$==null?void 0:$.key}}function d(f,p,y){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=Array.isArray(f)?f:[f,f],v=nf(x,1),g=v[0],h=x.join("-"),$=e.layer||{name:"antd"};return function(C){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,S=r(),E=S.theme,w=S.realToken,R=S.hashId,P=S.token,T=S.cssVar,M=S.zeroRuntime,z=a.useMemo(function(){return M},[]);if(z)return R;var B=o(),F=B.rootPrefixCls,L=B.iconPrefixCls,j=n(),O="css",A=gz(function(){var W=new Set;return Object.keys(b.unitless||{}).forEach(function(K){W.add(gd(K,T.prefix)),W.add(gd(K,JS(g,T.prefix)))}),cz(O,W)},[O,g,T==null?void 0:T.prefix]),k=fz(),_=k.max,D=k.min,V={theme:E,token:P,hashId:R,nonce:function(){return j.nonce},clientOnly:b.clientOnly,layer:$,order:b.order||-999};return typeof s=="function"&&Kh(yr(yr({},V),{},{clientOnly:!1,path:["Shared",F]}),function(){return s(P,{prefix:{rootPrefixCls:F,iconPrefixCls:L},csp:j})}),Kh(yr(yr({},V),{},{path:[h,C,L]}),function(){if(b.injectStyle===!1)return[];var W=dz(P),K=W.token,q=W.flush,Y=t1(g,w,y),ee=".".concat(C),ie=ZS(g,w,Y,{deprecatedTokens:b.deprecatedTokens});Y&&vo(Y)==="object"&&Object.keys(Y).forEach(function(Z){Y[Z]="var(".concat(gd(Z,JS(g,T.prefix)),")")});var ae=Rt(K,{componentCls:ee,prefixCls:C,iconCls:".".concat(L),antCls:".".concat(F),calc:A,max:_,min:D},Y),U=p(ae,{hashId:R,prefixCls:C,rootPrefixCls:F,iconPrefixCls:L});q(g,ie);var Q=typeof i=="function"?i(ae,C,N,b.resetFont):null;return[b.resetStyle===!1?null:Q,U]}),R}}function m(f,p,y){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=d(f,p,y,yr({resetStyle:!1,order:-998},b)),v=function(h){var $=h.prefixCls,C=h.rootCls,N=C===void 0?$:C;return x($,N),null};return v}return{genStyleHooks:c,genSubStyleComponent:m,genComponentStyleHook:d}}const Oo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function bd(e){return(e+8)/e}function vz(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,s=e*Math.E**(o/5),i=r>1?Math.floor(s):Math.ceil(s);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:bd(n)}))}const bz="6.5.1",Qb={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"},Wa={...Qb,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},xz={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},kn=Math.round;function kp(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const r1=(e,t,n)=>n===0?e:e/100;function yl(e,t){const n=t||255;return e>n?n:e<0?0:e}class Gt{constructor(t){fe(this,"isValid",!0);fe(this,"r",0);fe(this,"g",0);fe(this,"b",0);fe(this,"a",1);fe(this,"_h");fe(this,"_hsl_s");fe(this,"_hsv_s");fe(this,"_l");fe(this,"_v");fe(this,"_max");fe(this,"_min");fe(this,"_brightness");function n(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let s=function(i){return o.startsWith(i)};var r=s;const o=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(o))this.fromHexString(o);else if(s("rgb"))this.fromRgbString(o);else if(s("hsl"))this.fromHslString(o);else if(s("hsv")||s("hsb"))this.fromHsvString(o);else{const i=xz[o.toLowerCase()];i&&this.fromHexString(parseInt(i,36).toString(16).padStart(6,"0"))}}else if(t instanceof Gt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=yl(t.r),this.g=yl(t.g),this.b=yl(t.b),this.a=typeof t.a=="number"?yl(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(s){const i=s/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=kn(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(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{const n=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*n-1))}}return this._hsl_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 o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,s=l=>(r[l]-this[l])*o+this[l],i={r:kn(s("r")),g:kn(s("g")),b:kn(s("b")),a:kn(s("a")*100)/100};return this._c(i)}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),o=s=>kn((this[s]*this.a+n[s]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("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 o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const s=kn(this.a*255).toString(16);t+=s.length===2?s:"0"+s}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=kn(this.getHSLSaturation()*100),r=kn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),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 o=this.clone();return o[t]=yl(n,r),o}_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(o,s){return parseInt(n[o]+n[s||o],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:o}){const s=(t%360+360)%360;if(this._h=s,this._hsl_s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const p=kn(r*255);this.r=p,this.g=p,this.b=p;return}let i=0,l=0,c=0;const u=s/60,d=(1-Math.abs(2*r-1))*n,m=d*(1-Math.abs(u%2-1));u>=0&&u<1?(i=d,l=m):u>=1&&u<2?(i=m,l=d):u>=2&&u<3?(l=d,c=m):u>=3&&u<4?(l=m,c=d):u>=4&&u<5?(i=m,c=d):u>=5&&u<6&&(i=d,c=m);const f=r-d/2;this.r=kn((i+f)*255),this.g=kn((l+f)*255),this.b=kn((c+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){const s=(t%360+360)%360;this._h=s,this._hsv_s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=kn(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const l=s/60,c=Math.floor(l),u=l-c,d=kn(r*(1-n)*255),m=kn(r*(1-n*u)*255),f=kn(r*(1-n*(1-u))*255);switch(c){case 0:this.g=f,this.b=d;break;case 1:this.r=m,this.b=d;break;case 2:this.r=d,this.b=f;break;case 3:this.r=d,this.g=m;break;case 4:this.r=f,this.g=d;break;case 5:default:this.g=d,this.b=m;break}}fromHsvString(t){const n=kp(t,r1);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=kp(t,r1);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=kp(t,(r,o)=>o.includes("%")?kn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const Mu=2,o1=.16,$z=.05,Sz=.05,Cz=.15,hP=5,yP=4,wz=[{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 s1(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Mu*t:Math.round(e.h)+Mu*t:r=n?Math.round(e.h)+Mu*t:Math.round(e.h)-Mu*t,r<0?r+=360:r>=360&&(r-=360),r}function i1(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-o1*t:t===yP?r=e.s+o1:r=e.s+$z*t,r>1&&(r=1),n&&t===hP&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function a1(e,t,n){let r;return n?r=e.v+Sz*t:r=e.v-Cz*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function gm(e,t={}){const n=[],r=new Gt(e),o=r.toHsv();for(let s=hP;s>0;s-=1){const i=new Gt({h:s1(o,s,!0),s:i1(o,s,!0),v:a1(o,s,!0)});n.push(i)}n.push(r);for(let s=1;s<=yP;s+=1){const i=new Gt({h:s1(o,s),s:i1(o,s),v:a1(o,s)});n.push(i)}return t.theme==="dark"?wz.map(({index:s,amount:i})=>new Gt(t.backgroundColor||"#141414").mix(n[s],i).toHexString()):n.map(s=>s.toHexString())}const Ap={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"},Gh=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Gh.primary=Gh[5];const Xh=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Xh.primary=Xh[5];const Yh=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Yh.primary=Yh[5];const rf=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];rf.primary=rf[5];const Qh=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Qh.primary=Qh[5];const Jh=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Jh.primary=Jh[5];const Zh=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Zh.primary=Zh[5];const ey=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];ey.primary=ey[5];const ty=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ty.primary=ty[5];const ny=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ny.primary=ny[5];const ry=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ry.primary=ry[5];const oy=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];oy.primary=oy[5];const sy=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];sy.primary=sy[5];const Dp={red:Gh,volcano:Xh,orange:Yh,gold:rf,yellow:Qh,lime:Jh,green:Zh,cyan:ey,blue:ty,geekblue:ny,purple:ry,magenta:oy,grey:sy};function vP(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:s,colorInfo:i,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=t(l),m=t(r),f=t(o),p=t(s),y=t(i),b=n(c,u),x=e.colorLink||e.colorInfo,v=t(x),g=new Gt(p[1]).mix(new Gt(p[3]),50).toHexString(),h={};return Oo.forEach($=>{const C=e[$];if(C){const N=t(C);h[`${$}Hover`]=N[5],h[`${$}Active`]=N[7]}}),{...b,colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:g,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],...h,colorBgMask:new Gt("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const Ez=e=>{let t=e,n=e,r=e,o=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?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function Iz(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1,...Ez(r)}}const bP=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},xP=e=>{const t=vz(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],s=n[0],i=n[2],l=r[1],c=r[0],u=r[2];return{fontSizeSM:s,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(c*s),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 Fr=(e,t)=>new Gt(e).setA(t).toRgbString(),Gi=(e,t)=>new Gt(e).darken(t).toHexString(),Nz=e=>{const t=gm(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]}},Rz=(e,t,n)=>{const r=e||"#fff",o=t||"#000";return{colorBgBase:r,colorTextBase:o,colorShadow:n||"#000",colorText:Fr(o,.88),colorTextSecondary:Fr(o,.65),colorTextTertiary:Fr(o,.45),colorTextQuaternary:Fr(o,.25),colorFill:Fr(o,.15),colorFillSecondary:Fr(o,.06),colorFillTertiary:Fr(o,.04),colorFillQuaternary:Fr(o,.02),colorBgSolid:Fr(o,1),colorBgSolidHover:Fr(o,.75),colorBgSolidActive:Fr(o,.95),colorBgLayout:Gi(r,4),colorBgContainer:Gi(r,0),colorBgElevated:Gi(r,0),colorBgSpotlight:Fr(o,.85),colorBgBlur:"transparent",colorBorder:Gi(r,15),colorBorderDisabled:Gi(r,15),colorBorderSecondary:Gi(r,6)}};function hm(e){Ap.pink=Ap.magenta,Dp.pink=Dp.magenta;const t=Object.keys(Qb).map(n=>{const r=e[n]===Ap[n]?Dp[n]:gm(e[n]);return Array.from({length:10},()=>1).reduce((o,s,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n={...n,...r},n),{});return{...e,...t,...vP(e,{generateColorPalettes:Nz,generateNeutralColorPalettes:Rz}),...xP(e.fontSize),...Pz(e),...bP(e),...Iz(e)}}const Jb=tf(hm),Ec={token:Wa,override:{override:Wa},hashed:!0},Zb=J.createContext(Ec);function Fp(e){return e>=0&&e<=255}function Tl(e,t){const{r:n,g:r,b:o,a:s}=new Gt(e).toRgb();if(s<1)return e;const{r:i,g:l,b:c}=new Gt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),m=Math.round((r-l*(1-u))/u),f=Math.round((o-c*(1-u))/u);if(Fp(d)&&Fp(m)&&Fp(f))return new Gt({r:d,g:m,b:f,a:Math.round(u*100)/100}).toRgbString()}return new Gt({r:n,g:r,b:o,a:1}).toRgbString()}function $P(e){const{override:t,...n}=e,r={...t};Object.keys(Wa).forEach(x=>{delete r[x]});const o={...n,...r},s=new Gt(o.colorShadow),i=s.a,l=x=>s.clone().setA(i*x).toRgbString(),c=480,u=576,d=768,m=992,f=1200,p=1600,y=1920;if(o.motion===!1){const x="0s";o.motionDurationFast=x,o.motionDurationMid=x,o.motionDurationSlow=x}return{...o,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Tl(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Tl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Tl(o.colorWarningBg,o.colorBgContainer),colorErrorAffix:o.colorError,colorWarningAffix:o.colorWarning,fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Tl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
0 6px 16px 0 ${l(.08)},
0 3px 6px -4px ${l(.12)},
0 9px 28px 8px ${l(.05)}
`,boxShadowSecondary:`
0 6px 16px 0 ${l(.08)},
0 3px 6px -4px ${l(.12)},
0 9px 28px 8px ${l(.05)}
`,boxShadowTertiary:`
0 1px 2px 0 ${l(.05)},
0 1px 6px -1px ${l(.03)},
0 2px 4px 0 ${l(.03)}
`,screenXS:c,screenXSMin:c,screenXSMax:u-1,screenSM:u,screenSMMin:u,screenSMMax:d-1,screenMD:d,screenMDMin:d,screenMDMax:m-1,screenLG:m,screenLGMin:m,screenLGMax:f-1,screenXL:f,screenXLMin:f,screenXLMax:p-1,screenXXL:p,screenXXLMin:p,screenXXLMax:y-1,screenXXXL:y,screenXXXLMin:y,boxShadowPopoverArrow:`2px 2px 5px ${l(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${l(.08)}) drop-shadow(0 3px 6px ${l(.12)}) drop-shadow(0 9px 28px ${l(.05)})`,boxShadowCard:`
0 1px 2px -2px ${l(.16)},
0 3px 6px 0 ${l(.12)},
0 5px 12px 4px ${l(.09)}
`,boxShadowDrawerRight:`
-6px 0 16px 0 ${l(.08)},
-3px 0 6px -4px ${l(.12)},
-9px 0 28px 8px ${l(.05)}
`,boxShadowDrawerLeft:`
6px 0 16px 0 ${l(.08)},
3px 0 6px -4px ${l(.12)},
9px 0 28px 8px ${l(.05)}
`,boxShadowDrawerUp:`
0 6px 16px 0 ${l(.08)},
0 3px 6px -4px ${l(.12)},
0 9px 28px 8px ${l(.05)}
`,boxShadowDrawerDown:`
0 -6px 16px 0 ${l(.08)},
0 -3px 6px -4px ${l(.12)},
0 -9px 28px 8px ${l(.05)}
`,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${l(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${l(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${l(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${l(.08)}`,...r}}const SP={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},Tz={motionBase:!0,motionUnit:!0},Mz={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,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},CP=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o,...s}=t;let i={...r,override:o};return i=$P(i),s&&Object.entries(s).forEach(([l,c])=>{const{theme:u,...d}=c;let m=d;u&&(m=CP({...i,...d},{override:d},u)),i[l]=m}),i};function Yn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o,zeroRuntime:s}=J.useContext(Zb),{csp:i,getPrefixCls:l}=J.useContext(ct),c={prefix:(o==null?void 0:o.prefix)??l(),key:(o==null?void 0:o.key)??"css-var-root"},u=`${bz}-${t||""}`,d=n||Jb,[m,f,p]=P_(d,[Wa,e],{salt:u,override:r,getComputedToken:CP,cssVar:{...c,unitless:SP,ignore:Tz,preserve:Mz},nonce:i==null?void 0:i.nonce});return[d,p,t?f:"",m,c,!!s]}const ar={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ft=(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}),Kc=()=>({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"}}),Oz=new Ht("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),Ls=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),jr=(e,t)=>({outline:`${G(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),Br=(e,t)=>({"&:focus-visible":jr(e,t)}),_z=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},...Br(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),zz=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,s=n?`.${n}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:{...l,...i,[o]:i}}},wP=e=>({[`.${e}`]:{...Kc(),[`.${e} .${e}-icon`]:{display:"block"}},[`.${e}-spin`]:{animationName:Oz,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),ex=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...Br(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Tt,genComponentStyleHook:jz,genSubStyleComponent:Ks}=yz({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=a.useContext(ct);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o,s]=Yn();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o,zeroRuntime:s}},useCSP:()=>{const{csp:e}=a.useContext(ct);return e??{}},getResetStyles:(e,t)=>{const n=_z(e);return[n,{"&":n},wP((t==null?void 0:t.prefix.iconPrefixCls)??dm)]},getCommonStyle:zz,getCompUnitless:()=>SP}),rn=(e,t)=>{const n=`--${e.replace(/\./g,"")}-${t}-`;return[s=>`${n}${s}`,(s,i)=>i?`var(${n}${s}, ${i})`:`var(${n}${s})`]};function EP(e,t){return Oo.reduce((n,r)=>{const o=e[`${r}1`],s=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return{...n,...t(r,{lightColor:o,lightBorderColor:s,darkColor:i,textColor:l})}},{})}const Bz=(e,t)=>(Yn(),Kh({hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>wP(e)));var IP={};Object.defineProperty(IP,"__esModule",{value:!0});var Lz={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"},kz=IP.default=Lz;const tx=a.createContext({}),l1="data-rc-order",c1="data-rc-priority",Az="rc-util-key",iy=new Map;function PP(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Dz(e,t){if(!e||!t)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}function NP({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:Az}function nx(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Fz(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function rx(e){return Array.from((iy.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function RP(e,t={}){if(!PP())return null;const{csp:n,prepend:r,priority:o=0}=t,s=Fz(r),i=s==="prependQueue",l=document.createElement("style");l.setAttribute(l1,s),i&&o&&l.setAttribute(c1,`${o}`),n!=null&&n.nonce&&(l.nonce=n.nonce),l.innerHTML=e;const c=nx(t),{firstChild:u}=c;if(r){if(i){const d=(t.styles||rx(c)).filter(m=>{if(!["prepend","prependQueue"].includes(m.getAttribute(l1)))return!1;const f=Number(m.getAttribute(c1)||0);return o>=f});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Hz(e,t={}){let{styles:n}=t;return n||(n=rx(nx(t))),n.find(r=>r.getAttribute(NP(t))===e)}function Vz(e,t){const n=iy.get(e);if(!n||!Dz(document,n)){const r=RP("",t);if(!r)return;const{parentNode:o}=r;iy.set(e,o),e.removeChild(r)}}function Wz(e,t,n={}){var c;if(!PP())return null;const r=nx(n),o=rx(r),s={...n,styles:o};Vz(r,s);const i=Hz(t,s);if(i)return(c=s.csp)!=null&&c.nonce&&i.nonce!==s.csp.nonce&&(i.nonce=s.csp.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const l=RP(e,s);return l==null||l.setAttribute(NP(s),t),l}function Kz(e){var t;return(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e)}function Uz(e){const t=Kz(e);return typeof ShadowRoot<"u"&&t instanceof ShadowRoot?t:null}const u1={};function qz(e,t){e||u1[t]||(u1[t]=!0)}function Gz(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function Xz(e,t){qz(e,`[@ant-design/icons] ${t}`)}function d1(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function f1(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[Gz(n)]=r}return t},{})}function ay(e,t,n){return n?J.createElement(e.tag,{key:t,...f1(e.attrs),...n},(e.children||[]).map((r,o)=>ay(r,`${t}-${e.tag}-${o}`))):J.createElement(e.tag,{key:t,...f1(e.attrs)},(e.children||[]).map((r,o)=>ay(r,`${t}-${e.tag}-${o}`)))}const Yz=`
.anticon {
display: inline-flex;
align-items: center;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
vertical-align: inherit;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin {
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`,Qz=e=>{const{csp:t,prefixCls:n,layer:r,zeroRuntime:o}=a.useContext(tx);let s=Yz;n&&(s=s.replace(/anticon/g,n)),r&&(s=`@layer ${r} {
${s}
}`),a.useEffect(()=>{if(o)return;const i=e.current,l=Uz(i);Wz(s,"@ant-design-icons",{prepend:!r,csp:t,attachTo:l})},[])},TP=e=>{const{icon:t,className:n,onClick:r,style:o,primaryColor:s,secondaryColor:i,...l}=e,c=a.useRef(null);if(Qz(c),Xz(d1(t),`icon should be icon definiton, but got ${t}`),!d1(t))return null;const u=t;return ay(u.icon,`svg-${u.name}`,{className:n,onClick:r,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...l,ref:c})};TP.displayName="IconReact";function ly(){return ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ly.apply(this,arguments)}const gt=a.forwardRef((e,t)=>{const{className:n,icon:r,spin:o,rotate:s,tabIndex:i,onClick:l,twoToneColor:c,...u}=e,{prefixCls:d="anticon",rootClassName:m}=a.useContext(tx),f=H(m,d,{[`${d}-${r.name}`]:!!r.name,[`${d}-spin`]:!!o||r.name==="loading"},n);let p=i;p===void 0&&l&&(p=-1);const y=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0;return a.createElement("span",ly({role:"img","aria-label":r.name},u,{ref:t,tabIndex:p,onClick:l,className:f}),a.createElement(TP,{icon:r,style:y}))});function cy(){return cy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cy.apply(this,arguments)}const Jz=(e,t)=>a.createElement(gt,cy({},e,{ref:t,icon:kz})),Uc=a.forwardRef(Jz);var MP={};Object.defineProperty(MP,"__esModule",{value:!0});var Zz={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"},e5=MP.default=Zz;function uy(){return uy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uy.apply(this,arguments)}const t5=(e,t)=>a.createElement(gt,uy({},e,{ref:t,icon:e5})),Bi=a.forwardRef(t5);var OP={};Object.defineProperty(OP,"__esModule",{value:!0});var n5={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"},r5=OP.default=n5;function dy(){return dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dy.apply(this,arguments)}const o5=(e,t)=>a.createElement(gt,dy({},e,{ref:t,icon:r5})),Us=a.forwardRef(o5);var _P={};Object.defineProperty(_P,"__esModule",{value:!0});var s5={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"},i5=_P.default=s5;function fy(){return fy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fy.apply(this,arguments)}const a5=(e,t)=>a.createElement(gt,fy({},e,{ref:t,icon:i5})),Li=a.forwardRef(a5);var zP={};Object.defineProperty(zP,"__esModule",{value:!0});var l5={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"},c5=zP.default=l5;function my(){return my=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},my.apply(this,arguments)}const u5=(e,t)=>a.createElement(gt,my({},e,{ref:t,icon:c5})),ym=a.forwardRef(u5),jP=a.createContext({}),d5=e=>{const{children:t,...n}=e,r=a.useMemo(()=>({motion:n.motion}),[n.motion]);return a.createElement(jP.Provider,{value:r},t)},Io="none",Ou="appear",_u="enter",zu="leave",m1="none",lo="prepare",ri="start",oi="active",ox="end",BP="prepared";function p1(e,t){const n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function f5(e,t){const n={animationend:p1("Animation","AnimationEnd"),transitionend:p1("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const m5=f5(lr(),typeof window<"u"?window:{});let LP={};lr()&&({style:LP}=document.createElement("div"));const ju={};function kP(e){if(ju[e])return ju[e];const t=m5[e];if(t){const n=Object.keys(t),r=n.length;for(let o=0;o<r;o+=1){const s=n[o];if(Object.prototype.hasOwnProperty.call(t,s)&&s in LP)return ju[e]=t[s],ju[e]}}return""}const AP=kP("animationend"),DP=kP("transitionend"),p5=!!(AP&&DP),g1=AP||"animationend",h1=DP||"transitionend";function y1(e,t){if(!e)return null;if(typeof e=="object"){const n=t.replace(/-\w/g,r=>r[1].toUpperCase());return e[n]}return`${e}-${t}`}const g5=e=>{const t=a.useRef();function n(o){o&&(o.removeEventListener(h1,e),o.removeEventListener(g1,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(h1,e),o.addEventListener(g1,e),t.current=o)}return a.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]},FP=lr()?a.useLayoutEffect:a.useEffect,h5=()=>{const e=a.useRef(null);function t(){Ct.cancel(e.current)}function n(r,o=2){t();const s=Ct(()=>{o<=1?r({isCanceled:()=>s!==e.current}):n(r,o-1)});e.current=s}return a.useEffect(()=>()=>{t()},[]),[n,t]},y5=[lo,ri,oi,ox],v5=[lo,BP],HP=!1,b5=!0;function VP(e){return e===oi||e===ox}const x5=(e,t,n)=>{const[r,o]=_b(m1),[s,i]=h5();function l(){o(lo,!0)}const c=t?v5:y5;return FP(()=>{if(r!==m1&&r!==ox){const u=c.indexOf(r),d=c[u+1],m=n(r);m===HP?o(d,!0):d&&s(f=>{function p(){f.isCanceled()||o(d,!0)}m===!0?p():Promise.resolve(m).then(p)})}},[e,r]),a.useEffect(()=>()=>{i()},[]),[l,r]};function $5(e,t,n,{motionEnter:r=!0,motionAppear:o=!0,motionLeave:s=!0,motionDeadline:i,motionLeaveImmediately:l,onAppearPrepare:c,onEnterPrepare:u,onLeavePrepare:d,onAppearStart:m,onEnterStart:f,onLeaveStart:p,onAppearActive:y,onEnterActive:b,onLeaveActive:x,onAppearEnd:v,onEnterEnd:g,onLeaveEnd:h,onVisibleChanged:$}){const[C,N]=a.useState(),[S,E]=mO(Io),[w,R]=a.useState([null,null]),P=S(),T=a.useRef(!1),M=a.useRef(null);function z(){return n()}const B=a.useRef(!1);function F(){E(Io),R([null,null])}const L=vt(Y=>{const ee=S();if(ee===Io)return;const ie=z();if(Y&&!Y.deadline&&Y.target!==ie)return;const ae=B.current;let U;ee===Ou&&ae?U=v==null?void 0:v(ie,Y):ee===_u&&ae?U=g==null?void 0:g(ie,Y):ee===zu&&ae&&(U=h==null?void 0:h(ie,Y)),ae&&U!==!1&&F()}),[j]=g5(L),O=Y=>{switch(Y){case Ou:return{[lo]:c,[ri]:m,[oi]:y};case _u:return{[lo]:u,[ri]:f,[oi]:b};case zu:return{[lo]:d,[ri]:p,[oi]:x};default:return{}}},A=a.useMemo(()=>O(P),[P]),[k,_]=x5(P,!e,Y=>{var ee;if(Y===lo){const ie=A[lo];return ie?ie(z()):HP}return Y in A&&R([((ee=A[Y])==null?void 0:ee.call(A,z(),null))||null,Y]),Y===oi&&P!==Io&&(j(z()),i>0&&(clearTimeout(M.current),M.current=setTimeout(()=>{L({deadline:!0})},i))),Y===BP&&F(),b5}),D=VP(_);B.current=D;const V=a.useRef(null);FP(()=>{if(T.current&&V.current===t)return;N(t);const Y=T.current;T.current=!0;let ee;!Y&&t&&o&&(ee=Ou),Y&&t&&r&&(ee=_u),(Y&&!t&&s||!Y&&l&&!t&&s)&&(ee=zu);const ie=O(ee);ee&&(e||ie[lo])?(E(ee),k()):E(Io),V.current=t},[t]),a.useEffect(()=>{(P===Ou&&!o||P===_u&&!r||P===zu&&!s)&&E(Io)},[o,r,s]),a.useEffect(()=>()=>{T.current=!1,clearTimeout(M.current)},[]);const W=a.useRef(!1);a.useEffect(()=>{C&&(W.current=!0),C!==void 0&&P===Io&&((W.current||C)&&($==null||$(C)),W.current=!0)},[C,P]);let K=w[0];A[lo]&&_===ri&&(K={transition:"none",...K});const q=w[1];return[S,_,K,C??t,!T.current&&P===Io&&e&&o?"NONE":_===ri||_===oi?q===_:!0]}function WP(e){return(e==null?void 0:e.length)<2}function S5(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function n(o,s){return!!(o.motionName&&t&&s!==!1)}const r=a.forwardRef((o,s)=>{const{visible:i=!0,removeOnLeave:l=!0,forceRender:c,children:u,motionName:d,leavedClassName:m,eventProps:f}=o,{motion:p}=a.useContext(jP),y=n(o,p),b=a.useRef();function x(){return go(b.current)}const[v,g,h,$,C]=$5(y,i,x,o),N=v(),S=a.useRef($);$&&(S.current=!0);const E=a.useMemo(()=>{const P={};return Object.defineProperties(P,{nativeElement:{enumerable:!0,get:x},inMotion:{enumerable:!0,get:()=>()=>v()!==Io},enableMotion:{enumerable:!0,get:()=>()=>y}}),P},[]);a.useImperativeHandle(s,()=>E,[]);const w=a.useRef(0);C&&(w.current+=1);const R=a.useMemo(()=>{if(C==="NONE")return null;let P;const T={...f,visible:i};if(!u)P=null;else if(N===Io)$?P=u({...T},b):!l&&S.current&&m?P=u({...T,className:m},b):c||!l&&!m?P=u({...T,style:{display:"none"}},b):P=null;else{let M;g===lo?M="prepare":VP(g)?M="active":g===ri&&(M="start");const z=y1(d,`${N}-${M}`);P=u({...T,className:H(y1(d,N),{[z]:z&&M,[d]:typeof d=="string"}),style:h},b)}return P},[w.current]);if(WP(u)&&kI(R)){const P=Bo(R);if(P!==b)return a.cloneElement(R,{ref:Tn(P,b)})}return R});return r.displayName="CSSMotion",r}const fr=S5(p5),py="add",gy="keep",hy="remove",Hp="removed";function C5(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function yy(e=[]){return e.map(C5)}function w5(e=[],t=[]){let n=[],r=0;const o=t.length,s=yy(e),i=yy(t);s.forEach(u=>{let d=!1;for(let m=r;m<o;m+=1){const f=i[m];if(f.key===u.key){r<m&&(n=n.concat(i.slice(r,m).map(p=>({...p,status:py}))),r=m),n.push({...f,status:gy}),r+=1,d=!0;break}}d||n.push({...u,status:hy})}),r<o&&(n=n.concat(i.slice(r).map(u=>({...u,status:py}))));const l={};return n.forEach(({key:u})=>{l[u]=(l[u]||0)+1}),Object.keys(l).filter(u=>l[u]>1).forEach(u=>{n=n.filter(({key:d,status:m})=>d!==u||m!==hy),n.forEach(d=>{d.key===u&&(d.status=gy)})}),n}function vy(){return vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vy.apply(this,arguments)}const E5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function I5(e,t=fr){class n extends a.Component{constructor(){super(...arguments);fe(this,"state",{keyEntities:[]});fe(this,"removeKey",s=>{this.setState(i=>({keyEntities:i.keyEntities.map(c=>c.key!==s?c:{...c,status:Hp})}),()=>{const{keyEntities:i}=this.state;i.filter(({status:c})=>c!==Hp).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})})}static getDerivedStateFromProps({keys:s},{keyEntities:i}){const l=yy(s);return{keyEntities:w5(i,l).filter(u=>{const d=i.find(({key:m})=>u.key===m);return!(d&&d.status===Hp&&u.status===hy)})}}render(){const{keyEntities:s}=this.state,{component:i,children:l,onVisibleChanged:c,onAllRemoved:u,...d}=this.props,m=i||a.Fragment,f={};return E5.forEach(p=>{f[p]=d[p],delete d[p]}),delete d.keys,a.createElement(m,d,s.map(({status:p,...y},b)=>{const x=p===py||p===gy;return a.createElement(t,vy({},f,{key:y.key,visible:x,eventProps:y,onVisibleChanged:v=>{c==null||c(v,{key:y.key}),v||this.removeKey(y.key)}}),WP(l)?v=>l({...v,index:b}):(v,g)=>l({...v,index:b},g))}))}}return fe(n,"defaultProps",{component:"div"}),n}const KP=I5(),bn=e=>e!=null,$n=e=>bn(e)&&e!==!1&&e!=="",Rn=e=>typeof e=="number"&&!Number.isNaN(e),Zo=e=>typeof e=="string",dt=e=>e!==null&&typeof e=="object",bt=e=>typeof e=="function",Vp=e=>bn(e)&&bt(e.then),P5=e=>typeof e!="object"&&!bt(e)||e===null,UP=e=>dt(e)&&"propertyName"in e&&Zo(e.propertyName),by=(e,t)=>{const n={...e};return Object.keys(t).forEach(r=>{t[r]._default?n[r]||(n[r]={}):n[r]=by(n[r],t[r])}),n},qP=(e={},...t)=>t.filter(n=>!!n).reduce((n,r)=>(Object.keys(r).forEach(o=>{const s=e[o],i=r[o];if(s)if(dt(i))n[o]=qP(s,n[o],i);else{const{_default:l}=s;l&&(n[o]=n[o]||{},n[o][l]=H(n[o][l],i))}else n[o]=H(n[o],i)}),n),{}),N5=(e,...t)=>a.useMemo(()=>qP.apply(void 0,[e].concat(t)),[e].concat(t)),R5=(...e)=>e.filter(t=>!!t).reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]={...t[r],...n[r]}}),t),{}),T5=(...e)=>a.useMemo(()=>R5.apply(void 0,e),[].concat(e)),Mt=e=>a.useMemo(()=>e?{root:e}:void 0,[e]),Ka=(e,t)=>bt(e)?e(t):e,Ot=(e,t,n,r)=>{const o=e.map(c=>c?Ka(c,n):void 0),s=t.map(c=>c?Ka(c,n):void 0),i=N5.apply(void 0,[r].concat($t(o))),l=T5.apply(void 0,$t(s));return a.useMemo(()=>r?[by(i,r),by(l,r)]:[i,l],[i,l,r])},Bu=(e,t,n)=>({background:e,[`${n}-icon`]:{color:t}}),M5=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:s,fontSizeLG:i,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:m,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:y,lineWidth:b,lineType:x,colorSuccessBorder:v,colorWarningBorder:g,colorErrorBorder:h,colorInfoBorder:$}=e;return{[t]:{...Ft(e),position:"relative",display:"flex",alignItems:"center",padding:y,wordWrap:"break-word",borderRadius:c,borderWidth:G(b),borderStyle:x,[`&${t}-success`]:{borderColor:v},[`&${t}-info`]:{borderColor:$},[`&${t}-warning`]:{borderColor:g},[`&${t}-error`]:{borderColor:h},[`&${t}-filled`]:{borderColor:"transparent"},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:s,lineHeight:l},"&-title":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:["max-height","opacity","padding-top","padding-bottom","margin-bottom"].map(C=>`${C} ${n} ${u}`).join(", ")},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0},[`&${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:o,fontSize:d,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:r,color:f,fontSize:i},[`${t}-description`]:{display:"block",color:m}},[`&${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}}},O5=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBg:r,colorWarning:o,colorWarningBg:s,colorError:i,colorErrorBg:l,colorInfo:c,colorInfoBg:u}=e;return{[t]:{"&-success":Bu(r,n,t),"&-info":Bu(u,c,t),"&-warning":Bu(s,o,t),"&-error":{...Bu(l,i,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},_5=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:s,colorIcon:i,colorIconHover:l}=e;return{[t]:{[`${t}-actions`]:{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:s,lineHeight:G(s),backgroundColor:"transparent",border:"none",cursor:"pointer",...Br(e),[`${n}-close`]:{color:i,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:i,transition:`color ${r}`,"&:hover":{color:l}}}}},z5=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),j5=Tt("Alert",e=>[M5(e),O5(e),_5(e)],z5),B5=e=>{const{icon:t,type:n,className:r,style:o,successIcon:s,infoIcon:i,warningIcon:l,errorIcon:c}=e,u={success:s??a.createElement(Uc,null),info:i??a.createElement(ym,null),error:c??a.createElement(Bi,null),warning:l??a.createElement(Li,null)};return a.createElement("span",{className:r,style:o},t??u[n])},L5=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:s,className:i,style:l}=e,c=r===!0||r===void 0?a.createElement(Us,null):r;return t?a.createElement("button",{type:"button",onClick:o,className:H(`${n}-close-icon`,i),tabIndex:0,style:l,...s},c):null},GP=a.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:o,title:s,banner:i,className:l,rootClassName:c,style:u,onMouseEnter:d,onMouseLeave:m,onClick:f,afterClose:p,showIcon:y,closable:b,closeText:x,closeIcon:v,action:g,id:h,styles:$,classNames:C,...N}=e,S=s??o,[E,w]=a.useState(!1),R=a.useRef(null);a.useImperativeHandle(t,()=>({nativeElement:R.current}));const{getPrefixCls:P,direction:T,variant:M,closable:z,closeIcon:B,className:F,style:L,classNames:j,styles:O,successIcon:A,infoIcon:k,warningIcon:_,errorIcon:D}=Pt("alert"),V=P("alert",r),[W,K]=j5(V),{onClose:q,afterClose:Y}=dt(b)?b:{},ee=Se=>{var ue;w(!0),(ue=q??e.onClose)==null||ue(Se)},ie=a.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),ae=e.variant??M??"outlined",U=a.useMemo(()=>dt(b)&&b.closeIcon||x?!0:typeof b=="boolean"?b:v!==!1&&bn(v)?!0:!!z,[x,v,b,z]),Q=i&&y===void 0?!0:y,Z={...e,prefixCls:V,variant:ae,type:ie,showIcon:Q,closable:U},ne=Mt(L),oe=Mt(u),[le,re]=Ot([j,C],[O,ne,$,oe],{props:Z}),X=H(V,`${V}-${ie}`,`${V}-${ae}`,{[`${V}-with-description`]:!!n,[`${V}-no-icon`]:!Q,[`${V}-banner`]:!!i,[`${V}-rtl`]:T==="rtl"},F,l,c,le.root,K,W),se=Nn(N,{aria:!0,data:!0}),ge=a.useMemo(()=>dt(b)&&b.closeIcon?b.closeIcon:x||(v!==void 0?v:dt(z)&&z.closeIcon?z.closeIcon:B),[v,b,z,x,B]),de=a.useMemo(()=>{const Se=b??z;return dt(Se)?Nn(Se,{data:!0,aria:!0}):{}},[b,z]);return a.createElement(fr,{visible:!E,motionName:`${V}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:Se=>({maxHeight:Se.offsetHeight}),onLeaveEnd:Y??p},({className:Se,style:ue},be)=>a.createElement("div",{id:h,ref:Tn(R,be),"data-show":!E,className:H(X,Se),style:{...re.root,...ue},onMouseEnter:d,onMouseLeave:m,onClick:f,role:"alert",...se},Q?a.createElement(B5,{className:H(`${V}-icon`,le.icon),style:re.icon,description:n,icon:e.icon,prefixCls:V,type:ie,successIcon:A,infoIcon:k,warningIcon:_,errorIcon:D}):null,a.createElement("div",{className:H(`${V}-section`,le.section),style:re.section},S?a.createElement("div",{className:H(`${V}-title`,le.title),style:re.title},S):null,n?a.createElement("div",{className:H(`${V}-description`,le.description),style:re.description},n):null),g?a.createElement("div",{className:H(`${V}-actions`,le.actions),style:re.actions},g):null,a.createElement(L5,{className:le.close,style:re.close,isClosable:U,prefixCls:V,closeIcon:ge,handleClose:ee,ariaProps:de})))});function k5(e,t,n){return t=Va(t),mP(e,Yb()?Reflect.construct(t,n||[],Va(e).constructor):t.apply(e,n))}let A5=function(e){function t(){var n;return zi(this,t),n=k5(this,t,arguments),n.state={error:void 0,info:{}},n}return fP(t,e),ji(t,[{key:"componentDidCatch",value:function(r,o){this.setState({error:r,info:o})}},{key:"render",value:function(){const{message:r,title:o,description:s,id:i,children:l}=this.props,{error:c,info:u}=this.state,d=o??r,m=(u==null?void 0:u.componentStack)||null,f=bn(d)?d:c==null?void 0:c.toString(),p=bn(s)?s:m;return c?a.createElement(GP,{id:i,type:"error",title:f,description:a.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},p)}):l}}])}(a.PureComponent);const Mo=GP;Mo.ErrorBoundary=A5;const v1=e=>typeof e=="object"&&e!=null&&e.nodeType===1,b1=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Lu=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return b1(n.overflowY,t)||b1(n.overflowX,t)||(r=>{const o=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},ku=(e,t,n,r,o,s,i,l)=>s<e&&i>t||s>e&&i<t?0:s<=e&&l<=n||i>=t&&l>=n?s-e-r:i>t&&l<n||s<e&&l>n?i-t+o:0,D5=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},x1=(e,t)=>{var n,r,o,s;if(typeof document>"u")return[];const{scrollMode:i,block:l,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,m=typeof u=="function"?u:F=>F!==u;if(!v1(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let y=e;for(;v1(y)&&m(y);){if(y=D5(y),y===f){p.push(y);break}y!=null&&y===document.body&&Lu(y)&&!Lu(document.documentElement)||y!=null&&Lu(y,d)&&p.push(y)}const b=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,x=(s=(o=window.visualViewport)==null?void 0:o.height)!=null?s:innerHeight,{scrollX:v,scrollY:g}=window,{height:h,width:$,top:C,right:N,bottom:S,left:E}=e.getBoundingClientRect(),{top:w,right:R,bottom:P,left:T}=(F=>{const L=window.getComputedStyle(F);return{top:parseFloat(L.scrollMarginTop)||0,right:parseFloat(L.scrollMarginRight)||0,bottom:parseFloat(L.scrollMarginBottom)||0,left:parseFloat(L.scrollMarginLeft)||0}})(e);let M=l==="start"||l==="nearest"?C-w:l==="end"?S+P:C+h/2-w+P,z=c==="center"?E+$/2-T+R:c==="end"?N+R:E-T;const B=[];for(let F=0;F<p.length;F++){const L=p[F],{height:j,width:O,top:A,right:k,bottom:_,left:D}=L.getBoundingClientRect();if(i==="if-needed"&&C>=0&&E>=0&&S<=x&&N<=b&&(L===f&&!Lu(L)||C>=A&&S<=_&&E>=D&&N<=k))return B;const V=getComputedStyle(L),W=parseInt(V.borderLeftWidth,10),K=parseInt(V.borderTopWidth,10),q=parseInt(V.borderRightWidth,10),Y=parseInt(V.borderBottomWidth,10);let ee=0,ie=0;const ae="offsetWidth"in L?L.offsetWidth-L.clientWidth-W-q:0,U="offsetHeight"in L?L.offsetHeight-L.clientHeight-K-Y:0,Q="offsetWidth"in L?L.offsetWidth===0?0:O/L.offsetWidth:0,Z="offsetHeight"in L?L.offsetHeight===0?0:j/L.offsetHeight:0;if(f===L)ee=l==="start"?M:l==="end"?M-x:l==="nearest"?ku(g,g+x,x,K,Y,g+M,g+M+h,h):M-x/2,ie=c==="start"?z:c==="center"?z-b/2:c==="end"?z-b:ku(v,v+b,b,W,q,v+z,v+z+$,$),ee=Math.max(0,ee+g),ie=Math.max(0,ie+v);else{ee=l==="start"?M-A-K:l==="end"?M-_+Y+U:l==="nearest"?ku(A,_,j,K,Y+U,M,M+h,h):M-(A+j/2)+U/2,ie=c==="start"?z-D-W:c==="center"?z-(D+O/2)+ae/2:c==="end"?z-k+q+ae:ku(D,k,O,W,q+ae,z,z+$,$);const{scrollLeft:ne,scrollTop:oe}=L;ee=Z===0?0:Math.max(0,Math.min(oe+ee/Z,L.scrollHeight-j/Z+U)),ie=Q===0?0:Math.max(0,Math.min(ne+ie/Q,L.scrollWidth-O/Q+ae)),M+=oe-ee,z+=ne-ie}B.push({el:L,top:ee,left:ie})}return B},F5=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function H5(e,t){if(!e.isConnected||!(o=>{let s=o;for(;s&&s.parentNode;){if(s.parentNode===document)return!0;s=s.parentNode instanceof ShadowRoot?s.parentNode.host:s.parentNode}return!1})(e))return;const n=(o=>{const s=window.getComputedStyle(o);return{top:parseFloat(s.scrollMarginTop)||0,right:parseFloat(s.scrollMarginRight)||0,bottom:parseFloat(s.scrollMarginBottom)||0,left:parseFloat(s.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(x1(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:s,left:i}of x1(e,F5(t))){const l=s-n.top+n.bottom,c=i-n.left+n.right;o.scroll({top:l,left:c,behavior:r})}}const xy=e=>bn(e)&&e===e.window,V5=e=>{var n;if(typeof window>"u")return 0;let t=0;return xy(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!xy(e)&&!Rn(t)&&(t=(n=(e.ownerDocument??e).documentElement)==null?void 0:n.scrollTop),t};function W5(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function K5(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,s=n(),i=V5(s),l=Date.now();let c;const u=()=>{const m=Date.now()-l,f=W5(m>o?o:m,i,e,o);xy(s)?s.scrollTo(window.pageXOffset,f):s instanceof Document||s.constructor.name==="HTMLDocument"?s.documentElement.scrollTop=f:s.scrollTop=f,m<o?c=Ct(u):bt(r)&&r()};return c=Ct(u),()=>{Ct.cancel(c)}}const on=e=>`${e}-css-var`,XP=a.createContext(void 0),YP={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"},U5={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},q5={...U5,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",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"},QP={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},$1={lang:{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"],...q5},timePickerLocale:{...QP}},Er="${label} is not a valid ${type}",Zr={locale:"en",Pagination:YP,DatePicker:$1,TimePicker:QP,Calendar:$1,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},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:Er,method:Er,array:Er,object:Er,number:Er,date:Er,boolean:Er,integer:Er,float:Er,regexp:Er,email:Er,url:Er,hex:Er},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}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let xd={...Zr.Modal},$d=[];const S1=()=>$d.reduce((e,t)=>({...e,...t}),Zr.Modal);function G5(e){if(e){const t={...e};return $d.push(t),xd=S1(),()=>{$d=$d.filter(n=>n!==t),xd=S1()}}xd={...Zr.Modal}}function JP(){return xd}const sx=a.createContext(void 0),Ar=(e,t)=>{const n=a.useContext(sx),r=a.useMemo(()=>{const s=t||Zr[e],i=(n==null?void 0:n[e])??{};return{...bt(s)?s():s,...i||{}}},[e,t,n]),o=a.useMemo(()=>{const s=n==null?void 0:n.locale;return n!=null&&n.exist&&!s?Zr.locale:s},[n]);return[r,o]},X5="internalMark",Y5=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;a.useEffect(()=>G5(t==null?void 0:t.Modal),[t]);const o=a.useMemo(()=>({...t,exist:!0}),[t]);return a.createElement(sx.Provider,{value:o},n)},ZP=a.createContext(null);let Q5=!1;function J5(e){return Q5}const C1=[];function Z5(e,t){const[n]=a.useState(()=>lr()?document.createElement("div"):null),r=a.useRef(!1),o=a.useContext(ZP),[s,i]=a.useState(C1),l=o||(r.current?void 0:d=>{i(m=>[d,...m])});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function u(){var d;(d=n.parentElement)==null||d.removeChild(n),r.current=!1}return It(()=>(e?o?o(c):c():u(),u),[e]),It(()=>{s.length&&(s.forEach(d=>d()),i(C1))},[s]),[n,l]}function ej(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const tj=`rc-util-locker-${Date.now()}`;let w1=0;function nj(e){const t=!!e,[n]=a.useState(()=>(w1+=1,`${tj}_${w1}`));It(()=>{if(t){const r=zh(document.body).width,o=ej();vi(`
html body {
overflow-y: hidden;
${o?`width: calc(100% - ${r}px);`:""}
}`,n)}else xc(n);return()=>{xc(n)}},[t,n])}let di=[];const rj=200;let eN=0;const tN=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-eN<rj)return;const n=di.length;for(let r=n-1;r>=0;r-=1)di[r].onEsc({top:r===n-1,event:e})}},nN=()=>{eN=Date.now()};function oj(){window.addEventListener("keydown",tN),window.addEventListener("compositionend",nN)}function sj(){di.length===0&&(window.removeEventListener("keydown",tN),window.removeEventListener("compositionend",nN))}function ij(e,t){const n=jo(),r=vt(t),o=()=>{di.find(i=>i.id===n)||di.push({id:n,onEsc:r})},s=()=>{di=di.filter(i=>i.id!==n)};a.useMemo(()=>{e?o():e||s()},[e]),a.useEffect(()=>{if(e)return o(),oj(),()=>{s(),sj()}},[e])}const E1=e=>e===!1?!1:!lr()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,vm=a.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:o,debug:s,autoDestroy:i=!0,children:l,onEsc:c}=e,[u,d]=a.useState(n),m=u||n;a.useEffect(()=>{(i||n)&&d(n)},[n,i]);const[f,p]=a.useState(()=>E1(o));a.useEffect(()=>{const C=E1(o);p(()=>C??null)});const[y,b]=Z5(m&&!f),x=f??y;nj(r&&n&&lr()&&(x===y||x===document.body)),ij(n,c);let v=null;l&&is(l)&&t&&(v=Bo(l));const g=$o(v,t);if(!m||!lr()||f===void 0)return null;const h=x===!1||J5();let $=l;return t&&($=a.cloneElement(l,{ref:g})),a.createElement(ZP.Provider,{value:b},h?$:ss.createPortal($,x))});function aj(e){const{prefixCls:t,align:n,arrow:r,arrowPos:o}=e,{className:s,content:i,style:l}=r||{},{x:c=0,y:u=0}=o,d=a.useRef(null);if(!n||!n.points)return null;const m={position:"absolute"};if(n.autoArrow!==!1){const f=n.points[0],p=n.points[1],y=f[0],b=f[1],x=p[0],v=p[1];y===x||!["t","b"].includes(y)?m.top=u:y==="t"?m.top=0:m.bottom=0,b===v||!["l","r"].includes(b)?m.left=c:b==="l"?m.left=0:m.right=0}return a.createElement("div",{ref:d,className:H(`${t}-arrow`,s),style:{...m,...l}},i)}function $y(){return $y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$y.apply(this,arguments)}function lj(e){const{prefixCls:t,open:n,zIndex:r,mask:o,motion:s,mobile:i}=e;return o?a.createElement(fr,$y({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:l})=>a.createElement("div",{style:{zIndex:r},className:H(`${t}-mask`,i&&`${t}-mobile-mask`,l)})):null}const cj=a.memo(({children:e})=>e,(e,t)=>t.cache);function rN(e,t,n,r,o,s,i,l){var d;const c="auto",u=e?{}:{left:"-1000vw",top:"-1000vh",right:c,bottom:c};if(!e&&(t||!n)){const{points:m}=r,f=r.dynamicInset||((d=r._experimental)==null?void 0:d.dynamicInset),p=f&&m[0][1]==="r",y=f&&m[0][0]==="b";p?(u.right=o,u.left=c):(u.left=i,u.right=c),y?(u.bottom=s,u.top=c):(u.top=l,u.bottom=c)}return u}function Sy(){return Sy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sy.apply(this,arguments)}const oN=a.forwardRef((e,t)=>{const{onEsc:n,popup:r,className:o,prefixCls:s,style:i,target:l,onVisibleChanged:c,open:u,keepDom:d,fresh:m,onClick:f,mask:p,arrow:y,arrowPos:b,align:x,motion:v,maskMotion:g,mobile:h,forceRender:$,getPopupContainer:C,autoDestroy:N,portal:S,children:E,zIndex:w,onMouseEnter:R,onMouseLeave:P,onPointerEnter:T,onPointerDownCapture:M,ready:z,offsetX:B,offsetY:F,offsetR:L,offsetB:j,onAlign:O,onPrepare:A,onResize:k,stretch:_,targetWidth:D,targetHeight:V}=e,W=typeof r=="function"?r():r,K=u||d,q=!!h,[Y,ee,ie]=a.useMemo(()=>h?[h.mask,h.maskMotion,h.motion]:[p,g,v],[h,p,g,v]),ae=(C==null?void 0:C.length)>0,[U,Q]=a.useState(!C||!ae);It(()=>{!U&&ae&&l&&Q(!0)},[U,ae,l]);const Z=vt((le,re)=>{k==null||k(le,re),O()}),ne=rN(q,z,u,x,L,j,B,F);if(!U)return null;const oe={};return _&&(_.includes("height")&&V?oe.height=V:_.includes("minHeight")&&V&&(oe.minHeight=V),_.includes("width")&&D?oe.width=D:_.includes("minWidth")&&D&&(oe.minWidth=D)),u||(oe.pointerEvents="none"),a.createElement(S,{open:$||K,getContainer:C&&(()=>C(l)),autoDestroy:N,onEsc:n},a.createElement(lj,{prefixCls:s,open:u,zIndex:w,mask:Y,motion:ee,mobile:q}),a.createElement(ir,{onResize:Z,disabled:!u},le=>a.createElement(fr,Sy({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:$,leavedClassName:`${s}-hidden`},ie,{onAppearPrepare:A,onEnterPrepare:A,visible:u,onVisibleChanged:re=>{var X;(X=v==null?void 0:v.onVisibleChanged)==null||X.call(v,re),c(re)}}),({className:re,style:X},se)=>{const ge=H(s,re,o,{[`${s}-mobile`]:q});return a.createElement("div",{ref:Tn(le,t,se),className:ge,style:{"--arrow-x":`${b.x||0}px`,"--arrow-y":`${b.y||0}px`,...ne,...oe,...X,boxSizing:"border-box",zIndex:w,...i},onMouseEnter:R,onMouseLeave:P,onPointerEnter:T,onClick:f,onPointerDownCapture:M},y&&a.createElement(aj,{prefixCls:s,arrow:y,arrowPos:b,align:x}),a.createElement(cj,{cache:!u&&!m},W))})),E)}),of=a.createContext(null),sN=a.createContext(null);function I1(e){return e?Array.isArray(e)?e:[e]:[]}function uj(e,t,n){return a.useMemo(()=>{const r=I1(t??e),o=I1(n??e),s=new Set(r),i=new Set(o);return s.has("hover")&&!s.has("click")&&s.add("touch"),i.has("hover")&&!i.has("click")&&i.add("touch"),[s,i]},[e,t,n])}function dj(e=[],t=[],n){const r=(o,s)=>o[s]||"";return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function iN(e,t,n,r){var i;const{points:o}=n,s=Object.keys(e);for(let l=0;l<s.length;l+=1){const c=s[l];if(dj((i=e[c])==null?void 0:i.points,o,r))return`${t}-placement-${c}`}return""}function qc(e){return e.ownerDocument.defaultView}function Cy(e){const t=[];let n=e==null?void 0:e.parentElement;const r=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:o,overflowY:s,overflow:i}=qc(n).getComputedStyle(n);[o,s,i].some(l=>r.includes(l))&&t.push(n),n=n.parentElement}return t}function Ic(e,t=1){return Number.isNaN(e)?t:e}function vl(e){return Ic(parseFloat(e),0)}function P1(e,t){const n={...e};return(t||[]).forEach(r=>{if(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)return;const{overflow:o,overflowClipMargin:s,borderTopWidth:i,borderBottomWidth:l,borderLeftWidth:c,borderRightWidth:u}=qc(r).getComputedStyle(r),d=r.getBoundingClientRect(),{offsetHeight:m,clientHeight:f,offsetWidth:p,clientWidth:y}=r,b=vl(i),x=vl(l),v=vl(c),g=vl(u),h=Ic(Math.round(d.width/p*1e3)/1e3),$=Ic(Math.round(d.height/m*1e3)/1e3),C=(p-y-v-g)*h,N=(m-f-b-x)*$,S=b*$,E=x*$,w=v*h,R=g*h;let P=0,T=0;if(o==="clip"){const L=vl(s);P=L*h,T=L*$}const M=d.x+w-P,z=d.y+S-T,B=M+d.width+2*P-w-R-C,F=z+d.height+2*T-S-E-N;n.left=Math.max(n.left,M),n.top=Math.max(n.top,z),n.right=Math.min(n.right,B),n.bottom=Math.min(n.bottom,F)}),n}function N1(e,t=0){const n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function R1(e,t){const[n,r]=t||[];return[N1(e.width,n),N1(e.height,r)]}function T1(e=""){return[e[0],e[1]]}function Xi(e,t){const n=t[0],r=t[1];let o,s;return n==="t"?s=e.y:n==="b"?s=e.y+e.height:s=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:s}}function us(e,t){const n={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=n[e[t]]||"c",r}function M1(e){return e.join("")}function aN(e,t,n,r,o,s,i,l){const[c,u]=a.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),d=a.useRef(0),m=a.useMemo(()=>!t||l?[]:Cy(t),[t]),f=a.useRef({});e||(()=>{f.current={}})();const y=vt(()=>{var h,$;if(t&&n&&e&&!l){let Ue=function(Ye,Et,Kt=se){const pr=O.x+Ye,Dr=O.y+Et,ko=pr+ee,Ao=Dr+Y,Do=Math.max(pr,Kt.left),Qe=Math.max(Dr,Kt.top),Bt=Math.min(ko,Kt.right),Ln=Math.min(Ao,Kt.bottom);return Math.max(0,(Bt-Do)*(Ln-Qe))},St=function(){te=O.y+Te,ye=te+Y,Ae=O.x+Re,Je=Ae+ee};var v=Ue,g=St;const C=t,N=C.ownerDocument,S=qc(C),{position:E}=S.getComputedStyle(C),w=C.style.left,R=C.style.top,P=C.style.right,T=C.style.bottom,M=C.style.overflow,z=C.style.overflowX,B=C.style.overflowY,F={...o[r],...s},L=N.createElement("div");(h=C.parentElement)==null||h.appendChild(L),L.style.left=`${C.offsetLeft}px`,L.style.top=`${C.offsetTop}px`,L.style.position=E,L.style.height=`${C.offsetHeight}px`,L.style.width=`${C.offsetWidth}px`,C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";let j;if(Array.isArray(n))j={x:n[0],y:n[1],width:0,height:0};else{const Ye=n.getBoundingClientRect();Ye.x=Ye.x??Ye.left,Ye.y=Ye.y??Ye.top,j={x:Ye.x,y:Ye.y,width:Ye.width,height:Ye.height}}const O=C.getBoundingClientRect(),{height:A,width:k}=S.getComputedStyle(C);O.x=O.x??O.left,O.y=O.y??O.top;const{clientWidth:_,clientHeight:D,scrollWidth:V,scrollHeight:W,scrollTop:K,scrollLeft:q}=N.documentElement,Y=O.height,ee=O.width,ie=j.height,ae=j.width,U={left:0,top:0,right:_,bottom:D},Q={left:-q,top:-K,right:V-q,bottom:W-K};let{htmlRegion:Z}=F;const ne="visible",oe="visibleFirst";Z!=="scroll"&&Z!==oe&&(Z=ne);const le=Z===oe,re=P1(Q,m),X=P1(U,m),se=Z===ne?X:re,ge=le?X:se;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";const de=C.getBoundingClientRect();C.style.left=w,C.style.top=R,C.style.right=P,C.style.bottom=T,C.style.overflow=M,C.style.overflowX=z,C.style.overflowY=B,($=C.parentElement)==null||$.removeChild(L);const Se=Ic(Math.round(ee/parseFloat(k)*1e3)/1e3),ue=Ic(Math.round(Y/parseFloat(A)*1e3)/1e3);if(Se===0||ue===0||Da(n)&&!Vc(n))return;const{offset:be,targetOffset:Ne}=F;let[we,ze]=R1(O,be);const[he,ke]=R1(j,Ne);j.x-=he,j.y-=ke;const[Oe,Ce]=F.points||[],Me=T1(Ce),xe=T1(Oe),Ee=Xi(j,Me),Ve=Xi(O,xe),qe={...F};let me=[xe,Me],Re=Ee.x-Ve.x+we,Te=Ee.y-Ve.y+ze;const Ge=Ue(Re,Te),Fe=Ue(Re,Te,X),et=Xi(j,["t","l"]),ve=Xi(O,["t","l"]),je=Xi(j,["b","r"]),ce=Xi(O,["b","r"]),Pe=F.overflow||{},{adjustX:pe,adjustY:$e,shiftX:_e,shiftY:Ie}=Pe,Be=Ye=>typeof Ye=="boolean"?Ye:Ye>=0;let te,ye,Ae,Je;St();const ht=Be($e),Nt=xe[0]===Me[0];if(ht&&xe[0]==="t"&&(ye>ge.bottom||f.current.bt)){let Ye=Te;Nt?Ye-=Y-ie:Ye=et.y-ce.y-ze;const Et=Ue(Re,Ye),Kt=Ue(Re,Ye,X);Et>Ge||Et===Ge&&(!le||Kt>=Fe)?(f.current.bt=!0,Te=Ye,ze=-ze,me=[us(me[0],0),us(me[1],0)]):f.current.bt=!1}if(ht&&xe[0]==="b"&&(te<ge.top||f.current.tb)){let Ye=Te;Nt?Ye+=Y-ie:Ye=je.y-ve.y-ze;const Et=Ue(Re,Ye),Kt=Ue(Re,Ye,X);Et>Ge||Et===Ge&&(!le||Kt>=Fe)?(f.current.tb=!0,Te=Ye,ze=-ze,me=[us(me[0],0),us(me[1],0)]):f.current.tb=!1}const yt=Be(pe),at=xe[1]===Me[1];if(yt&&xe[1]==="l"&&(Je>ge.right||f.current.rl)){let Ye=Re;at?Ye-=ee-ae:Ye=et.x-ce.x-we;const Et=Ue(Ye,Te),Kt=Ue(Ye,Te,X);Et>Ge||Et===Ge&&(!le||Kt>=Fe)?(f.current.rl=!0,Re=Ye,we=-we,me=[us(me[0],1),us(me[1],1)]):f.current.rl=!1}if(yt&&xe[1]==="r"&&(Ae<ge.left||f.current.lr)){let Ye=Re;at?Ye+=ee-ae:Ye=je.x-ve.x-we;const Et=Ue(Ye,Te),Kt=Ue(Ye,Te,X);Et>Ge||Et===Ge&&(!le||Kt>=Fe)?(f.current.lr=!0,Re=Ye,we=-we,me=[us(me[0],1),us(me[1],1)]):f.current.lr=!1}qe.points=[M1(me[0]),M1(me[1])],St();const Ze=_e===!0?0:_e;typeof Ze=="number"&&(Ae<X.left&&(Re-=Ae-X.left-we,j.x+ae<X.left+Ze&&(Re+=j.x-X.left+ae-Ze)),Je>X.right&&(Re-=Je-X.right-we,j.x>X.right-Ze&&(Re+=j.x-X.right+Ze)));const De=Ie===!0?0:Ie;typeof De=="number"&&(te<X.top&&(Te-=te-X.top-ze,j.y+ie<X.top+De&&(Te+=j.y-X.top+ie-De)),ye>X.bottom&&(Te-=ye-X.bottom-ze,j.y>X.bottom-De&&(Te+=j.y-X.bottom+De)));const Le=O.x+Re,Ke=Le+ee,lt=O.y+Te,_t=lt+Y,ft=j.x,xt=ft+ae,jt=j.y,pt=jt+ie,qt=Math.max(Le,ft),cn=Math.min(Ke,xt),Cr=(qt+cn)/2-Le,mr=Math.max(lt,jt),wr=Math.min(_t,pt),Wt=(mr+wr)/2-lt;i==null||i(t,qe);let en=de.right-O.x-(Re+O.width),tt=de.bottom-O.y-(Te+O.height);Se===1&&(Re=Math.floor(Re),en=Math.floor(en)),ue===1&&(Te=Math.floor(Te),tt=Math.floor(tt));const wt={ready:!0,offsetX:Re/Se,offsetY:Te/ue,offsetR:en/Se,offsetB:tt/ue,arrowX:Cr/Se,arrowY:Wt/ue,scaleX:Se,scaleY:ue,align:qe};u(wt)}}),b=()=>{d.current+=1;const v=d.current;Promise.resolve().then(()=>{d.current===v&&y()})},x=()=>{u(v=>({...v,ready:!1}))};return It(x,[r]),It(()=>{e||x()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,b]}function lN(){const e=a.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)},n=(r,o)=>{t(),o===0?r():e.current=setTimeout(()=>{r()},o*1e3)};return a.useEffect(()=>()=>{t()},[]),n}function fj(e,t,n,r,o){It(()=>{if(e&&t&&n){let f=function(){r(),o()};var s=f;const i=t,l=n,c=Cy(i),u=Cy(l),d=qc(l),m=new Set([d,...c,...u]);return m.forEach(p=>{p.addEventListener("scroll",f,{passive:!0})}),d.addEventListener("resize",f,{passive:!0}),r(),()=>{m.forEach(p=>{p.removeEventListener("scroll",f),d.removeEventListener("resize",f)})}}},[e,t,n])}function mj(e,t,n,r,o,s,i,l){const c=a.useRef(e);c.current=e;const u=a.useRef(!1);a.useEffect(()=>{if(t&&r&&(!o||s)){const m=()=>{u.current=!1},f=b=>{var x,v;c.current&&!i(((v=(x=b.composedPath)==null?void 0:x.call(b))==null?void 0:v[0])||b.target)&&!u.current&&l(!1)},p=qc(r);p.addEventListener("pointerdown",m,!0),p.addEventListener("mousedown",f,!0),p.addEventListener("contextmenu",f,!0);const y=_h(n);return y&&(y.addEventListener("mousedown",f,!0),y.addEventListener("contextmenu",f,!0)),()=>{p.removeEventListener("pointerdown",m,!0),p.removeEventListener("mousedown",f,!0),p.removeEventListener("contextmenu",f,!0),y&&(y.removeEventListener("mousedown",f,!0),y.removeEventListener("contextmenu",f,!0))}}},[t,n,r,o,s]);function d(){u.current=!0}return d}function pj(){const[e,t]=J.useState(null),[n,r]=J.useState(!1),[o,s]=J.useState(!1),i=J.useRef(null),l=vt(u=>{u===!1?(i.current=null,r(!1)):o&&n?i.current=u:(r(!0),t(u),i.current=null,n||s(!0))}),c=vt(u=>{u?(s(!1),i.current&&(t(i.current),i.current=null)):(s(!1),i.current=null)});return[l,n,e,c]}function wy(){return wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wy.apply(this,arguments)}const gj=e=>{const{prefixCls:t,isMobile:n,ready:r,open:o,align:s,offsetR:i,offsetB:l,offsetX:c,offsetY:u,arrowPos:d,popupSize:m,motion:f,uniqueContainerClassName:p,uniqueContainerStyle:y}=e,b=`${t}-unique-container`,[x,v]=J.useState(!1),g=rN(n,r,o,s,i,l,c,u),h=J.useRef(g);r&&(h.current=g);const $={};return m&&($.width=m.width,$.height=m.height),J.createElement(fr,wy({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${b}-hidden`},f,{visible:o,onVisibleChanged:C=>{v(C)}}),({className:C,style:N})=>{const S=H(b,C,p,{[`${b}-visible`]:x});return J.createElement("div",{className:S,style:{"--arrow-x":`${(d==null?void 0:d.x)||0}px`,"--arrow-y":`${(d==null?void 0:d.y)||0}px`,...h.current,...$,...N,...y}})})},hj=({children:e,postTriggerProps:t})=>{const[n,r,o,s]=pj(),i=a.useMemo(()=>!o||!t?o:t(o),[o,t]),[l,c]=a.useState(null),[u,d]=a.useState(null),m=a.useRef(null),f=vt(j=>{m.current=j,Da(j)&&l!==j&&c(j)}),p=a.useRef(null),y=lN(),b=vt((j,O)=>{p.current=O,y(()=>{n(j)},j.delay)}),x=j=>{y(()=>{var O;(O=p.current)!=null&&O.call(p)||n(!1)},j)},v=vt(j=>{s(j)}),[g,h,$,C,N,S,E,,,w,R]=aN(r,l,i==null?void 0:i.target,i==null?void 0:i.popupPlacement,(i==null?void 0:i.builtinPlacements)||{},i==null?void 0:i.popupAlign,void 0,!1),P=a.useMemo(()=>{var O;if(!i)return"";const j=iN(i.builtinPlacements||{},i.prefixCls||"",w,!1);return H(j,(O=i.getPopupClassNameFromAlign)==null?void 0:O.call(i,w))},[w,i==null?void 0:i.getPopupClassNameFromAlign,i==null?void 0:i.builtinPlacements,i==null?void 0:i.prefixCls]),T=a.useMemo(()=>({show:b,hide:x}),[]);a.useEffect(()=>{R()},[i==null?void 0:i.target]);const M=vt(()=>(R(),Promise.resolve())),z=a.useRef({}),B=a.useContext(of),F=a.useMemo(()=>({registerSubPopup:(j,O)=>{z.current[j]=O,B==null||B.registerSubPopup(j,O)}}),[B]),L=i==null?void 0:i.prefixCls;return a.createElement(sN.Provider,{value:T},e,i&&a.createElement(of.Provider,{value:F},a.createElement(oN,{ref:f,portal:vm,onEsc:i.onEsc,prefixCls:L,popup:i.popup,className:H(i.popupClassName,P,`${L}-unique-controlled`),style:i.popupStyle,target:i.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:v,ready:g,offsetX:h,offsetY:$,offsetR:C,offsetB:N,onAlign:R,onPrepare:M,onResize:j=>d({width:j.offsetWidth,height:j.offsetHeight}),arrowPos:{x:S,y:E},align:w,zIndex:i.zIndex,mask:i.mask,arrow:i.arrow,motion:i.popupMotion,maskMotion:i.maskMotion,getPopupContainer:i.getPopupContainer},a.createElement(gj,{prefixCls:L,isMobile:!1,ready:g,open:r,align:w,offsetR:C,offsetB:N,offsetX:h,offsetY:$,arrowPos:{x:S,y:E},popupSize:u,motion:i.popupMotion,uniqueContainerClassName:H(i.uniqueContainerClassName,P),uniqueContainerStyle:i.uniqueContainerStyle}))))};function yj(e=vm){return a.forwardRef((n,r)=>{const{prefixCls:o="rc-trigger-popup",children:s,action:i="hover",showAction:l,hideAction:c,disabled:u=!1,popupVisible:d,defaultPopupVisible:m,onOpenChange:f,afterOpenChange:p,onPopupVisibleChange:y,afterPopupVisibleChange:b,mouseEnterDelay:x,mouseLeaveDelay:v=.1,focusDelay:g,blurDelay:h,mask:$,maskClosable:C=!0,getPopupContainer:N,forceRender:S,autoDestroy:E,popup:w,popupClassName:R,uniqueContainerClassName:P,uniqueContainerStyle:T,popupStyle:M,popupPlacement:z,builtinPlacements:B={},popupAlign:F,zIndex:L,stretch:j,getPopupClassNameFromAlign:O,fresh:A,unique:k,alignPoint:_,onPopupClick:D,onPopupAlign:V,arrow:W,popupMotion:K,maskMotion:q,mobile:Y,...ee}=n,ie=E||!1,ae=d===void 0,U=!!Y,Q=a.useRef({}),Z=a.useContext(of),ne=a.useMemo(()=>({registerSubPopup:(Qe,Bt)=>{Q.current[Qe]=Bt,Z==null||Z.registerSubPopup(Qe,Bt)}}),[Z]),oe=a.useContext(sN),le=jo(),[re,X]=a.useState(null),se=a.useRef(null),ge=vt(Qe=>{se.current=Qe,Da(Qe)&&re!==Qe&&X(Qe),Z==null||Z.registerSubPopup(le,Qe)}),[de,Se]=a.useState(null),ue=a.useRef(null),be=vt(Qe=>{const Bt=go(Qe);Da(Bt)&&de!==Bt&&(Se(Bt),ue.current=Bt)}),Ne={},we=vt(Qe=>{var Ln,Wi;const Bt=de;return(Bt==null?void 0:Bt.contains(Qe))||((Ln=_h(Bt))==null?void 0:Ln.host)===Qe||Qe===Bt||(re==null?void 0:re.contains(Qe))||((Wi=_h(re))==null?void 0:Wi.host)===Qe||Qe===re||Object.values(Q.current).some(Xs=>(Xs==null?void 0:Xs.contains(Qe))||Qe===Xs)}),ze=W?{...W!==!0?W:{}}:null,[he,ke]=nn(m||!1,d),Oe=he||!1,Ce=Oe&&!u,Me=a.useMemo(()=>{const Qe=typeof s=="function"?s({open:Ce}):s;return a.Children.only(Qe)},[s,Ce]),xe=(Me==null?void 0:Me.props)||{},Ee=vt(()=>Ce),Ve=vt((Qe=0)=>({popup:w,target:de,delay:Qe,prefixCls:o,popupClassName:R,uniqueContainerClassName:P,uniqueContainerStyle:T,popupStyle:M,popupPlacement:z,builtinPlacements:B,popupAlign:F,zIndex:L,mask:$,maskClosable:C,popupMotion:K,maskMotion:q,arrow:ze,getPopupContainer:N,getPopupClassNameFromAlign:O,id:le,onEsc:Ue}));It(()=>{oe&&k&&de&&!ae&&!Z&&(Ce?oe.show(Ve(x),Ee):oe.hide(v))},[Ce,de]);const qe=a.useRef(Ce);qe.current=Ce;const me=vt(Qe=>{ss.flushSync(()=>{Oe!==Qe&&(ke(Qe),f==null||f(Qe),y==null||y(Qe))})}),Re=lN(),Te=(Qe,Bt=0)=>{if(d!==void 0){Re(()=>{me(Qe)},Bt);return}if(oe&&k&&ae&&!Z){Qe?oe.show(Ve(Bt),Ee):oe.hide(Bt);return}Re(()=>{me(Qe)},Bt)};function Ue({top:Qe}){Qe&&Te(!1)}const[Ge,Fe]=a.useState(!1);It(Qe=>{(!Qe||Ce)&&Fe(!0)},[Ce]);const[et,ve]=a.useState(null),[je,ce]=a.useState(null),Pe=Qe=>{ce([Qe.clientX,Qe.clientY])},[pe,$e,_e,Ie,Be,te,ye,Ae,Je,St,ht]=aN(Ce,re,_&&je!==null?je:de,z,B,F,V,U),[Nt,yt]=uj(i,l,c),at=Nt.has("click"),Ze=yt.has("click")||yt.has("contextMenu"),De=vt(()=>{Ge||ht()});fj(Ce,de,re,De,()=>{qe.current&&_&&Ze&&Te(!1)}),It(()=>{De()},[je,z]),It(()=>{Ce&&!(B!=null&&B[z])&&De()},[JSON.stringify(F)]);const Ke=a.useMemo(()=>{const Qe=iN(B,o,St,_);return H(Qe,O==null?void 0:O(St))},[St,O,B,o,_]);a.useImperativeHandle(r,()=>({nativeElement:ue.current,popupElement:se.current,forceAlign:De}));const[lt,_t]=a.useState(0),[ft,xt]=a.useState(0),jt=()=>{if(j&&de){const Qe=de.getBoundingClientRect();_t(Qe.width),xt(Qe.height)}},pt=()=>{jt(),De()},qt=Qe=>{Fe(!1),ht(),p==null||p(Qe),b==null||b(Qe)},cn=()=>new Promise(Qe=>{jt(),ve(()=>Qe)});It(()=>{et&&(ht(),et(),ve(null))},[et]);function hn(Qe,Bt,Ln,Wi,Xs){Ne[Qe]=(y$,...B6)=>{var v$;(!Xs||!Xs())&&(Wi==null||Wi(y$),Te(Bt,Ln)),(v$=xe[Qe])==null||v$.call(xe,y$,...B6)}}const Cr=Nt.has("touch"),mr=yt.has("touch"),wr=a.useRef(!1);(Cr||mr)&&(Ne.onTouchStart=(...Qe)=>{var Bt;wr.current=!0,qe.current&&mr?Te(!1):!qe.current&&Cr&&Te(!0),(Bt=xe.onTouchStart)==null||Bt.call(xe,...Qe)}),(at||Ze)&&(Ne.onClick=(Qe,...Bt)=>{var Ln;qe.current&&Ze?Te(!1):!qe.current&&at&&(Pe(Qe),Te(!0)),(Ln=xe.onClick)==null||Ln.call(xe,Qe,...Bt),wr.current=!1});const mt=mj(Ce,Ze||mr,de,re,$,C,we,Te),Wt=Nt.has("hover"),en=yt.has("hover");let tt,wt;const Ye=()=>wr.current;if(Wt){const Qe=Bt=>{Pe(Bt)};hn("onMouseEnter",!0,x,Qe,Ye),hn("onPointerEnter",!0,x,Qe,Ye),tt=Bt=>{(Ce||Ge)&&(re!=null&&re.contains(Bt.target))&&Te(!0,x)},_&&(Ne.onMouseMove=Bt=>{var Ln;(Ln=xe.onMouseMove)==null||Ln.call(xe,Bt)})}en&&(hn("onMouseLeave",!1,v,void 0,Ye),hn("onPointerLeave",!1,v,void 0,Ye),wt=()=>{Te(!1,v)}),Nt.has("focus")&&hn("onFocus",!0,g),yt.has("focus")&&hn("onBlur",!1,h),Nt.has("contextMenu")&&(Ne.onContextMenu=(Qe,...Bt)=>{var Ln;qe.current&&yt.has("contextMenu")?Te(!1):(Pe(Qe),Te(!0)),Qe.preventDefault(),(Ln=xe.onContextMenu)==null||Ln.call(xe,Qe,...Bt)});const Et=a.useRef(!1);Et.current||(Et.current=S||Ce||Ge);const Kt={...xe,...Ne},pr={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(Qe=>{ee[Qe]&&(pr[Qe]=(...Bt)=>{var Ln;(Ln=Kt[Qe])==null||Ln.call(Kt,...Bt),ee[Qe](...Bt)})});const ko={x:te,y:ye};GI(Ce,de,pt);const Ao=$o(be,Bo(Me)),Do=a.cloneElement(Me,{...Kt,...pr,ref:Ao});return a.createElement(a.Fragment,null,Do,Et.current&&(!oe||!k)&&a.createElement(of.Provider,{value:ne},a.createElement(oN,{portal:e,ref:ge,prefixCls:o,popup:w,className:H(R,!U&&Ke),style:M,target:de,onMouseEnter:tt,onMouseLeave:wt,onPointerEnter:tt,zIndex:L,open:Ce,keepDom:Ge,fresh:A,onClick:D,onPointerDownCapture:mt,mask:$,motion:K,maskMotion:q,onVisibleChanged:qt,onPrepare:cn,forceRender:S,autoDestroy:ie,getPopupContainer:N,onEsc:Ue,align:St,arrow:ze,arrowPos:ko,ready:pe,offsetX:$e,offsetY:_e,offsetR:Ie,offsetB:Be,onAlign:De,stretch:j,targetWidth:lt/Ae,targetHeight:ft/Je,mobile:Y})))})}const bm=yj(vm);function cN(e){return e&&J.isValidElement(e)&&e.type===J.Fragment}const uN=(e,t,n)=>J.isValidElement(e)?J.cloneElement(e,bt(n)?n(e.props||{}):n):t;function Fn(e,t){return uN(e,e,t)}const vj=({children:e})=>{const{getPrefixCls:t}=J.useContext(ct),n=t();return J.isValidElement(e)?J.createElement(fr,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:r,className:o})=>Fn(e,s=>({className:H(s.className,o),style:{...s.style,...r}}))):e},Au=[null,null];function bj(e){if(Au[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),Au[0]=e,Au[1]=t}return Au[1]}const dN=({children:e})=>{const t=n=>{const{id:r,builtinPlacements:o,popup:s}=n,i=bt(s)?s():s,l=bj(o);return{...n,getPopupContainer:null,arrow:!1,popup:J.createElement(vj,{key:r},i),builtinPlacements:l}};return J.createElement(hj,{postTriggerProps:t},e)},cr=a.createContext(!1),ix=({children:e,disabled:t})=>{const n=a.useContext(cr);return a.createElement(cr.Provider,{value:t??n},e)},Pi=a.createContext(void 0),xj=({children:e,size:t})=>{const n=a.useContext(Pi);return a.createElement(Pi.Provider,{value:t||n},e)};function $j(){const e=a.useContext(cr),t=a.useContext(Pi);return{componentDisabled:e,componentSize:t}}function Sj(e,t,n){yo();const r=e||{},o=r.inherit===!1||!t?{...Ec,hashed:(t==null?void 0:t.hashed)??Ec.hashed,cssVar:t==null?void 0:t.cssVar}:t,s=a.useId();return _i(()=>{var u;if(!e)return t;const i={...o.components};Object.keys(e.components||{}).forEach(d=>{i[d]={...i[d],...e.components[d]}});const l=`css-var-${s.replace(/:/g,"")}`,c={prefix:n==null?void 0:n.prefixCls,...o.cssVar,...r.cssVar,key:((u=r.cssVar)==null?void 0:u.key)||l};return{...o,...r,token:{...o.token,...r.token},components:i,cssVar:c}},[r,o,n==null?void 0:n.prefixCls,s],(i,l)=>i.some((c,u)=>{const d=l[u];return!ho(c,d,!0)}))}const O1=a.createContext(!0);function Cj(e){const t=a.useContext(O1),{children:n}=e,[,r]=Yn(),{motion:o}=r,s=a.useRef(!1);return s.current||(s.current=t!==o),s.current?a.createElement(O1.Provider,{value:o},a.createElement(d5,{motion:o},n)):n}const wj=()=>null,Ej=({iconPrefixCls:e,csp:t})=>(Bz(e,t),null),Ij=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let sf,fN,mN,pN;function Wp(){return sf||$c}function Pj(){return fN||dm}const Nj=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(sf=t),n!==void 0&&(fN=n),"holderRender"in e&&(pN=o),r&&(mN=r)},gN=()=>({getPrefixCls:(e,t)=>t||(e?`${Wp()}-${e}`:Wp()),getIconPrefixCls:Pj,getRootPrefixCls:()=>sf||Wp(),getTheme:()=>mN,holderRender:pN}),Rj=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,affix:s,anchor:i,app:l,form:c,locale:u,componentSize:d,direction:m,space:f,splitter:p,virtual:y,dropdownMatchSelectWidth:b,popupMatchSelectWidth:x,popupOverflow:v,legacyLocale:g,parentContext:h,iconPrefixCls:$,theme:C,componentDisabled:N,segmented:S,statistic:E,spin:w,calendar:R,carousel:P,cascader:T,collapse:M,typography:z,checkbox:B,descriptions:F,divider:L,drawer:j,skeleton:O,steps:A,image:k,layout:_,list:D,mentions:V,modal:W,progress:K,result:q,slider:Y,breadcrumb:ee,masonry:ie,menu:ae,pagination:U,input:Q,inputPassword:Z,inputSearch:ne,textArea:oe,otp:le,empty:re,badge:X,borderBeam:se,radio:ge,rate:de,ribbon:Se,switch:ue,transfer:be,avatar:Ne,message:we,tag:ze,table:he,card:ke,cardMeta:Oe,tabs:Ce,timeline:Me,timePicker:xe,upload:Ee,notification:Ve,tree:qe,colorPicker:me,datePicker:Re,rangePicker:Te,flex:Ue,wave:Ge,dropdown:Fe,warning:et,tour:ve,tooltip:je,popover:ce,popconfirm:Pe,qrcode:pe,floatButton:$e,floatButtonGroup:_e,variant:Ie,inputNumber:Be,treeSelect:te,watermark:ye}=e,Ae=a.useMemo(()=>{var ft;return dt(u)&&Object.prototype.hasOwnProperty.call(u,"default")&&((ft=u.default)!=null&&ft.locale)?u.default:u},[u]),Je=a.useCallback((ft,xt)=>{const{prefixCls:jt}=e;if(xt)return xt;const pt=jt||h.getPrefixCls("");return ft?`${pt}-${ft}`:pt},[h.getPrefixCls,e.prefixCls]),St=$||h.iconPrefixCls||dm,ht=n||h.csp,Nt=Sj(C,h.theme,{prefixCls:Je("")}),yt={csp:ht,autoInsertSpaceInButton:r,alert:o,affix:s,anchor:i,app:l,locale:Ae||g,direction:m,space:f,splitter:p,virtual:y,popupMatchSelectWidth:x??b,popupOverflow:v,getPrefixCls:Je,iconPrefixCls:St,theme:Nt,segmented:S,statistic:E,spin:w,calendar:R,carousel:P,cascader:T,collapse:M,typography:z,checkbox:B,descriptions:F,divider:L,drawer:j,skeleton:O,steps:A,image:k,input:Q,inputPassword:Z,inputSearch:ne,textArea:oe,otp:le,layout:_,list:D,mentions:V,modal:W,progress:K,result:q,slider:Y,breadcrumb:ee,masonry:ie,menu:ae,pagination:U,empty:re,badge:X,borderBeam:se,radio:ge,rate:de,ribbon:Se,switch:ue,transfer:be,avatar:Ne,message:we,tag:ze,table:he,card:ke,cardMeta:Oe,tabs:Ce,timeline:Me,timePicker:xe,upload:Ee,notification:Ve,tree:qe,colorPicker:me,datePicker:Re,rangePicker:Te,flex:Ue,wave:Ge,dropdown:Fe,warning:et,tour:ve,tooltip:je,popover:ce,popconfirm:Pe,qrcode:pe,floatButton:$e,floatButtonGroup:_e,variant:Ie,inputNumber:Be,treeSelect:te,watermark:ye},at={...h};Object.keys(yt).forEach(ft=>{yt[ft]!==void 0&&(at[ft]=yt[ft])}),Ij.forEach(ft=>{const xt=e[ft];xt&&(at[ft]=xt)}),typeof r<"u"&&(at.button={autoInsertSpace:r,...at.button});const Ze=_i(()=>at,at,(ft,xt)=>{const jt=Object.keys(ft),pt=Object.keys(xt);return jt.length!==pt.length||jt.some(qt=>ft[qt]!==xt[qt])}),{layer:De}=a.useContext(Wc),Le=a.useMemo(()=>({prefixCls:St,csp:ht,layer:De?"antd":void 0,zeroRuntime:!!De||(Nt==null?void 0:Nt.zeroRuntime)}),[St,ht,De,Nt==null?void 0:Nt.zeroRuntime]);let Ke=a.createElement(a.Fragment,null,a.createElement(Ej,{iconPrefixCls:St,csp:ht}),a.createElement(wj,{dropdownMatchSelectWidth:b}),t);const lt=a.useMemo(()=>{var ft,xt,jt,pt;return ba(((ft=Zr.Form)==null?void 0:ft.defaultValidateMessages)||{},((jt=(xt=Ze.locale)==null?void 0:xt.Form)==null?void 0:jt.defaultValidateMessages)||{},((pt=Ze.form)==null?void 0:pt.validateMessages)||{},(c==null?void 0:c.validateMessages)||{})},[Ze,c==null?void 0:c.validateMessages]);Object.keys(lt).length>0&&(Ke=a.createElement(XP.Provider,{value:lt},Ke)),Ae&&(Ke=a.createElement(Y5,{locale:Ae,_ANT_MARK__:X5},Ke)),Ke=a.createElement(tx.Provider,{value:Le},Ke),d&&(Ke=a.createElement(xj,{size:d},Ke)),Ke=a.createElement(Cj,null,Ke),je!=null&&je.unique&&(Ke=a.createElement(dN,null,Ke));const _t=a.useMemo(()=>{const{algorithm:ft,token:xt,components:jt,cssVar:pt,...qt}=Nt||{},cn=ft&&(!Array.isArray(ft)||ft.length>0)?tf(ft):Jb,hn={};Object.entries(jt||{}).forEach(([mr,wr])=>{const mt={...wr};"algorithm"in mt&&(mt.algorithm===!0?mt.theme=cn:(Array.isArray(mt.algorithm)||bt(mt.algorithm))&&(mt.theme=tf(mt.algorithm)),delete mt.algorithm),hn[mr]=mt});const Cr={...Wa,...xt};return{...qt,theme:cn,token:Cr,components:hn,override:{override:Cr,...hn},cssVar:pt}},[Nt]);return C&&(Ke=a.createElement(Zb.Provider,{value:_t},Ke)),Ze.warning&&(Ke=a.createElement(QO.Provider,{value:Ze.warning},Ke)),N!==void 0&&(Ke=a.createElement(ix,{disabled:N},Ke)),a.createElement(ct.Provider,{value:Ze},Ke)},to=e=>{const t=a.useContext(ct),n=a.useContext(sx);return a.createElement(Rj,{parentContext:t,legacyLocale:n,...e})};to.ConfigContext=ct;to.SizeContext=Pi;to.config=Nj;to.useConfig=$j;Object.defineProperty(to,"SizeContext",{get:()=>Pi});function Tj(){const[e,t]=a.useState({}),n=a.useCallback((r,o)=>{if(!o){t(i=>{if(!(r in i))return i;const l={...i};return delete l[r],l});return}const s={width:o.offsetWidth,height:o.offsetHeight};t(i=>{const l=i[r];return l&&l.width===s.width&&l.height===s.height?i:{...i,[r]:s}})},[]);return[e,n]}function Mj(e,t,n=0){const[r,o]=Tj(),[s,i,l,c]=a.useMemo(()=>{let u=0,d=0;const m=(t==null?void 0:t.threshold)??0,f=new Map;let p,y;return e.slice().reverse().forEach((b,x)=>{var $,C;const v=String(b.key),g=(($=r[v])==null?void 0:$.height)??0,h=t&&x>0?u+(t.offset??0)-g:u;f.set(v,h),x===0&&(p=g,y=((C=r[v])==null?void 0:C.width)??0),(!t||x<m)&&(d=Math.max(d,h+g)),t?u=h+g:u+=g+n}),[f,d,p,y]},[e,n,r,t]);return[s,o,i,l,c]}const _1=8,z1=3,Oj=e=>{const t={offset:_1,threshold:z1};return e&&typeof e=="object"&&(t.offset=e.offset??_1,t.threshold=e.threshold??z1),[!!e,t]};function _j(e,t,n){const o=Math.max(typeof e=="number"?e:0,0)*1e3,s=vt(t),i=vt(n),[l,c]=a.useState(o>0),u=a.useRef(0),d=a.useRef(null);function m(){const y=Date.now(),b=d.current;b!==null&&(u.current+=y-b),d.current=y}const f=a.useCallback(()=>{m(),c(!1)},[]),p=a.useCallback(()=>{o>0?(d.current=Date.now(),c(!0)):i(0)},[o]);return a.useEffect(()=>{u.current=0,c(o>0)},[o]),a.useEffect(()=>{if(!l)return;let y=null;function b(){m(),u.current>=o?(i(1),s()):(i(Math.min(u.current/o,1)),y=Ct(b))}return b(),()=>{Ct.cancel(y)}},[o,l]),[p,f]}function zj(e){const t=a.useMemo(()=>e===!1?{closeIcon:null,disabled:!0}:typeof e=="object"&&e!==null?e:{},[e]),n=a.useMemo(()=>({...t,closeIcon:"closeIcon"in t?t.closeIcon:"×",disabled:t.disabled??!1}),[t]),r=a.useMemo(()=>Nn(n,!0),[n]);return[!!e,n,r]}const jj=({className:e,style:t,percent:n})=>a.createElement("progress",{className:e,max:"100",value:n,style:t});function af(){return af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},af.apply(this,arguments)}const hN=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,classNames:s,styles:i,components:l,title:c,description:u,icon:d,actions:m,role:f,closable:p,offset:y,notificationIndex:b,stackInThreshold:x,props:v,duration:g=4.5,showProgress:h,hovering:$,pauseOnHover:C=!0,onClick:N,onMouseEnter:S,onMouseLeave:E,onClose:w}=e,[R,P]=a.useState(0),T=`${n}-notice`,[M,z,B]=zj(p),F=vt(()=>{var re;(re=z.onClose)==null||re.call(z),w==null||w()}),[L,j]=a.useState(!1),[O,A]=_j(g,F,P),k=100-Math.min(Math.max(R*100,0),100),_=(l==null?void 0:l.progress)||jj;a.useEffect(()=>{C&&($?A():L||O())},[$,L,A,O,C]);function D(re){j(!0),C&&A(),S==null||S(re)}function V(re){j(!1),C&&!$&&O(),E==null||E(re)}function W(re){re.preventDefault(),re.stopPropagation(),F()}const K=a.useRef(y);y!==void 0&&(K.current=y);const q=a.useRef(b);b!==void 0&&(q.current=b);const Y=y??K.current,ee=b??q.current??0,ie=c!=null?a.createElement("div",{className:H(`${T}-title`,s==null?void 0:s.title),style:i==null?void 0:i.title},c):null,ae=u!=null?a.createElement("div",{className:H(`${T}-description`,s==null?void 0:s.description),style:i==null?void 0:i.description},u):null,U=ie!==null,Q=ae!==null;let Z=null;U&&Q?Z=a.createElement("div",{className:H(`${T}-section`,s==null?void 0:s.section),style:i==null?void 0:i.section},ie,ae):Z=ie||ae,d!=null&&(Z=a.createElement("div",{className:H(`${T}-wrapper`,s==null?void 0:s.wrapper),style:i==null?void 0:i.wrapper},a.createElement("div",{className:H(`${T}-icon`,s==null?void 0:s.icon),style:i==null?void 0:i.icon},d),Z));const ne=m?a.createElement("div",{className:H(`${T}-actions`,s==null?void 0:s.actions),style:i==null?void 0:i.actions},m):null,oe={"--notification-index":ee,...i==null?void 0:i.root,...o};Y!==void 0&&(oe["--notification-y"]=`${Y}px`);const le=f??(v==null?void 0:v.role)??"alert";return a.createElement("div",af({},v,{ref:t,role:le,"data-notification-index":ee,className:H(T,r,s==null?void 0:s.root,{[`${T}-closable`]:M,[`${T}-stack-in-threshold`]:x}),style:oe,onClick:N,onMouseEnter:D,onMouseLeave:V}),Z,ne,M&&a.createElement("button",af({className:H(`${T}-close`,s==null?void 0:s.close),"aria-label":"Close"},B,{style:i==null?void 0:i.close,onClick:W}),z.closeIcon),h&&typeof g=="number"&&g>0&&a.createElement(_,{className:H(`${T}-progress`,s==null?void 0:s.progress),percent:k,style:i==null?void 0:i.progress}))}),yN=a.createContext({}),vN=({children:e,classNames:t})=>{const n=a.useMemo(()=>({classNames:t}),[t]);return a.createElement(yN.Provider,{value:n},e)};function Ey(){return Ey=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ey.apply(this,arguments)}const Bj=a.forwardRef((e,t)=>{const{listPrefixCls:n,height:r,topNoticeHeight:o=0,topNoticeWidth:s=0,className:i,style:l,...c}=e,u=`${n}-content`,d=a.useRef(r),m=d.current,f=r<m?"decrease":"increase";d.current=r;const p={...l,height:r,"--top-notificiation-height":`${o}px`,"--top-notificiation-width":`${s}px`};return a.createElement("div",Ey({},c,{className:H(u,`${u}-${f}`,i),style:p,ref:t}))});function lf(){return lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lf.apply(this,arguments)}const bN=["wrapper","root","icon","section","title","description","actions","close","progress"];function Lj(e){return bN.reduce((t,n)=>(t[n]=H(...e.map(r=>r==null?void 0:r[n])),t),{})}function kj(e){return bN.reduce((t,n)=>(t[n]=Object.assign({},...e.map(r=>r==null?void 0:r[n])),t),{})}function Aj(e,t){const n=String(t),r=e.findIndex(o=>o.key===n);if(r!==-1)return e.length-r-1}const Dj=e=>{const{config:t,components:n,contextClassNames:r,classNames:o,styles:s,className:i,style:l,nodeRef:c,listHovering:u,stackEnabled:d,pauseOnHover:m,setNodeSize:f,onNoticeClose:p,...y}=e,{key:b,placement:x,...v}=t,g=String(b),h=a.useCallback(C=>{f(g,C)},[f,g]),$=$o(c,h);return a.createElement(hN,lf({},v,y,{ref:$,className:H(r==null?void 0:r.notice,t.className,i),style:{...l,...t.style},classNames:Lj([o,t.classNames]),styles:kj([s,t.styles]),components:{...n,...t.components},hovering:d&&u,pauseOnHover:t.pauseOnHover??m,onClose:()=>{var C;(C=t.onClose)==null||C.call(t),p==null||p(b)}}))},xN=e=>{const{configList:t=[],prefixCls:n="rc-notification",pauseOnHover:r,classNames:o,styles:s,components:i,stack:l,motion:c,placement:u,className:d,style:m,onNoticeClose:f,onAllRemoved:p}=e,{classNames:y}=a.useContext(yN),b=a.useMemo(()=>t.map(j=>({config:j,key:String(j.key)})),[t]),x=typeof c=="function"?c(u):c,[v,{offset:g,threshold:h}]=Oj(l),[$,C]=a.useState(!1),N=v&&($||b.length<=h),S=a.useMemo(()=>{if(!(!v||N))return{offset:g,threshold:h}},[N,g,v,h]),[E,w]=a.useState(0),R=a.useRef(null),[P,T,M,z,B]=Mj(t,S,E),F=!!t.length;a.useEffect(()=>{const j=R.current;if(!j)return;const{gap:O,rowGap:A}=window.getComputedStyle(j),k=parseFloat(A||O)||0;w(_=>_===k?_:k)},[F]);const L=`${n}-list`;return a.createElement("div",{className:H(n,L,`${n}-${u}`,y==null?void 0:y.list,d,o==null?void 0:o.list,{[`${n}-stack`]:v,[`${n}-stack-expanded`]:N,[`${L}-hovered`]:$}),onMouseEnter:()=>{C(!0)},onMouseLeave:()=>{C(!1)},style:{...s==null?void 0:s.list,...m}},a.createElement(Bj,{listPrefixCls:L,height:M,topNoticeHeight:z,topNoticeWidth:B,className:o==null?void 0:o.listContent,style:s==null?void 0:s.listContent,ref:R},a.createElement(KP,lf({component:!1,keys:b,motionAppear:!0},x,{onAllRemoved:()=>{u&&(p==null||p(u))}}),({config:j,className:O,style:A},k)=>{const{key:_}=j,D=String(_),V=Aj(b,_),W=v&&V!==void 0&&V<h;return a.createElement(Dj,{key:_,config:j,components:i,contextClassNames:y,classNames:o,styles:s,className:O,style:A,nodeRef:k,prefixCls:n,offset:P.get(D),notificationIndex:V,stackInThreshold:W,listHovering:$,stackEnabled:v,pauseOnHover:r,setNodeSize:T,onNoticeClose:f})})))},Fj=a.forwardRef((e,t)=>{const{prefixCls:n="rc-notification",container:r,motion:o,maxCount:s,pauseOnHover:i,classNames:l,styles:c,components:u,className:d,style:m,onAllRemoved:f,stack:p,renderNotifications:y}=e,[b,x]=a.useState([]),[v,g]=a.useState({}),h=a.useRef(!1);a.useImperativeHandle(t,()=>({open:N=>{x(S=>{var P;let E=[...S];const w=E.findIndex(T=>T.key===N.key),R={...N};return w>=0?(R.times=(((P=S[w])==null?void 0:P.times)??0)+1,E[w]=R):(R.times=0,E.push(R)),s&&s>0&&E.length>s&&(E=E.slice(-s)),E})},close:N=>{x(S=>S.filter(E=>E.key!==N))},destroy:()=>{x([])}})),a.useEffect(()=>{const N={};b.forEach(S=>{const E=S.placement??"topRight";N[E]=N[E]||[],N[E].push(S)}),Object.keys(v).forEach(S=>{N[S]=N[S]||[]}),g(N)},[b]);const $=vt(N=>{g(S=>{const E={...S};return(E[N]||[]).length||delete E[N],E})});if(a.useEffect(()=>{Object.keys(v).length>0?h.current=!0:h.current&&(f==null||f(),h.current=!1)},[v,f]),!r)return null;const C=Object.keys(v);return ss.createPortal(a.createElement(a.Fragment,null,C.map(N=>{const S=a.createElement(xN,{key:N,configList:v[N],placement:N,prefixCls:n,pauseOnHover:i,classNames:l,styles:c,components:u,className:d==null?void 0:d(N),style:m==null?void 0:m(N),motion:o,stack:p,onNoticeClose:E=>{x(w=>w.filter(R=>R.key!==E))},onAllRemoved:$});return y?a.cloneElement(y(S,{prefixCls:n,key:N}),{key:N}):S})),r)}),Hj=()=>document.body;let j1=0;function Vj(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{const o=n[r];o!==void 0&&(t[r]=o)})}),t}function $N(e={}){const{getContainer:t=Hj,motion:n,prefixCls:r,placement:o,closable:s,duration:i,showProgress:l,pauseOnHover:c,classNames:u,styles:d,components:m,maxCount:f,className:p,style:y,onAllRemoved:b,stack:x,renderNotifications:v}=e,g={placement:o,closable:s,duration:i,showProgress:l},[h,$]=a.useState(),C=a.useRef(null),[N,S]=a.useState([]),E=a.createElement(Fj,{container:h,ref:C,prefixCls:r,motion:n,maxCount:f,pauseOnHover:c,classNames:u,styles:d,components:m,className:p,style:y,onAllRemoved:b,stack:x,renderNotifications:v}),w=vt(P=>{const T=Vj(g,P);(T.key===null||T.key===void 0)&&(T.key=`rc-notification-${j1}`,j1+=1),S(M=>[...M,{type:"open",config:T}])}),R=a.useMemo(()=>({open:w,close:P=>{S(T=>[...T,{type:"close",key:P}])},destroy:()=>{S(P=>[...P,{type:"destroy"}])}}),[]);return a.useEffect(()=>{$(t())}),a.useEffect(()=>{C.current&&N.length&&(N.forEach(P=>{var T,M,z;switch(P.type){case"open":(T=C.current)==null||T.open(P.config);break;case"close":(M=C.current)==null||M.close(P.key);break;case"destroy":(z=C.current)==null||z.destroy();break}}),S(P=>{const T=P.filter(M=>!N.includes(M));return T.length===P.length?P:T}))},[N]),[R,E]}const SN=(e,t)=>a.useMemo(()=>{const n=e??t;return n?{...dt(t)?t:{},...dt(n)?n:{}}:!1},[e,t]);function CN(e,t){return{...bn(e)&&{"--notification-top":G(e)},...bn(t)&&{"--notification-bottom":G(t)}}}function Wj(e){return{motionName:`${e}-fade`}}function Kj(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 wN={};Object.defineProperty(wN,"__esModule",{value:!0});var Uj={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"},qj=wN.default=Uj;function Iy(){return Iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iy.apply(this,arguments)}const Gj=(e,t)=>a.createElement(gt,Iy({},e,{ref:t,icon:qj})),ki=a.forwardRef(Gj);function Ur(...e){return e.find(t=>t!==void 0)}const EN=e=>{const{allowClear:t,clearIcon:n,contextAllowClear:r,contextClearIcon:o,defaultAllowClear:s,componentName:i}=e;return a.useMemo(()=>t??r??s?{clearIcon:Ur(dt(t)?t==null?void 0:t.clearIcon:n,dt(r)?r==null?void 0:r.clearIcon:o,J.createElement(Bi,null)),disabled:(dt(t)?t==null?void 0:t.disabled:void 0)??(dt(r)?r==null?void 0:r.disabled:void 0)}:!1,[t,n,r,o,s])},Ua=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},IN={},B1=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!bn(e)&&!bn(t))return null;let n={closeIcon:typeof t!="boolean"&&bn(t)?t:void 0};return dt(e)&&(n={...n,...e}),n},Xj=(e,t,n)=>e===!1?!1:e?Fa(n,t,e):t===!1?!1:t?Fa(n,t):n.closable?n:!1,Yj=(e,t,n)=>{const{closeIconRender:r}=t,{closeIcon:o,...s}=e;let i=o;const l=Nn(s,!0);return bn(i)&&(r&&(i=r(i)),i=J.isValidElement(i)?J.cloneElement(i,{"aria-label":n,...i.props,...l}):J.createElement("span",{"aria-label":n,...l},i)),[i,l]},PN=(e,t,n=IN,r="Close")=>{const o=B1(e==null?void 0:e.closable,e==null?void 0:e.closeIcon),s=B1(t==null?void 0:t.closable,t==null?void 0:t.closeIcon),i={closeIcon:J.createElement(Us,null),...n},l=Xj(o,s,i),c=typeof l!="boolean"?!!(l!=null&&l.disabled):!1;if(l===!1)return[!1,null,c,{}];const[u,d]=Yj(l,i,r);return[!0,u,c,d]},NN=(e,t,n=IN)=>{const[r]=Ar("global",Zr.global);return J.useMemo(()=>PN(e,t,{closeIcon:J.createElement(Us,null),...n},r.close),[e,t,n,r.close])},RN=()=>J.useReducer(e=>e+1,0),Py=(e,t)=>{let n={};return dt(e)&&(n=e),typeof e=="boolean"&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},Qj=(e,t,n,r)=>a.useMemo(()=>{const o=Py(e,r),s=Py(t),i={blur:!1,...s,...o,closable:o.closable??r??s.closable??!0},l=i.blur?`${n}-mask-blur`:void 0;return[i.enabled!==!1,{mask:l},!!i.closable]},[e,t,n,r]),Jj=e=>{const[t,n]=a.useState(null);return[a.useCallback((o,s,i)=>{const l=t??o,c=Math.min(l||0,o),u=Math.max(l||0,o),d=s.slice(c,u+1).map(e),m=d.some(p=>!i.has(p)),f=[];return d.forEach(p=>{m?(i.has(p)||f.push(p),i.add(p)):(i.delete(p),f.push(p))}),n(m?u:null),f},[t]),n]},L1=e=>e==="horizontal"||e==="vertical",Gc=(e,t,n)=>a.useMemo(()=>{const r=L1(e);let o;return r?o=e:typeof t=="boolean"?o=t?"vertical":"horizontal":o=L1(n)?n:"horizontal",[o,o==="vertical"]},[n,e,t]),Zj=()=>{const[e,t]=a.useState([]),n=a.useCallback(r=>(t(o=>[].concat($t(o),[r])),()=>{t(o=>o.filter(s=>s!==r))}),[]);return[e,n]},eB=(e,t)=>(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),tB=(e,t)=>a.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,s){return n[s]?n[s]:Reflect.get(o,s)}}):eB(r,n)}),nB=e=>{const t=a.useRef(e),[,n]=RN();return[()=>t.current,r=>{t.current=r,n()}]},xm=J.createContext(void 0),fs=100,rB=10,ax=fs*rB,TN={Modal:fs,Drawer:fs,Popover:fs,Popconfirm:fs,Tooltip:fs,Tour:fs,FloatButton:fs},oB={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},sB=e=>e in TN,Xc=(e,t)=>{const[,n]=Yn(),r=J.useContext(xm),o=sB(e);let s;if(t!==void 0)s=[t,t];else{let i=r??0;o?i+=(r?0:n.zIndexPopupBase)+TN[e]:i+=oB[e],s=[r===void 0?t:i,i]}return s},iB=e=>{const{motionDurationMid:t,motionEaseInOut:n}=e,r=`${t} ${n}`;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(o=>`${o} ${r}`).join(", ")}},MN=(e,t)=>{const{componentCls:n,antCls:r,colorSuccess:o,colorInfo:s,colorWarning:i,colorError:l,colorTextHeading:c,colorText:u,boxShadow:d,borderRadiusLG:m,fontSize:f,lineHeight:p,notificationBg:y,notificationPadding:b,notificationMarginEdge:x,margin:v,calc:g}=e,h=`${n}-notice`,[$,C]=rn(r,"notification");return{[h]:{position:"absolute",width:t.width,maxWidth:`calc(100vw - ${G(g(x).mul(2).equal())})`,padding:b,pointerEvents:"auto",[$("icon-font-size")]:t.iconFontSize,[$("title-font-size")]:t.titleFontSize,[$("title-line-height")]:t.titleLineHeight,boxSizing:"border-box",color:u,background:y,borderRadius:m,boxShadow:d,fontSize:f,lineHeight:p,wordWrap:"break-word",overflow:"visible",...iB(e),...t.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:g(v).mul(-1).equal(),height:v,content:'""'},...t.typeStyle&&{"&-success":{background:C("color-success-bg",y)},"&-error":{background:C("color-error-bg",y)},"&-info":{background:C("color-info-bg",y)},"&-warning":{background:C("color-warning-bg",y)}}},[`${h}-wrapper`]:{display:"flex",...t.contentStyle},[`${h}-title`]:{color:c,fontSize:C("title-font-size"),lineHeight:C("title-line-height")},[`${h}-icon`]:{flex:"none",fontSize:C("icon-font-size"),lineHeight:1,[`&${h}-icon-success`]:{color:o},[`&${h}-icon-info, &${h}-icon-loading`]:{color:s},[`&${h}-icon-warning`]:{color:i},[`&${h}-icon-error`]:{color:l}}}},ON=e=>{const{componentCls:t,progressBg:n,notificationProgressHeight:r,fontSize:o,borderRadiusLG:s,width:i,notificationIconSize:l,colorText:c,motionDurationMid:u,fontSizeLG:d,lineHeightLG:m,marginSM:f,marginXS:p,paddingLG:y,notificationPaddingVertical:b,notificationPaddingHorizontal:x,notificationCloseButtonSize:v,colorIcon:g,borderRadiusSM:h,colorIconHover:$,colorBgTextHover:C,colorBgTextActive:N}=e,S=`${t}-notice`;return{...MN(e,{width:i,iconFontSize:l,titleFontSize:d,titleLineHeight:m,contentStyle:{alignItems:"flex-start",gap:f},typeStyle:!0}),[`${S}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:p,minWidth:0},[`${S}-description`]:{color:c,fontSize:o},[`${S}-closable`]:{[`${S}-title, ${S}-description`]:{paddingInlineEnd:y},[`${S}-title + ${S}-description`]:{paddingInlineEnd:0}},[`${S}-close`]:{position:"absolute",top:b,insetInlineEnd:x,display:"flex",alignItems:"center",justifyContent:"center",width:v,height:v,color:g,background:"none",border:"none",borderRadius:h,outline:"none",transition:["color","background-color"].map(E=>`${E} ${u}`).join(", "),"&:hover":{color:$,backgroundColor:C},"&:active":{backgroundColor:N},...Br(e)},[`${S}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${G(s)} * 2)`,blockSize:r,border:0,left:{_skip_check_:!0,value:s},right:{_skip_check_:!0,value:s},"&, &::-webkit-progress-bar":{borderRadius:s,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:n},"&::-webkit-progress-value":{borderRadius:s,background:n}},[`${S}-actions`]:{float:"right",marginTop:f}}},aB=e=>{const{componentCls:t,width:n}=e,r=`${t}-notice`,o=`${r}-actions`,s=ON(e);return{[`${r}-pure-panel`]:{width:n,maxWidth:"100%",...s,[r]:{...s[r],position:"relative",width:"100%",maxWidth:"100%"},[o]:{...s[o],float:"none",textAlign:"end"}}}},lB=e=>{const{componentCls:t}=e;return{[t]:ON(e)}},cB=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],uB="--notification-margin-edge",dB=(e,t)=>({blockEnd:e==="top"?"bottom":"top",inlineEnd:t==="left"?"right":"left"}),k1=e=>{const t=(e==null?void 0:e.x)??"0",n=(e==null?void 0:e.y)??"0";return`translate3d(${t}, ${n}, 0) scale(var(--notification-scale, 1))`},fB=(e,t)=>{const n=e.startsWith("bottom")?"bottom":"top",r=e.endsWith("Right")?"right":"left",{blockEnd:o,inlineEnd:s}=dB(n,r),i=e==="top"||e==="bottom",l=e==="top"||e.endsWith("Left")?`-${t}`:t;return{placement:e,vertical:n,blockEnd:o,horizontal:r,inlineEnd:s,motionOffset:i?{x:"-50%",y:l}:{x:l},baseMotionOffset:i?{x:"-50%"}:void 0,isCenterPlacement:i}},mB=e=>e==="bottom"?"column-reverse":"column",pB=e=>{const t=`var(${uB}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},gB=e=>e==="bottom"?"center top":"center bottom",_N=e=>G(e.calc(e.marginXXL).mul(-1).equal()),hB=e=>{const t=_N(e);return`inset(${t} ${t} ${t} ${t})`},yB=(e,t)=>{const n=_N(e);return t==="bottom"?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`},vB=(e,t)=>{const{componentCls:n}=e,{placement:r,vertical:o,blockEnd:s,horizontal:i,inlineEnd:l,isCenterPlacement:c}=t,u=`${n}-notice`,d=`${u}${n}-fade`,m=k1(t.motionOffset),f=k1(t.baseMotionOffset),p=gB(o);return{[`&${n}-${r}`]:{[o]:pB(o),[s]:"auto",display:"flex",flexDirection:mB(o),...c?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[i]:0,[l]:"auto"},[u]:{[o]:"var(--notification-y, 0)",...c?{left:"50%",transform:f}:{[i]:"var(--notification-x, 0)"},transformOrigin:p},[`${d}-appear-prepare, ${d}-enter-prepare`]:{opacity:0,transform:m,transition:"none"},[`${d}-appear-start, ${d}-enter-start`]:{opacity:0,transform:m},[`${d}-appear-active, ${d}-enter-active`]:{opacity:1,transform:f},[`${d}-leave-start`]:{opacity:1,transform:f},[`${d}-leave-active`]:{opacity:0,transform:m},[`&${n}-stack:not(${n}-stack-expanded)`]:{[u]:{clipPath:yB(e,o)},[`${u}[data-notification-index='0']`]:{clipPath:hB(e)}}}}},bB=(e,t=cB)=>{const{notificationMotionOffset:n}=e,r=G(n);return{...t.reduce((o,s)=>({...o,...vB(e,fB(s,r))}),{})}},xB=e=>{const{componentCls:t}=e;return{[t]:bB(e)}},$B=3,zN=e=>({zIndexPopup:e.zIndexPopupBase+ax+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),lx=e=>{const t=e.paddingMD,n=e.paddingLG;return Rt(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:`${G(e.paddingMD)} ${G(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},SB=e=>`inset(${e} ${e} ${e} ${e})`,CB=e=>{const{componentCls:t,motionDurationMid:n,motionDurationSlow:r,motionEaseInOut:o}=e,i=`${`${t}-list`}-content`;return{[i]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:e.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",[`&${i}-decrease`]:{transition:`height calc(${r} * 2) ${o} ${n}`}},[`${t}-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},wB=(e,t)=>{const{componentCls:n,notificationMarginEdge:r}=e,o="--notification-margin-edge",s=`${n}-notice`,i=`${n}-list`,l=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(r).mul(2)).equal():"100%",c=t.stackVisibleCount??$B,u=`${s}:nth-last-child(n + ${c+1})`,d=G(e.calc(e.marginXXL).mul(-1).equal()),m=SB(d);return{[n]:{...Ft(e),[o]:G(r),position:"fixed",zIndex:e.zIndexPopup,width:l,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`${n}-hook-holder`]:{position:"relative"},[`&${i}`]:{maxHeight:"100vh",padding:`var(${o})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...CB(e),[`&${n}-stack`]:{[s]:{clipPath:m},[`&:not(${n}-stack-expanded)`]:{[s]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${s}:not(${s}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[u]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${s}-actions`]:{float:"left"}}}}};Ks(["Notification","PurePanel"],e=>aB(lx(e)),zN);const jN=(e,t)=>{const n=t.itemStyle??lB;return[wB(e,t),n(e),xB(e)]},EB=Tt("Notification",e=>{const t=lx(e);return jN(t,{listWidthKey:"width"})},zN),BN=e=>{const t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),n=e.paddingSM;return Rt(lx(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:n})},LN=e=>({zIndexPopup:e.zIndexPopupBase+ax+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),cx=e=>{const{fontSize:t,fontSizeLG:n,lineHeight:r}=e;return MN(e,{width:"max-content",iconFontSize:n,titleFontSize:t,titleLineHeight:r,contentStyle:{alignItems:"center",gap:e.marginXS},noticeStyle:{zIndex:1}})},IB=e=>{const{componentCls:t}=e,n=`${t}-notice`,r=`${t}-list-content`,o=cx(e),{"&::after":s,...i}=o[n],l={...i,position:"absolute",zIndex:-1,left:"50%",height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none",transform:"translateX(-50%) translateY(100%)",transition:[`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,`transform ${e.motionDurationFast} ${e.motionEaseInOut}`,`width ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(", "),content:'""'};return{[t]:{[`&${t}-stack`]:{[r]:{isolation:"isolate","&::before":{...l,top:`calc(var(--top-notificiation-height) - ${G(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${G(e.margin)})`},"&::after":{...l,zIndex:-2,top:"var(--top-notificiation-height)",width:`calc(var(--top-notificiation-width) - ${G(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[r]:{"&::before, &::after":{opacity:1,transform:"translateX(-50%) translateY(0)"}}}}}}},PB=e=>{const{componentCls:t}=e,n=`${t}-notice`,r=cx(e);return{[`${n}-pure-panel`]:{width:"max-content",maxWidth:"100%",...r,[n]:{...r[n],position:"relative",width:"max-content",maxWidth:"100%"}}}},NB=Ks(["Message","PurePanel"],e=>PB(BN(e)),LN),RB=e=>({[e.componentCls]:cx(e)}),ux=Tt("Message",e=>{const t=BN(e);return[jN(t,{stackVisibleCount:1,itemStyle:RB}),IB(t)]},LN),TB={info:a.createElement(ym,null),success:a.createElement(Uc,null),error:a.createElement(Bi,null),warning:a.createElement(Li,null),loading:a.createElement(ki,null)},dx=(e,t)=>t||e&&TB[e]||null,MB=e=>{const{prefixCls:t,className:n,style:r,type:o,icon:s,content:i,classNames:l,styles:c,...u}=e,{getPrefixCls:d,className:m,style:f,classNames:p,styles:y}=Pt("message"),b=t||d("message"),x=`${b}-notice`,v=on(b),[g,h]=ux(b,v),[$,C]=Ot([p,l],[y,c],{props:e}),N=dx(o,s),S=o?`${x}-icon-${o}`:void 0,E={wrapper:H(o&&`${b}-${o}`,$.wrapper),icon:H(S,$.icon),title:$.title},w={wrapper:C.wrapper,icon:C.icon,title:C.title};return a.createElement("div",{className:H(`${x}-pure-panel`,g,n,h,v,$.root),style:C.root},a.createElement(NB,{prefixCls:b}),a.createElement(hN,{...u,prefixCls:b,className:m,style:{...f,...r},duration:null,icon:N,title:i,classNames:E,styles:w}))};function OB(e,t){return{motionName:t??`${e}-fade`}}function fx(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,s)=>n.then(o,s),r.promise=n,r}const _B=8,zB=3,jB=!1,BB=({children:e,prefixCls:t})=>{const n=on(t),[r,o]=ux(t,n);return a.createElement(vN,{classNames:{list:H(r,o,n)}},e)},LB=(e,{prefixCls:t,key:n})=>a.createElement(BB,{prefixCls:t,key:n},e),kB=a.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:s,duration:i=zB,rtl:l,classNames:c,styles:u,transitionName:d,pauseOnHover:m=!0,stack:f,onAllRemoved:p}=e,{getPrefixCls:y,direction:b,getPopupContainer:x}=Pt("message"),{message:v}=a.useContext(ct),g=r||y("message"),[h,$]=Ot([v==null?void 0:v.classNames,c],[v==null?void 0:v.styles,u],{props:e}),C=()=>CN(n??_B),N=()=>H({[`${g}-rtl`]:l??b==="rtl"}),S=()=>OB(g,d),E=SN(f,jB),[w,R]=$N({prefixCls:g,style:C,className:N,motion:S,closable:!1,duration:i,getContainer:()=>(o==null?void 0:o())||(x==null?void 0:x())||document.body,maxCount:s,onAllRemoved:p,classNames:h,styles:$,renderNotifications:LB,pauseOnHover:m,stack:E});return a.useImperativeHandle(t,()=>({...w,prefixCls:g,message:v})),R});let A1=0;function kN(e){const t=a.useRef(null);return yo(),[a.useMemo(()=>{const r=c=>{var u;(u=t.current)==null||u.close(c)},o=c=>{if(!t.current){const B=()=>{};return B.then=()=>{},B}const{open:u,prefixCls:d,message:m}=t.current,f=(m==null?void 0:m.className)||{},p=(m==null?void 0:m.style)||{},y=`${d}-notice`,{content:b,icon:x,type:v,key:g,className:h,style:$,onClose:C,classNames:N={},styles:S={},...E}=c;let w=g;bn(w)||(A1+=1,w=`antd-message-${A1}`);const R={...e,...c},P=Ka(N,{props:R}),T=Ka(S,{props:R}),M=dx(v,x),z=v?`${y}-icon-${v}`:void 0;return fx(B=>(u({...E,key:w,icon:M,title:b,classNames:{...P,wrapper:H(v&&`${d}-${v}`,P.wrapper),icon:H(z,P.icon)},styles:T,placement:"top",className:H({[`${y}-${v}`]:v},h,f),style:{...p,...$},onClose:()=>{C==null||C(),B()}}),()=>{r(w)}))},i={open:o,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)==null||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,m,f)=>{let p;dt(d)&&"content"in d?p=d:p={content:d};let y,b;bt(m)?b=m:(y=m,b=f);const x={onClose:b,duration:y,...p,type:c};return o(x)};i[c]=u}),i},[]),a.createElement(kB,{key:"message-holder",...e,ref:t})]}function AN(e){return kN(e)}const Kp=()=>({height:0,opacity:0}),D1=e=>({height:(e==null?void 0:e.scrollHeight)??0,opacity:e?1:0}),AB=e=>({height:(e==null?void 0:e.offsetHeight)??0}),Up=(e,t)=>(t==null?void 0:t.deadline)===!0||UP(t)&&t.propertyName==="height",cf=(e=$c)=>({motionName:`${e}-motion-collapse`,onAppearStart:Kp,onEnterStart:Kp,onAppearActive:D1,onEnterActive:D1,onLeaveStart:AB,onLeaveActive:Kp,onAppearEnd:Up,onEnterEnd:Up,onLeaveEnd:Up,motionDeadline:500}),ks=(e,t,n)=>n!==void 0?n:`${e}-${t}`,DB=e=>{const{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:o,motionEaseOutCirc:s,antCls:i}=e,[,l]=rn(i,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:l("color",n),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(c=>`${c} ${s}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(c=>`${c} ${r} ${o}`).join(",")}}}}},FB=jz("Wave",DB),$m=`${$c}-wave-target`,F1=e=>e?Zo(e)&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&e!=="transparent"&&e!=="canvastext":!1;function HB(e,t=null){const n=getComputedStyle(e),{borderTopColor:r,borderColor:o,backgroundColor:s}=n;return t&&F1(n[t])?n[t]:[r,o,s].find(F1)??null}function qp(e){return Number.isNaN(e)?0:e}const VB=e=>{const{className:t,target:n,component:r,colorSource:o}=e,s=a.useRef(null),{getPrefixCls:i}=a.useContext(ct),l=i(),[c]=rn(l,"wave"),[u,d]=a.useState(null),[m,f]=a.useState([]),[p,y]=a.useState(0),[b,x]=a.useState(0),[v,g]=a.useState(0),[h,$]=a.useState(0),[C,N]=a.useState(!1),S={left:p,top:b,width:v,height:h,borderRadius:m.map(R=>`${R}px`).join(" ")};u&&(S[c("color")]=u);function E(){const R=getComputedStyle(n);d(HB(n,o));const P=R.position==="static",{borderLeftWidth:T,borderTopWidth:M}=R;y(P?n.offsetLeft:qp(-Number.parseFloat(T))),x(P?n.offsetTop:qp(-Number.parseFloat(M))),g(n.offsetWidth),$(n.offsetHeight);const{borderTopLeftRadius:z,borderTopRightRadius:B,borderBottomLeftRadius:F,borderBottomRightRadius:L}=R;f([z,B,L,F].map(j=>qp(Number.parseFloat(j))))}if(a.useEffect(()=>{if(n){const R=Ct(()=>{E(),N(!0)});let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(E),P.observe(n)),()=>{Ct.cancel(R),P==null||P.disconnect()}}},[n]),!C)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains($m));return a.createElement(fr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,P)=>{var T;if(P.deadline||UP(P)&&P.propertyName==="opacity"){const M=(T=s.current)==null?void 0:T.parentElement;UI(M).then(()=>{M==null||M.remove()})}return!1}},({className:R},P)=>a.createElement("div",{ref:Tn(s,P),className:H(t,R,{"wave-quick":w}),style:S}))},WB=(e,t)=>{var o;const{component:n}=t;if(n==="Checkbox"&&!((o=e.querySelector("input"))!=null&&o.checked))return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e==null||e.insertBefore(r,e==null?void 0:e.firstChild),Wb(a.createElement(VB,{...t,target:e}),r)},KB=(e,t,n,r)=>{const{wave:o}=a.useContext(ct),[,s,i]=Yn(),l=vt(d=>{const m=e.current;if(o!=null&&o.disabled||!m)return;const f=m.querySelector(`.${$m}`)||m,{showEffect:p}=o||{};(p||WB)(f,{className:t,token:s,component:n,event:d,hashId:i,colorSource:r})}),c=a.useRef(null);return a.useEffect(()=>()=>{Ct.cancel(c.current)},[]),d=>{Ct.cancel(c.current),c.current=Ct(()=>{l(d)})}},H1={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},Sm=e=>{const{children:t,disabled:n,component:r,colorSource:o}=e,{getPrefixCls:s,wave:i}=a.useContext(ct),l=a.useRef(null),c=s("wave"),u=FB(c),d=KB(l,H(c,u),r,o);if(J.useEffect(()=>{const f=l.current;if(!f||f.nodeType!==window.Node.ELEMENT_NODE||n)return;const p=x=>{!Vc(x.target)||!f.getAttribute||f.getAttribute("disabled")||f.disabled||f.className.includes("disabled")&&!f.className.includes("disabled:")||f.getAttribute("aria-disabled")==="true"||f.className.includes("-leave")||d(x)},y=i==null?void 0:i.triggerType,b=y&&y in H1?H1[y]:"click";return f.addEventListener(b,p,!0),()=>{f.removeEventListener(b,p,!0)}},[n,i==null?void 0:i.triggerType]),!J.isValidElement(t))return t??null;const m=is(t)?Tn(Bo(t),l):l;return Fn(t,{ref:m})},Cn=e=>{const t=J.useContext(Pi);return J.useMemo(()=>e?Zo(e)?e??t:bt(e)?e(t):t:t,[e,t])},UB=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},qB=Tt(["Space","Compact"],UB,()=>({}),{resetStyle:!1}),Cm=a.createContext(null),qs=(e,t)=>{const n=a.useContext(Cm),r=a.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:s,isLastItem:i}=n,l=o==="vertical"?"-vertical-":"-";return H(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:s,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},GB=e=>{const{children:t}=e;return a.createElement(Cm.Provider,{value:null},t)},XB=e=>{const{children:t,...n}=e;return a.createElement(Cm.Provider,{value:a.useMemo(()=>n,[n])},t)},mx=e=>{const{getPrefixCls:t,direction:n}=a.useContext(ct),{size:r,direction:o,orientation:s,block:i,prefixCls:l,className:c,rootClassName:u,children:d,vertical:m,...f}=e,[p,y]=Gc(s,m,o),b=Cn(N=>r??N),x=t("space-compact",l),[v]=qB(x),g=H(x,v,{[`${x}-rtl`]:n==="rtl",[`${x}-block`]:i,[`${x}-vertical`]:y},c,u),h=a.useContext(Cm),$=zn(d),C=a.useMemo(()=>$.map((N,S)=>{const E=(N==null?void 0:N.key)||`${x}-item-${S}`;return a.createElement(XB,{key:E,compactSize:b,compactDirection:p,isFirstItem:S===0&&(!h||(h==null?void 0:h.isFirstItem)),isLastItem:S===$.length-1&&(!h||(h==null?void 0:h.isLastItem))},N)}),[$,h,p,b,x]);return $.length===0?null:a.createElement("div",{className:g,...f},C)},DN=a.createContext(void 0),YB=e=>{const{getPrefixCls:t,direction:n}=a.useContext(ct),{prefixCls:r,size:o,className:s,...i}=e,l=t("btn-group",r),[,,c]=Yn(),u=a.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),d=H(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},s,c);return a.createElement(DN.Provider,{value:o},a.createElement("div",{...i,className:d}))},V1=/^[\u4E00-\u9FA5]{2}$/,Ny=V1.test.bind(V1);function px(e){return e==="danger"?{danger:!0}:{type:e}}function Gp(e){return e==="text"||e==="link"}function QB(e,t,n,r){if(!$n(e))return;const o=t?" ":"";return!Zo(e)&&!Rn(e)&&Zo(e.type)&&Ny(e.props.children)?Fn(e,s=>{const i=H(s.className,r)||void 0,l={...n,...s.style};return{...s,children:s.children.split("").join(o),className:i,style:l}}):Zo(e)?J.createElement("span",{className:r,style:n},Ny(e)?e.split("").join(o):e):cN(e)?J.createElement("span",{className:r,style:n},e):Fn(e,s=>({...s,className:H(s.className,r)||void 0,style:{...s.style,...n}}))}function JB(e,t,n,r){let o=!1;const s=[];return J.Children.forEach(e,i=>{const l=Zo(i)||Rn(i);if(o&&l){const c=s.length-1,u=s[c];s[c]=`${u}${i}`}else s.push(i);o=l}),J.Children.map(s,i=>QB(i,t,n,r))}["default","primary","danger"].concat($t(Oo));const FN=a.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:s}=e,i=H(`${s}-icon`,n);return J.createElement("span",{ref:t,className:i,style:r},o)}),W1=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:s}=e,i=H(`${n}-loading-icon`,r);return J.createElement(FN,{prefixCls:n,className:i,style:o,ref:t},J.createElement(ki,{className:s}))}),Xp=()=>({width:0,opacity:0,transform:"scale(0)"}),Yp=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ZB=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:s,mount:i}=e,l=!!n;return r?J.createElement(W1,{prefixCls:t,className:o,style:s}):J.createElement(fr,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:Xp,onAppearActive:Yp,onEnterStart:Xp,onEnterActive:Yp,onLeaveStart:Yp,onLeaveActive:Xp},({className:c,style:u},d)=>{const m={...s,...u};return J.createElement(W1,{prefixCls:t,className:H(o,c),style:m,ref:d})})},gx=e=>{const{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:o}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(s=>`${s} ${r} ${o}`).join(", ")} !important`}},[`${n}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(s=>`${s} ${r} ${o}`).join(", ")} !important`}}}},K1=e=>({animationDuration:e,animationFillMode:"both"}),wm=(e,t,n,r,o=!1)=>{const s=o?"&":"";return{[`
${s}${e}-enter,
${s}${e}-appear
`]:{...K1(r),animationPlayState:"paused"},[`${s}${e}-leave`]:{...K1(r),animationPlayState:"paused"},[`
${s}${e}-enter${e}-enter-active,
${s}${e}-appear${e}-appear-active
`]:{animationName:t,animationPlayState:"running"},[`${s}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},eL=new Ht("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),tL=new Ht("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),HN=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[wm(r,eL,tL,e.motionDurationMid,t),{[`
${o}${r}-enter,
${o}${r}-appear
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},nL=new Ht("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),rL=new Ht("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),oL=new Ht("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),sL=new Ht("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),iL=new Ht("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),aL=new Ht("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),lL=new Ht("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),cL=new Ht("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),uL={"move-up":{inKeyframes:lL,outKeyframes:cL},"move-down":{inKeyframes:nL,outKeyframes:rL},"move-left":{inKeyframes:oL,outKeyframes:sL},"move-right":{inKeyframes:iL,outKeyframes:aL}},uf=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=uL[t];return[wm(r,o,s,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Em=new Ht("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Im=new Ht("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Pm=new Ht("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Nm=new Ht("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),VN=new Ht("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),WN=new Ht("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),KN=new Ht("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),UN=new Ht("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),dL={"slide-up":{inKeyframes:Em,outKeyframes:Im},"slide-down":{inKeyframes:Pm,outKeyframes:Nm},"slide-left":{inKeyframes:VN,outKeyframes:WN},"slide-right":{inKeyframes:KN,outKeyframes:UN}},No=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=dL[t];return[wm(r,o,s,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Sd=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}),hx=new Ht("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),fL=new Ht("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),U1=new Ht("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),q1=new Ht("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),mL=new Ht("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),pL=new Ht("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),gL=new Ht("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),hL=new Ht("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),yL=new Ht("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),vL=new Ht("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),bL=new Ht("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),xL=new Ht("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),$L={zoom:{inKeyframes:hx,outKeyframes:fL},"zoom-big":{inKeyframes:U1,outKeyframes:q1},"zoom-big-fast":{inKeyframes:U1,outKeyframes:q1},"zoom-left":{inKeyframes:gL,outKeyframes:hL},"zoom-right":{inKeyframes:yL,outKeyframes:vL},"zoom-up":{inKeyframes:mL,outKeyframes:pL},"zoom-down":{inKeyframes:bL,outKeyframes:xL}},Yc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=$L[t];return[wm(r,o,s,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},G1=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),SL=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:s}=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}},G1(`${t}-primary`,o),G1(`${t}-danger`,s)]}},Qp=e=>Math.round(Number(e||0)),CL=e=>{if(e instanceof Gt)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:t,...n}=e;return{...n,v:t}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class Pc extends Gt{constructor(t){super(CL(t))}toHsbString(){const t=this.toHsb(),n=Qp(t.s*100),r=Qp(t.b*100),o=Qp(t.h),s=t.a,i=`hsb(${o}, ${n}%, ${r}%)`,l=`hsba(${o}, ${n}%, ${r}%, ${s.toFixed(s===0?0:2)})`;return s===1?i:l}toHsb(){const{v:t,...n}=this.toHsv();return{...n,b:t,a:this.a}}}const wL=e=>e instanceof Pc?e:new Pc(e);wL("#1677ff");const EL=(e,t)=>(e==null?void 0:e.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6))||"",IL=(e,t)=>e?EL(e,t):"";let df=function(){function e(t){var r;if(zi(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)==null?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:s})=>({color:new e(o),percent:s})),this.metaColor=new Pc(this.colors[0].color.metaColor)):this.metaColor=new Pc(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return ji(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return IL(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(o=>`${o.color.toRgbString()} ${o.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,o)=>{const s=n.colors[o];return r.percent===s.percent&&r.color.equals(s.color)}):this.toHexString()===n.toHexString()}}])}();var qN={};Object.defineProperty(qN,"__esModule",{value:!0});var PL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},NL=qN.default=PL;function Ry(){return Ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ry.apply(this,arguments)}const RL=(e,t)=>a.createElement(gt,Ry({},e,{ref:t,icon:NL})),Nc=a.forwardRef(RL);function qr(){return qr=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},qr.apply(null,arguments)}const TL=e=>e instanceof df?e:new df(e),GN=(e,t)=>{const{r:n,g:r,b:o,a:s}=e.toRgb(),i=new Pc(e.toRgbString()).onBackground(t).toHsv();return s<=.5?i.v>.5:n*.299+r*.587+o*.114>192},XN=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return Rt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},YN=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,o=e.contentLineHeight??bd(t),s=e.contentLineHeightSM??bd(n),i=e.contentLineHeightLG??bd(r),l=GN(new df(e.colorBgSolid),"#fff")?"#000":"#fff",c=Oo.reduce((m,f)=>({...m,[`${f}ShadowColor`]:`0 ${G(e.controlOutlineWidth)} 0 ${Tl(e[`${f}1`],e.colorBgContainer)}`}),{}),u=e.colorBgContainerDisabled,d=e.colorBgContainerDisabled;return{...c,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,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:l,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:o,contentLineHeightSM:s,contentLineHeightLG:i,paddingBlock:Math.max((e.controlHeight-t*o)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*s)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*i)/2-e.lineWidth,0),defaultBgDisabled:u,dashedBgDisabled:d}},ML=e=>{const{componentCls:t,antCls:n,lineWidth:r}=e,[o,s]=rn(n,"btn");return{[t]:[{[o("border-width")]:r,[o("border-color")]:"#000",[o("border-color-hover")]:s("border-color"),[o("border-color-active")]:s("border-color"),[o("border-color-disabled")]:s("border-color"),[o("border-style")]:"solid",[o("text-color")]:"#000",[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color"),[o("text-color-disabled")]:s("text-color"),[o("bg-color")]:"#ddd",[o("bg-color-hover")]:s("bg-color"),[o("bg-color-active")]:s("bg-color"),[o("bg-color-disabled")]:e.colorBgContainerDisabled,[o("bg-color-container")]:e.colorBgContainer,[o("shadow")]:"none"},{border:[s("border-width"),s("border-style"),s("border-color")].join(" "),color:s("text-color"),backgroundColor:s("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[s("border-width"),s("border-style"),s("border-color-hover")].join(" "),color:s("text-color-hover"),backgroundColor:s("bg-color-hover")},"&:active":{border:[s("border-width"),s("border-style"),s("border-color-active")].join(" "),color:s("text-color-active"),backgroundColor:s("bg-color-active")}}},{[`&${t}-variant-solid`]:{[o("solid-bg-color")]:s("color-base"),[o("solid-bg-color-hover")]:s("color-hover"),[o("solid-bg-color-active")]:s("color-active"),[o("border-color")]:"transparent",[o("text-color")]:e.colorTextLightSolid,[o("bg-color")]:s("solid-bg-color"),[o("bg-color-hover")]:s("solid-bg-color-hover"),[o("bg-color-active")]:s("solid-bg-color-active"),boxShadow:s("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("border-color")]:s("color-base"),[o("border-color-hover")]:s("color-hover"),[o("border-color-active")]:s("color-active"),[o("bg-color")]:s("bg-color-container"),[o("text-color")]:s("color-base"),[o("text-color-hover")]:s("color-hover"),[o("text-color-active")]:s("color-active"),boxShadow:s("shadow")},[`&${t}-variant-dashed`]:{[o("border-style")]:"dashed",[o("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[o("border-color")]:"transparent",[o("text-color")]:s("color-base"),[o("bg-color")]:s("color-light"),[o("bg-color-hover")]:s("color-light-hover"),[o("bg-color-active")]:s("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[o("border-color")]:"transparent",[o("text-color")]:s("color-base"),[o("text-color-hover")]:s("color-hover"),[o("text-color-active")]:s("color-active"),[o("bg-color")]:"transparent",[o("bg-color-hover")]:"transparent",[o("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[o("bg-color-hover")]:s("color-light"),[o("bg-color-active")]:s("color-light-active")}},{[`&${t}-variant-link`]:{[o("color-base")]:e.colorLink,[o("color-hover")]:e.colorLinkHover,[o("color-active")]:e.colorLinkActive,[o("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[o("color-base")]:e.colorPrimary,[o("color-hover")]:e.colorPrimaryHover,[o("color-active")]:e.colorPrimaryActive,[o("color-light")]:e.colorPrimaryBg,[o("color-light-hover")]:e.colorPrimaryBgHover,[o("color-light-active")]:e.colorPrimaryBorder,[o("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.primaryColor,[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")}},[`&${t}-color-dangerous`]:{[o("color-base")]:e.colorError,[o("color-hover")]:e.colorErrorHover,[o("color-active")]:e.colorErrorActive,[o("color-light")]:e.colorErrorBg,[o("color-light-hover")]:e.colorErrorBgFilledHover,[o("color-light-active")]:e.colorErrorBgActive,[o("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.dangerColor,[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")}},[`&${t}-color-default`]:{[o("solid-bg-color")]:e.colorBgSolid,[o("solid-bg-color-hover")]:e.colorBgSolidHover,[o("solid-bg-color-active")]:e.colorBgSolidActive,[o("color-base")]:e.defaultBorderColor,[o("color-hover")]:e.defaultHoverBorderColor,[o("color-active")]:e.defaultActiveBorderColor,[o("color-light")]:e.colorFillTertiary,[o("color-light-hover")]:e.colorFillSecondary,[o("color-light-active")]:e.colorFill,[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[o("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[o("text-color")]:e.solidTextColor,[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("bg-color-container")]:e.defaultBg,[o("bg-color-hover")]:e.defaultHoverBg,[o("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[o("text-color")]:e.textTextColor,[o("text-color-hover")]:e.textTextHoverColor,[o("text-color-active")]:e.textTextActiveColor,[o("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultGhostColor,[o("border-color")]:e.defaultGhostBorderColor}}}},Oo.map(i=>{const l=e[`${i}6`],c=e[`${i}1`],u=e[`${i}Hover`],d=e[`${i}2`],m=e[`${i}3`],f=e[`${i}Active`],p=e[`${i}ShadowColor`];return{[`&${t}-color-${i}`]:{[o("color-base")]:l,[o("color-hover")]:u,[o("color-active")]:f,[o("color-light")]:c,[o("color-light-hover")]:d,[o("color-light-active")]:m,[o("shadow")]:p}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:s("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[o("bg-color")]:e.ghostBg,[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg,[o("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg}}}]}},OL=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:s,motionEaseInOut:i,iconGap:l,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...Sd(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Kc(),[`${t}-icon`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",[n]:{verticalAlign:"middle","&:before":{content:'"\\a0"',display:"inline-block",width:0}}},"> a":{color:"currentColor"},"&:not(:disabled)":Br(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:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(u=>`${u} ${s} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(l).mul(-1).equal()}}}}}},_L=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),yx=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:s,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:c,buttonIconOnlyFontSize:u}=e;return[{[t]:{fontSize:o,height:r,padding:`${G(c)} ${G(i)}`,borderRadius:s,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:u}}}},{[`${n}${n}-circle${t}`]:_L(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},zL=e=>{const t=Rt(e,{fontSize:e.contentFontSize});return yx(t,e.componentCls)},jL=e=>{const t=Rt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return yx(t,`${e.componentCls}-sm`)},BL=e=>{const t=Rt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return yx(t,`${e.componentCls}-lg`)},LL=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},kL=Tt("Button",e=>{const t=XN(e);return[OL(t),zL(t),jL(t),BL(t),LL(t),ML(t),SL(t)]},YN,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function AL(e,t,n,r){const{focusElCls:o,focus:s,borderElCls:i}=n,l=i?"> *":"",c=l?` ${l}`:"",u=f=>f.filter(Boolean).map(p=>`&:${p}${c}`).join(","),d=u(["hover",o?`hover${o}`:null]),m=u([s?"focus":null,"active"]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[m]:{zIndex:3},[d]:{zIndex:4},...o?{[`&${o}`]:{zIndex:3}}:{},[`&[disabled] ${l}`]:{zIndex:0}}}}function DL(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Qc(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,s=`${o}-compact`;return{[s]:{...AL(e,s,t,o),...DL(o,s,t)}}}function FL(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":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function HL(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 VL(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...FL(e,t,e.componentCls),...HL(e.componentCls,t)}}}const WL=e=>{const{antCls:t,componentCls:n,lineWidth:r,calc:o,colorBgContainer:s}=e,i=`${n}-variant-solid:not([disabled])`,l=o(r).mul(-1).equal(),[c,u]=rn(t,"btn"),d=m=>({[`${n}-compact${m?"-vertical":""}-item`]:{[c("compact-connect-border-color")]:u("bg-color-hover"),[`&${i}`]:{transition:"none",[`& + ${i}:before`]:[{position:"absolute",backgroundColor:u("compact-connect-border-color"),content:'""'},m?{top:l,insetInline:l,height:r}:{insetBlock:l,insetInlineStart:l,width:r}],"&:hover:before":{display:"none"}}}});return[d(),d(!0),{[`${i}${n}-color-default`]:{[c("compact-connect-border-color")]:`color-mix(in srgb, ${u("bg-color-hover")} 75%, ${s})`}}]},KL=Ks(["Button","compact"],e=>{const t=XN(e);return[Qc(t),VL(t),WL(t)]},YN);function UL(e){if(dt(e)){let t=e==null?void 0:e.delay;return t=Rn(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const qL={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},GL=J.forwardRef((e,t)=>{const{_skipSemantic:n,loading:r=!1,prefixCls:o,color:s,variant:i,type:l,danger:c=!1,shape:u,size:d,disabled:m,className:f,rootClassName:p,children:y,icon:b,iconPosition:x,iconPlacement:v,ghost:g=!1,block:h=!1,htmlType:$="button",classNames:C,styles:N,style:S,autoInsertSpace:E,autoFocus:w,...R}=e,P=zn(y),T=l||"default",{getPrefixCls:M,direction:z,autoInsertSpace:B,className:F,style:L,classNames:j,styles:O,loadingIcon:A,shape:k,color:_,variant:D}=Pt("button"),V=u||k||"default",[W,K]=a.useMemo(()=>{if(s&&i)return[s,i];if(l||c){const ce=qL[T]||[];return c?["danger",ce[1]]:ce}return i==="solid"?["primary",i]:_&&D?[_,D]:D==="solid"?["primary",D]:["default","outlined"]},[s,i,l,c,_,D,T]),[q,Y]=a.useMemo(()=>g&&K==="solid"?[W,"outlined"]:[W,K],[W,K,g]),ee=q==="danger",ie=ee?"dangerous":q,ae=E??B??!0,U=M("btn",o),[Q,Z]=kL(U),ne=a.useContext(cr),oe=m??ne,le=a.useContext(DN),re=a.useMemo(()=>UL(r),[r]),[X,se]=a.useState(re.loading),[ge,de]=a.useState(!1),Se=a.useRef(null),ue=$o(t,Se),be=P.length===1&&!b&&!Gp(Y),Ne=a.useRef(!0);J.useEffect(()=>(Ne.current=!1,()=>{Ne.current=!0}),[]),It(()=>{let ce=null;re.delay>0?ce=setTimeout(()=>{ce=null,se(!0)},re.delay):se(re.loading);function Pe(){ce&&(clearTimeout(ce),ce=null)}return Pe},[re.delay,re.loading]),a.useEffect(()=>{if(!Se.current||!ae)return;const ce=Se.current.textContent||"";be&&Ny(ce)?ge||de(!0):ge&&de(!1)}),a.useEffect(()=>{var ce;w&&((ce=Se.current)==null||ce.focus())},[]);const we=J.useCallback(ce=>{var Pe;if(X||oe){ce.preventDefault();return}(Pe=e.onClick)==null||Pe.call(e,("href"in e,ce))},[e.onClick,X,oe]),{compactSize:ze,compactItemClassnames:he}=qs(U,z),ke=Cn(ce=>d??ze??le??ce),Oe=X?"loading":b,Ce=v??x??"start",Me=Dt(R,["navigate"]),xe={...e,type:T,color:q,variant:Y,danger:ee,shape:V,size:ke,disabled:oe,loading:X,iconPlacement:Ce},Ee=Mt(L),Ve=Mt(S),[qe,me]=Ot([n?void 0:j,C],[n?void 0:O,Ee,N,Ve],{props:xe}),Re=H(U,Q,Z,{[`${U}-${V}`]:V!=="default"&&V!=="square"&&V,[`${U}-${T}`]:T,[`${U}-dangerous`]:c,[`${U}-color-${ie}`]:ie,[`${U}-variant-${Y}`]:Y,[`${U}-lg`]:ke==="large",[`${U}-sm`]:ke==="small",[`${U}-icon-only`]:!y&&y!==0&&!!Oe,[`${U}-background-ghost`]:g&&!Gp(Y),[`${U}-loading`]:X,[`${U}-two-chinese-chars`]:ge&&ae&&!X,[`${U}-block`]:h,[`${U}-rtl`]:z==="rtl",[`${U}-icon-end`]:Ce==="end"},he,f,p,F,qe.root),Te={className:qe.icon,style:me.icon},Ue=ce=>J.createElement(FN,{prefixCls:U,...Te},ce),Ge=J.createElement(ZB,{existIcon:!!b,prefixCls:U,loading:X,mount:Ne.current,...Te}),Fe=dt(r)&&r.icon||A;let et;b&&!X?et=Ue(b):r&&Fe?et=Ue(Fe):et=Ge;const ve=$n(y)?JB(y,be&&ae,me.content,qe.content):null;if(Me.href!==void 0)return J.createElement("a",{...Me,className:H(Re,{[`${U}-disabled`]:oe}),href:oe?void 0:Me.href,style:me.root,onClick:we,ref:ue,tabIndex:oe?-1:0,"aria-disabled":oe},et,ve);let je=J.createElement("button",{...R,type:$,className:Re,style:me.root,onClick:we,disabled:oe,ref:ue},et,ve,he&&J.createElement(KL,{prefixCls:U}));return Gp(Y)||(je=J.createElement(Sm,{component:"Button",disabled:X},je)),je}),Xe=GL;Xe.Group=YB;Xe.__ANT_BUTTON=!0;const vx=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:s,autoFocus:i,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,m=a.useRef(!1),f=a.useRef(null),[p,y]=_b(!1),b=(...g)=>{s==null||s(...g)};a.useEffect(()=>{let g=null;return i&&(g=setTimeout(()=>{var h;(h=f.current)==null||h.focus({preventScroll:!0})})),()=>{g&&clearTimeout(g)}},[i]);const x=g=>{Vp(g)&&(y(!0),g.then((...h)=>{y(!1,!0),b.apply(void 0,h),m.current=!1},h=>{if(y(!1,!0),m.current=!1,!(c!=null&&c()))return Promise.reject(h)}))},v=g=>{if(m.current)return;if(m.current=!0,!d){b();return}let h;if(l){if(h=d(g),u&&!Vp(h)){m.current=!1,b(g);return}}else if(d.length)h=d(s),m.current=!1;else if(h=d(),!Vp(h)){b();return}x(h)};return a.createElement(Xe,{...px(t),onClick:v,loading:p,prefixCls:r,...o,ref:f},n)},Jc=J.createContext({}),{Provider:QN}=Jc,X1=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:s,close:i,onCancel:l,onConfirm:c,onClose:u}=a.useContext(Jc);return o?J.createElement(vx,{isSilent:r,actionFn:l,close:(...d)=>{i==null||i(...d),c==null||c(!1),u==null||u()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${s}-btn`},n):null},Y1=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:s,okType:i,onConfirm:l,onOk:c,onClose:u}=a.useContext(Jc);return J.createElement(vx,{isSilent:n,type:i||"primary",actionFn:c,close:(...d)=>{t==null||t(...d),l==null||l(!0),u==null||u()},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},s)},JN=a.createContext({});function Q1(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function J1(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function XL(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=J1(o),n.top+=J1(o,!0),n}const YL=a.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function ff(){return ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ff.apply(this,arguments)}const ZN=J.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,title:s,ariaId:i,footer:l,closable:c,closeIcon:u,onClose:d,children:m,bodyStyle:f,bodyProps:p,modalRender:y,onMouseDown:b,onMouseUp:x,holderRef:v,visible:g,forceRender:h,width:$,height:C,classNames:N,styles:S,isFixedPos:E,focusTrap:w}=e,{panel:R}=J.useContext(JN),P=a.useRef(null),T=$o(v,R,P),[M]=PO(g&&E&&w!==!1,()=>P.current);J.useImperativeHandle(t,()=>({focus:()=>{var _;(_=P.current)==null||_.focus({preventScroll:!0})}}));const z={};$!==void 0&&(z.width=$),C!==void 0&&(z.height=C);const B=l?J.createElement("div",{className:H(`${n}-footer`,N==null?void 0:N.footer),style:{...S==null?void 0:S.footer}},l):null,F=s?J.createElement("div",{className:H(`${n}-header`,N==null?void 0:N.header),style:{...S==null?void 0:S.header}},J.createElement("div",{className:H(`${n}-title`,N==null?void 0:N.title),id:i,style:{...S==null?void 0:S.title}},s)):null,L=a.useMemo(()=>typeof c=="object"&&c!==null?c:c?{closeIcon:u??J.createElement("span",{className:`${n}-close-x`})}:{},[c,u,n]),j=Nn(L,!0),O=typeof c=="object"&&c.disabled,A=c?J.createElement("button",ff({type:"button",onClick:d,"aria-label":"Close"},j,{className:H(`${n}-close`,N==null?void 0:N.close),disabled:O,style:S==null?void 0:S.close}),L.closeIcon):null,k=J.createElement("div",{className:H(`${n}-container`,N==null?void 0:N.container),style:S==null?void 0:S.container},A,F,J.createElement("div",ff({className:H(`${n}-body`,N==null?void 0:N.body),style:{...f,...S==null?void 0:S.body}},p),m),B);return J.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?i:null,"aria-modal":"true",ref:T,style:{...o,...z},className:H(n,r),onMouseDown:b,onMouseUp:x,tabIndex:-1,onFocus:_=>{M(_.target)}},J.createElement(YL,{shouldUpdate:g||h},y?y(k):k))});function Ty(){return Ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ty.apply(this,arguments)}const QL=a.forwardRef((e,t)=>{const{prefixCls:n,title:r,style:o,className:s,visible:i,forceRender:l,destroyOnHidden:c,motionName:u,ariaId:d,onVisibleChanged:m,mousePosition:f}=e,p=a.useRef(null),y=a.useRef(null);a.useImperativeHandle(t,()=>({...y.current,inMotion:p.current.inMotion,enableMotion:p.current.enableMotion}));const[b,x]=a.useState(),v={};b&&(v.transformOrigin=b);function g(){var $;if(!(($=p.current)!=null&&$.nativeElement))return;const h=XL(p.current.nativeElement);x(f&&(f.x||f.y)?`${f.x-h.left}px ${f.y-h.top}px`:"")}return a.createElement(fr,{visible:i,onVisibleChanged:m,onAppearPrepare:g,onEnterPrepare:g,forceRender:l,motionName:u,removeOnLeave:c,ref:p},({className:h,style:$},C)=>a.createElement(ZN,Ty({},e,{ref:y,title:r,ariaId:d,prefixCls:n,holderRef:C,style:{...$,...o,...v},className:H(s,h)})))});function My(){return My=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},My.apply(this,arguments)}const JL=e=>{const{prefixCls:t,style:n,visible:r,maskProps:o,motionName:s,className:i}=e;return a.createElement(fr,{key:"mask",visible:r,motionName:s,leavedClassName:`${t}-mask-hidden`},({className:l,style:c},u)=>a.createElement("div",My({ref:u,style:{...c,...n},className:H(`${t}-mask`,l,i)},o)))};function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ql.apply(this,arguments)}const ZL=e=>{const{prefixCls:t="rc-dialog",zIndex:n,visible:r=!1,focusTriggerAfterClose:o=!0,wrapStyle:s,wrapClassName:i,wrapProps:l,onClose:c,afterOpenChange:u,afterClose:d,transitionName:m,animation:f,closable:p=!0,mask:y=!0,maskTransitionName:b,maskAnimation:x,maskClosable:v=!0,maskStyle:g,maskProps:h,rootClassName:$,rootStyle:C,classNames:N,styles:S}=e,E=a.useRef(null),w=a.useRef(null),R=a.useRef(null),[P,T]=a.useState(r),[M,z]=a.useState(!1),B=jo();function F(){Th(w.current,document.activeElement)||(E.current=document.activeElement)}function L(){var W;Th(w.current,document.activeElement)||(W=R.current)==null||W.focus()}function j(){if(T(!1),y&&E.current&&o){try{E.current.focus({preventScroll:!0})}catch{}E.current=null}P&&(d==null||d())}function O(W){W?L():j(),u==null||u(W)}function A(W){c==null||c(W)}const k=a.useRef(!1);let _=null;v&&(_=W=>{w.current===W.target&&k.current&&A(W)});function D(W){k.current=W.target===w.current}a.useEffect(()=>{if(r){if(k.current=!1,T(!0),F(),w.current){const W=getComputedStyle(w.current);z(W.position==="fixed")}}else P&&R.current.enableMotion()&&!R.current.inMotion()&&j()},[r]);const V={zIndex:n,...s,...S==null?void 0:S.wrapper,display:P?null:"none"};return a.createElement("div",ql({className:H(`${t}-root`,$),style:C},Nn(e,{data:!0})),a.createElement(JL,{prefixCls:t,visible:y&&r,motionName:Q1(t,b,x),style:{zIndex:n,...g,...S==null?void 0:S.mask},maskProps:h,className:N==null?void 0:N.mask}),a.createElement("div",ql({className:H(`${t}-wrap`,i,N==null?void 0:N.wrapper),ref:w,onClick:_,onMouseDown:D,style:V},l),a.createElement(QL,ql({},e,{isFixedPos:M,ref:R,closable:p,ariaId:B,prefixCls:t,visible:r&&P,onClose:A,onVisibleChanged:O,motionName:Q1(t,m,f)}))))};function Oy(){return Oy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oy.apply(this,arguments)}const ek=e=>{const{visible:t,getContainer:n,forceRender:r,destroyOnHidden:o=!1,afterClose:s,closable:i,panelRef:l,keyboard:c=!0,scrollLock:u=!0,onClose:d}=e,{scrollLock:m,...f}=e,[p,y]=a.useState(t),b=a.useMemo(()=>({panel:l}),[l]),x=({top:v,event:g})=>{if(v&&c){g.stopPropagation(),d==null||d(g);return}};return a.useEffect(()=>{t&&y(!0)},[t]),!r&&o&&!p?null:a.createElement(JN.Provider,{value:b},a.createElement(vm,{open:t||r||p,onEsc:x,autoDestroy:!1,getContainer:n,autoLock:u&&(t||p)},a.createElement(ZL,Oy({},f,{destroyOnHidden:o,afterClose:()=>{const v=i&&typeof i=="object"?i:{},{afterClose:g}=v||{};g==null||g(),s==null||s(),y(!1)}}))))},fi="RC_FORM_INTERNAL_HOOKS",Jt=()=>{fn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ni=a.createContext({getFieldValue:Jt,getFieldsValue:Jt,getFieldError:Jt,getFieldWarning:Jt,getFieldsError:Jt,isFieldsTouched:Jt,isFieldTouched:Jt,isFieldValidating:Jt,isFieldsValidating:Jt,resetFields:Jt,setFields:Jt,setFieldValue:Jt,setFieldsValue:Jt,validateFields:Jt,submit:Jt,getInternalHooks:()=>(Jt(),{dispatch:Jt,initEntityValue:Jt,registerField:Jt,useSubscribe:Jt,setInitialValues:Jt,destroyForm:Jt,setCallbacks:Jt,registerWatch:Jt,getFields:Jt,setValidateMessages:Jt,setPreserve:Jt,getInitialValue:Jt})}),Rc=a.createContext(null);function _y(e){return e==null?[]:Array.isArray(e)?e:[e]}function tk(e){return e&&!!e._init}function zy(){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(){const e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}const Jp=zy(),nk=/%[sdj%]/g;let rk=()=>{};function jy(e){if(!e||!e.length)return null;const t={};return e.forEach(n=>{const r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Or(e,...t){let n=0;const r=t.length;return typeof e=="function"?e.apply(null,t):typeof e=="string"?e.replace(nk,s=>{if(s==="%%")return"%";if(n>=r)return s;switch(s){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch{return"[Circular]"}break;default:return s}}):e}function ok(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function jn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||ok(t)&&typeof e=="string"&&!e)}function sk(e,t,n){const r=[];let o=0;const s=e.length;function i(l){r.push(...l||[]),o++,o===s&&n(r)}e.forEach(l=>{t(l,i)})}function Z1(e,t,n){let r=0;const o=e.length;function s(i){if(i&&i.length){n(i);return}const l=r;r=r+1,l<o?t(e[l],s):n([])}s([])}function ik(e){const t=[];return Object.keys(e).forEach(n=>{t.push(...e[n]||[])}),t}class eC extends Error{constructor(n,r){super("Async Validation Error");fe(this,"errors");fe(this,"fields");this.errors=n,this.fields=r}}function ak(e,t,n,r,o){if(t.first){const m=new Promise((f,p)=>{const y=x=>(r(x),x.length?p(new eC(x,jy(x))):f(o)),b=ik(e);Z1(b,n,y)});return m.catch(f=>f),m}const s=t.firstFields===!0?Object.keys(e):t.firstFields||[],i=Object.keys(e),l=i.length;let c=0;const u=[],d=new Promise((m,f)=>{const p=y=>{if(u.push.apply(u,y),c++,c===l)return r(u),u.length?f(new eC(u,jy(u))):m(o)};i.length||(r(u),m(o)),i.forEach(y=>{const b=e[y];s.indexOf(y)!==-1?Z1(b,n,p):sk(b,n,p)})});return d.catch(m=>m),d}function lk(e){return!!(e&&e.message!==void 0)}function ck(e,t){let n=e;for(let r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function tC(e,t){return n=>{let r;return e.fullFields?r=ck(t,e.fullFields):r=t[n.field||e.fullField],lk(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 nC(e,t){if(t){for(const n in t)if(t.hasOwnProperty(n)){const r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]={...e[n],...r}:e[n]=r}}return e}const Yi="enum",uk=(e,t,n,r,o)=>{e[Yi]=Array.isArray(e[Yi])?e[Yi]:[],e[Yi].indexOf(t)===-1&&r.push(Or(o.messages[Yi],e.fullField,e[Yi].join(", ")))},dk=(e,t,n,r,o)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Or(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern=="string"&&(new RegExp(e.pattern).test(t)||r.push(Or(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},fk=(e,t,n,r,o)=>{const s=typeof e.len=="number",i=typeof e.min=="number",l=typeof e.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;let u=t,d=null;const m=typeof t=="number",f=typeof t=="string",p=Array.isArray(t);if(m?d="number":f?d="string":p&&(d="array"),!d)return!1;p&&(u=t.length),f&&(u=t.replace(c,"_").length),s?u!==e.len&&r.push(Or(o.messages[d].len,e.fullField,e.len)):i&&!l&&u<e.min?r.push(Or(o.messages[d].min,e.fullField,e.min)):l&&!i&&u>e.max?r.push(Or(o.messages[d].max,e.fullField,e.max)):i&&l&&(u<e.min||u>e.max)&&r.push(Or(o.messages[d].range,e.fullField,e.min,e.max))},eR=(e,t,n,r,o,s)=>{e.required&&(!n.hasOwnProperty(e.field)||jn(t,s||e.type))&&r.push(Or(o.messages.required,e.fullField))};let Du;const mk=()=>{if(Du)return Du;const e="[a-fA-F\\d:]",t=C=>C&&C.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${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}",i=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${n}|:${r}|:)`,`(?:${r}:){5}(?::${n}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${n}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${n}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${n}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${n}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${n}|(?::${r}){1,7}|:))`].join("|")})(?:%[0-9a-zA-Z]{1,})?`,l=new RegExp(`(?:^${n}$)|(?:^${i}$)`),c=new RegExp(`^${n}$`),u=new RegExp(`^${i}$`),d=C=>C&&C.exact?l:new RegExp(`(?:${t(C)}${n}${t(C)})|(?:${t(C)}${i}${t(C)})`,"g");d.v4=C=>C&&C.exact?c:new RegExp(`${t(C)}${n}${t(C)}`,"g"),d.v6=C=>C&&C.exact?u:new RegExp(`${t(C)}${i}${t(C)}`,"g");const m="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",p=d.v4().source,y=d.v6().source,$=`(?:${m}|www\\.)${f}(?:localhost|${p}|${y}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return Du=new RegExp(`(?:^${$}$)`,"i"),Du},Zp={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},Ml={integer(e){return Ml.number(e)&&parseInt(e,10)===e},float(e){return Ml.number(e)&&!Ml.integer(e)},array(e){return Array.isArray(e)},regexp(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number(e){return isNaN(e)?!1:typeof e=="number"},object(e){return typeof e=="object"&&!Ml.array(e)},method(e){return typeof e=="function"},email(e){return typeof e=="string"&&e.length<=320&&!!e.match(Zp.email)},tel(e){return typeof e=="string"&&e.length<=32&&!!e.match(Zp.tel)},url(e){return typeof e=="string"&&e.length<=2048&&!!e.match(mk())},hex(e){return typeof e=="string"&&!!e.match(Zp.hex)}},pk=(e,t,n,r,o)=>{if(e.required&&t===void 0){eR(e,t,n,r,o);return}const s=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],i=e.type;s.indexOf(i)>-1?Ml[i](t)||r.push(Or(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(Or(o.messages.types[i],e.fullField,e.type))},gk=(e,t,n,r,o)=>{(/^\s+$/.test(t)||t==="")&&r.push(Or(o.messages.whitespace,e.fullField))},At={required:eR,whitespace:gk,type:pk,range:fk,enum:uk,pattern:dk},hk=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jn(t)&&!e.required)return n();At.required(e,t,r,s,o)}n(s)},yk=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();At.required(e,t,r,s,o,"array"),t!=null&&(At.type(e,t,r,s,o),At.range(e,t,r,s,o))}n(s)},vk=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jn(t)&&!e.required)return n();At.required(e,t,r,s,o),t!==void 0&&At.type(e,t,r,s,o)}n(s)},bk=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jn(t,"date")&&!e.required)return n();if(At.required(e,t,r,s,o),!jn(t,"date")){let l;t instanceof Date?l=t:l=new Date(t),At.type(e,l,r,s,o),l&&At.range(e,l.getTime(),r,s,o)}}n(s)},xk="enum",$k=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jn(t)&&!e.required)return n();At.required(e,t,r,s,o),t!==void 0&&At[xk](e,t,r,s,o)}n(s)},Sk=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jn(t)&&!e.required)return n();At.required(e,t,r,s,o),t!==void 0&&(At.type(e,t,r,s,o),At.range(e,t,r,s,o))}n(s)},Ck=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jn(t)&&!e.required)return n();At.required(e,t,r,s,o),t!==void 0&&(At.type(e,t,r,s,o),At.range(e,t,r,s,o))}n(s)},wk=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jn(t)&&!e.required)return n();At.required(e,t,r,s,o),t!==void 0&&At.type(e,t,r,s,o)}n(s)},Ek=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===""&&(t=void 0),jn(t)&&!e.required)return n();At.required(e,t,r,s,o),t!==void 0&&(At.type(e,t,r,s,o),At.range(e,t,r,s,o))}n(s)},Ik=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jn(t)&&!e.required)return n();At.required(e,t,r,s,o),t!==void 0&&At.type(e,t,r,s,o)}n(s)},Pk=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jn(t,"string")&&!e.required)return n();At.required(e,t,r,s,o),jn(t,"string")||At.pattern(e,t,r,s,o)}n(s)},Nk=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jn(t)&&!e.required)return n();At.required(e,t,r,s,o),jn(t)||At.type(e,t,r,s,o)}n(s)},Rk=(e,t,n,r,o)=>{const s=[],i=Array.isArray(t)?"array":typeof t;At.required(e,t,r,s,o,i),n(s)},Tk=(e,t,n,r,o)=>{const s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jn(t,"string")&&!e.required)return n();At.required(e,t,r,s,o,"string"),jn(t,"string")||(At.type(e,t,r,s,o),At.range(e,t,r,s,o),At.pattern(e,t,r,s,o),e.whitespace===!0&&At.whitespace(e,t,r,s,o))}n(s)},Fu=(e,t,n,r,o)=>{const s=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jn(t,s)&&!e.required)return n();At.required(e,t,r,i,o,s),jn(t,s)||At.type(e,t,r,i,o)}n(i)},bl={string:Tk,method:wk,number:Ek,boolean:vk,regexp:Nk,integer:Ck,float:Sk,array:yk,object:Ik,enum:$k,pattern:Pk,date:bk,url:Fu,hex:Fu,email:Fu,tel:Fu,required:Rk,any:hk},vs=class vs{constructor(t){fe(this,"rules",null);fe(this,"_messages",Jp);this.define(t)}define(t){if(!t)throw new Error("Cannot configure a schema with no rules");if(typeof t!="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(n=>{const r=t[n];this.rules[n]=Array.isArray(r)?r:[r]})}messages(t){return t&&(this._messages=nC(zy(),t)),this._messages}validate(t,n={},r=()=>{}){let o=t,s=n,i=r;if(typeof s=="function"&&(i=s,s={}),!this.rules||Object.keys(this.rules).length===0)return i&&i(null,o),Promise.resolve(o);function l(m){let f=[],p={};function y(b){Array.isArray(b)?f=f.concat(...b):f.push(b)}for(let b=0;b<m.length;b++)y(m[b]);f.length?(p=jy(f),i(f,p)):i(null,o)}if(s.messages){let m=this.messages();m===Jp&&(m=zy()),nC(m,s.messages),s.messages=m}else s.messages=this.messages();const c={};(s.keys||Object.keys(this.rules)).forEach(m=>{const f=this.rules[m];let p=o[m];f.forEach(y=>{let b=y;typeof b.transform=="function"&&(o===t&&(o={...o}),p=o[m]=b.transform(p),p!=null&&(b.type=b.type||(Array.isArray(p)?"array":typeof p))),typeof b=="function"?b={validator:b}:b={...b},b.validator=this.getValidationMethod(b),b.validator&&(b.field=m,b.fullField=b.fullField||m,b.type=this.getType(b),c[m]=c[m]||[],c[m].push({rule:b,value:p,source:o,field:m}))})});const d={};return ak(c,s,(m,f)=>{var g;const p=m.rule;let y=(p.type==="object"||p.type==="array")&&(typeof p.fields=="object"||typeof p.defaultField=="object");y=y&&(p.required||!p.required&&m.value),p.field=m.field;function b(h,$){return{...$,fullField:`${p.fullField}.${h}`,fullFields:p.fullFields?[...p.fullFields,h]:[h]}}function x(h=[]){let $=Array.isArray(h)?h:[h];!s.suppressWarning&&$.length&&vs.warning("async-validator:",$),$.length&&p.message!==void 0&&p.message!==null&&($=[].concat(p.message));let C=$.map(tC(p,o));if(s.first&&C.length)return d[p.field]=1,f(C);if(!y)f(C);else{if(p.required&&!m.value)return p.message!==void 0?C=[].concat(p.message).map(tC(p,o)):s.error&&(C=[s.error(p,Or(s.messages.required,p.field))]),f(C);let N={};p.defaultField&&Object.keys(m.value).map(w=>{N[w]=p.defaultField}),N={...N,...m.rule.fields};const S={};Object.keys(N).forEach(w=>{const R=N[w],P=Array.isArray(R)?R:[R];S[w]=P.map(b.bind(null,w))});const E=new vs(S);E.messages(s.messages),m.rule.options&&(m.rule.options.messages=s.messages,m.rule.options.error=s.error),E.validate(m.value,m.rule.options||s,w=>{const R=[];C&&C.length&&R.push(...C),w&&w.length&&R.push(...w),f(R.length?R:null)})}}let v;if(p.asyncValidator)v=p.asyncValidator(p,m.value,x,m.source,s);else if(p.validator){try{v=p.validator(p,m.value,x,m.source,s)}catch(h){(g=console.error)==null||g.call(console,h),s.suppressValidatorError||setTimeout(()=>{throw h},0),x(h.message)}v===!0?x():v===!1?x(typeof p.message=="function"?p.message(p.fullField||p.field):p.message||`${p.fullField||p.field} fails`):v instanceof Array?x(v):v instanceof Error&&x(v.message)}v&&v.then&&v.then(()=>x(),h=>x(h))},m=>{l(m)},o)}getType(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!bl.hasOwnProperty(t.type))throw new Error(Or("Unknown rule type %s",t.type));return t.type||"string"}getValidationMethod(t){if(typeof t.validator=="function")return t.validator;const n=Object.keys(t),r=n.indexOf("message");return r!==-1&&n.splice(r,1),n.length===1&&n[0]==="required"?bl.required:bl[this.getType(t)]||void 0}};fe(vs,"register",function(n,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");bl[n]=r}),fe(vs,"warning",rk),fe(vs,"messages",Jp),fe(vs,"validators",bl);let By=vs;const gr="'${name}' is not a valid ${type}",tR={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:gr,method:gr,array:gr,object:gr,number:gr,date:gr,boolean:gr,integer:gr,float:gr,regexp:gr,email:gr,tel:gr,url:gr,hex:gr},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}"}},rC=By;function Mk(e,t){return e.replace(/\\?\$\{\w+\}/g,n=>{if(n.startsWith("\\"))return n.slice(1);const r=n.slice(2,-1);return t[r]})}const oC="CODE_LOGIC_ERROR";async function Ly(e,t,n,r,o){const s={...n};if(delete s.ruleIndex,rC.warning=()=>{},s.validator){const f=s.validator;s.validator=(...p)=>{try{return f(...p)}catch(y){return console.error(y),Promise.reject(oC)}}}let i=null;s&&s.type==="array"&&s.defaultField&&(i=s.defaultField,delete s.defaultField);const l=new rC({[e]:[s]}),c=ba(tR,r.validateMessages);l.messages(c);let u=[];try{await Promise.resolve(l.validate({[e]:t},{...r}))}catch(f){f.errors&&(u=f.errors.map(({message:p},y)=>{const b=p===oC?c.default:p;return a.isValidElement(b)?a.cloneElement(b,{key:`error_${y}`}):b}))}if(!u.length&&i&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((p,y)=>Ly(`${e}.${y}`,p,i,r,o)))).reduce((p,y)=>[...p,...y],[]);const d={...n,name:e,enum:(n.enum||[]).join(", "),...o};return u.map(f=>typeof f=="string"?Mk(f,d):f)}function Ok(e,t,n,r,o,s){const i=e.join("."),l=n.map((u,d)=>{const m=u.validator,f={...u,ruleIndex:d};return m&&(f.validator=(p,y,b)=>{let x=!1;const g=m(p,y,(...h)=>{Promise.resolve().then(()=>{fn(!x,"Your validator function has already return a promise. `callback` will be ignored."),x||b(...h)})});x=g&&typeof g.then=="function"&&typeof g.catch=="function",fn(x,"`callback` is deprecated. Please return a promise instead."),x&&g.then(()=>{b()}).catch(h=>{b(h||" ")})}),f}).sort(({warningOnly:u,ruleIndex:d},{warningOnly:m,ruleIndex:f})=>!!u==!!m?d-f:u?1:-1);let c;if(o===!0)c=new Promise(async(u,d)=>{for(let m=0;m<l.length;m+=1){const f=l[m],p=await Ly(i,t,f,r,s);if(p.length){d([{errors:p,rule:f}]);return}}u([])});else{const u=l.map(d=>Ly(i,t,d,r,s).then(m=>({errors:m,rule:d})));c=(o?zk(u):_k(u)).then(d=>Promise.reject(d))}return c.catch(u=>u),c}async function _k(e){return Promise.all(e).then(t=>[].concat(...t))}async function zk(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(o=>{o.errors.length&&n([o]),t+=1,t===e.length&&n([])})})})}function yn(e){return _y(e)}function sC(e,t){let n={};return t.forEach(r=>{const o=Kn(e,r);n=hr(n,r,o)}),n}function Ra(e,t,n=!1){return e&&e.some(r=>mf(t,r,n))}function mf(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((r,o)=>e[o]===r)}function jk(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(s=>{const i=e[s],l=t[s];return typeof i=="function"&&typeof l=="function"?!0:i===l})}function Bk(e,...t){const n=t[0];return n&&n.target&&typeof n.target=="object"&&e in n.target?n.target[e]:n}function iC(e,t,n){const{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;const o=e[t],s=t-n;return s>0?[...e.slice(0,n),o,...e.slice(n,t),...e.slice(t+1,r)]:s<0?[...e.slice(0,t),...e.slice(t+1,n+1),o,...e.slice(n+1,r)]:e}const nR=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class Lk{constructor(t){fe(this,"namePathList",[]);fe(this,"taskId",0);fe(this,"watcherList",new Set);fe(this,"form");this.form=t}register(t){return this.watcherList.add(t),()=>{this.watcherList.delete(t)}}notify(t){t.forEach(n=>{this.namePathList.every(r=>!mf(r,n))&&this.namePathList.push(n)}),this.doBatch()}doBatch(){this.taskId+=1;const t=this.taskId;nR(()=>{if(t===this.taskId&&this.watcherList.size){const n=this.form.getForm(),r=n.getFieldsValue(),o=n.getFieldsValue(!0);this.watcherList.forEach(s=>{s(r,o,this.namePathList)}),this.namePathList=[]}})}}async function kk(){return new Promise(e=>{nR(()=>{Ct(()=>{e()})})})}function ky(){return ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ky.apply(this,arguments)}const Ys=[],xl=[];function eg(e,t,n,r,o,s){return typeof e=="function"?e(t,n,"source"in s?{source:s.source}:{}):r!==o}class rR extends a.PureComponent{constructor(n){super(n);fe(this,"state",{resetCount:0});fe(this,"cancelRegisterFunc",null);fe(this,"mounted",!1);fe(this,"touched",!1);fe(this,"dirty",!1);fe(this,"validatePromise");fe(this,"prevValidating");fe(this,"errors",Ys);fe(this,"warnings",xl);fe(this,"cancelRegister",()=>{const{preserve:n,isListField:r,name:o}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(r,n,yn(o)),this.cancelRegisterFunc=null});fe(this,"getNamePath",()=>{const{name:n,fieldContext:r}=this.props,{prefixName:o=[]}=r;return n!==void 0?[...o,...n]:[]});fe(this,"getRules",()=>{const{rules:n=[],fieldContext:r}=this.props;return n.map(o=>typeof o=="function"?o(r):o)});fe(this,"refresh",()=>{this.mounted&&this.setState(({resetCount:n})=>({resetCount:n+1}))});fe(this,"metaCache",null);fe(this,"triggerMetaEvent",n=>{const{onMetaChange:r}=this.props;if(r){const o={...this.getMeta(),destroy:n};ho(this.metaCache,o)||r(o),this.metaCache=o}else this.metaCache=null});fe(this,"onStoreChange",(n,r,o)=>{const{shouldUpdate:s,dependencies:i=[],onReset:l}=this.props,{store:c}=o,u=this.getNamePath(),d=this.getValue(n),m=this.getValue(c),f=r&&Ra(r,u);switch(o.type==="valueUpdate"&&o.source==="external"&&!ho(d,m)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Ys,this.warnings=xl,this.triggerMetaEvent()),o.type){case"reset":if(!r||f){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Ys,this.warnings=xl,this.triggerMetaEvent(),l==null||l(),this.refresh();return}break;case"remove":{if(s&&eg(s,n,c,d,m,o)){this.reRender();return}break}case"setField":{const{data:p}=o;if(f){"touched"in p&&(this.touched=p.touched),"validating"in p&&!("originRCField"in p)&&(this.validatePromise=p.validating?Promise.resolve([]):null),"errors"in p&&(this.errors=p.errors||Ys),"warnings"in p&&(this.warnings=p.warnings||xl),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in p&&Ra(r,u,!0)){this.reRender();return}if(s&&!u.length&&eg(s,n,c,d,m,o)){this.reRender();return}break}case"dependenciesUpdate":{if(i.map(yn).some(y=>Ra(o.relatedFields,y))){this.reRender();return}break}default:if(f||(!i.length||u.length||s)&&eg(s,n,c,d,m,o)){this.reRender();return}break}s===!0&&this.reRender()});fe(this,"validateRules",n=>{const r=this.getNamePath(),o=this.getValue(),{triggerName:s,validateOnly:i=!1,delayFrame:l}=n||{},c=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:u=!1,messageVariables:d,validateDebounce:m}=this.props;l&&await kk();let f=this.getRules();if(s&&(f=f.filter(y=>y).filter(y=>{const{validateTrigger:b}=y;return b?_y(b).includes(s):!0})),m&&s&&(await new Promise(y=>{setTimeout(y,m)}),this.validatePromise!==c))return[];const p=Ok(r,o,f,n,u,d);return p.catch(y=>y).then((y=Ys)=>{var b;if(this.validatePromise===c){this.validatePromise=null;const x=[],v=[];(b=y.forEach)==null||b.call(y,({rule:{warningOnly:g},errors:h=Ys})=>{g?v.push(...h):x.push(...h)}),this.errors=x,this.warnings=v,this.triggerMetaEvent(),this.reRender()}}),p});return i||(this.validatePromise=c,this.dirty=!0,this.errors=Ys,this.warnings=xl,this.triggerMetaEvent(),this.reRender()),c});fe(this,"isFieldValidating",()=>!!this.validatePromise);fe(this,"isFieldTouched",()=>this.touched);fe(this,"isFieldDirty",()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:n}=this.props,{getInitialValue:r}=n.getInternalHooks(fi);return r(this.getNamePath())!==void 0});fe(this,"getErrors",()=>this.errors);fe(this,"getWarnings",()=>this.warnings);fe(this,"isListField",()=>this.props.isListField);fe(this,"isList",()=>this.props.isList);fe(this,"isPreserve",()=>this.props.preserve);fe(this,"getMeta",()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null}));fe(this,"getOnlyChild",n=>{if(typeof n=="function"){const o=this.getMeta();return{...this.getOnlyChild(n(this.getControlled(),o,this.props.fieldContext)),isFunction:!0}}const r=zn(n);return r.length!==1||!a.isValidElement(r[0])?{child:r,isFunction:!1}:{child:r[0],isFunction:!1}});fe(this,"getValue",n=>{const{getFieldsValue:r}=this.props.fieldContext,o=this.getNamePath();return Kn(n||r(!0),o)});fe(this,"getControlled",(n={})=>{const{name:r,trigger:o="onChange",validateTrigger:s,getValueFromEvent:i,normalize:l,valuePropName:c="value",getValueProps:u,fieldContext:d}=this.props,m=s!==void 0?s:d.validateTrigger,f=this.getNamePath(),{getInternalHooks:p,getFieldsValue:y}=d,{dispatch:b}=p(fi),x=this.getValue(),v=u||(N=>({[c]:N})),g=n[o],h=r!==void 0?v(x):{},$={...n,...h};return $[o]=(...N)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let S;i?S=i(...N):S=Bk(c,...N),l&&(S=l(S,x,y(!0))),S!==x&&b({type:"updateValue",namePath:f,value:S}),g&&g(...N)},_y(m||[]).forEach(N=>{const S=$[N];$[N]=(...E)=>{S&&S(...E);const{rules:w}=this.props;w&&w.length&&b({type:"validateField",namePath:f,triggerName:N})}}),$});if(n.fieldContext){const{getInternalHooks:r}=n.fieldContext,{initEntityValue:o}=r(fi);o(this)}}componentDidMount(){const{shouldUpdate:n,fieldContext:r}=this.props;if(this.mounted=!0,r){const{getInternalHooks:o}=r,{registerField:s}=o(fi);this.cancelRegisterFunc=s(this)}n===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}reRender(){this.mounted&&this.forceUpdate()}render(){const{resetCount:n}=this.state,{children:r}=this.props,{child:o,isFunction:s}=this.getOnlyChild(r);let i;return s?i=o:a.isValidElement(o)?i=a.cloneElement(o,this.getControlled(o.props)):(fn(!o,"`children` of Field is not validate ReactElement."),i=o),a.createElement(a.Fragment,{key:n},i)}}fe(rR,"contextType",Ni);function bx({name:e,...t}){const n=a.useContext(Ni),r=a.useContext(Rc),o=e!==void 0?yn(e):void 0,s=t.isListField??!!r;let i="keep";return s||(i=`_${(o||[]).join("_")}`),a.createElement(rR,ky({key:i,name:o,isListField:s},t,{fieldContext:n}))}function oR({name:e,initialValue:t,children:n,rules:r,validateTrigger:o,isListField:s}){const i=a.useContext(Ni),l=a.useContext(Rc),u=a.useRef({keys:[],id:0}).current,d=a.useMemo(()=>[...yn(i.prefixName)||[],...yn(e)],[i.prefixName,e]),m=a.useMemo(()=>({...i,prefixName:d}),[i,d]),f=a.useMemo(()=>({getKey:y=>{const b=d.length,x=y[b];return[u.keys[x],y.slice(b+1)]}}),[u,d]);if(typeof n!="function")return fn(!1,"Form.List only accepts function as children."),null;const p=(y,b,{source:x})=>x==="internal"?!1:y!==b;return a.createElement(Rc.Provider,{value:f},a.createElement(Ni.Provider,{value:m},a.createElement(bx,{name:[],shouldUpdate:p,rules:r,validateTrigger:o,initialValue:t,isList:!0,isListField:s??!!l},({value:y=[],onChange:b},x)=>{const{getFieldValue:v}=i,g=()=>v(d||[])||[],h={add:(C,N)=>{const S=g();N>=0&&N<=S.length?(u.keys=[...u.keys.slice(0,N),u.id,...u.keys.slice(N)],b([...S.slice(0,N),C,...S.slice(N)])):(u.keys=[...u.keys,u.id],b([...S,C])),u.id+=1},remove:C=>{const N=g(),S=new Set(Array.isArray(C)?C:[C]);S.size<=0||(u.keys=u.keys.filter((E,w)=>!S.has(w)),b(N.filter((E,w)=>!S.has(w))))},move(C,N){if(C===N)return;const S=g();C<0||C>=S.length||N<0||N>=S.length||(u.keys=iC(u.keys,C,N),b(iC(S,C,N)))}};let $=y||[];return Array.isArray($)||($=[]),n($.map((C,N)=>{let S=u.keys[N];return S===void 0&&(u.keys[N]=u.id,S=u.keys[N],u.id+=1),{name:N,key:S,isListField:!0}}),h,x)})))}function Ak(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((o,s)=>{e.forEach((i,l)=>{i.catch(c=>(t=!0,c)).then(c=>{n-=1,r[l]=c,!(n>0)&&(t&&s(r),o(r))})})}):Promise.resolve([])}const Ay="__@field_split__";function Hu(e){return e.map(t=>`${typeof t}:${t}`).join(Ay)}class Qi{constructor(){fe(this,"kvs",new Map)}set(t,n){this.kvs.set(Hu(t),n)}get(t){return this.kvs.get(Hu(t))}getAsPrefix(t){const n=Hu(t),r=n+Ay,o=[],s=this.kvs.get(n);return s!==void 0&&o.push(s),this.kvs.forEach((i,l)=>{l.startsWith(r)&&o.push(i)}),o}update(t,n){const r=this.get(t),o=n(r);o?this.set(t,o):this.delete(t)}delete(t){this.kvs.delete(Hu(t))}map(t){return[...this.kvs.entries()].map(([n,r])=>{const o=n.split(Ay);return t({key:o.map(s=>{const[,i,l]=s.match(/^([^:]*):(.*)$/);return i==="number"?Number(l):l}),value:r})})}toJSON(){const t={};return this.map(({key:n,value:r})=>(t[n.join(".")]=r,null)),t}}class Dk{constructor(t){fe(this,"formHooked",!1);fe(this,"forceRootUpdate");fe(this,"subscribable",!0);fe(this,"store",{});fe(this,"fieldEntities",[]);fe(this,"initialValues",{});fe(this,"callbacks",{});fe(this,"validateMessages",null);fe(this,"preserve",null);fe(this,"lastValidatePromise",null);fe(this,"watcherCenter",new Lk(this));fe(this,"getForm",()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks}));fe(this,"getInternalHooks",t=>t===fi?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(fn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null));fe(this,"useSubscribe",t=>{this.subscribable=t});fe(this,"prevWithoutPreserves",null);fe(this,"setInitialValues",(t,n)=>{var r;if(this.initialValues=t||{},n){let o=ba(t,this.store);(r=this.prevWithoutPreserves)==null||r.map(({key:s})=>{o=hr(o,s,Kn(t,s))}),this.prevWithoutPreserves=null,this.updateStore(o)}});fe(this,"destroyForm",t=>{if(t)this.updateStore({});else{const n=new Qi;this.getFieldEntities(!0).forEach(r=>{this.isMergedPreserve(r.isPreserve())||n.set(r.getNamePath(),!0)}),this.prevWithoutPreserves=n}});fe(this,"getInitialValue",t=>{const n=Kn(this.initialValues,t);return t.length?ba(n):n});fe(this,"setCallbacks",t=>{this.callbacks=t});fe(this,"setValidateMessages",t=>{this.validateMessages=t});fe(this,"setPreserve",t=>{this.preserve=t});fe(this,"registerWatch",t=>this.watcherCenter.register(t));fe(this,"notifyWatch",(t=[])=>{this.watcherCenter.notify(t)});fe(this,"timeoutId",null);fe(this,"warningUnhooked",()=>{});fe(this,"updateStore",t=>{this.store=t});fe(this,"getFieldEntities",(t=!1)=>t?this.fieldEntities.filter(n=>n.getNamePath().length):this.fieldEntities);fe(this,"getFieldsMap",(t=!1)=>{const n=new Qi;return this.getFieldEntities(t).forEach(r=>{const o=r.getNamePath();n.set(o,r)}),n});fe(this,"getFieldEntitiesForNamePathList",(t,n=!1)=>{if(!t)return this.getFieldEntities(!0);const r=this.getFieldsMap(!0);return n?t.flatMap(o=>{const s=yn(o),i=r.getAsPrefix(s);return i.length?i:[{INVALIDATE_NAME_PATH:s}]}):t.map(o=>{const s=yn(o);return r.get(s)||{INVALIDATE_NAME_PATH:yn(o)}})});fe(this,"getFieldsValue",(t,n)=>{this.warningUnhooked();let r,o;if(t===!0||Array.isArray(t)?(r=t,o=n):t&&typeof t=="object"&&(o=t.filter),r===!0&&!o)return this.store;const s=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null,!0),i=[],l=[];s.forEach(u=>{var m;const d=u.INVALIDATE_NAME_PATH||u.getNamePath();if((m=u.isList)!=null&&m.call(u)){l.push(d);return}if(!o)i.push(d);else{const f="getMeta"in u?u.getMeta():null;o(f)&&i.push(d)}});let c=sC(this.store,i.map(yn));return l.forEach(u=>{Kn(c,u)||(c=hr(c,u,[]))}),c});fe(this,"getFieldValue",t=>{this.warningUnhooked();const n=yn(t);return Kn(this.store,n)});fe(this,"getFieldsError",t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((r,o)=>r&&!r.INVALIDATE_NAME_PATH?{name:r.getNamePath(),errors:r.getErrors(),warnings:r.getWarnings()}:{name:yn(t[o]),errors:[],warnings:[]})));fe(this,"getFieldError",t=>{this.warningUnhooked();const n=yn(t);return this.getFieldsError([n])[0].errors});fe(this,"getFieldWarning",t=>{this.warningUnhooked();const n=yn(t);return this.getFieldsError([n])[0].warnings});fe(this,"isFieldsTouched",(...t)=>{this.warningUnhooked();const[n,r]=t;let o,s=!1;t.length===0?o=null:t.length===1?Array.isArray(n)?(o=n.map(yn),s=!1):(o=null,s=n):(o=n.map(yn),s=r);const i=this.getFieldEntities(!0),l=m=>m.isFieldTouched();if(!o)return s?i.every(m=>l(m)||m.isList()):i.some(l);const c=new Qi;o.forEach(m=>{c.set(m,[])}),i.forEach(m=>{const f=m.getNamePath();o.forEach(p=>{p.every((y,b)=>f[b]===y)&&c.update(p,y=>[...y,m])})});const u=m=>m.some(l),d=c.map(({value:m})=>m);return s?d.every(u):d.some(u)});fe(this,"isFieldTouched",t=>(this.warningUnhooked(),this.isFieldsTouched([t])));fe(this,"isFieldsValidating",t=>{this.warningUnhooked();const n=this.getFieldEntities();if(!t)return n.some(o=>o.isFieldValidating());const r=t.map(yn);return n.some(o=>{const s=o.getNamePath();return Ra(r,s)&&o.isFieldValidating()})});fe(this,"isFieldValidating",t=>(this.warningUnhooked(),this.isFieldsValidating([t])));fe(this,"resetWithFieldInitialValue",(t={})=>{const n=new Qi,r=this.getFieldEntities(!0);r.forEach(i=>{const{initialValue:l}=i.props,c=i.getNamePath();if(l!==void 0){const u=n.get(c)||new Set;u.add({entity:i,value:l}),n.set(c,u)}});const o=i=>{i.forEach(l=>{const{initialValue:c}=l.props;if(c!==void 0){const u=l.getNamePath();if(this.getInitialValue(u)!==void 0)fn(!1,`Form already set 'initialValues' with path '${u.join(".")}'. Field can not overwrite it.`);else{const m=n.get(u);if(m&&m.size>1)fn(!1,`Multiple Field with path '${u.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(m){const f=this.getFieldValue(u);!l.isListField()&&(!t.skipExist||f===void 0)&&this.updateStore(hr(this.store,u,[...m][0].value))}}}})};let s;t.entities?s=t.entities:t.namePathList?(s=[],t.namePathList.forEach(i=>{const l=n.get(i);l&&s.push(...[...l].map(c=>c.entity))})):s=r,o(s)});fe(this,"resetFields",t=>{this.warningUnhooked();const n=this.store;if(!t){this.updateStore(ba(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(n,null,{type:"reset"}),this.notifyWatch();return}const r=t.map(yn);r.forEach(o=>{const s=this.getInitialValue(o);this.updateStore(hr(this.store,o,s))}),this.resetWithFieldInitialValue({namePathList:r}),this.notifyObservers(n,r,{type:"reset"}),this.notifyWatch(r)});fe(this,"setFields",t=>{this.warningUnhooked();const n=this.store,r=[];t.forEach(o=>{const{name:s,...i}=o,l=yn(s);r.push(l),"value"in i&&this.updateStore(hr(this.store,l,i.value)),this.notifyObservers(n,[l],{type:"setField",data:o})}),this.notifyWatch(r)});fe(this,"getFields",()=>this.getFieldEntities(!0).map(r=>{const o=r.getNamePath(),i={...r.getMeta(),name:o,value:this.getFieldValue(o)};return Object.defineProperty(i,"originRCField",{value:!0}),i}));fe(this,"initEntityValue",t=>{const{initialValue:n}=t.props;if(n!==void 0){const r=t.getNamePath();Kn(this.store,r)===void 0&&this.updateStore(hr(this.store,r,n))}});fe(this,"isMergedPreserve",t=>(t!==void 0?t:this.preserve)??!0);fe(this,"registerField",t=>{this.fieldEntities.push(t);const n=t.getNamePath();if(this.notifyWatch([n]),t.props.initialValue!==void 0){const r=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:!0}),this.notifyObservers(r,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return(r,o,s=[])=>{if(this.fieldEntities=this.fieldEntities.filter(i=>i!==t),!this.isMergedPreserve(o)&&(!r||s.length>1)){const i=r?void 0:this.getInitialValue(n);if(n.length&&this.getFieldValue(n)!==i&&this.fieldEntities.every(l=>!mf(l.getNamePath(),n))){const l=this.store;this.updateStore(hr(l,n,i,!0)),this.notifyObservers(l,[n],{type:"remove"}),this.triggerDependenciesUpdate(l,n)}}this.notifyWatch([n])}});fe(this,"dispatch",t=>{switch(t.type){case"updateValue":{const{namePath:n,value:r}=t;this.updateValue(n,r);break}case"validateField":{const{namePath:n,triggerName:r}=t;this.validateFields([n],{triggerName:r});break}}});fe(this,"notifyObservers",(t,n,r)=>{if(this.subscribable){const o={...r,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:s})=>{s(t,n,o)})}else this.forceRootUpdate()});fe(this,"triggerDependenciesUpdate",(t,n)=>{const r=this.getDependencyChildrenFields(n);return r.length&&this.validateFields(r,{delayFrame:!0}),this.notifyObservers(t,r,{type:"dependenciesUpdate",relatedFields:[n,...r]}),r});fe(this,"updateValue",(t,n)=>{const r=yn(t),o=this.store;this.updateStore(hr(this.store,r,n)),this.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);const s=this.triggerDependenciesUpdate(o,r),{onValuesChange:i}=this.callbacks;if(i){const l=sC(this.store,[r]),c=this.getFieldsValue(),u=hr(c,r,Kn(l,r));i(l,u)}this.triggerOnFieldsChange([r,...s])});fe(this,"setFieldsValue",t=>{this.warningUnhooked();const n=this.store;if(t){const r=ba(this.store,t);this.updateStore(r)}this.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()});fe(this,"setFieldValue",(t,n)=>{this.setFields([{name:t,value:n,errors:[],warnings:[],touched:!0}])});fe(this,"getDependencyChildrenFields",t=>{const n=new Set,r=[],o=new Qi;this.getFieldEntities().forEach(i=>{const{dependencies:l}=i.props;(l||[]).forEach(c=>{const u=yn(c);o.update(u,(d=new Set)=>(d.add(i),d))})});const s=i=>{(o.get(i)||new Set).forEach(c=>{if(!n.has(c)){n.add(c);const u=c.getNamePath();c.isFieldDirty()&&u.length&&(r.push(u),s(u))}})};return s(t),r});fe(this,"triggerOnFieldsChange",(t,n)=>{const{onFieldsChange:r}=this.callbacks;if(r){const o=this.getFields();if(n){const i=new Qi;n.forEach(({name:l,errors:c})=>{i.set(l,c)}),o.forEach(l=>{l.errors=i.get(l.name)||l.errors})}const s=o.filter(({name:i})=>Ra(t,i));s.length&&r(s,o)}});fe(this,"validateFields",(t,n)=>{this.warningUnhooked();let r,o;Array.isArray(t)||typeof t=="string"||typeof n=="string"?(r=t,o=n):o=t;const s=!!r,i=s?r.map(yn):[],l=[...i],c=[],u=String(Date.now()),d=new Set,{recursive:m,dirty:f}=o||{};this.getFieldEntities(!0).forEach(x=>{const v=x.getNamePath();if(s||((!x.isList()||!i.some(g=>mf(g,v,!0)))&&l.push(v),i.push(v)),!(!x.props.rules||!x.props.rules.length)&&!(f&&!x.isFieldDirty())&&(d.add(v.join(u)),!s||Ra(i,v,m))){const g=x.validateRules({validateMessages:{...tR,...this.validateMessages},...o});c.push(g.then(()=>({name:v,errors:[],warnings:[]})).catch(h=>{var N;const $=[],C=[];return(N=h.forEach)==null||N.call(h,({rule:{warningOnly:S},errors:E})=>{S?C.push(...E):$.push(...E)}),$.length?Promise.reject({name:v,errors:$,warnings:C}):{name:v,errors:$,warnings:C}}))}});const p=Ak(c);this.lastValidatePromise=p,p.catch(x=>x).then(x=>{const v=x.map(({name:g})=>g);this.notifyObservers(this.store,v,{type:"validateFinish"}),this.triggerOnFieldsChange(v,x)});const y=p.then(()=>this.lastValidatePromise===p?Promise.resolve(this.getFieldsValue(l)):Promise.reject([])).catch(x=>{var h,$;const v=x.filter(C=>C&&C.errors.length),g=($=(h=v[0])==null?void 0:h.errors)==null?void 0:$[0];return Promise.reject({message:g,values:this.getFieldsValue(i),errorFields:v,outOfDate:this.lastValidatePromise!==p})});y.catch(x=>x);const b=i.filter(x=>d.has(x.join(u)));return this.triggerOnFieldsChange(b),y});fe(this,"submit",()=>{this.warningUnhooked(),this.validateFields().then(t=>{const{onFinish:n}=this.callbacks;if(n)try{n(t)}catch(r){console.error(r)}}).catch(t=>{const{onFinishFailed:n}=this.callbacks;n&&n(t)})});this.forceRootUpdate=t}}function xx(e){const t=a.useRef(null),[,n]=a.useState({});if(!t.current)if(e)t.current=e;else{const r=()=>{n({})},o=new Dk(r);t.current=o.getForm()}return[t.current]}const Dy=a.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),sR=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const o=a.useContext(Dy),s=a.useRef({});return a.createElement(Dy.Provider,{value:{...o,validateMessages:{...o.validateMessages,...e},triggerFormChange:(i,l)=>{t&&t(i,{changedFields:l,forms:s.current}),o.triggerFormChange(i,l)},triggerFormFinish:(i,l)=>{n&&n(i,{values:l,forms:s.current}),o.triggerFormFinish(i,l)},registerForm:(i,l)=>{i&&(s.current={...s.current,[i]:l}),o.registerForm(i,l)},unregisterForm:i=>{const l={...s.current};delete l[i],s.current=l,o.unregisterForm(i)}}},r)};function Fy(){return Fy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fy.apply(this,arguments)}const Fk=(e,t)=>{const{name:n,initialValues:r,fields:o,form:s,preserve:i,children:l,component:c="form",validateMessages:u,validateTrigger:d="onChange",onValuesChange:m,onFieldsChange:f,onFinish:p,onFinishFailed:y,clearOnDestroy:b,...x}=e,v=a.useRef(null),g=a.useContext(Dy),[h]=xx(s),{useSubscribe:$,setInitialValues:C,setCallbacks:N,setValidateMessages:S,setPreserve:E,destroyForm:w}=h.getInternalHooks(fi);a.useImperativeHandle(t,()=>({...h,nativeElement:v.current})),a.useEffect(()=>(g.registerForm(n,h),()=>{g.unregisterForm(n)}),[g,h,n]),S({...g.validateMessages,...u}),N({onValuesChange:m,onFieldsChange:(F,...L)=>{g.triggerFormChange(n,F),f&&f(F,...L)},onFinish:F=>{g.triggerFormFinish(n,F),p&&p(F)},onFinishFailed:y}),E(i);const R=a.useRef(null);C(r,!R.current),R.current||(R.current=!0),a.useEffect(()=>()=>w(b),[]);let P;const T=typeof l=="function";if(T){const F=h.getFieldsValue(!0);P=l(F,h)}else P=l;$(!T);const M=a.useRef(null);a.useEffect(()=>{jk(M.current||[],o||[])||h.setFields(o||[]),M.current=o},[o,h]);const z=a.useMemo(()=>({...h,validateTrigger:d}),[h,d]),B=a.createElement(Rc.Provider,{value:null},a.createElement(Ni.Provider,{value:z},P));return c===!1?B:a.createElement(c,Fy({},x,{ref:v,onSubmit:F=>{F.preventDefault(),F.stopPropagation(),h.submit()},onReset:F=>{var L;F.preventDefault(),h.resetFields(),(L=x.onReset)==null||L.call(x,F)}}),B)};function tg(e){try{return JSON.stringify(e)}catch{return Math.random()}}function iR(...e){const[t,n={}]=e,r=tk(n)?{form:n}:n,o=r.form,[s,i]=a.useState(()=>typeof t=="function"?t({}):void 0),l=a.useMemo(()=>tg(s),[s]),c=a.useRef(l);c.current=l;const u=a.useContext(Ni),d=o||u,m=d&&d._init,{getFieldsValue:f,getInternalHooks:p}=d,{registerWatch:y}=p(fi),b=vt((v,g)=>{const h=r.preserve?g??f(!0):v??f(),$=typeof t=="function"?t(h):Kn(h,yn(t));tg(s)!==tg($)&&i($)}),x=typeof t=="function"?t:JSON.stringify(t);return a.useEffect(()=>{m&&b()},[m,x]),a.useEffect(()=>m?y((g,h)=>{b(g,h)}):void 0,[m]),s}const Hk=a.forwardRef(Fk),el=Hk;el.FormProvider=sR;el.Field=bx;el.List=oR;el.useForm=xx;el.useWatch=iR;const _o=a.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),aR=a.createContext(null),lR=e=>{const t=Dt(e,["prefixCls"]);return a.createElement(sR,{...t})},$x=a.createContext({prefixCls:""}),Hn=a.createContext({}),cR=({children:e,status:t,override:n})=>{const r=a.useContext(Hn),o=a.useMemo(()=>{const s={...r};return n&&delete s.isFormItemInput,t&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[t,n,r]);return a.createElement(Hn.Provider,{value:o},e)},uR=a.createContext(void 0),Ri=e=>{const{space:t,form:n,children:r}=e;if(!$n(r))return null;let o=r;return n&&(o=J.createElement(cR,{override:!0,status:!0},o)),t&&(o=J.createElement(GB,null,o)),o},Vk=()=>lr()&&window.document.documentElement;function Wk(e,t,n){return a.useMemo(()=>({...{trap:t??!0,focusTriggerAfterClose:n??!0},...e}),[e,t,n])}const Rm=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:s}=e,i=H({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=H({[`${t}-circle`]:s==="circle",[`${t}-square`]:s==="square",[`${t}-round`]:s==="round"}),c=a.useMemo(()=>Rn(o)?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return a.createElement("span",{className:H(t,i,l,n),style:{...c,...r}})},Kk=new Ht("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Sx=e=>({height:e,lineHeight:G(e)}),zs=e=>({width:e,...Sx(e)}),Uk=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Kk,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ng=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...Sx(e)}),qk=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:s}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:n,...zs(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...zs(o)},[`${t}${t}-sm`]:{...zs(s)}}},Gk=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:s,gradientFromColor:i,calc:l}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:i,borderRadius:n,...ng(t,l)},[`${r}-lg`]:{...ng(o,l)},[`${r}-sm`]:{...ng(s,l)}}},dR=e=>{const{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:o}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:n,...zs(o(r).mul(2).equal())}},Xk=e=>({[e.skeletonNodeCls]:{...dR(e)}}),Yk=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...dR(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...zs(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},rg=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},og=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...Sx(e)}),Qk=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:s,gradientFromColor:i,calc:l}=e;return{[n]:{display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal(),...og(r,l)},...rg(e,r,n),[`${n}-lg`]:{...og(o,l)},...rg(e,o,`${n}-lg`),[`${n}-sm`]:{...og(s,l)},...rg(e,s,`${n}-sm`)}},Jk=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:s,skeletonInputCls:i,skeletonNodeCls:l,skeletonImageCls:c,controlHeight:u,controlHeightLG:d,controlHeightSM:m,gradientFromColor:f,padding:p,marginSM:y,borderRadius:b,titleHeight:x,blockRadius:v,paragraphLiHeight:g,controlHeightXS:h,paragraphMarginTop:$}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:{display:"inline-block",verticalAlign:"top",background:f,...zs(u)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...zs(d)},[`${n}-sm`]:{...zs(m)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:x,background:f,borderRadius:v,[`+ ${o}`]:{marginBlockStart:m}},[o]:{padding:0,"> li":{width:"100%",height:g,listStyle:"none",background:f,borderRadius:v,"+ li":{marginBlockStart:h}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${o} > li`]:{borderRadius:b}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:y,[`+ ${o}`]:{marginBlockStart:$}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...Qk(e),...qk(e),...Gk(e),...Xk(e),...Yk(e)},[`${t}${t}-block`]:{width:"100%",[s]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`
${r},
${o} > li,
${n},
${s},
${i},
${l},
${c}
`]:{...Uk(e)}}}},Zk=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Zc=Tt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Rt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,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 Jk(r)},Zk,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),eA=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,active:s,style:i,styles:l,shape:c="circle",size:u,...d}=e,{getPrefixCls:m}=a.useContext(ct),f=m("skeleton",t),[p,y]=Zc(f),b=Cn(v=>u??v),x=H(f,`${f}-element`,{[`${f}-active`]:s},r==null?void 0:r.root,n,o,p,y);return a.createElement("div",{className:x,style:l==null?void 0:l.root},a.createElement(Rm,{prefixCls:`${f}-avatar`,className:r==null?void 0:r.content,style:{...l==null?void 0:l.content,...i},shape:c,size:b,...d}))},tA=e=>{const{prefixCls:t,className:n,rootClassName:r,classNames:o,active:s,style:i,styles:l,block:c=!1,size:u,...d}=e,{getPrefixCls:m}=a.useContext(ct),f=m("skeleton",t),[p,y]=Zc(f),b=Cn(v=>u??v),x=H(f,`${f}-element`,{[`${f}-active`]:s,[`${f}-block`]:c},o==null?void 0:o.root,n,r,p,y);return a.createElement("div",{className:x,style:l==null?void 0:l.root},a.createElement(Rm,{prefixCls:`${f}-button`,className:o==null?void 0:o.content,style:{...l==null?void 0:l.content,...i},size:b,...d}))},fR=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,internalClassName:s,style:i,styles:l,active:c,children:u}=e,{getPrefixCls:d}=a.useContext(ct),m=d("skeleton",t),[f,p]=Zc(m),y=H(m,`${m}-element`,{[`${m}-active`]:c},f,r==null?void 0:r.root,n,o,p);return a.createElement("div",{className:y,style:l==null?void 0:l.root},a.createElement("div",{className:H(r==null?void 0:r.content,s||`${m}-node`),style:{...l==null?void 0:l.content,...i}},u))},nA=e=>{const{getPrefixCls:t}=a.useContext(ct),n=t("skeleton",e.prefixCls);return a.createElement(fR,{...e,internalClassName:`${n}-image`},a.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${n}-image-svg`},a.createElement("title",null,"Image placeholder"),a.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${n}-image-path`})))},rA=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,active:s,block:i,style:l,styles:c,size:u,...d}=e,{getPrefixCls:m}=a.useContext(ct),f=m("skeleton",t),[p,y]=Zc(f),b=Cn(v=>u??v),x=H(f,`${f}-element`,{[`${f}-active`]:s,[`${f}-block`]:i},r==null?void 0:r.root,n,o,p,y);return a.createElement("div",{className:x,style:c==null?void 0:c.root},a.createElement(Rm,{prefixCls:`${f}-input`,className:r==null?void 0:r.content,style:{...c==null?void 0:c.content,...l},size:b,...d}))},oA=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},sA=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,s=Array.from({length:o}).map((i,l)=>a.createElement("li",{key:l,style:{width:oA(l,e)}}));return a.createElement("ul",{className:H(t,n),style:r},s)},iA=({prefixCls:e,className:t,width:n,style:r})=>a.createElement("h3",{className:H(e,t),style:{width:n,...r}});function sg(e){return dt(e)?e:{}}function aA(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function lA(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function cA(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ai=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,classNames:s,style:i,styles:l,children:c,avatar:u=!1,title:d=!0,paragraph:m=!0,active:f,round:p}=e,{getPrefixCls:y,direction:b,className:x,style:v,classNames:g,styles:h}=Pt("skeleton"),$=y("skeleton",t),[C,N]=Zc($),S={...e,avatar:u,title:d,paragraph:m},E=Mt(v),w=Mt(i),[R,P]=Ot([g,s],[h,E,l,w],{props:S});if(n||!("loading"in e)){const T=!!u,M=!!d,z=!!m;let B;if(T){const j={className:R.avatar,prefixCls:`${$}-avatar`,...aA(M,z),...sg(u),style:P.avatar};B=a.createElement("div",{className:H(R.header,`${$}-header`),style:P.header},a.createElement(Rm,{...j}))}let F;if(M||z){let j;if(M){const A={className:R.title,prefixCls:`${$}-title`,...lA(T,z),...sg(d),style:P.title};j=a.createElement(iA,{...A})}let O;if(z){const A={className:R.paragraph,prefixCls:`${$}-paragraph`,...cA(T,M),...sg(m),style:P.paragraph};O=a.createElement(sA,{...A})}F=a.createElement("div",{className:H(R.section,`${$}-section`),style:P.section},j,O)}const L=H($,{[`${$}-with-avatar`]:T,[`${$}-active`]:f,[`${$}-rtl`]:b==="rtl",[`${$}-round`]:p},R.root,x,r,o,C,N);return a.createElement("div",{className:L,style:P.root},B,F)}return c??null};Ai.Button=tA;Ai.Avatar=eA;Ai.Input=rA;Ai.Image=nA;Ai.Node=fR;function aC(){}const uA=a.createContext({add:aC,remove:aC});function dA(e){const t=a.useContext(uA),n=a.useRef(null);return vt(o=>{if(o){const s=e?o.querySelector(e):o;s&&(t.add(s),n.current=s)}else t.remove(n.current)})}const lC=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=a.useContext(Jc);return J.createElement(Xe,{onClick:n,...e},t)},cC=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=a.useContext(Jc);return J.createElement(Xe,{...px(n),loading:e,onClick:o,...t},r)};function mR(e,t){return J.createElement("span",{className:`${e}-close-x`},t||J.createElement(Us,{className:`${e}-close-icon`}))}const pR=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:s,onCancel:i,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[d]=Ar("Modal",JP()),m=t||(d==null?void 0:d.okText),f=r||(d==null?void 0:d.cancelText),p=J.useMemo(()=>({confirmLoading:o,okButtonProps:l,cancelButtonProps:c,okTextLocale:m,cancelTextLocale:f,okType:n,onOk:s,onCancel:i}),[o,l,c,m,f,n,s,i]);let y;return bt(u)||typeof u>"u"?(y=J.createElement(J.Fragment,null,J.createElement(lC,null),J.createElement(cC,null)),bt(u)&&(y=u(y,{OkBtn:cC,CancelBtn:lC})),y=J.createElement(QN,{value:p},y)):y=u,J.createElement(ix,{disabled:!1},y)},fA=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"}}}},mA=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},pA=(e,t)=>{const{componentCls:n,gridColumns:r,antCls:o}=e,[s,i]=rn(o,"grid"),[,l]=rn(o,"col"),c={};for(let u=r;u>=0;u--)u===0?(c[`${n}${t}-${u}`]={display:"none"},c[`${n}-push-${u}`]={insetInlineStart:"auto"},c[`${n}-pull-${u}`]={insetInlineEnd:"auto"},c[`${n}${t}-push-${u}`]={insetInlineStart:"auto"},c[`${n}${t}-pull-${u}`]={insetInlineEnd:"auto"},c[`${n}${t}-offset-${u}`]={marginInlineStart:0},c[`${n}${t}-order-${u}`]={order:0}):(c[`${n}${t}-${u}`]=[{[s("display")]:"block",display:"block"},{display:i("display"),flex:`0 0 ${u/r*100}%`,maxWidth:`${u/r*100}%`}],c[`${n}${t}-push-${u}`]={insetInlineStart:`${u/r*100}%`},c[`${n}${t}-pull-${u}`]={insetInlineEnd:`${u/r*100}%`},c[`${n}${t}-offset-${u}`]={marginInlineStart:`${u/r*100}%`},c[`${n}${t}-order-${u}`]={order:u});return c[`${n}${t}-flex`]={flex:l(`${t.replace(/-/,"")}-flex`)},c},Hy=(e,t)=>pA(e,t),gA=(e,t,n)=>({[`@media (min-width: ${G(t)})`]:{...Hy(e,n)}}),hA=()=>({}),yA=()=>({}),vA=Tt("Grid",fA,hA),gR=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),bA=Tt("Grid",e=>{const t=Rt(e,{gridColumns:24}),n=gR(t);return delete n.xs,[mA(t),Hy(t,""),Hy(t,"-xs"),Object.keys(n).map(r=>gA(t,n[r],`-${r}`)).reduce((r,o)=>({...r,...o}),{})]},yA);function uC(e){return{position:e,inset:0}}const xA=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}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...uC("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...uC("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:HN(e)}]},$A=e=>{const{componentCls:t,motionDurationMid:n}=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:`${G(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Ft(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${G(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...jr(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{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","background-color"].map(r=>`${r} ${n}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:G(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...Br(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${G(e.borderRadiusLG)} ${G(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:`${G(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}-container,
${t}-body,
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},SA=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},CA=e=>{const{componentCls:t}=e,n=gR(e),r={...n};delete r.xs;const o=`--${t.replace(".","")}-`,s=Object.keys(r).map(i=>({[`@media (min-width: ${G(r[i])})`]:{width:`var(${o}${i}-width)`}}));return{[`${t}-root`]:{[t]:[].concat($t(Object.keys(n).map((i,l)=>{const c=Object.keys(n)[l-1];return c?{[`${o}${i}-width`]:`var(${o}${c}-width)`}:null})),[{width:`var(${o}xs-width)`}],$t(s))}}},hR=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Rt(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()})},yR=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${G(e.paddingMD)} ${G(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${G(e.padding)} ${G(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${G(e.paddingXS)} ${G(e.padding)}`:0,footerBorderTop:e.wireframe?`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${G(e.padding*2)} ${G(e.padding*2)} ${G(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),vR=Tt("Modal",e=>{const t=hR(e);return[$A(t),SA(t),xA(t),Yc(t,"zoom"),CA(t)]},yR,{unitless:{titleLineHeight:!0}});let Vy;const wA=e=>{Vy={x:e.pageX,y:e.pageY},setTimeout(()=>{Vy=null},100)};Vk()&&document.documentElement.addEventListener("click",wA,!0);const bR=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:s,centered:i,getContainer:l,style:c,width:u=520,footer:d,classNames:m,styles:f,children:p,loading:y,confirmLoading:b,zIndex:x,mousePosition:v,onOk:g,onCancel:h,okButtonProps:$,cancelButtonProps:C,destroyOnHidden:N,destroyOnClose:S,panelRef:E=null,closable:w,mask:R,modalRender:P,maskClosable:T,_semanticOmit:M,scrollLock:z,focusTriggerAfterClose:B,focusable:F,_renderSemanticContent:L,...j}=e,{getPopupContainer:O,getPrefixCls:A,direction:k,className:_,style:D,classNames:V,styles:W,centered:K,cancelButtonProps:q,okButtonProps:Y,mask:ee,focusable:ie}=Pt("modal"),{modal:ae}=a.useContext(ct),[U,Q]=a.useMemo(()=>typeof w=="boolean"?[void 0,void 0]:[w==null?void 0:w.afterClose,w==null?void 0:w.onClose],[w]),Z=A("modal",t),ne=A(),[oe,le,re]=Qj(R,ee,Z,T),X=Wk({...ie,...F},oe,B),se=ce=>{b||(h==null||h(ce),Q==null||Q())},ge=ce=>{g==null||g(ce),Q==null||Q()},de=on(Z),[Se,ue]=vR(Z,de),be=H(s,{[`${Z}-centered`]:i??K,[`${Z}-wrap-rtl`]:k==="rtl"}),Ne=d!==null&&!y?a.createElement(pR,{...e,okButtonProps:{...Y,...$},onOk:ge,cancelButtonProps:{...q,...C},onCancel:se}):null,[we,ze,he,ke]=NN(Ua(e),Ua(ae),{closable:!0,closeIcon:a.createElement(Us,{className:`${Z}-close-icon`}),closeIconRender:ce=>mR(Z,ce)}),Oe=we?{disabled:he,closeIcon:ze,afterClose:U,...ke}:!1,Ce=P?ce=>a.createElement("div",{className:`${Z}-render`},P(ce)):void 0,Me=`.${Z}-${P?"render":"container"}`,xe=dA(Me),Ee=Tn(E,xe),[Ve,qe]=Xc("Modal",x),me={...e,width:u,panelRef:E,focusTriggerAfterClose:X.focusTriggerAfterClose,focusable:X,mask:oe,maskClosable:re,zIndex:Ve},[Re,Te]=Ot([V,m,le],[W,f],{props:me}),Ue=M?Dt(Re,M):Re,Ge=M?Dt(Te,M):Te,Fe=L?L({classNames:Re,styles:Te}):p,[et,ve]=a.useMemo(()=>dt(u)?[void 0,u]:[u,void 0],[u]),je=a.useMemo(()=>{const ce={};return ve&&Object.keys(ve).forEach(Pe=>{const pe=ve[Pe];bn(pe)&&(ce[`--${Z}-${Pe}-width`]=Rn(pe)?`${pe}px`:pe)}),ce},[Z,ve]);return a.createElement(Ri,{form:!0,space:!0},a.createElement(xm.Provider,{value:qe},a.createElement(ek,{width:et,...j,zIndex:Ve,getContainer:l===void 0?O:l,prefixCls:Z,rootClassName:H(Se,r,ue,de,Ue.root),rootStyle:Ge.root,footer:Ne,visible:o,mousePosition:v??Vy,onClose:se,closable:Oe,closeIcon:ze,transitionName:ks(ne,"zoom",e.transitionName),maskTransitionName:ks(ne,"fade",e.maskTransitionName),mask:oe,maskClosable:re,scrollLock:z,className:H(Se,n,_),style:{...D,...c,...je},classNames:{...Ue,wrapper:H(Ue.wrapper,be)},styles:Ge,panelRef:Ee,destroyOnHidden:N??S,modalRender:Ce,focusTriggerAfterClose:X.focusTriggerAfterClose,focusTrap:X.trap},y?a.createElement(Ai,{active:!0,title:!1,paragraph:{rows:4},className:`${Z}-body-skeleton`}):Fe)))},EA=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:s,lineHeight:i,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:{...Ls()},[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${G(e.marginSM)})`},[`${d}-body-no-icon ${d}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${G(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-container`]:{color:e.colorText,fontSize:s,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},
${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},IA=Ks(["Modal","confirm"],e=>{const t=hR(e);return EA(t)},yR,{order:-1e3}),PA=["body"],xR=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:s,type:i,okCancel:l,footer:c,locale:u,autoFocusButton:d,focusable:m,contentClassName:f,contentStyle:p,...y}=e,{infoIcon:b,successIcon:x,errorIcon:v,warningIcon:g}=Pt("modal");let h=n;if(n===void 0)switch(i){case"info":h=Ur(b,a.createElement(ym,null));break;case"success":h=Ur(x,a.createElement(Uc,null));break;case"error":h=Ur(v,a.createElement(Bi,null));break;default:h=Ur(g,a.createElement(Li,null))}const $=l??i==="confirm",C=a.useMemo(()=>{const L=(m==null?void 0:m.autoFocusButton)||d;return L||L===null?L:"ok"},[d,m==null?void 0:m.autoFocusButton]),[N]=Ar("Modal"),S=u||N,E=r||($?S==null?void 0:S.okText:S==null?void 0:S.justOkText),w=o||(S==null?void 0:S.cancelText),{closable:R}=y,{onClose:P}=dt(R)?R:{},T=a.useMemo(()=>({autoFocusButton:C,cancelTextLocale:w,okTextLocale:E,mergedOkCancel:$,onClose:P,...y}),[C,w,E,$,P,y]),M=a.createElement(a.Fragment,null,a.createElement(X1,null),a.createElement(Y1,null)),z=$n(e.title),B=$n(h),F=`${s}-body`;return a.createElement("div",{className:`${s}-body-wrapper`},a.createElement("div",{className:H(F,{[`${F}-has-title`]:z,[`${F}-no-icon`]:!B})},h,a.createElement("div",{className:`${s}-paragraph`},z&&a.createElement("span",{className:`${s}-title`},e.title),a.createElement("div",{className:H(`${s}-content`,f),style:p},e.content))),c===void 0||bt(c)?a.createElement(QN,{value:T},a.createElement("div",{className:`${s}-btns`},bt(c)?c(M,{OkBtn:Y1,CancelBtn:X1}):M)):c,a.createElement(IA,{prefixCls:t}))},NA=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:s,wrapClassName:i,rootPrefixCls:l,bodyStyle:c,closable:u=!1,onConfirm:d,styles:m,title:f,mask:p,maskClosable:y,okButtonProps:b,cancelButtonProps:x}=e,{cancelButtonProps:v,okButtonProps:g}=Pt("modal"),h=`${s}-confirm`,$=e.width||416,C=e.style||{},N=bt(m)?T=>({body:c,mask:r,...m(T)}):{body:c,mask:r,...m},S=Dt(e,["bodyStyle","maskStyle"]),E=H(h,`${h}-${e.type}`,{[`${h}-rtl`]:o==="rtl"},e.className),w=a.useMemo(()=>{const T=Py(p,y);return T.closable??(T.closable=!1),T},[p,y]),[,R]=Yn(),P=a.useMemo(()=>n!==void 0?n:R.zIndexPopupBase+ax,[n,R]);return a.createElement(bR,{...S,className:E,wrapClassName:H({[`${h}-centered`]:!!e.centered},i),onCancel:()=>{t==null||t({triggerCancel:!0}),d==null||d(!1)},title:f,footer:null,transitionName:ks(l||"","zoom",e.transitionName),maskTransitionName:ks(l||"","fade",e.maskTransitionName),mask:w,style:C,styles:N,width:$,zIndex:P,closable:u,_semanticOmit:PA,_renderSemanticContent:({classNames:T,styles:M})=>a.createElement(xR,{...e,confirmPrefixCls:h,okButtonProps:{...g,...b},cancelButtonProps:{...v,...x},contentClassName:T.body,contentStyle:M.body})})},$R=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return a.createElement(to,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},a.createElement(NA,{...e}))},mi=[];let SR="";function CR(){return SR}const RA=e=>{var u;const{prefixCls:t,getContainer:n,direction:r}=e,o=JP(),s=a.useContext(ct),i=CR()||s.getPrefixCls(),l=t||`${i}-modal`;let c=n;return c===!1&&(c=void 0),J.createElement($R,{...e,rootPrefixCls:i,prefixCls:l,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:r??s.direction,locale:((u=s.locale)==null?void 0:u.Modal)??o,getContainer:c})};function eu(e){const t=gN(),n=document.createDocumentFragment();let r={...e,close:l,open:!0},o;function s(...u){var m;u.some(f=>f==null?void 0:f.triggerCancel)&&((m=e.onCancel)==null||m.call(e,()=>{},...u.slice(1)));for(let f=0;f<mi.length;f++)if(mi[f]===l){mi.splice(f,1);break}UI(n).then(()=>{})}const i=u=>{clearTimeout(o),o=setTimeout(()=>{const d=t.getPrefixCls(void 0,CR()),m=t.getIconPrefixCls(),f=t.getTheme(),p=J.createElement(RA,{...u});Wb(J.createElement(to,{prefixCls:d,iconPrefixCls:m,theme:f},bt(t.holderRender)?t.holderRender(p):p),n)})};function l(...u){r={...r,open:!1,afterClose:()=>{bt(e.afterClose)&&e.afterClose(),s.apply(this,u)}},i(r)}function c(u){bt(u)?r=u(r):r={...r,...u},i(r)}return i(r),mi.push(l),{destroy:l,update:c}}function wR(e){return{...e,type:"warning"}}function ER(e){return{...e,type:"info"}}function IR(e){return{...e,type:"success"}}function PR(e){return{...e,type:"error"}}function NR(e){return{...e,type:"confirm"}}function TA({rootPrefixCls:e}){SR=e}const MA=a.forwardRef((e,t)=>{const{afterClose:n,config:r,...o}=e,[s,i]=a.useState(!0),[l,c]=a.useState(r),{direction:u,getPrefixCls:d}=a.useContext(ct),m=d("modal"),f=d(),p=()=>{var v;n(),(v=l.afterClose)==null||v.call(l)},y=(...v)=>{var h;i(!1),v.some($=>$==null?void 0:$.triggerCancel)&&((h=l.onCancel)==null||h.call(l,()=>{},...v.slice(1)))};a.useImperativeHandle(t,()=>({destroy:y,update:v=>{c(g=>{const h=bt(v)?v(g):v;return{...g,...h}})}}));const b=l.okCancel??l.type==="confirm",[x]=Ar("Modal",Zr.Modal);return a.createElement($R,{prefixCls:m,rootPrefixCls:f,...l,close:y,open:s,afterClose:p,okText:l.okText||(b?x==null?void 0:x.okText:x==null?void 0:x.justOkText),direction:l.direction||u,cancelText:l.cancelText||(x==null?void 0:x.cancelText),...o})});let dC=0;const OA=a.memo(a.forwardRef((e,t)=>{const[n,r]=Zj();return a.useImperativeHandle(t,()=>({patchElement:r}),[r]),a.createElement(a.Fragment,null,n)}));function RR(){const e=a.useRef(null),[t,n]=a.useState([]);a.useEffect(()=>{t.length&&($t(t).forEach(i=>{i()}),n([]))},[t]);const r=a.useCallback(s=>function(l){var b;dC+=1;const c=a.createRef();let u;const d=new Promise(x=>{u=x});let m=!1,f;const p=a.createElement(MA,{key:`modal-${dC}`,config:s(l),ref:c,afterClose:()=>{f==null||f()},isSilent:()=>m,onConfirm:x=>{u(x)}});return f=(b=e.current)==null?void 0:b.patchElement(p),f&&mi.push(f),{destroy:()=>{function x(){var v;(v=c.current)==null||v.destroy()}c.current?x():n(v=>[].concat($t(v),[x]))},update:x=>{function v(){var g;(g=c.current)==null||g.update(x)}c.current?v():n(g=>[].concat($t(g),[v]))},then:x=>(m=!0,d.then(x))}},[]);return[a.useMemo(()=>({info:r(ER),success:r(IR),error:r(PR),warning:r(wR),confirm:r(NR)}),[r]),a.createElement(OA,{key:"modal-holder",ref:e})]}const _A={info:a.createElement(ym,null),success:a.createElement(Uc,null),error:a.createElement(Bi,null),warning:a.createElement(Li,null),loading:a.createElement(ki,null)};function TR(e,t){return t===null||t===!1?null:t||a.createElement(Us,{className:`${e}-close-icon`})}const zA=4.5,jA="topRight",BA={offset:8},LA=({children:e,prefixCls:t})=>{const n=on(t),[r,o]=EB(t,n);return J.createElement(vN,{classNames:{list:H(r,o,n)}},e)},kA=(e,{prefixCls:t,key:n})=>J.createElement(LA,{prefixCls:t,key:n},e),AA=J.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:s,maxCount:i,rtl:l,onAllRemoved:c,stack:u,duration:d=zA,pauseOnHover:m=!0,showProgress:f}=e,{getPrefixCls:p,getPopupContainer:y,direction:b}=Pt("notification"),{notification:x}=a.useContext(ct),v=o||p("notification"),g=a.useMemo(()=>Rn(d)&&d>0?d:!1,[d]),[h,$]=Ot([x==null?void 0:x.classNames,e==null?void 0:e.classNames],[x==null?void 0:x.styles,e==null?void 0:e.styles],{props:e}),C=()=>CN(n,r),N=()=>H({[`${v}-rtl`]:l??b==="rtl"}),S=()=>Wj(v),E=SN(u,BA),[w,R]=$N({prefixCls:v,style:C,className:N,motion:S,closable:{closeIcon:TR(v)},duration:g,getContainer:()=>(s==null?void 0:s())||(y==null?void 0:y())||document.body,maxCount:i,pauseOnHover:m,showProgress:f,classNames:h,styles:$,onAllRemoved:c,renderNotifications:kA,stack:E});return J.useImperativeHandle(t,()=>({...w,prefixCls:v,notification:x})),R});function DA(e){const t=J.useRef(null);yo();const{notification:n}=J.useContext(ct);return[J.useMemo(()=>{const o=c=>{if(!t.current)return;const{open:u,prefixCls:d,notification:m}=t.current,f=(m==null?void 0:m.className)||{},p=(m==null?void 0:m.style)||{},y=`${d}-notice`,{title:b,message:x,description:v,icon:g,type:h,btn:$,actions:C,className:N,style:S,role:E="alert",closeIcon:w,closable:R,classNames:P={},styles:T={},...M}=c,z=b??x,B=$n(z),F=C??$,L=TR(y,Kj(w,e,m)),[j,O,,A]=PN(Ua({...e||{},...c}),Ua(n),{closable:!0,closeIcon:L}),k=j?{onClose:dt(R)?R.onClose:void 0,closeIcon:O,...A}:!1,_=Ka(P,{props:c}),D=Ka(T,{props:c}),V=g||(h?_A[h]:null),W=!g&&h?`${y}-icon-${h}`:void 0;return u({placement:(e==null?void 0:e.placement)??jA,...M,title:B?z:null,description:v,icon:V,actions:F,role:E,classNames:{..._,icon:H(W,_.icon)},styles:{...D,root:{...p,...D.root}},className:H({[`${y}-${h}`]:h},N,f),style:S,closable:k})},i={open:o,destroy:c=>{var u,d;c!==void 0?(u=t.current)==null||u.close(c):(d=t.current)==null||d.destroy()}};return["success","info","warning","error"].forEach(c=>{i[c]=u=>o({...u,type:c})}),i},[e,n]),J.createElement(AA,{key:"notification-holder",...e,ref:t})]}function FA(e){return DA(e)}const Wy=J.createContext({}),MR=J.createContext({message:{},notification:{},modal:{}}),HA=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:s}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:s,[`&${t}-rtl`]:{direction:"rtl"}}}},VA=()=>({}),WA=Tt("App",HA,VA),KA=J.forwardRef((e,t)=>{const{prefixCls:n,children:r,className:o,rootClassName:s,message:i,notification:l,style:c,component:u="div"}=e,{direction:d,getPrefixCls:m,className:f,style:p}=Pt("app"),y=m("app",n),[b,x]=WA(y),v=H(b,y,o,s,x,{[`${y}-rtl`]:d==="rtl"}),g=a.useContext(Wy),h=J.useMemo(()=>({message:{...g.message,...i},notification:{...g.notification,...l}}),[i,l,g.message,g.notification]),[$,C]=AN(h.message),[N,S]=FA(h.notification),[E,w]=RR(),R=J.useMemo(()=>({message:$,notification:N,modal:E}),[$,N,E]);yo()(!(x&&u===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string."),yo()(!t||u!==!1,"usage","`ref` is not supported when `component` is `false`. Please provide a valid `component` instead.");const P=u===!1?J.Fragment:u,T={className:H(f,v),style:{...p,...c}};return J.createElement(MR.Provider,{value:R},J.createElement(Wy.Provider,{value:h},J.createElement(P,{...u===!1?void 0:{...T,ref:t}},w,C,S,r)))}),UA=()=>J.useContext(MR),Lo=KA;Lo.useApp=UA;function OR(e){return t=>a.createElement(to,{theme:{token:{motion:!1,zIndexPopupBase:0}}},a.createElement(e,{...t}))}const _R=(e,t,n,r,o)=>OR(i=>{const{prefixCls:l,style:c}=i,u=a.useRef(null),[d,m]=a.useState(0),[f,p]=a.useState(0),[y,b]=nn(!1,i.open),{getPrefixCls:x}=a.useContext(ct),v=x(r||"select",l);a.useEffect(()=>{if(b(!0),typeof ResizeObserver<"u"){const $=new ResizeObserver(N=>{const S=N[0].target;m(S.offsetHeight+8),p(S.offsetWidth)}),C=setInterval(()=>{var E;const N=o?`.${o(v)}`:`.${v}-dropdown`,S=(E=u.current)==null?void 0:E.querySelector(N);S&&(clearInterval(C),$.observe(S))},10);return()=>{clearInterval(C),$.disconnect()}}},[v]);let g={...i,style:{...c,margin:0},open:y,getPopupContainer:()=>u.current};t&&(g={...g,[t]:{overflow:{adjustX:!1,adjustY:!1}}});const h={paddingBottom:d,position:"relative",minWidth:f};return a.createElement("div",{ref:u,style:h},a.createElement(e,{...g}))}),qA=(e,t,n,r,o=!1,s,i)=>{const l=a.useMemo(()=>typeof n=="boolean"?{allowClear:n}:n&&typeof n=="object"?n:{allowClear:!1},[n]);return a.useMemo(()=>{const c=!o&&l.allowClear!==!1&&(t.length||s)&&!(i==="combobox"&&s==="");return{allowClear:c,clearIcon:c?l.clearIcon||r||"×":null}},[l,r,o,t.length,s,i])},zR=a.createContext(null);function Di(){return a.useContext(zR)}function GA(e=250){const t=a.useRef(null),n=a.useRef(null);a.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function jR(e,t){return e.filter(n=>n).some(n=>n.contains(t)||n===t)}function XA(e,t,n,r){const o=vt(s=>{if(r)return;let i=s.target;i.shadowRoot&&s.composed&&(i=s.composedPath()[0]||i),s._ori_target&&(i=s._ori_target),t&&!jR(e(),i)&&n(!1)});a.useEffect(()=>(window.addEventListener("mousedown",o),()=>window.removeEventListener("mousedown",o)),[o])}function Ky(){return Ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ky.apply(this,arguments)}const YA=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},QA=(e,t)=>{const{prefixCls:n,disabled:r,visible:o,children:s,popupElement:i,animation:l,transitionName:c,popupStyle:u,popupClassName:d,direction:m="ltr",placement:f,builtinPlacements:p,popupMatchSelectWidth:y,popupRender:b,popupAlign:x,getPopupContainer:v,empty:g,onPopupVisibleChange:h,onPopupMouseEnter:$,onPopupMouseDown:C,onPopupBlur:N,...S}=e,E=`${n}-dropdown`;let w=i;b&&(w=b(i));const R=a.useMemo(()=>p||YA(y),[p,y]),P=l?`${E}-${l}`:c,T=typeof y=="number",M=a.useMemo(()=>y===!1||T?"minWidth":"width",[y,T]);let z=u;T&&(z={...u,width:y});const B=a.useRef(null);return a.useImperativeHandle(t,()=>({getPopupElement:()=>{var F;return(F=B.current)==null?void 0:F.popupElement}})),a.createElement(bm,Ky({},S,{showAction:h?["click"]:[],hideAction:h?["click"]:[],popupPlacement:f||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:E,popupMotion:{motionName:P},popup:a.createElement("div",{onMouseEnter:$,onMouseDown:C,onBlur:N},w),ref:B,stretch:M,popupAlign:x,popupVisible:o,getPopupContainer:v,popupClassName:H(d,{[`${E}-empty`]:g}),popupStyle:z,onPopupVisibleChange:h}),s)},JA=a.forwardRef(QA);function fC(e,t){const{key:n}=e;let r;return"value"in e&&({value:r}=e),n??(r!==void 0?r:`rc-index-key-${t}`)}function Uy(e){return typeof e<"u"&&!Number.isNaN(e)}function BR(e,t){const{label:n,value:r,options:o,groupLabel:s}=e||{},i=n||(t?"children":"label");return{label:i,value:r||"value",options:o||"options",groupLabel:s||i}}function ZA(e,{fieldNames:t,childrenAsData:n}={}){const r=[],{label:o,value:s,options:i,groupLabel:l}=BR(t,!1);function c(u,d){Array.isArray(u)&&u.forEach(m=>{if(d||!(i in m)){const f=m[s];r.push({key:fC(m,r.length),groupOption:d,data:m,label:m[o],value:f})}else{let f=m[l];f===void 0&&n&&(f=m.label),r.push({key:fC(m,r.length),group:!0,data:m,label:f}),c(m[i],!0)}})}return c(e,!1),r}function qy(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return fn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const eD=(e,t,n)=>{if(!t||!t.length)return null;let r=!1;const o=(i,[l,...c])=>{if(!l)return[i];const u=i.split(l);return r=r||u.length>1,u.reduce((d,m)=>[...d,...o(m,c)],[]).filter(Boolean)},s=o(e,t);return r?typeof n<"u"?s.slice(0,n):s:null};function tD(e){const{visible:t,values:n}=e;if(!t)return null;const r=50;return a.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${n.slice(0,r).map(({label:o,value:s})=>["number","string"].includes(typeof o)?o:s).join(", ")}`,n.length>r?", ...":null)}const nD=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},Cx=(e,t=1)=>{if(t<=0){e();return}nD(()=>{Cx(e,t-1)})};function rD(e,t,n,r){const[o,s]=a.useState(!1);a.useEffect(()=>{s(!0)},[]);const[i,l]=nn(e,t),[c,u]=a.useState(!1),d=o?i:!1,m=r(d),f=a.useRef(0),p=vt(b=>{n&&m!==b&&n(b),l(b)}),y=vt((b,x={})=>{const{cancelFun:v}=x;f.current+=1;const g=f.current,h=typeof b=="boolean"?b:!m;u(!h);function $(){g===f.current&&!(v!=null&&v())&&(p(h),u(!1))}h?$():Cx(()=>{$()})});return[d,m,y,c]}function ig(e){const{children:t,...n}=e;return t?a.createElement("div",n,t):null}const LR=a.createContext(null);function tu(){return a.useContext(LR)}const kR=a.forwardRef((e,t)=>{const{onChange:n,onKeyDown:r,onBlur:o,style:s,syncWidth:i,value:l,className:c,autoComplete:u,...d}=e,{prefixCls:m,mode:f,onSearch:p,onSearchSubmit:y,onInputBlur:b,autoFocus:x,tokenWithEnter:v,placeholder:g,components:{input:h="input"}}=tu(),{id:$,classNames:C,styles:N,open:S,activeDescendantId:E,role:w,disabled:R}=Di()||{},P=H(`${m}-input`,C==null?void 0:C.input,c),T=a.useRef(!1),M=a.useRef(null),z=a.useRef(null);a.useImperativeHandle(t,()=>z.current);const B=W=>{let{value:K}=W.target;if(v&&M.current&&/[\r\n]/.test(M.current)){const q=M.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");K=K.replace(q,M.current)}M.current=null,p&&p(K,!0,T.current),n==null||n(W)},F=W=>{const{key:K}=W,{value:q}=W.currentTarget;K==="Enter"&&f==="tags"&&!S&&!T.current&&y&&y(q),r==null||r(W)},L=W=>{b==null||b(),o==null||o(W)},j=()=>{T.current=!0},O=W=>{if(T.current=!1,f!=="combobox"){const{value:K}=W.currentTarget;p==null||p(K,!0,!1)}},A=W=>{const{clipboardData:K}=W,q=K==null?void 0:K.getData("text");M.current=q||""},[k,_]=a.useState(void 0);It(()=>{const W=z.current;if(i&&W){W.style.width="0px";const K=W.scrollWidth;_(K),W.style.width=""}},[i,l]);const D={id:$,type:"text",...d,ref:z,style:{...N==null?void 0:N.input,...s,"--select-input-width":k},autoFocus:x,autoComplete:u||"new-password",className:P,disabled:R,value:l||"",onChange:B,onKeyDown:F,onBlur:L,onPaste:A,onCompositionStart:j,onCompositionEnd:O,role:w||"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":S?`${$}_list`:void 0,"aria-autocomplete":"list","aria-controls":S?`${$}_list`:void 0,"aria-activedescendant":S?E:void 0};if(a.isValidElement(h)){const W=h.props||{},K={placeholder:e.placeholder||g,...D,...W};return Object.keys(W).forEach(q=>{const Y=W[q];typeof Y=="function"&&(K[q]=(...ee)=>{var ie;Y(...ee),(ie=D[q])==null||ie.call(D,...ee)})}),K.ref=Tn(h.ref,D.ref),a.cloneElement(h,K)}const V=h;return a.createElement(V,D)});function AR(e){const{prefixCls:t,placeholder:n,displayValues:r}=tu(),{classNames:o,styles:s}=Di(),{show:i=!0}=e;return r.length?null:a.createElement("div",{className:H(`${t}-placeholder`,o==null?void 0:o.placeholder),style:{visibility:i?"visible":"hidden",...s==null?void 0:s.placeholder}},n)}const wx=a.createContext(null);function DR(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function oD(e){return e!=null}function sD(e){return!e&&e!==0}function mC(e){return["string","number"].includes(typeof e)}function Gy(e){let t;return e&&(mC(e.title)?t=e.title.toString():mC(e.label)&&(t=e.label.toString())),t}function Xy(){return Xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xy.apply(this,arguments)}const iD=a.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:o,displayValues:s,maxLength:i,mode:l,components:c}=tu(),{triggerOpen:u,title:d,showSearch:m,classNames:f,styles:p}=Di(),y=a.useContext(wx),[b,x]=a.useState(!1),v=l==="combobox",g=s[0],h=a.useMemo(()=>v&&o&&!b&&u?o:m?r:"",[v,o,b,u,r,m]),[$,C,N,S]=a.useMemo(()=>{let P,T,M;if(g&&(y!=null&&y.flattenOptions)){const B=y.flattenOptions.find(F=>F.value===g.value);B!=null&&B.data&&(P=B.data.className,T=B.data.style,M=Gy(B.data))}return g&&!M&&(M=Gy(g)),d!==void 0&&(M=d),[P,T,M,!!P||!!T]},[g,y==null?void 0:y.flattenOptions,d]);a.useEffect(()=>{v&&x(!1)},[v,o]);const E=g&&g.label!==null&&g.label!==void 0&&String(g.label).trim()!=="",R=!(v&&(c!=null&&c.input))?g?S?a.createElement("div",{className:H(`${n}-content-value`,$),style:{...h?{visibility:"hidden"}:{},...C},title:N},g.label):g.label:a.createElement(AR,{show:!h}):null;return a.createElement("div",{className:H(`${n}-content`,E&&`${n}-content-has-value`,h&&`${n}-content-has-search-value`,S&&`${n}-content-has-option-style`,f==null?void 0:f.content),style:p==null?void 0:p.content,title:S?void 0:N},R,a.createElement(kR,Xy({ref:t},e,{value:h,maxLength:l==="combobox"?i:void 0,onChange:P=>{var T;x(!0),(T=e.onChange)==null||T.call(e,P)}})))}),Ji=void 0;function aD(e,t){const{prefixCls:n,invalidate:r,item:o,renderItem:s,responsive:i,responsiveDisabled:l,registerSize:c,itemKey:u,className:d,style:m,children:f,display:p,order:y,component:b="div",...x}=e,v=i&&!p;function g(S){c(u,S)}a.useEffect(()=>()=>{g(null)},[]);const h=s&&o!==Ji?s(o,{index:y}):f;let $;r||($={opacity:v?0:1,height:v?0:Ji,overflowY:v?"hidden":Ji,order:i?y:Ji,pointerEvents:v?"none":Ji,position:v?"absolute":Ji});const C={};v&&(C["aria-hidden"]=!0);let N=a.createElement(b,qr({className:H(!r&&n,d),style:{...$,...m}},C,x,{ref:t}),h);return i&&(N=a.createElement(ir,{onResize:({offsetWidth:S})=>{g(S)},disabled:l},N)),N}const Ol=a.forwardRef(aD);function lD(e){if(typeof MessageChannel>"u")Ct(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function cD(){const e=a.useRef(null);return n=>{e.current||(e.current=[],lD(()=>{ss.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r()}),e.current=null})})),e.current.push(n)}}function Zi(e,t){const[n,r]=a.useState(t),o=vt(s=>{e(()=>{r(s)})});return[n,o]}const pf=J.createContext(null),uD=(e,t)=>{const n=a.useContext(pf);if(!n){const{component:l="div",...c}=e;return a.createElement(l,qr({},c,{ref:t}))}const{className:r,...o}=n,{className:s,...i}=e;return a.createElement(pf.Provider,{value:null},a.createElement(Ol,qr({ref:t,className:H(r,s)},o,i)))},dD=a.forwardRef(uD),FR="responsive",HR="invalidate";function fD(e){return`+ ${e.length} ...`}function mD(e,t){const{prefixCls:n="rc-overflow",data:r=[],renderItem:o,renderRawItem:s,itemKey:i,itemWidth:l=10,ssr:c,style:u,className:d,maxCount:m,renderRest:f,renderRawRest:p,prefix:y,suffix:b,component:x="div",itemComponent:v,onVisibleChange:g,...h}=e,$=c==="full",C=cD(),[N,S]=Zi(C,null),E=N||0,[w,R]=Zi(C,new Map),[P,T]=Zi(C,0),[M,z]=Zi(C,0),[B,F]=Zi(C,0),[L,j]=Zi(C,0),[O,A]=a.useState(null),[k,_]=a.useState(null),D=a.useMemo(()=>k===null&&$?Number.MAX_SAFE_INTEGER:k||0,[k,N]),[V,W]=a.useState(!1),K=`${n}-item`,q=Math.max(P,M),Y=m===FR,ee=r.length&&Y,ie=m===HR,ae=ee||typeof m=="number"&&r.length>m,U=a.useMemo(()=>{let Oe=r;return ee?N===null&&$?Oe=r:Oe=r.slice(0,Math.min(r.length,E/l)):typeof m=="number"&&(Oe=r.slice(0,m)),Oe},[r,l,N,m,ee]),Q=a.useMemo(()=>ee?r.slice(D+1):r.slice(U.length),[r,U,ee,D]),Z=a.useCallback((Oe,Ce)=>typeof i=="function"?i(Oe):(i&&(Oe==null?void 0:Oe[i]))??Ce,[i]),ne=a.useCallback(o||(Oe=>Oe),[o]);function oe(Oe,Ce,Me){k===Oe&&(Ce===void 0||Ce===O)||(_(Oe),Me||(W(Oe<r.length-1),g==null||g(Oe)),Ce!==void 0&&A(Ce))}function le(Oe,Ce){S(Ce.clientWidth)}function re(Oe,Ce){R(Me=>{const xe=new Map(Me);return Ce===null?xe.delete(Oe):xe.set(Oe,Ce),xe})}function X(Oe,Ce){z(Ce),T(M)}function se(Oe,Ce){F(Ce)}function ge(Oe,Ce){j(Ce)}function de(Oe){return w.get(Z(U[Oe],Oe))}It(()=>{if(E&&typeof q=="number"&&U){let Oe=B+L;const Ce=U.length,Me=Ce-1;if(!Ce){oe(0,null);return}for(let xe=0;xe<Ce;xe+=1){let Ee=de(xe);if($&&(Ee=Ee||0),Ee===void 0){oe(xe-1,void 0,!0);break}if(Oe+=Ee,Me===0&&Oe<=E||xe===Me-1&&Oe+de(Me)<=E){oe(Me,null);break}else if(Oe+q>E){oe(xe-1,Oe-Ee-L+M);break}}b&&de(0)+L>E&&A(null)}},[E,w,M,B,L,Z,U]);const Se=V&&!!Q.length;let ue={};O!==null&&ee&&(ue={position:"absolute",top:0,insetInlineStart:O});const be={prefixCls:K,responsive:ee,component:v,invalidate:ie},Ne=s?(Oe,Ce)=>{const Me=Z(Oe,Ce);return a.createElement(pf.Provider,{key:Me,value:{...be,order:Ce,item:Oe,itemKey:Me,registerSize:re,display:Ce<=D}},s(Oe,Ce))}:(Oe,Ce)=>{const Me=Z(Oe,Ce);return a.createElement(Ol,qr({},be,{order:Ce,key:Me,item:Oe,renderItem:ne,itemKey:Me,registerSize:re,display:Ce<=D}))},we={order:Se?D:Number.MAX_SAFE_INTEGER,className:`${K}-rest`,registerSize:X,display:Se},ze=f||fD,he=p?a.createElement(pf.Provider,{value:{...be,...we}},p(Q)):a.createElement(Ol,qr({},be,we),typeof ze=="function"?ze(Q):ze),ke=a.createElement(x,qr({className:H(!ie&&n,d),style:u,ref:t},h),y&&a.createElement(Ol,qr({},be,{responsive:Y,responsiveDisabled:!ee,order:-1,className:`${K}-prefix`,registerSize:se,display:!0}),y),U.map(Ne),ae?he:null,b&&a.createElement(Ol,qr({},be,{responsive:Y,responsiveDisabled:!ee,order:D,className:`${K}-suffix`,registerSize:ge,display:!0,style:ue}),b));return Y?a.createElement(ir,{onResize:le,disabled:!ee},ke):ke}const es=a.forwardRef(mD);es.Item=dD;es.RESPONSIVE=FR;es.INVALIDATE=HR;const VR=e=>{const{className:t,style:n,customizeIcon:r,customizeIconProps:o,children:s,onMouseDown:i,onClick:l}=e,c=typeof r=="function"?r(o):r;return a.createElement("span",{className:t,onMouseDown:u=>{u.preventDefault(),i==null||i(u)},style:{userSelect:"none",WebkitUserSelect:"none",...n},unselectable:"on",onClick:l,"aria-hidden":!0},c!==void 0?c:a.createElement("span",{className:H(t.split(/\s+/).map(u=>`${u}-icon`))},s))};function Yy(){return Yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yy.apply(this,arguments)}function pD(e){return e.key??e.value}const pC=e=>{e.preventDefault(),e.stopPropagation()},gD=a.forwardRef(function({inputProps:t},n){const{prefixCls:r,displayValues:o,searchValue:s,mode:i,onSelectorRemove:l,removeIcon:c}=tu(),{disabled:u,showSearch:d,triggerOpen:m,rawOpen:f,toggleOpen:p,autoClearSearchValue:y,tagRender:b,maxTagPlaceholder:x,maxTagTextLength:v,maxTagCount:g,classNames:h,styles:$}=Di(),C=`${r}-selection-item`;let N=s;!f&&i==="multiple"&&y!==!1&&(N="");const S=d&&N||"",E=d&&!u,w=c??"×",R=x??(j=>`+ ${j.length} ...`),P=b,T=j=>{p(j)},M=j=>{l==null||l(j)},z=(j,O,A,k,_)=>a.createElement("span",{title:Gy(j),className:H(C,{[`${C}-disabled`]:A},h==null?void 0:h.item),style:$==null?void 0:$.item},a.createElement("span",{className:H(`${C}-content`,h==null?void 0:h.itemContent),style:$==null?void 0:$.itemContent},O),k&&a.createElement(VR,{className:H(`${C}-remove`,h==null?void 0:h.itemRemove),style:$==null?void 0:$.itemRemove,onMouseDown:pC,onClick:_,customizeIcon:w},"×")),B=(j,O,A,k,_,D,V)=>{const W=K=>{pC(K),T(!m)};return a.createElement("span",{onMouseDown:W},P({label:O,value:j,index:V==null?void 0:V.index,disabled:A,closable:k,onClose:_,isMaxTag:!!D}))},F=(j,O)=>{const{disabled:A,label:k,value:_}=j,D=!u&&!A;let V=k;if(typeof v=="number"&&(typeof k=="string"||typeof k=="number")){const K=String(V);K.length>v&&(V=`${K.slice(0,v)}...`)}const W=K=>{K&&K.stopPropagation(),M(j)};return typeof P=="function"?B(_,V,A,D,W,void 0,O):z(j,V,A,D,W)},L=j=>{if(!o.length)return null;const O=typeof R=="function"?R(j):R;return typeof P=="function"?B(void 0,O,!1,!1,void 0,!0):z({title:O},O,!1)};return a.createElement(es,{prefixCls:`${r}-content`,className:h==null?void 0:h.content,style:$==null?void 0:$.content,prefix:!o.length&&!S&&a.createElement(AR,null),data:o,renderItem:F,renderRest:L,suffix:a.createElement(kR,Yy({ref:n,disabled:u,readOnly:!E},t,{value:S||"",syncWidth:!0})),itemKey:pD,maxCount:g})}),hD=a.forwardRef(function(t,n){const{multiple:r,onInputKeyDown:o,tabIndex:s}=tu(),i=Di(),{showSearch:l}=i,u={...Nn(i,{aria:!0}),onKeyDown:o,readOnly:!l,tabIndex:s};return r?a.createElement(gD,{ref:n,inputProps:u}):a.createElement(iD,{ref:n,inputProps:u})});function yD(e){return e&&![nt.ESC,nt.SHIFT,nt.BACKSPACE,nt.TAB,nt.WIN_KEY,nt.ALT,nt.META,nt.WIN_KEY_RIGHT,nt.CTRL,nt.SEMICOLON,nt.EQUALS,nt.CAPS_LOCK,nt.CONTEXT_MENU,nt.UP,nt.LEFT,nt.RIGHT,nt.F1,nt.F2,nt.F3,nt.F4,nt.F5,nt.F6,nt.F7,nt.F8,nt.F9,nt.F10,nt.F11,nt.F12].includes(e)}function gf(){return gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gf.apply(this,arguments)}const vD=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],bD=a.forwardRef(function(t,n){const{prefixCls:r,className:o,style:s,prefix:i,suffix:l,clearIcon:c,children:u,multiple:d,displayValues:m,placeholder:f,mode:p,searchValue:y,onSearch:b,onSearchSubmit:x,onInputBlur:v,maxLength:g,autoFocus:h,onMouseDown:$,onClearMouseDown:C,onInputKeyDown:N,onSelectorRemove:S,tokenWithEnter:E,components:w,...R}=t,{triggerOpen:P,toggleOpen:T,showSearch:M,disabled:z,loading:B,classNames:F,styles:L}=Di(),j=a.useRef(null),O=a.useRef(null),A=vt(q=>{const{which:Y}=q,ee=O.current instanceof HTMLTextAreaElement;if(!ee&&P&&(Y===nt.UP||Y===nt.DOWN)&&q.preventDefault(),N&&N(q),ee&&!P&&~[nt.UP,nt.DOWN,nt.LEFT,nt.RIGHT].indexOf(Y))return;!(q.ctrlKey||q.altKey||q.metaKey)&&yD(Y)&&T(!0)});a.useImperativeHandle(n,()=>({focus:q=>{var Y,ee;(ee=(Y=O.current||j.current).focus)==null||ee.call(Y,q)},blur:()=>{var q,Y;(Y=(q=O.current||j.current).blur)==null||Y.call(q)},nativeElement:go(j.current)}));const k=vt(q=>{var Y;if(!z){const ee=go(O.current);q.nativeEvent._ori_target=ee;const ie=ee===q.target||(ee==null?void 0:ee.contains(q.target));ee&&!ie&&q.preventDefault();const Q=P&&!d&&(p==="combobox"||M)||P&&d&&ie;q.nativeEvent._select_lazy?P&&!d&&T(!1):((Y=O.current)==null||Y.focus(),Q||T())}$==null||$(q)}),{root:_}=w,D=Dt(R,vD),V=Nn(D,{aria:!0}),W=Object.keys(V),K={...t,onInputKeyDown:A};if(_){const q=_.props||{},Y={...q,...D};return Object.keys(q).forEach(ee=>{const ie=q[ee],ae=D[ee];typeof ie=="function"&&typeof ae=="function"&&(Y[ee]=(...U)=>{ae(...U),ie(...U)})}),a.isValidElement(_)?a.cloneElement(_,{...Y,ref:Tn(_.ref,j)}):a.createElement(_,gf({},Y,{ref:j}))}return a.createElement(LR.Provider,{value:K},a.createElement("div",gf({},Dt(D,W),{ref:j,className:o,style:s,onMouseDown:k}),a.createElement(ig,{className:H(`${r}-prefix`,F==null?void 0:F.prefix),style:L==null?void 0:L.prefix},i),a.createElement(hD,{ref:O}),a.createElement(ig,{className:H(`${r}-suffix`,{[`${r}-suffix-loading`]:B},F==null?void 0:F.suffix),style:L==null?void 0:L.suffix},l),c&&a.createElement(ig,{className:H(`${r}-clear`,F==null?void 0:F.clear),style:L==null?void 0:L.clear,onMouseDown:q=>{q.nativeEvent._select_lazy=!0,C==null||C(q)}},c),u))});function xD(e,t,n){return a.useMemo(()=>{let{root:r,input:o}=e||{};return n&&(r=n()),t&&(o=t()),{root:r,input:o}},[e,t,n])}function Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qy.apply(this,arguments)}const Jy=e=>e==="tags"||e==="multiple",$D=a.forwardRef((e,t)=>{const{id:n,prefixCls:r,className:o,styles:s,classNames:i,showSearch:l,tagRender:c,showScrollBar:u="optional",direction:d,omitDomProps:m,displayValues:f,onDisplayValuesChange:p,emptyOptions:y,notFoundContent:b="Not Found",onClear:x,maxCount:v,placeholder:g,mode:h,disabled:$,loading:C,getInputElement:N,getRawInputElement:S,open:E,defaultOpen:w,onPopupVisibleChange:R,activeValue:P,onActiveValueChange:T,activeDescendantId:M,searchValue:z,autoClearSearchValue:B,onSearch:F,onSearchSplit:L,tokenSeparators:j,allowClear:O,prefix:A,suffix:k,suffixIcon:_,clearIcon:D,OptionList:V,animation:W,transitionName:K,popupStyle:q,popupClassName:Y,popupMatchSelectWidth:ee,popupRender:ie,popupAlign:ae,placement:U,builtinPlacements:Q,getPopupContainer:Z,showAction:ne=[],onFocus:oe,onBlur:le,onKeyUp:re,onKeyDown:X,onMouseDown:se,components:ge,...de}=e,Se=Jy(h),ue=a.useRef(null),be=a.useRef(null),Ne=a.useRef(null),[we,ze]=a.useState(!1);a.useImperativeHandle(t,()=>{var Le,Ke;return{focus:(Le=ue.current)==null?void 0:Le.focus,blur:(Ke=ue.current)==null?void 0:Ke.blur,scrollTo:lt=>{var _t;return(_t=Ne.current)==null?void 0:_t.scrollTo(lt)},nativeElement:go(ue.current)}});const he=xD(ge,N,S),ke=a.useMemo(()=>{var Ke;if(h!=="combobox")return z;const Le=(Ke=f[0])==null?void 0:Ke.value;return typeof Le=="string"||typeof Le=="number"?String(Le):""},[z,h,f]),Oe=h==="combobox"&&typeof N=="function"&&N()||null,Ce=!b&&y,[Me,xe,Ee,Ve]=rD(w||!1,E,R,Le=>$||Ce?!1:Le),qe=a.useMemo(()=>typeof j=="function"||(j||[]).some(Le=>[`
`,`\r
`].includes(Le)),[j]),me=a.useMemo(()=>typeof j=="function"?(Le,Ke)=>{const lt=j(Le),_t=Array.isArray(lt)&&lt.length===1&&lt[0]===Le;return!Array.isArray(lt)||!lt.length||_t?null:typeof Ke<"u"?lt.slice(0,Ke):lt}:(Le,Ke)=>eD(Le,j,Ke),[j]),Re=(Le,Ke,lt)=>{if(Se&&Uy(v)&&f.length>=v)return;let _t=!0,ft=Le;T==null||T(null);const xt=Uy(v)?v-f.length:void 0,jt=lt?null:me(Le,xt);return h!=="combobox"&&jt&&(ft="",L==null||L(jt),Ee(!1),_t=!1),F&&ke!==ft&&F(ft,{source:Ke?"typing":"effect"}),Le&&Ke&&_t&&Ee(!0),_t},Te=Le=>{!Le||!Le.trim()||F(Le,{source:"submit"})};a.useEffect(()=>{!Me&&!Se&&h!=="combobox"&&Re("",!1,!1)},[Me]),a.useEffect(()=>{$&&(Ee(!1),ze(!1))},[$,xe]);const[Ue,Ge]=GA(),Fe=a.useRef(!1),et=Le=>{var xt;const Ke=Ue(),{key:lt}=Le,_t=lt==="Enter",ft=lt===" ";if(_t||ft){const jt=h==="combobox";(ft&&!(jt||l)||_t&&!jt)&&Le.preventDefault(),xe||Ee(!0)}if(Ge(!!ke),lt==="Backspace"&&!Ke&&Se&&!ke&&f.length){const jt=[...f];let pt=null;for(let qt=jt.length-1;qt>=0;qt-=1){const cn=jt[qt];if(!cn.disabled){jt.splice(qt,1),pt=cn;break}}pt&&p(jt,{type:"remove",values:[pt]})}xe&&(!_t||!Fe.current)&&!ft&&(_t&&(Fe.current=!0),(xt=Ne.current)==null||xt.onKeyDown(Le)),X==null||X(Le)},ve=(Le,...Ke)=>{var lt;xe&&((lt=Ne.current)==null||lt.onKeyUp(Le,...Ke)),Le.key==="Enter"&&(Fe.current=!1),re==null||re(Le,...Ke)},je=vt(Le=>{const Ke=f.filter(lt=>lt!==Le);p(Ke,{type:"remove",values:[Le]})}),ce=()=>{Fe.current=!1},Pe=()=>{var Le;return[go(ue.current),(Le=be.current)==null?void 0:Le.getPopupElement()]};XA(Pe,xe,Ee,!!he.root);const pe=a.useRef(!1),$e=Le=>{ze(!0),$||(ne.includes("focus")&&Ee(!0),oe==null||oe(Le))},_e=()=>{xe&&!pe.current&&Ee(!1,{cancelFun:()=>jR(Pe(),document.activeElement)})},Ie=Le=>{ze(!1),ke&&(h==="tags"?F(ke,{source:"submit"}):h==="multiple"&&F("",{source:"blur"})),_e(),$||le==null||le(Le)},Be=(Le,...Ke)=>{var ft;const{target:lt}=Le,_t=(ft=be.current)==null?void 0:ft.getPopupElement();_t!=null&&_t.contains(lt)&&Ee&&Ee(!0),se==null||se(Le,...Ke),pe.current=!0,Cx(()=>{pe.current=!1})},[,te]=a.useState({});function ye(){te({})}let Ae;he.root&&(Ae=Le=>{Ee(Le)});const Je=a.useMemo(()=>({...e,notFoundContent:b,open:xe,triggerOpen:xe,rawOpen:Me,id:n,showSearch:l,multiple:Se,toggleOpen:Ee,showScrollBar:u,styles:s,classNames:i,lockOptions:Ve}),[e,b,Ee,n,l,Se,xe,Me,u,s,i,Ve]),St=a.useMemo(()=>{const Le=k??_;return typeof Le=="function"?Le({searchValue:ke,open:xe,focused:we,showSearch:l,loading:C}):Le},[k,_,ke,xe,we,l,C]),ht=()=>{var Le;x==null||x(),(Le=ue.current)==null||Le.focus(),p([],{type:"clear",values:f}),Re("",!1,!1)},{allowClear:Nt,clearIcon:yt}=qA(r,f,O,D,$,ke,h),at=a.createElement(V,{ref:Ne}),Ze=H(r,o,{[`${r}-focused`]:we,[`${r}-multiple`]:Se,[`${r}-single`]:!Se,[`${r}-allow-clear`]:Nt,[`${r}-show-arrow`]:St!=null,[`${r}-disabled`]:$,[`${r}-loading`]:C,[`${r}-open`]:xe,[`${r}-customize-input`]:Oe,[`${r}-show-search`]:l});let De=a.createElement(bD,Qy({},de,{ref:ue,prefixCls:r,className:Ze,focused:we,prefix:A,suffix:St,clearIcon:yt,multiple:Se,mode:h,displayValues:f,placeholder:g,searchValue:ke,activeValue:P,onSearch:Re,onSearchSubmit:Te,onInputBlur:ce,onFocus:$e,onBlur:Ie,onClearMouseDown:ht,onKeyDown:et,onKeyUp:ve,onSelectorRemove:je,tokenWithEnter:qe,onMouseDown:Be,components:he}));return De=a.createElement(JA,{ref:be,disabled:$,prefixCls:r,visible:xe,popupElement:at,animation:W,transitionName:K,popupStyle:q,popupClassName:Y,direction:d,popupMatchSelectWidth:ee,popupRender:ie,popupAlign:ae,placement:U,builtinPlacements:Q,getPopupContainer:Z,empty:y,onPopupVisibleChange:Ae,onPopupMouseEnter:ye,onPopupMouseDown:Be,onPopupBlur:_e},De),a.createElement(zR.Provider,{value:Je},a.createElement(tD,{visible:we&&!xe,values:f}),De)}),Ex=()=>null;Ex.isSelectOptGroup=!0;const Ix=()=>null;Ix.isSelectOption=!0;function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zy.apply(this,arguments)}const WR=a.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:o,onInnerResize:s,innerProps:i,rtl:l,extra:c},u)=>{let d={},m={display:"flex",flexDirection:"column"};return t!==void 0&&(d={height:e,position:"relative",overflow:"hidden"},m={...m,transform:`translateY(${t}px)`,[l?"marginRight":"marginLeft"]:-n,position:"absolute",left:0,right:0,top:0}),a.createElement("div",{style:d},a.createElement(ir,{onResize:({offsetHeight:f})=>{f&&s&&s()}},a.createElement("div",Zy({style:m,className:H({[`${o}-holder-inner`]:o}),ref:u},i),r,c)))});WR.displayName="Filler";function SD({children:e,setRef:t}){const n=a.useCallback(r=>{t(r)},[t]);return a.cloneElement(e,{ref:n})}function CD(e,t,n,r,o,s,i,{getKey:l}){return e.slice(t,n+1).map((c,u)=>{const d=t+u,m=i(c,d,{style:{width:r},offsetX:o}),f=l(c);return a.createElement(SD,{key:f,setRef:p=>s(c,p)},m)})}function wD(e,t,n){const r=e.length,o=t.length;let s,i;if(r===0&&o===0)return null;r<o?(s=e,i=t):(s=t,i=e);const l={__EMPTY_ITEM__:!0};function c(m){return m!==void 0?n(m):l}let u=null,d=Math.abs(r-o)!==1;for(let m=0;m<i.length;m+=1){const f=c(s[m]),p=c(i[m]);if(f!==p){u=m,d=d||f!==c(i[m+1]);break}}return u===null?null:{index:u,multiple:d}}function ED(e,t,n){const[r,o]=a.useState(e),[s,i]=a.useState(null);return a.useEffect(()=>{const l=wD(r||[],e||[],t);(l==null?void 0:l.index)!==void 0&&i(e[l.index]),o(e)},[e]),[s]}const gC=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),KR=(e,t,n,r)=>{const o=a.useRef(!1),s=a.useRef(null);function i(){clearTimeout(s.current),o.current=!0,s.current=setTimeout(()=>{o.current=!1},50)}const l=a.useRef({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,(c,u,d=!1)=>{const m=c?u<0&&l.current.left||u>0&&l.current.right:u<0&&l.current.top||u>0&&l.current.bottom;return d&&m?(clearTimeout(s.current),o.current=!1):(!m||o.current)&&i(),!o.current&&m}};function ID(e,t,n,r,o,s,i){const l=a.useRef(0),c=a.useRef(null),u=a.useRef(null),d=a.useRef(!1),m=KR(t,n,r,o);function f(g,h){if(Ct.cancel(c.current),m(!1,h))return;const $=g;if(!$._virtualHandled)$._virtualHandled=!0;else return;l.current+=h,u.current=h,gC||$.preventDefault(),c.current=Ct(()=>{const C=d.current?10:1;i(l.current*C,!1),l.current=0})}function p(g,h){i(h,!0),gC||g.preventDefault()}const y=a.useRef(null),b=a.useRef(null);function x(g){if(!e)return;Ct.cancel(b.current),b.current=Ct(()=>{y.current=null},2);const{deltaX:h,deltaY:$,shiftKey:C}=g;let N=h,S=$;(y.current==="sx"||!y.current&&C&&$&&!h)&&(N=$,S=0,y.current="sx");const E=Math.abs(N),w=Math.abs(S);y.current===null&&(y.current=s&&E>w?"x":"y"),y.current==="y"?f(g,S):p(g,N)}function v(g){e&&(d.current=g.detail===u.current)}return[x,v]}function PD(e,t,n,r){const[o,s]=a.useMemo(()=>[new Map,[]],[e,n.id,r]);return(l,c=l)=>{let u=o.get(l),d=o.get(c);if(u===void 0||d===void 0){const m=e.length;for(let f=s.length;f<m;f+=1){const p=e[f],y=t(p);o.set(y,f);const b=n.get(y)??r;if(s[f]=(s[f-1]||0)+b,y===l&&(u=f),y===c&&(d=f),u!==void 0&&d!==void 0)break}}return{top:s[u-1]||0,bottom:s[d]}}}class ND{constructor(){fe(this,"maps");fe(this,"id",0);fe(this,"diffRecords",new Map);this.maps=Object.create(null)}set(t,n){this.diffRecords.set(t,this.maps[t]),this.maps[t]=n,this.id+=1}get(t){return this.maps[t]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}}function hC(e){const t=parseFloat(e);return isNaN(t)?0:t}function RD(e,t,n){const[r,o]=a.useState(0),s=a.useRef(new Map),i=a.useRef(new ND),l=a.useRef(0);function c(){l.current+=1}function u(m=!1){c();const f=()=>{let p=!1;s.current.forEach((y,b)=>{if(y&&y.offsetParent){const{offsetHeight:x}=y,{marginTop:v,marginBottom:g}=getComputedStyle(y),h=hC(v),$=hC(g),C=x+h+$;i.current.get(b)!==C&&(i.current.set(b,C),p=!0)}}),p&&o(y=>y+1)};if(m)f();else{l.current+=1;const p=l.current;Promise.resolve().then(()=>{p===l.current&&f()})}}function d(m,f){const p=e(m);s.current.get(p),f?(s.current.set(p,f),u()):s.current.delete(p)}return a.useEffect(()=>c,[]),[d,u,i.current,r]}const yC=14/15;function TD(e,t,n){const r=a.useRef(!1),o=a.useRef(0),s=a.useRef(0),i=a.useRef(null),l=a.useRef(null);let c;const u=f=>{if(r.current){const p=Math.ceil(f.touches[0].pageX),y=Math.ceil(f.touches[0].pageY);let b=o.current-p,x=s.current-y;const v=Math.abs(b)>Math.abs(x);v?o.current=p:s.current=y;const g=n(v,v?b:x,!1,f);g&&f.preventDefault(),clearInterval(l.current),g&&(l.current=setInterval(()=>{v?b*=yC:x*=yC;const h=Math.floor(v?b:x);(!n(v,h,!0)||Math.abs(h)<=.1)&&clearInterval(l.current)},16))}},d=()=>{r.current=!1,c()},m=f=>{c(),f.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(f.touches[0].pageX),s.current=Math.ceil(f.touches[0].pageY),i.current=f.target,i.current.addEventListener("touchmove",u,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};c=()=>{i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",d))},It(()=>(e&&t.current.addEventListener("touchstart",m,{passive:!0}),()=>{var f;(f=t.current)==null||f.removeEventListener("touchstart",m),c(),clearInterval(l.current)}),[e])}function vC(e){return Math.floor(e**.5)}function Cd(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function MD(e,t,n){a.useEffect(()=>{const r=t.current;if(e&&r){let o=!1,s,i;const l=()=>{Ct.cancel(s)},c=()=>{l(),s=Ct(()=>{n(i),c()})},u=()=>{o=!1,l()},d=f=>{if(f.target.draggable||f.button!==0)return;const p=f;p._virtualHandled||(p._virtualHandled=!0,o=!0)},m=f=>{if(o){const p=Cd(f,!1),{top:y,bottom:b}=r.getBoundingClientRect();if(p<=y){const x=y-p;i=-vC(x),c()}else if(p>=b){const x=p-b;i=vC(x),c()}else l()}};return r.addEventListener("mousedown",d),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",m),r.ownerDocument.addEventListener("dragend",u),()=>{r.removeEventListener("mousedown",d),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",m),r.ownerDocument.removeEventListener("dragend",u),l()}}},[e])}const OD=10;function _D(e,t){const n=typeof e=="function"?e(t):e;return Number.isFinite(n)?n:0}function zD(e,t,n,r,o,s,i,l,c){const u=a.useRef(void 0),[d,m]=a.useState(null);return It(()=>{if(d&&d.times<OD){if(!e.current){m(N=>({...N}));return}i();const{targetAlign:f,originAlign:p,index:y,offset:b}=d,x=f||p,v=_D(b,{getSize:s,align:x}),g=e.current.clientHeight;let h=!1,$=f,C=null;if(g){let N=0,S=0,E=0;const w=Math.min(t.length-1,y);for(let P=0;P<=w;P+=1){const T=o(t[P]);S=N;const M=n.get(T);E=S+(M===void 0?r:M),N=E}let R=x==="top"?v:g-v;for(let P=w;P>=0;P-=1){const T=o(t[P]),M=n.get(T);if(M===void 0){h=!0;break}if(R-=M,R<=0)break}switch(x){case"top":C=S-v;break;case"bottom":C=E-g+v;break;default:{const{scrollTop:P}=e.current,T=P+g;S<P?$="top":E>T&&($="bottom")}}C!==null&&l(C),C!==d.lastTop&&(h=!0)}h&&m({...d,times:d.times+1,targetAlign:$,lastTop:C})}},[d,e.current]),f=>{if(f==null){c();return}if(Ct.cancel(u.current),typeof f=="number")l(f);else if(f&&typeof f=="object"){let p;const{align:y}=f;"index"in f?{index:p}=f:p=t.findIndex(x=>o(x)===f.key);const{offset:b=0}=f;m({times:0,index:p,offset:b,originAlign:y})}}}function bC(e,t,n){if(t<=0||n<=0)return 0;const o=Math.max(Math.min(e,n),0)/n;let s=Math.ceil(o*t);return s=Math.max(s,0),s=Math.min(s,t),s}const xC=a.forwardRef((e,t)=>{const{prefixCls:n,rtl:r,scrollOffset:o,scrollRange:s,onStartMove:i,onStopMove:l,onScroll:c,horizontal:u,spinSize:d,containerSize:m,style:f,thumbStyle:p,showScrollBar:y}=e,[b,x]=a.useState(!1),[v,g]=a.useState(null),[h,$]=a.useState(null),C=!r,N=a.useRef(null),S=a.useRef(null),[E,w]=a.useState(y),R=a.useRef(void 0),P=()=>{y===!0||y===!1||(clearTimeout(R.current),w(!0),R.current=setTimeout(()=>{w(!1)},3e3))},T=s-m||0,M=m-d||0,z=a.useMemo(()=>o===0||T===0?0:o/T*M,[o,T,M]),B=W=>{var K;return!!W&&((K=S.current)==null?void 0:K.contains(W))},F=W=>{const K=N.current;if(!K)return;const q=K.getBoundingClientRect(),Y=Cd(W,u);let ee;if(Number.isFinite(Y)){if(u){const ie=C?q.left:q.right;if(!Number.isFinite(ie))return;ee=(C?Y-ie:ie-Y)-d/2}else{if(!Number.isFinite(q.top))return;ee=Y-q.top-d/2}c(bC(ee,T,M),u)}},L=W=>{W.stopPropagation(),W.preventDefault(),!(W.button!==0||B(W.target))&&F(W)},j=a.useRef({top:z,dragging:b,pageY:v,startTop:h});j.current={top:z,dragging:b,pageY:v,startTop:h};const O=vt(W=>{x(!0),g(Cd(W,u)),$(j.current.top),i(),W.stopPropagation(),W.preventDefault()});a.useEffect(()=>{const W=Y=>{Y.preventDefault()},K=N.current,q=S.current;return K.addEventListener("touchstart",W,{passive:!1}),q.addEventListener("touchstart",O,{passive:!1}),()=>{K.removeEventListener("touchstart",W),q.removeEventListener("touchstart",O)}},[O]);const A=a.useRef(void 0);A.current=T;const k=a.useRef(void 0);k.current=M,a.useEffect(()=>{if(b){let W;const K=Y=>{const{dragging:ee,pageY:ie,startTop:ae}=j.current;Ct.cancel(W);const U=N.current.getBoundingClientRect(),Q=m/(u?U.width:U.height);if(ee){const Z=(Cd(Y,u)-ie)*Q;let ne=ae;!C&&u?ne-=Z:ne+=Z;const oe=A.current,le=k.current,re=bC(ne,oe,le);W=Ct(()=>{c(re,u)})}},q=()=>{x(!1),l()};return window.addEventListener("mousemove",K,{passive:!0}),window.addEventListener("touchmove",K,{passive:!0}),window.addEventListener("mouseup",q,{passive:!0}),window.addEventListener("touchend",q,{passive:!0}),()=>{window.removeEventListener("mousemove",K),window.removeEventListener("touchmove",K),window.removeEventListener("mouseup",q),window.removeEventListener("touchend",q),Ct.cancel(W)}}},[b]),a.useEffect(()=>(P(),()=>{clearTimeout(R.current)}),[o]),a.useImperativeHandle(t,()=>({delayHidden:P}));const _=`${n}-scrollbar`,D={position:"absolute",visibility:E?null:"hidden"},V={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(D,{height:8,left:0,right:0,bottom:0}),Object.assign(V,{height:"100%",width:d,[C?"left":"right"]:z})):(Object.assign(D,{width:8,top:0,bottom:0,[C?"right":"left"]:0}),Object.assign(V,{width:"100%",height:d,top:z})),a.createElement("div",{ref:N,className:H(_,{[`${_}-horizontal`]:u,[`${_}-vertical`]:!u,[`${_}-visible`]:E}),style:{...D,...f},onMouseDown:L,onMouseMove:P},a.createElement("div",{ref:S,className:H(`${_}-thumb`,{[`${_}-thumb-moving`]:b}),style:{...V,...p},onMouseDown:O}))}),jD=20;function $C(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,jD),Math.floor(n)}function ev(){return ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ev.apply(this,arguments)}const BD=[],LD={overflowY:"auto",overflowAnchor:"none"};function UR(e,t){const{prefixCls:n="rc-virtual-list",className:r,height:o,itemHeight:s,fullHeight:i=!0,style:l,data:c,children:u,itemKey:d,virtual:m,direction:f,scrollWidth:p,component:y="div",onScroll:b,onVirtualScroll:x,onVisibleChange:v,innerProps:g,extraRender:h,styles:$,showScrollBar:C="optional",...N}=e,S=a.useCallback(pe=>typeof d=="function"?d(pe):pe==null?void 0:pe[d],[d]),[E,w,R,P]=RD(S),T=!!(m!==!1&&o&&s),M=a.useMemo(()=>Object.values(R.maps).reduce((pe,$e)=>pe+$e,0),[R.id,R.maps]),z=T&&c&&(Math.max(s*c.length,M)>o||!!p),B=f==="rtl",F=H(n,{[`${n}-rtl`]:B},r),L=c||BD,j=a.useRef(null),O=a.useRef(null),A=a.useRef(null),[k,_]=a.useState(0),[D,V]=a.useState(0),[W,K]=a.useState(!1),q=()=>{K(!0)},Y=()=>{K(!1)},ee={getKey:S};function ie(pe){_($e=>{let _e;typeof pe=="function"?_e=pe($e):_e=pe;const Ie=we(_e);return j.current.scrollTop=Ie,Ie})}const ae=a.useRef({start:0,end:L.length}),U=a.useRef(void 0),[Q]=ED(L,S);U.current=Q;const{scrollHeight:Z,start:ne,end:oe,offset:le}=a.useMemo(()=>{var te;if(!T)return{scrollHeight:void 0,start:0,end:L.length-1,offset:void 0};if(!z)return{scrollHeight:((te=O.current)==null?void 0:te.offsetHeight)||0,start:0,end:L.length-1,offset:void 0};let pe=0,$e,_e,Ie;const Be=L.length;for(let ye=0;ye<Be;ye+=1){const Ae=L[ye],Je=S(Ae),St=R.get(Je),ht=pe+(St===void 0?s:St);ht>=k&&$e===void 0&&($e=ye,_e=pe),ht>k+o&&Ie===void 0&&(Ie=ye),pe=ht}return $e===void 0&&($e=0,_e=0,Ie=Math.ceil(o/s)),Ie===void 0&&(Ie=L.length-1),Ie=Math.min(Ie+1,L.length-1),{scrollHeight:pe,start:$e,end:Ie,offset:_e}},[z,T,k,L,P,o]);ae.current.start=ne,ae.current.end=oe,a.useLayoutEffect(()=>{const pe=R.getRecord();if(pe.size===1){const $e=Array.from(pe.keys())[0],_e=pe.get($e),Ie=L[ne];if(Ie&&_e===void 0&&S(Ie)===$e){const ye=R.get($e)-s;ie(Ae=>Ae+ye)}}R.resetRecord()},[Z]);const[re,X]=a.useState({width:0,height:o}),se=pe=>{X({width:pe.offsetWidth,height:pe.offsetHeight})},ge=a.useRef(null),de=a.useRef(null),Se=a.useMemo(()=>$C(re.width,p),[re.width,p]),ue=a.useMemo(()=>$C(re.height,Z),[re.height,Z]),be=Z-o,Ne=a.useRef(be);Ne.current=be;function we(pe){let $e=pe;return Number.isNaN(Ne.current)||($e=Math.min($e,Ne.current)),$e=Math.max($e,0),$e}const ze=k<=0,he=k>=be,ke=D<=0,Oe=D>=p,Ce=KR(ze,he,ke,Oe),Me=()=>({x:B?-D:D,y:k}),xe=a.useRef(Me()),Ee=vt(pe=>{if(x){const $e={...Me(),...pe};(xe.current.x!==$e.x||xe.current.y!==$e.y)&&(x($e),xe.current=$e)}});function Ve(pe,$e){const _e=pe;$e?(ss.flushSync(()=>{V(_e)}),Ee()):ie(_e)}function qe(pe){const{scrollTop:$e}=pe.currentTarget;$e!==k&&ie($e),b==null||b(pe),Ee()}const me=pe=>{let $e=pe;const _e=p?p-re.width:0;return $e=Math.max($e,0),$e=Math.min($e,_e),$e},Re=vt((pe,$e)=>{$e?(ss.flushSync(()=>{V(_e=>{const Ie=_e+(B?-pe:pe);return me(Ie)})}),Ee()):ie(_e=>_e+pe)}),[Te,Ue]=ID(T,ze,he,ke,Oe,!!p,Re);TD(T,j,(pe,$e,_e,Ie)=>{const Be=Ie;return Ce(pe,$e,_e)?!1:!Be||!Be._virtualHandled?(Be&&(Be._virtualHandled=!0),Te({preventDefault(){},deltaX:pe?$e:0,deltaY:pe?0:$e}),!0):!1}),MD(z,j,pe=>{ie($e=>$e+pe)}),It(()=>{function pe(_e){const Ie=ze&&_e.detail<0,Be=he&&_e.detail>0;T&&!Ie&&!Be&&_e.preventDefault()}const $e=j.current;return $e.addEventListener("wheel",Te,{passive:!1}),$e.addEventListener("DOMMouseScroll",Ue,{passive:!0}),$e.addEventListener("MozMousePixelScroll",pe,{passive:!1}),()=>{$e.removeEventListener("wheel",Te),$e.removeEventListener("DOMMouseScroll",Ue),$e.removeEventListener("MozMousePixelScroll",pe)}},[T,ze,he]),It(()=>{if(p){const pe=me(D);V(pe),Ee({x:pe})}},[re.width,p]);const Ge=()=>{var pe,$e;(pe=ge.current)==null||pe.delayHidden(),($e=de.current)==null||$e.delayHidden()},Fe=PD(L,S,R,s),et=zD(j,L,R,s,S,Fe,()=>w(!0),ie,Ge);a.useImperativeHandle(t,()=>({nativeElement:A.current,getScrollInfo:Me,scrollTo:pe=>{function $e(_e){return _e&&typeof _e=="object"&&("left"in _e||"top"in _e)}$e(pe)?(pe.left!==void 0&&V(me(pe.left)),et(pe.top)):et(pe)}})),It(()=>{if(v){const pe=L.slice(ne,oe+1);v(pe,L)}},[ne,oe,L]);const ve=h==null?void 0:h({start:ne,end:oe,virtual:z,offsetX:D,scrollTop:k,offsetY:le,rtl:B,getSize:Fe}),je=CD(L,ne,oe,p,D,E,u,ee);let ce=null;o&&(ce={[i?"height":"maxHeight"]:o,...LD},T&&(ce.overflowY="hidden",p&&(ce.overflowX="hidden"),W&&(ce.pointerEvents="none")));const Pe={};return B&&(Pe.dir="rtl"),a.createElement("div",ev({ref:A,style:{...l,position:"relative"},className:F},Pe,N),a.createElement(ir,{onResize:se},a.createElement(y,{className:`${n}-holder`,style:ce,ref:j,onScroll:qe,onMouseEnter:Ge},a.createElement(WR,{prefixCls:n,height:Z,offsetX:D,offsetY:le,scrollWidth:p,onInnerResize:w,ref:O,innerProps:g,rtl:B,extra:ve},je))),z&&Z>o&&a.createElement(xC,{ref:ge,prefixCls:n,scrollOffset:k,scrollRange:Z,rtl:B,onScroll:Ve,onStartMove:q,onStopMove:Y,spinSize:ue,containerSize:re.height,style:$==null?void 0:$.verticalScrollBar,thumbStyle:$==null?void 0:$.verticalScrollBarThumb,showScrollBar:C}),z&&p>re.width&&a.createElement(xC,{ref:de,prefixCls:n,scrollOffset:D,scrollRange:p,rtl:B,onScroll:Ve,onStartMove:q,onStopMove:Y,spinSize:Se,containerSize:re.width,horizontal:!0,style:$==null?void 0:$.horizontalScrollBar,thumbStyle:$==null?void 0:$.horizontalScrollBarThumb,showScrollBar:C}))}const Tm=a.forwardRef(UR);Tm.displayName="List";const kD=a.forwardRef((e,t)=>UR({...e,virtual:!1},t));kD.displayName="List";function AD(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function Gl(){return Gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gl.apply(this,arguments)}function SC(e){return typeof e=="string"||typeof e=="number"}const DD=(e,t)=>{var ie,ae;const{prefixCls:n,id:r,open:o,multiple:s,mode:i,searchValue:l,toggleOpen:c,notFoundContent:u,onPopupScroll:d,showScrollBar:m,lockOptions:f}=Di(),{maxCount:p,flattenOptions:y,onActiveValue:b,defaultActiveFirstOption:x,onSelect:v,menuItemSelectedIcon:g,rawValues:h,fieldNames:$,virtual:C,direction:N,listHeight:S,listItemHeight:E,optionRender:w,classNames:R,styles:P}=a.useContext(wx),T=`${n}-item`,M=_i(()=>y,[o,f],(U,Q)=>Q[0]&&!Q[1]),z=a.useRef(null),B=a.useMemo(()=>s&&Uy(p)&&(h==null?void 0:h.size)>=p,[s,p,h==null?void 0:h.size]),F=U=>{U.preventDefault()},L=U=>{var Q;(Q=z.current)==null||Q.scrollTo(typeof U=="number"?{index:U}:U)},j=a.useCallback(U=>i==="combobox"?!1:h.has(U),[i,[...h].toString(),h.size]),O=(U,Q=1)=>{const Z=M.length;for(let ne=0;ne<Z;ne+=1){const oe=(U+ne*Q+Z)%Z,{group:le,data:re}=M[oe]||{};if(!le&&!(re!=null&&re.disabled)&&(j(re.value)||!B))return oe}return-1},[A,k]=a.useState(()=>O(0)),_=(U,Q=!1)=>{k(U);const Z={source:Q?"keyboard":"mouse"},ne=M[U];if(!ne){b(null,-1,Z);return}b(ne.value,U,Z)};a.useEffect(()=>{_(x!==!1?O(0):-1)},[M.length,l]);const D=a.useCallback(U=>i==="combobox"?String(U).toLowerCase()===l.toLowerCase():h.has(U),[i,l,[...h].toString(),h.size]);a.useEffect(()=>{var Q;let U;if(!s&&o&&h.size===1){const Z=Array.from(h)[0],ne=M.findIndex(({data:oe})=>l?String(oe.value).startsWith(l):oe.value===Z);ne!==-1&&(_(ne),U=setTimeout(()=>{L(ne)}))}return o&&((Q=z.current)==null||Q.scrollTo(void 0)),()=>clearTimeout(U)},[o,l]);const V=U=>{U!==void 0&&v(U,{selected:!h.has(U)}),s||c(!1)};if(a.useImperativeHandle(t,()=>({onKeyDown:U=>{const{which:Q,ctrlKey:Z}=U;switch(Q){case nt.N:case nt.P:case nt.UP:case nt.DOWN:{let ne=0;if(Q===nt.UP?ne=-1:Q===nt.DOWN?ne=1:AD()&&Z&&(Q===nt.N?ne=1:Q===nt.P&&(ne=-1)),ne!==0){const oe=O(A+ne,ne);L(oe),_(oe,!0)}break}case nt.TAB:case nt.ENTER:{const ne=M[A];if(!ne||ne.data.disabled)return V(void 0);!B||h.has(ne.value)?V(ne.value):V(void 0),o&&U.preventDefault();break}case nt.ESC:c(!1),o&&U.stopPropagation()}},onKeyUp:()=>{},scrollTo:U=>{L(U)}})),M.length===0)return a.createElement("div",{role:"listbox",id:`${r}_list`,className:`${T}-empty`,onMouseDown:F},u);const W=Object.keys($).map(U=>$[U]),K=U=>U.label;function q(U,Q){const{group:Z}=U;return{role:Z?"presentation":"option",id:`${r}_list_${Q}`}}const Y=U=>{const Q=M[U];if(!Q)return null;const Z=Q.data||{},{value:ne,disabled:oe}=Z,{group:le}=Q,re=Nn(Z,!0),X=K(Q);return Q?a.createElement("div",Gl({"aria-label":typeof X=="string"&&!le?X:null},re,{key:U},q(Q,U),{"aria-selected":D(ne),"aria-disabled":oe}),ne):null},ee={role:"listbox",id:`${r}_list`};return a.createElement(a.Fragment,null,C&&a.createElement("div",Gl({},ee,{style:{height:0,width:0,overflow:"hidden"}}),Y(A-1),Y(A),Y(A+1)),a.createElement(Tm,{itemKey:"key",ref:z,data:M,height:S,itemHeight:E,fullHeight:!1,onMouseDown:F,onScroll:d,virtual:C,direction:N,innerProps:C?null:ee,showScrollBar:m,className:(ie=R==null?void 0:R.popup)==null?void 0:ie.list,style:(ae=P==null?void 0:P.popup)==null?void 0:ae.list},(U,Q)=>{var Ee,Ve;const{group:Z,groupOption:ne,data:oe,label:le,value:re}=U,{key:X}=oe;if(Z){const qe=oe.title??(SC(le)?le.toString():void 0);return a.createElement("div",{className:H(T,`${T}-group`,oe.className),title:qe},le!==void 0?le:X)}const{disabled:se,title:ge,children:de,style:Se,className:ue,...be}=oe,Ne=Dt(be,W),we=j(re),ze=se||!we&&B,he=`${T}-option`,ke=H(T,he,ue,(Ee=R==null?void 0:R.popup)==null?void 0:Ee.listItem,{[`${he}-grouped`]:ne,[`${he}-active`]:A===Q&&!ze,[`${he}-disabled`]:ze,[`${he}-selected`]:we}),Oe=K(U),Ce=!g||typeof g=="function"||we,Me=typeof Oe=="number"?Oe:Oe||re;let xe=SC(Me)?Me.toString():void 0;return ge!==void 0&&(xe=ge),a.createElement("div",Gl({},Nn(Ne),C?{}:q(U,Q),{"aria-selected":C?void 0:D(re),"aria-disabled":ze,className:ke,title:xe,onMouseMove:()=>{A===Q||ze||_(Q)},onClick:()=>{ze||V(re)},style:{...(Ve=P==null?void 0:P.popup)==null?void 0:Ve.listItem,...Se}}),a.createElement("div",{className:`${he}-content`},typeof w=="function"?w(U,{index:Q}):Me),a.isValidElement(g)||we,Ce&&a.createElement(VR,{className:`${T}-option-state`,customizeIcon:g,customizeIconProps:{value:re,disabled:ze,isSelected:we}},we?"✓":null))}))},FD=a.forwardRef(DD),HD=(e,t)=>{const n=a.useRef({values:new Map,options:new Map}),r=a.useMemo(()=>{const{values:s,options:i}=n.current,l=e.map(d=>{var m;return d.label===void 0?{...d,label:(m=s.get(d.value))==null?void 0:m.label}:d}),c=new Map,u=new Map;return l.forEach(d=>{c.set(d.value,d),u.set(d.value,t.get(d.value)||i.get(d.value))}),n.current.values=c,n.current.options=u,l},[e,t]),o=a.useCallback(s=>t.get(s)||n.current.options.get(s),[t]);return[r,o]};function ag(e,t){return DR(e).join("").toUpperCase().includes(t)}const VD=(e,t,n,r,o)=>a.useMemo(()=>{if(!n||r===!1)return e;const{options:s,label:i,value:l}=t,c=[],u=typeof r=="function",d=n.toUpperCase(),m=u?r:(p,y)=>o&&o.length?o.some(b=>ag(y[b],d)):y[s]?ag(y[i!=="children"?i:"label"],d):ag(y[l],d),f=u?p=>qy(p):p=>p;return e.forEach(p=>{if(p[s]){if(m(n,f(p)))c.push(p);else{const b=p[s].filter(x=>m(n,f(x)));b.length&&c.push({...p,[s]:b})}return}m(n,f(p))&&c.push(p)}),c},[e,r,o,n,t]);function WD(e){const{key:t,props:{children:n,value:r,...o}}=e;return{key:t,value:r!==void 0?r:t,children:n,...o}}function qR(e,t=!1){return zn(e).map((n,r)=>{if(!a.isValidElement(n)||!n.type)return null;const{type:{isSelectOptGroup:o},key:s,props:{children:i,...l}}=n;return t||!o?WD(n):{key:`__RC_SELECT_GRP__${s===null?r:s}__`,label:s,...l,options:qR(i)}}).filter(n=>n)}const KD=(e,t,n,r,o)=>a.useMemo(()=>{let s=e;!e&&(s=qR(t));const l=new Map,c=new Map,u=(m,f,p)=>{p&&typeof p=="string"&&m.set(f[p],f)},d=(m,f=!1)=>{for(let p=0;p<m.length;p+=1){const y=m[p];!y[n.options]||f?(l.set(y[n.value],y),u(c,y,n.label),r.forEach(b=>{u(c,y,b)}),u(c,y,o)):d(y[n.options],!0)}};return d(s),{options:s,valueOptions:l,labelOptions:c}},[e,t,n,r,o]);function CC(e){const t=a.useRef();return t.current=e,a.useCallback((...r)=>t.current(...r),[])}function UD(e,t,n){const{filterOption:r,searchValue:o,optionFilterProp:s,filterSort:i,onSearch:l,autoClearSearchValue:c}=t;return a.useMemo(()=>{const u=typeof e=="object",d={filterOption:r,searchValue:o,optionFilterProp:s,filterSort:i,onSearch:l,autoClearSearchValue:c,...u?e:{}};return[u||n==="combobox"||n==="tags"||n==="multiple"&&e===void 0?!0:e,d]},[n,e,r,o,s,i,l,c])}function tv(){return tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tv.apply(this,arguments)}const qD=["inputValue"];function GD(e){return!e||typeof e!="object"}const XD=a.forwardRef((e,t)=>{const{id:n,mode:r,prefixCls:o="rc-select",backfill:s,fieldNames:i,showSearch:l,searchValue:c,onSearch:u,autoClearSearchValue:d,filterOption:m,optionFilterProp:f,filterSort:p,onSelect:y,onDeselect:b,onActive:x,popupMatchSelectWidth:v=!0,optionLabelProp:g,options:h,optionRender:$,children:C,defaultActiveFirstOption:N,menuItemSelectedIcon:S,virtual:E,direction:w,listHeight:R=200,listItemHeight:P=20,labelRender:T,value:M,defaultValue:z,labelInValue:B,onChange:F,maxCount:L,classNames:j,styles:O,...A}=e,k={searchValue:c,onSearch:u,autoClearSearchValue:d,filterOption:m,optionFilterProp:f,filterSort:p},[_,D]=UD(l,k,r),{filterOption:V,searchValue:W,optionFilterProp:K,filterSort:q,onSearch:Y,autoClearSearchValue:ee=!0}=D,ie=a.useMemo(()=>K?Array.isArray(K)?K:[K]:[],[K]),ae=jo(n),U=Jy(r),Q=!!(!h&&C),Z=a.useMemo(()=>V===void 0&&r==="combobox"?!1:V,[V,r]),ne=a.useMemo(()=>BR(i,Q),[JSON.stringify(i),Q]),[oe,le]=nn("",W),re=oe||"",X=KD(h,C,ne,ie,g),{valueOptions:se,labelOptions:ge,options:de}=X,Se=a.useCallback(Ie=>DR(Ie).map(te=>{let ye,Ae,Je,St;GD(te)?ye=te:(Ae=te.label,ye=te.value);const ht=se.get(ye);return ht&&(Ae===void 0&&(Ae=ht==null?void 0:ht[g||ne.label]),Je=ht==null?void 0:ht.disabled,St=ht==null?void 0:ht.title),{label:Ae,value:ye,key:ye,disabled:Je,title:St}}),[ne,g,se]),[ue,be]=nn(z,M),Ne=a.useMemo(()=>{var te;const Be=Se(U&&ue===null?[]:ue);return r==="combobox"&&sD((te=Be[0])==null?void 0:te.value)?[]:Be},[ue,Se,r,U]),[we,ze]=HD(Ne,se),he=a.useMemo(()=>{if(!r&&we.length===1){const Ie=we[0];if(Ie.value===null&&(Ie.label===null||Ie.label===void 0))return[]}return we.map(Ie=>({...Ie,label:(typeof T=="function"?T(Ie):Ie.label)??Ie.value}))},[r,we,T]),ke=a.useMemo(()=>new Set(we.map(Ie=>Ie.value)),[we]);a.useEffect(()=>{var Ie;if(r==="combobox"){const Be=(Ie=we[0])==null?void 0:Ie.value;le(oD(Be)?String(Be):"")}},[we]);const Oe=CC((Ie,Be)=>{const te=Be??Ie;return{[ne.value]:Ie,[ne.label]:te}}),Ce=a.useMemo(()=>{if(r!=="tags")return de;const Ie=[...de],Be=te=>se.has(te);return[...we].sort((te,ye)=>te.value<ye.value?-1:1).forEach(te=>{const ye=te.value;Be(ye)||Ie.push(Oe(ye,te.label))}),Ie},[Oe,de,se,we,r]),Me=VD(Ce,ne,re,Z,ie),xe=a.useMemo(()=>{var Be;const Ie=te=>ie.length?ie.some(ye=>(te==null?void 0:te[ye])===re):(te==null?void 0:te.value)===re;return r!=="tags"||!re||Me.some(te=>Ie(te))||Me.some(te=>te[ne.value]===re)||(Be=se.get(re))!=null&&Be.disabled?Me:[Oe(re),...Me]},[Oe,ie,r,Me,re,ne,se]),Ee=Ie=>[...Ie].sort((te,ye)=>q(te,ye,{searchValue:re})).map(te=>Array.isArray(te.options)?{...te,options:te.options.length>0?Ee(te.options):te.options}:te),Ve=a.useMemo(()=>q?Ee(xe):xe,[xe,q,re]),qe=a.useMemo(()=>ZA(Ve,{fieldNames:ne,childrenAsData:Q}),[Ve,ne,Q]),me=Ie=>{const Be=Se(Ie);if(be(Be),F&&(Be.length!==we.length||Be.some((te,ye)=>{var Ae;return((Ae=we[ye])==null?void 0:Ae.value)!==(te==null?void 0:te.value)}))){const te=B?Be.map(({label:Ae,value:Je})=>({label:Ae,value:Je})):Be.map(Ae=>Ae.value),ye=Be.map(Ae=>qy(ze(Ae.value)));F(U?te:te[0],U?ye:ye[0])}},[Re,Te]=a.useState(null),[Ue,Ge]=a.useState(0),Fe=N!==void 0?N:r!=="combobox",et=a.useRef(),ve=a.useCallback((Ie,Be,{source:te="keyboard"}={})=>{Ge(Be),s&&r==="combobox"&&Ie!==null&&te==="keyboard"&&Te(String(Ie));const ye=Promise.resolve().then(()=>{et.current===ye&&(x==null||x(Ie))});et.current=ye},[s,r,x]),je=(Ie,Be,te)=>{const ye=()=>{const Ae=ze(Ie);return[B?{label:Ae==null?void 0:Ae[ne.label],value:Ie}:Ie,qy(Ae)]};if(Be&&y){const[Ae,Je]=ye();y(Ae,Je)}else if(!Be&&b&&te!=="clear"){const[Ae,Je]=ye();b(Ae,Je)}},ce=CC((Ie,Be)=>{let te;const ye=U?Be.selected:!0;ye?te=U?[...we,Ie]:[Ie]:te=we.filter(Ae=>Ae.value!==Ie),me(te),je(Ie,ye),r==="combobox"?Te(""):(!Jy||ee)&&(le(""),Te(""))}),Pe=(Ie,Be)=>{me(Ie);const{type:te,values:ye}=Be;(te==="remove"||te==="clear")&&ye.forEach(Ae=>{je(Ae.value,!1,te)})},pe=(Ie,Be)=>{var te;if(le(Ie),Te(null),Be.source==="submit"){const ye=(Ie||"").trim();if(ye){if((te=se.get(ye))!=null&&te.disabled){le("");return}const Ae=Array.from(new Set([...ke,ye]));me(Ae),je(ye,!0),le("")}return}Be.source!=="blur"&&(r==="combobox"&&me(Ie),Y==null||Y(Ie))},$e=Ie=>{let Be=Ie;r!=="tags"&&(Be=Ie.map(ye=>{const Ae=ge.get(ye);return Ae==null?void 0:Ae.value}).filter(ye=>ye!==void 0)),r==="tags"&&(Be=Be.filter(ye=>{var Ae;return!((Ae=se.get(ye))!=null&&Ae.disabled)}));const te=Array.from(new Set([...ke,...Be]));me(te),te.forEach(ye=>{je(ye,!0)})},_e=a.useMemo(()=>({...X,flattenOptions:qe,onActiveValue:ve,defaultActiveFirstOption:Fe,onSelect:ce,menuItemSelectedIcon:S,rawValues:ke,fieldNames:ne,virtual:E!==!1&&v!==!1,direction:w,listHeight:R,listItemHeight:P,childrenAsData:Q,maxCount:L,optionRender:$,classNames:j,styles:O}),[L,X,qe,ve,Fe,ce,S,ke,ne,E,v,w,R,P,Q,$,j,O]);return a.createElement(wx.Provider,{value:_e},a.createElement($D,tv({},A,{id:ae,prefixCls:o,ref:t,omitDomProps:qD,mode:r,classNames:j,styles:O,displayValues:he,onDisplayValuesChange:Pe,maxCount:L,direction:w,showSearch:_,searchValue:re,onSearch:pe,autoClearSearchValue:ee,onSearchSplit:$e,popupMatchSelectWidth:v,OptionList:FD,emptyOptions:!qe.length,activeValue:Re,activeDescendantId:`${ae}_list_${Ue}`})))}),Px=XD;Px.Option=Ix;Px.OptGroup=Ex;function wC(e,t,n){return e===!1?null:e===!0?n:e&&e[t]!==void 0?e[t]:n}const qa=(e,t,n)=>H({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n}),nu=(e,t)=>t||e,pi=(e,t)=>e!=null&&e.startsWith("var(")||t!=null&&t.startsWith("var(")?e:new Gt(e).onBackground(t).toHexString(),YD=()=>{const[,e]=Yn(),[t]=Ar("Empty"),{colorBgContainer:n,colorFill:r,colorFillSecondary:o,colorFillTertiary:s,colorTextQuaternary:i}=e,{panelBgColor:l,borderColor:c,detailColor:u,shadowColor:d,iconColor:m}=a.useMemo(()=>({panelBgColor:pi(s,n),borderColor:pi(i,n),detailColor:pi(r,n),shadowColor:pi(o,n),iconColor:n}),[n,r,o,s,i]);return a.createElement("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},a.createElement("title",null,(t==null?void 0:t.description)||"Empty"),a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("g",{transform:"translate(24 31.7)"},a.createElement("ellipse",{fillOpacity:".8",fill:d,cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),a.createElement("path",{fill:c,d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),a.createElement("path",{fill:l,d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),a.createElement("path",{fill:u,d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),a.createElement("path",{fill:u,d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),a.createElement("g",{fill:m,transform:"translate(149.7 15.4)"},a.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),a.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},QD=()=>{const[,e]=Yn(),[t]=Ar("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:s}=e,{borderColor:i,shadowColor:l,contentColor:c}=a.useMemo(()=>({borderColor:pi(n,s),shadowColor:pi(r,s),contentColor:pi(o,s)}),[n,r,o,s]);return a.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},a.createElement("title",null,(t==null?void 0:t.description)||"Empty"),a.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},a.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),a.createElement("g",{fillRule:"nonzero",stroke:i},a.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),a.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:c}))))},JD=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:s,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:s,lineHeight:i,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:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},ZD=Tt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Rt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return JD(o)}),GR=a.createElement(YD,null),XR=a.createElement(QD,null),Go=e=>{const{className:t,rootClassName:n,prefixCls:r,image:o,description:s,children:i,imageStyle:l,style:c,classNames:u,styles:d,...m}=e,{getPrefixCls:f,direction:p,className:y,style:b,classNames:x,styles:v,image:g}=Pt("empty"),h=f("empty",r),[$,C]=ZD(h),N=Mt(b),S=Mt(c),[E,w]=Ot([x,u],[v,N,d,S],{props:e}),[R]=Ar("Empty"),P=typeof s<"u"?s:R==null?void 0:R.description,T=typeof P=="string"?P:"empty",M=o??g??GR;let z=null;return typeof M=="string"?z=a.createElement("img",{draggable:!1,alt:T,src:M}):z=M,a.createElement("div",{className:H($,C,h,y,{[`${h}-normal`]:M===XR,[`${h}-rtl`]:p==="rtl"},t,n,E.root),style:w.root,...m},a.createElement("div",{className:H(`${h}-image`,E.image),style:{...l,...w.image}},z),P&&a.createElement("div",{className:H(`${h}-description`,E.description),style:w.description},P),i&&a.createElement("div",{className:H(`${h}-footer`,E.footer),style:w.footer},i))};Go.PRESENTED_IMAGE_DEFAULT=GR;Go.PRESENTED_IMAGE_SIMPLE=XR;const YR=e=>{const{componentName:t}=e,{getPrefixCls:n}=a.useContext(ct),r=n("empty");switch(t){case"Table":case"List":return J.createElement(Go,{image:Go.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return J.createElement(Go,{image:Go.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return J.createElement(Go,null)}},tl=(e,t,n)=>{const{variant:r,[e]:o}=a.useContext(ct),s=a.useContext(uR),i=o==null?void 0:o.variant;let l;typeof t<"u"?l=t:n===!1?l="borderless":l=s??i??r??"outlined";const c=c_.includes(l);return[l,c]},eF=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...n,points:["tl","bl"],offset:[0,4]},bottomRight:{...n,points:["tr","br"],offset:[0,4]},topLeft:{...n,points:["bl","tl"],offset:[0,-4]},topRight:{...n,points:["br","tr"],offset:[0,-4]}}};function tF(e,t){return e||eF(t)}const EC=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},nF=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,s=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...Ft(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,[`
${o}${l}bottomLeft,
${s}${l}bottomLeft
`]:{animationName:Em},[`
${o}${l}topLeft,
${s}${l}topLeft,
${o}${l}topRight,
${s}${l}topRight
`]:{animationName:Pm},[`${i}${l}bottomLeft`]:{animationName:Im},[`
${i}${l}topLeft,
${i}${l}topRight
`]:{animationName:Nm},"&-hidden":{display:"none"},[r]:{...EC(e),cursor:"pointer",transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...ar},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected${r}-option-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgActiveHover},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...EC(e),color:e.colorTextDisabled}},[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},No(e,"slide-up"),No(e,"slide-down"),uf(e,"move-up"),uf(e,"move-down")]},rF=e=>{const{antCls:t,componentCls:n}=e,r={background:"transparent"},o=["> input[disabled]","> textarea[disabled]",`> ${n}-input`,`> ${t}-input-affix-wrapper-disabled`,`> ${t}-input-search`].join(", ");return{[`&${n}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${n}-placeholder`]:{display:"none"},[`${n}-content`]:{margin:0,padding:0,"&-value":{display:"none"}},[`&${n}-filled ${n}-content`]:{[`${t}-input-filled`]:r},[`&${n}-disabled ${n}-content`]:{[o]:r,"input[disabled], textarea[disabled]":r}}}},IC=4,oF=e=>{const{componentCls:t,calc:n,iconCls:r,paddingXS:o,paddingXXS:s,INTERNAL_FIXED_ITEM_MARGIN:i,lineWidth:l,colorIcon:c,colorIconHover:u,inputPaddingHorizontalBase:d,antCls:m}=e,[f,p]=rn(m,"select");return{"&-multiple":{[f("multi-item-background")]:e.multipleItemBg,[f("multi-item-border-color")]:"transparent",[f("multi-item-border-radius")]:e.borderRadiusSM,[f("multi-item-height")]:e.multipleItemHeight,[f("multi-padding-base")]:`calc((${p("height")} - ${p("multi-item-height")}) / 2)`,[f("multi-padding-vertical")]:`calc(${p("multi-padding-base")} - ${i} - ${l})`,[f("multi-item-padding-horizontal")]:`calc(${d} - ${p("multi-padding-vertical")} - ${l} * 2)`,paddingBlock:p("multi-padding-vertical"),paddingInlineStart:`calc(${p("multi-padding-base")} - ${l})`,[`${t}-prefix`]:{marginInlineStart:p("multi-item-padding-horizontal")},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:p("line-height"),insetInlineStart:p("multi-item-padding-horizontal"),width:`calc(100% - ${p("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:p("font-size")},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${IC}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
${t}-content-item-suffix:first-child`]:{marginInlineStart:p("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${p("multi-item-height")} - ${l} * 2)`,border:`${l} solid ${p("multi-item-border-color")}`,display:"flex",marginBlock:i,marginInlineEnd:n(i).mul(2).equal(),background:p("multi-item-background"),borderRadius:p("multi-item-border-radius"),paddingInlineStart:o,paddingInlineEnd:s,transition:["height","line-height","padding"].map(y=>`${y} ${e.motionDurationSlow}`).join(","),"&-content":{...ar,marginInlineEnd:s},"&-remove":{...Kc(),display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}}},[`${t}-input`]:{lineHeight:n(i).mul(2).add(p("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:IC,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[f("multi-item-height")]:e.multipleItemHeightSM,[f("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[f("multi-item-height")]:e.multipleItemHeightLG,[f("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[f("multi-item-border-color")]:e.colorSplit,[f("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[f("multi-item-border-color")]:"transparent"}}}}},lg=(e,t)=>{const{componentCls:n,antCls:r}=e,[o]=rn(r,"select"),{border:s,borderHover:i,borderActive:l,borderOutline:c}=t,u=t.background||e.selectorBg||e.colorBgContainer;return{[o("border-color")]:s,[o("background-color")]:u,[o("affix-color")]:t.affixColor,[`&:not(${n}-disabled)`]:{"&:hover":{[o("border-color")]:i,[o("background-color")]:t.backgroundHover||u},[`&${n}-focused`]:{[o("border-color")]:l,[o("background-color")]:t.backgroundActive||u,boxShadow:`0 0 0 ${G(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{[o("border-color")]:t.borderDisabled||t.border,[o("background-color")]:t.backgroundDisabled||t.background}}},Vu=(e,t,n,r,o,s)=>{const{componentCls:i}=e;return{[`&${i}-${t}`]:[lg(e,n),{[`&${i}-status-error`]:lg(e,{...n,...r}),[`&${i}-status-warning`]:lg(e,{...n,...o})},s]}},cg=(e,t)=>({outline:`${G(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:G(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),sF=e=>{const{componentCls:t,fontHeight:n,controlHeight:r,fontSizeIcon:o,showArrowPaddingInlineEnd:s,iconCls:i,antCls:l,max:c,calc:u}=e,[d,m]=rn(l,"select"),f=c(u(s).sub(o).equal(),0);return{[t]:[{[d("border-radius")]:e.borderRadius,[d("border-color")]:"#000",[d("border-size")]:e.lineWidth,[d("background-color")]:e.colorBgContainer,[d("font-size")]:e.fontSize,[d("line-height")]:e.lineHeight,[d("font-height")]:n,[d("color")]:e.colorText,[d("affix-color")]:e.colorText,[d("height")]:r,[d("padding-horizontal")]:u(e.paddingSM).sub(e.lineWidth).equal(),[d("padding-vertical")]:`calc((${m("height")} - ${m("font-height")}) / 2 - ${m("border-size")})`,...Ft(e),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:m("border-radius"),borderWidth:m("border-size"),borderStyle:e.lineType,borderColor:m("border-color"),background:m("background-color"),fontSize:m("font-size"),lineHeight:m("line-height"),color:m("color"),paddingInline:m("padding-horizontal"),paddingBlock:m("padding-vertical"),[`${t}-prefix`]:{color:m("affix-color"),flex:"none",lineHeight:1},[`${t}-placeholder`]:{...ar,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:f,"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{visibility:"inherit"},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[i]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[d("height")]:e.controlHeightSM,[d("padding-horizontal")]:u(e.paddingXS).sub(e.lineWidth).equal(),[d("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:m("padding-horizontal")}},"&-lg":{[d("height")]:e.controlHeightLG,[d("font-size")]:e.fontSizeLG,[d("line-height")]:e.lineHeightLG,[d("font-height")]:e.fontHeightLG,[d("border-radius")]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:m("color"),fontFamily:"inherit",fontSize:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",inset:0,lineHeight:"inherit"},[`${t}-content`]:{...ar,alignSelf:"center","&-has-value":{display:"block","&:before":{display:"none"}},"&-has-search-value":{color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1,opacity:1}},[`&${t}-open ${t}-content`]:{"&-has-value":{opacity:.25},"&-has-search-value":{opacity:1,transition:`opacity ${e.motionDurationMid} ${e.motionEaseInOut}`,color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},oF(e),Vu(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline,affixColor:e.colorErrorAffix},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline,affixColor:e.colorWarningAffix}),Vu(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{color:e.colorErrorText,background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),Vu(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"},{},{},{[`&:not(${t}-disabled):has(input:focus-visible), &:not(${t}-disabled):has(textarea:focus-visible)`]:cg(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:cg(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:cg(e,e.colorWarning)}),Vu(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderInlineColor:"transparent"}),rF(e)]}},iF=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:s,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:m,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:y,colorFillSecondary:b,colorBgContainerDisabled:x,colorTextDisabled:v,colorPrimaryHover:g,colorPrimary:h,controlOutline:$}=e,C=l*2,N=r*2,S=Math.min(o-C,o-N),E=Math.min(s-C,s-N),w=Math.min(i-C,i-N);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:m,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:y,clearBg:y,singleItemHeightLG:i,multipleItemBg:b,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:E,multipleItemHeightLG:w,multipleSelectorBgDisabled:x,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:g,activeBorderColor:h,activeOutlineColor:$,selectAffixPadding:l}},aF=e=>{const{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:o}=e,s={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:{...Ft(e),[`${n}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...ar,[`> ${t}-typography`]:{display:"inline"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:["color","opacity"].map(i=>`${i} ${r} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":s,"&:hover":s},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},lF=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},aF(e),nF(e),{[`${t}-rtl`]:{direction:"rtl"}},Qc(e,{focusElCls:`${t}-focused`})]},cF=Tt("Select",(e,{rootPrefixCls:t})=>{const n=Rt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[lF(n),sF(n)]},iF,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var QR={};Object.defineProperty(QR,"__esModule",{value:!0});var uF={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"},dF=QR.default=uF;function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nv.apply(this,arguments)}const fF=(e,t)=>a.createElement(gt,nv({},e,{ref:t,icon:dF})),Nx=a.forwardRef(fF);var JR={};Object.defineProperty(JR,"__esModule",{value:!0});var mF={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"},pF=JR.default=mF;function rv(){return rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rv.apply(this,arguments)}const gF=(e,t)=>a.createElement(gt,rv({},e,{ref:t,icon:pF})),Rx=a.forwardRef(gF);var ZR={};Object.defineProperty(ZR,"__esModule",{value:!0});var hF={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"},yF=ZR.default=hF;function ov(){return ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ov.apply(this,arguments)}const vF=(e,t)=>a.createElement(gt,ov({},e,{ref:t,icon:yF})),Tx=a.forwardRef(vF);function bF({suffixIcon:e,contextSuffixIcon:t,clearIcon:n,contextClearIcon:r,menuItemSelectedIcon:o,contextMenuItemSelectedIcon:s,removeIcon:i,contextRemoveIcon:l,loading:c,loadingIcon:u,contextLoadingIcon:d,searchIcon:m,contextSearchIcon:f,multiple:p,hasFeedback:y,showSuffixIcon:b,feedbackIcon:x,showArrow:v,componentName:g}){return a.useMemo(()=>{const h=Ur(n,r,a.createElement(Bi,null)),$=E=>e===null&&!y&&!v?null:a.createElement(a.Fragment,null,b!==!1&&E,y&&x);let C=null;e!==void 0?C=$(e):c?C=$(Ur(u,d,a.createElement(ki,{spin:!0}))):C=({open:E,showSearch:w})=>$(E&&w?Ur(m,f,a.createElement(Tx,null)):Ur(t,a.createElement(Rx,null)));const N=Ur(o,s,p?a.createElement(Nx,null):null),S=Ur(i,l,a.createElement(Us,null));return{clearIcon:h,suffixIcon:C,itemIcon:N,removeIcon:S}},[e,t,n,r,o,s,i,l,c,u,d,m,f,p,y,b,x,v])}function xF(e){return J.useMemo(()=>{if(e)return(...t)=>J.createElement(Ri,{space:!0},e.apply(void 0,t))},[e])}function $F(e,t){return t!==void 0?t:e!==null}const e4="SECRET_COMBOBOX_MODE_DO_NOT_USE",SF=(e,t)=>{var Le,Ke;const{prefixCls:n,bordered:r,className:o,rootClassName:s,getPopupContainer:i,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:m,size:f,disabled:p,notFoundContent:y,status:b,builtinPlacements:x,dropdownMatchSelectWidth:v,popupMatchSelectWidth:g,direction:h,style:$,allowClear:C,variant:N,popupStyle:S,dropdownStyle:E,transitionName:w,tagRender:R,maxCount:P,prefix:T,dropdownRender:M,popupRender:z,onDropdownVisibleChange:B,onOpenChange:F,styles:L,classNames:j,clearIcon:O,showSearch:A,...k}=e,{getPopupContainer:_,getPrefixCls:D,renderEmpty:V,direction:W,virtual:K,popupMatchSelectWidth:q,popupOverflow:Y}=a.useContext(ct),{showSearch:ee,allowClear:ie,style:ae,styles:U,className:Q,classNames:Z,clearIcon:ne,loadingIcon:oe,menuItemSelectedIcon:le,removeIcon:re,suffixIcon:X}=Pt("select"),[,se]=Yn(),ge=m??(se==null?void 0:se.controlHeight),de=D("select",n),Se=D(),ue=h??W,{compactSize:be,compactItemClassnames:Ne}=qs(de,ue),[we,ze]=tl("select",N,r),he=on(de),[ke,Oe]=cF(de,he),Ce=a.useMemo(()=>{const{mode:lt}=e;if(lt!=="combobox")return lt===e4?"combobox":lt},[e.mode]),Me=Ce==="multiple"||Ce==="tags",xe=$F(e.suffixIcon,e.showArrow),Ee=g??v??q,Ve=xF(z||M),qe=F||B,{status:me,hasFeedback:Re,isFormItemInput:Te,feedbackIcon:Ue}=a.useContext(Hn),Ge=nu(me,b);let Fe;y!==void 0?Fe=y:Ce==="combobox"?Fe=null:Fe=(V==null?void 0:V("Select"))||a.createElement(YR,{componentName:"Select"});const{suffixIcon:et,itemIcon:ve,removeIcon:je,clearIcon:ce}=bF({...k,multiple:Me,hasFeedback:Re,feedbackIcon:Ue,showSuffixIcon:xe,componentName:"Select",clearIcon:O,searchIcon:wC(A,"searchIcon"),contextClearIcon:ne,contextLoadingIcon:oe,contextMenuItemSelectedIcon:le,contextRemoveIcon:re,contextSearchIcon:wC(ee,"searchIcon"),contextSuffixIcon:X}),Pe=C??ie,pe=Pe===!0?{clearIcon:ce}:Pe,$e=A??ee,_e=Dt(k,["suffixIcon","itemIcon"]),Ie=Cn(lt=>f??be??lt),Be=a.useContext(cr),te=p??Be,ye={...e,variant:we,status:Ge,disabled:te,size:Ie},Ae=Mt(ae),Je=Mt($),[St,ht]=Ot([Z,j],[U,Ae,L,Je],{props:ye},{popup:{_default:"root"}}),Nt=H(St.popup.root,l,c,{[`${de}-dropdown-${ue}`]:ue==="rtl"},s,Oe,he,ke),yt={...(Le=ht.popup)==null?void 0:Le.root,...S??E},at=H({[`${de}-lg`]:Ie==="large",[`${de}-sm`]:Ie==="small",[`${de}-rtl`]:ue==="rtl",[`${de}-${we}`]:ze,[`${de}-in-form-item`]:Te},qa(de,Ge,Re),Ne,Q,o,St.root,s,Oe,he,ke),Ze=a.useMemo(()=>d!==void 0?d:ue==="rtl"?"bottomRight":"bottomLeft",[d,ue]),[De]=Xc("SelectLike",((Ke=ht.popup.root)==null?void 0:Ke.zIndex)??yt.zIndex);return a.createElement(Px,{ref:t,virtual:K,classNames:St,styles:ht,showSearch:$e,..._e,style:ht.root,popupMatchSelectWidth:Ee,transitionName:ks(Se,"slide-up",w),builtinPlacements:tF(x,Y),listHeight:u,listItemHeight:ge,mode:Ce,prefixCls:de,placement:Ze,direction:ue,prefix:T,suffixIcon:et,menuItemSelectedIcon:ve,removeIcon:je,allowClear:pe,notFoundContent:Fe,className:at,getPopupContainer:i||_,popupClassName:Nt,disabled:te,popupStyle:{...ht.popup.root,...yt,zIndex:De},maxCount:Me?P:void 0,tagRender:Me?R:void 0,popupRender:Ve,onPopupVisibleChange:qe})},dn=a.forwardRef(SF),CF=_R(dn,"popupAlign");dn.SECRET_COMBOBOX_MODE_DO_NOT_USE=e4;dn.Option=Ix;dn.OptGroup=Ex;dn._InternalPanelDoNotUseOrYouWillBeFired=CF;const As=["xxxl","xxl","xl","lg","md","sm","xs"],t4=[].concat(As).reverse(),wF=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)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),EF=e=>{const t=e,n=[].concat(As).reverse();return n.forEach((r,o)=>{const s=r.toUpperCase(),i=`screen${s}Min`,l=`screen${s}`;if(!(t[i]<=t[l]))throw new Error(`${i}<=${l} fails : !(${t[i]}<=${t[l]})`);if(o<n.length-1){const c=`screen${s}Max`;if(!(t[l]<=t[c]))throw new Error(`${l}<=${c} fails : !(${t[l]}<=${t[c]})`);const d=`screen${n[o+1].toUpperCase()}Min`;if(!(t[c]<=t[d]))throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`)}}),e},IF=()=>{const[,e]=Yn(),t=wF(EF(e));return J.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(s){return o=s,n.forEach(i=>{i(o)}),n.size>=1},subscribe(s){return n.size||this.register(),r+=1,n.set(r,s),s(o),r},unsubscribe(s){n.delete(s),n.size||this.unregister()},register(){Object.entries(t).forEach(([s,i])=>{const l=({matches:u})=>{this.dispatch({...o,[s]:u})},c=window.matchMedia(i);bt(c.addEventListener)&&c.addEventListener("change",l),this.matchHandlers[i]={mql:c,listener:l},l(c)})},unregister(){Object.values(t).forEach(s=>{const i=this.matchHandlers[s];bt(i==null?void 0:i.mql.removeEventListener)&&i.mql.removeEventListener("change",i==null?void 0:i.listener)}),n.clear()}}},[t])};function Mm(e=!0,t={}){const n=a.useRef(t),[,r]=RN(),o=IF();return It(()=>{const s=o.subscribe(i=>{n.current=i,e&&r()});return()=>o.unsubscribe(s)},[e]),n.current}const sv=a.createContext({}),PF=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:s,containerSize:i,containerSizeLG:l,containerSizeSM:c,textFontSize:u,textFontSizeLG:d,textFontSizeSM:m,iconFontSize:f,iconFontSizeLG:p,iconFontSizeSM:y,borderRadius:b,borderRadiusLG:x,borderRadiusSM:v,lineWidth:g,lineType:h}=e,$=(C,N,S,E)=>({width:C,height:C,borderRadius:"50%",fontSize:N,[`&${n}-square`]:{borderRadius:E},[`&${n}-icon`]:{fontSize:S,[`> ${r}`]:{margin:0}}});return{[n]:{...Ft(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:s,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${G(g)} ${h} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"},...$(i,u,f,b),"&-lg":{...$(l,d,p,x)},"&-sm":{...$(c,m,y,v)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}},NF=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},RF=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:s,fontSizeXL:i,fontSizeHeading3:l,marginXS:c,marginXXS:u,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:o,textFontSizeLG:o,textFontSizeSM:o,iconFontSize:Math.round((s+i)/2),iconFontSizeLG:l,iconFontSizeSM:o,groupSpace:u,groupOverlapping:-c,groupBorderColor:d}},n4=Tt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Rt(e,{avatarBg:n,avatarColor:t});return[PF(r),NF(r)]},RF),r4=a.forwardRef((e,t)=>{const{prefixCls:n,shape:r,size:o,src:s,srcSet:i,icon:l,className:c,rootClassName:u,style:d,alt:m,draggable:f,children:p,crossOrigin:y,gap:b=4,onError:x,...v}=e,[g,h]=a.useState(1),[$,C]=a.useState(!1),[N,S]=a.useState(!0),E=a.useRef(null),w=a.useRef(null),R=Tn(t,E),{getPrefixCls:P,className:T,style:M}=Pt("avatar"),z=a.useContext(sv),B=()=>{if(!w.current||!E.current)return;const ae=w.current.offsetWidth,U=E.current.offsetWidth;ae!==0&&U!==0&&b*2<U&&h(U-b*2<ae?(U-b*2)/ae:1)};a.useEffect(()=>{C(!0)},[]),a.useEffect(()=>{S(!0),h(1)},[s]),a.useEffect(B,[b]);const F=()=>{(x==null?void 0:x())!==!1&&S(!1)},L=Cn(ae=>o??(z==null?void 0:z.size)??ae??"medium"),j=Object.keys(dt(L)?L||{}:{}).some(ae=>As.includes(ae)),O=Mm(j),A=a.useMemo(()=>{if(!dt(L))return{};const ae=As.find(Q=>O[Q]),U=L[ae];return U?{width:U,height:U,fontSize:U&&(l||p)?U/2:18}:{}},[O,L,l,p]),k=P("avatar",n),_=on(k),[D,V]=n4(k,_),W=H({[`${k}-lg`]:L==="large",[`${k}-sm`]:L==="small"}),K=a.isValidElement(s),q=r||(z==null?void 0:z.shape)||"circle",Y=H(k,W,T,`${k}-${q}`,{[`${k}-image`]:K||s&&N,[`${k}-icon`]:!!l},V,_,c,u,D),ee=Rn(L)?{width:L,height:L,fontSize:l?L/2:18}:{};let ie;if(typeof s=="string"&&N)ie=a.createElement("img",{src:s,draggable:f,srcSet:i,onError:F,alt:m,crossOrigin:y});else if(K)ie=s;else if(l)ie=l;else if($||g!==1){const ae=`scale(${g})`,U={msTransform:ae,WebkitTransform:ae,transform:ae};ie=a.createElement(ir,{onResize:B},a.createElement("span",{className:`${k}-string`,ref:w,style:U},p))}else ie=a.createElement("span",{className:`${k}-string`,style:{opacity:0},ref:w},p);return a.createElement("span",{...v,style:{...ee,...A,...M,...d},className:Y,ref:R},ie)}),Ga=e=>$n(e)?bt(e)?e():e:null,Mx=e=>{const{children:t,prefixCls:n,id:r,classNames:o,styles:s,className:i,style:l}=e;return a.createElement("div",{id:r,className:H(`${n}-container`,o==null?void 0:o.container,i),style:{...s==null?void 0:s.container,...l},role:"tooltip"},typeof t=="function"?t():t)},ea={shiftX:64,adjustY:1},ta={adjustX:1,shiftY:!0},Hr=[0,0],TF={left:{points:["cr","cl"],overflow:ta,offset:[-4,0],targetOffset:Hr},right:{points:["cl","cr"],overflow:ta,offset:[4,0],targetOffset:Hr},top:{points:["bc","tc"],overflow:ea,offset:[0,-4],targetOffset:Hr},bottom:{points:["tc","bc"],overflow:ea,offset:[0,4],targetOffset:Hr},topLeft:{points:["bl","tl"],overflow:ea,offset:[0,-4],targetOffset:Hr},leftTop:{points:["tr","tl"],overflow:ta,offset:[-4,0],targetOffset:Hr},topRight:{points:["br","tr"],overflow:ea,offset:[0,-4],targetOffset:Hr},rightTop:{points:["tl","tr"],overflow:ta,offset:[4,0],targetOffset:Hr},bottomRight:{points:["tr","br"],overflow:ea,offset:[0,4],targetOffset:Hr},rightBottom:{points:["bl","br"],overflow:ta,offset:[4,0],targetOffset:Hr},bottomLeft:{points:["tl","bl"],overflow:ea,offset:[0,4],targetOffset:Hr},leftBottom:{points:["br","bl"],overflow:ta,offset:[-4,0],targetOffset:Hr}};function iv(){return iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iv.apply(this,arguments)}const MF=a.forwardRef((e,t)=>{const{trigger:n=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:o=.1,prefixCls:s="rc-tooltip",children:i,onVisibleChange:l,afterVisibleChange:c,motion:u,placement:d="right",align:m={},destroyOnHidden:f=!1,defaultVisible:p,getTooltipContainer:y,arrowContent:b,overlay:x,id:v,showArrow:g=!0,classNames:h,styles:$,...C}=e,N=jo(v),S=a.useRef(null);a.useImperativeHandle(t,()=>S.current);const E={...C};"visible"in e&&(E.popupVisible=e.visible);const w=a.useMemo(()=>{if(!g)return!1;const P=g===!0?{}:g;return{...P,className:H(P.className,h==null?void 0:h.arrow),style:{...P.style,...$==null?void 0:$.arrow},content:P.content??b}},[g,h==null?void 0:h.arrow,$==null?void 0:$.arrow,b]),R=({open:P})=>{const T=a.Children.only(i),M={"aria-describedby":x&&P?N:void 0};return a.cloneElement(T,M)};return a.createElement(bm,iv({popupClassName:h==null?void 0:h.root,prefixCls:s,popup:a.createElement(Mx,{key:"content",prefixCls:s,id:N,classNames:h,styles:$},x),action:n,builtinPlacements:TF,popupPlacement:d,ref:S,popupAlign:m,getPopupContainer:y,onOpenChange:l,afterOpenChange:c,popupMotion:u,defaultPopupVisible:p,autoDestroy:f,mouseLeaveDelay:o,popupStyle:$==null?void 0:$.root,mouseEnterDelay:r,arrow:w,uniqueContainerClassName:h==null?void 0:h.uniqueContainer,uniqueContainerStyle:$==null?void 0:$.uniqueContainer},E),R)});function Ox(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,s=0,i=o,l=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),m=2*o-u,f=d,p=2*o-l,y=c,b=2*o-s,x=i,v=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),g=r*(Math.sqrt(2)-1),h=`polygon(${g}px 100%, 50% ${g}px, ${2*o-g}px 100%, ${g}px 100%)`,$=`path('M ${s} ${i} A ${r} ${r} 0 0 0 ${l} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${m} ${f} L ${p} ${y} A ${r} ${r} 0 0 0 ${b} ${x} Z')`;return{arrowShadowWidth:v,arrowPath:$,arrowPolygon:h}}const OF=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:s,arrowShadowWidth:i,borderRadiusXS:l,calc:c}=e,u={content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${G(l)} 0`},transform:"translateY(50%) rotate(-135deg)",zIndex:0,background:"transparent"};return n&&(u.boxShadow=n),{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,s]},content:'""'},"&::after":u}},o4=8;function Om(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?o4:r}}const _x=(e,t,n)=>{const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:s,arrowOffsetHorizontal:i,antCls:l}=e,[c]=rn(l,"tooltip"),{arrowDistance:u=0,arrowShadow:d=!0}=n||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...OF(e,t,d?o:!1),"&:before":{background:t}}],[[`&-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":{[c("arrow-offset-x")]:i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{[c("arrow-offset-x")]:`calc(100% - ${G(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}},[[`&-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":{[c("arrow-offset-x")]:i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{[c("arrow-offset-x")]:`calc(100% - ${G(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}},[[`&-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:s},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:s},[[`&-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:s},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:s}}}};function _F(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=dt(r)?r:{},s={};switch(e){case"top":case"bottom":s.shiftX=t.arrowOffsetHorizontal*2+n,s.shiftY=!0,s.adjustY=!0;break;case"left":case"right":s.shiftY=t.arrowOffsetVertical*2+n,s.shiftX=!0,s.adjustX=!0;break}const i={...s,...o};return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const PC={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"]}},zF={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"]}},jF=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function s4(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:s,visibleFirst:i}=e,l=t/2,c={},u=Om({contentRadius:s,limitVerticalRadius:!0});return Object.keys(PC).forEach(d=>{const f={...r&&zF[d]||PC[d],offset:[0,0],dynamicInset:!0};switch(c[d]=f,jF.has(d)&&(f.autoArrow=!1),d){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}if(r)switch(d){case"topLeft":case"bottomLeft":f.offset[0]=-u.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=u.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-u.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":f.offset[1]=u.arrowOffsetHorizontal*2-l;break}f.overflow=_F(d,u,t,n),i&&(f.htmlRegion="visibleFirst")}),c}const zx=J.createContext(!1),jx=(e,t)=>{const n=r=>typeof r=="boolean"?{show:r}:r||{};return J.useMemo(()=>{const r=n(e),o=n(t);return{...o,...r,show:r.show??o.show??!0}},[e,t])},NC="50%",BF=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:s,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:c,dropShadowPopover:u,paddingSM:d,paddingXS:m,arrowOffsetHorizontal:f,sizePopupArrow:p,antCls:y}=e,[b,x]=rn(y,"tooltip"),v=t(i).add(p).add(f).equal(),h={minWidth:t(i).mul(2).add(p).equal(),minHeight:c,padding:`${G(e.calc(d).div(2).equal())} ${G(m)}`,color:x("overlay-color",o),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:s,borderRadius:i,boxSizing:"border-box"},$={[b("valid-offset-x")]:x("arrow-offset-x","var(--arrow-x)"),transformOrigin:[x("valid-offset-x",NC),`var(--arrow-y, ${NC})`].join(" ")};return[{[n]:{...Ft(e),position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible",filter:u,...$,"&-hidden":{display:"none"},[b("arrow-background-color")]:s,[`${n}-container`]:[h,HN(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:v},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(i,o4)}},[`${n}-content`]:{position:"relative"},...EP(e,(C,{darkColor:N})=>({[`&${n}-${C}`]:{[`${n}-container`]:{backgroundColor:N},[`${n}-arrow`]:{[b("arrow-background-color")]:N}}})),"&-rtl":{direction:"rtl"}}},_x(e,x("arrow-background-color"),{arrowShadow:!1}),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...h,...$,position:"absolute",zIndex:t(l).sub(1).equal(),filter:u,"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},LF=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Om({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Ox(Rt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),i4=(e,t,n=!0)=>Tt("Tooltip",o=>{const{borderRadius:s,colorTextLightSolid:i,colorBgSpotlight:l,maxWidth:c}=o,u=Rt(o,{tooltipMaxWidth:c,tooltipColor:i,tooltipBorderRadius:s,tooltipBg:l});return[BF(u),Yc(o,"zoom-big-fast")]},LF,{resetStyle:!1,injectStyle:n})(e,t),kF=Oo.map(e=>`${e}-inverse`),AF=["success","processing","error","default","warning"];function a4(e,t=!0){return t?[].concat($t(kF),$t(Oo)).includes(e):Oo.includes(e)}function DF(e){return AF.includes(e)}const l4=(e,t,n)=>{const r=a4(n),[o]=rn(e,"tooltip"),s=H({[`${t}-${n}`]:n&&r}),i={},l={},c=TL(n).toRgb(),d=(.299*c.r+.587*c.g+.114*c.b)/255<.5?"#FFF":"#000";return n&&!r&&(i.background=n,i[o("overlay-color")]=d,l[o("arrow-background-color")]=n),{className:s,overlayStyle:i,arrowStyle:l}},FF=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:s,overlayInnerStyle:i,classNames:l,styles:c}=e,{getPrefixCls:u}=a.useContext(ct),d=u("tooltip",t),m=u(),f=on(d),[p,y]=i4(d,f),b=l4(m,d,s),x=b.arrowStyle,v=a.useMemo(()=>({container:{...i,...b.overlayStyle}}),[i,b.overlayStyle]),g={...e,placement:r},[h,$]=Ot([l],[v,c],{props:g}),C=H(f,p,y,d,`${d}-pure`,`${d}-placement-${r}`,n,b.className);return a.createElement("div",{className:C,style:x},a.createElement("div",{className:`${d}-arrow`}),a.createElement(Mx,{...e,className:p,prefixCls:d,classNames:h,styles:$},o))},HF=a.forwardRef((e,t)=>{const{prefixCls:n,openClassName:r,getTooltipContainer:o,color:s,children:i,afterOpenChange:l,arrow:c,destroyTooltipOnHide:u,destroyOnHidden:d,title:m,overlay:f,trigger:p,builtinPlacements:y,autoAdjustOverflow:b=!0,motion:x,getPopupContainer:v,placement:g="top",mouseEnterDelay:h=.1,mouseLeaveDelay:$=.1,rootClassName:C,styles:N,classNames:S,onOpenChange:E,overlayInnerStyle:w,overlayStyle:R,overlayClassName:P,...T}=e,[,M]=Yn(),z=e["data-popover-inject"],{getPopupContainer:B,getPrefixCls:F,direction:L,...j}=Pt("tooltip"),{className:O,style:A,classNames:k,styles:_,arrow:D,trigger:V}=z?{}:j,W=jx(c,D),K=W.show,q=p||V||"hover",Y=v||B,ee=d??!!u,ie=a.useContext(zx);yo();const ae=a.useRef(null),U=()=>{var Te;(Te=ae.current)==null||Te.forceAlign()};a.useImperativeHandle(t,()=>{var Te,Ue;return{forceAlign:U,nativeElement:(Te=ae.current)==null?void 0:Te.nativeElement,popupElement:(Ue=ae.current)==null?void 0:Ue.popupElement}});const[Q,Z]=nn(e.defaultOpen??!1,e.open),ne=!m&&!f&&m!==0,oe=Te=>{Z(ne?!1:Te),!ne&&E&&E(Te)},le=a.useMemo(()=>y||s4({arrowPointAtCenter:(W==null?void 0:W.pointAtCenter)??!1,autoAdjustOverflow:b,arrowWidth:K?M.sizePopupArrow:0,borderRadius:M.borderRadius,offset:M.marginXXS,visibleFirst:!0}),[W,y,M,K,b]),re=a.useMemo(()=>m===0?m:f||m||"",[f,m]),X=a.createElement(Ri,{space:!0,form:!0},bt(re)?re():re),se={...e,trigger:q,builtinPlacements:le,getPopupContainer:Y,destroyOnHidden:ee},[ge,de]=Ot([k,S],[_,N],{props:se}),Se=F("tooltip",n),ue=F();let be=Q;(!("open"in e)&&ne||ie)&&(be=!1);const Ne=a.isValidElement(i)&&!cN(i)?i:a.createElement("span",null,i),we=Ne.props,ze=!we.className||typeof we.className=="string"?H(we.className,r||`${Se}-open`):we.className,he=on(Se),[ke,Oe]=i4(Se,he,!z),Ce=l4(ue,Se,s),Me=Ce.arrowStyle,xe=H(he,ke,Oe),Ee=H(P,{[`${Se}-rtl`]:L==="rtl"},Ce.className,C,xe,O,ge.root),[Ve,qe]=Xc("Tooltip",T.zIndex),me={...de.container,...w,...Ce.overlayStyle},Re=a.createElement(MF,{unique:!0,...T,zIndex:Ve,showArrow:K,placement:g,mouseEnterDelay:h,mouseLeaveDelay:$,prefixCls:Se,classNames:{root:Ee,container:ge.container,arrow:ge.arrow,uniqueContainer:H(xe,ge.container)},styles:{root:{...Me,...de.root,...A,...R},container:me,uniqueContainer:me,arrow:de.arrow},ref:ae,overlay:X,visible:be,onVisibleChange:oe,afterVisibleChange:l,arrowContent:a.createElement("span",{className:`${Se}-arrow-content`}),motion:{motionName:ks(ue,"zoom-big-fast",typeof(x==null?void 0:x.motionName)=="string"?x==null?void 0:x.motionName:void 0),motionDeadline:1e3},trigger:q,builtinPlacements:le,getTooltipContainer:Y,destroyOnHidden:ee},be?Fn(Ne,{className:ze}):Ne);return a.createElement(xm.Provider,{value:qe},Re)}),bo=HF;bo._InternalPanelDoNotUseOrYouWillBeFired=FF;bo.UniqueProvider=dN;const RC="50%",VF=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:s,dropShadowPopover:i,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:m,popoverBg:f,titleBorderBottom:p,innerContentPadding:y,titlePadding:b,antCls:x}=e,[v,g]=rn(x,"tooltip");return[{[t]:{...Ft(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",filter:i,[v("valid-offset-x")]:g("arrow-offset-x","var(--arrow-x)"),transformOrigin:[g("valid-offset-x",RC),`var(--arrow-y, ${RC})`].join(" "),[v("arrow-background-color")]:m,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,padding:s},[`${t}-title`]:{minWidth:r,marginBottom:d,color:l,fontWeight:o,borderBottom:p,padding:b},[`${t}-content`]:{color:n,padding:y}}},_x(e,g("arrow-background-color"),{arrowShadow:!1}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},WF=e=>{const{componentCls:t,antCls:n}=e,[r]=rn(n,"tooltip");return{[t]:Oo.map(o=>{const s=e[`${o}6`];return{[`&${t}-${o}`]:{[r("arrow-background-color")]:s,[`${t}-inner`]:{backgroundColor:s},[`${t}-arrow`]:{background:"transparent"}}}})}},KF=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:s,zIndexPopupBase:i,borderRadiusLG:l,marginXS:c,lineType:u,colorSplit:d,paddingSM:m}=e,f=n-r,p=f/2,y=f/2-t,b=o;return{titleMinWidth:177,zIndexPopup:i+30,...Ox(e),...Om({contentRadius:l,limitVerticalRadius:!0}),innerPadding:s?0:12,titleMarginBottom:s?0:c,titlePadding:s?`${p}px ${b}px ${y}px`:0,titleBorderBottom:s?`${t}px ${u} ${d}`:"none",innerContentPadding:s?`${m}px ${b}px`:0}},c4=Tt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Rt(e,{popoverBg:t,popoverColor:n});return[VF(r),WF(r),Yc(r,"zoom-big")]},KF,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),u4=e=>{const{title:t,content:n,prefixCls:r,classNames:o,styles:s}=e;return!$n(t)&&!$n(n)?null:a.createElement(a.Fragment,null,$n(t)&&a.createElement("div",{className:H(`${r}-title`,o==null?void 0:o.title),style:s==null?void 0:s.title},t),$n(n)&&a.createElement("div",{className:H(`${r}-content`,o==null?void 0:o.content),style:s==null?void 0:s.content},n))},UF=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:s="top",title:i,content:l,children:c,classNames:u,styles:d}=e,m=Ga(i),f=Ga(l),p={...e,placement:s},[y,b]=Ot([u],[d],{props:p}),x=H(t,n,`${n}-pure`,`${n}-placement-${s}`,r);return a.createElement("div",{className:x,style:o},a.createElement("div",{className:`${n}-arrow`}),a.createElement(Mx,{...e,className:t,prefixCls:n,classNames:y,styles:b},c||a.createElement(u4,{prefixCls:n,title:m,content:f,classNames:y,styles:b})))},d4=e=>{const{prefixCls:t,className:n,...r}=e,{getPrefixCls:o}=a.useContext(ct),s=o("popover",t),[i,l]=c4(s);return a.createElement(UF,{...r,prefixCls:s,hashId:i,className:H(n,l)})},qF=a.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:s,placement:i="top",trigger:l,children:c,mouseEnterDelay:u=.1,mouseLeaveDelay:d=.1,onOpenChange:m,overlayStyle:f={},styles:p,classNames:y,motion:b,arrow:x,...v}=e,{getPrefixCls:g,className:h,style:$,classNames:C,styles:N,arrow:S,trigger:E}=Pt("popover"),w=g("popover",n),[R,P]=c4(w),T=g(),M=jx(x,S),z=l||E||"hover",B={...e,placement:i,trigger:z,mouseEnterDelay:u,mouseLeaveDelay:d,overlayStyle:f,styles:p,classNames:y},[F,L]=Ot([C,y],[N,p],{props:B}),j=H(s,R,P,h,F.root),[O,A]=nn(e.defaultOpen??!1,e.open),k=V=>{A(V),m==null||m(V)},_=Ga(r),D=Ga(o);return a.createElement(bo,{unique:!1,arrow:M,placement:i,trigger:z,mouseEnterDelay:u,mouseLeaveDelay:d,...v,prefixCls:w,classNames:{root:j,container:F.container,arrow:F.arrow},styles:{root:{...L.root,...$,...f},container:L.container,arrow:L.arrow},ref:t,open:O,onOpenChange:k,overlay:$n(_)||$n(D)?a.createElement(u4,{prefixCls:w,title:_,content:D,classNames:F,styles:L}):null,motion:{motionName:ks(T,"zoom-big",typeof(b==null?void 0:b.motionName)=="string"?b==null?void 0:b.motionName:void 0)},"data-popover-inject":!0},c)}),Bx=qF;Bx._InternalPanelDoNotUseOrYouWillBeFired=d4;const TC=e=>{const{size:t,shape:n}=a.useContext(sv),r=a.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return a.createElement(sv.Provider,{value:r},e.children)},GF=e=>{var E,w,R;const{getPrefixCls:t,direction:n}=a.useContext(ct),{prefixCls:r,className:o,rootClassName:s,style:i,maxCount:l,maxStyle:c,size:u,shape:d,maxPopoverPlacement:m,maxPopoverTrigger:f,children:p,max:y}=e,b=t("avatar",r),x=`${b}-group`,v=on(b),[g,h]=n4(b,v),$=H(x,{[`${x}-rtl`]:n==="rtl"},h,v,o,s,g),C=zn(p).map((P,T)=>Fn(P,{key:`avatar-key-${T}`})),N=(y==null?void 0:y.count)||l,S=C.length;if(N&&N<S){const P=C.slice(0,N),T=C.slice(N,S),M=(y==null?void 0:y.style)||c,z=((E=y==null?void 0:y.popover)==null?void 0:E.trigger)||f||"hover",B=((w=y==null?void 0:y.popover)==null?void 0:w.placement)||m||"top",F={content:T,...y==null?void 0:y.popover,placement:B,trigger:z,rootClassName:H(`${x}-popover`,(R=y==null?void 0:y.popover)==null?void 0:R.rootClassName)};return P.push(a.createElement(Bx,{key:"avatar-popover-key",destroyOnHidden:!0,...F},a.createElement(r4,{style:M},`+${S-N}`))),a.createElement(TC,{shape:d,size:u},a.createElement("div",{className:$,style:i},P))}return a.createElement(TC,{shape:d,size:u},a.createElement("div",{className:$,style:i},C))},f4=r4;f4.Group=GF;var m4={};Object.defineProperty(m4,"__esModule",{value:!0});var XF={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"},YF=m4.default=XF;function av(){return av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},av.apply(this,arguments)}const QF=(e,t)=>a.createElement(gt,av({},e,{ref:t,icon:YF})),Tc=a.forwardRef(QF),{ESC:JF,TAB:ZF}=nt;function e7({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:o}){const s=a.useRef(!1),i=()=>{var u,d;e&&((d=(u=t.current)==null?void 0:u.focus)==null||d.call(u),n==null||n(!1))},l=()=>{var u;return(u=o.current)!=null&&u.focus?(o.current.focus(),s.current=!0,!0):!1},c=u=>{switch(u.keyCode){case JF:i();break;case ZF:{let d=!1;s.current||(d=l()),d?u.preventDefault():i();break}}};a.useEffect(()=>e?(window.addEventListener("keydown",c),r&&Ct(l,3),()=>{window.removeEventListener("keydown",c),s.current=!1}):()=>{s.current=!1},[e])}const t7=a.forwardRef((e,t)=>{const{overlay:n,arrow:r,prefixCls:o}=e,s=a.useMemo(()=>{let l;return typeof n=="function"?l=n():l=n,l},[n]),i=Tn(t,Bo(s));return J.createElement(J.Fragment,null,r&&J.createElement("div",{className:`${o}-arrow`}),J.cloneElement(s,{ref:is(s)?i:void 0}))}),na={adjustX:1,adjustY:1},ra=[0,0],n7={topLeft:{points:["bl","tl"],overflow:na,offset:[0,-4],targetOffset:ra},top:{points:["bc","tc"],overflow:na,offset:[0,-4],targetOffset:ra},topRight:{points:["br","tr"],overflow:na,offset:[0,-4],targetOffset:ra},bottomLeft:{points:["tl","bl"],overflow:na,offset:[0,4],targetOffset:ra},bottom:{points:["tc","bc"],overflow:na,offset:[0,4],targetOffset:ra},bottomRight:{points:["tr","br"],overflow:na,offset:[0,4],targetOffset:ra}};function lv(){return lv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lv.apply(this,arguments)}const p4=J.forwardRef((e,t)=>{var V;const{arrow:n=!1,prefixCls:r="rc-dropdown",transitionName:o,animation:s,align:i,placement:l="bottomLeft",placements:c=n7,getPopupContainer:u,showAction:d,hideAction:m,overlayClassName:f,overlayStyle:p,visible:y,trigger:b=["hover"],autoFocus:x,overlay:v,children:g,onVisibleChange:h,disabled:$,...C}=e,[N,S]=J.useState(),E="visible"in e?y:N,w=s?`${r}-${s}`:o,R=J.useRef(null),P=J.useRef(null),T=J.useRef(null);J.useImperativeHandle(t,()=>R.current);const M=W=>{S(W),h==null||h(W)};e7({visible:E,triggerRef:T,onVisibleChange:M,autoFocus:x,overlayRef:P});const z=W=>{const{onOverlayClick:K}=e;S(!1),K&&K(W)},B=()=>J.createElement(t7,{ref:P,overlay:v,prefixCls:r,arrow:n}),F=()=>typeof v=="function"?B:B(),L=()=>{const{minOverlayWidthMatchTrigger:W,alignPoint:K}=e;return"minOverlayWidthMatchTrigger"in e?W:!K},j=()=>{const{openClassName:W}=e;return W!==void 0?W:`${r}-open`},O=g,A=H((V=O.props)==null?void 0:V.className,E&&j()),k={className:A,ref:Tn(T,Bo(O))},_=is(O)?J.cloneElement(O,k):J.createElement("span",{className:A,ref:T},J.cloneElement(O,{className:A}));let D=m;return!D&&b.indexOf("contextMenu")!==-1&&(D=["click"]),J.createElement(bm,lv({builtinPlacements:c},C,{prefixCls:r,ref:R,popupClassName:H(f,{[`${r}-show-arrow`]:n}),popupStyle:p,action:b,showAction:d,hideAction:D,popupPlacement:l,popupAlign:i,popupMotion:{motionName:w},popupVisible:E,stretch:L()?"minWidth":"",popup:F(),onOpenChange:M,onPopupClick:z,getPopupContainer:u}),_)}),g4=a.createContext(null);function h4(e,t){return`${e}-${t}`}function y4(e){const t=a.useContext(g4);return h4(t,e)}const xo=a.createContext(null);function r7(e,t){const n={...e};return Object.keys(t).forEach(r=>{const o=t[r];o!==void 0&&(n[r]=o)}),n}function Mc({children:e,locked:t,...n}){const r=a.useContext(xo),o=_i(()=>r7(r,n),[r,n],(s,i)=>!t&&(s[0]!==i[0]||!ho(s[1],i[1],!0)));return a.createElement(xo.Provider,{value:o},e)}const o7=[],v4=a.createContext(null);function _m(){return a.useContext(v4)}const b4=a.createContext(o7);function nl(e){const t=a.useContext(b4);return a.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const x4=a.createContext(null),Lx=a.createContext({}),{LEFT:cv,RIGHT:uv,UP:dv,DOWN:wd,ENTER:Ed,ESC:$4,HOME:$l,END:Sl}=nt,MC=[dv,wd,cv,uv];function s7(e,t,n,r){var p;const o="prev",s="next",i="children",l="parent";if(e==="inline"&&r===Ed)return{inlineTrigger:!0};const c={[dv]:o,[wd]:s},u={[cv]:n?s:o,[uv]:n?o:s,[wd]:i,[Ed]:i},d={[dv]:o,[wd]:s,[Ed]:i,[$4]:l,[cv]:n?i:l,[uv]:n?l:i};switch((p={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d}[`${e}${t?"":"Sub"}`])==null?void 0:p[r]){case o:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case i:return{offset:1,sibling:!1};default:return null}}function i7(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function a7(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function kx(e,t){return Ab(e,!0).filter(r=>t.has(r))}function OC(e,t,n,r=1){if(!e)return null;const o=kx(e,t),s=o.length;let i=o.findIndex(l=>n===l);return r<0?i===-1?i=s-1:i-=1:r>0&&(i+=1),i=(i+s)%s,o[i]}const hf=(e,t)=>{const n=new Set,r=new Map,o=new Map;return e.forEach(s=>{const i=document.querySelector(`[data-menu-id='${h4(t,s)}']`);i&&(n.add(i),o.set(i,s),r.set(s,i))}),{elements:n,key2element:r,element2key:o}};function l7(e,t,n,r,o,s,i,l,c,u){const d=a.useRef(),m=a.useRef();m.current=t;const f=()=>{Ct.cancel(d.current)};return a.useEffect(()=>()=>{f()},[]),p=>{const{which:y}=p;if([...MC,Ed,$4,$l,Sl].includes(y)){const b=s();let x=hf(b,r);const{elements:v,key2element:g,element2key:h}=x,$=g.get(t),C=a7($,v),N=h.get(C),S=s7(e,i(N,!0).length===1,n,y);if(!S&&y!==$l&&y!==Sl)return;(MC.includes(y)||[$l,Sl].includes(y))&&p.preventDefault();const E=w=>{if(w){let R=w;const P=w.querySelector("a");P!=null&&P.getAttribute("href")&&(R=P);const T=h.get(w);l(T),f(),d.current=Ct(()=>{m.current===T&&R.focus()})}};if([$l,Sl].includes(y)||S.sibling||!C){let w;!C||e==="inline"?w=o.current:w=i7(C);let R;const P=kx(w,v);y===$l?R=P[0]:y===Sl?R=P[P.length-1]:R=OC(w,v,C,S.offset),E(R)}else if(S.inlineTrigger)c(N);else if(S.offset>0)c(N,!0),f(),d.current=Ct(()=>{x=hf(b,r);const w=C.getAttribute("aria-controls"),R=document.getElementById(w),P=OC(R,x.elements);E(P)},5);else if(S.offset<0){const w=i(N,!0),R=w[w.length-2],P=g.get(R);c(R,!1),E(P)}}u==null||u(p)}}function c7(e){Promise.resolve().then(e)}const Ax="__RC_UTIL_PATH_SPLIT__",_C=e=>e.join(Ax),u7=e=>e.split(Ax),fv="rc-menu-more";function d7(){const[,e]=a.useState({}),t=a.useRef(new Map),n=a.useRef(new Map),[r,o]=a.useState([]),s=a.useRef(0),i=a.useRef(!1),l=()=>{i.current||e({})},c=a.useCallback((b,x)=>{const v=_C(x);n.current.set(v,b),t.current.set(b,v),s.current+=1;const g=s.current;c7(()=>{g===s.current&&l()})},[]),u=a.useCallback((b,x)=>{const v=_C(x);n.current.delete(v),t.current.delete(b)},[]),d=a.useCallback(b=>{o(b)},[]),m=a.useCallback((b,x)=>{const v=t.current.get(b)||"",g=u7(v);return x&&r.includes(g[0])&&g.unshift(fv),g},[r]),f=a.useCallback((b,x)=>b.filter(v=>v!==void 0).some(v=>m(v,!0).includes(x)),[m]),p=()=>{const b=[...t.current.keys()];return r.length&&b.push(fv),b},y=a.useCallback(b=>{const x=`${t.current.get(b)}${Ax}`,v=new Set;return[...n.current.keys()].forEach(g=>{g.startsWith(x)&&v.add(n.current.get(g))}),v},[]);return a.useEffect(()=>()=>{i.current=!0},[]),{registerPath:c,unregisterPath:u,refreshOverflowKeys:d,isSubPathKey:f,getKeyPath:m,getKeys:p,getSubPathKeys:y}}function _l(e){const t=a.useRef(e);t.current=e;const n=a.useCallback((...r)=>{var o;return(o=t.current)==null?void 0:o.call(t,...r)},[]);return e?n:void 0}function S4(e,t,n,r){const{activeKey:o,onActive:s,onInactive:i}=a.useContext(xo),l={active:o===e};return t||(l.onMouseEnter=c=>{n==null||n({key:e,domEvent:c}),s(e)},l.onMouseLeave=c=>{r==null||r({key:e,domEvent:c}),i(e)}),l}function C4(e){const{mode:t,rtl:n,inlineIndent:r}=a.useContext(xo);if(t!=="inline")return null;const o=e;return n?{paddingRight:o*r}:{paddingLeft:o*r}}function w4({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e=="function"?r=a.createElement(e,{...t}):typeof e!="boolean"&&(r=e),r||n||null)}function yf({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(fn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Oc(){return Oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oc.apply(this,arguments)}class f7 extends a.Component{render(){const{title:t,attribute:n,elementRef:r,...o}=this.props,s=Dt(o,["eventKey","popupClassName","popupOffset","onTitleClick"]);return fn(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),a.createElement(es.Item,Oc({},n,{title:typeof t=="string"?t:void 0},s,{ref:r}))}}const m7=a.forwardRef((e,t)=>{const{style:n,className:r,eventKey:o,warnKey:s,disabled:i,itemIcon:l,children:c,itemData:u,role:d,onMouseEnter:m,onMouseLeave:f,onClick:p,onKeyDown:y,onFocus:b,...x}=e,v=y4(o),{prefixCls:g,onItemClick:h,disabled:$,overflowDisabled:C,itemIcon:N,selectedKeys:S,onActive:E}=a.useContext(xo),{_internalRenderMenuItem:w}=a.useContext(Lx),R=`${g}-item`,P=a.useRef(),T=a.useRef(),M=$||i,z=$o(t,T),B=nl(o),F=q=>{const Y=u||{key:o||"",label:c,itemIcon:l,extra:e.extra,title:e.title};return{key:o,keyPath:[...B].reverse(),item:P.current,domEvent:q,itemData:u||Y}},L=l||N,{active:j,...O}=S4(o,M,m,f),A=S.includes(o),k=C4(B.length),_=q=>{if(M)return;const Y=F(q);p==null||p(yf(Y)),h(Y)},D=q=>{if(y==null||y(q),q.which===nt.ENTER){const Y=F(q);p==null||p(yf(Y)),h(Y)}},V=q=>{E(o),b==null||b(q)},W={};e.role==="option"&&(W["aria-selected"]=A);let K=a.createElement(f7,Oc({ref:P,elementRef:z,role:d===null?"none":d||"menuitem",tabIndex:i?null:-1,"data-menu-id":C&&v?null:v},Dt(x,["extra"]),O,W,{component:"li","aria-disabled":i,style:{...k,...n},className:H(R,{[`${R}-active`]:j,[`${R}-selected`]:A,[`${R}-disabled`]:M},r),onClick:_,onKeyDown:D,onFocus:V}),c,a.createElement(w4,{props:{...e,isSelected:A},icon:L}));return w&&(K=w(K,e,{selected:A})),K});function p7(e,t){const{eventKey:n}=e,r=_m(),o=nl(n);return a.useEffect(()=>{if(r)return r.registerPath(n,o),()=>{r.unregisterPath(n,o)}},[o]),r?null:a.createElement(m7,Oc({},e,{ref:t}))}const ru=a.forwardRef(p7);function mv(){return mv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mv.apply(this,arguments)}const g7=({className:e,children:t,...n},r)=>{const{prefixCls:o,mode:s,rtl:i}=a.useContext(xo);return a.createElement("ul",mv({className:H(o,i&&`${o}-rtl`,`${o}-sub`,`${o}-${s==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:r}),t)},E4=a.forwardRef(g7);function Dx(e,t){return zn(e).map((n,r)=>{var o;if(a.isValidElement(n)){const{key:s}=n;let i=((o=n.props)==null?void 0:o.eventKey)??s;i==null&&(i=`tmp_key-${[...t,r].join("-")}`);const c={key:i,eventKey:i};return a.cloneElement(n,c)}return n})}const Zn={adjustX:1,adjustY:1},h7={topLeft:{points:["bl","tl"],overflow:Zn},topRight:{points:["br","tr"],overflow:Zn},bottomLeft:{points:["tl","bl"],overflow:Zn},bottomRight:{points:["tr","br"],overflow:Zn},leftTop:{points:["tr","tl"],overflow:Zn},leftBottom:{points:["br","bl"],overflow:Zn},rightTop:{points:["tl","tr"],overflow:Zn},rightBottom:{points:["bl","br"],overflow:Zn}},y7={topLeft:{points:["bl","tl"],overflow:Zn},topRight:{points:["br","tr"],overflow:Zn},bottomLeft:{points:["tl","bl"],overflow:Zn},bottomRight:{points:["tr","br"],overflow:Zn},rightTop:{points:["tr","tl"],overflow:Zn},rightBottom:{points:["br","bl"],overflow:Zn},leftTop:{points:["tl","tr"],overflow:Zn},leftBottom:{points:["bl","br"],overflow:Zn}};function I4(e,t,n){if(t)return t;if(n)return n[e]||n.other}const v7={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function b7({prefixCls:e,visible:t,children:n,popup:r,popupStyle:o,popupClassName:s,popupOffset:i,disabled:l,mode:c,onVisibleChange:u}){const{getPopupContainer:d,rtl:m,subMenuOpenDelay:f,subMenuCloseDelay:p,builtinPlacements:y,triggerSubMenuAction:b,forceSubMenuRender:x,rootClassName:v,motion:g,defaultMotions:h}=a.useContext(xo),[$,C]=a.useState(!1),N=m?{...y7,...y}:{...h7,...y},S=v7[c],E=I4(c,g,h),w=a.useRef(E);c!=="inline"&&(w.current=E);const R={...w.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},P=a.useRef();return a.useEffect(()=>(P.current=Ct(()=>{C(t)}),()=>{Ct.cancel(P.current)}),[t]),a.createElement(bm,{prefixCls:e,popupClassName:H(`${e}-popup`,{[`${e}-rtl`]:m},s,v),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:N,popupPlacement:S,popupVisible:$,popup:r,popupStyle:o,popupAlign:i&&{offset:i},action:l?[]:[b],mouseEnterDelay:f,mouseLeaveDelay:p,onPopupVisibleChange:u,forceRender:x,popupMotion:R,fresh:!0},n)}function pv(){return pv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pv.apply(this,arguments)}function x7({id:e,open:t,keyPath:n,children:r}){const o="inline",{prefixCls:s,forceSubMenuRender:i,motion:l,defaultMotions:c,mode:u}=a.useContext(xo),d=a.useRef(!1);d.current=u===o;const[m,f]=a.useState(!d.current),p=d.current?t:!1;a.useEffect(()=>{d.current&&f(!1)},[u]);const y={...I4(o,l,c)};n.length>1&&(y.motionAppear=!1);const b=y.onVisibleChanged;return y.onVisibleChanged=x=>(!d.current&&!x&&f(!0),b==null?void 0:b(x)),m?null:a.createElement(Mc,{mode:o,locked:!d.current},a.createElement(fr,pv({visible:p},y,{forceRender:i,removeOnLeave:!1,leavedClassName:`${s}-hidden`}),({className:x,style:v})=>a.createElement(E4,{id:e,className:x,style:v},r)))}function _c(){return _c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_c.apply(this,arguments)}const $7=a.forwardRef((e,t)=>{const{style:n,className:r,styles:o,classNames:s,title:i,eventKey:l,warnKey:c,disabled:u,internalPopupClose:d,children:m,itemIcon:f,expandIcon:p,popupClassName:y,popupOffset:b,popupStyle:x,onClick:v,onMouseEnter:g,onMouseLeave:h,onTitleClick:$,onTitleMouseEnter:C,onTitleMouseLeave:N,popupRender:S,...E}=e,w=y4(l),{prefixCls:R,mode:P,openKeys:T,disabled:M,overflowDisabled:z,activeKey:B,selectedKeys:F,itemIcon:L,expandIcon:j,onItemClick:O,onOpenChange:A,onActive:k,popupRender:_}=a.useContext(xo),{_internalRenderSubMenuItem:D}=a.useContext(Lx),{isSubPathKey:V}=a.useContext(x4),W=nl(),K=`${R}-submenu`,q=M||u,Y=a.useRef(),ee=a.useRef(),ie=f??L,ae=p??j,U=T.includes(l),Q=!z&&U,Z=V(F,l),{active:ne,...oe}=S4(l,q,C,N),[le,re]=a.useState(!1),X=Ee=>{q||re(Ee)},se=Ee=>{X(!0),g==null||g({key:l,domEvent:Ee})},ge=Ee=>{X(!1),h==null||h({key:l,domEvent:Ee})},de=a.useMemo(()=>ne||(P!=="inline"?le||V([B],l):!1),[P,ne,B,le,l,V]),Se=C4(W.length),ue=Ee=>{q||($==null||$({key:l,domEvent:Ee}),P==="inline"&&A(l,!U))},be=_l(Ee=>{v==null||v(yf(Ee)),O(Ee)}),Ne=Ee=>{P!=="inline"&&A(l,Ee)},we=()=>{k(l)},ze=w&&`${w}-popup`,he=a.useMemo(()=>a.createElement(w4,{icon:P!=="horizontal"?ae:void 0,props:{...e,isOpen:Q,isSubMenu:!0}},a.createElement("i",{className:`${K}-arrow`})),[P,ae,e,Q,K]);let ke=a.createElement("div",_c({role:"menuitem",style:Se,className:`${K}-title`,tabIndex:q?null:-1,ref:Y,title:typeof i=="string"?i:null,"data-menu-id":z&&w?null:w,"aria-expanded":Q,"aria-haspopup":!0,"aria-controls":ze,"aria-disabled":q,onClick:ue,onFocus:we},oe),i,he);const Oe=a.useRef(P);P!=="inline"&&W.length>1?Oe.current="vertical":Oe.current=P;const Ce=Oe.current,Me=a.useMemo(()=>{const Ee=a.createElement(Mc,{classNames:s,styles:o,mode:Ce==="horizontal"?"vertical":Ce},a.createElement(E4,{id:ze,ref:ee},m)),Ve=S||_;return Ve?Ve(Ee,{item:e,keys:W}):Ee},[S,_,W,ze,m,e,Ce]);if(!z){const Ee=Oe.current;ke=a.createElement(b7,{mode:Ee,prefixCls:K,visible:!d&&Q&&P!=="inline",popupClassName:y,popupOffset:b,popupStyle:x,popup:Me,disabled:q,onVisibleChange:Ne},ke)}let xe=a.createElement(es.Item,_c({ref:t,role:"none"},E,{component:"li",style:n,className:H(K,`${K}-${P}`,r,{[`${K}-open`]:Q,[`${K}-active`]:de,[`${K}-selected`]:Z,[`${K}-disabled`]:q}),onMouseEnter:se,onMouseLeave:ge}),ke,!z&&a.createElement(x7,{id:ze,open:Q,keyPath:W},m));return D&&(xe=D(xe,e,{selected:Z,active:de,open:Q,disabled:q})),a.createElement(Mc,{classNames:s,styles:o,onItemClick:be,mode:P==="horizontal"?"vertical":P,itemIcon:ie,expandIcon:ae},xe)}),zm=a.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,o=nl(n),s=Dx(r,o),i=_m();a.useEffect(()=>{if(i)return i.registerPath(n,o),()=>{i.unregisterPath(n,o)}},[o]);let l;return i?l=s:l=a.createElement($7,_c({ref:t},e),s),a.createElement(b4.Provider,{value:o},l)});function Fx({className:e,style:t}){const{prefixCls:n}=a.useContext(xo);return _m()?null:a.createElement("li",{role:"separator",className:H(`${n}-item-divider`,e),style:t})}function vf(){return vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vf.apply(this,arguments)}const S7=a.forwardRef((e,t)=>{const{className:n,title:r,eventKey:o,children:s,...i}=e,{prefixCls:l,classNames:c,styles:u}=a.useContext(xo),d=`${l}-item-group`;return a.createElement("li",vf({ref:t,role:"presentation"},i,{onClick:m=>m.stopPropagation(),className:H(d,n)}),a.createElement("div",{role:"presentation",className:H(`${d}-title`,c==null?void 0:c.listTitle),style:u==null?void 0:u.listTitle,title:typeof r=="string"?r:void 0},r),a.createElement("ul",{role:"group",className:H(`${d}-list`,c==null?void 0:c.list),style:u==null?void 0:u.list},s))}),Hx=a.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,o=nl(n),s=Dx(r,o);return _m()?s:a.createElement(S7,vf({ref:t},Dt(e,["warnKey"])),s)});function xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xa.apply(this,arguments)}function gv(e,t,n){const{item:r,group:o,submenu:s,divider:i}=t;return(e||[]).map((l,c)=>{if(l&&typeof l=="object"){const{label:u,children:d,key:m,type:f,extra:p,...y}=l,b=m??`tmp-${c}`;if(d||f==="group")return f==="group"?a.createElement(o,xa({key:b},y,{title:u}),gv(d,t,n)):a.createElement(s,xa({key:b},y,{title:u}),gv(d,t,n));if(f==="divider")return a.createElement(i,xa({key:b},y));const x=!!p||p===0;return a.createElement(r,xa({key:b},y,{extra:p,itemData:{...l,key:b}}),x?a.createElement(a.Fragment,null,a.createElement("span",{className:`${n}-item-label`},u),a.createElement("span",{className:`${n}-item-extra`},p)):u)}return null}).filter(l=>l)}function zC(e,t,n,r,o){let s=e;const i={divider:Fx,item:ru,group:Hx,submenu:zm,...r};return t&&(s=gv(t,i,o)),Dx(s,n)}function hv(){return hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hv.apply(this,arguments)}const Qs=[],C7=a.forwardRef((e,t)=>{var at;const{prefixCls:n="rc-menu",rootClassName:r,style:o,className:s,styles:i,classNames:l,tabIndex:c=0,items:u,children:d,direction:m,id:f,mode:p="vertical",inlineCollapsed:y,disabled:b,disabledOverflow:x,subMenuOpenDelay:v=.1,subMenuCloseDelay:g=.1,forceSubMenuRender:h,defaultOpenKeys:$,openKeys:C,activeKey:N,defaultActiveFirst:S,selectable:E=!0,multiple:w=!1,defaultSelectedKeys:R,selectedKeys:P,onSelect:T,onDeselect:M,inlineIndent:z=24,motion:B,defaultMotions:F,triggerSubMenuAction:L="hover",builtinPlacements:j,itemIcon:O,expandIcon:A,overflowedIndicator:k="...",overflowedIndicatorPopupClassName:_,getPopupContainer:D,onClick:V,onOpenChange:W,onKeyDown:K,openAnimation:q,openTransitionName:Y,_internalRenderMenuItem:ee,_internalRenderSubMenuItem:ie,_internalComponents:ae,popupRender:U,...Q}=e,[Z,ne]=a.useMemo(()=>[zC(d,u,Qs,ae,n),zC(d,u,Qs,{},n)],[d,u,ae]),[oe,le]=a.useState(!1),re=a.useRef(),X=jo(f?`rc-menu-uuid-${f}`:"rc-menu-uuid"),se=m==="rtl",[ge,de]=nn($,C),Se=ge||Qs,ue=(Ze,De=!1)=>{function Le(){de(Ze),W==null||W(Ze)}De?ss.flushSync(Le):Le()},[be,Ne]=a.useState(Se),we=a.useRef(!1),[ze,he]=a.useMemo(()=>(p==="inline"||p==="vertical")&&y?["vertical",y]:[p,!1],[p,y]),ke=ze==="inline",[Oe,Ce]=a.useState(ze),[Me,xe]=a.useState(he);a.useEffect(()=>{Ce(ze),xe(he),we.current&&(ke?de(be):ue(Qs))},[ze,he]);const[Ee,Ve]=a.useState(0),qe=Ee>=Z.length-1||Oe!=="horizontal"||x;a.useEffect(()=>{ke&&Ne(Se)},[Se]),a.useEffect(()=>(we.current=!0,()=>{we.current=!1}),[]);const{registerPath:me,unregisterPath:Re,refreshOverflowKeys:Te,isSubPathKey:Ue,getKeyPath:Ge,getKeys:Fe,getSubPathKeys:et}=d7(),ve=a.useMemo(()=>({registerPath:me,unregisterPath:Re}),[me,Re]),je=a.useMemo(()=>({isSubPathKey:Ue}),[Ue]);a.useEffect(()=>{Te(qe?Qs:Z.slice(Ee+1).map(Ze=>Ze.key))},[Ee,qe]);const[ce,Pe]=nn(N||S&&((at=Z[0])==null?void 0:at.key),N),pe=_l(Ze=>{Pe(Ze)}),$e=_l(()=>{Pe(void 0)});a.useImperativeHandle(t,()=>({list:re.current,focus:Ze=>{var jt,pt;const De=Fe(),{elements:Le,key2element:Ke,element2key:lt}=hf(De,X),_t=kx(re.current,Le);let ft;ce&&De.includes(ce)?ft=ce:ft=_t[0]?lt.get(_t[0]):(jt=Z.find(qt=>!qt.props.disabled))==null?void 0:jt.key;const xt=Ke.get(ft);ft&&xt&&((pt=xt==null?void 0:xt.focus)==null||pt.call(xt,Ze))},findItem:({key:Ze})=>{const De=Fe(),{key2element:Le}=hf(De,X);return Le.get(Ze)||null}}));const[_e,Ie]=nn(R||[],P),Be=a.useMemo(()=>Array.isArray(_e)?_e:_e==null?Qs:[_e],[_e]),te=Ze=>{if(E){const{key:De}=Ze,Le=Be.includes(De);let Ke;w?Le?Ke=Be.filter(_t=>_t!==De):Ke=[...Be,De]:Ke=[De],Ie(Ke);const lt={...Ze,selectedKeys:Ke};Le?M==null||M(lt):T==null||T(lt)}!w&&Se.length&&Oe!=="inline"&&ue(Qs)},ye=_l(Ze=>{V==null||V(yf(Ze)),te(Ze)}),Ae=_l((Ze,De)=>{let Le=Se.filter(Ke=>Ke!==Ze);if(De)Le.push(Ze);else if(Oe!=="inline"){const Ke=et(Ze);Le=Le.filter(lt=>!Ke.has(lt))}ho(Se,Le,!0)||ue(Le,!0)}),St=l7(Oe,ce,se,X,re,Fe,Ge,Pe,(Ze,De)=>{const Le=De??!Se.includes(Ze);Ae(Ze,Le)},K);a.useEffect(()=>{le(!0)},[]);const ht=a.useMemo(()=>({_internalRenderMenuItem:ee,_internalRenderSubMenuItem:ie}),[ee,ie]),Nt=Oe!=="horizontal"||x?Z:Z.map((Ze,De)=>a.createElement(Mc,{key:Ze.key,overflowDisabled:De>Ee,classNames:l,styles:i},Ze)),yt=a.createElement(es,hv({id:f,ref:re,prefixCls:`${n}-overflow`,component:"ul",itemComponent:ru,className:H(n,`${n}-root`,`${n}-${Oe}`,s,{[`${n}-inline-collapsed`]:Me,[`${n}-rtl`]:se},r),dir:m,style:o,role:"menu",tabIndex:c,data:Nt,renderRawItem:Ze=>Ze,renderRawRest:Ze=>{const De=Ze.length,Le=De?Z.slice(-De):null;return a.createElement(zm,{eventKey:fv,title:k,disabled:qe,internalPopupClose:De===0,popupClassName:_},Le)},maxCount:Oe!=="horizontal"||x?es.INVALIDATE:es.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:Ze=>{Ve(Ze)},onKeyDown:St},Q));return a.createElement(Lx.Provider,{value:ht},a.createElement(g4.Provider,{value:X},a.createElement(Mc,{prefixCls:n,rootClassName:r,classNames:l,styles:i,mode:Oe,openKeys:Se,rtl:se,disabled:b,motion:oe?B:null,defaultMotions:oe?F:null,activeKey:ce,onActive:pe,onInactive:$e,selectedKeys:Be,inlineIndent:z,subMenuOpenDelay:v,subMenuCloseDelay:g,forceSubMenuRender:h,builtinPlacements:j,triggerSubMenuAction:L,getPopupContainer:D,itemIcon:O,expandIcon:A,onItemClick:ye,onOpenChange:Ae,popupRender:U},a.createElement(x4.Provider,{value:je},yt),a.createElement("div",{style:{display:"none"},"aria-hidden":!0},a.createElement(v4.Provider,{value:ve},ne)))))}),rl=C7;rl.Item=ru;rl.SubMenu=zm;rl.ItemGroup=Hx;rl.Divider=Fx;var P4={};Object.defineProperty(P4,"__esModule",{value:!0});var w7={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"},E7=P4.default=w7;function yv(){return yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yv.apply(this,arguments)}const I7=(e,t)=>a.createElement(gt,yv({},e,{ref:t,icon:E7})),P7=a.forwardRef(I7),N4=a.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),N7=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:s,headerPadding:i,headerColor:l,footerPadding:c,fontSize:u,bodyBg:d,headerBg:m}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{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:s,padding:i,color:l,lineHeight:G(s),background:m,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:u,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},R4=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:s,marginXXS:i,colorTextLightSolid:l,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${s}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},T4=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],M4=Tt("Layout",N7,R4,{deprecatedTokens:T4}),R7=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:s,triggerHeight:i,triggerColor:l,triggerBg:c,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:m,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:y,lightTriggerBg:b,bodyBg:x}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:i},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${s}-menu${s}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:i,color:l,lineHeight:G(i),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:u,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:m,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${G(f)} ${G(f)} 0`,cursor:"pointer",transition:`background-color ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:`${G(f)} 0 0 ${G(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:y,background:b},[`${t}-zero-width-trigger`]:{color:y,background:b,border:`1px solid ${x}`,borderInlineStart:0}}}}},T7=Tt(["Layout","Sider"],R7,R4,{deprecatedTokens:T4}),jC={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1839.98px"},M7=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),jm=a.createContext({}),O7=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),O4=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:s,defaultCollapsed:i=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:m=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:y,onCollapse:b,onBreakpoint:x,classNames:v,styles:g,...h}=e,{siderHook:$}=a.useContext(N4),[C,N]=a.useState("collapsed"in e?e.collapsed:i),[S,E]=a.useState(!1);a.useEffect(()=>{"collapsed"in e&&N(e.collapsed)},[e.collapsed]);const w=(U,Q)=>{"collapsed"in e||N(U),b==null||b(U,Q)},R={...e,collapsed:C,defaultCollapsed:i,theme:l,style:c,collapsible:u,reverseArrow:d,width:m,collapsedWidth:f,zeroWidthTriggerStyle:p,breakpoint:y,onCollapse:b,onBreakpoint:x},[P,T]=Ot([v],[g],{props:R}),{getPrefixCls:M,direction:z}=a.useContext(ct),B=M("layout-sider",n),[F,L]=T7(B),j=a.useRef(null);j.current=U=>{E(U.matches),x==null||x(U.matches),C!==U.matches&&w(U.matches,"responsive")},a.useEffect(()=>{function U(Z){var ne;return(ne=j.current)==null?void 0:ne.call(j,Z)}let Q;return typeof(window==null?void 0:window.matchMedia)<"u"&&y&&y in jC&&(Q=window.matchMedia(`screen and (max-width: ${jC[y]})`),bt(Q==null?void 0:Q.addEventListener)&&Q.addEventListener("change",U),U(Q)),()=>{bt(Q==null?void 0:Q.removeEventListener)&&Q.removeEventListener("change",U)}},[y]),a.useEffect(()=>{const U=O7("ant-sider-");return $.addSider(U),()=>$.removeSider(U)},[]);const O=()=>{w(!C,"clickTrigger")},A=Dt(h,["collapsed"]),k=C?f:m,_=M7(k)?`${k}px`:String(k),D=Number.parseFloat(String(f||0))===0?a.createElement("span",{onClick:O,className:H(`${B}-zero-width-trigger`,`${B}-zero-width-trigger-${d?"right":"left"}`),style:p},o||a.createElement(P7,null)):null,V=z==="rtl"==!d,q={expanded:V?a.createElement(Nc,null):a.createElement(Tc,null),collapsed:V?a.createElement(Tc,null):a.createElement(Nc,null)}[C?"collapsed":"expanded"],Y=o!==null?D||a.createElement("div",{className:`${B}-trigger`,onClick:O,style:{width:_}},o||q):null,ee={...c,flex:`0 0 ${_}`,maxWidth:_,minWidth:_,width:_},ie=H(B,`${B}-${l}`,{[`${B}-collapsed`]:!!C,[`${B}-has-trigger`]:u&&o!==null&&!D,[`${B}-below`]:!!S,[`${B}-zero-width`]:Number.parseFloat(_)===0},r,P.root,F,L),ae=a.useMemo(()=>({siderCollapsed:C}),[C]);return a.createElement(jm.Provider,{value:ae},a.createElement("aside",{className:ie,...A,style:{...T.root,...ee},ref:t},a.createElement("div",{className:H(`${B}-children`,P.body),style:T.body},s),u||S&&D?Y:null))});var _4={};Object.defineProperty(_4,"__esModule",{value:!0});var _7={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"},z7=_4.default=_7;function vv(){return vv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vv.apply(this,arguments)}const j7=(e,t)=>a.createElement(gt,vv({},e,{ref:t,icon:z7})),Bm=a.forwardRef(j7),bf=a.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),z4=e=>{const{prefixCls:t,className:n,dashed:r,...o}=e,{getPrefixCls:s}=a.useContext(ct),i=s("menu",t),l=H({[`${i}-item-divider-dashed`]:!!r},n);return a.createElement(Fx,{className:l,...o})},j4=e=>{var S,E;const{className:t,children:n,icon:r,title:o,danger:s,extra:i}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,tooltip:m,inlineCollapsed:f,styles:p,classNames:y}=a.useContext(bf),b=w=>{var T,M;const R=n==null?void 0:n[0],P=a.createElement("span",{className:H(`${l}-title-content`,c?y==null?void 0:y.itemContent:(T=y==null?void 0:y.subMenu)==null?void 0:T.itemContent,{[`${l}-title-content-with-extra`]:!!i||i===0}),style:c?p==null?void 0:p.itemContent:(M=p==null?void 0:p.subMenu)==null?void 0:M.itemContent},n);return(!r||a.isValidElement(n)&&n.type==="span")&&n&&w&&c&&typeof R=="string"?a.createElement("div",{className:`${l}-inline-collapsed-noicon`},R.charAt(0)):P},{siderCollapsed:x}=a.useContext(jm);let v=o;typeof o>"u"?v=c?n:"":o===!1&&(v="");const g=m===!1?void 0:m,h=g&&g.title!==void 0?g.title:v,$={...g??null,title:h};!x&&!f&&($.title=null,$.open=!1);const C=zn(n).length;let N=a.createElement(ru,{...Dt(e,["title","icon","danger"]),className:H(c?y==null?void 0:y.item:(S=y==null?void 0:y.subMenu)==null?void 0:S.item,{[`${l}-item-danger`]:s,[`${l}-item-only-child`]:(r?C+1:C)===1},t),style:{...c?p==null?void 0:p.item:(E=p==null?void 0:p.subMenu)==null?void 0:E.item,...e.style},title:typeof o=="string"?o:void 0,itemData:(e==null?void 0:e.itemData)??{...e,key:e.eventKey}},Fn(r,w=>{var R,P;return{className:H(`${l}-item-icon`,c?y==null?void 0:y.itemIcon:(R=y==null?void 0:y.subMenu)==null?void 0:R.itemIcon,w.className),style:{...c?p==null?void 0:p.itemIcon:(P=p==null?void 0:p.subMenu)==null?void 0:P.itemIcon,...w.style}}}),b(f));if(!d&&m!==!1){const w=g&&g.placement?g.placement:u==="rtl"?"left":"right",R=`${l}-inline-collapsed-tooltip`,P=M=>({...M,root:H(R,M==null?void 0:M.root)}),T=bt(g==null?void 0:g.classNames)?M=>{const z=g.classNames(M);return P(z)}:P(g==null?void 0:g.classNames);N=a.createElement(bo,{...$,placement:w,classNames:T},N)}return N},xf=a.createContext(null),B4=a.forwardRef((e,t)=>{const{children:n,...r}=e,o=a.useContext(xf),s=a.useMemo(()=>({...o,...r}),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=kI(n),l=$o(t,i?Bo(n):null);return a.createElement(xf.Provider,{value:s},a.createElement(Ri,{space:!0},i?a.cloneElement(n,{ref:l}):n))}),B7=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:s,lineType:i,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${G(s)} ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
> ${t}-item-active,
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:["border-color","background-color"].map(c=>`${c} ${n}`).join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},L7=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${G(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${G(t)})`}}}}),BC=e=>jr(e),LC=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:s,groupTitleColor:i,itemBg:l,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:d,activeBarWidth:m,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:y,motionEaseOut:b,itemPaddingInline:x,motionDurationMid:v,itemHoverColor:g,lineType:h,colorSplit:$,itemDisabledColor:C,dangerItemColor:N,dangerItemHoverColor:S,dangerItemSelectedColor:E,dangerItemActiveBg:w,dangerItemSelectedBg:R,popupBg:P,itemHoverBg:T,itemActiveBg:M,menuSubMenuBg:z,horizontalItemSelectedColor:B,horizontalItemSelectedBg:F,horizontalItemBorderRadius:L,horizontalItemHoverBg:j}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:{...BC(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:i}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:s},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...BC(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:g}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:g}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:M}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:M}}},[`${n}-item-danger`]:{color:N,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:w}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:R}},[`&${n}-submenu > ${n}`]:{backgroundColor:z},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:L,"&::after":{position:"absolute",insetInline:x,bottom:0,borderBottom:`${G(d)} solid transparent`,transition:`border-color ${p} ${y}`,content:'""'},"&:hover, &-active, &-open":{background:j,"&::after":{borderBottomWidth:d,borderBottomColor:B}},"&-selected":{color:B,backgroundColor:F,"&:hover":{backgroundColor:F},"&::after":{borderBottomWidth:d,borderBottomColor:B}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${G(f)} ${h} ${$}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${G(m)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(O=>`${O} ${v} ${b}`).join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(O=>`${O} ${v} ${y}`).join(",")}}}}}},kC=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:s,marginXS:i,itemMarginBlock:l,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(s).add(o).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:G(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:G(n)},[`${t}-item-group-list ${t}-submenu-title,
${t}-submenu-title`]:{paddingInlineEnd:d}}},k7=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:s,controlHeightLG:i,motionEaseOut:l,padding:c,paddingXL:u,itemMarginInline:d,fontSizeLG:m,motionDurationFast:f,motionDurationSlow:p,paddingXS:y,boxShadowSecondary:b,collapsedWidth:x,collapsedIconSize:v}=e,g={height:r,lineHeight:G(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...kC(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...kC(e),boxShadow:b}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:s,maxHeight:`calc(100vh - ${G(e.calc(i).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-color ${p}`,`padding ${f} ${l}`].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`]:g,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:g}},{[`${t}-inline-collapsed`]:{width:x,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:m,textAlign:"center",width:"100%"}}},[`> ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
> ${t}-submenu > ${t}-submenu-title`]:{display:"flex",alignItems:"center",justifyContent:"flex-start",insetInlineStart:0,paddingInline:`calc(50% - ${G(e.calc(v).div(2).equal())} - ${G(d)})`,textOverflow:"clip",[`
${t}-submenu-arrow,
${t}-submenu-expand-icon
`]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:"hidden"},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:G(r),"+ span":{display:"inline-block",width:0,opacity:0,overflow:"hidden",marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},[`${t}-item-extra`]:{paddingInlineStart:c},"a, a:hover":{color:o}},[`${t}-item-group-title`]:{...ar,paddingInline:y}}}]},AC=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:s,iconCls:i,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${s}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:{...Kc()},[`&${t}-item-only-child`]:{[`> ${i}, > ${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"}}}},DC=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:s,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:s,color:"currentcolor",transform:"translateY(-50%)",transition:["transform","opacity"].map(l=>`${l} ${n}`).join(",")},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(s).mul(.6).equal(),height:e.calc(s).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:["background-color","transform","top","color"].map(l=>`${l} ${n} ${r}`).join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${G(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${G(i)})`}}}}},A7=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:s,motionEaseInOut:i,paddingXS:l,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:m,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:y,menuArrowOffset:b,lineType:x,groupTitleLineHeight:v,groupTitleFontSize:g,iconSize:h,iconMarginInlineEnd:$}=e,C=[`> ${t}-typography-ellipsis-single-line`,`> ${n}-item-label > ${t}-typography-ellipsis-single-line`].join(",");return[{"":{[n]:{...Ls(),"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...Ft(e),...Ls(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} 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:`${G(l)} ${G(c)}`,fontSize:g,lineHeight:v,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:["border-color","background-color"].map(N=>`${N} ${o} ${i}`).join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o}`,`background-color ${o}`,`padding ${s}`].map(N=>`${N} ${i}`).join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:["background-color","padding"].map(N=>`${N} ${o} ${i}`).join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%",minWidth:0},[`${n}-item-label`]:{flex:"auto",minWidth:0,...ar},[C]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{flex:"none",marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item-icon + ${n}-title-content-with-extra`]:{width:`calc(100% - ${G(e.calc(h).add($??0).equal())})`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:x,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}},...AC(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${G(e.calc(r).mul(2).equal())} ${G(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:m,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:{borderRadius:f,...AC(e),...DC(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:"100% 0"},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:"100% 100%"},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:"0 100%"},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:"0 0"},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...DC(e),[`&-inline-collapsed ${n}-submenu-arrow,
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${G(b)})`},"&::after":{transform:`rotate(45deg) translateX(${G(e.calc(b).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${G(e.calc(y).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${G(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${G(b)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},D7=e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:s,colorTextDescription:i,colorBgContainer:l,colorFillAlter:c,colorFillContent:u,lineWidth:d,lineWidthBold:m,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:y,lineHeight:b,colorBgElevated:x,marginXXS:v,padding:g,fontSize:h,controlHeightSM:$,fontSizeLG:C,colorTextLightSolid:N,colorErrorHover:S}=e,E=e.activeBarWidth??0,w=e.activeBarBorderWidth??d,R=e.itemMarginInline??e.marginXXS,P=new Gt(N).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:i,groupTitleColor:i,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:u,itemActiveBg:f,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:E,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:d,activeBarBorderWidth:w,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:R,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:b,collapsedWidth:y*2,popupBg:x,itemMarginBlock:v,itemPaddingInline:g,horizontalLineHeight:`${y*1.15}px`,iconSize:h,iconMarginInlineEnd:$-h,collapsedIconSize:C,groupTitleFontSize:h,darkItemDisabledColor:new Gt(N).setA(.25).toRgbString(),darkItemColor:P,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:N,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:P,darkItemHoverColor:N,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:n,itemWidth:E?`calc(100% + ${w}px)`:`calc(100% - ${R*2}px)`}},F7=(e,t=e,n=!0)=>Tt("Menu",o=>{const{colorBgElevated:s,controlHeightLG:i,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:m,darkItemSelectedColor:f,darkItemSelectedBg:p,darkDangerItemSelectedBg:y,darkItemHoverBg:b,darkGroupTitleColor:x,darkItemHoverColor:v,darkItemDisabledColor:g,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:C,popupBg:N,darkPopupBg:S}=o,E=o.calc(l).div(7).mul(5).equal(),w=Rt(o,{menuArrowSize:E,menuHorizontalHeight:o.calc(i).mul(1.15).equal(),menuArrowOffset:o.calc(E).mul(.25).equal(),menuSubMenuBg:s,calc:o.calc,popupBg:N}),R=Rt(w,{itemColor:c,itemHoverColor:v,groupTitleColor:x,itemSelectedColor:f,subMenuItemSelectedColor:f,itemBg:d,popupBg:S,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:b,itemDisabledColor:g,dangerItemColor:u,dangerItemHoverColor:h,dangerItemSelectedColor:$,dangerItemActiveBg:C,dangerItemSelectedBg:y,menuSubMenuBg:m,horizontalItemSelectedColor:f,horizontalItemSelectedBg:p});return[A7(w),B7(w),k7(w),LC(w,"light"),LC(R,"dark"),L7(w),gx(w),No(w,"slide-up"),No(w,"slide-down"),Yc(w,"zoom-big")]},D7,{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),L4=e=>{var b,x,v,g,h,$;const{popupClassName:t,icon:n,title:r,theme:o}=e,s=a.useContext(bf),{prefixCls:i,inlineCollapsed:l,theme:c,classNames:u,styles:d}=s,m=nl();let f;if(!n)f=l&&!m.length&&r&&typeof r=="string"?a.createElement("div",{className:`${i}-inline-collapsed-noicon`},r.charAt(0)):a.createElement("span",{className:`${i}-title-content`},r);else{const C=a.isValidElement(r)&&r.type==="span";f=a.createElement(a.Fragment,null,Fn(n,N=>({className:H(N.className,`${i}-item-icon`,u==null?void 0:u.itemIcon),style:{...N.style,...d==null?void 0:d.itemIcon}})),C?r:a.createElement("span",{className:`${i}-title-content`},r))}const p=a.useMemo(()=>({...s,firstLevel:!1}),[s]),[y]=Xc("Menu");return a.createElement(bf.Provider,{value:p},a.createElement(zm,{...Dt(e,["icon"]),title:f,classNames:{list:(b=u==null?void 0:u.subMenu)==null?void 0:b.list,listTitle:(x=u==null?void 0:u.subMenu)==null?void 0:x.itemTitle},styles:{list:(v=d==null?void 0:d.subMenu)==null?void 0:v.list,listTitle:(g=d==null?void 0:d.subMenu)==null?void 0:g.itemTitle},popupClassName:H(i,t,(h=u==null?void 0:u.popup)==null?void 0:h.root,`${i}-${o||c}`),popupStyle:{zIndex:y,...e.popupStyle,...($=d==null?void 0:d.popup)==null?void 0:$.root}}))};function ug(e){return e===null||e===!1}const H7={item:j4,submenu:L4,divider:z4},V7=a.forwardRef((e,t)=>{var U;const n=a.useContext(xf),r=n||{},{prefixCls:o,className:s,style:i,theme:l="light",expandIcon:c,_internalDisableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:m,siderCollapsed:f,rootClassName:p,mode:y,selectable:b,onClick:x,overflowedIndicatorPopupClassName:v,classNames:g,styles:h,...$}=e,{menu:C}=a.useContext(ct),{getPrefixCls:N,getPopupContainer:S,direction:E,className:w,style:R,classNames:P,styles:T}=Pt("menu"),M=N(),z=Dt($,["collapsedWidth"]);(U=r.validator)==null||U.call(r,{mode:y});const B=vt((...Q)=>{var Z;x==null||x(...Q),(Z=r.onClick)==null||Z.call(r)}),F=r.mode||y,L=b??r.selectable,j=m??f,O={...e,mode:F,inlineCollapsed:j,selectable:L,theme:l},A=Mt(R),k=Mt(i),[_,D]=Ot([P,g],[T,A,h,k],{props:O},{popup:{_default:"root"},subMenu:{_default:"item"}}),V={horizontal:{motionName:`${M}-slide-up`},inline:cf(M),other:{motionName:`${M}-zoom-big`}},W=N("menu",o||r.prefixCls),K=on(W),[q,Y]=F7(W,K,!n),ee=H(`${W}-${l}`,w,s),ie=a.useMemo(()=>{var Z;if(bt(c)||ug(c))return c||null;if(bt(r.expandIcon)||ug(r.expandIcon))return r.expandIcon||null;if(bt(C==null?void 0:C.expandIcon)||ug(C==null?void 0:C.expandIcon))return(C==null?void 0:C.expandIcon)||null;const Q=c??(r==null?void 0:r.expandIcon)??(C==null?void 0:C.expandIcon);return Fn(Q,{className:H(`${W}-submenu-expand-icon`,a.isValidElement(Q)?(Z=Q.props)==null?void 0:Z.className:void 0)})},[c,r==null?void 0:r.expandIcon,C==null?void 0:C.expandIcon,W]),ae=a.useMemo(()=>({prefixCls:W,inlineCollapsed:j||!1,direction:E,firstLevel:!0,theme:l,mode:F,disableMenuItemTitleTooltip:u,tooltip:d,classNames:_,styles:D}),[W,j,E,u,l,F,_,D,d]);return a.createElement(xf.Provider,{value:null},a.createElement(bf.Provider,{value:ae},a.createElement(rl,{getPopupContainer:S,overflowedIndicator:a.createElement(Bm,null),overflowedIndicatorPopupClassName:H(W,`${W}-${l}`,v),classNames:{list:_.list,listTitle:_.itemTitle},styles:{list:D.list,listTitle:D.itemTitle},mode:F,selectable:L,onClick:B,...z,inlineCollapsed:j,style:D.root,className:ee,prefixCls:W,direction:E,defaultMotions:V,expandIcon:ie,ref:t,rootClassName:H(p,q,r.rootClassName,Y,K,_.root),_internalComponents:H7})))}),Fi=a.forwardRef((e,t)=>{const n=a.useRef(null),r=a.useContext(jm);return a.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var s;(s=n.current)==null||s.focus(o)}})),a.createElement(V7,{ref:n,...e,...r})});Fi.Item=j4;Fi.SubMenu=L4;Fi.Divider=z4;Fi.ItemGroup=Hx;const W7=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,s=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${s}`]:{[`&${s}-danger:not(${s}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},K7=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:s,antCls:i,iconCls:l,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:m,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:y,colorBgElevated:b,controlHeightLG:x}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(s).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:`calc(100vh - ${G(e.calc(x).mul(2.5).equal())})`,overflowY:"auto"},[`&-trigger${i}-btn`]:{[`& > ${l}-down, & > ${i}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
&${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Em},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
&${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Pm},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Im},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Nm},[`&${i}-slide-right-enter${i}-slide-right-enter-active${t}-placement-right,
&${i}-slide-right-appear${i}-slide-right-appear-active${t}-placement-right,
&${i}-slide-right-enter${i}-slide-right-enter-active${t}-placement-rightTop,
&${i}-slide-right-appear${i}-slide-right-appear-active${t}-placement-rightTop,
&${i}-slide-right-enter${i}-slide-right-enter-active${t}-placement-rightBottom,
&${i}-slide-right-appear${i}-slide-right-appear-active${t}-placement-rightBottom`]:{animationName:VN},[`&${i}-slide-left-enter${i}-slide-left-enter-active${t}-placement-left,
&${i}-slide-left-appear${i}-slide-left-appear-active${t}-placement-left,
&${i}-slide-left-enter${i}-slide-left-enter-active${t}-placement-leftTop,
&${i}-slide-left-appear${i}-slide-left-appear-active${t}-placement-leftTop,
&${i}-slide-left-enter${i}-slide-left-enter-active${t}-placement-leftBottom,
&${i}-slide-left-appear${i}-slide-left-appear-active${t}-placement-leftBottom`]:{animationName:KN},[`&${i}-slide-right-leave${i}-slide-right-leave-active${t}-placement-right,
&${i}-slide-right-leave${i}-slide-right-leave-active${t}-placement-rightTop,
&${i}-slide-right-leave${i}-slide-right-leave-active${t}-placement-rightBottom`]:{animationName:WN},[`&${i}-slide-left-leave${i}-slide-left-leave-active${t}-placement-left,
&${i}-slide-left-leave${i}-slide-left-leave-active${t}-placement-leftTop,
&${i}-slide-left-leave${i}-slide-left-leave-active${t}-placement-leftBottom`]:{animationName:UN}}},_x(e,b),{[`${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`]:{...Ft(e),[n]:{padding:m,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...Br(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${G(u)} ${G(y)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> a, > ${n}-item-label > a`]:{color:"inherit",transition:`all ${c}`,"&: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`]:{display:"flex",margin:0,padding:`${G(u)} ${G(y)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...Br(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${G(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:p,fontStyle:"normal"}}},[`${n}-item-group-list`]:{margin:`0 ${G(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(y).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[No(e,"slide-up"),No(e,"slide-down"),No(e,"slide-left"),No(e,"slide-right"),uf(e,"move-up"),uf(e,"move-down"),Yc(e,"zoom-big")]]},U7=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Om({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Ox(e)}),q7=Tt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,s=Rt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[K7(s),W7(s)]},U7,{resetStyle:!1}),Lm=a.forwardRef((e,t)=>{const{menu:n,arrow:r,prefixCls:o,children:s,trigger:i,disabled:l,dropdownRender:c,popupRender:u,getPopupContainer:d,overlayClassName:m,rootClassName:f,overlayStyle:p,open:y,onOpenChange:b,mouseEnterDelay:x=.15,mouseLeaveDelay:v=.1,autoAdjustOverflow:g=!0,placement:h="",transitionName:$,classNames:C,styles:N,destroyPopupOnHide:S,destroyOnHidden:E}=e,{getPrefixCls:w,direction:R,getPopupContainer:P,className:T,style:M,classNames:z,styles:B}=Pt("dropdown"),F={...e,mouseEnterDelay:x,mouseLeaveDelay:v,autoAdjustOverflow:g},[L,j]=Ot([z,C],[B,N],{props:F}),O={...M,...p,...j.root},A=u||c;yo();const k=a.useMemo(()=>{const Se=w();return $!==void 0?$:h.startsWith("top")?`${Se}-slide-down`:h.startsWith("left")?`${Se}-slide-right`:h.startsWith("right")?`${Se}-slide-left`:`${Se}-slide-up`},[w,h,$]),_=a.useMemo(()=>h?h.includes("Center")?h.slice(0,h.indexOf("Center")):h:R==="rtl"?"bottomRight":"bottomLeft",[h,R]),D=w("dropdown",o),V=on(D),[W,K]=q7(D,V),[,q]=Yn(),Y=a.Children.only(P5(s)?a.createElement("span",null,s):s),ee=$o(t,Bo(Y)),ie=Fn(Y,{className:H(`${D}-trigger`,{[`${D}-rtl`]:R==="rtl"},Y.props.className),disabled:Y.props.disabled??l,ref:ee}),ae=l?[]:i,U=!!(ae!=null&&ae.includes("contextMenu")),[Q,Z]=nn(!1,y),ne=vt(Se=>{b==null||b(Se,{source:"trigger"}),Z(Se)}),oe=H(m,f,W,K,V,T,L.root,{[`${D}-rtl`]:R==="rtl"}),le=s4({arrowPointAtCenter:dt(r)&&r.pointAtCenter,autoAdjustOverflow:g,offset:q.marginXXS,arrowWidth:r?q.sizePopupArrow:0,borderRadius:q.borderRadius}),re=vt(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(b==null||b(!1,{source:"menu"}),Z(!1))}),X=()=>{const Se=Dt(L,["root"]),ue=Dt(j,["root"]);let be;return n!=null&&n.items&&(be=a.createElement(Fi,{...n,classNames:{...Se,subMenu:{...Se}},styles:{...ue,subMenu:{...ue}}})),A&&(be=A(be)),be=a.Children.only(typeof be=="string"?a.createElement("span",null,be):be),a.createElement(B4,{prefixCls:`${D}-menu`,rootClassName:H(K,V),expandIcon:a.createElement("span",{className:`${D}-menu-submenu-arrow`},R==="rtl"?a.createElement(Tc,{className:`${D}-menu-submenu-arrow-icon`}):a.createElement(Nc,{className:`${D}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:re,validator:({mode:Ne})=>{}},be)},[se,ge]=Xc("Dropdown",O.zIndex);let de=a.createElement(p4,{alignPoint:U,...Dt(e,["rootClassName","onOpenChange"]),mouseEnterDelay:x,mouseLeaveDelay:v,visible:Q,builtinPlacements:le,arrow:!!r,overlayClassName:oe,prefixCls:D,getPopupContainer:d||P,transitionName:k,trigger:ae,overlay:X,placement:_,onVisibleChange:ne,overlayStyle:{...O,zIndex:se},autoDestroy:E??S},ie);return se&&(de=a.createElement(xm.Provider,{value:ge},de)),de}),G7=_R(Lm,"align",void 0,"dropdown",e=>e),X7=e=>a.createElement(G7,{...e},a.createElement("span",null));Lm._InternalPanelDoNotUseOrYouWillBeFired=X7;const Y7=["parentNode"],Q7="form_item";function Xl(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function k4(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Y7.includes(n)?`${Q7}_${n}`:n}function A4(e,t,n,r,o,s){let i=r;return s!==void 0?i=s:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}function bv(e){return Xl(e).join("_")}function FC(e,t){const n=t.getFieldInstance(e),r=go(n);if(r)return r;const o=k4(Xl(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function D4(e){const[t]=xx(),n=a.useRef({}),r=a.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:o=>s=>{const i=bv(o);s?n.current[i]=s:delete n.current[i]}},scrollToField:(o,s={})=>{const{focus:i,...l}=s,c=FC(o,r);c&&(H5(c,{scrollMode:"if-needed",block:"nearest",...l}),i&&r.focusField(o))},focusField:o=>{var i,l;const s=r.getFieldInstance(o);bt(s==null?void 0:s.focus)?s.focus():(l=(i=FC(o,r))==null?void 0:i.focus)==null||l.call(i)},getFieldInstance:o=>{const s=bv(o);return n.current[s]}},[e,t]);return[r]}const F4=a.createContext(void 0),J7=F4.Provider,H4=a.createContext(void 0),Z7=H4.Provider;function xv(){return xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xv.apply(this,arguments)}const V4=a.forwardRef((e,t)=>{const{prefixCls:n="rc-checkbox",className:r,style:o,checked:s,disabled:i,defaultChecked:l=!1,type:c="checkbox",title:u,onChange:d,...m}=e,f=a.useRef(null),p=a.useRef(null),[y,b]=nn(l,s);a.useImperativeHandle(t,()=>({focus:g=>{var h;(h=f.current)==null||h.focus(g)},blur:()=>{var g;(g=f.current)==null||g.blur()},input:f.current,nativeElement:p.current}));const x=H(n,r,{[`${n}-checked`]:y,[`${n}-disabled`]:i}),v=g=>{i||("checked"in e||b(g.target.checked),d==null||d({target:{...e,type:c,checked:g.target.checked},stopPropagation(){g.stopPropagation()},preventDefault(){g.preventDefault()},nativeEvent:g.nativeEvent}))};return a.createElement("span",{className:x,title:u,style:o,ref:p},a.createElement("input",xv({},m,{className:`${n}-input`,ref:f,onChange:v,disabled:i,checked:!!y,type:c})))});function W4(e){const t=J.useRef(null),n=()=>{Ct.cancel(t.current),t.current=null};return[()=>{n(),t.current=Ct(()=>{t.current=null})},s=>{t.current&&(s.stopPropagation(),n()),e==null||e(s)}]}const eH=e=>{const{componentCls:t,antCls:n,lineWidth:r,borderRadius:o,borderRadiusLG:s,borderRadiusSM:i,calc:l}=e,c=`${t}-group`,u=`${t}-button-wrapper`,d=`${n}-badge`,m=f=>({[`> ${d}`]:{width:"auto"},[`> ${d} > ${u}`]:{width:"100%"},[`> ${d}:not(:last-child)`]:{marginBlockEnd:l(r).mul(-1).equal()},[`> ${d} > ${u}:not(:last-child)`]:{marginBlockEnd:0},[`> ${d}:first-child > ${u}`]:{borderStartStartRadius:f,borderStartEndRadius:f,borderEndStartRadius:0,borderEndEndRadius:0},[`> ${d}:last-child > ${u}`]:{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:f,borderEndEndRadius:f},[`> ${d}:not(:first-child):not(:last-child) > ${u}`]:{borderRadius:0},[`> ${d}:first-child:last-child > ${u}`]:{borderRadius:f}});return{[c]:{...Ft(e),display:"inline-block",fontSize:0,[`&${c}-rtl`]:{direction:"rtl"},[`&${c}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"},"&-vertical":{display:"flex",flexDirection:"column",rowGap:e.marginXS,[`&:has(> ${u}, > ${d} > ${u})`]:{rowGap:0},[`${t}-wrapper`]:{marginInlineEnd:0},...m(o),[`&${c}-large`]:{...m(s)},[`&${c}-small`]:{...m(i)}}}}},tH=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:o,radioSize:s,motionDurationSlow:i,motionDurationMid:l,motionEaseInOutCirc:c,colorBgContainer:u,colorBorder:d,lineWidth:m,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:y,dotColorDisabled:b,dotSize:x,lineType:v,radioColor:g,radioBgColor:h}=e;return{[`${t}-wrapper`]:{...Ft(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]:{...Ft(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:`calc(${s} * 1px)`,height:`calc(${s} * 1px)`,backgroundColor:u,border:`${G(m)} ${v} ${d}`,borderRadius:"50%",transition:`all ${l}`,flex:"none","&:after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(0)",width:`calc(${x} * 1px)`,height:`calc(${x} * 1px)`,backgroundColor:g,borderRadius:"50%",transformOrigin:"50% 50%",opacity:0,transition:`all ${i} ${c}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:jr(e)},[`&:hover:not(${t}-wrapper-disabled) ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:o,borderColor:"transparent"},[`${t}-checked`]:{backgroundColor:h,borderColor:r,"&::after":{transform:"translate(-50%, -50%)",opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:f,borderColor:d,"&::after":{backgroundColor:b}},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`span${t} + *`]:{paddingInlineStart:y,paddingInlineEnd:y}}}},nH=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:s,colorBorder:i,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:m,controlHeightLG:f,controlHeightSM:p,paddingXS:y,borderRadius:b,borderRadiusSM:x,borderRadiusLG:v,buttonCheckedBg:g,buttonSolidCheckedColor:h,colorTextDisabled:$,colorBgContainerDisabled:C,buttonCheckedBgDisabled:N,buttonCheckedColorDisabled:S,colorPrimary:E,colorPrimaryHover:w,colorPrimaryActive:R,buttonSolidCheckedBg:P,buttonSolidCheckedHoverBg:T,buttonSolidCheckedActiveBg:M,calc:z}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:G(z(n).sub(z(o).mul(2)).equal()),background:d,border:`${G(o)} ${s} ${i}`,borderBlockStartWidth:z(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:["color","background-color","box-shadow"].map(B=>`${B} ${l}`).join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:z(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${G(o)} ${s} ${i}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${r}-group-large &`]:{height:f,fontSize:m,lineHeight:G(z(f).sub(z(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${r}-group-small &`]:{height:p,paddingInline:z(y).sub(o).equal(),paddingBlock:0,lineHeight:G(z(p).sub(z(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${r}-group-vertical > &`]:{marginInlineEnd:0,borderRadius:0,"&:not(:last-child)":{marginBlockEnd:z(o).mul(-1).equal()},"&:first-child":{borderStartStartRadius:b,borderStartEndRadius:b,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b}},[`${r}-group-vertical${r}-group-large > &`]:{"&:first-child":{borderStartStartRadius:v,borderStartEndRadius:v},"&:last-child":{borderEndStartRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v}},[`${r}-group-vertical${r}-group-small > &`]:{"&:first-child":{borderStartStartRadius:x,borderStartEndRadius:x},"&:last-child":{borderEndStartRadius:x,borderEndEndRadius:x},"&:first-child:last-child":{borderRadius:x}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":jr(e),[`${r}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:g,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:w,borderColor:w,"&::before":{backgroundColor:w}},"&:active":{color:R,borderColor:R,"&::before":{backgroundColor:R}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:h,background:P,borderColor:P,"&:hover":{color:h,background:T,borderColor:T},"&:active":{color:h,background:M,borderColor:M}},"&-disabled":{color:$,backgroundColor:C,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:C,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:S,backgroundColor:N,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},rH=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:s,colorText:i,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:m,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:y}=e,b=4,x=s,v=t?x-b*2:x-(b+o)*2;return{radioSize:x,dotSize:v,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:m,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?m:y,radioBgColor:t?l:m}},K4=Tt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${G(n)} ${t}`,s=Rt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[eH(s),tH(s),nH(s)]},rH,{unitless:{radioSize:!0,dotSize:!0}}),oH=(e,t)=>{const n=a.useContext(F4),r=a.useContext(H4),{getPrefixCls:o,direction:s,className:i,style:l,classNames:c,styles:u}=Pt("radio"),d=a.useRef(null),m=Tn(t,d),{isFormItemInput:f}=a.useContext(Hn),p=K=>{var q,Y;(q=e.onChange)==null||q.call(e,K),(Y=n==null?void 0:n.onChange)==null||Y.call(n,K)},{prefixCls:y,className:b,rootClassName:x,children:v,style:g,title:h,classNames:$,styles:C,checked:N,...S}=e,E=o("radio",y),w=((n==null?void 0:n.optionType)||r)==="button",R=w?`${E}-button`:E,P=on(E),[T,M]=K4(E,P),z={...S},B=a.useContext(cr),F="checked"in e;let L=N;n&&(z.name=n.name,z.onChange=p,L=e.value===n.value,z.disabled=z.disabled??n.disabled),(F||n)&&(z.checked=L),z.disabled=z.disabled??B;const j={...e,...z,checked:L},O=Mt(l),A=Mt(g),[k,_]=Ot([c,$],[u,O,C,A],{props:j}),D=H(`${R}-wrapper`,{[`${R}-wrapper-checked`]:L,[`${R}-wrapper-disabled`]:z.disabled,[`${R}-wrapper-rtl`]:s==="rtl",[`${R}-wrapper-in-form-item`]:f,[`${R}-wrapper-block`]:!!(n!=null&&n.block)},i,b,x,k.root,T,M,P),[V,W]=W4(z.onClick);return a.createElement(Sm,{component:"Radio",disabled:z.disabled},a.createElement("label",{className:D,style:_.root,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:h,onClick:V},a.createElement(V4,{...z,className:H(k.icon,{[$m]:!w}),style:_.icon,type:"radio",prefixCls:R,ref:m,onClick:W}),$n(v)?a.createElement("span",{className:H(`${R}-label`,k.label),style:_.label},v):null))},$f=a.forwardRef(oH),sH=a.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=a.useContext(ct),{name:o}=a.useContext(Hn),s=jo(bv(o)),{prefixCls:i,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:m,children:f,size:p,style:y,id:b,optionType:x,name:v=s,defaultValue:g,value:h,block:$=!1,onChange:C,onMouseEnter:N,onMouseLeave:S,onFocus:E,onBlur:w,orientation:R,vertical:P,role:T="radiogroup"}=e,[M,z]=nn(g,h),B=a.useCallback(K=>{const q=M,Y=K.target.value;"value"in e||z(Y),Y!==q&&(C==null||C(K))},[M,z,C]),F=n("radio",i),L=`${F}-group`,j=on(F),[O,A]=K4(F,j);let k=f;u&&u.length>0&&(k=u.map(K=>typeof K=="string"||Rn(K)?a.createElement($f,{key:K.toString(),prefixCls:F,disabled:m,value:K,checked:M===K},K):a.createElement($f,{key:`radio-group-value-options-${K.value}`,prefixCls:F,disabled:K.disabled||m,value:K.value,checked:M===K.value,title:K.title,style:K.style,className:K.className,id:K.id,required:K.required},K.label)));const _=Cn(p),[,D]=Gc(R,P),V=H(L,`${L}-${d}`,{[`${L}-large`]:_==="large",[`${L}-small`]:_==="small",[`${L}-rtl`]:r==="rtl",[`${L}-block`]:$},l,c,O,A,j),W=a.useMemo(()=>({onChange:B,value:M,disabled:m,name:v,optionType:x,block:$}),[B,M,m,v,x,$]);return a.createElement("div",{...Nn(e,{aria:!0,data:!0}),role:T,className:H(V,{[`${F}-group-vertical`]:D}),style:y,onMouseEnter:N,onMouseLeave:S,onFocus:E,onBlur:w,id:b,ref:t},a.createElement(J7,{value:W},k))}),iH=a.memo(sH),aH=(e,t)=>{const{getPrefixCls:n}=a.useContext(ct),{prefixCls:r,...o}=e,s=n("radio",r);return a.createElement(Z7,{value:"button"},a.createElement($f,{prefixCls:s,...o,type:"radio",ref:t}))},lH=a.forwardRef(aH),ou=$f;ou.Button=lH;ou.Group=iH;ou.__ANT_RADIO=!0;function Hi(e){return Rt(e,{inputAffixPadding:e.paddingXXS})}const Vi=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:s,controlHeightLG:i,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:m,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:y,controlOutlineWidth:b,controlOutline:x,colorErrorOutline:v,colorWarningOutline:g,colorBgContainer:h,inputFontSize:$,inputFontSizeLG:C,inputFontSizeSM:N}=e,S=$||n,E=N||S,w=C||l,R=Math.round((t-S*r)/2*10)/10-o,P=Math.round((s-E*r)/2*10)/10-o,T=Math.ceil((i-w*c)/2*10)/10-o;return{paddingBlock:Math.max(R,0),paddingBlockSM:Math.max(P,0),paddingBlockLG:Math.max(T,0),paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:m-o,addonBg:f,activeBorderColor:y,hoverBorderColor:p,activeShadow:`0 0 0 ${b}px ${x}`,errorActiveShadow:`0 0 0 ${b}px ${v}`,warningActiveShadow:`0 0 0 ${b}px ${g}`,hoverBg:h,activeBg:h,inputFontSize:S,inputFontSizeLG:w,inputFontSizeSM:E}},cH=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),su=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...cH(Rt(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),Vx=(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}}),HC=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Vx(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),U4=(e,t)=>({"&-outlined":{...Vx(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...su(e)},...HC(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...HC(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),VC=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),uH=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...VC(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...VC(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...su(e)}}}}),q4="&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)",G4=(e,t)=>({outline:`${G(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:G(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),WC=(e,t)=>({"&, & input, & textarea":{color:t.color},[q4]:G4(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),X4=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[q4]:G4(e,e.activeBorderColor),[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:WC(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${n}-status-warning`]:WC(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},Y4=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(t==null?void 0:t.inputColor)??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),KC=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Y4(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),Q4=(e,t)=>({"&-filled":{...Y4(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...su(e)},...KC(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...KC(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),UC=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),dH=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...UC(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...UC(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:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),J4=(e,t)=>({background:e.colorBgContainer,borderWidth:`${G(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}}),qC=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...J4(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`}}),Z4=(e,t)=>({"&-underlined":{...J4(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"},...qC(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...qC(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),eT=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Wx=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${G(t)} ${G(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Kx=e=>({padding:`${G(e.paddingBlockSM)} ${G(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),km=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${G(e.paddingBlock)} ${G(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...eT(e.colorTextPlaceholder),"&-lg":{...Wx(e),...t.largeStyle},"&-sm":{...Kx(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),fH=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`]:{...Wx(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...Kx(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{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 ${G(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${G(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${G(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${G(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${n}-cascader-picker`]:{margin:`-9px ${G(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}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{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`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...Ls(),[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${t}-affix-wrapper,
& > ${t}-number-affix-wrapper,
& > ${n}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select,
& > ${n}-select-auto-complete ${t},
& > ${n}-cascader-picker ${t},
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${n}-select:first-child,
& > ${n}-select-auto-complete:first-child ${t},
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
& > ${n}-select:last-child,
& > ${n}-cascader-picker:last-child ${t},
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},mH=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:{...Ft(e),...km(e),...U4(e),...Q4(e),...X4(e),...Z4(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},pH=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},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...jr(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${G(e.inputAffixPadding)}`}}}},gH=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:s,colorIconHover:i}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:{...km(e),display:"inline-flex","&-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},"&-password-icon":{display:"inline-flex",color:s,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}},...pH(e)},[`${t}-underlined`]:{borderRadius:0},[c]:{[`${t}-password-icon`]:{color:s,cursor:"not-allowed","&:hover":{color:s}}}}},hH=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...Ft(e),...fH(e),"&-rtl":{direction:"rtl"},"&-wrapper":{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}},...uH(e),...dH(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}}}}}},yH=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},tT=Tt(["Input","Shared"],e=>{const t=Rt(e,Hi(e));return[mH(t),gH(t)]},Vi,{resetFont:!1}),nT=Tt(["Input","Component"],e=>{const t=Rt(e,Hi(e));return[hH(t),yH(t),Qc(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Vi,{resetFont:!1});var rT={};Object.defineProperty(rT,"__esModule",{value:!0});var vH={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"},bH=rT.default=vH;function $v(){return $v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$v.apply(this,arguments)}const xH=(e,t)=>a.createElement(gt,$v({},e,{ref:t,icon:bH})),zo=a.forwardRef(xH),Ux=a.createContext(null),$H=e=>{const{activeTabOffset:t,horizontal:n,rtl:r,indicator:o={}}=e,{size:s,align:i="center"}=o,[l,c]=a.useState(),u=a.useRef(),d=J.useCallback(f=>typeof s=="function"?s(f):typeof s=="number"?s:f,[s]);function m(){Ct.cancel(u.current)}return a.useEffect(()=>{const f={};if(t)if(n){f.width=d(t.width);const p=r?"right":"left";i==="start"&&(f[p]=t[p]),i==="center"&&(f[p]=t[p]+t.width/2,f.transform=r?"translateX(50%)":"translateX(-50%)"),i==="end"&&(f[p]=t[p]+t.width,f.transform="translateX(-100%)")}else f.height=d(t.height),i==="start"&&(f.top=t.top),i==="center"&&(f.top=t.top+t.height/2,f.transform="translateY(-50%)"),i==="end"&&(f.top=t.top+t.height,f.transform="translateY(-100%)");return m(),u.current=Ct(()=>{l&&f&&Object.keys(f).every(y=>{const b=f[y],x=l[y];return typeof b=="number"&&typeof x=="number"?Math.round(b)===Math.round(x):b===x})||c(f)}),m},[JSON.stringify(t),n,r,i,d]),{style:l}},GC={width:0,height:0,left:0,top:0};function SH(e,t,n){return a.useMemo(()=>{var i,l;const r=new Map,o=t.get((i=e[0])==null?void 0:i.key)||GC,s=o.left+o.width;for(let c=0;c<e.length;c+=1){const{key:u}=e[c];let d=t.get(u);d||(d=t.get((l=e[c-1])==null?void 0:l.key)||GC);const m=r.get(u)||{...d};m.right=s-m.left-m.width,r.set(u,m)}return r},[e.map(r=>r.key).join("_"),t,n])}function XC(e,t){const n=a.useRef(e),[,r]=a.useState({});function o(s){const i=typeof s=="function"?s(n.current):s;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,o]}const CH=.1,YC=.01,Id=20,QC=.995**Id;function wH(e,t){const[n,r]=a.useState(),[o,s]=a.useState(0),[i,l]=a.useState(0),[c,u]=a.useState(),d=a.useRef();function m(v){const{screenX:g,screenY:h}=v.touches[0];r({x:g,y:h}),window.clearInterval(d.current)}function f(v){if(!n)return;const{screenX:g,screenY:h}=v.touches[0];r({x:g,y:h});const $=g-n.x,C=h-n.y;t($,C);const N=Date.now();s(N),l(N-o),u({x:$,y:C})}function p(){if(n&&(r(null),u(null),c)){const v=c.x/i,g=c.y/i,h=Math.abs(v),$=Math.abs(g);if(Math.max(h,$)<CH)return;let C=v,N=g;d.current=window.setInterval(()=>{if(Math.abs(C)<YC&&Math.abs(N)<YC){window.clearInterval(d.current);return}C*=QC,N*=QC,t(C*Id,N*Id)},Id)}}const y=a.useRef();function b(v){const{deltaX:g,deltaY:h}=v;let $=0;const C=Math.abs(g),N=Math.abs(h);C===N?$=y.current==="x"?g:h:C>N?($=g,y.current="x"):($=h,y.current="y"),t(-$,-$)&&v.preventDefault()}const x=a.useRef(null);x.current={onTouchStart:m,onTouchMove:f,onTouchEnd:p,onWheel:b},a.useEffect(()=>{function v(C){x.current.onTouchStart(C)}function g(C){x.current.onTouchMove(C)}function h(C){x.current.onTouchEnd(C)}function $(C){x.current.onWheel(C)}return document.addEventListener("touchmove",g,{passive:!1}),document.addEventListener("touchend",h,{passive:!0}),e.current.addEventListener("touchstart",v,{passive:!0}),e.current.addEventListener("wheel",$,{passive:!1}),()=>{document.removeEventListener("touchmove",g),document.removeEventListener("touchend",h)}},[])}function oT(e){const[t,n]=a.useState(0),r=a.useRef(0),o=a.useRef();return o.current=e,pd(()=>{var s;(s=o.current)==null||s.call(o)},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function EH(e){const t=a.useRef([]),[,n]=a.useState({}),r=a.useRef(typeof e=="function"?e():e),o=oT(()=>{let i=r.current;t.current.forEach(l=>{i=l(i)}),t.current=[],r.current=i,n({})});function s(i){t.current.push(i),o()}return[r.current,s]}const JC={width:0,height:0,left:0,top:0,right:0};function IH(e,t,n,r,o,s,{tabs:i,tabPosition:l,rtl:c}){let u,d,m;return["top","bottom"].includes(l)?(u="width",d=c?"right":"left",m=Math.abs(n)):(u="height",d="top",m=-n),a.useMemo(()=>{if(!i.length)return[0,0];const f=i.length;let p=f;for(let b=0;b<f;b+=1){const x=e.get(i[b].key)||JC;if(Math.floor(x[d]+x[u])>Math.floor(m+t)){p=b-1;break}}let y=0;for(let b=f-1;b>=0;b-=1)if((e.get(i[b].key)||JC)[d]<m){y=b+1;break}return y>p?[0,-1]:[y,p]},[e,t,r,o,s,m,l,i.map(f=>f.key).join("_"),c])}function ZC(e){let t;return e instanceof Map?(t={},e.forEach((n,r)=>{t[r]=n})):t=e,JSON.stringify(t)}const PH="TABS_DQ";function sT(e){return String(e).replace(/"/g,PH)}function qx(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}const iT=a.forwardRef((e,t)=>{const{prefixCls:n,editable:r,locale:o,style:s}=e;return!r||r.showAdd===!1?null:a.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:s,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:i=>{r.onEdit("add",{event:i})}},r.addIcon||"+")}),ew=a.forwardRef((e,t)=>{const{position:n,prefixCls:r,extra:o}=e;if(!o)return null;let s,i={};return typeof o=="object"&&!a.isValidElement(o)?i=o:i.right=o,n==="right"&&(s=i.right),n==="left"&&(s=i.left),s?a.createElement("div",{className:`${r}-extra-content`,ref:t},s):null});function Sv(){return Sv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sv.apply(this,arguments)}const NH=a.forwardRef((e,t)=>{const{prefixCls:n,id:r,tabs:o,locale:s,mobile:i,more:l={},style:c,className:u,editable:d,tabBarGutter:m,rtl:f,removeAriaLabel:p,onTabClick:y,getPopupContainer:b,popupClassName:x,popupStyle:v,classNames:g,styles:h}=e,[$,C]=a.useState(!1),[N,S]=a.useState(null),{icon:E="More"}=l,w=`${r}-more-popup`,R=`${n}-dropdown`,P=N!==null?`${w}-${N}`:null,T=s==null?void 0:s.dropdownAriaLabel;function M(A,k){A.preventDefault(),A.stopPropagation(),d.onEdit("remove",{key:k,event:A})}const z=a.createElement(rl,{onClick:({key:A,domEvent:k})=>{y(A,k),C(!1)},prefixCls:`${R}-menu`,id:w,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[N],"aria-label":T!==void 0?T:"expanded dropdown"},o.map(A=>{const{closable:k,disabled:_,closeIcon:D,key:V,label:W}=A,K=qx(k,D,d,_);return a.createElement(ru,{key:V,id:`${w}-${V}`,role:"option","aria-controls":r&&`${r}-panel-${V}`,disabled:_},a.createElement("span",null,W),K&&a.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:H(`${R}-menu-item-remove`,g==null?void 0:g.remove),style:h==null?void 0:h.remove,onClick:q=>{q.stopPropagation(),M(q,V)}},D||d.removeIcon||"×"))}));function B(A){const k=o.filter(V=>!V.disabled);let _=k.findIndex(V=>V.key===N)||0;const D=k.length;for(let V=0;V<D;V+=1){_=(_+A+D)%D;const W=k[_];if(!W.disabled){S(W.key);return}}}function F(A){const{which:k}=A;if(!$){[nt.DOWN,nt.SPACE,nt.ENTER].includes(k)&&(C(!0),A.preventDefault());return}switch(k){case nt.UP:B(-1),A.preventDefault();break;case nt.DOWN:B(1),A.preventDefault();break;case nt.ESC:C(!1);break;case nt.SPACE:case nt.ENTER:N!==null&&y(N,A);break}}a.useEffect(()=>{const A=document.getElementById(P);A!=null&&A.scrollIntoView&&A.scrollIntoView(!1)},[P,N]),a.useEffect(()=>{$||S(null)},[$]);const L={marginInlineStart:m};o.length||(L.visibility="hidden",L.order=1);const j=H(x,{[`${R}-rtl`]:f}),O=i?null:a.createElement(p4,Sv({prefixCls:R,overlay:z,visible:o.length?$:!1,onVisibleChange:C,overlayClassName:j,overlayStyle:v,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},l),a.createElement("button",{type:"button",className:`${n}-nav-more`,style:L,"aria-haspopup":"listbox","aria-controls":w,id:`${r}-more`,"aria-expanded":$,onKeyDown:F},E));return a.createElement("div",{className:H(`${n}-nav-operations`,u),style:c,ref:t},O,a.createElement(iT,{prefixCls:n,locale:s,editable:d}))}),RH=a.memo(NH,(e,t)=>t.tabMoving),TH=e=>{const{prefixCls:t,id:n,active:r,focus:o,tab:{key:s,label:i,disabled:l,closeIcon:c,icon:u},closable:d,renderWrapper:m,removeAriaLabel:f,editable:p,onClick:y,onFocus:b,onBlur:x,onKeyDown:v,onMouseDown:g,onMouseUp:h,styles:$,classNames:C,tabCount:N,currentPosition:S}=e,E=`${t}-tab`,w=qx(d,c,p,l);function R(B){l||y(B)}function P(B){B.preventDefault(),B.stopPropagation(),p.onEdit("remove",{key:s,event:B})}const T=a.useMemo(()=>u&&typeof i=="string"?a.createElement("span",null,i):i,[i,u]),M=a.useRef(null);a.useEffect(()=>{o&&M.current&&M.current.focus()},[o]);const z=a.createElement("div",{key:s,"data-node-key":sT(s),className:H(E,C==null?void 0:C.item,{[`${E}-with-remove`]:w,[`${E}-active`]:r,[`${E}-disabled`]:l,[`${E}-focus`]:o}),style:$==null?void 0:$.item,onClick:R},a.createElement("div",{ref:M,role:"tab","aria-selected":r,id:n&&`${n}-tab-${s}`,className:`${E}-btn`,"aria-controls":n&&`${n}-panel-${s}`,"aria-disabled":l,tabIndex:l?null:r?0:-1,onClick:B=>{B.stopPropagation(),R(B)},onKeyDown:v,onMouseDown:g,onMouseUp:h,onFocus:b,onBlur:x},o&&a.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${S} of ${N}`),u&&a.createElement("span",{className:`${E}-icon`},u),i&&T),w&&a.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:r?0:-1,className:H(`${E}-remove`,C==null?void 0:C.remove),style:$==null?void 0:$.remove,onClick:B=>{B.stopPropagation(),P(B)}},c||p.removeIcon||"×"));return m?m(z):z};function Cv(){return Cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cv.apply(this,arguments)}const MH=(e,t)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:o,offsetLeft:s}=e,{width:i,height:l,left:c,top:u}=e.getBoundingClientRect();return Math.abs(i-n)<1?[i,l,c-t.left,u-t.top]:[n,r,s,o]},oa=e=>{const{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){const{width:r,height:o}=e.current.getBoundingClientRect();if(Math.abs(r-t)<1)return[r,o]}return[t,n]},Wu=(e,t)=>e[t?0:1],tw=a.forwardRef((e,t)=>{const{className:n,style:r,id:o,animated:s,activeKey:i,rtl:l,extra:c,editable:u,locale:d,tabPosition:m,tabBarGutter:f,children:p,onTabClick:y,onTabScroll:b,indicator:x,classNames:v,styles:g}=e,{prefixCls:h,tabs:$}=a.useContext(Ux),C=a.useRef(null),N=a.useRef(null),S=a.useRef(null),E=a.useRef(null),w=a.useRef(null),R=a.useRef(null),P=a.useRef(null),T=m==="top"||m==="bottom",[M,z]=XC(0,($e,_e)=>{T&&b&&b({direction:$e>_e?"left":"right"})}),[B,F]=XC(0,($e,_e)=>{!T&&b&&b({direction:$e>_e?"top":"bottom"})}),[L,j]=a.useState([0,0]),[O,A]=a.useState([0,0]),[k,_]=a.useState([0,0]),[D,V]=a.useState([0,0]),[W,K]=EH(new Map),q=SH($,W,O[0]),Y=Wu(L,T),ee=Wu(O,T),ie=Wu(k,T),ae=Wu(D,T),U=Math.floor(Y)<Math.floor(ee+ie),Q=U?Y-ae:Y-ie,Z=`${h}-nav-operations-hidden`;let ne=0,oe=0;T&&l?(ne=0,oe=Math.max(0,ee-Q)):(ne=Math.min(0,Q-ee),oe=0);function le($e){return $e<ne?ne:$e>oe?oe:$e}const re=a.useRef(null),[X,se]=a.useState();function ge(){se(Date.now())}function de(){re.current&&clearTimeout(re.current)}wH(E,($e,_e)=>{function Ie(Be,te){Be(ye=>le(ye+te))}return U?(T?Ie(z,$e):Ie(F,_e),de(),ge(),!0):!1}),a.useEffect(()=>(de(),X&&(re.current=setTimeout(()=>{se(0)},100)),de),[X]);const[Se,ue]=IH(q,Q,T?M:B,ee,ie,ae,{...e,tabs:$}),be=vt(($e=i)=>{const _e=q.get($e)||{width:0,height:0,left:0,right:0,top:0};if(T){let Ie=M;l?_e.right<M?Ie=_e.right:_e.right+_e.width>M+Q&&(Ie=_e.right+_e.width-Q):_e.left<-M?Ie=-_e.left:_e.left+_e.width>-M+Q&&(Ie=-(_e.left+_e.width-Q)),F(0),z(le(Ie))}else{let Ie=B;_e.top<-B?Ie=-_e.top:_e.top+_e.height>-B+Q&&(Ie=-(_e.top+_e.height-Q)),z(0),F(le(Ie))}}),[Ne,we]=a.useState(),[ze,he]=a.useState(!1),ke=$.filter($e=>!$e.disabled).map($e=>$e.key),Oe=$e=>{const _e=ke.indexOf(Ne||i),Ie=ke.length,Be=(_e+$e+Ie)%Ie,te=ke[Be];we(te)},Ce=($e,_e)=>{const Ie=ke.indexOf($e),Be=$.find(ye=>ye.key===$e);qx(Be==null?void 0:Be.closable,Be==null?void 0:Be.closeIcon,u,Be==null?void 0:Be.disabled)&&(_e.preventDefault(),_e.stopPropagation(),u.onEdit("remove",{key:$e,event:_e}),Ie===ke.length-1?Oe(-1):Oe(1))},Me=($e,_e)=>{he(!0),_e.button===1&&Ce($e,_e)},xe=$e=>{const{code:_e}=$e,Ie=l&&T,Be=ke[0],te=ke[ke.length-1];switch(_e){case"ArrowLeft":{T&&Oe(Ie?1:-1);break}case"ArrowRight":{T&&Oe(Ie?-1:1);break}case"ArrowUp":{$e.preventDefault(),T||Oe(-1);break}case"ArrowDown":{$e.preventDefault(),T||Oe(1);break}case"Home":{$e.preventDefault(),we(Be);break}case"End":{$e.preventDefault(),we(te);break}case"Enter":case"Space":{$e.preventDefault(),y(Ne??i,$e);break}case"Backspace":case"Delete":{Ce(Ne,$e);break}}},Ee={};T?Ee.marginInlineStart=f:Ee.marginTop=f;const Ve=$.map(($e,_e)=>{const{key:Ie}=$e;return a.createElement(TH,{id:o,prefixCls:h,key:Ie,tab:$e,classNames:{item:v==null?void 0:v.item,remove:v==null?void 0:v.remove},styles:{item:_e===0?g==null?void 0:g.item:{...Ee,...g==null?void 0:g.item},remove:g==null?void 0:g.remove},closable:$e.closable,editable:u,active:Ie===i,focus:Ie===Ne,renderWrapper:p,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:ke.length,currentPosition:_e+1,onClick:Be=>{y(Ie,Be)},onKeyDown:xe,onFocus:()=>{ze||we(Ie),be(Ie),ge(),E.current&&(l||(E.current.scrollLeft=0),E.current.scrollTop=0)},onBlur:()=>{we(void 0)},onMouseDown:Be=>Me(Ie,Be),onMouseUp:()=>{he(!1)}})}),qe=()=>K(()=>{var Ie;const $e=new Map,_e=(Ie=w.current)==null?void 0:Ie.getBoundingClientRect();return $.forEach(({key:Be})=>{var ye;const te=(ye=w.current)==null?void 0:ye.querySelector(`[data-node-key="${sT(Be)}"]`);if(te){const[Ae,Je,St,ht]=MH(te,_e);$e.set(Be,{width:Ae,height:Je,left:St,top:ht})}}),$e});a.useEffect(()=>{qe()},[$.map($e=>$e.key).join("_")]);const me=oT(()=>{const $e=oa(C),_e=oa(N),Ie=oa(S);j([$e[0]-_e[0]-Ie[0],$e[1]-_e[1]-Ie[1]]);const Be=oa(P);_(Be);const te=oa(R);V(te);const ye=oa(w);A([ye[0]-Be[0],ye[1]-Be[1]]),qe()}),Re=$.slice(0,Se),Te=$.slice(ue+1),Ue=[...Re,...Te],Ge=q.get(i),{style:Fe}=$H({activeTabOffset:Ge,horizontal:T,indicator:x,rtl:l});a.useEffect(()=>{be()},[i,ne,oe,ZC(Ge),ZC(q),T]),a.useEffect(()=>{me()},[l]);const et=!!Ue.length,ve=`${h}-nav-wrap`;let je,ce,Pe,pe;return T?l?(ce=M>0,je=M!==oe):(je=M<0,ce=M!==ne):(Pe=B<0,pe=B!==ne),a.createElement(ir,{onResize:me},a.createElement("div",{ref:$o(t,C),role:"tablist","aria-orientation":T?"horizontal":"vertical",className:H(`${h}-nav`,n,v==null?void 0:v.header),style:{...g==null?void 0:g.header,...r},onKeyDown:()=>{ge()}},a.createElement(ew,{ref:N,position:"left",extra:c,prefixCls:h}),a.createElement(ir,{onResize:me},a.createElement("div",{className:H(ve,{[`${ve}-ping-left`]:je,[`${ve}-ping-right`]:ce,[`${ve}-ping-top`]:Pe,[`${ve}-ping-bottom`]:pe}),ref:E},a.createElement(ir,{onResize:me},a.createElement("div",{ref:w,className:`${h}-nav-list`,style:{transform:`translate(${M}px, ${B}px)`,transition:X?"none":void 0}},Ve,a.createElement(iT,{ref:P,prefixCls:h,locale:d,editable:u,style:{...Ve.length===0?void 0:Ee,visibility:et?"hidden":null}}),a.createElement("div",{className:H(`${h}-ink-bar`,v==null?void 0:v.indicator,{[`${h}-ink-bar-animated`]:s.inkBar}),style:{...Fe,...g==null?void 0:g.indicator}}))))),a.createElement(RH,Cv({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:R,prefixCls:h,tabs:Ue,className:!et&&Z,popupStyle:g==null?void 0:g.popup,tabMoving:!!X})),a.createElement(ew,{ref:S,position:"right",extra:c,prefixCls:h})))}),OH=({renderTabBar:e,...t})=>e?e(t,tw):a.createElement(tw,t),_H=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,id:s,active:i,tabKey:l,children:c}=e,u=a.Children.count(c)>0;return a.createElement("div",{id:s&&`${s}-panel-${l}`,role:"tabpanel",tabIndex:i&&u?0:-1,"aria-labelledby":s&&`${s}-tab-${l}`,"aria-hidden":!i,style:o,className:H(n,i&&`${n}-active`,r),ref:t},c)});function Sf(){return Sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sf.apply(this,arguments)}const zH=e=>{const{id:t,activeKey:n,animated:r,tabPosition:o,destroyOnHidden:s,bodyStyle:i,bodyClassName:l,contentStyle:c,contentClassName:u}=e,{prefixCls:d,tabs:m}=a.useContext(Ux),f=r.tabPane,p=`${d}-body`,y=`${d}-content`;return a.createElement("div",{className:H(`${p}-holder`)},a.createElement("div",{className:H(p,`${p}-${o}`,{[`${p}-animated`]:f},l),style:i},m.map(b=>{const{key:x,forceRender:v,style:g,className:h,destroyOnHidden:$,...C}=b,N=x===n;return a.createElement(fr,Sf({key:x,visible:N,forceRender:v,removeOnLeave:!!(s??$),leavedClassName:`${y}-hidden`},r.tabPaneMotion),({style:S,className:E},w)=>a.createElement(_H,Sf({},C,{prefixCls:y,id:t,tabKey:x,animated:f,active:N,style:{...c,...g,...S},className:H(u,h,E),ref:w})))})))};function jH(e={inkBar:!0,tabPane:!1}){let t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t={inkBar:!0,...typeof e=="object"?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function Yl(){return Yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yl.apply(this,arguments)}let nw=0;const BH=a.forwardRef((e,t)=>{var q;const{id:n,prefixCls:r="rc-tabs",className:o,items:s,direction:i,activeKey:l,defaultActiveKey:c,editable:u,animated:d,tabPosition:m="top",tabBarGutter:f,tabBarStyle:p,tabBarExtraContent:y,locale:b,more:x,destroyOnHidden:v,renderTabBar:g,onChange:h,onTabClick:$,onTabScroll:C,getPopupContainer:N,popupClassName:S,indicator:E,classNames:w,styles:R,...P}=e,T=a.useMemo(()=>(s||[]).filter(Y=>Y&&typeof Y=="object"&&"key"in Y),[s]),M=i==="rtl",z=jH(d),[B,F]=a.useState(!1);a.useEffect(()=>{F(DO())},[]);const[L,j]=nn(c??((q=T[0])==null?void 0:q.key),l),[O,A]=a.useState(()=>T.findIndex(Y=>Y.key===L));a.useEffect(()=>{var ee;let Y=T.findIndex(ie=>ie.key===L);Y===-1&&(Y=Math.max(0,Math.min(O,T.length-1)),j((ee=T[Y])==null?void 0:ee.key)),A(Y)},[T.map(Y=>Y.key).join("_"),L,O]);const[k,_]=nn(null,n);a.useEffect(()=>{n||(_(`rc-tabs-${nw}`),nw+=1)},[]);function D(Y,ee){$==null||$(Y,ee);const ie=Y!==L;j(Y),ie&&(h==null||h(Y))}const V={id:k,activeKey:L,animated:z,tabPosition:m,rtl:M,mobile:B},W={...V,editable:u,locale:b,more:x,tabBarGutter:f,onTabClick:D,onTabScroll:C,extra:y,style:p,getPopupContainer:N,popupClassName:H(S,w==null?void 0:w.popup),indicator:E,styles:R,classNames:w},K=a.useMemo(()=>({tabs:T,prefixCls:r}),[T,r]);return a.createElement(Ux.Provider,{value:K},a.createElement("div",Yl({ref:t,id:n,className:H(r,`${r}-${m}`,{[`${r}-mobile`]:B,[`${r}-editable`]:u,[`${r}-rtl`]:M},o)},P),a.createElement(OH,Yl({},W,{renderTabBar:g})),a.createElement(zH,Yl({destroyOnHidden:v},V,{bodyStyle:R==null?void 0:R.body,bodyClassName:w==null?void 0:w.body,contentStyle:R==null?void 0:R.content,contentClassName:w==null?void 0:w.content,animated:z}))))}),LH={motionAppear:!1,motionEnter:!0,motionLeave:!0};function kH(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n={inkBar:!0,...dt(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...LH,motionName:ks(e,"switch")}),n}function AH(e){return e.filter(t=>t)}function DH(e,t){if(e)return e.map(r=>({...r,destroyOnHidden:r.destroyOnHidden??r.destroyInactiveTabPane}));const n=zn(t).map(r=>{if(a.isValidElement(r)){const{key:o,props:s}=r,{tab:i,...l}=s||{};return{key:String(o),...l,label:i}}return null});return AH(n)}const FH=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}`}}}}},[No(e,"slide-up"),No(e,"slide-down")]]},HH=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:s,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${G(e.lineWidth)} ${e.lineType} ${s}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:jr(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:G(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:G(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${G(e.borderRadiusLG)} 0 0 ${G(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 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},VH=e=>{const{antCls:t,componentCls:n,itemHoverColor:r,dropdownEdgeChildVerticalPadding:o}=e;return{[`${n}-dropdown`]:{...Ft(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomLeft,
&${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomLeft,
&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottom,
&${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottom,
&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomRight,
&${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Em},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft,
&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-top,
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-top,
&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topRight,
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Pm},[`&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomLeft,
&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottom,
&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:Im},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft,
&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-top,
&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Nm},[`${n}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${G(o)} 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":{...ar,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${G(e.paddingXXS)} ${G(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:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},WH=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:s,verticalItemMargin:i,motionDurationSlow:l,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${G(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(u=>`${u} ${l}`).join(", ")}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:s,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${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","top"].map(u=>`${u} ${l}`).join(", ")}},[`${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}-body-holder, > div > ${t}-body-holder`]:{marginLeft:{_skip_check_:!0,value:G(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{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}-body-holder, > div > ${t}-body-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},KH=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:s,horizontalItemPaddingSM:i,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${G(e.borderRadius)} ${G(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${G(e.borderRadius)} ${G(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${G(e.borderRadius)} ${G(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${G(e.borderRadius)} 0 0 ${G(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:s,minHeight:s}}}}}},UH=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:s,horizontalItemPadding:i,itemSelectedColor:l,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{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},...Br(e)},"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:l},[`&${u}-focus ${u}-btn:focus-visible`]:jr(e),[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:s}}}},qH=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:s}=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:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:s(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-body-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-body-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:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},GH=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:s,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:{...Ft(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`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${G(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:s},"&:active, &:focus:not(:focus-visible)":{color:i},...Br(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...UH(e),[`${t}-body`]:{position:"relative",width:"100%"},[`${t}-body-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-content`]:{...Br(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"}}}}}},XH=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:s}=e,i=t||s,l=n||o,c=r||s+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:i,cardHeightSM:l,cardHeightLG:c,cardPadding:`${(i-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-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}},YH=Tt("Tabs",e=>{const t=Rt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${G(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${G(e.horizontalItemGutter)}`});return[KH(t),qH(t),WH(t),VH(t),HH(t),GH(t),FH(t)]},XH),QH=()=>null,JH=a.forwardRef((e,t)=>{var le,re,X,se;const{type:n,className:r,rootClassName:o,size:s,onEdit:i,hideAdd:l,centered:c,addIcon:u,removeIcon:d,moreIcon:m,more:f,popupClassName:p,children:y,items:b,animated:x,style:v,indicatorSize:g,indicator:h,classNames:$,styles:C,destroyInactiveTabPane:N,destroyOnHidden:S,tabPlacement:E,tabPosition:w,...R}=e,{prefixCls:P}=R,{getPrefixCls:T,direction:M,getPopupContainer:z,className:B,style:F,classNames:L,styles:j}=Pt("tabs"),{tabs:O}=a.useContext(ct),A=T("tabs",P),k=on(A),[_,D]=YH(A,k),V=a.useRef(null);a.useImperativeHandle(t,()=>({nativeElement:V.current}));let W;n==="editable-card"&&(W={onEdit:(ge,{key:de,event:Se})=>{i==null||i(ge==="add"?Se:de,ge)},removeIcon:d??(O==null?void 0:O.removeIcon)??a.createElement(Us,null),addIcon:(u??(O==null?void 0:O.addIcon))||a.createElement(zo,null),showAdd:l!==!0});const K=T(),q=Cn(s),Y=DH(b,y),ee=kH(A,x),ie={align:(h==null?void 0:h.align)??((le=O==null?void 0:O.indicator)==null?void 0:le.align),size:(h==null?void 0:h.size)??g??((re=O==null?void 0:O.indicator)==null?void 0:re.size)??(O==null?void 0:O.indicatorSize)},ae=a.useMemo(()=>{const ge=E??w??void 0,de=M==="rtl";switch(ge){case"start":return de?"right":"left";case"end":return de?"left":"right";default:return ge}},[E,w,M]),U={...e,size:q,tabPlacement:ae,items:Y},Q=Mt(F),Z=Mt(v),[ne,oe]=Ot([L,$],[j,Q,C,Z],{props:U},{popup:{_default:"root"}});return a.createElement(BH,{ref:V,direction:M,getPopupContainer:z,...R,items:Y,className:H({[`${A}-large`]:q==="large",[`${A}-small`]:q==="small",[`${A}-card`]:["card","editable-card"].includes(n),[`${A}-editable-card`]:n==="editable-card",[`${A}-centered`]:c},B,r,o,ne.root,_,D,k),classNames:{...ne,popup:H(p,_,D,k,(X=ne.popup)==null?void 0:X.root)},styles:oe,style:oe.root,editable:W,more:{icon:((se=O==null?void 0:O.more)==null?void 0:se.icon)??(O==null?void 0:O.moreIcon)??m??a.createElement(Bm,null),transitionName:`${K}-slide-up`,...f},prefixCls:A,animated:ee,indicator:ie,destroyOnHidden:S??N,tabPosition:ae})}),aT=JH;aT.TabPane=QH;const lT=({prefixCls:e,className:t,hoverable:n=!0,...r})=>{const{getPrefixCls:o}=a.useContext(ct),s=o("card",e),i=H(`${s}-grid`,t,{[`${s}-grid-hoverable`]:n});return a.createElement("div",{...r,className:i})},ZH=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:s}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${G(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`,...Ls(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...ar,[`
> ${n}-typography,
> ${n}-typography-edit-content
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:s,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},e9=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
${G(o)} 0 0 0 ${n},
0 ${G(o)} 0 0 ${n},
${G(o)} ${G(o)} 0 0 ${n},
${G(o)} 0 0 0 ${n} inset,
0 ${G(o)} 0 0 ${n} inset;
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},t9=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:s,actionsBg:i}=e;return{margin:0,padding:0,listStyle:"none",background:i,borderTop:`${G(e.lineWidth)} ${e.lineType} ${s}`,display:"flex",borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`,...Ls(),"& > 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:G(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:G(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${G(e.lineWidth)} ${e.lineType} ${s}`}}}},n9=e=>({margin:`${G(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...Ls(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...ar},"&-description":{color:e.colorTextDescription}}),r9=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${G(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${G(e.padding)} ${G(o)}`}}},o9=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},s9=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:s,bodyPadding:i,extraColor:l,motionDurationMid:c}=e;return{[t]:{...Ft(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:s},[`${t}-head`]:ZH(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:i,borderRadius:`0 0 ${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:e9(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:t9(e),[`${t}-meta`]:n9(e)},[`${t}-bordered`]:{border:`${G(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(u=>`${u} ${c}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${G(e.borderRadiusLG)} ${G(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius: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`]:r9(e),[`${t}-loading`]:o9(e),[`${t}-rtl`]:{direction:"rtl"}}},i9=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:s}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${G(r)}`,fontSize:s,[`> ${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"}}}}},a9=e=>({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:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG}),l9=Tt("Card",e=>{const t=Rt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[s9(t),i9(t)]},a9),c9=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return a.createElement("ul",{className:t,style:r},n.map((o,s)=>{const i=`action-${s}`;return a.createElement("li",{style:{width:`${100/n.length}%`},key:i},a.createElement("span",null,o))}))},u9=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:s,extra:i,headStyle:l={},bodyStyle:c={},title:u,loading:d,bordered:m,variant:f,size:p,type:y,cover:b,actions:x,tabList:v,children:g,activeTabKey:h,defaultActiveTabKey:$,tabBarExtraContent:C,hoverable:N,tabProps:S={},classNames:E,styles:w,...R}=e,{getPrefixCls:P,direction:T,className:M,style:z,classNames:B,styles:F}=Pt("card"),[L]=tl("card",f,m),j=Cn(p),O={...e,size:j,variant:L},A=Mt(z),k=Mt(s),[_,D]=Ot([B,E],[F,A,w,k],{props:O}),V=Ne=>{var we;(we=e.onTabChange)==null||we.call(e,Ne)},W=a.useMemo(()=>zn(g),[g]),K=a.useMemo(()=>W.some(Ne=>a.isValidElement(Ne)&&Ne.type===lT),[W]),q=P("card",n),[Y,ee]=l9(q),ie=a.createElement(Ai,{loading:!0,active:!0,paragraph:{rows:4},title:!1},g),ae=h!==void 0,U={...S,[ae?"activeKey":"defaultActiveKey"]:ae?h:$,tabBarExtraContent:C};let Q;const Z=j!=="small"?"large":j,ne=v?a.createElement(aT,{size:Z,...U,className:`${q}-head-tabs`,onChange:V,items:v.map(({tab:Ne,...we})=>({label:Ne,...we}))}):null;if(u||i||ne){const Ne=H(`${q}-head`,_.header),we=H(`${q}-head-title`,_.title),ze=H(`${q}-extra`,_.extra),he={...l,...D.header};Q=a.createElement("div",{className:Ne,style:he},a.createElement("div",{className:`${q}-head-wrapper`},u&&a.createElement("div",{className:we,style:D.title},u),i&&a.createElement("div",{className:ze,style:D.extra},i)),ne)}const oe=H(`${q}-cover`,_.cover),le=b?a.createElement("div",{className:oe,style:D.cover},b):null,re=H(`${q}-body`,_.body),X={...c,...D.body},se=d||W.length?a.createElement("div",{className:re,style:X},d?ie:g):null,ge=H(`${q}-actions`,_.actions),de=x!=null&&x.length?a.createElement(c9,{actionClasses:ge,actionStyle:D.actions,actions:x}):null,Se=Dt(R,["onTabChange"]),ue=H(q,M,{[`${q}-loading`]:d,[`${q}-bordered`]:L!=="borderless",[`${q}-hoverable`]:N,[`${q}-contain-grid`]:K,[`${q}-contain-tabs`]:v==null?void 0:v.length,[`${q}-small`]:j==="small",[`${q}-type-${y}`]:!!y,[`${q}-rtl`]:T==="rtl"},r,o,Y,ee,_.root),be={...D.root};return a.createElement("div",{ref:t,...Se,className:ue,style:be},Q,le,se,de)}),d9=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:s,style:i,classNames:l,styles:c,...u}=e,{getPrefixCls:d,className:m,style:f,classNames:p,styles:y}=Pt("cardMeta"),x=`${d("card",t)}-meta`,v=Mt(f),g=Mt(i),[h,$]=Ot([p,l],[y,v,c,g],{props:e}),C=H(x,n,m,h.root),N={...$.root},S=H(`${x}-avatar`,h.avatar),E=H(`${x}-title`,h.title),w=H(`${x}-description`,h.description),R=H(`${x}-section`,h.section),P=r?a.createElement("div",{className:S,style:$.avatar},r):null,T=o?a.createElement("div",{className:E,style:$.title},o):null,M=s?a.createElement("div",{className:w,style:$.description},s):null,z=T||M?a.createElement("div",{className:R,style:$.section},T,M):null;return a.createElement("div",{...u,className:C,style:N},P,z)},tr=u9;tr.Grid=lT;tr.Meta=d9;function f9(e,t,n){var r=n||{},o=r.noTrailing,s=o===void 0?!1:o,i=r.noLeading,l=i===void 0?!1:i,c=r.debounceMode,u=c===void 0?void 0:c,d,m=!1,f=0;function p(){d&&clearTimeout(d)}function y(x){var v=x||{},g=v.upcomingOnly,h=g===void 0?!1:g;p(),m=!h}function b(){for(var x=arguments.length,v=new Array(x),g=0;g<x;g++)v[g]=arguments[g];var h=this,$=Date.now()-f;if(m)return;function C(){f=Date.now(),t.apply(h,v)}function N(){d=void 0}!l&&u&&!d&&C(),p(),u===void 0&&$>e?l?(f=Date.now(),s||(d=setTimeout(u?N:C,e))):C():s!==!0&&(d=setTimeout(u?N:C,u===void 0?e-$:e))}return b.cancel=y,b}function m9(e,t,n){var r={},o=r.atBegin,s=o===void 0?!1:o;return f9(e,t,{debounceMode:s!==!1})}const Gx=a.createContext(null),p9=a.createContext({}),g9=e=>{const{dropPosition:t,dropLevelOffset:n,indent:r}=e,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r;break}return J.createElement("div",{style:o})},h9=({prefixCls:e,level:t,isStart:n,isEnd:r})=>{const o=`${e}-indent-unit`,s=[];for(let i=0;i<t;i+=1)s.push(a.createElement("span",{key:i,className:H(o,{[`${o}-start`]:n[i],[`${o}-end`]:r[i]})}));return a.createElement("span",{"aria-hidden":"true",className:`${e}-indent`},s)},y9=a.memo(h9);function or(e,t){return e[t]}function cT(e,t){return`${e}-${t}`}function v9(e){return e&&e.type&&e.type.isTreeNode}function iu(e,t){return e??t}function Xa(e){const{title:t,_title:n,key:r,children:o}=e||{},s=t||"title";return{title:s,_title:n||[s],key:r||"key",children:o||"children"}}function uT(e){function t(n){return zn(n).map(o=>{if(!v9(o))return fn(!o,"Tree/TreeNode can only accept TreeNode as children."),null;const{key:s}=o,{children:i,...l}=o.props,c={key:s,...l},u=t(i);return u.length&&(c.children=u),c}).filter(o=>o)}return t(e)}function dg(e,t,n){const{_title:r,key:o,children:s}=Xa(n),i=new Set(t===!0?[]:t),l=[];function c(u,d=null){return u.map((m,f)=>{const p=cT(d?d.pos:"0",f),y=iu(m[o],p);let b;for(let v=0;v<r.length;v+=1){const g=r[v];if(m[g]!==void 0){b=m[g];break}}const x=Object.assign(Dt(m,[...r,o,s]),{title:b,key:y,parent:d,pos:p,children:null,data:m,isStart:[...d?d.isStart:[],f===0],isEnd:[...d?d.isEnd:[],f===u.length-1]});return l.push(x),t===!0||i.has(y)?x.children=c(m[s]||[],x):x.children=[],x})}return c(e),l}function b9(e,t,n){let r={};typeof n=="object"?r=n:r={externalGetKey:n},r=r||{};const{childrenPropName:o,externalGetKey:s,fieldNames:i}=r,{key:l,children:c}=Xa(i),u=o||c;let d;s?typeof s=="string"?d=f=>f[s]:typeof s=="function"&&(d=f=>s(f)):d=(f,p)=>iu(f[l],p);function m(f,p,y,b){const x=f?f[u]:e,v=f?cT(y.pos,p):"0",g=f?[...b,f]:[];if(f){const h=d(f,v),$={node:f,index:p,pos:v,key:h,parentPos:y.node?y.pos:null,level:y.level+1,nodes:g};t($)}x&&x.forEach((h,$)=>{m(h,$,{node:f,pos:v,level:y?y.level+1:-1},g)})}m(null)}function Xx(e,{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:o,childrenPropName:s,fieldNames:i}={},l){const c=o||l,u={},d={};let m={posEntities:u,keyEntities:d};return t&&(m=t(m)||m),b9(e,f=>{const{node:p,index:y,pos:b,key:x,parentPos:v,level:g,nodes:h}=f,$={node:p,nodes:h,index:y,key:x,pos:b,level:g},C=iu(x,b);u[b]=$,d[C]=$,$.parent=u[v],$.parent&&($.parent.children=$.parent.children||[],$.parent.children.push($)),n&&n($,m)},{externalGetKey:c,childrenPropName:s,fieldNames:i}),r&&r(m),m}function dT(e,t,n,r){return e===!1?!1:e||!t&&!n||t&&r&&!n}function Ql(e,{expandedKeys:t,selectedKeys:n,loadedKeys:r,loadingKeys:o,checkedKeys:s,halfCheckedKeys:i,dragOverNodeKey:l,dropPosition:c,keyEntities:u}){const d=or(u,e);return{eventKey:e,expanded:t.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:r.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:s.indexOf(e)!==-1,halfChecked:i.indexOf(e)!==-1,pos:String(d?d.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1}}function wn(e){const{data:t,expanded:n,selected:r,checked:o,loaded:s,loading:i,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:m,active:f,eventKey:p}=e,y={...t,expanded:n,selected:r,checked:o,loaded:s,loading:i,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:m,active:f,key:p};return"props"in y||Object.defineProperty(y,"props",{get(){return fn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),y}function wv(){return wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wv.apply(this,arguments)}const rw="open",ow="close",x9="---",zc=e=>{var we,ze;const{eventKey:t,className:n,style:r,dragOver:o,dragOverGapTop:s,dragOverGapBottom:i,isLeaf:l,isStart:c,isEnd:u,expanded:d,selected:m,checked:f,halfChecked:p,loading:y,domRef:b,active:x,data:v,onMouseMove:g,selectable:h,treeId:$,...C}=e,N=jI($,t),S=J.useContext(Gx),{classNames:E,styles:w}=S||{},R=J.useContext(p9),P=J.useRef(null),[T,M]=J.useState(!1),z=!!(S.disabled||e.disabled||(we=R.nodeDisabled)!=null&&we.call(R,v)),B=J.useMemo(()=>!S.checkable||e.checkable===!1?!1:S.checkable,[S.checkable,e.checkable]),F=he=>{z||S.onNodeSelect(he,wn(e))},L=he=>{z||!B||e.disableCheckbox||S.onNodeCheck(he,wn(e),!f)},j=J.useMemo(()=>typeof h=="boolean"?h:S.selectable,[h,S.selectable]),O=he=>{S.onNodeClick(he,wn(e)),j?F(he):L(he)},A=he=>{S.onNodeDoubleClick(he,wn(e))},k=he=>{S.onNodeMouseEnter(he,wn(e))},_=he=>{S.onNodeMouseLeave(he,wn(e))},D=he=>{S.onNodeContextMenu(he,wn(e))},V=J.useMemo(()=>!!(S.draggable&&(!S.draggable.nodeDraggable||S.draggable.nodeDraggable(v))),[S.draggable,v]),W=he=>{he.stopPropagation(),M(!0),S.onNodeDragStart(he,e);try{he.dataTransfer.setData("text/plain","")}catch{}},K=he=>{he.preventDefault(),he.stopPropagation(),S.onNodeDragEnter(he,e)},q=he=>{he.preventDefault(),he.stopPropagation(),S.onNodeDragOver(he,e)},Y=he=>{he.stopPropagation(),S.onNodeDragLeave(he,e)},ee=he=>{he.stopPropagation(),M(!1),S.onNodeDragEnd(he,e)},ie=he=>{he.preventDefault(),he.stopPropagation(),M(!1),S.onNodeDrop(he,e)},ae=he=>{y||S.onNodeExpand(he,wn(e))},U=J.useMemo(()=>{const{children:he}=or(S.keyEntities,t)||{};return!!(he||[]).length},[S.keyEntities,t]),Q=J.useMemo(()=>dT(l,S.loadData,U,e.loaded),[l,S.loadData,U,e.loaded]);J.useEffect(()=>{y||typeof S.loadData=="function"&&d&&!Q&&!e.loaded&&S.onNodeLoad(wn(e))},[y,S.loadData,S.onNodeLoad,d,Q,e]);const Z=J.useMemo(()=>{var he;return(he=S.draggable)!=null&&he.icon?J.createElement("span",{className:`${S.prefixCls}-draggable-icon`},S.draggable.icon):null},[S.draggable]),ne=he=>{const ke=e.switcherIcon||S.switcherIcon;return typeof ke=="function"?ke({...e,isLeaf:he}):ke},oe=()=>{if(Q){const ke=ne(!0);return ke!==!1?J.createElement("span",{className:H(`${S.prefixCls}-switcher`,`${S.prefixCls}-switcher-noop`,E==null?void 0:E.itemSwitcher),style:w==null?void 0:w.itemSwitcher},ke):null}const he=ne(!1);return he!==!1?J.createElement("span",{onClick:ae,className:H(`${S.prefixCls}-switcher`,`${S.prefixCls}-switcher_${d?rw:ow}`,E==null?void 0:E.itemSwitcher),style:w==null?void 0:w.itemSwitcher},he):null},le=J.useMemo(()=>{if(!B)return null;const he=typeof B!="boolean"?B:null;return J.createElement("span",{className:H(`${S.prefixCls}-checkbox`,{[`${S.prefixCls}-checkbox-checked`]:f,[`${S.prefixCls}-checkbox-indeterminate`]:!f&&p,[`${S.prefixCls}-checkbox-disabled`]:z||e.disableCheckbox}),onClick:L,role:"checkbox","aria-checked":p?"mixed":f,"aria-disabled":z||e.disableCheckbox,"aria-labelledby":N},he)},[B,f,p,z,e.disableCheckbox,N]),re=J.useMemo(()=>Q?null:d?rw:ow,[Q,d]),X=J.useMemo(()=>J.createElement("span",{className:H(E==null?void 0:E.itemIcon,`${S.prefixCls}-iconEle`,`${S.prefixCls}-icon__${re||"docu"}`,{[`${S.prefixCls}-icon_loading`]:y}),style:w==null?void 0:w.itemIcon}),[S.prefixCls,re,y]),se=J.useMemo(()=>{const he=!!S.draggable;return!e.disabled&&he&&S.dragOverNodeKey===t?S.dropIndicatorRender({dropPosition:S.dropPosition,dropLevelOffset:S.dropLevelOffset,indent:S.indent,prefixCls:S.prefixCls,direction:S.direction}):null},[S.dropPosition,S.dropLevelOffset,S.indent,S.prefixCls,S.direction,S.draggable,S.dragOverNodeKey,S.dropIndicatorRender]),ge=J.useMemo(()=>{const{title:he=x9}=e,ke=`${S.prefixCls}-node-content-wrapper`;let Oe;if(S.showIcon){const Me=e.icon||S.icon;Oe=Me?J.createElement("span",{className:H(E==null?void 0:E.itemIcon,`${S.prefixCls}-iconEle`,`${S.prefixCls}-icon__customize`),style:w==null?void 0:w.itemIcon},typeof Me=="function"?Me(e):Me):X}else S.loadData&&y&&(Oe=X);let Ce;return typeof he=="function"?Ce=he(v):S.titleRender?Ce=S.titleRender(v):Ce=he,J.createElement("span",{ref:P,title:typeof he=="string"?he:"",className:H(ke,`${ke}-${re||"normal"}`,{[`${S.prefixCls}-node-selected`]:!z&&(m||T)}),onMouseEnter:k,onMouseLeave:_,onContextMenu:D,onClick:O,onDoubleClick:A},Oe,J.createElement("span",{className:H(`${S.prefixCls}-title`,E==null?void 0:E.itemTitle),style:w==null?void 0:w.itemTitle},Ce),se)},[S.prefixCls,S.showIcon,e,S.icon,X,S.titleRender,v,re,k,_,D,O,A]),de=Nn(C,{aria:!0,data:!0}),{level:Se}=or(S.keyEntities,t)||{},ue=u[u.length-1],be=!z&&V,Ne=S.draggingNodeKey===t;return J.createElement("div",wv({ref:b,role:"treeitem",id:N,"aria-expanded":Q?void 0:d,"aria-selected":j&&!z?m:void 0,"aria-checked":B&&!z?p?"mixed":f:void 0,"aria-disabled":z,className:H(n,`${S.prefixCls}-treenode`,E==null?void 0:E.item,{[`${S.prefixCls}-treenode-disabled`]:z,[`${S.prefixCls}-treenode-switcher-${d?"open":"close"}`]:!l,[`${S.prefixCls}-treenode-checkbox-checked`]:f,[`${S.prefixCls}-treenode-checkbox-indeterminate`]:p,[`${S.prefixCls}-treenode-selected`]:m,[`${S.prefixCls}-treenode-loading`]:y,[`${S.prefixCls}-treenode-active`]:x,[`${S.prefixCls}-treenode-leaf-last`]:ue,[`${S.prefixCls}-treenode-draggable`]:V,dragging:Ne,"drop-target":S.dropTargetKey===t,"drop-container":S.dropContainerKey===t,"drag-over":!z&&o,"drag-over-gap-top":!z&&s,"drag-over-gap-bottom":!z&&i,"filter-node":(ze=S.filterTreeNode)==null?void 0:ze.call(S,wn(e)),[`${S.prefixCls}-treenode-leaf`]:Q}),style:{...r,...w==null?void 0:w.item},draggable:be,onDragStart:be?W:void 0,onDragEnter:V?K:void 0,onDragOver:V?q:void 0,onDragLeave:V?Y:void 0,onDrop:V?ie:void 0,onDragEnd:V?ee:void 0,onMouseMove:g},de),J.createElement(y9,{prefixCls:S.prefixCls,level:Se,isStart:c,isEnd:u}),Z,oe(),le,ge)};zc.isTreeNode=1;function $9(e,t){const[n,r]=a.useState(!1);It(()=>{if(n)return e(),()=>{t()}},[n]),It(()=>(r(!0),()=>{r(!1)}),[])}function Jl(){return Jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jl.apply(this,arguments)}const S9=a.forwardRef((e,t)=>{const{className:n,style:r,motion:o,motionNodes:s,motionType:i,onMotionStart:l,onMotionEnd:c,active:u,treeNodeRequiredProps:d,...m}=e,[f,p]=a.useState(!0),{prefixCls:y}=a.useContext(Gx),b=s&&i!=="hide";It(()=>{s&&b!==f&&p(b)},[s]);const x=()=>{s&&l()},v=a.useRef(!1),g=()=>{s&&!v.current&&(v.current=!0,c())};$9(x,g);const h=$=>{b===$&&g()};return s?a.createElement(fr,Jl({ref:t,visible:f},o,{motionAppear:i==="show",onVisibleChanged:h}),({className:$,style:C},N)=>a.createElement("div",{ref:N,className:H(`${y}-treenode-motion`,$),style:C},s.map(S=>{const{data:{...E},title:w,key:R,isStart:P,isEnd:T}=S;delete E.children;const M=Ql(R,d);return a.createElement(zc,Jl({},E,M,{title:w,active:u,data:S.data,key:R,isStart:P,isEnd:T}))}))):a.createElement(zc,Jl({domRef:t,className:n,style:r},m,{active:u}))});function C9(e=[],t=[]){const n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(s,i){const l=new Map;s.forEach(u=>{l.set(u,!0)});const c=i.filter(u=>!l.has(u));return c.length===1?c[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function sw(e,t,n){const r=e.findIndex(i=>i.key===n),o=e[r+1],s=t.findIndex(i=>i.key===n);if(o){const i=t.findIndex(l=>l.key===o.key);return t.slice(s+1,i)}return t.slice(s+1)}function Cf(){return Cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cf.apply(this,arguments)}const Ti=`RC_TREE_MOTION_${Math.random()}`,Ev={key:Ti},fT={key:Ti,level:0,index:0,pos:"0",node:Ev,nodes:[Ev]},iw={parent:null,children:[],pos:fT.pos,data:Ev,title:null,key:Ti,isStart:[],isEnd:[]};function aw(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function lw(e){const{key:t,pos:n}=e;return iu(t,n)}const w9=a.forwardRef((e,t)=>{const{prefixCls:n,data:r,selectable:o,checkable:s,expandedKeys:i,selectedKeys:l,checkedKeys:c,loadedKeys:u,loadingKeys:d,halfCheckedKeys:m,keyEntities:f,disabled:p,dragging:y,dragOverNodeKey:b,dropPosition:x,motion:v,height:g,itemHeight:h,virtual:$,scrollWidth:C,focusable:N,activeItem:S,tabIndex:E,onKeyDown:w,onFocus:R,onBlur:P,onMouseDown:T,onActiveChange:M,onListChangeStart:z,onListChangeEnd:B,...F}=e,L=jo(),j=a.useRef(null),O=a.useRef(null);a.useImperativeHandle(t,()=>({scrollTo:Z=>{j.current.scrollTo(Z)},getIndentWidth:()=>O.current.offsetWidth}));const[A,k]=a.useState(i),[_,D]=a.useState(r),[V,W]=a.useState(r),[K,q]=a.useState([]),[Y,ee]=a.useState(null),ie=a.useRef(r);ie.current=r;function ae(){const Z=ie.current;D(Z),W(Z),q([]),ee(null),B()}It(()=>{k(i);const Z=C9(A,i);if(Z.key!==null)if(Z.add){const ne=_.findIndex(({key:re})=>re===Z.key),oe=aw(sw(_,r,Z.key),$,g,h),le=_.slice();le.splice(ne+1,0,iw),W(le),q(oe),ee("show")}else{const ne=r.findIndex(({key:re})=>re===Z.key),oe=aw(sw(r,_,Z.key),$,g,h),le=r.slice();le.splice(ne+1,0,iw),W(le),q(oe),ee("hide")}else _!==r&&(D(r),W(r))},[i,r]),a.useEffect(()=>{y||ae()},[y]);const U=v?V:r,Q={expandedKeys:i,selectedKeys:l,loadedKeys:u,loadingKeys:d,checkedKeys:c,halfCheckedKeys:m,dragOverNodeKey:b,dropPosition:x,keyEntities:f};return a.createElement(a.Fragment,null,a.createElement("div",{className:`${n}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},a.createElement("div",{className:`${n}-indent`},a.createElement("div",{ref:O,className:`${n}-indent-unit`}))),a.createElement(Tm,Cf({},F,{data:U,itemKey:lw,height:g,fullHeight:!1,virtual:$,itemHeight:h,scrollWidth:C,prefixCls:`${n}-list`,ref:j,role:"tree",tabIndex:N!==!1&&!p?E:void 0,"aria-activedescendant":S?jI(L,S.key):void 0,onKeyDown:w,onFocus:R,onBlur:P,onMouseDown:T,onVisibleChange:Z=>{Z.every(ne=>lw(ne)!==Ti)&&ae()}}),Z=>{const{pos:ne,data:{...oe},title:le,key:re,isStart:X,isEnd:se}=Z,ge=iu(re,ne);delete oe.key,delete oe.children;const de=Ql(ge,Q);return a.createElement(S9,Cf({},oe,de,{title:le,active:!!S&&re===S.key,pos:ne,data:Z.data,isStart:X,isEnd:se,motion:v,motionNodes:re===Ti?K:null,motionType:Y,onMotionStart:z,onMotionEnd:ae,treeNodeRequiredProps:Q,treeId:L,onMouseMove:()=>{M(null)}}))}))});function wo(e,t){if(!e)return[];const n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Fo(e,t){const n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function Yx(e){return e.split("-")}function E9(e,t){const n=[],r=or(t,e);function o(s=[]){s.forEach(({key:i,children:l})=>{n.push(i),o(l)})}return o(r.children),n}function I9(e){if(e.parent){const t=Yx(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function P9(e){const t=Yx(e.pos);return Number(t[t.length-1])===0}function cw(e,t,n,r,o,s,i,l,c,u){var R;const{clientX:d,clientY:m}=e,{top:f,height:p}=e.target.getBoundingClientRect(),b=((u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-d)-12)/r,x=c.filter(P=>{var T,M;return(M=(T=l[P])==null?void 0:T.children)==null?void 0:M.length});let v=or(l,n.eventKey);if(m<f+p/2){const P=i.findIndex(z=>z.key===v.key),T=P<=0?0:P-1,M=i[T].key;v=or(l,M)}const g=v.key,h=v,$=v.key;let C=0,N=0;if(!x.includes(g))for(let P=0;P<b&&I9(v);P+=1)v=v.parent,N+=1;const S=t.data,E=v.node;let w=!0;return P9(v)&&v.level===0&&m<f+p/2&&s({dragNode:S,dropNode:E,dropPosition:-1})&&v.key===n.eventKey?C=-1:(h.children||[]).length&&x.includes($)?s({dragNode:S,dropNode:E,dropPosition:0})?C=0:w=!1:N===0?b>-1.5?s({dragNode:S,dropNode:E,dropPosition:1})?C=1:w=!1:s({dragNode:S,dropNode:E,dropPosition:0})?C=0:s({dragNode:S,dropNode:E,dropPosition:1})?C=1:w=!1:s({dragNode:S,dropNode:E,dropPosition:1})?C=1:w=!1,{dropPosition:C,dropLevelOffset:N,dropTargetKey:v.key,dropTargetPos:v.pos,dragOverNodeKey:$,dropContainerKey:C===0?null:((R=v.parent)==null?void 0:R.key)||null,dropAllowed:w}}function uw(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function fg(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e=="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return fn(!1,"`checkedKeys` is not an array or an object"),null;return t}function Iv(e,t){const n=new Set;function r(o){if(n.has(o))return;const s=or(t,o);if(!s)return;n.add(o);const{parent:i,node:l}=s;l.disabled||i&&r(i.key)}return(e||[]).forEach(o=>{r(o)}),[...n]}function mT(e,t){const n=new Set;return e.forEach(r=>{t.has(r)||n.add(r)}),n}function N9(e){const{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function R9(e,t,n,r){const o=new Set(e),s=new Set;for(let l=0;l<=n;l+=1)(t.get(l)||new Set).forEach(u=>{const{key:d,node:m,children:f=[]}=u;o.has(d)&&!r(m)&&f.filter(p=>!r(p.node)).forEach(p=>{o.add(p.key)})});const i=new Set;for(let l=n;l>=0;l-=1)(t.get(l)||new Set).forEach(u=>{const{parent:d,node:m}=u;if(r(m)||!u.parent||i.has(u.parent.key))return;if(r(u.parent.node)){i.add(d.key);return}let f=!0,p=!1;(d.children||[]).filter(y=>!r(y.node)).forEach(({key:y})=>{const b=o.has(y);f&&!b&&(f=!1),!p&&(b||s.has(y))&&(p=!0)}),f&&o.add(d.key),p&&s.add(d.key),i.add(d.key)});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(mT(s,o))}}function T9(e,t,n,r,o){const s=new Set(e);let i=new Set(t);for(let c=0;c<=r;c+=1)(n.get(c)||new Set).forEach(d=>{const{key:m,node:f,children:p=[]}=d;!s.has(m)&&!i.has(m)&&!o(f)&&p.filter(y=>!o(y.node)).forEach(y=>{s.delete(y.key)})});i=new Set;const l=new Set;for(let c=r;c>=0;c-=1)(n.get(c)||new Set).forEach(d=>{const{parent:m,node:f}=d;if(o(f)||!d.parent||l.has(d.parent.key))return;if(o(d.parent.node)){l.add(m.key);return}let p=!0,y=!1;(m.children||[]).filter(b=>!o(b.node)).forEach(({key:b})=>{const x=s.has(b);p&&!x&&(p=!1),!y&&(x||i.has(b))&&(y=!0)}),p||s.delete(m.key),y&&i.add(m.key),l.add(m.key)});return{checkedKeys:Array.from(s),halfCheckedKeys:Array.from(mT(i,s))}}function Ta(e,t,n,r){const o=[];let s;r?s=r:s=N9;const i=new Set(e.filter(d=>{const m=!!or(n,d);return m||o.push(d),m})),l=new Map;let c=0;Object.keys(n).forEach(d=>{const m=n[d],{level:f}=m;let p=l.get(f);p||(p=new Set,l.set(f,p)),p.add(m),c=Math.max(c,f)}),fn(!o.length,`Tree missing follow keys: ${o.slice(0,100).map(d=>`'${d}'`).join(", ")}`);let u;return t===!0?u=R9(i,l,c,s):u=T9(i,t.halfCheckedKeys,l,c,s),u}function Pv(){return Pv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pv.apply(this,arguments)}const M9=10;var td;let O9=(td=class extends a.Component{constructor(){super(...arguments);fe(this,"destroyed",!1);fe(this,"delayedDragEnterLogic");fe(this,"loadingRetryTimes",{});fe(this,"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:[],activeKey:null,listChanging:!1,prevProps:null,fieldNames:Xa()});fe(this,"dragStartMousePosition",null);fe(this,"dragNodeProps",null);fe(this,"currentMouseOverDroppableNodeKey",null);fe(this,"focusedByMouse",!1);fe(this,"listRef",a.createRef());fe(this,"onNodeDragStart",(n,r)=>{const{expandedKeys:o,keyEntities:s}=this.state,{onDragStart:i}=this.props,{eventKey:l}=r;this.dragNodeProps=r,this.dragStartMousePosition={x:n.clientX,y:n.clientY};const c=wo(o,l);this.setState({draggingNodeKey:l,dragChildrenKeys:E9(l,s),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(c),window.addEventListener("dragend",this.onWindowDragEnd),i==null||i({event:n,node:wn(r)})});fe(this,"onNodeDragEnter",(n,r)=>{const{expandedKeys:o,keyEntities:s,dragChildrenKeys:i,flattenNodes:l,indent:c}=this.state,{onDragEnter:u,onExpand:d,allowDrop:m,direction:f}=this.props,{pos:p,eventKey:y}=r;if(this.currentMouseOverDroppableNodeKey!==y&&(this.currentMouseOverDroppableNodeKey=y),!this.dragNodeProps){this.resetDragState();return}const{dropPosition:b,dropLevelOffset:x,dropTargetKey:v,dropContainerKey:g,dropTargetPos:h,dropAllowed:$,dragOverNodeKey:C}=cw(n,this.dragNodeProps,r,c,this.dragStartMousePosition,m,l,s,o,f);if(i.includes(v)||!$){this.resetDragState();return}if(this.delayedDragEnterLogic||(this.delayedDragEnterLogic={}),Object.keys(this.delayedDragEnterLogic).forEach(N=>{clearTimeout(this.delayedDragEnterLogic[N])}),this.dragNodeProps.eventKey!==r.eventKey&&(n.persist(),this.delayedDragEnterLogic[p]=window.setTimeout(()=>{if(this.state.draggingNodeKey===null)return;let N=[...o];const S=or(s,r.eventKey);S&&(S.children||[]).length&&(N=Fo(o,r.eventKey)),this.props.hasOwnProperty("expandedKeys")||this.setExpandedKeys(N),d==null||d(N,{node:wn(r),expanded:!0,nativeEvent:n.nativeEvent})},800)),this.dragNodeProps.eventKey===v&&x===0){this.resetDragState();return}this.setState({dragOverNodeKey:C,dropPosition:b,dropLevelOffset:x,dropTargetKey:v,dropContainerKey:g,dropTargetPos:h,dropAllowed:$}),u==null||u({event:n,node:wn(r),expandedKeys:o})});fe(this,"onNodeDragOver",(n,r)=>{const{dragChildrenKeys:o,flattenNodes:s,keyEntities:i,expandedKeys:l,indent:c}=this.state,{onDragOver:u,allowDrop:d,direction:m}=this.props;if(!this.dragNodeProps)return;const{dropPosition:f,dropLevelOffset:p,dropTargetKey:y,dropContainerKey:b,dropTargetPos:x,dropAllowed:v,dragOverNodeKey:g}=cw(n,this.dragNodeProps,r,c,this.dragStartMousePosition,d,s,i,l,m);o.includes(y)||!v||(this.dragNodeProps.eventKey===y&&p===0?this.state.dropPosition===null&&this.state.dropLevelOffset===null&&this.state.dropTargetKey===null&&this.state.dropContainerKey===null&&this.state.dropTargetPos===null&&this.state.dropAllowed===!1&&this.state.dragOverNodeKey===null||this.resetDragState():f===this.state.dropPosition&&p===this.state.dropLevelOffset&&y===this.state.dropTargetKey&&b===this.state.dropContainerKey&&x===this.state.dropTargetPos&&v===this.state.dropAllowed&&g===this.state.dragOverNodeKey||this.setState({dropPosition:f,dropLevelOffset:p,dropTargetKey:y,dropContainerKey:b,dropTargetPos:x,dropAllowed:v,dragOverNodeKey:g}),u==null||u({event:n,node:wn(r)}))});fe(this,"onNodeDragLeave",(n,r)=>{this.currentMouseOverDroppableNodeKey===r.eventKey&&!n.currentTarget.contains(n.relatedTarget)&&(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);const{onDragLeave:o}=this.props;o==null||o({event:n,node:wn(r)})});fe(this,"onWindowDragEnd",n=>{this.onNodeDragEnd(n,null,!0),window.removeEventListener("dragend",this.onWindowDragEnd)});fe(this,"onNodeDragEnd",(n,r)=>{const{onDragEnd:o}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),o==null||o({event:n,node:wn(r)}),this.dragNodeProps=null,window.removeEventListener("dragend",this.onWindowDragEnd)});fe(this,"onNodeDrop",(n,r,o=!1)=>{var b;const{dragChildrenKeys:s,dropPosition:i,dropTargetKey:l,dropTargetPos:c,dropAllowed:u}=this.state;if(!u)return;const{onDrop:d}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),l===null)return;const m={...Ql(l,this.getTreeNodeRequiredProps()),active:((b=this.getActiveItem())==null?void 0:b.key)===l,data:or(this.state.keyEntities,l).node},f=s.includes(l);fn(!f,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");const p=Yx(c),y={event:n,node:wn(m),dragNode:this.dragNodeProps?wn(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(s),dropToGap:i!==0,dropPosition:i+Number(p[p.length-1])};o||d==null||d(y),this.dragNodeProps=null});fe(this,"cleanDragState",()=>{const{draggingNodeKey:n}=this.state;n!==null&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null});fe(this,"triggerExpandActionExpand",(n,r)=>{const{expandedKeys:o,flattenNodes:s}=this.state,{expanded:i,key:l,isLeaf:c}=r;if(c||n.shiftKey||n.metaKey||n.ctrlKey)return;const u=s.filter(m=>m.key===l)[0],d=wn({...Ql(l,this.getTreeNodeRequiredProps()),data:u.data});this.setExpandedKeys(i?wo(o,l):Fo(o,l)),this.onNodeExpand(n,d)});fe(this,"onNodeClick",(n,r)=>{const{onClick:o,expandAction:s}=this.props;s==="click"&&this.triggerExpandActionExpand(n,r),o==null||o(n,r)});fe(this,"onNodeDoubleClick",(n,r)=>{const{onDoubleClick:o,expandAction:s}=this.props;s==="doubleClick"&&this.triggerExpandActionExpand(n,r),o==null||o(n,r)});fe(this,"onNodeSelect",(n,r)=>{let{selectedKeys:o}=this.state;const{keyEntities:s,fieldNames:i}=this.state,{onSelect:l,multiple:c}=this.props,{selected:u}=r,d=r[i.key],m=!u;m?c?o=Fo(o,d):o=[d]:o=wo(o,d);const f=o.map(p=>{const y=or(s,p);return y?y.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:o}),l==null||l(o,{event:"select",selected:m,node:r,selectedNodes:f,nativeEvent:n.nativeEvent})});fe(this,"onNodeCheck",(n,r,o)=>{const{keyEntities:s,checkedKeys:i,halfCheckedKeys:l}=this.state,{checkStrictly:c,onCheck:u}=this.props,{key:d}=r;let m;const f={event:"check",node:r,checked:o,nativeEvent:n.nativeEvent};if(c){const p=o?Fo(i,d):wo(i,d),y=wo(l,d);m={checked:p,halfChecked:y},f.checkedNodes=p.map(b=>or(s,b)).filter(Boolean).map(b=>b.node),this.setUncontrolledState({checkedKeys:p})}else{let{checkedKeys:p,halfCheckedKeys:y}=Ta([...i,d],!0,s);if(!o){const b=new Set(p);b.delete(d),{checkedKeys:p,halfCheckedKeys:y}=Ta(Array.from(b),{halfCheckedKeys:y},s)}m=p,f.checkedNodes=[],f.checkedNodesPositions=[],f.halfCheckedKeys=y,p.forEach(b=>{const x=or(s,b);if(!x)return;const{node:v,pos:g}=x;f.checkedNodes.push(v),f.checkedNodesPositions.push({node:v,pos:g})}),this.setUncontrolledState({checkedKeys:p},!1,{halfCheckedKeys:y})}u==null||u(m,f)});fe(this,"onNodeLoad",n=>{var l;const{key:r}=n,{keyEntities:o}=this.state,s=or(o,r);if((l=s==null?void 0:s.children)!=null&&l.length)return;const i=new Promise((c,u)=>{this.setState(({loadedKeys:d=[],loadingKeys:m=[]})=>{const{loadData:f,onLoad:p}=this.props;return!f||d.includes(r)||m.includes(r)?null:(f(n).then(()=>{const{loadedKeys:b}=this.state,x=Fo(b,r);p==null||p(x,{event:"load",node:n}),this.setUncontrolledState({loadedKeys:x}),this.setState(v=>({loadingKeys:wo(v.loadingKeys,r)})),c()}).catch(b=>{if(this.setState(x=>({loadingKeys:wo(x.loadingKeys,r)})),this.loadingRetryTimes[r]=(this.loadingRetryTimes[r]||0)+1,this.loadingRetryTimes[r]>=M9){const{loadedKeys:x}=this.state;fn(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:Fo(x,r)}),c()}u(b)}),{loadingKeys:Fo(m,r)})})});return i.catch(()=>{}),i});fe(this,"onNodeMouseEnter",(n,r)=>{const{onMouseEnter:o}=this.props;o==null||o({event:n,node:r})});fe(this,"onNodeMouseLeave",(n,r)=>{const{onMouseLeave:o}=this.props;o==null||o({event:n,node:r})});fe(this,"onNodeContextMenu",(n,r)=>{const{onRightClick:o}=this.props;o&&(n.preventDefault(),o({event:n,node:r}))});fe(this,"onMouseDown",n=>{this.focusedByMouse=!0;const{onMouseDown:r}=this.props;r==null||r(n)});fe(this,"onGlobalMouseUp",()=>{this.focusedByMouse=!1});fe(this,"onFocus",(...n)=>{var c;const{onFocus:r,disabled:o}=this.props,{activeKey:s,selectedKeys:i,flattenNodes:l}=this.state;if(!this.focusedByMouse&&!o&&s===null){const u=i.find(d=>l.some(m=>m.key===d));u!==void 0?this.onActiveChange(u):this.onActiveChange(((c=l==null?void 0:l[0])==null?void 0:c.key)||null)}r==null||r(...n)});fe(this,"onBlur",(...n)=>{const{onBlur:r}=this.props;this.onActiveChange(null),r==null||r(...n)});fe(this,"getTreeNodeRequiredProps",()=>{const{expandedKeys:n,selectedKeys:r,loadedKeys:o,loadingKeys:s,checkedKeys:i,halfCheckedKeys:l,dragOverNodeKey:c,dropPosition:u,keyEntities:d}=this.state;return{expandedKeys:n||[],selectedKeys:r||[],loadedKeys:o||[],loadingKeys:s||[],checkedKeys:i||[],halfCheckedKeys:l||[],dragOverNodeKey:c,dropPosition:u,keyEntities:d}});fe(this,"setExpandedKeys",n=>{const{treeData:r,fieldNames:o}=this.state,s=dg(r,n,o);this.setUncontrolledState({expandedKeys:n,flattenNodes:s},!0)});fe(this,"onNodeExpand",(n,r)=>{let{expandedKeys:o}=this.state;const{listChanging:s,fieldNames:i}=this.state,{onExpand:l,loadData:c}=this.props,{expanded:u}=r,d=r[i.key];if(s)return;const m=o.includes(d),f=!u;if(fn(u&&m||!u&&!m,"Expand state not sync with index check"),o=f?Fo(o,d):wo(o,d),this.setExpandedKeys(o),l==null||l(o,{node:r,expanded:f,nativeEvent:n.nativeEvent}),f&&c){const p=this.onNodeLoad(r);p&&p.then(()=>{const y=dg(this.state.treeData,o,i);this.setUncontrolledState({flattenNodes:y})}).catch(()=>{const{expandedKeys:y}=this.state,b=wo(y,d);this.setExpandedKeys(b)})}});fe(this,"onListChangeStart",()=>{this.setUncontrolledState({listChanging:!0})});fe(this,"onListChangeEnd",()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})});fe(this,"onActiveChange",n=>{const{activeKey:r}=this.state,{onActiveChange:o,itemScrollOffset:s=0}=this.props;r!==n&&(this.setState({activeKey:n}),n!==null&&this.scrollTo({key:n,offset:s}),o==null||o(n))});fe(this,"getActiveItem",()=>{const{activeKey:n,flattenNodes:r}=this.state;return n===null?null:r.find(({key:o})=>o===n)||null});fe(this,"offsetActiveKey",n=>{const{flattenNodes:r,activeKey:o}=this.state;let s=r.findIndex(({key:l})=>l===o);s===-1&&n<0&&(s=r.length),s=(s+n+r.length)%r.length;const i=r[s];if(i){const{key:l}=i;this.onActiveChange(l)}else this.onActiveChange(null)});fe(this,"onKeyDown",n=>{var y,b,x;const{activeKey:r,expandedKeys:o,checkedKeys:s,flattenNodes:i,keyEntities:l}=this.state,{onKeyDown:c,checkable:u,selectable:d,disabled:m,loadData:f}=this.props;if(m)return;switch(n.key){case"ArrowUp":{this.offsetActiveKey(-1),n.preventDefault();break}case"ArrowDown":{this.offsetActiveKey(1),n.preventDefault();break}case"Home":{this.onActiveChange((y=i==null?void 0:i[0])==null?void 0:y.key),n.preventDefault();break}case"End":{this.onActiveChange((b=i==null?void 0:i[i.length-1])==null?void 0:b.key),n.preventDefault();break}}const p=this.getActiveItem();if(p&&p.data){const v=this.getTreeNodeRequiredProps(),g=wn({...Ql(r,v),data:p.data,active:!0}),h=or(l,r),$=!!((x=h==null?void 0:h.children)!=null&&x.length),C=!dT(p.data.isLeaf,f,$,g.loaded),N=u&&!g.disabled&&g.checkable!==!1&&!g.disableCheckbox,S=!u&&d&&!g.disabled&&g.selectable!==!1;switch(n.key){case"ArrowLeft":{C&&o.includes(r)?this.onNodeExpand({},g):p.parent&&this.onActiveChange(p.parent.key),n.preventDefault();break}case"ArrowRight":{C&&!o.includes(r)?this.onNodeExpand({},g):p.children&&p.children.length&&this.onActiveChange(p.children[0].key),n.preventDefault();break}case"Enter":{C?(n.preventDefault(),this.onNodeExpand({},g)):N?s.includes(r)||(n.preventDefault(),this.onNodeCheck({},g,!0)):S&&!g.selected&&(n.preventDefault(),this.onNodeSelect({},g));break}case" ":{N?(n.preventDefault(),this.onNodeCheck({},g,!s.includes(r))):S&&(n.preventDefault(),this.onNodeSelect({},g));break}}}c==null||c(n)});fe(this,"setUncontrolledState",(n,r=!1,o=null)=>{if(!this.destroyed){let s=!1,i=!0;const l={};Object.keys(n).forEach(c=>{if(this.props.hasOwnProperty(c)){i=!1;return}s=!0,l[c]=n[c]}),s&&(!r||i)&&this.setState({...l,...o})}});fe(this,"scrollTo",n=>{this.listRef.current.scrollTo(n)})}componentDidMount(){this.destroyed=!1,this.onUpdated(),window.addEventListener("mouseup",this.onGlobalMouseUp)}componentDidUpdate(){this.onUpdated()}onUpdated(){const{activeKey:n,itemScrollOffset:r=0}=this.props;n!==void 0&&n!==this.state.activeKey&&(this.setState({activeKey:n}),n!==null&&this.scrollTo({key:n,offset:r}))}componentWillUnmount(){window.removeEventListener("dragend",this.onWindowDragEnd),window.removeEventListener("mouseup",this.onGlobalMouseUp),this.destroyed=!0}static getDerivedStateFromProps(n,r){const{prevProps:o}=r,s={prevProps:n};function i(d){return!o&&n.hasOwnProperty(d)||o&&o[d]!==n[d]}let l,{fieldNames:c}=r;if(i("fieldNames")&&(c=Xa(n.fieldNames),s.fieldNames=c),i("treeData")?{treeData:l}=n:i("children")&&(fn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),l=uT(n.children)),l){s.treeData=l;const d=Xx(l,{fieldNames:c});s.keyEntities={[Ti]:fT,...d.keyEntities}}const u=s.keyEntities||r.keyEntities;if(i("expandedKeys")||o&&i("autoExpandParent"))s.expandedKeys=n.autoExpandParent||!o&&n.defaultExpandParent?Iv(n.expandedKeys,u):n.expandedKeys;else if(!o&&n.defaultExpandAll){const d={...u};delete d[Ti];const m=[];Object.keys(d).forEach(f=>{const p=d[f];p.children&&p.children.length&&m.push(p.key)}),s.expandedKeys=m}else!o&&n.defaultExpandedKeys&&(s.expandedKeys=n.autoExpandParent||n.defaultExpandParent?Iv(n.defaultExpandedKeys,u):n.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,l||s.expandedKeys){const d=dg(l||r.treeData,s.expandedKeys||r.expandedKeys,c);s.flattenNodes=d}if(n.selectable&&(i("selectedKeys")?s.selectedKeys=uw(n.selectedKeys,n):!o&&n.defaultSelectedKeys&&(s.selectedKeys=uw(n.defaultSelectedKeys,n))),n.checkable){let d;if(i("checkedKeys")?d=fg(n.checkedKeys)||{}:!o&&n.defaultCheckedKeys?d=fg(n.defaultCheckedKeys)||{}:l&&(d=fg(n.checkedKeys)||{checkedKeys:r.checkedKeys,halfCheckedKeys:r.halfCheckedKeys}),d){let{checkedKeys:m=[],halfCheckedKeys:f=[]}=d;n.checkStrictly||({checkedKeys:m,halfCheckedKeys:f}=Ta(m,!0,u)),s.checkedKeys=m,s.halfCheckedKeys=f}}return i("loadedKeys")&&(s.loadedKeys=n.loadedKeys),s}resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}render(){const{flattenNodes:n,keyEntities:r,draggingNodeKey:o,dropLevelOffset:s,dropContainerKey:i,dropTargetKey:l,dropPosition:c,dragOverNodeKey:u,indent:d}=this.state,{prefixCls:m,className:f,style:p,styles:y,classNames:b,showLine:x,focusable:v,tabIndex:g=0,selectable:h,showIcon:$,icon:C,switcherIcon:N,draggable:S,checkable:E,checkStrictly:w,disabled:R,motion:P,loadData:T,filterTreeNode:M,height:z,itemHeight:B,scrollWidth:F,virtual:L,titleRender:j,dropIndicatorRender:O,onContextMenu:A,onScroll:k,direction:_,rootClassName:D,rootStyle:V}=this.props,W=Nn(this.props,{aria:!0,data:!0});let K;S&&(typeof S=="object"?K=S:typeof S=="function"?K={nodeDraggable:S}:K={});const q={styles:y,classNames:b,prefixCls:m,selectable:h,showIcon:$,icon:C,switcherIcon:N,draggable:K,draggingNodeKey:o,checkable:E,checkStrictly:w,disabled:R,keyEntities:r,dropLevelOffset:s,dropContainerKey:i,dropTargetKey:l,dropPosition:c,dragOverNodeKey:u,indent:d,direction:_,dropIndicatorRender:O,loadData:T,filterTreeNode:M,titleRender:j,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 a.createElement(Gx.Provider,{value:q},a.createElement("div",{className:H(m,f,D,{[`${m}-show-line`]:x}),style:V},a.createElement(w9,Pv({ref:this.listRef,prefixCls:m,style:p,data:n,disabled:R,selectable:h,checkable:!!E,motion:P,dragging:o!==null,height:z,itemHeight:B,virtual:L,focusable:v,tabIndex:g,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:A,onScroll:k,scrollWidth:F},this.getTreeNodeRequiredProps(),W))))}},fe(td,"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:g9,allowDrop:()=>!0,expandAction:!1}),fe(td,"TreeNode",zc),td);const _9=e=>{const{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,o=`${t}-wrapper`,s="@media (hover: hover) and (pointer: fine)";return[{[`${t}-group`]:{...Ft(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[o]:{...Ft(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${o}`]:{marginInlineStart:0}},[t]:{...Ft(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:n,height:n,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${G(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,flex:"none",...Sd(),"&:after":{boxSizing:"border-box",position:"absolute",top:`calc(${n} / 2 - ${r})`,insetInlineStart:`calc(${n} / 4 - ${r})`,display:"table",width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).div(14).mul(8).equal(),border:`${G(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}`,...Sd()},[`${t}-input`]:{position:"absolute",inset:`calc(-1 * (${r}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:jr(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[s]:{[`
${o}:not(${o}-disabled),
${t}:not(${t}-disabled)
`]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${o}:not(${o}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}}},{[`${t}-checked`]:{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}`,...Sd()},[s]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}}},{[t]:{"&-indeterminate":{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:'""'},[s]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}}},{[`${o}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function pT(e,t){const n=Rt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return _9(n)}const gT=Tt("Checkbox",(e,{prefixCls:t})=>[pT(t,e)]),hT=J.createContext(null),z9=(e,t)=>{const{prefixCls:n,children:r,indeterminate:o=!1,onMouseEnter:s,onMouseLeave:i,skipGroup:l=!1,disabled:c,rootClassName:u,className:d,style:m,classNames:f,styles:p,name:y,value:b,checked:x,defaultChecked:v,onChange:g,...h}=e,{getPrefixCls:$,direction:C,className:N,style:S,classNames:E,styles:w}=Pt("checkbox"),R=a.useContext(hT),{isFormItemInput:P}=a.useContext(Hn),T=a.useContext(cr),M=((R==null?void 0:R.disabled)||c)??T,[z,B]=nn(v,x);let F=z;const L=vt(Z=>{B(Z.target.checked),g==null||g(Z),!l&&(R!=null&&R.toggleOption)&&R.toggleOption({label:r,value:b})});R&&!l&&(F=R.value.includes(b));const j=a.useRef(null),O=$o(t,j);a.useEffect(()=>{if(!(l||!R))return R.registerValue(b),()=>{R.cancelValue(b)}},[b,l]),a.useEffect(()=>{var Z;(Z=j.current)!=null&&Z.input&&(j.current.input.indeterminate=o)},[o]);const A=$("checkbox",n),k=on(A),[_,D]=gT(A,k),V={...h},W={...e,indeterminate:o,disabled:M,checked:F},K=Mt(S),q=Mt(m),[Y,ee]=Ot([E,f],[w,K,p,q],{props:W}),ie=H(`${A}-wrapper`,{[`${A}-rtl`]:C==="rtl",[`${A}-wrapper-checked`]:F,[`${A}-wrapper-disabled`]:M,[`${A}-wrapper-in-form-item`]:P},N,d,Y.root,u,D,k,_),ae=H(Y.icon,{[`${A}-indeterminate`]:o},$m,_),[U,Q]=W4(V.onClick);return a.createElement(Sm,{component:"Checkbox",disabled:M},a.createElement("label",{className:ie,style:ee.root,onMouseEnter:s,onMouseLeave:i,onClick:U},a.createElement(V4,{...V,name:!l&&R?R.name:y,checked:F,onClick:Q,onChange:L,prefixCls:A,className:ae,style:ee.icon,disabled:M,ref:O,value:b}),$n(r)&&a.createElement("span",{className:H(`${A}-label`,Y.label),style:ee.label},r)))},yT=a.forwardRef(z9),j9=a.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:s,className:i,rootClassName:l,style:c,onChange:u,role:d="group",...m}=e,{getPrefixCls:f,direction:p}=a.useContext(ct),[y,b]=a.useState(m.value||n||[]),[x,v]=a.useState([]);a.useEffect(()=>{"value"in m&&b(m.value||[])},[m.value]);const g=a.useMemo(()=>o.map(B=>typeof B=="string"||Rn(B)?{label:B,value:B}:B),[o]),h=B=>{v(F=>F.filter(L=>L!==B))},$=B=>{v(F=>[].concat($t(F),[B]))},C=B=>{const F=y.indexOf(B.value),L=$t(y);F===-1?L.push(B.value):L.splice(F,1),"value"in m||b(L),u==null||u(L.filter(j=>x.includes(j)).sort((j,O)=>{const A=g.findIndex(_=>_.value===j),k=g.findIndex(_=>_.value===O);return A-k}))},N=f("checkbox",s),S=`${N}-group`,E=on(N),[w,R]=gT(N,E),P=Dt(m,["value","disabled"]),T=o.length?g.map(B=>a.createElement(yT,{prefixCls:N,key:B.value.toString(),disabled:"disabled"in B?B.disabled:m.disabled,value:B.value,checked:y.includes(B.value),onChange:B.onChange,className:H(`${S}-item`,B.className),style:B.style,title:B.title,id:B.id,required:B.required},B.label)):r,M=a.useMemo(()=>({toggleOption:C,value:y,disabled:m.disabled,name:m.name,registerValue:$,cancelValue:h}),[C,y,m.disabled,m.name,$,h]),z=H(S,{[`${S}-rtl`]:p==="rtl"},i,l,R,E,w);return a.createElement("div",{className:z,style:c,role:d,...P,ref:t},a.createElement(hT.Provider,{value:M},T))}),as=yT;as.Group=j9;as.__ANT_CHECKBOX=!0;const vT=a.createContext({});function dw(e){return e==="auto"?"1 1 auto":Rn(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const si=a.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=a.useContext(ct),{gutter:o,wrap:s}=a.useContext(vT),{prefixCls:i,span:l,order:c,offset:u,push:d,pull:m,className:f,children:p,flex:y,style:b,...x}=e,v=n("col",i),g=n(),[h,$]=bA(v),[C]=rn(g,"col"),N={};let S={};t4.forEach(R=>{let P={};const T=e[R];Rn(T)?P.span=T:dt(T)&&(P=T||{}),delete x[R],S={...S,[`${v}-${R}-${P.span}`]:bn(P.span),[`${v}-${R}-order-${P.order}`]:P.order||P.order===0,[`${v}-${R}-offset-${P.offset}`]:P.offset||P.offset===0,[`${v}-${R}-push-${P.push}`]:P.push||P.push===0,[`${v}-${R}-pull-${P.pull}`]:P.pull||P.pull===0,[`${v}-rtl`]:r==="rtl"},P.flex&&(S[`${v}-${R}-flex`]=!0,N[C(`${R}-flex`)]=dw(P.flex))});const E=H(v,{[`${v}-${l}`]:l!==void 0,[`${v}-order-${c}`]:c,[`${v}-offset-${u}`]:u,[`${v}-push-${d}`]:d,[`${v}-pull-${m}`]:m},f,S,h,$),w={};if(o!=null&&o[0]){const R=Rn(o[0])?`${o[0]/2}px`:`calc(${o[0]} / 2)`;w.paddingInline=R}return y&&(w.flex=dw(y),s===!1&&!w.minWidth&&(w.minWidth=0)),a.createElement("div",{...x,style:{...w,...b,...N},className:E,ref:t},p)});function B9(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((s,i)=>{if(dt(s))for(let l=0;l<As.length;l++){const c=As[l];if(o[c]&&s[c]!==void 0){n[i]=s[c];break}}else n[i]=s}),n}const fw=(e,t)=>{const[n,r]=a.useState(()=>Zo(e)?e:""),o=()=>{if(Zo(e)&&r(e),!!dt(e))for(let s=0;s<As.length;s++){const i=As[s];if(!t||!t[i])continue;const l=e[i];if(l!==void 0){r(l);return}}};return a.useEffect(()=>{o()},[JSON.stringify(e),t]),n},Nv=a.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:s,style:i,children:l,gutter:c=0,wrap:u,...d}=e,{getPrefixCls:m,direction:f}=a.useContext(ct),p=Mm(!0,null),y=fw(o,p),b=fw(r,p),x=m("row",n),[v,g]=vA(x),h=B9(c,p),$=H(x,{[`${x}-no-wrap`]:u===!1,[`${x}-${b}`]:b,[`${x}-${y}`]:y,[`${x}-rtl`]:f==="rtl"},s,v,g),C={};if(h!=null&&h[0]){const w=Rn(h[0])?`${h[0]/-2}px`:`calc(${h[0]} / -2)`;C.marginInline=w}const[N,S]=h;C.rowGap=S;const E=a.useMemo(()=>({gutter:[N,S],wrap:u}),[N,S,u]);return a.createElement(vT.Provider,{value:E},a.createElement("div",{...d,className:$,style:{...C,...i},ref:t},l))}),L9=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},k9=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:s,orientationMargin:i,verticalMarginInline:l}=e,c=`${t}-rail`;return{[t]:{...Ft(e),borderBlockStart:`${G(o)} solid ${r}`,[c]:{borderBlockStart:`${G(o)} solid ${r}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${G(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${G(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${G(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,[`${c}-start, ${c}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${c}-start`]:{width:`calc(${i} * 100%)`},[`${c}-end`]:{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${c}-start`]:{width:`calc(100% - ${i} * 100%)`},[`${c}-end`]:{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:s},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${G(o)} 0 0`,[c]:{borderBlockStart:`${G(o)} dashed ${r}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${c}-start, ${c}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${G(o)} 0 0`,[c]:{borderBlockStart:`${G(o)} dotted ${r}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,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`]:{[`${c}-start`]:{width:0},[`${c}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${c}-start`]:{width:"100%"},[`${c}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}}}},A9=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),D9=Tt("Divider",e=>{const t=Rt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[k9(t),L9(t)]},A9,{unitless:{orientationMargin:!0}}),F9=["left","right","center","start","end"],H9=e=>{const{getPrefixCls:t,direction:n,className:r,style:o,classNames:s,styles:i}=Pt("divider"),{prefixCls:l,type:c,orientation:u,vertical:d,titlePlacement:m,orientationMargin:f,className:p,rootClassName:y,children:b,dashed:x,variant:v="solid",plain:g,style:h,size:$,classNames:C,styles:N,...S}=e,E=t("divider",l),w=`${E}-rail`,[R,P]=D9(E),T=Cn($),M=!!b,z=F9.includes(u||""),B=a.useMemo(()=>{const K=m??(z?u:"center");return K==="left"?n==="rtl"?"end":"start":K==="right"?n==="rtl"?"start":"end":K},[n,u,m,z]),F=B==="start"&&f!=null,L=B==="end"&&f!=null,[j,O]=Gc(u,d,c),A={...e,orientation:j,titlePlacement:B,size:T},[k,_]=Ot([s,C],[i,N],{props:A}),D=H(E,r,R,P,`${E}-${j}`,{[`${E}-with-text`]:M,[`${E}-with-text-${B}`]:M,[`${E}-dashed`]:!!x,[`${E}-${v}`]:v!=="solid",[`${E}-plain`]:!!g,[`${E}-rtl`]:n==="rtl",[`${E}-no-default-orientation-margin-start`]:F,[`${E}-no-default-orientation-margin-end`]:L,[`${E}-md`]:T==="medium"||T==="middle",[`${E}-sm`]:T==="small",[w]:!b,[k.rail]:k.rail&&!b},p,y,k.root),V=a.useMemo(()=>Rn(f)?f:/^\d+$/.test(f)?Number(f):f,[f]),W={marginInlineStart:F?V:void 0,marginInlineEnd:L?V:void 0};return a.createElement("div",{className:D,style:{...o,..._.root,...b?{}:_.rail,...h},...S,role:"separator"},b&&!O&&a.createElement(a.Fragment,null,a.createElement("div",{className:H(w,`${w}-start`,k.rail),style:_.rail}),a.createElement("span",{className:H(`${E}-inner-text`,k.content),style:{...W,..._.content}},b),a.createElement("div",{className:H(w,`${w}-end`,k.rail),style:_.rail})))},mw=(e,t)=>{if(!e)return null;const n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},Co=e=>e!==void 0?`${e}px`:void 0;function V9(e){const{prefixCls:t,containerRef:n,value:r,getValueIndex:o,motionName:s,onMotionStart:i,onMotionEnd:l,direction:c,vertical:u=!1}=e,d=a.useRef(null),[m,f]=a.useState(r),p=S=>{var R;const E=o(S),w=(R=n.current)==null?void 0:R.querySelectorAll(`.${t}-item`)[E];return(w==null?void 0:w.offsetParent)&&w},[y,b]=a.useState(null),[x,v]=a.useState(null);It(()=>{if(m!==r){const S=p(m),E=p(r),w=mw(S,u),R=mw(E,u);f(r),b(w),v(R),S&&E?i():l()}},[r]);const g=a.useMemo(()=>Co(u?(y==null?void 0:y.top)??0:c==="rtl"?-(y==null?void 0:y.right):y==null?void 0:y.left),[u,c,y]),h=a.useMemo(()=>Co(u?(x==null?void 0:x.top)??0:c==="rtl"?-(x==null?void 0:x.right):x==null?void 0:x.left),[u,c,x]),$=()=>u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},C=()=>u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},N=()=>{b(null),v(null),l()};return!y||!x?null:a.createElement(fr,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:$,onAppearActive:C,onVisibleChanged:N},({className:S,style:E},w)=>{const R={...E,"--thumb-start-left":g,"--thumb-start-width":Co(y==null?void 0:y.width),"--thumb-active-left":h,"--thumb-active-width":Co(x==null?void 0:x.width),"--thumb-start-top":g,"--thumb-start-height":Co(y==null?void 0:y.height),"--thumb-active-top":h,"--thumb-active-height":Co(x==null?void 0:x.height)},P={ref:Tn(d,w),style:R,className:H(`${t}-thumb`,S)};return a.createElement("div",P)})}function W9(e){var t;if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return(t=e.label)==null?void 0:t.toString()}function K9(e){return e.map(t=>{if(typeof t=="object"&&t!==null){const n=W9(t);return{...t,title:n}}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}const U9=({prefixCls:e,className:t,style:n,styles:r,classNames:o,data:s,disabled:i,checked:l,label:c,title:u,value:d,name:m,onChange:f,onFocus:p,onBlur:y,onKeyDown:b,onKeyUp:x,onMouseDown:v,itemRender:g=h=>h})=>{const h=C=>{i||f(C,d)},$=a.createElement("label",{className:H(t,{[`${e}-item-disabled`]:i}),style:n,onMouseDown:v},a.createElement("input",{name:m,className:`${e}-item-input`,type:"radio",disabled:i,checked:l,onChange:h,onFocus:p,onBlur:y,onKeyDown:b,onKeyUp:x}),a.createElement("div",{className:H(`${e}-item-label`,o==null?void 0:o.label),title:u,style:r==null?void 0:r.label},c));return g($,{item:s})},q9=a.forwardRef((e,t)=>{var _;const{prefixCls:n="rc-segmented",direction:r,vertical:o,options:s=[],disabled:i,defaultValue:l,value:c,name:u,onChange:d,className:m="",style:f,styles:p,classNames:y,motionName:b="thumb-motion",itemRender:x,...v}=e,g=a.useRef(null),h=a.useMemo(()=>Tn(g,t),[g,t]),$=a.useMemo(()=>K9(s),[s]),[C,N]=nn(l??((_=$[0])==null?void 0:_.value),c),[S,E]=a.useState(!1),w=(D,V)=>{N(V),d==null||d(V)},R=Dt(v,["children"]),[P,T]=a.useState(!1),[M,z]=a.useState(!1),B=()=>{z(!0)},F=()=>{z(!1)},L=()=>{T(!1)},j=D=>{D.key==="Tab"&&T(!0)},O=D=>{const V=$.findIndex(Y=>Y.value===C),W=$.length,K=(V+D+W)%W,q=$[K];q&&(N(q.value),d==null||d(q.value))},A=D=>{switch(D.key){case"ArrowLeft":case"ArrowUp":O(-1);break;case"ArrowRight":case"ArrowDown":O(1);break}},k=D=>{const{value:V,disabled:W}=D;return a.createElement(U9,qr({},D,{name:u,data:D,itemRender:x,key:V,prefixCls:n,className:H(D.className,`${n}-item`,y==null?void 0:y.item,{[`${n}-item-selected`]:V===C&&!S,[`${n}-item-focused`]:M&&P&&V===C}),style:p==null?void 0:p.item,classNames:y,styles:p,checked:V===C,onChange:w,onFocus:B,onBlur:F,onKeyDown:A,onKeyUp:j,onMouseDown:L,disabled:!!i||!!W}))};return a.createElement("div",qr({role:"radiogroup","aria-label":"segmented control",tabIndex:i?void 0:0,"aria-orientation":o?"vertical":"horizontal",style:f},R,{className:H(n,{[`${n}-rtl`]:r==="rtl",[`${n}-disabled`]:i,[`${n}-vertical`]:o},m),ref:h}),a.createElement("div",{className:`${n}-group`},a.createElement(V9,{vertical:o,prefixCls:n,value:C,containerRef:g,motionName:`${n}-${b}`,direction:r,getValueIndex:D=>$.findIndex(V=>V.value===D),onMotionStart:()=>{E(!0)},onMotionEnd:()=>{E(!1)}}),$.map(k)))}),G9=q9;function pw(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}const gw=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),X9={overflow:"hidden",...ar},Y9=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:o}=e,s=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),l=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...Ft(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${o}`,...Br(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 ${G(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${o}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...gw(e),color:e.itemSelectedColor},"&-focused":jr(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,pointerEvents:"none",transition:["opacity","background-color"].map(c=>`${c} ${o}`).join(", ")},[`&: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":{minHeight:s,lineHeight:G(s),padding:`0 ${G(e.segmentedPaddingHorizontal)}`,...X9},"&-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`]:{...gw(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${G(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:i,lineHeight:G(i),padding:`0 ${G(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:l,lineHeight:G(l),padding:`0 ${G(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...pw(`&-disabled ${t}-item`,e),...pw(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:"transform, width",transition:["transform","width"].map(c=>`${c} ${n} ${r}`).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},Q9=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:s,lineWidthBold:i,colorBgLayout:l}=e;return{trackPadding:i,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:s,itemSelectedColor:n}},J9=Tt("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Rt(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return Y9(r)},Q9);function Z9(e){return dt(e)&&!!(e!=null&&e.icon)}const eV=a.forwardRef((e,t)=>{const n=jo(),{prefixCls:r,className:o,rootClassName:s,block:i,options:l=[],size:c,style:u,vertical:d,orientation:m,shape:f="default",name:p=n,styles:y,classNames:b,...x}=e,{getPrefixCls:v,direction:g,className:h,style:$,classNames:C,styles:N}=Pt("segmented"),S={...e,options:l,size:c,shape:f},E=Mt($),w=Mt(u),[R,P]=Ot([C,b],[N,E,y,w],{props:S}),T=v("segmented",r),[M,z]=J9(T),B=Cn(c),F=a.useMemo(()=>l.map(A=>{if(Z9(A)){const{icon:k,label:_,...D}=A;return{...D,label:a.createElement(a.Fragment,null,a.createElement("span",{className:H(`${T}-item-icon`,R.icon),style:P.icon},k),_&&a.createElement("span",null,_))}}return A}),[l,T,R.icon,P.icon]),[,L]=Gc(m,d),j=H(o,s,h,R.root,{[`${T}-block`]:i,[`${T}-sm`]:B==="small",[`${T}-lg`]:B==="large",[`${T}-vertical`]:L,[`${T}-shape-${f}`]:f==="round"},M,z),O=(A,{item:k})=>{if(!k.tooltip)return A;const _=dt(k.tooltip)?k.tooltip:{title:k.tooltip};return a.createElement(bo,{..._},A)};return a.createElement(G9,{...x,name:p,className:j,style:P.root,classNames:R,styles:P,itemRender:O,options:F,ref:t,prefixCls:T,direction:g,vertical:L})}),tV=eV;var bT={};Object.defineProperty(bT,"__esModule",{value:!0});var nV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},rV=bT.default=nV;function Rv(){return Rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rv.apply(this,arguments)}const oV=(e,t)=>a.createElement(gt,Rv({},e,{ref:t,icon:rV})),sV=a.forwardRef(oV);var xT={};Object.defineProperty(xT,"__esModule",{value:!0});var iV={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"},aV=xT.default=iV;function Tv(){return Tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tv.apply(this,arguments)}const lV=(e,t)=>a.createElement(gt,Tv({},e,{ref:t,icon:aV})),cV=a.forwardRef(lV);function Mv(){return typeof BigInt=="function"}function $T(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function xi(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",o=r.split("."),s=o[0]||"0",i=o[1]||"0";s==="0"&&i==="0"&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:s,decimalStr:i,fullStr:"".concat(l).concat(r)}}function Am(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ST(e){var t=e.toLowerCase().split("e"),n=nf(t,2),r=n[0],o=n[1],s=o===void 0?"0":o,i=r.startsWith("-"),l=i?r.slice(1):r,c=l.split("."),u=nf(c,2),d=u[0],m=d===void 0?"0":d,f=u[1],p=f===void 0?"":f,y="".concat(m).concat(p).replace(/^0+/,"")||"0";return{decimal:p,digits:y,exponent:Number(s),integer:m,negative:i}}function uV(e){var t=e.decimal,n=e.digits,r=e.exponent,o=e.integer,s=e.negative;if(n==="0")return"0";var i=o.replace(/^0+/,"").length,l=(t.match(/^0*/)||[""])[0].length,c=i||-l,u=c+r,d="";return u<=0?d="0.".concat("0".repeat(-u)).concat(n):u>=n.length?d="".concat(n).concat("0".repeat(u-n.length)):d="".concat(n.slice(0,u),".").concat(n.slice(u)),"".concat(s?"-":"").concat(d)}function CT(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function ii(e){var t=String(e);return Am(e)?CT(ST(t)):t.includes(".")&&Qx(t)?t.length-t.indexOf(".")-1:0}function Dm(e){var t=String(e);if(Am(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Mv()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Mv()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var n=ST(t),r=CT(n);t=r>100?uV(n):e.toFixed(r)}return xi(t).fullStr}function Qx(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 dV=function(){function e(t){if(zi(this,e),En(this,"origin",""),En(this,"negative",void 0),En(this,"integer",void 0),En(this,"decimal",void 0),En(this,"decimalLen",void 0),En(this,"empty",void 0),En(this,"nan",void 0),$T(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(Am(n)&&(n=Number(n)),n=typeof n=="string"?n:Dm(n),Qx(n)){var r=xi(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var s=o[1]||"0";this.decimal=BigInt(s),this.decimalLen=s.length}else this.nan=!0}return ji(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,o){var s=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(s),l=n.alignDecimal(s),c=r(i,l).toString(),u=o(s),d=xi(c),m=d.negativeStr,f=d.trimStr,p="".concat(m).concat(f.padStart(u+1,"0"));return new e("".concat(p.slice(0,-u),".").concat(p.slice(-u)))}},{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(o,s){return o+s},function(o){return o})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(o,s){return o*s},function(o){return o*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()?"":xi("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),fV=function(){function e(t){if(zi(this,e),En(this,"origin",""),En(this,"number",void 0),En(this,"empty",void 0),$T(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return ji(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 o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var s=Math.max(ii(this.number),ii(r));return new e(o.toFixed(s))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var o=this.number*r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var s=Math.max(ii(this.number),ii(r));return new e(o.toFixed(s))}},{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()?"":Am(this.number)&&ii(this.number)>100?String(this.number):Dm(this.number):this.origin}}]),e}();function oo(e){return Mv()?new dV(e):new fV(e)}function Pd(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=xi(e),s=o.negativeStr,i=o.integerStr,l=o.decimalStr,c="".concat(t).concat(l),u="".concat(s).concat(i);if(n>=0){var d=Number(l[n]);if(d>=5&&!r){var m=oo(e).add("".concat(s,"0.").concat("0".repeat(n)).concat(10-d));return Pd(m.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function mV(e,t){const n=a.useRef(null);function r(){try{const{selectionStart:s,selectionEnd:i,value:l}=e,c=l.substring(0,s),u=l.substring(i);n.current={start:s,end:i,value:l,beforeTxt:c,afterTxt:u}}catch{}}function o(){if(e&&n.current&&t)try{const{value:s}=e,{beforeTxt:i,afterTxt:l,start:c}=n.current;let u=s.length;if(s.startsWith(i))u=i.length;else if(s.endsWith(l))u=s.length-n.current.afterTxt.length;else{const d=i[c-1],m=s.indexOf(d,c-1);m!==-1&&(u=m+1)}e.setSelectionRange(u,u)}catch(s){fn(!1,`Something warning of cursor restore. Please fire issue about this: ${s.message}`)}}return[r,o]}const pV=200,gV=600;function hw({prefixCls:e,action:t,children:n,disabled:r,className:o,style:s,onStep:i}){const l=t==="up",c=a.useRef(),u=a.useRef([]),d=()=>{clearTimeout(c.current)},m=b=>{b.preventDefault(),d(),i(l,"handler");function x(){i(l,"handler"),c.current=setTimeout(x,pV)}c.current=setTimeout(x,gV)};a.useEffect(()=>()=>{d(),u.current.forEach(b=>{Ct.cancel(b)})},[]);const f=`${e}-action`,p=H(f,`${f}-${t}`,{[`${f}-${t}-disabled`]:r},o),y=()=>u.current.push(Ct(d));return a.createElement("span",{unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y,onMouseDown:b=>{m(b)},"aria-label":l?"Increase Value":"Decrease Value","aria-disabled":r,className:p,style:s},n||a.createElement("span",{unselectable:"on",className:`${e}-action-${t}-inner`}))}function yw(e){const t=typeof e=="number"?Dm(e):xi(e).fullStr;return t.includes(".")?xi(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const hV=()=>{const e=a.useRef(0),t=()=>{Ct.cancel(e.current)};return a.useEffect(()=>t,[]),n=>{t(),e.current=Ct(()=>{n()})}};function Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zl.apply(this,arguments)}const vw=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),bw=e=>{const t=oo(e);return t.isInvalidate()?null:t},yV=a.forwardRef((e,t)=>{const{mode:n="input",prefixCls:r="rc-input-number",className:o,style:s,classNames:i,styles:l,min:c,max:u,step:d=1,defaultValue:m,value:f,disabled:p,readOnly:y,upHandler:b,downHandler:x,keyboard:v,changeOnWheel:g=!1,controls:h=!0,prefix:$,suffix:C,stringMode:N,parser:S,formatter:E,precision:w,decimalSeparator:R,onChange:P,onInput:T,onPressEnter:M,onStep:z,onMouseDown:B,onClick:F,onMouseUp:L,onMouseLeave:j,onMouseMove:O,onMouseEnter:A,onMouseOut:k,changeOnBlur:_=!0,...D}=e,[V,W]=a.useState(!1),K=a.useRef(!1),q=a.useRef(!1),Y=a.useRef(!1),ee=a.useRef(null),ie=a.useRef(null);a.useImperativeHandle(t,()=>UO(ie.current,{focus:ve=>{Db(ie.current,ve)},blur:()=>{var ve;(ve=ie.current)==null||ve.blur()},nativeElement:ee.current}));const[ae,U]=a.useState(()=>oo(f??m));function Q(ve){f===void 0&&U(ve)}const Z=a.useCallback((ve,je)=>{if(!je)return w>=0?w:Math.max(ii(ve),ii(d))},[w,d]),ne=a.useCallback(ve=>{const je=String(ve);if(S)return S(je);let ce=je;return R&&(ce=ce.replace(R,".")),ce.replace(/[^\w.-]+/g,"")},[S,R]),oe=a.useRef(""),le=a.useCallback((ve,je)=>{if(E)return E(ve,{userTyping:je,input:String(oe.current)});let ce=typeof ve=="number"?Dm(ve):ve;if(!je){const Pe=Z(ce,je);Qx(ce)&&(R||Pe>=0)&&(ce=Pd(ce,R||".",Pe))}return ce},[E,Z,R]),[re,X]=a.useState(()=>{const ve=m??f;return ae.isInvalidate()&&["string","number"].includes(typeof ve)?Number.isNaN(ve)?"":ve:le(ae.toString(),!1)});oe.current=re;function se(ve,je){X(le(ve.isInvalidate()?ve.toString(!1):ve.toString(!je),je))}const ge=a.useMemo(()=>bw(u),[u,w]),de=a.useMemo(()=>bw(c),[c,w]),Se=a.useMemo(()=>!ge||!ae||ae.isInvalidate()?!1:ge.lessEquals(ae),[ge,ae]),ue=a.useMemo(()=>!de||!ae||ae.isInvalidate()?!1:ae.lessEquals(de),[de,ae]),[be,Ne]=mV(ie.current,V),we=ve=>ge&&!ve.lessEquals(ge)?ge:de&&!de.lessEquals(ve)?de:null,ze=ve=>!we(ve),he=(ve,je)=>{let ce=ve,Pe=ze(ce)||ce.isEmpty();if(!ce.isEmpty()&&!je&&(ce=we(ce)||ce,Pe=!0),!y&&!p&&Pe){const pe=ce.toString(),$e=Z(pe,je);return $e>=0&&(ce=oo(Pd(pe,".",$e)),ze(ce)||(ce=oo(Pd(pe,".",$e,!0)))),ce.equals(ae)||(Q(ce),P==null||P(ce.isEmpty()?null:vw(N,ce)),f===void 0&&se(ce,je)),ce}return ae},ke=hV(),Oe=ve=>{if(be(),oe.current=ve,X(ve),!q.current){const je=ne(ve),ce=oo(je);ce.isNaN()||he(ce,!0)}T==null||T(ve),ke(()=>{let je=ve;S||(je=ve.replace(/。/g,".")),je!==ve&&Oe(je)})},Ce=()=>{q.current=!0},Me=()=>{q.current=!1,Oe(ie.current.value)},xe=ve=>{Oe(ve.target.value)},Ee=vt((ve,je)=>{var $e;if(ve&&Se||!ve&&ue)return;K.current=!1;let ce=oo(Y.current?yw(d):d);ve||(ce=ce.negate());const Pe=(ae||oo(0)).add(ce.toString()),pe=he(Pe,!1);z==null||z(vw(N,pe),{offset:Y.current?yw(d):d,type:ve?"up":"down",emitter:je}),($e=ie.current)==null||$e.focus()}),Ve=ve=>{const je=oo(ne(re));let ce;je.isNaN()?ce=he(ae,ve):ce=he(je,ve),f!==void 0?se(ae,!1):ce.isNaN()||se(ce,!1)},qe=()=>{K.current=!0},me=ve=>{const{key:je,shiftKey:ce}=ve;K.current=!0,Y.current=ce,je==="Enter"&&(q.current||(K.current=!1),Ve(!1),M==null||M(ve)),v!==!1&&!q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(je)&&(Ee(je==="Up"||je==="ArrowUp","keyboard"),ve.preventDefault())},Re=()=>{K.current=!1,Y.current=!1};a.useEffect(()=>{if(g&&V){const ve=ce=>{Ee(ce.deltaY<0,"wheel"),ce.preventDefault()},je=ie.current;if(je)return je.addEventListener("wheel",ve,{passive:!1}),()=>je.removeEventListener("wheel",ve)}});const Te=()=>{_&&Ve(!1),W(!1),K.current=!1},Ue=ve=>{ie.current&&ve.target!==ie.current&&(ie.current.focus(),ve.preventDefault()),B==null||B(ve)};pd(()=>{ae.isInvalidate()||se(ae,!1)},[w,E]),pd(()=>{const ve=oo(f);U(ve);const je=oo(ne(re));(!ve.equals(je)||!K.current||E)&&se(ve,K.current)},[f]),pd(()=>{E&&Ne()},[re]);const Ge={prefixCls:r,onStep:Ee,className:i==null?void 0:i.action,style:l==null?void 0:l.action},Fe=a.createElement(hw,Zl({},Ge,{action:"up",disabled:Se}),b),et=a.createElement(hw,Zl({},Ge,{action:"down",disabled:ue}),x);return a.createElement("div",{ref:ee,className:H(r,`${r}-mode-${n}`,o,i==null?void 0:i.root,{[`${r}-focused`]:V,[`${r}-disabled`]:p,[`${r}-readonly`]:y,[`${r}-not-a-number`]:ae.isNaN(),[`${r}-out-of-range`]:!ae.isInvalidate()&&!ze(ae)}),style:{...l==null?void 0:l.root,...s},onMouseDown:Ue,onMouseUp:L,onMouseLeave:j,onMouseMove:O,onMouseEnter:A,onMouseOut:k,onClick:F,onFocus:()=>{W(!0)},onBlur:Te,onKeyDown:me,onKeyUp:Re,onCompositionStart:Ce,onCompositionEnd:Me,onBeforeInput:qe},n==="spinner"&&h&&et,$!==void 0&&a.createElement("div",{className:H(`${r}-prefix`,i==null?void 0:i.prefix),style:l==null?void 0:l.prefix},$),a.createElement("input",Zl({autoComplete:"off",role:"spinbutton","aria-valuemin":c,"aria-valuemax":u,"aria-valuenow":ae.isInvalidate()?null:ae.toString(),step:d,ref:ie,className:H(`${r}-input`,i==null?void 0:i.input),style:l==null?void 0:l.input,value:re,onChange:xe,disabled:p,readOnly:y},D)),C!==void 0&&a.createElement("div",{className:H(`${r}-suffix`,i==null?void 0:i.suffix),style:l==null?void 0:l.suffix},C),n==="spinner"&&h&&Fe,n==="input"&&h&&a.createElement("div",{className:H(`${r}-actions`,i==null?void 0:i.actions),style:l==null?void 0:l.actions},Fe,et))}),vV=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:s,fontSizeLG:i,fontSizeSM:l,borderRadiusLG:c,borderRadiusSM:u,colorBgContainerDisabled:d,lineWidth:m,antCls:f}=e,[p,y]=rn(f,"space-addon");return{[t]:[{...Ft(e),display:"inline-flex",alignItems:"center",gap:0,whiteSpace:"nowrap",paddingInline:r,margin:0,borderWidth:m,borderStyle:"solid",borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:i,borderRadius:c},"&-small":{paddingInline:s,borderRadius:u,fontSize:l},"&-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},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[p("addon-border-color")]:o,[p("addon-background")]:d,[p("addon-border-color-outlined")]:o,[p("addon-background-filled")]:d,borderColor:y("addon-border-color"),background:y("addon-background"),"&-variant-outlined":{[p("addon-border-color")]:y("addon-border-color-outlined")},"&-variant-filled":{[p("addon-border-color")]:"transparent",[p("addon-background")]:y("addon-background-filled"),[`&${t}-disabled`]:{[p("addon-border-color")]:o,[p("addon-background")]:d}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[p("addon-border-color-outlined")]:e.colorError,[p("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[p("addon-border-color-outlined")]:e.colorWarning,[p("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},bV=Tt("Addon",e=>[vV(e),Qc(e,{focus:!1})]),wT=J.forwardRef((e,t)=>{const{className:n,children:r,style:o,prefixCls:s,variant:i="outlined",disabled:l,status:c,...u}=e,{getPrefixCls:d,direction:m}=J.useContext(ct),f=d("space-addon",s),[p,y]=bV(f),{compactItemClassnames:b,compactSize:x}=qs(f,m),v=qa(f,c),g=H(f,p,b,y,`${f}-variant-${i}`,v,{[`${f}-${x}`]:x,[`${f}-disabled`]:l},n);return J.createElement("div",{ref:t,className:g,style:o,...u},r)}),xV=e=>{const t=e.handleVisible??"auto",n=e.controlHeightSM-e.lineWidth*2;return{...Vi(e),controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Gt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:t===!0?1:0,handleVisibleWidth:t===!0?n:0}},$V=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:s,inputFontSizeLG:i,colorError:l,paddingInlineSM:c,paddingBlockSM:u,paddingBlockLG:d,paddingInlineLG:m,colorIcon:f,colorTextDisabled:p,motionDurationMid:y,handleHoverColor:b,handleOpacity:x,paddingInline:v,paddingBlock:g,handleBg:h,handleActiveBg:$,inputAffixPadding:C,borderRadiusSM:N,controlWidth:S,handleBorderColor:E,filledHandleBg:w,lineHeightLG:R,antCls:P}=e,T=`${G(n)} ${r} ${E}`,[M,z]=rn(P,"input-number");return[{[t]:{...Ft(e),...km(e),[M("input-padding-block")]:G(g),[M("input-padding-inline")]:G(v),display:"inline-flex",width:S,margin:0,paddingBlock:0,borderRadius:o,...U4(e,{[`${t}-actions`]:{background:h,[`${t}-action-down`]:{borderBlockStart:T}}}),...Q4(e,{[`${t}-actions`]:{background:w,[`${t}-action-down`]:{borderBlockStart:T}},"&:focus-within":{[`${t}-actions`]:{background:h}}}),...Z4(e,{[`${t}-actions`]:{background:h,[`${t}-action-down`]:{borderBlockStart:T}}}),...X4(e),[`&${t}-borderless`]:{paddingBlock:0,[M("input-padding-block")]:G(e.calc(g).add(n).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[M("input-padding-block")]:G(e.calc(u).add(n).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[M("input-padding-block")]:G(e.calc(d).add(n).equal())},"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:l}},[`${t}-input`]:{...Ft(e),width:"100%",paddingBlock:z("input-padding-block"),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:0,outline:0,transition:`all ${y} linear`,appearance:"textfield",fontSize:"inherit",lineHeight:"inherit",...eT(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},[`&-disabled ${t}-input`]:{cursor:"not-allowed",color:e.colorTextDisabled}}},{[t]:{[`${t}-action`]:{...Kc(),userSelect:"none",overflow:"hidden",fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",transition:`all ${y} linear`,[`&:active:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{background:$},[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{color:b},[`&${t}-action-up-disabled, &${t}-action-down-disabled`]:{cursor:"not-allowed",color:p}},"&-mode-input":{overflow:"hidden",[`${t}-actions`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:x,height:"100%",borderRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${y}`,overflow:"hidden",[`${t}-action`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[`${t}-action`]:{color:f,height:"50%",borderInlineStart:T,[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{height:"60%"}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:"none"}}},[`&${t}-mode-spinner`]:{padding:0,width:"auto",[`${t}-action`]:{flex:"none",paddingInline:z("input-padding-inline"),"&-up":{borderInlineStart:T},"&-down":{borderInlineEnd:T}},[`${t}-input`]:{textAlign:"center",paddingInline:z("input-padding-inline")}}}},{[t]:{"&-lg":{[M("input-padding-block")]:G(d),[M("input-padding-inline")]:G(m),paddingBlock:0,fontSize:i,lineHeight:R},"&-sm":{[M("input-padding-block")]:G(u),[M("input-padding-inline")]:G(c),paddingBlock:0,fontSize:s,borderRadius:N}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:"flex",flex:"none",alignItems:"center",alignSelf:"center",pointerEvents:"none"},[`${t}-prefix`]:{marginInlineEnd:C},[`${t}-suffix`]:{height:"100%",marginInlineStart:C,transition:`margin ${y}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]},SV=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},CV=Tt("InputNumber",e=>{const t=Rt(e,Hi(e));return[$V(t),SV(t),Qc(t)]},xV,{unitless:{handleOpacity:!0},resetFont:!1}),wV=a.forwardRef((e,t)=>{const n=a.useRef(null);a.useImperativeHandle(t,()=>n.current);const{rootClassName:r,size:o,disabled:s,prefixCls:i,addonBefore:l,addonAfter:c,prefix:u,suffix:d,bordered:m,readOnly:f,status:p,controls:y=!0,variant:b,className:x,style:v,classNames:g,styles:h,mode:$,...C}=e,{direction:N,className:S,style:E,styles:w,classNames:R}=Pt("inputNumber"),P=a.useContext(cr),T=s??P,M=a.useMemo(()=>!y||T||f?!1:y,[y,T,f]),{compactSize:z,compactItemClassnames:B}=qs(i,N);let F=$==="spinner"?a.createElement(zo,null):a.createElement(cV,null),L=$==="spinner"?a.createElement(sV,null):a.createElement(Rx,null);const j=typeof M=="boolean"?M:void 0;dt(M)&&(F=M.upIcon||F,L=M.downIcon||L);const{hasFeedback:O,isFormItemInput:A,feedbackIcon:k}=a.useContext(Hn),_=Cn(ae=>o??z??ae),[D,V]=tl("inputNumber",b,m),W=O&&a.createElement(a.Fragment,null,k),K={...e,size:_,disabled:T,controls:M},q=Mt(E),Y=Mt(v),[ee,ie]=Ot([R,g],[w,q,h,Y],{props:K});return a.createElement(yV,{ref:n,mode:$,disabled:T,className:H(x,r,ee.root,S,B,qa(i,p,O),{[`${i}-${D}`]:V,[`${i}-lg`]:_==="large",[`${i}-sm`]:_==="small",[`${i}-rtl`]:N==="rtl",[`${i}-in-form-item`]:A,[`${i}-without-controls`]:!M}),style:ie.root,upHandler:F,downHandler:L,prefixCls:i,readOnly:f,controls:j,prefix:u,suffix:W||d,classNames:ee,styles:ie,...C})}),ET=a.forwardRef((e,t)=>{const{addonBefore:n,addonAfter:r,prefixCls:o,className:s,status:i,rootClassName:l,...c}=e,{getPrefixCls:u}=Pt("inputNumber"),d=u("input-number",o),{status:m}=a.useContext(Hn),f=nu(m,i),p=on(d),[y,b]=CV(d,p),x=n||r,v=a.createElement(wV,{ref:t,...c,prefixCls:d,status:f,className:H(b,p,y,s),rootClassName:x?void 0:l});if(x){const g=C=>C?a.createElement(wT,{className:H(`${d}-addon`,b,y),variant:e.variant,disabled:e.disabled,status:f},a.createElement(Ri,{form:!0},C)):null,h=g(n),$=g(r);return a.createElement(mx,{rootClassName:l},h,v,$)}return v}),wf=ET,EV=e=>a.createElement(to,{theme:{components:{InputNumber:{handleVisible:!0}}}},a.createElement(ET,{...e}));wf._InternalPanelDoNotUseOrYouWillBeFired=EV;function IV(e){return!!(e.addonBefore||e.addonAfter)}function PV(e){return!!(e.prefix||e.suffix||e.allowClear)}function xw(e,t,n){const r=t.cloneNode(!0),o=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=(...s)=>{t.setSelectionRange(...s)},o}function Ef(e,t,n,r){if(!n)return;let o=t;if(t.type==="click"){o=xw(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=xw(t,e,r),n(o);return}n(o)}function Ov(){return Ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ov.apply(this,arguments)}const IT=J.forwardRef((e,t)=>{var O,A,k;const{inputElement:n,children:r,prefixCls:o,prefix:s,suffix:i,addonBefore:l,addonAfter:c,className:u,style:d,disabled:m,readOnly:f,focused:p,triggerFocus:y,allowClear:b,value:x,handleReset:v,hidden:g,classes:h,classNames:$,dataAttrs:C,styles:N,components:S,onClear:E}=e,w=r??n,R=(S==null?void 0:S.affixWrapper)||"span",P=(S==null?void 0:S.groupWrapper)||"span",T=(S==null?void 0:S.wrapper)||"span",M=(S==null?void 0:S.groupAddon)||"span",z=a.useRef(null),B=_=>{var D;(D=z.current)!=null&&D.contains(_.target)&&(y==null||y())},F=PV(e);let L=a.cloneElement(w,{value:x,className:H((O=w.props)==null?void 0:O.className,!F&&($==null?void 0:$.variant))||null});const j=a.useRef(null);if(J.useImperativeHandle(t,()=>({nativeElement:j.current||z.current})),F){let _=null;if(b){const K=!m&&!f&&x&&!(typeof b=="object"&&b.disabled),q=`${o}-clear-icon`,Y=typeof b=="object"&&(b!=null&&b.clearIcon)?b.clearIcon:"✖";_=J.createElement("button",{type:"button",onClick:ee=>{v==null||v(ee),E==null||E()},onMouseDown:ee=>ee.preventDefault(),className:H(q,{[`${q}-hidden`]:!K,[`${q}-has-suffix`]:!!i},$==null?void 0:$.clear),style:N==null?void 0:N.clear},Y)}const D=`${o}-affix-wrapper`,V=H(D,{[`${o}-disabled`]:m,[`${D}-disabled`]:m,[`${D}-focused`]:p,[`${D}-readonly`]:f,[`${D}-input-with-clear-btn`]:i&&b&&x},h==null?void 0:h.affixWrapper,$==null?void 0:$.affixWrapper,$==null?void 0:$.variant),W=(i||b)&&J.createElement("span",{className:H(`${o}-suffix`,$==null?void 0:$.suffix),style:N==null?void 0:N.suffix},_,i);L=J.createElement(R,Ov({className:V,style:N==null?void 0:N.affixWrapper,onClick:B},C==null?void 0:C.affixWrapper,{ref:z}),s&&J.createElement("span",{className:H(`${o}-prefix`,$==null?void 0:$.prefix),style:N==null?void 0:N.prefix},s),L,W)}if(IV(e)){const _=`${o}-group`,D=`${_}-addon`,V=`${_}-wrapper`,W=H(`${o}-wrapper`,_,h==null?void 0:h.wrapper,$==null?void 0:$.wrapper),K=H(V,{[`${V}-disabled`]:m},h==null?void 0:h.group,$==null?void 0:$.groupWrapper);L=J.createElement(P,{className:K,ref:j},J.createElement(T,{className:W},l&&J.createElement(M,{className:D},l),L,c&&J.createElement(M,{className:D},c)))}return J.cloneElement(L,{className:H((A=L.props)==null?void 0:A.className,u)||null,style:{...(k=L.props)==null?void 0:k.style,...d},hidden:g})});function PT(e,t){return a.useMemo(()=>{let n={};t&&(n.show=typeof t=="object"&&t.formatter?t.formatter:!!t),n={...n,...e};const{show:r,...o}=n;return{...o,show:!!r,showFormatter:typeof r=="function"?r:void 0,strategy:o.strategy||(s=>s.length)}},[e,t])}function NT({countConfig:e,value:t,maxLength:n}){return a.useMemo(()=>{const r=e.max??n,o=e.strategy(t),s=!!r&&o>r,i=Number(r)>0,l=e.show?e.showFormatter?e.showFormatter({value:t,count:o,maxLength:r}):`${o}${i?` / ${r}`:""}`:void 0;return{mergedMax:r,isOutOfRange:s,dataCount:l}},[e,n,t])}function RT({countConfig:e,getTarget:t}){const[n,r]=a.useState(null),o=a.useRef(t);return a.useEffect(()=>{o.current=t},[t]),a.useEffect(()=>{var i;n&&((i=o.current())==null||i.setSelectionRange(...n),r(null))},[n]),a.useCallback((i,l)=>{var u,d;let c=i;return!l&&e.exceedFormatter&&e.max&&e.strategy(i)>e.max&&(c=e.exceedFormatter(i,{max:e.max}),i!==c&&r([((u=o.current())==null?void 0:u.selectionStart)||0,((d=o.current())==null?void 0:d.selectionEnd)||0])),c},[e])}function TT(e,t){const[n,r]=nn(e,t),o=n==null?"":String(n);return{value:n,setValue:r,formatValue:o}}function If(){return If=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},If.apply(this,arguments)}const NV=a.forwardRef((e,t)=>{const{autoComplete:n,onChange:r,onFocus:o,onBlur:s,onPressEnter:i,onKeyDown:l,onKeyUp:c,prefixCls:u="rc-input",disabled:d,htmlSize:m,className:f,maxLength:p,suffix:y,showCount:b,count:x,type:v="text",classes:g,classNames:h,styles:$,onCompositionStart:C,onCompositionEnd:N,...S}=e,[E,w]=a.useState(!1),R=a.useRef(!1),P=a.useRef(!1),T=a.useRef(null),M=a.useRef(null),z=U=>{T.current&&Db(T.current,U)},{setValue:B,formatValue:F}=TT(e.defaultValue,e.value),L=PT(x,b),{isOutOfRange:j,dataCount:O}=NT({countConfig:L,value:F,maxLength:p}),A=RT({countConfig:L,getTarget:()=>T.current});a.useImperativeHandle(t,()=>{var U;return{focus:z,blur:()=>{var Q;(Q=T.current)==null||Q.blur()},setSelectionRange:(Q,Z,ne)=>{var oe;(oe=T.current)==null||oe.setSelectionRange(Q,Z,ne)},select:()=>{var Q;(Q=T.current)==null||Q.select()},input:T.current,nativeElement:((U=M.current)==null?void 0:U.nativeElement)||T.current}}),a.useEffect(()=>{P.current&&(P.current=!1),w(U=>U&&d?!1:U)},[d]);const k=(U,Q,Z)=>{const ne=A(Q,R.current);Z.source==="compositionEnd"&&Q===ne||(B(ne),T.current&&Ef(T.current,U,r,ne))},_=U=>{k(U,U.target.value,{source:"change"})},D=U=>{R.current=!1,k(U,U.currentTarget.value,{source:"compositionEnd"}),N==null||N(U)},V=U=>{i&&U.key==="Enter"&&!P.current&&!U.nativeEvent.isComposing&&(P.current=!0,i(U)),l==null||l(U)},W=U=>{U.key==="Enter"&&(P.current=!1),c==null||c(U)},K=U=>{w(!0),o==null||o(U)},q=U=>{P.current&&(P.current=!1),w(!1),s==null||s(U)},Y=U=>{B(""),z(),T.current&&Ef(T.current,U,r)},ee=j&&`${u}-out-of-range`,ie=()=>{const U=Dt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return J.createElement("input",If({autoComplete:n},U,{onChange:_,onFocus:K,onBlur:q,onKeyDown:V,onKeyUp:W,className:H(u,{[`${u}-disabled`]:d},h==null?void 0:h.input),style:$==null?void 0:$.input,ref:T,size:m,type:v,onCompositionStart:Q=>{R.current=!0,C==null||C(Q)},onCompositionEnd:D}))},ae=()=>y||L.show?J.createElement(J.Fragment,null,L.show&&J.createElement("span",{className:H(`${u}-show-count-suffix`,{[`${u}-show-count-has-suffix`]:!!y},h==null?void 0:h.count),style:{...$==null?void 0:$.count}},O),y):null;return J.createElement(IT,If({},S,{prefixCls:u,className:H(f,ee),handleReset:Y,value:F,focused:E,triggerFocus:z,suffix:ae(),disabled:d,classes:g,classNames:h,styles:$,ref:M}),ie())}),RV=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,TV=["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"],mg={};let Ir;function MV(e,t=!1){const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&mg[n])return mg[n];const r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),s=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c={sizingStyle:TV.map(u=>`${u}:${r.getPropertyValue(u)}`).join(";"),paddingSize:s,borderSize:i,boxSizing:o};return t&&n&&(mg[n]=c),c}function OV(e,t=!1,n=null,r=null){Ir||(Ir=document.createElement("textarea"),Ir.setAttribute("tab-index","-1"),Ir.setAttribute("aria-hidden","true"),Ir.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ir)),e.getAttribute("wrap")?Ir.setAttribute("wrap",e.getAttribute("wrap")):Ir.removeAttribute("wrap");const{paddingSize:o,borderSize:s,boxSizing:i,sizingStyle:l}=MV(e,t);Ir.setAttribute("style",`${l};${RV}`),Ir.value=e.value||e.placeholder||"";let c,u,d,m=Ir.scrollHeight;if(i==="border-box"?m+=s:i==="content-box"&&(m-=o),n!==null||r!==null){Ir.value=" ";const p=Ir.scrollHeight-o;n!==null&&(c=p*n,i==="border-box"&&(c=c+o+s),m=Math.max(c,m)),r!==null&&(u=p*r,i==="border-box"&&(u=u+o+s),d=m>u?void 0:"hidden",m=Math.min(u,m))}const f={height:m,overflowY:d,resize:"none"};return c&&(f.minHeight=c),u&&(f.maxHeight=u),f}function _v(){return _v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_v.apply(this,arguments)}const pg=0,gg=1,hg=2,_V=a.forwardRef((e,t)=>{const{prefixCls:n,defaultValue:r,value:o,autoSize:s,onResize:i,className:l,style:c,disabled:u,onChange:d,onInternalAutoSize:m,...f}=e,[p,y]=nn(r,o),b=p??"",x=B=>{y(B.target.value),d==null||d(B)},v=a.useRef(null);a.useImperativeHandle(t,()=>({textArea:v.current}));const[g,h]=a.useMemo(()=>s&&typeof s=="object"?[s.minRows,s.maxRows]:[],[s]),$=!!s,[C,N]=a.useState(hg),[S,E]=a.useState(),w=()=>{N(pg)};It(()=>{$&&w()},[o,g,h,$]),It(()=>{if(C===pg)N(gg);else if(C===gg){const B=OV(v.current,!1,g,h);N(hg),E(B)}},[C]);const R=a.useRef(void 0),P=()=>{R.current!==void 0&&Ct.cancel(R.current)},T=B=>{C===hg&&(i==null||i(B),s&&(P(),R.current=Ct(()=>{w()})))};a.useEffect(()=>P,[]);const z={...c,...$?S:null};return(C===pg||C===gg)&&(z.overflowY="hidden",z.overflowX="hidden"),a.createElement(ir,{onResize:T,disabled:!(s||i)},a.createElement("textarea",_v({},f,{ref:v,style:z,className:H(n,l,{[`${n}-disabled`]:u}),disabled:u,value:b,onChange:x})))});function zv(){return zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zv.apply(this,arguments)}const zV=J.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:o,allowClear:s,maxLength:i,onCompositionStart:l,onCompositionEnd:c,suffix:u,prefixCls:d="rc-textarea",showCount:m,count:f,className:p,style:y,disabled:b,hidden:x,classNames:v,styles:g,onResize:h,onClear:$,onPressEnter:C,readOnly:N,autoSize:S,onKeyDown:E,...w},R)=>{const[P,T]=J.useState(!1),M=J.useRef(!1),[z,B]=J.useState(null),F=a.useRef(null),L=a.useRef(null),j=()=>{var le;return((le=L.current)==null?void 0:le.textArea)||null},{setValue:O,formatValue:A}=TT(e,t),k=PT(f,m),{isOutOfRange:_,dataCount:D}=NT({countConfig:k,value:A,maxLength:i}),V=RT({countConfig:k,getTarget:()=>{var le;return((le=L.current)==null?void 0:le.textArea)||null}}),W=()=>{var le;(le=j())==null||le.focus()};a.useImperativeHandle(R,()=>{var le;return{resizableTextArea:L.current,focus:W,blur:()=>{var re;(re=j())==null||re.blur()},nativeElement:((le=F.current)==null?void 0:le.nativeElement)||j()}}),a.useEffect(()=>{T(le=>!b&&le)},[b]);const K=(le,re)=>{const X=V(re,M.current);O(X),Ef(le.currentTarget,le,o,X)},q=le=>{M.current=!0,l==null||l(le)},Y=le=>{M.current=!1,K(le,le.currentTarget.value),c==null||c(le)},ee=le=>{K(le,le.target.value)},ie=le=>{le.key==="Enter"&&C&&!le.nativeEvent.isComposing&&C(le),E==null||E(le)},ae=le=>{T(!0),n==null||n(le)},U=le=>{T(!1),r==null||r(le)},Q=le=>{O(""),W();const re=j();re&&Ef(re,le,o)};let Z=u;k.show&&(Z=J.createElement(J.Fragment,null,Z,J.createElement("span",{className:H(`${d}-data-count`,v==null?void 0:v.count),style:g==null?void 0:g.count},D)));const ne=le=>{var re;h==null||h(le),(re=j())!=null&&re.style.height&&B(!0)},oe=!S&&!m&&!s;return J.createElement(IT,{ref:F,value:A,allowClear:s,handleReset:Q,suffix:Z,prefixCls:d,classNames:{...v,affixWrapper:H(v==null?void 0:v.affixWrapper,{[`${d}-show-count`]:m,[`${d}-textarea-allow-clear`]:s})},disabled:b,focused:P,className:H(p,_&&`${d}-out-of-range`),style:{...y,...z&&!oe?{height:"auto"}:{}},dataAttrs:typeof D=="string"?{affixWrapper:{"data-count":D}}:void 0,styles:g,hidden:x,readOnly:N,onClear:$},J.createElement(_V,zv({},w,{autoSize:S,maxLength:i,onKeyDown:ie,onChange:ee,onFocus:ae,onBlur:U,onCompositionStart:q,onCompositionEnd:Y,className:H(v==null?void 0:v.textarea),style:{resize:y==null?void 0:y.resize,...g==null?void 0:g.textarea},disabled:b,prefixCls:d,onResize:ne,ref:L,readOnly:N})))});function MT(e,t){const n=a.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,s,i,l;(o=e.current)!=null&&o.input&&((s=e.current)==null?void 0:s.input.getAttribute("type"))==="password"&&((i=e.current)!=null&&i.input.hasAttribute("value"))&&((l=e.current)==null||l.input.removeAttribute("value"))}))};return a.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[t]),r}function jV(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const au=a.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:s,disabled:i,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:m,addonBefore:f,className:p,style:y,styles:b,rootClassName:x,onChange:v,classNames:g,variant:h,...$}=e,{getPrefixCls:C,direction:N,allowClear:S,autoComplete:E,className:w,style:R,classNames:P,styles:T}=Pt("input"),M=C("input",n),z=a.useRef(null),B=on(M),[F,L]=tT(M,x);nT(M,B);const{compactSize:j,compactItemClassnames:O}=qs(M,N),A=Cn(ge=>s??j??ge),k=J.useContext(cr),_=i??k,D={...e,size:A,disabled:_},V=Mt(R),W=Mt(y),[K,q]=Ot([P,g],[T,V,b,W],{props:D}),{status:Y,hasFeedback:ee,feedbackIcon:ie}=a.useContext(Hn),ae=nu(Y,o),U=jV(e)||!!ee;a.useRef(U);const Q=MT(z,!0),Z=ge=>{Q(),l==null||l(ge)},ne=ge=>{Q(),c==null||c(ge)},oe=ge=>{Q(),v==null||v(ge)},le=(ee||u)&&J.createElement(J.Fragment,null,u,ee&&ie),re=EN({allowClear:d,contextAllowClear:S,componentName:"Input"}),[X,se]=tl("input",h,r);return J.createElement(NV,{ref:Tn(t,z),prefixCls:M,autoComplete:E,...$,disabled:_,onBlur:Z,onFocus:ne,style:q.root,styles:q,suffix:le,allowClear:re,className:H(p,x,L,B,O,w,K.root),onChange:oe,addonBefore:f&&J.createElement(Ri,{form:!0,space:!0},f),addonAfter:m&&J.createElement(Ri,{form:!0,space:!0},m),classNames:{...K,input:H({[`${M}-sm`]:A==="small",[`${M}-lg`]:A==="large",[`${M}-rtl`]:N==="rtl"},K.input,F),variant:H({[`${M}-${X}`]:se},qa(M,ae)),affixWrapper:H({[`${M}-affix-wrapper-sm`]:A==="small",[`${M}-affix-wrapper-lg`]:A==="large",[`${M}-affix-wrapper-rtl`]:N==="rtl"},F),wrapper:H({[`${M}-group-rtl`]:N==="rtl"},F),groupWrapper:H({[`${M}-group-wrapper-sm`]:A==="small",[`${M}-group-wrapper-lg`]:A==="large",[`${M}-group-wrapper-rtl`]:N==="rtl",[`${M}-group-wrapper-${X}`]:se},qa(`${M}-group-wrapper`,ae,ee),F)}})});function $w(e){return["small","middle","medium","large"].includes(e)}function Sw(e){return e?Rn(e):!1}const OT=J.createContext({latestIndex:0}),BV=OT.Provider,LV=e=>{const{className:t,prefix:n,index:r,children:o,separator:s,style:i,classNames:l,styles:c}=e,{latestIndex:u}=a.useContext(OT);return $n(o)?a.createElement(a.Fragment,null,a.createElement("div",{className:t,style:i},o),r<u&&s&&a.createElement("span",{className:H(`${n}-item-separator`,l==null?void 0:l.separator),style:c==null?void 0:c.separator},s)):null},kV=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"}}}},AV=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},DV=Tt("Space",e=>{const t=Rt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[kV(t),AV(t)]},()=>({}),{resetStyle:!1}),FV=a.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,size:o,className:s,style:i,classNames:l,styles:c}=Pt("space"),{size:u=o??"small",align:d,className:m,rootClassName:f,children:p,direction:y,orientation:b,prefixCls:x,split:v,separator:g,style:h,vertical:$,wrap:C=!1,classNames:N,styles:S,...E}=e,[w,R]=Array.isArray(u)?u:[u,u],P=$w(R),T=$w(w),M=Sw(R),z=Sw(w),B=zn(p,{keepEmpty:!0}),[F,L]=Gc(b,$,y),j=d===void 0&&!L?"center":d,O=g??v,A=n("space",x),[k,_]=DV(A),D={...e,size:u,orientation:F,align:j},[V,W]=Ot([l,N],[c,S],{props:D}),K=H(A,s,k,`${A}-${F}`,{[`${A}-rtl`]:r==="rtl",[`${A}-align-${j}`]:j,[`${A}-gap-row-${R}`]:P,[`${A}-gap-col-${w}`]:T},m,f,_,V.root),q=H(`${A}-item`,V.item),Y=B.map((ae,U)=>{const Q=(ae==null?void 0:ae.key)||`${q}-${U}`;return a.createElement(LV,{prefix:A,classNames:V,styles:W,className:q,key:Q,index:U,separator:O,style:W.item},ae)}),ee=a.useMemo(()=>({latestIndex:B.reduce((U,Q,Z)=>$n(Q)?Z:U,0)}),[B]);if(B.length===0)return null;const ie={};return C&&(ie.flexWrap="wrap"),!T&&z&&(ie.columnGap=w),!P&&M&&(ie.rowGap=R),a.createElement("div",{ref:t,className:K,style:{...ie,...W.root,...i,...h},...E},a.createElement(BV,{value:ee},Y))}),Vt=FV;Vt.Compact=mx;Vt.Addon=wT;const _T=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=a.useContext(ct),{prefixCls:o,type:s="default",danger:i,disabled:l,loading:c,onClick:u,htmlType:d,children:m,className:f,menu:p,arrow:y,autoFocus:b,trigger:x,align:v,open:g,onOpenChange:h,placement:$,getPopupContainer:C,href:N,icon:S=a.createElement(Bm,null),title:E,buttonsRender:w=ie=>ie,mouseEnterDelay:R,mouseLeaveDelay:P,overlayClassName:T,overlayStyle:M,destroyOnHidden:z,destroyPopupOnHide:B,dropdownRender:F,popupRender:L,...j}=e,O=n("dropdown",o),A=`${O}-button`,_={menu:p,arrow:y,autoFocus:b,align:v,disabled:l,trigger:l?[]:x,onOpenChange:h,getPopupContainer:C||t,mouseEnterDelay:R,mouseLeaveDelay:P,classNames:{root:T},styles:{root:M},destroyOnHidden:z,popupRender:L||F},{compactSize:D,compactItemClassnames:V}=qs(O,r),W=H(A,V,f);"destroyPopupOnHide"in e&&(_.destroyPopupOnHide=B),"open"in e&&(_.open=g),"placement"in e?_.placement=$:_.placement=r==="rtl"?"bottomLeft":"bottomRight";const K=a.createElement(Xe,{type:s,danger:i,disabled:l,loading:c,onClick:u,htmlType:d,href:N,title:E},m),q=a.createElement(Xe,{type:s,danger:i,icon:S}),[Y,ee]=w([K,q]);return a.createElement(Vt.Compact,{className:W,size:D,block:!0,...j},Y,a.createElement(Lm,{..._},ee))};_T.__ANT_BUTTON=!0;const Jx=Lm;Jx.Button=_T;const HV=(e,t)=>$n(e)?dt(e)&&!a.isValidElement(e)?{...t,...e}:{...t,title:e}:null;function Pf(e){const[t,n]=a.useState(e);return a.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const VV=e=>{const{componentCls:t,motionDurationFast:n,motionEaseInOut:r}=e,o=`${t}-show-help`,s=`${t}-show-help-item`;return{[o]:{transition:`opacity ${n} ${r}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[s]:{overflow:"hidden",transition:`${["height","opacity","transform"].map(i=>`${i} ${n} ${r}`).join(", ")} !important`,[`&${s}-appear, &${s}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${s}-leave-active`]:{transform:"translateY(-5px)"}}}}},WV=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${G(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, input[type='radio']:focus, input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${G(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Cw=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},KV=e=>{const{componentCls:t}=e;return{[t]:{...Ft(e),...WV(e),[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":{...Cw(e,e.controlHeightSM)},"&-large":{...Cw(e,e.controlHeightLG)}}}},UV=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:s,labelColor:i,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:m}=e,[f]=rn(o,"grid");return{[t]:{...Ft(e),marginBottom:m,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${o}-row`]:{display:"none"},[`${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:c,color:i,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:s,fontSize:e.fontSize,fontFamily:"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:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{[f("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(> ${o}-switch:only-child, > ${o}-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:hx,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},ai=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),qV=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,
${t}-col-xl-24${n}-label`]:ai(e)}}},GV=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},XV=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:ai(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},YV=e=>{const{componentCls:t,formItemCls:n,antCls:r,verticalLabelHeight:o}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:o},[`${n}-control`]:{width:"100%"},[`${n}-label,
${r}-col-24${n}-label,
${r}-col-xl-24${n}-label`]:ai(e)},[`@media (max-width: ${G(e.screenXSMax)})`]:[XV(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:ai(e)}}}],[`@media (max-width: ${G(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:ai(e)}}},[`@media (max-width: ${G(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:ai(e)}}},[`@media (max-width: ${G(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:ai(e)}}}}},QV=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,verticalLabelHeight:e.labelHeight??"auto",labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),zT=(e,t)=>Rt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Zx=Tt("Form",(e,{rootPrefixCls:t})=>{const n=zT(e,t);return[KV(n),UV(n),VV(n),qV(n),GV(n),YV(n),gx(n),hx]},QV,{order:-1e3}),ww=[];function yg(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const jT=({help:e,helpStatus:t,errors:n=ww,warnings:r=ww,className:o,fieldId:s,onVisibleChanged:i})=>{const{prefixCls:l}=a.useContext($x),{classNames:c,styles:u}=a.useContext(_o),d=`${l}-item-explain`,m=on(l),[f,p]=Zx(l,m),y=a.useMemo(()=>cf(l),[l]),b=Pf(n),x=Pf(r),v=bn(e),g=a.useMemo(()=>v?[yg(e,"help",t)]:[].concat($t(b.map((C,N)=>yg(C,"error","error",N))),$t(x.map((C,N)=>yg(C,"warning","warning",N)))),[e,t,v,b,x]),h=a.useMemo(()=>{const C={};return g.forEach(({key:N})=>{C[N]=(C[N]||0)+1}),g.map((N,S)=>({...N,key:C[N.key]>1?`${N.key}-fallback-${S}`:N.key}))},[g]),$={};return s&&($.id=`${s}_help`),a.createElement(fr,{motionDeadline:y.motionDeadline,motionName:`${l}-show-help`,visible:!!h.length,onVisibleChanged:i},C=>{const{className:N,style:S}=C;return a.createElement("div",{...$,className:H(d,N,c==null?void 0:c.help,p,m,o,f),style:{...u==null?void 0:u.help,...S}},a.createElement(KP,{keys:h,...cf(l),motionName:`${l}-show-help-item`,component:!1},E=>{const{key:w,error:R,errorStatus:P,className:T,style:M}=E;return a.createElement("div",{key:w,className:H(T,c==null?void 0:c.helpItem,{[`${d}-${P}`]:P}),style:{...u==null?void 0:u.helpItem,...M}},R)}))})},JV=(e,t)=>{const n=a.useContext(cr),{getPrefixCls:r,direction:o,requiredMark:s,colon:i,scrollToFirstError:l,className:c,style:u,styles:d,classNames:m,tooltip:f,labelAlign:p,labelWrap:y}=Pt("form"),{prefixCls:b,className:x,rootClassName:v,size:g,disabled:h=n,form:$,colon:C,labelAlign:N,labelWrap:S,labelCol:E,wrapperCol:w,layout:R="horizontal",scrollToFirstError:P,requiredMark:T,onFinishFailed:M,name:z,style:B,feedbackIcons:F,variant:L,classNames:j,styles:O,tooltip:A,...k}=e,_=Cn(g),D=a.useContext(XP),V=a.useMemo(()=>T!==void 0?T:s!==void 0?s:!0,[T,s]),W=C??i,K=N??p,q=S??y,Y={...f,...A},ee=r("form",b),ie=on(ee),[ae,U]=Zx(ee,ie),Q={...e,size:_,disabled:h,layout:R,colon:W,requiredMark:V,labelAlign:K,labelWrap:q},Z=Mt(u),ne=Mt(B),[oe,le]=Ot([m,j],[d,Z,O,ne],{props:Q}),re=H(ee,`${ee}-${R}`,{[`${ee}-hide-required-mark`]:V===!1,[`${ee}-rtl`]:o==="rtl",[`${ee}-large`]:_==="large",[`${ee}-small`]:_==="small"},U,ie,ae,c,x,v,oe.root),[X]=D4($),{__INTERNAL__:se}=X;se.name=z;const ge=a.useMemo(()=>({name:z,labelAlign:K,labelCol:E,labelWrap:q,wrapperCol:w,layout:R,colon:W,requiredMark:V,itemRef:se.itemRef,form:X,feedbackIcons:F,tooltip:Y,classNames:oe,styles:le}),[z,K,q,E,w,R,W,V,X,F,oe,le,Y]),de=a.useRef(null);a.useImperativeHandle(t,()=>{var be;return{...X,nativeElement:(be=de.current)==null?void 0:be.nativeElement}});const Se=(be,Ne)=>{if(be){let we={block:"nearest"};dt(be)&&(we={...we,...be}),X.scrollToField(Ne,we)}},ue=be=>{if(M==null||M(be),be.errorFields.length){const Ne=be.errorFields[0].name;if(P!==void 0){Se(P,Ne);return}l!==void 0&&Se(l,Ne)}};return a.createElement(uR.Provider,{value:L},a.createElement(ix,{disabled:h},a.createElement(Pi.Provider,{value:_},a.createElement(lR,{validateMessages:D},a.createElement(_o.Provider,{value:ge},a.createElement(cR,{status:!0},a.createElement(el,{id:z,...k,name:z,onFinishFailed:ue,form:X,ref:de,style:le==null?void 0:le.root,className:re})))))))},ZV=a.forwardRef(JV),eW=e=>{if(bt(e))return e;const t=zn(e);return t.length<=1?t[0]:t},BT=()=>{const{status:e,errors:t=[],warnings:n=[]}=a.useContext(Hn);return{status:e,errors:t,warnings:n}};BT.Context=Hn;function tW(e){const[t,n]=a.useState(e),r=a.useRef(null),o=a.useRef([]),s=a.useRef(!1);a.useEffect(()=>(s.current=!1,()=>{s.current=!0,Ct.cancel(r.current),r.current=null}),[]);function i(l){s.current||(r.current===null&&(o.current=[],r.current=Ct(()=>{r.current=null,n(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(l))}return[t,i]}const nW=()=>{const{itemRef:e}=a.useContext(_o),t=a.useRef({});return(r,o)=>{const s=o&&dt(o)&&Bo(o),i=r.join("_");return(t.current.name!==i||t.current.originRef!==s)&&(t.current.name=i,t.current.originRef=s,t.current.ref=Tn(e(r),s)),t.current.ref}},rW=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},oW=Ks(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=zT(e,t);return rW(n)}),sW=24,iW=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:s,errors:i,warnings:l,_internalItemRender:c,extra:u,help:d,fieldId:m,marginBottom:f,onErrorVisibleChanged:p,label:y}=e,b=`${t}-item`,x=a.useContext(_o),{classNames:v,styles:g}=x,h=a.useMemo(()=>{let F={...o||x.wrapperCol||{}};return y===null&&!r&&!o&&x.labelCol&&[void 0].concat($t(t4)).forEach(j=>{const O=j?[j]:[],A=Kn(x.labelCol,O),k=dt(A)?A:{},_=Kn(F,O),D=dt(_)?_:{};"span"in k&&!("offset"in D)&&k.span<sW&&(F=hr(F,[].concat(O,["offset"]),k.span))}),F},[o,x.wrapperCol,x.labelCol,y,r]),$=H(`${b}-control`,h.className),C=a.useMemo(()=>{const{labelCol:F,wrapperCol:L,...j}=x;return j},[x]),N=a.useRef(null),[S,E]=a.useState(0);It(()=>{u&&N.current?E(N.current.clientHeight):E(0)},[u]);const w=a.createElement("div",{className:`${b}-control-input`},a.createElement("div",{className:H(`${b}-control-input-content`,v==null?void 0:v.content),style:g==null?void 0:g.content},s)),R=a.useMemo(()=>({prefixCls:t,status:n}),[t,n]),P=f!==null||i.length||l.length?a.createElement($x.Provider,{value:R},a.createElement(jT,{fieldId:m,errors:i,warnings:l,help:d,helpStatus:n,className:`${b}-explain-connected`,onVisibleChanged:p})):null,T={};m&&(T.id=`${m}_extra`);const M=u?a.createElement("div",{...T,className:H(`${b}-extra`,v==null?void 0:v.extra),style:g==null?void 0:g.extra,ref:N},u):null,z=P||M?a.createElement("div",{className:`${b}-additional`,style:f?{minHeight:f+S}:{}},P,M):null,B=c&&c.mark==="pro_table_render"&&c.render?c.render(e,{input:w,errorList:P,extra:M}):a.createElement(a.Fragment,null,w,z);return a.createElement(_o.Provider,{value:C},a.createElement(si,{...h,className:$},B),a.createElement(oW,{prefixCls:t}))};var LT={};Object.defineProperty(LT,"__esModule",{value:!0});var aW={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"},lW=LT.default=aW;function jv(){return jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jv.apply(this,arguments)}const cW=(e,t)=>a.createElement(gt,jv({},e,{ref:t,icon:lW})),uW=a.forwardRef(cW),dW=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:s,required:i,requiredMark:l,tooltip:c,vertical:u})=>{var B;const[d]=Ar("Form"),{labelAlign:m,labelCol:f,labelWrap:p,colon:y,classNames:b,styles:x,tooltip:v}=a.useContext(_o);if(!t)return null;const g=r||f||{},h=o||m,$=`${e}-item-label`,C=H($,h==="left"&&`${$}-left`,g.className,{[`${$}-wrap`]:!!p});let N=t;const S=s===!0||y!==!1&&s!==!1;S&&!u&&typeof t=="string"&&t.trim()&&(N=t.replace(/[:|]\s*$/,""));const w=HV(c,v);if(w){const F=a.createElement(bo,{...w},a.createElement("span",{className:`${e}-item-tooltip`,onClick:L=>{L.preventDefault()},tabIndex:-1},w.icon||w.children||a.createElement(uW,null)));N=a.createElement(a.Fragment,null,N,F)}const R=l==="optional",P=bt(l),T=l===!1;P?N=l(N,{required:!!i}):R&&!i&&(N=a.createElement(a.Fragment,null,N,a.createElement("span",{className:`${e}-item-optional`},(d==null?void 0:d.optional)||((B=Zr.Form)==null?void 0:B.optional))));let M;T?M="hidden":(R||P)&&(M="optional");const z=H(b==null?void 0:b.label,{[`${e}-item-required`]:i,[`${e}-item-required-mark-${M}`]:M,[`${e}-item-no-colon`]:!S});return a.createElement(si,{...g,className:C},a.createElement("label",{htmlFor:n,className:z,style:x==null?void 0:x.label,title:typeof t=="string"?t:void 0},N))},fW={success:Uc,warning:Li,error:Bi,validating:ki};function kT({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:s,meta:i,noStyle:l,name:c}){const u=`${s}-item`,{feedbackIcons:d}=a.useContext(_o),m=A4(t,n,i,null,!!r,o),{isFormItemInput:f,status:p,hasFeedback:y,feedbackIcon:b,name:x}=a.useContext(Hn),v=a.useMemo(()=>{var $;let g;if(r){const C=r!==!0&&r.icons||d,N=m&&(($=C==null?void 0:C({status:m,errors:t,warnings:n}))==null?void 0:$[m]),S=m?fW[m]:null;g=N!==!1&&S?a.createElement("span",{className:H(`${u}-feedback-icon`,`${u}-feedback-icon-${m}`)},N||a.createElement(S,null)):null}const h={status:m||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:g,isFormItemInput:!0,name:c};return l&&(h.status=(m??p)||"",h.isFormItemInput=f,h.hasFeedback=!!(r??y),h.feedbackIcon=r!==void 0?h.feedbackIcon:b,h.name=c??x),h},[m,r,l,f,p,u,y]);return a.createElement(Hn.Provider,{value:v},e)}function mW(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:s,errors:i,warnings:l,validateStatus:c,meta:u,hasFeedback:d,hidden:m,children:f,fieldId:p,required:y,isRequired:b,onSubItemMetaChange:x,layout:v,name:g,...h}=e,$=`${t}-item`,{requiredMark:C,layout:N}=a.useContext(_o),S=v||N,E=S==="vertical",w=a.useRef(null),R=Pf(i),P=Pf(l),T=bn(s),M=!!(T||i.length||l.length),z=!!w.current&&Vc(w.current),[B,F]=a.useState(null);It(()=>{if(M&&w.current){const k=getComputedStyle(w.current);F(Number.parseInt(k.marginBottom,10))}},[M,z]);const L=k=>{k||F(null)},O=((k=!1)=>{const _=k?R:u.errors,D=k?P:u.warnings;return A4(_,D,u,"",!!d,c)})(),A=H($,n,r,{[`${$}-with-help`]:T||R.length||P.length,[`${$}-has-feedback`]:O&&d,[`${$}-has-success`]:O==="success",[`${$}-has-warning`]:O==="warning",[`${$}-has-error`]:O==="error",[`${$}-is-validating`]:O==="validating",[`${$}-hidden`]:m,[`${$}-${S}`]:S});return a.createElement("div",{className:A,style:o,ref:w},a.createElement(Nv,{className:`${$}-row`,...Dt(h,["_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"])},a.createElement(dW,{htmlFor:p,...e,requiredMark:C,required:y??b,prefixCls:t,vertical:E}),a.createElement(iW,{...e,...u,errors:R,warnings:P,prefixCls:t,status:O,help:s,marginBottom:B,onErrorVisibleChanged:L},a.createElement(aR.Provider,{value:x},a.createElement(kT,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:O,name:g},f)))),!!B&&a.createElement("div",{className:`${$}-margin-offset`,style:{marginBottom:-B}}))}const pW="__SPLIT__";function gW(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const s=e[o],i=t[o];return s===i||bt(s)||bt(i)})}const hW=a.memo(e=>e.children,(e,t)=>gW(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Ew(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function yW(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:s,shouldUpdate:i,rules:l,children:c,required:u,label:d,messageVariables:m,trigger:f="onChange",validateTrigger:p,hidden:y,help:b,layout:x}=e,{getPrefixCls:v}=a.useContext(ct),{name:g}=a.useContext(_o),h=eW(c),$=bt(h),C=a.useContext(aR),{validateTrigger:N}=a.useContext(Ni),S=bn(p)?p:N,E=bn(t),w=v("form",s),R=on(w),[P,T]=Zx(w,R);yo();const M=a.useContext(Rc),z=a.useRef(null),[B,F]=tW({}),[L,j]=_b(()=>Ew()),O=K=>{const q=M==null?void 0:M.getKey(K.name);if(j(K.destroy?Ew():K,!0),n&&b!==!1&&C){let Y=K.name;if(K.destroy)Y=z.current||Y;else if(q!==void 0){const[ee,ie]=q;Y=[ee].concat($t(ie)),z.current=Y}C(K,Y)}},A=(K,q)=>{F(Y=>{const ee={...Y},ae=[].concat($t(K.name.slice(0,-1)),$t(q)).join(pW);return K.destroy?delete ee[ae]:ee[ae]=K,ee})},[k,_]=a.useMemo(()=>{const K=$t(L.errors),q=$t(L.warnings);return Object.values(B).forEach(Y=>{K.push.apply(K,$t(Y.errors||[])),q.push.apply(q,$t(Y.warnings||[]))}),[K,q]},[B,L.errors,L.warnings]),D=nW();function V(K,q,Y){return n&&!y?a.createElement(kT,{prefixCls:w,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:L,errors:k,warnings:_,noStyle:!0,name:t},K):a.createElement(mW,{key:"row",...e,className:H(r,T,R,P),prefixCls:w,fieldId:q,isRequired:Y,errors:k,warnings:_,meta:L,onSubItemMetaChange:A,layout:x,name:t},K)}if(!E&&!$&&!o)return V(h);let W={};return typeof d=="string"?W.label=d:t&&(W.label=String(t)),m&&(W={...W,...m}),a.createElement(bx,{...e,messageVariables:W,trigger:f,validateTrigger:S,onMetaChange:O},(K,q,Y)=>{const ee=Xl(t).length&&q?q.name:[],ie=k4(ee,g),ae=u!==void 0?u:l==null?void 0:l.some(Z=>{if(dt(Z)&&Z.required&&!Z.warningOnly)return!0;if(bt(Z)){const ne=Z(Y);return(ne==null?void 0:ne.required)&&!(ne!=null&&ne.warningOnly)}return!1}),U={...K};let Q=null;if(Array.isArray(h)&&E)Q=h;else if(!($&&(!(i||o)||E))){if(!(o&&!$&&!E))if(a.isValidElement(h)){const Z={...h.props,...U};if(Z.id||(Z.id=ie),b||k.length>0||_.length>0||e.extra){const le=[];(b||k.length>0)&&le.push(`${ie}_help`),e.extra&&le.push(`${ie}_extra`),Z["aria-describedby"]=le.join(" ")}k.length>0&&(Z["aria-invalid"]="true"),ae&&(Z["aria-required"]="true"),is(h)&&(Z.ref=D(ee,h)),new Set([].concat($t(Xl(f)),$t(Xl(S)))).forEach(le=>{Z[le]=(...re)=>{var X,se,ge;(X=U[le])==null||X.call(U,...re),(ge=(se=h.props)[le])==null||ge.call(se,...re)}});const oe=[Z["aria-required"],Z["aria-invalid"],Z["aria-describedby"]];Q=a.createElement(hW,{control:U,update:h,childProps:oe},Fn(h,Z))}else $&&(i||o)&&!E?Q=h(Y):Q=h}return V(Q,ie,ae)})}const AT=yW;AT.useStatus=BT;const vW=({prefixCls:e,children:t,...n})=>{const{getPrefixCls:r}=a.useContext(ct),o=r("form",e),s=a.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return a.createElement(oR,{...n},(i,l,c)=>a.createElement($x.Provider,{value:s},t(i.map(u=>({...u,fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function bW(){const{form:e}=a.useContext(_o);return e}const We=ZV;We.Item=AT;We.List=vW;We.ErrorList=jT;We.useForm=D4;We.useFormInstance=bW;We.useWatch=iR;We.Provider=lR;const xW=e=>{const{getPrefixCls:t,direction:n}=a.useContext(ct),{prefixCls:r,className:o}=e,s=t("input-group",r),i=t("input"),[l,c]=nT(i),u=H(s,c,{[`${s}-lg`]:e.size==="large",[`${s}-sm`]:e.size==="small",[`${s}-compact`]:e.compact,[`${s}-rtl`]:n==="rtl"},l,o),d=a.useContext(Hn),m=a.useMemo(()=>({...d,isFormItemInput:!1}),[d]);return a.createElement(Hn.Provider,{value:m},a.createElement(Vt.Compact,{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},$W=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,"&::selection":{color:"transparent"}},[`${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}}}},SW=Tt(["Input","OTP"],e=>{const t=Rt(e,Hi(e));return $W(t)},Vi),CW=a.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:s,index:i,mask:l,onFocus:c,...u}=e,{getPrefixCls:d}=a.useContext(ct),m=d("otp"),f=typeof l=="string"?l:r,p=a.useRef(null);a.useImperativeHandle(t,()=>p.current);const y=g=>{o(i,g.target.value)},b=()=>{Ct(()=>{var h;const g=(h=p.current)==null?void 0:h.input;document.activeElement===g&&g&&g.select()})},x=g=>{c==null||c(g),b()},v=g=>{const{key:h,ctrlKey:$,metaKey:C}=g;h==="ArrowLeft"?s(i-1):h==="ArrowRight"?s(i+1):h==="z"&&($||C)?g.preventDefault():h==="Backspace"&&!r&&s(i-1),b()};return a.createElement("span",{className:`${m}-input-wrapper`,role:"presentation"},l&&r!==""&&r!==void 0&&a.createElement("span",{className:`${m}-mask-icon`,"aria-hidden":"true"},f),a.createElement(au,{"aria-label":`OTP Input ${i+1}`,type:l===!0?"password":"text",...u,ref:p,value:r,onInput:y,onFocus:x,onKeyDown:v,onMouseDown:b,onMouseUp:b,className:H(n,{[`${m}-mask-input`]:l})}))});function Ku(e){return(e||"").split("")}const wW=e=>{const{index:t,prefixCls:n,separator:r,className:o,style:s}=e,i=bt(r)?r(t):r;return i?a.createElement("span",{className:H(`${n}-separator`,o),style:s},i):null},EW=a.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:s,value:i,onChange:l,formatter:c,separator:u,variant:d,disabled:m,status:f,autoFocus:p,mask:y,type:b,autoComplete:x,onInput:v,onFocus:g,inputMode:h,classNames:$,styles:C,className:N,style:S,...E}=e,{classNames:w,styles:R,getPrefixCls:P,direction:T,style:M,className:z}=Pt("otp"),B=P("otp",n),F={...e,length:r},L=Mt(M),j=Mt(S),[O,A]=Ot([w,$],[R,L,C,j],{props:F}),k=Nn(E,{aria:!0,data:!0,attr:!0}),[_,D]=SW(B),V=Cn(X=>o??X),W=a.useContext(Hn),K=nu(W.status,f),q=a.useMemo(()=>({...W,status:K,hasFeedback:!1,feedbackIcon:null}),[W,K]),Y=a.useRef(null),ee=a.useRef({});a.useImperativeHandle(t,()=>({focus:()=>{var X;(X=ee.current[0])==null||X.focus()},blur:()=>{var X;for(let se=0;se<r;se+=1)(X=ee.current[se])==null||X.blur()},nativeElement:Y.current}));const ie=X=>c?c(X):X,[ae,U]=a.useState(()=>Ku(ie(s||"")));a.useEffect(()=>{i!==void 0&&U(Ku(i))},[i]);const Q=vt(X=>{U(X),v&&v(X),l&&X.length===r&&X.every(se=>se)&&X.some((se,ge)=>ae[ge]!==se)&&l(X.join(""))}),Z=vt((X,se)=>{let ge=$t(ae);for(let Se=0;Se<X;Se+=1)ge[Se]||(ge[Se]="");se.length<=1?ge[X]=se:ge=ge.slice(0,X).concat(Ku(se)),ge=ge.slice(0,r);for(let Se=ge.length-1;Se>=0&&!ge[Se];Se-=1)ge.pop();const de=ie(ge.map(Se=>Se||" ").join(""));return ge=Ku(de).map((Se,ue)=>Se===" "&&!ge[ue]?ge[ue]:Se),ge}),ne=(X,se)=>{var Se;const ge=Z(X,se),de=Math.min(X+se.length,r-1);de!==X&&ge[X]!==void 0&&((Se=ee.current[de])==null||Se.focus()),Q(ge)},oe=X=>{var se;(se=ee.current[X])==null||se.focus()},le=(X,se)=>{var ge,de,Se;for(let ue=0;ue<se;ue+=1)if(!((de=(ge=ee.current[ue])==null?void 0:ge.input)!=null&&de.value)){(Se=ee.current[ue])==null||Se.focus();break}g==null||g(X)},re={variant:d,disabled:m,status:K,mask:y,type:b,inputMode:h,autoComplete:x};return a.createElement("div",{...k,ref:Y,className:H(N,B,{[`${B}-sm`]:V==="small",[`${B}-lg`]:V==="large",[`${B}-rtl`]:T==="rtl"},D,_,z,O.root),style:A.root,role:"group"},a.createElement(Hn.Provider,{value:q},Array.from({length:r}).map((X,se)=>{const ge=`otp-${se}`,de=ae[se]||"";return a.createElement(a.Fragment,{key:ge},a.createElement(CW,{ref:Se=>{ee.current[se]=Se},index:se,size:V,htmlSize:1,className:H(O.input,`${B}-input`),style:A.input,onChange:ne,value:de,onActiveChange:oe,autoFocus:se===0&&p,onFocus:Se=>le(Se,se),...re}),se<r-1&&a.createElement(wW,{separator:u,index:se,prefixCls:B,className:H(O.separator),style:A.separator}))})))});var DT={};Object.defineProperty(DT,"__esModule",{value:!0});var IW={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"},PW=DT.default=IW;function Bv(){return Bv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bv.apply(this,arguments)}const NW=(e,t)=>a.createElement(gt,Bv({},e,{ref:t,icon:PW})),RW=a.forwardRef(NW);var FT={};Object.defineProperty(FT,"__esModule",{value:!0});var TW={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"},MW=FT.default=TW;function Lv(){return Lv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lv.apply(this,arguments)}const OW=(e,t)=>a.createElement(gt,Lv({},e,{ref:t,icon:MW})),_W=a.forwardRef(OW),zW=e=>e?a.createElement(_W,null):a.createElement(RW,null),jW={click:"onClick",hover:"onMouseOver"},BW=a.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:s,prefixCls:i,inputPrefixCls:l,suffix:c,className:u,style:d,classNames:m,styles:f,...p}=e,{getPrefixCls:y,className:b,style:x,classNames:v,styles:g,iconRender:h}=Pt("inputPassword"),[$]=Ar("global"),C=a.useContext(cr),N=n??C,S={...e,disabled:N},[E,w]=Ot([v,m],[g,f],{props:S}),R=dt(o)&&o.visible!==void 0,[P,T]=a.useState(()=>R?o.visible:!1),M=a.useRef(null);a.useEffect(()=>{R&&T(o.visible)},[R,o]);const z=MT(M),B=()=>{var D;if(N)return;P&&z();const _=!P;T(_),dt(o)&&((D=o.onVisibleChange)==null||D.call(o,_))},F=_=>{const D=jW[r]||"",W=(s||h||zW)(P),K=dt(o)?o.tabIndex:void 0;return a.createElement("span",{key:"passwordIcon",role:"button",tabIndex:N?-1:K??0,className:`${_}-icon`,"aria-disabled":N,"aria-pressed":P,"aria-label":P?$.hide:$.show,onMouseDown:q=>{q.preventDefault()},onMouseUp:q=>{q.preventDefault()},onKeyDown:q=>{(q.key==="Enter"||q.key===" ")&&(q.preventDefault(),B())},[D]:B},W)},L=y("input",l),j=y("input-password",i),O=o&&F(j),A=H(j,b,u,{[`${j}-${e.size}`]:!!e.size}),k={...p,type:P?"text":"password",prefixCls:L,suffix:a.createElement(a.Fragment,null,O,c),disabled:N,className:A,style:{...x,...d},classNames:E,styles:w};return a.createElement(au,{ref:Tn(t,M),...k})}),LW=e=>{const{componentCls:t,antCls:n,calc:r,max:o}=e,s=`${t}-btn`,[i,l]=rn(n,"input-search"),c=e.inputFontSizeSM??e.fontSize,u=o(e.controlHeightSM,r(c).mul(e.lineHeight).add(r(e.paddingBlockSM).mul(2)).add(r(e.lineWidth).mul(2)).equal());return{[t]:{[i("btn-height")]:G(e.controlHeight),width:"100%",[s]:{height:l("btn-height"),"&:focus-visible":{zIndex:5},[`&${n}-btn-icon-only`]:{width:l("btn-height")},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[i("btn-height")]:G(e.controlHeightLG)},[`&${t}-small`]:{[i("btn-height")]:G(e.controlHeightSM)},[`&${t}-small ${s}`]:{minHeight:u,[`&${e.antCls}-btn-icon-only`]:{minWidth:u}}}}},kW=Tt(["Input","Search"],e=>{const t=Rt(e,Hi(e));return LW(t)},Vi),AW=a.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:s,style:i,enterButton:l=!1,searchIcon:c,addonAfter:u,loading:d,disabled:m,onSearch:f,onChange:p,onCompositionStart:y,onCompositionEnd:b,variant:x,onPressEnter:v,classNames:g,styles:h,hidden:$,...C}=e,{direction:N,getPrefixCls:S,className:E,style:w,classNames:R,styles:P,searchIcon:T}=Pt("inputSearch"),M={...e,enterButton:l},[z,B]=Ot([R,g],[P,h],{props:M},{button:{_default:"root"}}),F=a.useRef(!1),L=S("input-search",n),j=S("input",r),[O,A]=kW(L),{compactSize:k}=qs(L,N),_=Cn(X=>s??k??X),D=a.useRef(null),V=X=>{X!=null&&X.target&&X.type==="click"&&f&&f(X.target.value,X,{source:"clear"}),p==null||p(X)},W=X=>{var se;document.activeElement===((se=D.current)==null?void 0:se.input)&&X.preventDefault()},K=X=>{var se,ge;f&&f((ge=(se=D.current)==null?void 0:se.input)==null?void 0:ge.value,X,{source:"input"})},q=X=>{F.current||d||(v==null||v(X),K(X))},Y=typeof l=="boolean"?Ur(c,T,a.createElement(Tx,null)):null,ee=`${L}-btn`,ie=H(ee,{[`${ee}-${x}`]:x});let ae;const U=l||{},Q=U.type&&U.type.__ANT_BUTTON===!0;if(Q||U.type==="button"){const X=U.props;ae=Fn(U,{onMouseDown:W,onClick:se=>{var ge,de;(de=(ge=U==null?void 0:U.props)==null?void 0:ge.onClick)==null||de.call(ge,se),K(se)},key:"enterButton",...Q?{className:H(ie,X.className),size:_}:{}})}else ae=a.createElement(Xe,{classNames:z.button,styles:B.button,className:ie,color:l?"primary":"default",size:_,disabled:m,key:"enterButton",onMouseDown:W,onClick:K,loading:d,icon:Y,variant:x==="borderless"||x==="filled"||x==="underlined"?"text":l?"solid":void 0},l);u&&(ae=[ae,Fn(u,{key:"addonAfter"})]);const Z=H(L,A,{[`${L}-rtl`]:N==="rtl",[`${L}-${_}`]:!!_,[`${L}-with-button`]:!!l},o,E,O,z.root),ne=X=>{F.current=!0,y==null||y(X)},oe=X=>{F.current=!1,b==null||b(X)},le=Nn(C,{data:!0}),re=Dt({...C,classNames:Dt(z,["button","root"]),styles:Dt(B,["button","root"]),prefixCls:j,type:"search",size:_,variant:x,onPressEnter:q,onCompositionStart:ne,onCompositionEnd:oe,onChange:V,disabled:m},Object.keys(le));return a.createElement(mx,{className:Z,style:{...B.root,...w,...i},...le,hidden:$},a.createElement(au,{ref:Tn(D,t),...re}),ae)}),DW=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${t},
&-affix-wrapper${r}-has-feedback ${t}
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},FW=Tt(["Input","TextArea"],e=>{const t=Rt(e,Hi(e));return DW(t)},Vi,{resetFont:!1}),HT=a.forwardRef((e,t)=>{var le;const{prefixCls:n,bordered:r=!0,size:o,disabled:s,status:i,allowClear:l,classNames:c,rootClassName:u,className:d,style:m,styles:f,variant:p,showCount:y,onMouseDown:b,onResize:x,...v}=e,{getPrefixCls:g,direction:h,allowClear:$,autoComplete:C,className:N,style:S,classNames:E,styles:w}=Pt("textArea"),R=a.useContext(cr),P=s??R,{status:T,hasFeedback:M,feedbackIcon:z}=a.useContext(Hn),B=nu(T,i),F=Mt(S),L=Mt(m),[j,O]=Ot([E,c],[w,F,f,L],{props:e}),A=a.useRef(null);a.useImperativeHandle(t,()=>{var re,X;return{resizableTextArea:(re=A.current)==null?void 0:re.resizableTextArea,focus:se=>{var ge,de;Db((de=(ge=A.current)==null?void 0:ge.resizableTextArea)==null?void 0:de.textArea,se)},blur:()=>{var se;return(se=A.current)==null?void 0:se.blur()},nativeElement:((X=A.current)==null?void 0:X.nativeElement)||null}});const k=g("input",n),_=on(k),[D,V]=tT(k,u);FW(k,_);const{compactSize:W,compactItemClassnames:K}=qs(k,h),q=Cn(re=>o??W??re),[Y,ee]=tl("textArea",p,r),ie=EN({allowClear:l,contextAllowClear:$,componentName:"TextArea"}),[ae,U]=a.useState(!1),[Q,Z]=a.useState(!1),ne=re=>{U(!0),b==null||b(re);const X=()=>{U(!1),document.removeEventListener("mouseup",X)};document.addEventListener("mouseup",X)},oe=re=>{var X,se;if(x==null||x(re),ae&&bt(getComputedStyle)){const ge=(se=(X=A.current)==null?void 0:X.nativeElement)==null?void 0:se.querySelector("textarea");ge&&getComputedStyle(ge).resize==="both"&&Z(!0)}};return a.createElement(zV,{autoComplete:C,...v,style:O.root,styles:O,disabled:P,allowClear:ie,className:H(V,_,d,u,K,N,j.root,{[`${k}-textarea-affix-wrapper-resize-dirty`]:Q}),classNames:{...j,textarea:H({[`${k}-sm`]:q==="small",[`${k}-lg`]:q==="large"},D,j.textarea,ae&&`${k}-mouse-active`),variant:H({[`${k}-${Y}`]:ee},qa(k,B)),affixWrapper:H(`${k}-textarea-affix-wrapper`,{[`${k}-affix-wrapper-rtl`]:h==="rtl",[`${k}-affix-wrapper-sm`]:q==="small",[`${k}-affix-wrapper-lg`]:q==="large",[`${k}-textarea-show-count`]:y||((le=e.count)==null?void 0:le.show)},D)},prefixCls:k,suffix:M&&a.createElement("span",{className:`${k}-textarea-suffix`},z),showCount:y,ref:A,onResize:oe,onMouseDown:ne})}),Lt=au;Lt.Group=xW;Lt.Search=AW;Lt.TextArea=HT;Lt.Password=BW;Lt.OTP=EW;function HW(e,t,n){return typeof n=="boolean"?n:e.length?!0:zn(t).some(o=>o.type===O4)}const Fm=({suffixCls:e,tagName:t,displayName:n})=>r=>a.forwardRef((s,i)=>a.createElement(r,{ref:i,suffixCls:e,tagName:t,...s})),e$=a.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:s,...i}=e,{getPrefixCls:l}=a.useContext(ct),c=l("layout",n),[u,d]=M4(c),m=r?`${c}-${r}`:c;return a.createElement(s,{className:H(n||m,o,u,d),ref:t,...i})}),VW=a.forwardRef((e,t)=>{const{direction:n}=a.useContext(ct),[r,o]=a.useState([]),{prefixCls:s,className:i,rootClassName:l,children:c,hasSider:u,tagName:d,style:m,...f}=e,p=Dt(f,["suffixCls"]),{getPrefixCls:y,className:b,style:x}=Pt("layout"),v=y("layout",s),g=HW(r,c,u),[h,$]=M4(v),C=H(v,{[`${v}-has-sider`]:g,[`${v}-rtl`]:n==="rtl"},b,i,l,h,$),N=a.useMemo(()=>({siderHook:{addSider:S=>{o(E=>[].concat($t(E),[S]))},removeSider:S=>{o(E=>E.filter(w=>w!==S))}}}),[]);return a.createElement(N4.Provider,{value:N},a.createElement(d,{ref:t,className:C,style:{...x,...m},...p},c))}),WW=Fm({tagName:"div",displayName:"Layout"})(VW),KW=Fm({suffixCls:"header",tagName:"header",displayName:"Header"})(e$),UW=Fm({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(e$),qW=Fm({suffixCls:"content",tagName:"main",displayName:"Content"})(e$),Ds=WW;Ds.Header=KW;Ds.Footer=UW;Ds.Content=qW;Ds.Sider=O4;Ds._InternalSiderContext=jm;var VT={};Object.defineProperty(VT,"__esModule",{value:!0});var GW={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"},XW=VT.default=GW;function kv(){return kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kv.apply(this,arguments)}const YW=(e,t)=>a.createElement(gt,kv({},e,{ref:t,icon:XW})),Iw=a.forwardRef(YW);var WT={};Object.defineProperty(WT,"__esModule",{value:!0});var QW={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"},JW=WT.default=QW;function Av(){return Av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Av.apply(this,arguments)}const ZW=(e,t)=>a.createElement(gt,Av({},e,{ref:t,icon:JW})),Pw=a.forwardRef(ZW),eK={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:"页码"},tK=[10,20,50,100],nK=e=>{const{pageSizeOptions:t=tK,locale:n,changeSize:r,pageSize:o,goButton:s,quickGo:i,rootPrefixCls:l,disabled:c,buildOptionText:u,showSizeChanger:d,sizeChangerRender:m}=e,[f,p]=J.useState(""),y=J.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),b=typeof u=="function"?u:E=>`${E} ${n.items_per_page}`,x=E=>{const w=E.target.value;/^\d*$/.test(w)&&p(w)},v=E=>{s||f===""||(p(""),!(E.relatedTarget&&(E.relatedTarget.className.includes(`${l}-item-link`)||E.relatedTarget.className.includes(`${l}-item`)))&&(i==null||i(y)))},g=E=>{f!==""&&(E.keyCode===nt.ENTER||E.type==="click")&&(p(""),i==null||i(y))},h=()=>t.some(E=>E.toString()===o.toString())?t:t.concat([o]).sort((E,w)=>{const R=Number.isNaN(Number(E))?0:Number(E),P=Number.isNaN(Number(w))?0:Number(w);return R-P}),$=`${l}-options`;if(!d&&!i)return null;let C=null,N=null,S=null;return d&&m&&(C=m({disabled:c,size:o,onSizeChange:E=>{r==null||r(Number(E))},"aria-label":n.page_size,className:`${$}-size-changer`,options:h().map(E=>({label:b(E),value:E}))})),i&&(s&&(S=typeof s=="boolean"?J.createElement("button",{type:"button",onClick:g,onKeyUp:g,disabled:c,className:`${$}-quick-jumper-button`},n.jump_to_confirm):J.createElement("span",{onClick:g,onKeyUp:g},s)),N=J.createElement("div",{className:`${$}-quick-jumper`},n.jump_to,J.createElement("input",{disabled:c,type:"text",value:f,onChange:x,onKeyUp:g,onBlur:v,"aria-label":n.page}),n.page,S)),J.createElement("li",{className:$},C,N)},Cl=e=>{const{rootPrefixCls:t,page:n,active:r,className:o,style:s,showTitle:i,onClick:l,onKeyPress:c,itemRender:u}=e,d=`${t}-item`,m=H(d,`${d}-${n}`,{[`${d}-active`]:r,[`${d}-disabled`]:!n},o),f=()=>{l(n)},p=b=>{c(b,l,n)},y=u(n,"page",J.createElement("a",{rel:"nofollow"},n));return y?J.createElement("li",{title:i?String(n):null,className:m,style:s,onClick:f,onKeyDown:p,tabIndex:0},y):null};function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hs.apply(this,arguments)}const rK=(e,t,n)=>n;function Nw(){}function Rw(e){const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Js(e,t,n){const r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}const oK=e=>{const{prefixCls:t="rc-pagination",selectPrefixCls:n="rc-select",className:r,classNames:o,styles:s,current:i,defaultCurrent:l=1,total:c=0,pageSize:u,defaultPageSize:d=10,onChange:m=Nw,hideOnSinglePage:f,align:p,showPrevNextJumpers:y=!0,showQuickJumper:b,showLessItems:x,showTitle:v=!0,onShowSizeChange:g=Nw,locale:h=eK,style:$,totalBoundaryShowSizeChanger:C=50,disabled:N,simple:S,showTotal:E,showSizeChanger:w=c>C,sizeChangerRender:R,pageSizeOptions:P,itemRender:T=rK,jumpPrevIcon:M,jumpNextIcon:z,prevIcon:B,nextIcon:F}=e,L=J.useRef(null),[j,O]=nn(d,u),[A,k]=nn(l,i),_=Math.max(1,Math.min(A,Js(void 0,j,c))),[D,V]=J.useState(_);a.useEffect(()=>{V(_)},[_]);const W=Math.max(1,_-(x?3:5)),K=Math.min(Js(void 0,j,c),_+(x?3:5));function q(ce,Pe){let pe=ce||J.createElement("button",{type:"button","aria-label":Pe,className:`${t}-item-link`});return typeof ce=="function"&&(pe=J.createElement(ce,e)),pe}function Y(ce){const Pe=ce.target.value,pe=Js(void 0,j,c);let $e;return Pe===""?$e=Pe:Number.isNaN(Number(Pe))?$e=D:Pe>=pe?$e=pe:$e=Number(Pe),$e}function ee(ce){return Rw(ce)&&ce!==_&&Rw(c)&&c>0}const ie=c>j?b:!1;function ae(ce){(ce.keyCode===nt.UP||ce.keyCode===nt.DOWN)&&ce.preventDefault()}function U(ce){const Pe=Y(ce);switch(Pe!==D&&V(Pe),ce.keyCode){case nt.ENTER:ne(Pe);break;case nt.UP:ne(Pe-1);break;case nt.DOWN:ne(Pe+1);break}}function Q(ce){ne(Y(ce))}function Z(ce){const Pe=Js(ce,j,c),pe=_>Pe&&Pe!==0?Pe:_;O(ce),V(pe),g==null||g(_,ce),k(pe),m==null||m(pe,ce)}function ne(ce){if(ee(ce)&&!N){const Pe=Js(void 0,j,c);let pe=ce;return ce>Pe?pe=Pe:ce<1&&(pe=1),pe!==D&&V(pe),k(pe),m==null||m(pe,j),pe}return _}const oe=_>1,le=_<Js(void 0,j,c);function re(){oe&&ne(_-1)}function X(){le&&ne(_+1)}function se(){ne(W)}function ge(){ne(K)}function de(ce,Pe,...pe){(ce.key==="Enter"||ce.charCode===nt.ENTER||ce.keyCode===nt.ENTER)&&Pe(...pe)}function Se(ce){de(ce,re)}function ue(ce){de(ce,X)}function be(ce){de(ce,se)}function Ne(ce){de(ce,ge)}function we(ce){const Pe=T(ce,"prev",q(B,"prev page"));return J.isValidElement(Pe)?J.cloneElement(Pe,{disabled:!oe}):Pe}function ze(ce){const Pe=T(ce,"next",q(F,"next page"));return J.isValidElement(Pe)?J.cloneElement(Pe,{disabled:!le}):Pe}function he(ce){(ce.type==="click"||ce.keyCode===nt.ENTER)&&ne(D)}let ke=null;const Oe=Nn(e,{aria:!0,data:!0}),Ce=E&&J.createElement("li",{className:`${t}-total-text`},E(c,[c===0?0:(_-1)*j+1,_*j>c?c:_*j]));let Me=null;const xe=Js(void 0,j,c);if(f&&c<=j)return null;const Ee=[],Ve={rootPrefixCls:t,onClick:ne,onKeyPress:de,showTitle:v,itemRender:T,page:-1,className:o==null?void 0:o.item,style:s==null?void 0:s.item},qe=_-1>0?_-1:0,me=_+1<xe?_+1:xe,Re=b&&b.goButton,Te=typeof S=="object"?S.readOnly:!S;let Ue=Re,Ge=null;S&&(Re&&(typeof Re=="boolean"?Ue=J.createElement("button",{type:"button",onClick:he,onKeyUp:he},h.jump_to_confirm):Ue=J.createElement("span",{onClick:he,onKeyUp:he},Re),Ue=J.createElement("li",{title:v?`${h.jump_to}${_}/${xe}`:null,className:`${t}-simple-pager`},Ue)),Ge=J.createElement("li",{title:v?`${_}/${xe}`:null,className:H(`${t}-simple-pager`,o==null?void 0:o.item),style:s==null?void 0:s.item},Te?D:J.createElement("input",{type:"text","aria-label":h.jump_to,value:D,disabled:N,onKeyDown:ae,onKeyUp:U,onChange:U,onBlur:Q,size:3}),J.createElement("span",{className:`${t}-slash`},"/"),xe));const Fe=x?1:2;if(xe<=3+Fe*2){xe||Ee.push(J.createElement(Cl,hs({},Ve,{key:"noPager",page:1,className:`${t}-item-disabled`})));for(let ce=1;ce<=xe;ce+=1)Ee.push(J.createElement(Cl,hs({},Ve,{key:ce,page:ce,active:_===ce})))}else{const ce=x?h.prev_3:h.prev_5,Pe=x?h.next_3:h.next_5,pe=T(W,"jump-prev",q(M,"prev page")),$e=T(K,"jump-next",q(z,"next page"));y&&(ke=pe?J.createElement("li",{title:v?ce:null,key:"prev",onClick:se,tabIndex:0,onKeyDown:be,className:H(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!M})},pe):null,Me=$e?J.createElement("li",{title:v?Pe:null,key:"next",onClick:ge,tabIndex:0,onKeyDown:Ne,className:H(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!z})},$e):null);let _e=Math.max(1,_-Fe),Ie=Math.min(_+Fe,xe);_-1<=Fe&&(Ie=1+Fe*2),xe-_<=Fe&&(_e=xe-Fe*2);const Be=!!ke&&_-1>=Fe*2&&_!==3,te=!!Me&&xe-_>=Fe*2&&_!==xe-2;!x&&Be&&Ie!==xe&&(_e+=1),!x&&te&&_e!==1&&(Ie-=1);for(let ye=_e;ye<=Ie;ye+=1)Ee.push(J.createElement(Cl,hs({},Ve,{key:ye,page:ye,active:_===ye})));if(Be&&(Ee[0]=J.cloneElement(Ee[0],{className:H(`${t}-item-after-jump-prev`,Ee[0].props.className)}),Ee.unshift(ke)),te){const ye=Ee[Ee.length-1];Ee[Ee.length-1]=J.cloneElement(ye,{className:H(`${t}-item-before-jump-next`,ye.props.className)}),Ee.push(Me)}_e!==1&&Ee.unshift(J.createElement(Cl,hs({},Ve,{key:1,page:1}))),Ie!==xe&&Ee.push(J.createElement(Cl,hs({},Ve,{key:xe,page:xe})))}let et=we(qe);if(et){const ce=!oe||!xe;et=J.createElement("li",{title:v?h.prev_page:null,onClick:re,tabIndex:ce?null:0,onKeyDown:Se,className:H(`${t}-prev`,o==null?void 0:o.item,{[`${t}-disabled`]:ce}),style:s==null?void 0:s.item,"aria-disabled":ce},et)}let ve=ze(me);if(ve){let ce,Pe;S?(ce=!le,Pe=oe?0:null):(ce=!le||!xe,Pe=ce?null:0),ve=J.createElement("li",{title:v?h.next_page:null,onClick:X,tabIndex:Pe,onKeyDown:ue,className:H(`${t}-next`,o==null?void 0:o.item,{[`${t}-disabled`]:ce}),style:s==null?void 0:s.item,"aria-disabled":ce},ve)}const je=H(t,r,{[`${t}-start`]:p==="start",[`${t}-center`]:p==="center",[`${t}-end`]:p==="end",[`${t}-simple`]:S,[`${t}-disabled`]:N});return J.createElement("ul",hs({className:je,style:$,ref:L},Oe),Ce,et,S?Ge:Ee,ve,J.createElement(nK,{locale:h,rootPrefixCls:t,disabled:N,selectPrefixCls:n,changeSize:Z,pageSize:j,pageSizeOptions:P,quickGo:ie?ne:null,goButton:Ue,showSizeChanger:w,sizeChangerRender:R}))},sK=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}}}}},iK=e=>{const{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...Kx(e),width:e.paginationMiniQuickJumperInputWidth}}}}},aK=e=>{const{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...Wx(e)}}}}},lK=e=>{const{componentCls:t,antCls:n}=e,[,r]=rn(n,"pagination");return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r("item-size-actual"),lineHeight:r("item-size-actual"),verticalAlign:"top",[`${t}-item-link`]:{height:r("item-size-actual"),backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r("item-size-actual"),lineHeight:r("item-size-actual")}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${G(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${G(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:`${G(e.inputOutlineOffset)} 0 ${G(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}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},cK=e=>{const{componentCls:t}=e,n=`${t}-options-quick-jumper input, ${t}-simple-pager input`;return{[`&${t}-filled`]:{[n]:{background:e.colorFillTertiary,borderColor:"transparent","&:hover":{background:e.colorFillSecondary},"&:focus":{borderColor:e.activeBorderColor,outline:0,backgroundColor:e.activeBg},"&[disabled]":{...su(e)}}},[`&${t}-borderless`]:{[n]:{background:"transparent",border:"none","&:focus":{outline:"none",boxShadow:"none"},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-underlined`]:{[n]:{background:e.colorBgContainer,borderWidth:`${G(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${e.colorBorder} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus":{borderColor:`transparent transparent ${e.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg},"&[disabled]":{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"}}}}},uK=e=>{const{componentCls:t,iconCls:n,sizeLG:r,antCls:o}=e,[,s]=rn(o,"pagination");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",inset:0,display:"inline-flex",justifyContent:"center",alignItems:"center",margin:"auto",color:e.colorTextDisabled,textAlign:"center",opacity:1,transition:`all ${e.motionDurationMid}`,[`${n}-ellipsis > svg`]:{width:r,height:r}}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
${t}-prev,
${t}-jump-prev,
${t}-jump-next
`]:{marginInlineEnd:s("item-spacing-actual")},[`
${t}-prev,
${t}-next,
${t}-jump-prev,
${t}-jump-next
`]:{display:"inline-block",minWidth:s("item-size-actual"),height:s("item-size-actual"),color:e.colorText,fontFamily:e.fontFamily,lineHeight:s("item-size-actual"),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:`${G(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, &-size-changer${t}-options-size-changer-select`]:{width:"auto"},"&-quick-jumper":{display:"inline-block",height:s("item-size-actual"),marginInlineStart:e.marginXS,lineHeight:s("item-size-actual"),verticalAlign:"baseline",input:{...km(e),...Vx(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...su(e)},width:e.quickJumperInputWidth,height:s("item-size-actual"),boxSizing:"border-box",margin:0,marginInlineStart:s("item-spacing-actual"),marginInlineEnd:s("item-spacing-actual")}}}}},dK=e=>{const{componentCls:t,antCls:n}=e,[,r]=rn(n,"pagination");return{[`${t}-item`]:{display:"inline-block",minWidth:r("item-size-actual"),height:r("item-size-actual"),marginInlineEnd:r("item-spacing-actual"),fontFamily:e.fontFamily,lineHeight:G(e.calc(r("item-size-actual")).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${G(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${G(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}}}}},fK=e=>{const{componentCls:t,antCls:n}=e,[r,o]=rn(n,"pagination");return{[t]:{[r("item-size-actual")]:G(e.itemSize),[r("item-spacing-actual")]:G(e.marginXS),"&-small":{[r("item-size-actual")]:G(e.itemSizeSM),[r("item-spacing-actual")]:G(e.marginXXS)},"&-large":{[r("item-size-actual")]:G(e.itemSizeLG),[r("item-spacing-actual")]:G(e.marginSM)},...Ft(e),display:"flex",alignItems:"center","&-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:o("item-size-actual"),marginInlineEnd:o("item-spacing-actual"),lineHeight:G(e.calc(o("item-size-actual")).sub(2).equal()),verticalAlign:"middle"},...dK(e),...uK(e),...lK(e),...cK(e),...iK(e),...aK(e),...sK(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"}}},mK=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Br(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...jr(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:jr(e)}}}},KT=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...Vi(e)}),UT=e=>Rt(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"},Hi(e)),pK=Tt("Pagination",e=>{const t=UT(e);return[fK(t),mK(t)]},KT),gK=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &: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`]:{[`${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:`${G(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}}}}},hK=Ks(["Pagination","bordered"],e=>{const t=UT(e);return gK(t)},KT);function Tw(e){return a.useMemo(()=>typeof e=="boolean"?[e,{}]:dt(e)?[!0,e]:[void 0,void 0],[e])}const yK=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:s,style:i,size:l,locale:c,responsive:u,showSizeChanger:d,selectComponentClass:m,pageSizeOptions:f,styles:p,classNames:y,...b}=e,{xs:x}=Mm(u),[,v]=Yn(),{getPrefixCls:g,direction:h,showSizeChanger:$,className:C,style:N,classNames:S,styles:E,totalBoundaryShowSizeChanger:w}=Pt("pagination"),R=g("pagination",n),[P,T]=pK(R),M=Cn(l),z=M==="small"||!!(x&&!M&&u),[B,F]=tl("input"),L={...e,size:M},j=Mt(N),O=Mt(i),[A,k]=Ot([S,y],[E,j,p,O],{props:L}),[_]=Ar("Pagination",YP),D={..._,...c},[V,W]=Tw(d),[K,q]=Tw($),Y=V??K,ee=W??q,ie=m||dn,ae=a.useMemo(()=>f?f.map(Number):void 0,[f]),U=le=>{var we;const{disabled:re,size:X,onSizeChange:se,"aria-label":ge,className:de,options:Se}=le,{className:ue,onChange:be}=ee||{},Ne=(we=Se.find(ze=>String(ze.value)===String(X)))==null?void 0:we.value;return a.createElement(ie,{disabled:re,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ze=>ze.parentNode,"aria-label":ge,options:Se,...ee,value:Ne,onChange:(ze,he)=>{se==null||se(ze),be==null||be(ze,he)},size:M,className:H(`${R}-options-size-changer-select`,de,ue)})},Q=a.useMemo(()=>{const le=a.createElement("span",{className:`${R}-item-ellipsis`},a.createElement(Bm,null)),re=a.createElement("button",{className:`${R}-item-link`,type:"button",tabIndex:-1},h==="rtl"?a.createElement(Nc,null):a.createElement(Tc,null)),X=a.createElement("button",{className:`${R}-item-link`,type:"button",tabIndex:-1},h==="rtl"?a.createElement(Tc,null):a.createElement(Nc,null)),se=a.createElement("a",{className:`${R}-item-link`},a.createElement("div",{className:`${R}-item-container`},h==="rtl"?a.createElement(Pw,{className:`${R}-item-link-icon`}):a.createElement(Iw,{className:`${R}-item-link-icon`}),le)),ge=a.createElement("a",{className:`${R}-item-link`},a.createElement("div",{className:`${R}-item-container`},h==="rtl"?a.createElement(Iw,{className:`${R}-item-link-icon`}):a.createElement(Pw,{className:`${R}-item-link-icon`}),le));return{prevIcon:re,nextIcon:X,jumpPrevIcon:se,jumpNextIcon:ge}},[h,R]),Z=g("select",r),ne=H({[`${R}-${t}`]:!!t,[`${R}-${M}`]:M,[`${R}-${B}`]:F&&B!=="outlined",[`${R}-mini`]:z,[`${R}-rtl`]:h==="rtl",[`${R}-bordered`]:v.wireframe},C,o,s,A.root,P,T),oe={...k.root};return a.createElement(a.Fragment,null,v.wireframe&&a.createElement(hK,{prefixCls:R}),a.createElement(oK,{...Q,...b,styles:k,classNames:A,style:oe,prefixCls:R,selectPrefixCls:Z,className:ne,locale:D,pageSizeOptions:ae,showSizeChanger:Y,totalBoundaryShowSizeChanger:b.totalBoundaryShowSizeChanger??w,sizeChangerRender:U}))},Nf=100,qT=Nf/5,GT=Nf/2-qT/2,vg=GT*2*Math.PI,Mw=50,Ow=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return a.createElement("circle",{className:H(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:GT,cx:Mw,cy:Mw,strokeWidth:qT,style:n})},vK=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[s,i]=a.useState(!1);It(()=>{e!==0&&i(!0)},[e]);const l=Math.max(Math.min(e,100),0);if(!s)return null;const c={strokeDashoffset:`${vg/4}`,strokeDasharray:`${vg*l/100} ${vg*(100-l)/100}`};return a.createElement("span",{className:H(r,`${n}-progress`,{[o]:l<=0})},a.createElement("svg",{viewBox:`0 0 ${Nf} ${Nf}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},a.createElement(Ow,{dotClassName:n,hasCircleCls:!0}),a.createElement(Ow,{dotClassName:n,style:c})))};function bK(e){const{prefixCls:t,percent:n=0,className:r,style:o}=e,s=`${t}-dot`,i=`${s}-holder`,l=`${i}-hidden`;return a.createElement(a.Fragment,null,a.createElement("span",{className:H(i,r,n>0&&l),style:o},a.createElement("span",{className:H(s,`${t}-dot-spin`)},[1,2,3,4].map(c=>a.createElement("i",{className:`${t}-dot-item`,key:c})))),a.createElement(vK,{prefixCls:t,percent:n}))}function xK(e){const{prefixCls:t,indicator:n,percent:r,className:o,style:s}=e,i=`${t}-dot`;return n&&a.isValidElement(n)?Fn(n,l=>({className:H(l.className,i,o),style:{...l.style,...s},percent:r})):a.createElement(bK,{prefixCls:t,percent:r,className:o,style:s})}const $K=new Ht("antSpinMove",{to:{opacity:1}}),SK=new Ht("antRotate",{to:{transform:"rotate(405deg)"}}),CK=e=>{const{componentCls:t}=e,n=`${t}-section`;return{[t]:{...Ft(e),position:"relative","&-rtl":{direction:"rtl"},[`&${n}, ${n}`]:{display:"flex",alignItems:"center",flexDirection:"column",gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:"inline-flex"},[n]:{position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)",zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${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"}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-fullscreen":{position:"fixed",inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:"none",transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:"auto"},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},wK=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r}=e,[o,s]=rn(n,"spin");return{[t]:{[o("dot-holder-size")]:e.dotSize,[o("dot-item-size")]:`calc((${s("dot-holder-size")} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:"1em",height:"1em",fontSize:s("dot-holder-size"),display:"inline-block",transition:["transform","opacity"].map(i=>`${i} ${r} ease`).join(", "),transformOrigin:"50% 50%",lineHeight:1,"&-hidden":{transform:"scale(0.3)",opacity:0}},position:"relative",display:"inline-block",fontSize:s("dot-holder-size"),width:"1em",height:"1em","&-spin":{transform:"rotate(45deg)",animationName:SK,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-item":{position:"absolute",display:"block",width:s("dot-item-size"),height:s("dot-item-size"),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:$K,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"}},"&-progress":{position:"absolute",left:"50%",top:0,transform:"translateX(-50%)"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(i=>`${i} ${r} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},EK=e=>{const{componentCls:t}=e,[n]=rn(e.antCls,"spin");return{[t]:{"&-sm":{[n("dot-holder-size")]:e.dotSizeSM},"&-lg":{[n("dot-holder-size")]:e.dotSizeLG}}}},IK=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},PK=Tt("Spin",e=>{const t=Rt(e,{spinDotDefault:e.colorTextDescription});return[CK(t),wK(t),EK(t)]},IK),NK=200,_w=[[30,.05],[70,.03],[96,.01]];function RK(e,t){const[n,r]=a.useState(0),o=a.useRef(null),s=t==="auto";return a.useEffect(()=>(s&&e&&(r(0),o.current=setInterval(()=>{r(i=>{const l=100-i;for(let c=0;c<_w.length;c+=1){const[u,d]=_w[c];if(i<=u)return i+l*d}return i})},NK)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[s,e]),s?n:t}let XT;function TK(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const YT=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:s,size:i,tip:l,description:c,wrapperClassName:u,style:d,children:m,fullscreen:f=!1,indicator:p,percent:y,classNames:b,styles:x,...v}=e,{getPrefixCls:g,direction:h,indicator:$,className:C,style:N,classNames:S,styles:E}=Pt("spin"),w=g("spin",t),[R,P]=PK(w),[T,M]=a.useState(()=>n&&!TK(n,r)),z=RK(T,y);a.useEffect(()=>{if(n){const V=m9(r,()=>{M(!0)});return V(),()=>{var W;(W=V==null?void 0:V.cancel)==null||W.call(V)}}M(!1)},[r,n]);const B=Cn(V=>i??V),F=c??l,L={...e,size:B,spinning:T,tip:F,description:F,fullscreen:f,children:m,percent:z},[j,O]=Ot([S,b],[E,x],{props:L}),A=p??$??XT,k=typeof m<"u",_=k||f,D=a.createElement(a.Fragment,null,a.createElement(xK,{className:H(j.indicator),style:O.indicator,prefixCls:w,indicator:A,percent:z}),F&&a.createElement("div",{className:H(`${w}-description`,j.tip,j.description),style:{...O.tip,...O.description}},F));return a.createElement("div",{className:H(w,{[`${w}-sm`]:B==="small",[`${w}-lg`]:B==="large",[`${w}-spinning`]:T,[`${w}-rtl`]:h==="rtl",[`${w}-fullscreen`]:f},s,j.root,f&&j.mask,_?u:[`${w}-section`,j.section],C,o,R,P),style:{...O.root,..._?{}:O.section,...f?O.mask:{},...N,...d},"aria-live":"polite","aria-busy":T,...v},T&&(_?a.createElement("div",{className:H(`${w}-section`,j.section),style:O.section},D):D),k&&a.createElement("div",{className:H(`${w}-container`,j.container),style:O.container},m))};YT.setDefaultIndicator=e=>{XT=e};const QT=(e,t={})=>!bn(e)&&(t!=null&&t.skipEmpty)?[]:Array.isArray(e)?e:[e],MK=e=>{const{items:t,classNames:n,style:r}=e,{getPrefixCls:o}=Pt("message"),s=o("message"),i=on(s),[l,c]=ux(s,i),u=`${s}-notice`,d=t.map(m=>{const{content:f,duration:p,key:y,type:b}=m,x=b?`${u}-icon-${b}`:void 0;return{key:y,duration:p,icon:dx(b),title:f,className:`${u}-${b}`,classNames:{wrapper:`${s}-${b}`,icon:x}}});return a.createElement(xN,{prefixCls:s,placement:"top",configList:d,className:H(l,c,i),classNames:{...n,wrapper:n==null?void 0:n.wrapper,title:n==null?void 0:n.title},style:r,stack:!1})};let Tr=null,gi=e=>e(),jc=[],Bc={};function zw(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o,stack:s}=Bc,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o,stack:s}}const OK=J.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=a.useContext(ct),s=Bc.prefixCls||o("message"),i=a.useContext(Wy),[l,c]=kN({...n,prefixCls:s,...i.message});return J.useImperativeHandle(t,()=>{const u={...l};return Object.keys(u).forEach(d=>{u[d]=(...m)=>(r(),l[d].apply(l,m))}),{instance:u,sync:r}}),c}),_K=J.forwardRef((e,t)=>{const[n,r]=J.useState(zw),o=()=>{r(zw)};J.useEffect(o,[]);const s=gN(),i=s.getRootPrefixCls(),l=s.getIconPrefixCls(),c=s.getTheme(),u=J.createElement(OK,{ref:t,sync:o,messageConfig:n});return J.createElement(to,{prefixCls:i,iconPrefixCls:l,theme:c},s.holderRender?s.holderRender(u):u)}),Hm=()=>{if(!Tr){const e=document.createDocumentFragment(),t={fragment:e};Tr=t,gi(()=>{Wb(J.createElement(_K,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Hm())})}}),e)});return}Tr.instance&&(jc.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{gi(()=>{const r=Tr.instance.open({...Bc,...e.config});r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":gi(()=>{Tr==null||Tr.instance.destroy(e.key)});break;default:gi(()=>{var r;const o=(r=Tr.instance)[t].apply(r,$t(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),jc=[])};function zK(e){Bc={...Bc,...e},gi(()=>{var t;(t=Tr==null?void 0:Tr.sync)==null||t.call(Tr)})}function jK(e){const t=fx(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:s=>{r=s}};return jc.push(o),()=>{r?gi(()=>{r()}):o.skipped=!0}});return Hm(),t}function BK(e,t){const n=fx(r=>{let o;const s={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return jc.push(s),()=>{o?gi(()=>{o()}):s.skipped=!0}});return Hm(),n}const LK=e=>{jc.push({type:"destroy",key:e}),Hm()},kK=["success","info","warning","error","loading"],AK={open:jK,destroy:LK,config:zK,useMessage:AN,_InternalPanelDoNotUseOrYouWillBeFired:MB,_InternalListDoNotUseOrYouWillBeFired:MK},JT=AK;kK.forEach(e=>{JT[e]=(...t)=>BK(e,t)});const DK=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:s,title:i,children:l,footer:c,classNames:u,styles:d,...m}=e,{getPrefixCls:f}=a.useContext(ct),{className:p,style:y,classNames:b,styles:x}=Pt("modal"),v=f(),g=t||f("modal"),h=on(v),[$,C]=vR(g,h),[N,S]=Ot([b,u],[x,d],{props:e}),E=`${g}-confirm`;let w={};return s?w={closable:o??!1,title:"",footer:"",children:a.createElement(xR,{...e,prefixCls:g,confirmPrefixCls:E,rootPrefixCls:v,content:l})}:w={closable:o??!0,title:i,footer:c!==null&&a.createElement(pR,{...e}),children:l},a.createElement(ZN,{prefixCls:g,className:H($,`${g}-pure-panel`,s&&E,s&&`${E}-${s}`,n,p,C,h,N.root),style:{...y,...S.root},...m,closeIcon:mR(g,r),closable:o,classNames:N,styles:S,...w})},FK=OR(DK);function ZT(e){return eu(wR(e))}const Sn=bR;Sn.useModal=RR;Sn.info=function(t){return eu(ER(t))};Sn.success=function(t){return eu(IR(t))};Sn.error=function(t){return eu(PR(t))};Sn.warning=ZT;Sn.warn=ZT;Sn.confirm=function(t){return eu(NR(t))};Sn.destroyAll=function(){for(;mi.length;){const t=mi.pop();t&&t()}};Sn.config=TA;Sn._InternalPanelDoNotUseOrYouWillBeFired=FK;const HK=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:s,colorWarning:i,marginXXS:l,marginXS:c,fontSize:u,fontWeightStrong:d,colorTextHeading:m}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:u},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon`]:{color:i},[`> ${t}-message-icon ${n}`]:{fontSize:u,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:d,color:m,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:s}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}},VK=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},eM=Tt("Popconfirm",HK,VK,{resetStyle:!1}),tM=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:s,cancelText:i,okText:l,okType:c="primary",icon:u=a.createElement(Li,null),showCancel:d=!0,close:m,onConfirm:f,onCancel:p,onPopupClick:y,classNames:b,styles:x}=e,{getPrefixCls:v}=a.useContext(ct),[g]=Ar("Popconfirm",Zr.Popconfirm),h=Ga(o),$=Ga(s);return a.createElement("div",{className:`${t}-inner-content`,onClick:y},a.createElement("div",{className:`${t}-message`},u&&a.createElement("span",{className:H(`${t}-message-icon`,b==null?void 0:b.icon),style:x==null?void 0:x.icon},u),a.createElement("div",{className:`${t}-message-text`},$n(h)&&a.createElement("div",{className:H(`${t}-title`,b==null?void 0:b.title),style:x==null?void 0:x.title},h),$n($)&&a.createElement("div",{className:H(`${t}-description`,b==null?void 0:b.content),style:x==null?void 0:x.content},$))),a.createElement("div",{className:`${t}-buttons`},d&&a.createElement(Xe,{onClick:p,size:"small",...r},i||(g==null?void 0:g.cancelText)),a.createElement(vx,{buttonProps:{size:"small",...px(c),...n},actionFn:f,close:m,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l||(g==null?void 0:g.okText))))},WK=e=>{const{prefixCls:t,placement:n,className:r,style:o,...s}=e,{getPrefixCls:i}=a.useContext(ct),l=i("popconfirm",t);return eM(l),a.createElement(d4,{placement:n,className:H(l,r),style:o,content:a.createElement(tM,{prefixCls:l,...s})})},KK=a.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:o,okType:s="primary",icon:i=a.createElement(Li,null),children:l,overlayClassName:c,onOpenChange:u,overlayStyle:d,styles:m,arrow:f,classNames:p,...y}=e,{getPrefixCls:b,className:x,style:v,classNames:g,styles:h,arrow:$,trigger:C}=Pt("popconfirm"),[N,S]=nn(e.defaultOpen??!1,e.open),E=jx(f,$),w=o||C||"click",R=A=>{S(A),u==null||u(A)},P=()=>{R(!1)},T=A=>{var k;return(k=e.onConfirm)==null?void 0:k.call(void 0,A)},M=A=>{var k;R(!1),(k=e.onCancel)==null||k.call(void 0,A)},z=A=>{const{disabled:k=!1}=e;k||R(A)},B=b("popconfirm",n),F={...e,placement:r,trigger:w,okType:s,overlayStyle:d,styles:m,classNames:p},[L,j]=Ot([g,p],[h,m],{props:F}),O=H(B,x,c,L.root);return eM(B),a.createElement(Bx,{arrow:E,...Dt(y,["title"]),trigger:w,placement:r,onOpenChange:z,open:N,ref:t,classNames:{root:O,container:L.container,arrow:L.arrow},styles:{root:{...v,...j.root,...d},container:j.container,arrow:j.arrow},content:a.createElement(tM,{okType:s,icon:i,...e,prefixCls:B,close:P,onConfirm:T,onCancel:M,classNames:L,styles:j}),"data-popover-inject":!0},l)}),lu=KK;lu._InternalPanelDoNotUseOrYouWillBeFired=WK;var nM={};Object.defineProperty(nM,"__esModule",{value:!0});var UK={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"},qK=nM.default=UK;function Dv(){return Dv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dv.apply(this,arguments)}const GK=(e,t)=>a.createElement(gt,Dv({},e,{ref:t,icon:qK})),Gs=a.forwardRef(GK),Uo={},cu="rc-table-internal-hook";function t$(e){const t=a.createContext(void 0);return{Context:t,Provider:({value:r,children:o})=>{const s=a.useRef(r);s.current=r;const[i]=a.useState(()=>({getValue:()=>s.current,listeners:new Set}));return It(()=>{ss.unstable_batchedUpdates(()=>{i.listeners.forEach(l=>{l(r)})})},[r]),a.createElement(t.Provider,{value:i},o)},defaultValue:e}}function Bn(e,t){const n=vt(typeof t=="function"?t:c=>{if(t===void 0)return c;if(!Array.isArray(t))return c[t];const u={};return t.forEach(d=>{u[d]=c[d]}),u}),r=a.useContext(e==null?void 0:e.Context),{listeners:o,getValue:s}=r||{},i=a.useRef();i.current=n(r?s():e==null?void 0:e.defaultValue);const[,l]=a.useState({});return It(()=>{if(!r)return;function c(u){const d=n(u);ho(i.current,d,!0)||l({})}return o.add(c),()=>{o.delete(c)}},[r]),i.current}function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ec.apply(this,arguments)}function XK(){const e=a.createContext(null);function t(){return a.useContext(e)}function n(o,s){const i=is(o),l=(c,u)=>{const d=i?{ref:u}:{},m=a.useRef(0),f=a.useRef(c);return t()!==null?a.createElement(o,ec({},c,d)):((!s||s(f.current,c))&&(m.current+=1),f.current=c,a.createElement(e.Provider,{value:m.current},a.createElement(o,ec({},c,d))))};return i?a.forwardRef(l):l}function r(o,s){const i=is(o),l=(c,u)=>{const d=i?{ref:u}:{};return t(),a.createElement(o,ec({},c,d))};return a.memo(i?a.forwardRef(l):l,s)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}const{makeImmutable:rM,responseImmutable:ol,useImmutableMark:YK}=XK(),Gn=t$(),oM=a.createContext({renderWithProps:!1}),QK="RC_TABLE_KEY";function JK(e){return e==null?[]:Array.isArray(e)?e:[e]}function Vm(e){const t=[],n={};return e.forEach(r=>{const{key:o,dataIndex:s}=r||{};let i=o||JK(s).join("-")||QK;for(;n[i];)i=`${i}_next`;n[i]=!0,t.push(i)}),t}function Fv(e){return e!=null}function ZK(e){return typeof e=="number"&&!Number.isNaN(e)}function eU(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!a.isValidElement(e)}function tU(e,t,n,r,o,s){const i=a.useContext(oM),l=YK();return _i(()=>{if(Fv(r))return[r];const u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=Kn(e,u);let m=d,f;if(o){const p=o(d,e,n);eU(p)?(m=p.children,f=p.props,i.renderWithProps=!0):m=p}return[m,f]},[l,e,r,t,o,n],(u,d)=>{if(s){const[,m]=u,[,f]=d;return s(f,m)}return i.renderWithProps?!0:!ho(u,d,!0)})}function nU(e,t,n,r){const o=e+t-1;return e<=r&&o>=n}function rU(e,t){return Bn(Gn,n=>[nU(e,t||1,n.hoverStartRow,n.hoverEndRow),n.onHover])}function Hv(){return Hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hv.apply(this,arguments)}const oU=({ellipsis:e,rowType:t,children:n})=>{var s,i;let r;const o=e===!0?{showTitle:!0}:e;return o&&(o.showTitle||t==="header")&&(typeof n=="string"||typeof n=="number"?r=n.toString():a.isValidElement(n)&&typeof((s=n.props)==null?void 0:s.children)=="string"&&(r=(i=n.props)==null?void 0:i.children)),r},sU=e=>{const{component:t,children:n,ellipsis:r,scope:o,prefixCls:s,className:i,style:l,align:c,record:u,render:d,dataIndex:m,renderIndex:f,shouldCellUpdate:p,index:y,rowType:b,colSpan:x,rowSpan:v,fixStart:g,fixEnd:h,fixedStartShadow:$,fixedEndShadow:C,offsetFixedStartShadow:N,offsetFixedEndShadow:S,zIndex:E,zIndexReverse:w,appendNode:R,additionalProps:P={},isSticky:T}=e,M=`${s}-cell`,{allColumnsFixedLeft:z,rowHoverable:B}=Bn(Gn,["allColumnsFixedLeft","rowHoverable"]),[F,L]=tU(u,m,f,n,d,p),j={},O=typeof g=="number"&&!z,A=typeof h=="number"&&!z,[k,_]=Bn(Gn,({scrollInfo:Z})=>{if(!O&&!A)return[!1,!1];const[ne,oe]=Z,le=(O&&$&&ne)-N>=1,re=(A&&C&&oe-ne)-S>1;return[le,re]});O&&(j.insetInlineStart=g,j["--z-offset"]=E,j["--z-offset-reverse"]=w),A&&(j.insetInlineEnd=h,j["--z-offset"]=E,j["--z-offset-reverse"]=w);const D=(L==null?void 0:L.colSpan)??P.colSpan??x??1,V=(L==null?void 0:L.rowSpan)??P.rowSpan??v??1,[W,K]=rU(y,V),q=vt(Z=>{var ne;u&&K(y,y+V-1),(ne=P==null?void 0:P.onMouseEnter)==null||ne.call(P,Z)}),Y=vt(Z=>{var ne;u&&K(-1,-1),(ne=P==null?void 0:P.onMouseLeave)==null||ne.call(P,Z)});if(D===0||V===0)return null;const ee=P.title??oU({rowType:b,ellipsis:r,children:F}),ie=H(M,i,{[`${M}-fix`]:O||A,[`${M}-fix-start`]:O,[`${M}-fix-end`]:A,[`${M}-fix-start-shadow`]:$,[`${M}-fix-start-shadow-show`]:$&&k,[`${M}-fix-end-shadow`]:C,[`${M}-fix-end-shadow-show`]:C&&_,[`${M}-ellipsis`]:r,[`${M}-with-append`]:R,[`${M}-fix-sticky`]:(O||A)&&T,[`${M}-row-hover`]:!L&&W},P.className,L==null?void 0:L.className),ae={};c&&(ae.textAlign=c);const U={...L==null?void 0:L.style,...j,...ae,...P.style,...l};let Q=F;return typeof Q=="object"&&!Array.isArray(Q)&&!a.isValidElement(Q)&&(Q=null),r&&($||C)&&(Q=a.createElement("span",{className:`${M}-content`},Q)),a.createElement(t,Hv({},L,P,{className:ie,style:U,title:ee,scope:o,onMouseEnter:B?q:void 0,onMouseLeave:B?Y:void 0,colSpan:D!==1?D:null,rowSpan:V!==1?V:null}),R,Q)},sl=a.memo(sU);function Uu(e){return e.fixed==="start"}function qu(e){return e.fixed==="end"}function n$(e,t,n,r){const o=n[e]||{},s=n[t]||{};let i=null,l=null;Uu(o)&&Uu(s)?i=r.start[e]:qu(s)&&qu(o)&&(l=r.end[t]);let c=!1,u=!1,d=0,m=0;i!==null&&(c=!n[t+1]||!Uu(n[t+1]),d=n.length*2-e,m=n.length+e),l!==null&&(u=!n[e-1]||!qu(n[e-1]),d=t,m=n.length-t);let f=0,p=0;if(c)for(let y=0;y<e;y+=1)Uu(n[y])||(f+=r.widths[y]||0);if(u)for(let y=n.length-1;y>t;y-=1)qu(n[y])||(p+=r.widths[y]||0);return{fixStart:i,fixEnd:l,fixedStartShadow:c,fixedEndShadow:u,offsetFixedStartShadow:f,offsetFixedEndShadow:p,isSticky:r.isSticky,zIndex:d,zIndexReverse:m}}const sM=a.createContext({});function Vv(){return Vv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vv.apply(this,arguments)}const iU=e=>{const{className:t,index:n,children:r,colSpan:o=1,rowSpan:s,align:i}=e,{prefixCls:l}=Bn(Gn,["prefixCls"]),{scrollColumnIndex:c,stickyOffsets:u,flattenColumns:d}=a.useContext(sM),f=n+o-1+1===c?o+1:o,p=a.useMemo(()=>n$(n,n+f-1,d,u),[n,f,d,u]);return a.createElement(sl,Vv({className:t,index:n,component:"td",prefixCls:l,record:null,dataIndex:null,align:i,colSpan:f,rowSpan:s,render:()=>r},p))},aU=e=>{const{children:t,...n}=e;return a.createElement("tr",n,t)},Wm=e=>{const{children:t}=e;return t};Wm.Row=aU;Wm.Cell=iU;const lU=e=>{const{children:t,stickyOffsets:n,flattenColumns:r}=e,o=Bn(Gn,"prefixCls"),s=r.length-1,i=r[s],l=a.useMemo(()=>({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:i!=null&&i.scrollbar?s:null}),[i,r,s,n]);return a.createElement(sM.Provider,{value:l},a.createElement("tfoot",{className:`${o}-summary`},t))},Gu=ol(lU),iM=Wm;function cU(e){return null}function uU(e){return null}function aM(e,t,n,r,o,s,i){const l=s(t,i);e.push({record:t,indent:n,index:i,rowKey:l});const c=o==null?void 0:o.has(l);if(t&&Array.isArray(t[r])&&c)for(let u=0;u<t[r].length;u+=1)aM(e,t[r][u],n+1,r,o,s,u)}function lM(e,t,n,r){return a.useMemo(()=>{if(n!=null&&n.size){const s=[];for(let i=0;i<(e==null?void 0:e.length);i+=1){const l=e[i];aM(s,l,0,t,n,r,i)}return s}return e==null?void 0:e.map((s,i)=>({record:s,indent:0,index:i,rowKey:r(s,i)}))},[e,t,n,r])}function cM(e,t,n,r){const o=Bn(Gn,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),{flattenColumns:s,expandableType:i,expandedKeys:l,childrenColumnName:c,onTriggerExpand:u,rowExpandable:d,onRow:m,expandRowByClick:f,rowClassName:p}=o,y=i==="nest",b=i==="row"&&(!d||d(e)),x=b||y,v=l&&l.has(t),g=c&&e&&e[c],h=vt(u),$=m==null?void 0:m(e,n),C=$==null?void 0:$.onClick,N=(w,...R)=>{f&&x&&u(e,w),C==null||C(w,...R)};let S;typeof p=="string"?S=p:typeof p=="function"&&(S=p(e,n,r));const E=Vm(s);return{...o,columnsKey:E,nestExpandable:y,expanded:v,hasNestChildren:g,record:e,onTriggerExpand:h,rowSupportExpand:b,expandable:x,rowProps:{...$,className:H(S,$==null?void 0:$.className),onClick:N}}}const uM=e=>{const{prefixCls:t,children:n,component:r,cellComponent:o,className:s,expanded:i,colSpan:l,isEmpty:c,stickyOffset:u=0}=e,{scrollbarSize:d,fixHeader:m,fixColumn:f,componentWidth:p,horizonScroll:y}=Bn(Gn,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]);let b=n;return(c?y&&p:f)&&(b=a.createElement("div",{style:{width:p-u-(m&&!c?d:0),position:"sticky",left:u,overflow:"hidden"},className:`${t}-expanded-row-fixed`},b)),a.createElement(r,{className:s,style:{display:i?null:"none"}},a.createElement(sl,{component:o,prefixCls:t,colSpan:l},b))};function dU({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:o}){const s=`${e}-row-expand-icon`;if(!o)return a.createElement("span",{className:H(s,`${e}-row-spaced`)});const i=l=>{n(t,l),l.stopPropagation()};return a.createElement("span",{className:H(s,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r}),onClick:i})}function fU(e,t,n){const r=[];function o(s){(s||[]).forEach((i,l)=>{r.push(t(i,l)),o(i[n])})}return o(e),r}function dM(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function Rf(){return Rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rf.apply(this,arguments)}function fM(e,t,n,r,o,s=[],i=0){var E;const{record:l,prefixCls:c,columnsKey:u,fixedInfoList:d,expandIconColumnIndex:m,nestExpandable:f,indentSize:p,expandIcon:y,expanded:b,hasNestChildren:x,onTriggerExpand:v,expandable:g,expandedKeys:h}=e,$=u[n],C=d[n];let N;n===(m||0)&&f&&(N=a.createElement(a.Fragment,null,a.createElement("span",{style:{paddingLeft:`${p*r}px`},className:`${c}-row-indent indent-level-${r}`}),y({prefixCls:c,expanded:b,expandable:x,record:l,onExpand:v})));const S=((E=t.onCell)==null?void 0:E.call(t,l,o))||{};if(i){const{rowSpan:w=1}=S;if(g&&w&&n<i){let R=w;for(let P=o;P<o+w;P+=1){const T=s[P];h.has(T)&&(R+=1)}S.rowSpan=R}}return{key:$,fixedInfo:C,appendCellNode:N,additionalCellProps:S}}const mU=e=>{const{className:t,style:n,classNames:r,styles:o,record:s,index:i,renderIndex:l,rowKey:c,rowKeys:u,indent:d=0,rowComponent:m,cellComponent:f,scopeCellComponent:p,expandedRowInfo:y}=e,b=cM(s,c,i,d),{prefixCls:x,flattenColumns:v,expandedRowClassName:g,expandedRowRender:h,rowProps:$,expanded:C,rowSupportExpand:N}=b,S=a.useRef(!1);S.current||(S.current=C);const E=dM(g,s,i,d),w=a.createElement(m,Rf({},$,{"data-row-key":c,className:H(t,`${x}-row`,`${x}-row-level-${d}`,$==null?void 0:$.className,r.row,{[E]:d>=1}),style:{...n,...$==null?void 0:$.style,...o.row}}),v.map((P,T)=>{const{render:M,dataIndex:z,className:B}=P,{key:F,fixedInfo:L,appendCellNode:j,additionalCellProps:O}=fM(b,P,T,d,i,u,y==null?void 0:y.offset);return a.createElement(sl,Rf({className:H(B,r.cell),style:o.cell,ellipsis:P.ellipsis,align:P.align,scope:P.rowScope,component:P.rowScope?p:f,prefixCls:x,key:F,record:s,index:i,renderIndex:l,dataIndex:z,render:M,shouldCellUpdate:P.shouldCellUpdate},L,{appendNode:j,additionalProps:O}))}));let R;if(N&&(S.current||C)){const P=h(s,i,d+1,C);R=a.createElement(uM,{expanded:C,className:H(`${x}-expanded-row`,`${x}-expanded-row-level-${d+1}`,E),prefixCls:x,component:m,cellComponent:f,colSpan:y?y.colSpan:v.length,isEmpty:!1,stickyOffset:y==null?void 0:y.sticky},P)}return a.createElement(a.Fragment,null,w,R)},pU=ol(mU),gU=e=>{const{columnKey:t,onColumnResize:n,title:r}=e,o=a.useRef(null);return It(()=>{o.current&&n(t,o.current.offsetWidth)},[]),a.createElement(ir,{data:t},a.createElement("td",{ref:o,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},a.createElement("div",{style:{height:0,overflow:"hidden",fontWeight:"bold"}},r||" ")))},hU=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{const o=a.useRef(null),{measureRowRender:s}=Bn(Gn,["measureRowRender"]),i=a.createElement("tr",{"aria-hidden":"true",className:`${e}-measure-row`,style:{height:0},ref:o},a.createElement(ir.Collection,{onBatchResize:l=>{Vc(o.current)&&l.forEach(({data:c,size:u})=>{n(c,u.offsetWidth)})}},t.map(l=>{const c=r.find(m=>m.key===l),u=c==null?void 0:c.title,d=a.isValidElement(u)?a.cloneElement(u,{ref:null}):u;return a.createElement(gU,{key:l,columnKey:l,onColumnResize:n,title:d})})));return typeof s=="function"?s(i):i},yU=e=>{const{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:o,onColumnResize:s,flattenColumns:i,getRowKey:l,expandedKeys:c,childrenColumnName:u,emptyNode:d,classNames:m,styles:f,expandedRowOffset:p=0,colWidths:y}=Bn(Gn,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","classNames","styles","expandedRowOffset","fixedInfoList","colWidths"]),{body:b={}}=m||{},{body:x={}}=f||{},v=lM(t,u,c,l),g=a.useMemo(()=>v.map(P=>P.rowKey),[v]),h=a.useRef({renderWithProps:!1}),$=a.useMemo(()=>{const P=i.length-p;let T=0;for(let M=0;M<p;M+=1)T+=y[M]||0;return{offset:p,colSpan:P,sticky:T}},[i.length,p,y]),C=o(["body","wrapper"],"tbody"),N=o(["body","row"],"tr"),S=o(["body","cell"],"td"),E=o(["body","cell"],"th");let w;t.length?w=v.map((P,T)=>{const{record:M,indent:z,index:B,rowKey:F}=P;return a.createElement(pU,{classNames:b,styles:x,key:F,rowKey:F,rowKeys:g,record:M,index:T,renderIndex:B,rowComponent:N,cellComponent:S,scopeCellComponent:E,indent:z,expandedRowInfo:$})}):w=a.createElement(uM,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:N,cellComponent:S,colSpan:i.length,isEmpty:!0},d);const R=Vm(i);return a.createElement(oM.Provider,{value:h.current},a.createElement(C,{style:x.wrapper,className:H(`${r}-tbody`,b.wrapper)},n&&a.createElement(hU,{prefixCls:r,columnsKey:R,onColumnResize:s,columns:i}),w))},vU=ol(yU),tc="RC_TABLE_INTERNAL_COL_DEFINE";function bU(e){const{expandable:t,...n}=e;let r;return"expandable"in e?r={...n,...t}:r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}function Wv(){return Wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wv.apply(this,arguments)}const mM=e=>{const{colWidths:t,columns:n,columCount:r}=e,{tableLayout:o}=Bn(Gn,["tableLayout"]),s=[],i=r||n.length;let l=!1;for(let c=i-1;c>=0;c-=1){const u=t[c],d=n&&n[c];let m,f;if(d&&(m=d[tc],o==="auto"&&(f=d.minWidth)),u||f||m||l){const{columnType:p,...y}=m||{};s.unshift(a.createElement("col",Wv({key:c,style:{width:u,minWidth:f}},y))),l=!0}}return s.length>0?a.createElement("colgroup",null,s):null};function xU(e,t){return a.useMemo(()=>{const n=[];for(let r=0;r<t;r+=1){const o=e[r];if(o!==void 0)n[r]=o;else return null}return n},[e.join("_"),t])}const $U=a.forwardRef((e,t)=>{const{className:n,style:r,noData:o,columns:s,flattenColumns:i,colWidths:l,colGroup:c,columCount:u,stickyOffsets:d,direction:m,fixHeader:f,stickyTopOffset:p,stickyBottomOffset:y,stickyClassName:b,scrollX:x,tableLayout:v="fixed",onScroll:g,maxContentScroll:h,children:$,...C}=e,{prefixCls:N,scrollbarSize:S,isSticky:E,getComponent:w}=Bn(Gn,["prefixCls","scrollbarSize","isSticky","getComponent"]),R=w(["header","table"],"table"),P=E&&!f?0:S,T=a.useRef(null),M=a.useCallback(k=>{Rh(t,k),Rh(T,k)},[]);a.useEffect(()=>{function k(D){const{currentTarget:V,deltaX:W}=D;if(W){const{scrollLeft:K,scrollWidth:q,clientWidth:Y}=V,ee=q-Y;let ie=K+W;m==="rtl"?(ie=Math.max(-ee,ie),ie=Math.min(0,ie)):(ie=Math.min(ee,ie),ie=Math.max(0,ie)),g({currentTarget:V,scrollLeft:ie}),D.preventDefault()}}const _=T.current;return _==null||_.addEventListener("wheel",k,{passive:!1}),()=>{_==null||_.removeEventListener("wheel",k)}},[]);const z=i[i.length-1],B={fixed:z?z.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${N}-cell-scrollbar`})},F=a.useMemo(()=>P?[...s,B]:s,[P,s]),L=a.useMemo(()=>P?[...i,B]:i,[P,i]),j=a.useMemo(()=>{const{start:k,end:_}=d;return{...d,start:k,end:[..._.map(D=>D+P),0],isSticky:E}},[P,d,E]),O=xU(l,u),A=a.useMemo(()=>{const k=!O||!O.length||O.every(_=>!_);return o||k},[o,O]);return a.createElement("div",{style:{overflow:"hidden",...E?{top:p,bottom:y}:{},...r},ref:M,className:H(n,{[b]:!!b})},a.createElement(R,{style:{tableLayout:v,minWidth:"100%",width:x}},A?c:a.createElement(mM,{colWidths:[...O,P],columCount:u+1,columns:L}),$({...C,stickyOffsets:j,columns:F,flattenColumns:L})))}),jw=a.memo($U);function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tf.apply(this,arguments)}const SU=e=>{const{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:o,cellComponent:s,onHeaderRow:i,index:l,classNames:c,styles:u}=e,{prefixCls:d}=Bn(Gn,["prefixCls"]);let m;i&&(m=i(t.map(p=>p.column),l));const f=Vm(t.map(p=>p.column));return a.createElement(o,Tf({},m,{className:c.row,style:u.row}),t.map((p,y)=>{var C;const{column:b,colStart:x,colEnd:v,colSpan:g}=p,h=n$(x,v,r,n),$=((C=b==null?void 0:b.onHeaderCell)==null?void 0:C.call(b,b))||{};return a.createElement(sl,Tf({},p,{scope:b.title?g>1?"colgroup":"col":null,ellipsis:b.ellipsis,align:b.align,component:s,prefixCls:d,key:f[y]},h,{additionalProps:$,rowType:"header"}))}))};function CU(e,t,n){const r=[];function o(i,l,c=0){r[c]=r[c]||[];let u=l;return i.filter(Boolean).map(m=>{const f={key:m.key,className:H(m.className,t.cell)||"",style:n.cell,children:m.title,column:m,colStart:u};let p=1;const y=m.children;return y&&y.length>0&&(p=o(y,u,c+1).reduce((b,x)=>b+x,0),f.hasSubColumns=!0),"colSpan"in m&&({colSpan:p}=m),"rowSpan"in m&&(f.rowSpan=m.rowSpan),f.colSpan=p,f.colEnd=f.colStart+p-1,r[c].push(f),u+=p,p})}o(e,0);const s=r.length;for(let i=0;i<s;i+=1)r[i].forEach(l=>{!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=s-i)});return r}const wU=e=>{const{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:o}=e,{prefixCls:s,getComponent:i,classNames:l,styles:c}=Bn(Gn,["prefixCls","getComponent","classNames","styles"]),{header:u={}}=l||{},{header:d={}}=c||{},m=a.useMemo(()=>CU(n,u,d),[n,u,d]),f=i(["header","wrapper"],"thead"),p=i(["header","row"],"tr"),y=i(["header","cell"],"th");return a.createElement(f,{className:H(`${s}-thead`,u.wrapper),style:d.wrapper},m.map((b,x)=>a.createElement(SU,{classNames:u,styles:d,key:x,flattenColumns:r,cells:b,stickyOffsets:t,rowComponent:p,cellComponent:y,onHeaderRow:o,index:x})))},Bw=ol(wU);function Lw(e,t=""){return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function EU(e,t,n){return a.useMemo(()=>{if(t&&t>0){let r=0,o=0;e.forEach(m=>{const f=Lw(t,m.width);f?r+=f:o+=1});const s=Math.max(t,n);let i=Math.max(s-r,o),l=o;const c=i/o;let u=0;const d=e.map(m=>{const f={...m},p=Lw(t,f.width);if(p)f.width=p;else{const y=Math.floor(c);f.width=l===1?i:y,i-=y,l-=1}return u+=f.width,f});if(u<s){const m=s/u;i=s,d.forEach((f,p)=>{const y=Math.floor(f.width*m);f.width=p===d.length-1?i:y,i-=y})}return[d,Math.max(u,s)]}return[e,t]},[e,t,n])}function r$(e){return zn(e).filter(t=>a.isValidElement(t)).map(t=>{const{key:n,props:r}=t,{children:o,...s}=r,i={key:n,...s};return o&&(i.children=r$(o)),i})}function pM(e){return e.filter(t=>t&&typeof t=="object"&&!t.hidden).map(t=>{const n=t.children;return n&&n.length>0?{...t,children:pM(n)}:t})}function gM(e,t="key"){return e.filter(n=>n&&typeof n=="object").reduce((n,r,o)=>{const{fixed:s}=r,i=s===!0||s==="left"?"start":s==="right"?"end":s,l=`${t}-${o}`,c=r.children;return c&&c.length>0?[...n,...gM(c,l).map(u=>({...u,fixed:u.fixed??i}))]:[...n,{key:l,...r,fixed:i}]},[])}function IU({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:o,columnTitle:s,getRowKey:i,onTriggerExpand:l,expandIcon:c,rowExpandable:u,expandIconColumnIndex:d,expandedRowOffset:m=0,direction:f,expandRowByClick:p,columnWidth:y,fixed:b,scrollWidth:x,clientWidth:v},g){const h=a.useMemo(()=>{const w=t||r$(n)||[];return pM(w.slice())},[t,n]),$=a.useMemo(()=>{if(r){let w=h.slice();if(!w.includes(Uo)){const z=d||0,B=z===0&&(b==="right"||b==="end")?h.length:z;B>=0&&w.splice(B,0,Uo)}const R=w.indexOf(Uo);w=w.filter((z,B)=>z!==Uo||B===R);const P=h[R];let T;b?T=b:T=P?P.fixed:null;const M={[tc]:{className:`${e}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:s,fixed:T,className:`${e}-row-expand-icon-cell`,width:y,render:(z,B,F)=>{const L=i(B,F),j=o.has(L),O=u?u(B):!0,A=c({prefixCls:e,expanded:j,expandable:O,record:B,onExpand:l});return p?a.createElement("span",{onClick:k=>k.stopPropagation()},A):A}};return w.map((z,B)=>{const F=z===Uo?M:z;return B<m?{...F,fixed:F.fixed||"start"}:F})}return h.filter(w=>w!==Uo)},[r,h,i,o,c,f,m]),C=a.useMemo(()=>{let w=$;return g&&(w=g(w)),w.length||(w=[{render:()=>null}]),w},[g,$,f]),N=a.useMemo(()=>gM(C),[C,f,x]),[S,E]=EU(N,x,v);return[C,S,E]}function PU(e,t,n){const r=bU(e),{expandIcon:o,expandedRowKeys:s,defaultExpandedRowKeys:i,defaultExpandAllRows:l,expandedRowRender:c,onExpand:u,onExpandedRowsChange:d,childrenColumnName:m}=r,f=o||dU,p=m||"children",y=a.useMemo(()=>c?"row":e.expandable&&e.internalHooks===cu&&e.expandable.__PARENT_RENDER_ICON__||t.some(h=>h&&typeof h=="object"&&h[p])?"nest":!1,[!!c,t]),[b,x]=a.useState(()=>i||(l?fU(t,n,p):[])),v=a.useMemo(()=>new Set(s||b||[]),[s,b]),g=a.useCallback(h=>{const $=n(h,t.indexOf(h));let C;const N=v.has($);N?(v.delete($),C=[...v]):C=[...v,$],x(C),u&&u(!N,h),d&&d(C)},[n,v,t,u,d]);return[r,y,v,f,p,g]}function NU(e,t){const n=a.useMemo(()=>e.map((r,o)=>n$(o,o,e,t)),[e,t]);return _i(()=>n,[n],(r,o)=>!ho(r,o))}function RU(e){const t=a.useRef(e),[,n]=a.useState({}),r=a.useRef(null),o=a.useRef([]);function s(i){o.current.push(i);const l=Promise.resolve();r.current=l,l.then(()=>{if(r.current===l){const c=o.current,u=t.current;o.current=[],c.forEach(d=>{t.current=d(t.current)}),r.current=null,u!==t.current&&n({})}})}return a.useEffect(()=>()=>{r.current=null},[]),[t.current,s]}function TU(e){const t=a.useRef(null),n=a.useRef(null);function r(){clearTimeout(n.current)}function o(i){t.current=i,r(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)}function s(){return t.current}return a.useEffect(()=>r,[]),[o,s]}function MU(){const[e,t]=a.useState(-1),[n,r]=a.useState(-1),o=a.useCallback((s,i)=>{t(s),r(i)},[]);return[e,n,o]}const kw=lr()?window:null;function OU(e,t){const{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:o=0,getContainer:s=()=>kw}=typeof e=="object"?e:{},i=s()||kw,l=!!e;return a.useMemo(()=>({isSticky:l,stickyClassName:l?`${t}-sticky-holder`:"",offsetHeader:n,offsetSummary:r,offsetScroll:o,container:i}),[l,o,n,r,t,i])}function _U(e,t){return a.useMemo(()=>{const r=t.length,o=(l,c,u)=>{const d=[];let m=0;for(let f=l;f!==c;f+=u)d.push(m),t[f].fixed&&(m+=e[f]||0);return d},s=o(0,r,1),i=o(r-1,-1,-1).reverse();return{start:s,end:i,widths:e}},[e,t])}const Aw=e=>{const{children:t,className:n,style:r}=e;return a.createElement("div",{className:n,style:r},t)};function Dw(e){const n=go(e).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)}}const Fw="mouseup",Hw="mousemove",sa="scroll",Vw="resize",zU=(e,t)=>{var S,E;const{scrollBodyRef:n,onScroll:r,offsetScroll:o,container:s,direction:i}=e,l=Bn(Gn,"prefixCls"),c=((S=n.current)==null?void 0:S.scrollWidth)||0,u=((E=n.current)==null?void 0:E.clientWidth)||0,d=c&&u*(u/c),m=a.useRef(null),[f,p]=RU({scrollLeft:0,isHiddenScrollBar:!0}),y=a.useRef({delta:0,x:0}),[b,x]=a.useState(!1),v=a.useRef(null);a.useEffect(()=>()=>{Ct.cancel(v.current)},[]);const g=()=>{x(!1)},h=w=>{w.persist(),y.current.delta=w.pageX-f.scrollLeft,y.current.x=0,x(!0),w.preventDefault()},$=w=>{const{buttons:R}=w||(window==null?void 0:window.event);if(!b||R===0){b&&x(!1);return}let P=y.current.x+w.pageX-y.current.x-y.current.delta;const T=i==="rtl";P=Math.max(T?d-u:0,Math.min(T?0:u-d,P)),(!T||Math.abs(P)+Math.abs(d)<u)&&(r({scrollLeft:P/u*(c+2)}),y.current.x=w.pageX)},C=()=>{Ct.cancel(v.current),v.current=Ct(()=>{if(!n.current)return;const w=Dw(n.current).top,R=w+n.current.offsetHeight,P=s===window?document.documentElement.scrollTop+window.innerHeight:Dw(s).top+s.clientHeight;R-LS()<=P||w>=P-o?p(T=>({...T,isHiddenScrollBar:!0})):p(T=>({...T,isHiddenScrollBar:!1}))})},N=w=>{p(R=>({...R,scrollLeft:w/c*u||0}))};return a.useImperativeHandle(t,()=>({setScrollLeft:N,checkScrollBarVisible:C})),a.useEffect(()=>(document.body.addEventListener(Fw,g,!1),document.body.addEventListener(Hw,$,!1),C(),()=>{document.body.removeEventListener(Fw,g),document.body.removeEventListener(Hw,$)}),[d,b]),a.useEffect(()=>{if(n.current){const w=[];let R=go(n.current);for(;R;)w.push(R),R=R.parentElement;return w.forEach(P=>{P.addEventListener(sa,C,!1)}),window.addEventListener(Vw,C,!1),window.addEventListener(sa,C,!1),s.addEventListener(sa,C,!1),()=>{w.forEach(P=>{P.removeEventListener(sa,C)}),window.removeEventListener(Vw,C),window.removeEventListener(sa,C),s.removeEventListener(sa,C)}}},[s]),a.useEffect(()=>{f.isHiddenScrollBar||p(w=>{const R=n.current;return R?{...w,scrollLeft:R.scrollLeft/R.scrollWidth*R.clientWidth}:w})},[f.isHiddenScrollBar]),c<=u||!d||f.isHiddenScrollBar?null:a.createElement("div",{style:{height:LS(),width:u,bottom:o},className:`${l}-sticky-scroll`},a.createElement("div",{onMouseDown:h,ref:m,className:H(`${l}-sticky-scroll-bar`,{[`${l}-sticky-scroll-bar-active`]:b}),style:{width:`${d}px`,transform:`translate3d(${f.scrollLeft}px, 0, 0)`}}))},jU=a.forwardRef(zU);function ys(){return ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ys.apply(this,arguments)}const hM="rc-table",BU=[],LU={};function kU(){return"No Data"}const AU=(e,t)=>{var Wt,en;const n={rowKey:"key",prefixCls:hM,emptyText:kU,...e},{prefixCls:r,className:o,rowClassName:s,style:i,classNames:l,styles:c,data:u,rowKey:d,scroll:m,tableLayout:f,direction:p,title:y,footer:b,summary:x,caption:v,id:g,showHeader:h,components:$,emptyText:C,onRow:N,onHeaderRow:S,measureRowRender:E,onScroll:w,internalHooks:R,transformColumns:P,internalRefs:T,tailor:M,getContainerWidth:z,sticky:B,rowHoverable:F=!0}=n,L=u||BU,j=!!L.length,O=R===cu,A=a.useCallback((tt,wt)=>Kn($,tt)||wt,[$]),k=a.useMemo(()=>typeof d=="function"?d:tt=>tt&&tt[d],[d]),_=A(["body"]),[D,V,W]=MU(),[K,q,Y,ee,ie,ae]=PU(n,L,k),U=m==null?void 0:m.x,[Q,Z]=a.useState(0),[ne,oe,le]=IU({...n,...K,expandable:!!K.expandedRowRender,columnTitle:K.columnTitle,expandedKeys:Y,getRowKey:k,onTriggerExpand:ae,expandIcon:ee,expandIconColumnIndex:K.expandIconColumnIndex,direction:p,scrollWidth:O&&M&&typeof U=="number"?U:null,clientWidth:Q},O?P:null),re=le??U,X=a.useMemo(()=>({columns:ne,flattenColumns:oe}),[ne,oe]),se=a.useRef(null),ge=a.useRef(null),de=a.useRef(null),Se=a.useRef(null);a.useImperativeHandle(t,()=>({nativeElement:se.current,scrollTo:tt=>{var wt,Ye;if(de.current instanceof HTMLElement){const{index:Et,top:Kt,key:pr,offset:Dr,align:ko="nearest"}=tt;if(ZK(Kt))(wt=de.current)==null||wt.scrollTo({top:Kt});else{const Ao=pr??k(L[Et]),Do=de.current.querySelector(`[data-row-key="${Ao}"]`);if(Do&&(Do.scrollIntoView({block:ko}),Dr)){const Qe=de.current;Qe.scrollTo({top:Qe.scrollTop+Dr})}}}else(Ye=de.current)!=null&&Ye.scrollTo&&de.current.scrollTo(tt)}}));const ue=a.useRef(null),[be,Ne]=a.useState(!1),[we,ze]=a.useState(!1),[he,ke]=a.useState(new Map),Ce=Vm(oe).map(tt=>he.get(tt)),Me=a.useMemo(()=>Ce,[Ce.join("_")]),xe=_U(Me,oe),Ee=m&&Fv(m.y),Ve=m&&Fv(re)||!!K.fixed,qe=Ve&&oe.some(({fixed:tt})=>tt),me=a.useRef(null),{isSticky:Re,offsetHeader:Te,offsetSummary:Ue,offsetScroll:Ge,stickyClassName:Fe,container:et}=OU(B,r),ve=a.useMemo(()=>x==null?void 0:x(L),[x,L]),je=(Ee||Re)&&a.isValidElement(ve)&&ve.type===Wm&&ve.props.fixed;let ce,Pe,pe;Ee&&(Pe={overflowY:j?"scroll":"auto",maxHeight:m.y}),Ve&&(ce={overflowX:"auto"},Ee||(Pe={overflowY:"hidden"}),pe={width:re===!0?"auto":re,minWidth:"100%"});const $e=a.useCallback((tt,wt)=>{ke(Ye=>{if(Ye.get(tt)!==wt){const Et=new Map(Ye);return Et.set(tt,wt),Et}return Ye})},[]),[_e,Ie]=TU(),[Be]=a.useState(()=>new WeakMap);function te(tt,wt){if(!wt)return;if(typeof wt=="function"){wt(tt);return}const Ye=Be.get(wt);if(Ye&&clearTimeout(Ye),wt.scrollLeft!==tt){wt.scrollLeft=tt;const Et=setTimeout(()=>{wt.scrollLeft!==tt&&(wt.scrollLeft=tt)},0);Be.set(wt,Et)}}const[ye,Ae]=a.useState([0,0]),Je=vt(({currentTarget:tt,scrollLeft:wt})=>{var pr;const Ye=typeof wt=="number"?wt:tt.scrollLeft,Et=tt||LU;(!Ie()||Ie()===Et)&&(_e(Et),te(Ye,ge.current),te(Ye,de.current),te(Ye,ue.current),te(Ye,(pr=me.current)==null?void 0:pr.setScrollLeft));const Kt=tt||ge.current;if(Kt){const Dr=O&&M&&typeof re=="number"?re:Kt.scrollWidth,ko=Kt.clientWidth,Ao=Math.abs(Ye);if(Ae(Do=>{const Qe=[Ao,Dr-ko];return ho(Do,Qe)?Do:Qe}),Dr===ko){Ne(!1),ze(!1);return}Ne(Ao>0),ze(Ao<Dr-ko-1)}}),St=vt(tt=>{Je(tt),w==null||w(tt)}),ht=()=>{var tt;Ve&&de.current?Je({currentTarget:go(de.current),scrollLeft:(tt=de.current)==null?void 0:tt.scrollLeft}):(Ne(!1),ze(!1))},Nt=tt=>{var Ye,Et;(Ye=me.current)==null||Ye.checkScrollBarVisible();let wt=tt??((Et=se.current)==null?void 0:Et.offsetWidth)??0;O&&z&&se.current&&(wt=z(se.current,wt)||wt),wt!==Q&&(ht(),Z(wt))};It(()=>{Ve&&Nt()},[Ve]);const yt=a.useRef(!1);a.useEffect(()=>{yt.current&&ht()},[Ve,u,ne.length]),a.useEffect(()=>{yt.current=!0},[]);const[at,Ze]=a.useState(0);It(()=>{(!M||!O)&&(de.current instanceof Element?Ze(zh(de.current).width):Ze(zh(Se.current).width))},[]),a.useEffect(()=>{O&&T&&(T.body.current=de.current)});const De=a.useCallback(tt=>a.createElement(a.Fragment,null,a.createElement(Bw,tt),je==="top"&&a.createElement(Gu,tt,ve)),[je,ve]),Le=a.useCallback(tt=>a.createElement(Gu,tt,ve),[ve]),Ke=A(["table"],"table"),lt=a.useMemo(()=>f||(qe?re==="max-content"?"auto":"fixed":Ee||Re||oe.some(({ellipsis:tt})=>tt)?"fixed":"auto"),[Ee,qe,oe,f,Re]);let _t;const ft={colWidths:Me,columCount:oe.length,stickyOffsets:xe,onHeaderRow:S,fixHeader:Ee,scroll:m},xt=a.useMemo(()=>j?null:typeof C=="function"?C():C,[j,C]),jt=a.createElement(vU,{data:L,measureColumnWidth:Ee||Ve||Re}),pt=a.createElement(mM,{colWidths:oe.map(({width:tt})=>tt),columns:oe}),qt=v!=null?a.createElement("caption",{className:`${r}-caption`},v):void 0,cn=Nn(n,{data:!0}),hn=Nn(n,{aria:!0});if(Ee||Re){let tt;typeof _=="function"?(tt=_(L,{scrollbarSize:at,ref:de,onScroll:Je}),ft.colWidths=oe.map(({width:Ye},Et)=>{const Kt=Et===oe.length-1?Ye-at:Ye;return typeof Kt=="number"&&!Number.isNaN(Kt)?Kt:0})):tt=a.createElement("div",{style:{...ce,...Pe},onScroll:St,ref:de,className:`${r}-body`},a.createElement(Ke,ys({style:{...pe,tableLayout:lt}},hn),qt,pt,jt,!je&&ve&&a.createElement(Gu,{stickyOffsets:xe,flattenColumns:oe},ve)));const wt={noData:!L.length,maxContentScroll:Ve&&re==="max-content",...ft,...X,direction:p,stickyClassName:Fe,scrollX:re,tableLayout:lt,onScroll:Je};_t=a.createElement(a.Fragment,null,h!==!1&&a.createElement(jw,ys({},wt,{stickyTopOffset:Te,className:`${r}-header`,ref:ge,colGroup:pt}),De),tt,je&&je!=="top"&&a.createElement(jw,ys({},wt,{stickyBottomOffset:Ue,className:`${r}-summary`,ref:ue,colGroup:pt}),Le),Re&&de.current&&de.current instanceof Element&&a.createElement(jU,{ref:me,offsetScroll:Ge,scrollBodyRef:de,onScroll:Je,container:et,direction:p}))}else _t=a.createElement("div",{style:{...ce,...Pe,...c==null?void 0:c.content},className:H(`${r}-content`,l==null?void 0:l.content),onScroll:Je,ref:de},a.createElement(Ke,ys({style:{...pe,tableLayout:lt}},hn),qt,pt,h!==!1&&a.createElement(Bw,ys({},ft,X)),jt,ve&&a.createElement(Gu,{stickyOffsets:xe,flattenColumns:oe},ve)));const Cr={...i};Re&&(Cr["--columns-count"]=oe.length);let mr=a.createElement("div",ys({className:H(r,o,{[`${r}-rtl`]:p==="rtl",[`${r}-fix-start-shadow`]:Ve,[`${r}-fix-end-shadow`]:Ve,[`${r}-fix-start-shadow-show`]:Ve&&be,[`${r}-fix-end-shadow-show`]:Ve&&we,[`${r}-layout-fixed`]:f==="fixed",[`${r}-fixed-header`]:Ee,[`${r}-fixed-column`]:qe,[`${r}-scroll-horizontal`]:Ve,[`${r}-has-fix-start`]:(Wt=oe[0])==null?void 0:Wt.fixed,[`${r}-has-fix-end`]:((en=oe[oe.length-1])==null?void 0:en.fixed)==="end"}),style:Cr,id:g,ref:se},cn),y&&a.createElement(Aw,{className:H(`${r}-title`,l==null?void 0:l.title),style:c==null?void 0:c.title},y(L)),a.createElement("div",{ref:Se,className:H(`${r}-container`,l==null?void 0:l.section),style:c==null?void 0:c.section},_t),b&&a.createElement(Aw,{className:H(`${r}-footer`,l==null?void 0:l.footer),style:c==null?void 0:c.footer},b(L)));Ve&&(mr=a.createElement(ir,{onResize:({offsetWidth:tt})=>Nt(tt)},mr));const wr=NU(oe,xe),mt=a.useMemo(()=>({scrollX:re,scrollInfo:ye,classNames:l,styles:c,prefixCls:r,getComponent:A,scrollbarSize:at,direction:p,fixedInfoList:wr,isSticky:Re,componentWidth:Q,fixHeader:Ee,fixColumn:qe,horizonScroll:Ve,tableLayout:lt,rowClassName:s,expandedRowClassName:K.expandedRowClassName,expandIcon:ee,expandableType:q,expandRowByClick:K.expandRowByClick,expandedRowRender:K.expandedRowRender,expandedRowOffset:K.expandedRowOffset,onTriggerExpand:ae,expandIconColumnIndex:K.expandIconColumnIndex,indentSize:K.indentSize,allColumnsFixedLeft:oe.every(tt=>tt.fixed==="start"),emptyNode:xt,columns:ne,flattenColumns:oe,onColumnResize:$e,colWidths:Me,hoverStartRow:D,hoverEndRow:V,onHover:W,rowExpandable:K.rowExpandable,onRow:N,getRowKey:k,expandedKeys:Y,childrenColumnName:ie,rowHoverable:F,measureRowRender:E}),[re,ye,l,c,r,A,at,p,wr,Re,Q,Ee,qe,Ve,lt,s,K.expandedRowClassName,ee,q,K.expandRowByClick,K.expandedRowRender,K.expandedRowOffset,ae,K.expandIconColumnIndex,K.indentSize,xt,ne,oe,$e,Me,D,V,W,K.rowExpandable,N,k,Y,ie,F,E]);return a.createElement(Gn.Provider,{value:mt},mr)},DU=a.forwardRef(AU),yM=e=>rM(DU,e),il=yM();il.EXPAND_COLUMN=Uo;il.INTERNAL_HOOKS=cu;il.Column=cU;il.ColumnGroup=uU;il.Summary=iM;const o$=t$(null),vM=t$(null);function Kv(){return Kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kv.apply(this,arguments)}function FU(e,t,n){return n[e+(t||1)]-(n[e]||0)}const HU=e=>{const{rowInfo:t,column:n,colIndex:r,indent:o,index:s,component:i,renderIndex:l,record:c,style:u,className:d,inverse:m,getHeight:f}=e,{render:p,dataIndex:y,className:b,width:x}=n,{columnsOffset:v}=Bn(vM,["columnsOffset"]),{key:g,fixedInfo:h,appendCellNode:$,additionalCellProps:C}=fM(t,n,r,o,s),{style:N,colSpan:S=1,rowSpan:E=1}=C,w=r-1,R=FU(w,S,v),P=S>1?x-R:0,T={...N,...u,flex:`0 0 ${R}px`,width:`${R}px`,marginRight:P,pointerEvents:"auto"},M=a.useMemo(()=>m?E<=1:S===0||E===0||E>1,[E,S,m]);M?T.visibility="hidden":m&&(T.height=f==null?void 0:f(E));const z=M?()=>null:p,B={};return(E===0||S===0)&&(B.rowSpan=1,B.colSpan=1),a.createElement(sl,Kv({className:H(b,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:g,record:c,index:s,renderIndex:l,dataIndex:y,render:z,shouldCellUpdate:n.shouldCellUpdate},h,{appendNode:$,additionalProps:{...C,style:T,...B}}))};function Uv(){return Uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uv.apply(this,arguments)}const VU=a.forwardRef((e,t)=>{var L,j;const{data:n,index:r,className:o,rowKey:s,style:i,extra:l,getHeight:c,...u}=e,{record:d,indent:m,index:f}=n,{scrollX:p,flattenColumns:y,prefixCls:b,fixColumn:x,componentWidth:v,classNames:g,styles:h}=Bn(Gn,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX","classNames","styles"]),{getComponent:$}=Bn(o$,["getComponent"]),C=cM(d,s,r,m),N=$(["body","row"],"div"),S=$(["body","cell"],"div"),{rowSupportExpand:E,expanded:w,rowProps:R,expandedRowRender:P,expandedRowClassName:T}=C,M=dM(T,d,r,m);let z;if(E&&w){const O=P(d,r,m+1,w);let A={};x&&(A={style:{"--virtual-width":`${v}px`}});const k=`${b}-expanded-row-cell`;z=a.createElement(N,{className:H(`${b}-expanded-row`,`${b}-expanded-row-level-${m+1}`,M)},a.createElement(sl,{component:S,prefixCls:b,className:H(k,{[`${k}-fixed`]:x}),additionalProps:A},O))}const B={...i,width:p};l&&(B.position="absolute",B.pointerEvents="none");const F=a.createElement(N,Uv({},R,u,{"data-row-key":s,ref:E?null:t,className:H(o,`${b}-row`,R==null?void 0:R.className,(L=g==null?void 0:g.body)==null?void 0:L.row,{[M]:m>=1,[`${b}-row-extra`]:l}),style:{...B,...R==null?void 0:R.style,...(j=h==null?void 0:h.body)==null?void 0:j.row}}),y.map((O,A)=>{var k,_;return a.createElement(HU,{key:A,className:(k=g==null?void 0:g.body)==null?void 0:k.cell,style:(_=h==null?void 0:h.body)==null?void 0:_.cell,component:S,rowInfo:C,column:O,colIndex:A,indent:m,index:r,renderIndex:f,record:d,inverse:l,getHeight:c})}));return E?a.createElement("div",{ref:t},F,z):F}),Ww=ol(VU),WU={start:"top",end:"bottom",nearest:"auto"},KU=a.forwardRef((e,t)=>{const{data:n,onScroll:r}=e,{flattenColumns:o,onColumnResize:s,getRowKey:i,expandedKeys:l,prefixCls:c,childrenColumnName:u,scrollX:d,direction:m}=Bn(Gn,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),{sticky:f,scrollY:p,listItemHeight:y,getComponent:b,onScroll:x}=Bn(o$),v=a.useRef(null),g=lM(n,u,l,i),h=a.useMemo(()=>{let P=0;return o.map(({width:T,minWidth:M,key:z})=>{const B=Math.max(T||0,M||0);return P+=B,[z,B,P]})},[o]),$=a.useMemo(()=>h.map(P=>P[2]),[h]);a.useEffect(()=>{h.forEach(([P,T])=>{s(P,T)})},[h]),a.useImperativeHandle(t,()=>{var T;const P={scrollTo:M=>{var j;const{align:z,offset:B,...F}=M,L=WU[z]??(B?"top":"auto");(j=v.current)==null||j.scrollTo({...F,offset:B,align:L})},nativeElement:(T=v.current)==null?void 0:T.nativeElement};return Object.defineProperty(P,"scrollLeft",{get:()=>{var M;return((M=v.current)==null?void 0:M.getScrollInfo().x)||0},set:M=>{var z;(z=v.current)==null||z.scrollTo({left:M})}}),Object.defineProperty(P,"scrollTop",{get:()=>{var M;return((M=v.current)==null?void 0:M.getScrollInfo().y)||0},set:M=>{var z;(z=v.current)==null||z.scrollTo({top:M})}}),P});const C=(P,T)=>{var B;const M=(B=g[T])==null?void 0:B.record,{onCell:z}=P;if(z){const F=z(M,T);return(F==null?void 0:F.rowSpan)??1}return 1},N=P=>{const{start:T,end:M,getSize:z,offsetY:B}=P;if(M<0)return null;let F=o.filter(_=>C(_,T)===0),L=T;for(let _=T;_>=0;_-=1)if(F=F.filter(D=>C(D,_)===0),!F.length){L=_;break}let j=o.filter(_=>C(_,M)!==1),O=M;for(let _=M;_<g.length;_+=1)if(j=j.filter(D=>C(D,_)!==1),!j.length){O=Math.max(_-1,M);break}const A=[];for(let _=L;_<=O;_+=1)g[_]&&o.some(V=>C(V,_)>1)&&A.push(_);return A.map(_=>{const D=g[_],V=i(D.record,_),W=q=>{const Y=_+q-1,ee=g[Y];if(!ee||!ee.record){const U=Math.min(Y,g.length-1),Q=g[U],Z=i(Q.record,U),ne=z(V,Z);return ne.bottom-ne.top}const ie=i(ee.record,Y),ae=z(V,ie);return ae.bottom-ae.top},K=z(V);return a.createElement(Ww,{key:_,data:D,rowKey:V,index:_,style:{top:-B+K.top},extra:!0,getHeight:W})})},S=a.useMemo(()=>({columnsOffset:$}),[$]),E=`${c}-tbody`,w=b(["body","wrapper"]),R={};return f&&(R.position="sticky",R.bottom=0,typeof f=="object"&&f.offsetScroll&&(R.bottom=f.offsetScroll)),a.createElement(vM.Provider,{value:S},a.createElement(Tm,{fullHeight:!1,ref:v,prefixCls:`${E}-virtual`,styles:{horizontalScrollBar:R},className:E,height:p,itemHeight:y||24,data:g,itemKey:P=>i(P.record),component:w,scrollWidth:d,direction:m,onVirtualScroll:({x:P})=>{var T;r({currentTarget:(T=v.current)==null?void 0:T.nativeElement,scrollLeft:P})},onScroll:x,extraRender:N},(P,T,M)=>{const z=i(P.record,T);return a.createElement(Ww,{data:P,rowKey:z,index:T,style:M.style})}))}),UU=ol(KU);function qv(){return qv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qv.apply(this,arguments)}const qU=(e,t)=>{const{ref:n,onScroll:r}=t;return a.createElement(UU,{ref:n,data:e,onScroll:r})},GU=(e,t)=>{const{data:n,columns:r,scroll:o,sticky:s,prefixCls:i=hM,className:l,listItemHeight:c,components:u,onScroll:d}=e;let{x:m,y:f}=o||{};typeof m!="number"&&(m=1),typeof f!="number"&&(f=500);const p=vt((x,v)=>Kn(u,x)||v),y=vt(d),b=a.useMemo(()=>({sticky:s,scrollY:f,listItemHeight:c,getComponent:p,onScroll:y}),[s,f,c,p,y]);return a.createElement(o$.Provider,{value:b},a.createElement(il,qv({},e,{className:H(l,`${i}-virtual`),scroll:{...o,x:m},components:{...u,body:n!=null&&n.length?qU:void 0},columns:r,internalHooks:cu,tailor:!0,ref:t})))},XU=a.forwardRef(GU),bM=e=>rM(XU,e);bM();const YU=e=>null,QU=e=>null,Wo={},Gv="SELECT_ALL",Xv="SELECT_INVERT",Yv="SELECT_NONE",bg=[],xM=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),dt(r)&&e in r&&xM(e,r[e],n)}),n),JU=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:s,getTitleCheckboxProps:i,onChange:l,onSelect:c,onSelectAll:u,onSelectInvert:d,onSelectNone:m,onSelectMultiple:f,columnWidth:p,type:y,selections:b,fixed:x,renderCell:v,hideSelectAll:g,checkStrictly:h=!0}=t||{},{prefixCls:$,data:C,pageData:N,getRecordByKey:S,getRowKey:E,expandType:w,childrenColumnName:R,locale:P,getPopupContainer:T}=e,M=yo(),[z,B]=Jj(Q=>Q),[F,L]=nn(o||bg,r),j=F??bg,O=a.useRef(new Map),A=a.useCallback(Q=>{if(n){const Z=new Map;Q.forEach(ne=>{let oe=S(ne);!oe&&O.current.has(ne)&&(oe=O.current.get(ne)),Z.set(ne,oe)}),O.current=Z}},[S,n]);a.useEffect(()=>{A(j)},[j,A]);const k=a.useMemo(()=>xM(R,N),[R,N]),{keyEntities:_}=a.useMemo(()=>{if(h)return{keyEntities:null};let Q=C;if(n){const Z=new Set(k.map(E)),ne=Array.from(O.current).reduce((oe,[le,re])=>Z.has(le)?oe:oe.concat(re),[]);Q=[].concat($t(Q),$t(ne))}return Xx(Q,{externalGetKey:E,childrenPropName:R})},[C,E,h,R,n,k]),D=a.useMemo(()=>{const Q=new Map;return k.forEach((Z,ne)=>{const oe=E(Z,ne),le=(s?s(Z):null)||{};Q.set(oe,le)}),Q},[k,E,s]),V=a.useCallback(Q=>{const Z=E(Q);let ne;return D.has(Z)?ne=D.get(E(Q)):ne=s?s(Q):void 0,!!(ne!=null&&ne.disabled)},[D,E]),[W,K]=a.useMemo(()=>{if(h)return[j,[]];const{checkedKeys:Q,halfCheckedKeys:Z}=Ta(j,!0,_,V);return[Q||[],Z]},[j,h,_,V]),q=a.useMemo(()=>{const Q=y==="radio"?W.slice(0,1):W;return new Set(Q)},[W,y]),Y=a.useMemo(()=>y==="radio"?new Set:new Set(K),[K,y]);a.useEffect(()=>{t||L(bg)},[!!t]);const ee=a.useCallback((Q,Z)=>{let ne,oe;A(Q),n?(ne=Q,oe=Q.map(le=>O.current.get(le))):(ne=[],oe=[],Q.forEach(le=>{const re=S(le);re!==void 0&&(ne.push(le),oe.push(re))})),L(ne),l==null||l(ne,oe,{type:Z})},[L,S,l,n]),ie=a.useCallback((Q,Z,ne,oe)=>{if(c){const le=ne.map(S);c(S(Q),Z,le,oe)}ee(ne,"single")},[c,S,ee]),ae=a.useMemo(()=>!b||g?null:(b===!0?[Gv,Xv,Yv]:b).map(Z=>{let ne;return Z===Gv?ne={key:"all",text:P.selectionAll,onSelect(){ee(C.reduce((oe,le,re)=>{const X=E(le,re),se=D.get(X);return(!(se!=null&&se.disabled)||q.has(X))&&oe.push(X),oe},[]),"all")}}:Z===Xv?ne={key:"invert",text:P.selectInvert,onSelect(){const oe=new Set(q);N.forEach((re,X)=>{const se=E(re,X),ge=D.get(se);ge!=null&&ge.disabled||(oe.has(se)?oe.delete(se):oe.add(se))});const le=Array.from(oe);d&&(M.deprecated(!1,"onSelectInvert","onChange"),d(le)),ee(le,"invert")}}:Z===Yv?ne={key:"none",text:P.selectNone,onSelect(){m==null||m(),ee(Array.from(q).filter(oe=>{const le=D.get(oe);return le==null?void 0:le.disabled}),"none")}}:ne=Z,{...ne,onSelect:oe=>{var le;(le=ne.onSelect)==null||le.call(ne,oe),B(null)}}}),[b,g,P.selectionAll,P.selectInvert,P.selectNone,D,q,C,N,E,d,ee]);return[a.useCallback(Q=>{var Oe;if(!t)return Q.filter(Ce=>Ce!==Wo);let Z=$t(Q);const ne=new Set(q),oe=k.reduce((Ce,Me,xe)=>{const Ee=E(Me,xe);return D.get(Ee).disabled||Ce.push(Ee),Ce},[]),le=oe.every(Ce=>ne.has(Ce)),re=oe.some(Ce=>ne.has(Ce)),X=()=>{const Ce=[];le?oe.forEach(xe=>{ne.delete(xe),Ce.push(xe)}):oe.forEach(xe=>{ne.has(xe)||(ne.add(xe),Ce.push(xe))});const Me=Array.from(ne);u==null||u(!le,Me.map(S),Ce.map(S)),ee(Me,"all"),B(null)};let se,ge;if(y!=="radio"){let Ce;if(ae){const Te={getPopupContainer:T,items:ae.map((Ue,Ge)=>{const{key:Fe,text:et,onSelect:ve}=Ue;return{key:Fe??Ge,onClick:()=>{ve==null||ve(oe)},label:et}})};Ce=a.createElement("div",{className:`${$}-selection-extra`},a.createElement(Jx,{menu:Te,getPopupContainer:T},a.createElement("span",null,a.createElement(Rx,null))))}const Me=k.reduce((Te,Ue,Ge)=>{const Fe=E(Ue,Ge),et=D.get(Fe)||{},ve={checked:ne.has(Fe),...et};return ve.disabled&&Te.push(ve),Te},[]),xe=!!Me.length&&Me.length===k.length,Ee=xe&&Me.every(({checked:Te})=>Te),Ve=xe&&Me.some(({checked:Te})=>Te),qe=(i==null?void 0:i())||{},{onChange:me,disabled:Re}=qe;ge=a.createElement(as,{"aria-label":Ce?"Custom selection":"Select all",...qe,checked:xe?Ee:!!k.length&&le,indeterminate:xe?!Ee&&Ve:!le&&re,onChange:Te=>{X(),me==null||me(Te)},disabled:Re??(k.length===0||xe),skipGroup:!0}),se=!g&&a.createElement("div",{className:`${$}-selection`},ge,Ce)}let de;y==="radio"?de=(Ce,Me,xe)=>{const Ee=E(Me,xe),Ve=ne.has(Ee),qe=D.get(Ee),me=`Select row ${xe+1}`;return{node:a.createElement(ou,{"aria-label":me,...qe,checked:Ve,onClick:Re=>{var Te;Re.stopPropagation(),(Te=qe==null?void 0:qe.onClick)==null||Te.call(qe,Re)},onChange:Re=>{var Te;ne.has(Ee)||ie(Ee,!0,[Ee],Re.nativeEvent),(Te=qe==null?void 0:qe.onChange)==null||Te.call(qe,Re)}}),checked:Ve}}:de=(Ce,Me,xe)=>{const Ee=E(Me,xe),Ve=ne.has(Ee),qe=Y.has(Ee),me=D.get(Ee);let Re;w==="nest"?Re=qe:Re=(me==null?void 0:me.indeterminate)??qe;const Te=Ve?`Row ${xe+1} selected`:`Select row ${xe+1}`;return{node:a.createElement(as,{"aria-label":Te,...me,indeterminate:Re,checked:Ve,skipGroup:!0,onClick:Ue=>{var Ge;Ue.stopPropagation(),(Ge=me==null?void 0:me.onClick)==null||Ge.call(me,Ue)},onChange:Ue=>{var je;const{nativeEvent:Ge}=Ue,{shiftKey:Fe}=Ge,et=oe.indexOf(Ee),ve=q.size>0&&oe.some(ce=>q.has(ce));if(Fe&&h&&ve){const ce=z(et,oe,ne),Pe=Array.from(ne);f==null||f(!Ve,Pe.map(S),ce.map(S)),ee(Pe,"multiple")}else{const ce=W;if(h){const Pe=Ve?wo(ce,Ee):Fo(ce,Ee);ie(Ee,!Ve,Pe,Ge)}else{const Pe=Ta([].concat($t(ce),[Ee]),!0,_,V),{checkedKeys:pe,halfCheckedKeys:$e}=Pe;let _e=pe;if(Ve){const Ie=new Set(pe);Ie.delete(Ee),_e=Ta(Array.from(Ie),{halfCheckedKeys:$e},_,V).checkedKeys}ie(Ee,!Ve,_e,Ge)}}B(Ve?null:et),(je=me==null?void 0:me.onChange)==null||je.call(me,Ue)}}),checked:Ve}};const Se=(Ce,Me,xe)=>{const{node:Ee,checked:Ve}=de(Ce,Me,xe);return v?v(Ve,Me,xe,Ee):Ee};if(!Z.includes(Wo))if(Z.findIndex(Ce=>{var Me;return((Me=Ce[tc])==null?void 0:Me.columnType)==="EXPAND_COLUMN"})===0){const[Ce,...Me]=Z;Z=[Ce,Wo].concat($t(Me))}else Z=[Wo].concat($t(Z));const ue=Z.indexOf(Wo);Z=Z.filter((Ce,Me)=>Ce!==Wo||Me===ue);const be=Z[ue-1],Ne=Z[ue+1];let we=x;we===void 0&&((Ne==null?void 0:Ne.fixed)!==void 0?we=Ne.fixed:(be==null?void 0:be.fixed)!==void 0&&(we=be.fixed)),we&&be&&((Oe=be[tc])==null?void 0:Oe.columnType)==="EXPAND_COLUMN"&&be.fixed===void 0&&(be.fixed=we);const ze=H(`${$}-selection-col`,{[`${$}-selection-col-with-dropdown`]:b&&y==="checkbox"}),he=()=>t!=null&&t.columnTitle?bt(t.columnTitle)?t.columnTitle(ge):t.columnTitle:se,ke={fixed:we,width:p,className:`${$}-selection-column`,title:he(),render:Se,onCell:t.onCell,align:t.align,[tc]:{className:ze}};return Z.map(Ce=>Ce===Wo?ke:Ce)},[E,k,t,W,q,Y,p,ae,w,D,f,ie,V]),q]};function ZU(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:s,expandable:i}=t,l=`${n}-row-expand-icon`;return a.createElement("button",{type:"button",onClick:c=>{r(o,c),c.stopPropagation()},className:H(l,{[`${l}-spaced`]:!i,[`${l}-expanded`]:i&&s,[`${l}-collapsed`]:i&&!s}),"aria-label":s?e.collapse:e.expand,"aria-expanded":s})}}const eq=e=>{const t={};for(const[n,r]of Object.entries(e))bn(r)&&(t[n]=r);return t},tq=(e,t)=>J.useMemo(()=>({...e,filters:eq(t)}),[e,t]);function nq(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let s=r;if(o){const i=getComputedStyle(o),l=Number.parseInt(i.borderLeftWidth,10),c=Number.parseInt(i.borderRightWidth,10);s=r-l-c}return s}}const rq=(e,t)=>a.useMemo(()=>{if(!t)return e;const n=r=>r.map(o=>{if(o===Wo||o===Uo)return o;if("children"in o&&Array.isArray(o.children))return{...Fa(t,o),children:n(o.children)};const s=Dt(t,["children"]);return Fa(s,o)});return n(e)},[e,t]),Fs=(e,t)=>"key"in e&&bn(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function al(e,t){return t?`${t}-${e}`:`${e}`}const Km=(e,t)=>bt(e)?e(t):e,oq=(e,t)=>{const n=Km(e,t);return dt(n)||Array.isArray(n)?"":n},Kw=e=>{const t=e.toLowerCase();return t.includes("center")?"center":t.includes("left")||t.includes("start")?"start":"end"},sq=(e,t)=>{if(e)return e;if(t==="small"||t==="medium")return"small"};var $M={};Object.defineProperty($M,"__esModule",{value:!0});var iq={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"},aq=$M.default=iq;function Qv(){return Qv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qv.apply(this,arguments)}const lq=(e,t)=>a.createElement(gt,Qv({},e,{ref:t,icon:aq})),cq=a.forwardRef(lq);var SM={};Object.defineProperty(SM,"__esModule",{value:!0});var uq={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"},dq=SM.default=uq;function Jv(){return Jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jv.apply(this,arguments)}const fq=(e,t)=>a.createElement(gt,Jv({},e,{ref:t,icon:dq})),CM=a.forwardRef(fq);var wM={};Object.defineProperty(wM,"__esModule",{value:!0});var mq={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"},pq=wM.default=mq;function Zv(){return Zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zv.apply(this,arguments)}const gq=(e,t)=>a.createElement(gt,Zv({},e,{ref:t,icon:pq})),hq=a.forwardRef(gq);var EM={};Object.defineProperty(EM,"__esModule",{value:!0});var yq={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"},vq=EM.default=yq;function e0(){return e0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e0.apply(this,arguments)}const bq=(e,t)=>a.createElement(gt,e0({},e,{ref:t,icon:vq})),xq=a.forwardRef(bq);var IM={};Object.defineProperty(IM,"__esModule",{value:!0});var $q={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"},Sq=IM.default=$q;function t0(){return t0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t0.apply(this,arguments)}const Cq=(e,t)=>a.createElement(gt,t0({},e,{ref:t,icon:Sq})),wq=a.forwardRef(Cq),Eq=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:o,borderRadius:s,controlItemBgHover:i})=>({[`${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 ${o}`,content:'""',borderRadius:s},"&:hover:before":{background:i}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:s,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),Iq=new Ht("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Pq=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Nq=(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:`${G(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Rq=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:s,indentSize:i,switcherSize:l,motionDurationMid:c,nodeSelectedBg:u,nodeHoverBg:d,colorTextQuaternary:m,controlItemBgActiveDisabled:f}=t;return{[n]:{...Ft(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)"},[`${n}-list`]:{"&:focus-visible":{outline:"none",[`${r}-active ${n}-node-content-wrapper`]:{...jr(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:Iq,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:G(s),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-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:f},[`${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:m},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(l).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:"flex-start",marginBlockStart:t.calc(t.calc(s).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...Pq(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:s,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(o).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(s).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}},[`${n}-node-content-wrapper`]:{position:"relative",minHeight:s,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:[`all ${c}`,"border 0s","line-height 0s","box-shadow 0s"].join(", "),...Nq(e,t),"&:hover":{backgroundColor:d},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:u},[`${n}-iconEle`]:{display:"inline-block",width:l,height:s,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(o).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:`${G(t.calc(s).div(2).equal())} !important`}}}},Tq=(e,t,n=!0)=>{const r=`.${e}`,o=`${r}-treenode`,s=t.calc(t.paddingXS).div(2).equal(),i=Rt(t,{treeCls:r,treeNodeCls:o,treeNodePadding:s});return[Rq(e,i),n&&Eq(i)].filter(Boolean)},Mq=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,o=t;return{titleHeight:o,switcherSize:o,indentSize:o,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Oq=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return{...Mq(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}},_q=Tt("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:pT(`${t}-checkbox`,e)},Tq(t,e),gx(e)],Oq),Uw=4,zq=e=>{const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:s="ltr"}=e,i=s==="ltr"?"left":"right",l=s==="ltr"?"right":"left",c={[i]:-n*o+Uw,[l]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=o+Uw;break}return J.createElement("div",{style:c,className:`${r}-drop-indicator`})};var PM={};Object.defineProperty(PM,"__esModule",{value:!0});var jq={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"},Bq=PM.default=jq;function n0(){return n0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n0.apply(this,arguments)}const Lq=(e,t)=>a.createElement(gt,n0({},e,{ref:t,icon:Bq})),kq=a.forwardRef(Lq);var NM={};Object.defineProperty(NM,"__esModule",{value:!0});var Aq={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"},Dq=NM.default=Aq;function r0(){return r0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r0.apply(this,arguments)}const Fq=(e,t)=>a.createElement(gt,r0({},e,{ref:t,icon:Dq})),Hq=a.forwardRef(Fq);var RM={};Object.defineProperty(RM,"__esModule",{value:!0});var Vq={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"},Wq=RM.default=Vq;function o0(){return o0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o0.apply(this,arguments)}const Kq=(e,t)=>a.createElement(gt,o0({},e,{ref:t,icon:Wq})),Uq=a.forwardRef(Kq),qq=e=>{var f,p;const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o,switcherLoadingIcon:s}=e,{isLeaf:i,expanded:l,loading:c}=r;if(c)return a.isValidElement(s)?s:a.createElement(ki,{className:`${t}-switcher-loading-icon`});let u;if(dt(o)&&(u=o.showLeafIcon),i){if(!o)return null;if(typeof u!="boolean"&&u){const y=bt(u)?u(r):u,b=`${t}-switcher-line-custom-icon`;return a.isValidElement(y)?Fn(y,{className:H((f=y.props)==null?void 0:f.className,b)}):y}return u?a.createElement(CM,{className:`${t}-switcher-line-icon`}):a.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,m=bt(n)?n(r):n;return a.isValidElement(m)?Fn(m,{className:H((p=m.props)==null?void 0:p.className,o?`${t}-switcher-line-icon`:d)}):m!==void 0?m:o?l?a.createElement(Hq,{className:`${t}-switcher-line-icon`}):a.createElement(Uq,{className:`${t}-switcher-line-icon`}):a.createElement(kq,{className:d})},TM=J.forwardRef((e,t)=>{var K;const{getPrefixCls:n,direction:r,className:o,style:s,classNames:i,styles:l}=Pt("tree"),{virtual:c}=J.useContext(ct),{prefixCls:u,className:d,showIcon:m=!1,showLine:f,switcherIcon:p,switcherLoadingIcon:y,blockNode:b=!1,children:x,checkable:v=!1,selectable:g=!0,draggable:h,disabled:$,motion:C,style:N,rootClassName:S,classNames:E,styles:w,icon:R}=e,P=J.useContext(cr),T=$??P,M=n("tree",u),z=n(),B=C??{...cf(z),motionAppear:!1},F={...e,showIcon:m,blockNode:b,checkable:v,selectable:g,disabled:T,motion:B},[L,j]=Ot([i,E],[l,w],{props:F}),O={...F,showLine:!!f,icon:R,dropIndicatorRender:zq},[A,k]=_q(M),[,_]=Yn(),D=_.paddingXS/2+(((K=_.Tree)==null?void 0:K.titleHeight)||_.controlHeightSM),V=J.useMemo(()=>{if(!h)return!1;let q={};switch(typeof h){case"function":q.nodeDraggable=h;break;case"object":q={...h};break}return q.icon!==!1&&(q.icon=q.icon||J.createElement(wq,null)),q},[h]),W=q=>J.createElement(qq,{prefixCls:M,switcherIcon:p,switcherLoadingIcon:y,treeNodeProps:q,showLine:f});return J.createElement(O9,{itemHeight:D,ref:t,virtual:c,...O,prefixCls:M,className:H({[`${M}-icon-hide`]:!m,[`${M}-block-node`]:b,[`${M}-unselectable`]:!g,[`${M}-rtl`]:r==="rtl",[`${M}-disabled`]:T},o,d,A,k),style:{...s,...N},rootClassName:H(L.root,S),rootStyle:j.root,classNames:L,styles:j,direction:r,checkable:v&&J.createElement("span",{className:`${M}-checkbox-inner`}),selectable:g,switcherIcon:W,draggable:V},x)}),qw=0,xg=1,Gw=2;function s$(e,t,n){const{key:r,children:o}=n;function s(i){const l=i[r],c=i[o];t(l,i)!==!1&&s$(c||[],t,n)}e.forEach(s)}function Gq({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:o}){const s=[];let i=qw;if(n&&n===r)return[n];if(!n||!r)return[];function l(c){return c===n||c===r}return s$(e,c=>{if(i===Gw)return!1;if(l(c)){if(s.push(c),i===qw)i=xg;else if(i===xg)return i=Gw,!1}else i===xg&&s.push(c);return t.includes(c)},Xa(o)),s}function $g(e,t,n){const r=$t(t),o=[];return s$(e,(s,i)=>{const l=r.indexOf(s);return l!==-1&&(o.push(i),r.splice(l,1)),!!r.length},Xa(n)),o}function Xq(e){const{isLeaf:t,expanded:n}=e;return t?a.createElement(CM,null):n?a.createElement(hq,null):a.createElement(xq,null)}function Xw({treeData:e,children:t}){return e||uT(t)}const Yq=a.forwardRef((e,t)=>{const{defaultExpandAll:n,defaultExpandParent:r=!0,defaultExpandedKeys:o,...s}=e,i=a.useRef(null),l=a.useRef(null),c=()=>{const{keyEntities:E}=Xx(Xw(s),{fieldNames:s.fieldNames});let w;const R=s.expandedKeys||o||[];return n?w=Object.keys(E):r?w=Iv(R,E):w=R,w},[u,d]=a.useState(s.selectedKeys||s.defaultSelectedKeys||[]),[m,f]=a.useState(()=>c());a.useEffect(()=>{"selectedKeys"in s&&d(s.selectedKeys)},[s.selectedKeys]),a.useEffect(()=>{"expandedKeys"in s&&f(s.expandedKeys)},[s.expandedKeys]);const p=(E,w)=>{var R;return"expandedKeys"in s||f(E),(R=s.onExpand)==null?void 0:R.call(s,E,w)},y=(E,w)=>{var A;const{multiple:R,fieldNames:P}=s,{node:T,nativeEvent:M}=w,{key:z=""}=T,B=Xw(s),F={...w,selected:!0},L=(M==null?void 0:M.ctrlKey)||(M==null?void 0:M.metaKey),j=M==null?void 0:M.shiftKey;let O;R&&L?(O=E,i.current=z,l.current=O,F.selectedNodes=$g(B,O,P)):R&&j?(O=Array.from(new Set([].concat($t(l.current||[]),$t(Gq({treeData:B,expandedKeys:m,startKey:z,endKey:i.current,fieldNames:P}))))),F.selectedNodes=$g(B,O,P)):(O=[z],i.current=z,l.current=O,F.selectedNodes=$g(B,O,P)),(A=s.onSelect)==null||A.call(s,O,F),"selectedKeys"in s||d(O)},{getPrefixCls:b,direction:x}=a.useContext(ct),{prefixCls:v,className:g,showIcon:h=!0,expandAction:$="click",...C}=s,N=b("tree",v),S=H(`${N}-directory`,{[`${N}-directory-rtl`]:x==="rtl"},g);return a.createElement(TM,{icon:Xq,ref:t,blockNode:!0,...C,showIcon:h,expandAction:$,prefixCls:N,className:S,defaultExpandParent:r,expandedKeys:m,selectedKeys:u,onSelect:y,onExpand:p})}),i$=TM;i$.DirectoryTree=Yq;i$.TreeNode=zc;const Yw=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:s}=e;return n?a.createElement("div",{className:`${r}-filter-dropdown-search`},a.createElement(au,{prefix:a.createElement(Tx,null),placeholder:o.filterSearchPlaceholder,onChange:s,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},Qq=e=>{const{keyCode:t}=e;t===nt.ENTER&&e.stopPropagation()},Jq=a.forwardRef((e,t)=>a.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:Qq,ref:t,role:"presentation"},e.children));function Ma(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat($t(t),$t(Ma(r))))}),t}function Zq(e){return e.some(({children:t})=>t)}const MM=(e,t)=>typeof t=="string"||Rn(t)?t.toString().toLowerCase().includes(e):!1,OM=e=>{const{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:s,normalizedSearchValue:i,filterSearch:l}=e;return t.map((c,u)=>{const d=String(c.value);if(c.children)return{key:d||u,label:c.text,popupClassName:`${n}-dropdown-submenu`,children:OM({filters:c.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:s,normalizedSearchValue:i,filterSearch:l})};const m=o?as:ou,f={key:c.value!==void 0?d:u,label:a.createElement(a.Fragment,null,a.createElement(m,{checked:r.includes(d)}),a.createElement("span",null,c.text))};return i?bt(l)?l(i,c)?f:null:MM(i,c.text)?f:null:f})};function Sg(e){return e||[]}const eG=e=>{var re;const{tablePrefixCls:t,prefixCls:n,column:r,dropdownPrefixCls:o,columnKey:s,filterOnClose:i,filterMultiple:l,filterMode:c="menu",filterSearch:u=!1,filterState:d,triggerFilter:m,locale:f,children:p,getPopupContainer:y,rootClassName:b}=e,{filterResetToDefaultFilteredValue:x,defaultFilteredValue:v,filterDropdownProps:g={},filterDropdownOpen:h,onFilterDropdownOpenChange:$}=r,[C,N]=a.useState(!1),S=a.useContext(zx),E=!!(d&&((re=d.filteredKeys)!=null&&re.length||d.forceFiltered)),w=X=>{var se;N(X),(se=g.onOpenChange)==null||se.call(g,X),$==null||$(X)},R=g.open??h??C,P=d==null?void 0:d.filteredKeys,[T,M]=nB(Sg(P)),z=({selectedKeys:X})=>{M(X)},B=(X,{node:se,checked:ge})=>{z(l?{selectedKeys:X}:{selectedKeys:ge&&se.key?[se.key]:[]})};a.useEffect(()=>{C&&z({selectedKeys:Sg(P)})},[P,C]);const[F,L]=a.useState([]),j=X=>{L(X)},[O,A]=a.useState(""),k=a.useMemo(()=>O.trim().toLowerCase(),[O]),_=X=>{const{value:se}=X.target;A(se)};a.useEffect(()=>{C||A("")},[C]);const D=X=>{const se=X!=null&&X.length?X:null;if(se===null&&(!d||!d.filteredKeys)||ho(se,d==null?void 0:d.filteredKeys,!0))return null;m({column:r,key:s,filteredKeys:se})},V=()=>{w(!1),D(T())},W=({confirm:X,closeDropdown:se}={confirm:!1,closeDropdown:!1})=>{X&&D([]),se&&w(!1),A(""),M(x?(v||[]).map(String):[])},K=({closeDropdown:X}={closeDropdown:!0})=>{X&&w(!1),D(T())},q=(X,se)=>{se.source==="trigger"&&(X&&P!==void 0&&M(Sg(P)),w(X),!X&&!r.filterDropdown&&i&&V())},Y=H({[`${o}-menu-without-submenu`]:!Zq(r.filters||[])}),ee=X=>{if(X.target.checked){const se=Ma(r==null?void 0:r.filters).map(String);M(se)}else M([])},ie=({filters:X})=>(X||[]).map((se,ge)=>{const de=String(se.value),Se={title:se.text,key:se.value!==void 0?de:String(ge)};return se.children&&(Se.children=ie({filters:se.children})),Se}),ae=X=>{var se;return{...X,text:X.title,value:X.key,children:((se=X.children)==null?void 0:se.map(ae))||[]}};let U;const{direction:Q,renderEmpty:Z}=a.useContext(ct);if(bt(r.filterDropdown))U=r.filterDropdown({prefixCls:`${o}-custom`,setSelectedKeys:X=>z({selectedKeys:X}),selectedKeys:T(),confirm:K,clearFilters:W,filters:r.filters,visible:R,close:()=>{w(!1)}});else if(r.filterDropdown)U=r.filterDropdown;else{const X=T()||[],se=()=>{const de=(Z==null?void 0:Z("Table.filter"))??a.createElement(Go,{image:Go.PRESENTED_IMAGE_SIMPLE,description:f.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((r.filters||[]).length===0)return de;if(c==="tree")return a.createElement(a.Fragment,null,a.createElement(Yw,{filterSearch:u,value:O,onChange:_,tablePrefixCls:t,locale:f}),a.createElement("div",{className:`${t}-filter-dropdown-tree`},l?a.createElement(as,{checked:X.length===Ma(r.filters).length,indeterminate:X.length>0&&X.length<Ma(r.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:ee},(f==null?void 0:f.filterCheckall)??(f==null?void 0:f.filterCheckAll)):null,a.createElement(i$,{checkable:!0,selectable:!1,blockNode:!0,multiple:l,checkStrictly:!l,className:`${o}-menu`,onCheck:B,checkedKeys:X,selectedKeys:X,showIcon:!1,treeData:ie({filters:r.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:k?be=>bt(u)?u(O,ae(be)):MM(k,be.title):void 0})));const Se=OM({filters:r.filters||[],filterSearch:u,prefixCls:n,filteredKeys:T(),filterMultiple:l,searchValue:O,normalizedSearchValue:k}),ue=Se.every(be=>be===null);return a.createElement(a.Fragment,null,a.createElement(Yw,{filterSearch:u,value:O,onChange:_,tablePrefixCls:t,locale:f}),ue?de:a.createElement(Fi,{selectable:!0,multiple:l,prefixCls:`${o}-menu`,className:Y,onSelect:z,onDeselect:z,selectedKeys:X,getPopupContainer:y,openKeys:F,onOpenChange:j,items:Se}))},ge=()=>x?ho((v||[]).map(String),X,!0):X.length===0;U=a.createElement(a.Fragment,null,se(),a.createElement("div",{className:`${n}-dropdown-btns`},a.createElement(Xe,{type:"link",size:"small",disabled:ge(),onClick:()=>W()},f.filterReset),a.createElement(Xe,{type:"primary",size:"small",onClick:V},f.filterConfirm)))}r.filterDropdown&&(U=a.createElement(B4,{selectable:void 0},U)),U=a.createElement(Jq,{className:`${n}-dropdown`},U);const oe=(()=>{let X;return bt(r.filterIcon)?X=r.filterIcon(E):r.filterIcon?X=r.filterIcon:X=a.createElement(cq,null),a.createElement("span",{role:"button",tabIndex:-1,className:H(`${n}-trigger`,{active:E}),onClick:se=>{se.stopPropagation()}},X)})();if(S)return a.createElement("div",{className:`${n}-column`},a.createElement("span",{className:`${t}-column-title`},p),oe);const le=Fa({trigger:["click"],placement:Q==="rtl"?"bottomLeft":"bottomRight",children:oe,getPopupContainer:y},{...g,rootClassName:H(b,g.rootClassName),open:R,onOpenChange:q,popupRender:()=>bt(g==null?void 0:g.dropdownRender)?g.dropdownRender(U):U});return a.createElement("div",{className:`${n}-column`},a.createElement("span",{className:`${t}-column-title`},p),a.createElement(Jx,{...le}))},s0=(e,t,n)=>{let r=[];return(e||[]).forEach((o,s)=>{const i=al(s,n),l=o.filterDropdown!==void 0;if(o.filters||l||"onFilter"in o)if("filteredValue"in o){let c=o.filteredValue;l||(c=(c==null?void 0:c.map(String))??c),r.push({column:o,key:Fs(o,i),filteredKeys:c,forceFiltered:o.filtered})}else r.push({column:o,key:Fs(o,i),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat($t(r),$t(s0(o.children,t,i))))}),r};function _M(e,t,n,r,o,s,i,l,c){return n.map((u,d)=>{const m=al(d,l),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:y,filterSearch:b}=u;let x=u;if(x.filters||x.filterDropdown){const v=Fs(x,m),g=r.find(({key:h})=>v===h);x={...x,title:h=>a.createElement(eG,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:x,columnKey:v,filterState:g,filterOnClose:f,filterMultiple:p,filterMode:y,filterSearch:b,triggerFilter:s,locale:o,getPopupContainer:i,rootClassName:c},Km(u.title,h))}}return"children"in x&&(x={...x,children:_M(e,t,x.children,r,o,s,i,m,c)}),x})}const Qw=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:o})=>{const s=n,{filters:i,filterDropdown:l}=o;if(l)t[s]=r||null;else if(Array.isArray(r)){const c=Ma(i);t[s]=c.filter(u=>r.includes(String(u)))}else t[s]=null}),t},i0=(e,t,n)=>t.reduce((o,s)=>{const{column:{onFilter:i,filters:l},filteredKeys:c}=s;if(i&&c&&c.length){const u=Ma(l),d=new Map;u.forEach(p=>{const y=String(p);d.has(y)||d.set(y,p)});const m=c.map(p=>{const y=String(p);return d.get(y)??p});return(p=>p.reduce((y,b)=>{const x={...b};return x[n]&&(x[n]=i0(x[n],t,n)),m.some(v=>i(v,x))&&y.push(x),y},[]))(o)}return o},e),zM=e=>e.flatMap(t=>"children"in t?[t].concat($t(zM(t.children||[]))):[t]),tG=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:s,locale:i,rootClassName:l}=e;yo();const c=a.useMemo(()=>zM(r||[]),[r]),[u,d]=a.useState(()=>s0(c,!0)),m=a.useMemo(()=>{const b=s0(c,!1);if(b.length===0)return b;let x=!0;if(b.forEach(({filteredKeys:v})=>{v!==void 0&&(x=!1)}),x){const v=(c||[]).map((g,h)=>Fs(g,al(h)));return u.reduce((g,h)=>{const $=v.indexOf(h.key);if($!==-1){const C=c[$];g.push({...h,column:{...h.column,...C},forceFiltered:C.filtered})}return g},[])}return b},[c,u]),f=a.useMemo(()=>Qw(m),[m]),p=b=>{const x=m.filter(({key:v})=>v!==b.key);x.push(b),d(x),o(Qw(x),x)};return[b=>_M(t,n,b,m,i,p,s,void 0,l),m,f]},nG=(e,t,n)=>{const r=a.useRef({});function o(s){var l;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let u=function(d){d.forEach((m,f)=>{const p=n(m,f);c.set(p,m),dt(m)&&t in m&&u(m[t]||[])})};var i=u;const c=new Map;u(e),r.current={data:e,childrenColumnName:t,kvMap:c,getRowKey:n}}return(l=r.current.kvMap)==null?void 0:l.get(s)}return[o]},jM=10;function rG(e,t){const n={current:e.current,pageSize:e.pageSize},r=dt(t)?t:{};return Object.keys(r).forEach(o=>{const s=e[o];bt(s)||(n[o]=s)}),n}function oG(e,t,n){const{total:r=0,...o}=dt(n)?n:{},[s,i]=a.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:jM})),l=Fa(s,o,{total:r>0?r:e}),c=Math.ceil((r||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(m,f)=>{i({current:m??1,pageSize:f||l.pageSize})},d=(m,f)=>{var p;n&&((p=n.onChange)==null||p.call(n,m,f)),u(m,f),t(m,f||(l==null?void 0:l.pageSize))};return n===!1?[{},()=>{}]:[{...l,onChange:d},u]}var BM={};Object.defineProperty(BM,"__esModule",{value:!0});var sG={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"},iG=BM.default=sG;function a0(){return a0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a0.apply(this,arguments)}const aG=(e,t)=>a.createElement(gt,a0({},e,{ref:t,icon:iG})),lG=a.forwardRef(aG);var LM={};Object.defineProperty(LM,"__esModule",{value:!0});var cG={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"},uG=LM.default=cG;function l0(){return l0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l0.apply(this,arguments)}const dG=(e,t)=>a.createElement(gt,l0({},e,{ref:t,icon:uG})),fG=a.forwardRef(dG),Nd="ascend",Cg="descend",Mf=e=>dt(e.sorter)&&Rn(e.sorter.multiple)?e.sorter.multiple:!1,Jw=e=>bt(e)?e:dt(e)&&e.compare?e.compare:!1,mG=(e,t)=>t?e[e.indexOf(t)+1]:e[0],c0=(e,t,n)=>{let r=[];const o=(s,i)=>{r.push({column:s,key:Fs(s,i),multiplePriority:Mf(s),sortOrder:s.sortOrder})};return(e||[]).forEach((s,i)=>{const l=al(i,n);s.children?("sortOrder"in s&&o(s,l),r=[].concat($t(r),$t(c0(s.children,t,l)))):s.sorter&&("sortOrder"in s?o(s,l):t&&s.defaultSortOrder&&r.push({column:s,key:Fs(s,l),multiplePriority:Mf(s),sortOrder:s.defaultSortOrder}))}),r},kM=(e,t,n,r,o,s,i,l,c)=>(t||[]).map((d,m)=>{const f=al(m,l);let p=d;if(p.sorter){const y=p.sortDirections||o,b=p.showSorterTooltip===void 0?i:p.showSorterTooltip,x=Fs(p,f),v=n.find(({key:R})=>R===x),g=v?v.sortOrder:null,h=mG(y,g);let $;if(d.sortIcon)$=d.sortIcon({sortOrder:g});else{const R=y.includes(Nd)&&a.createElement(fG,{className:H(`${e}-column-sorter-up`,{active:g===Nd})}),P=y.includes(Cg)&&a.createElement(lG,{className:H(`${e}-column-sorter-down`,{active:g===Cg})});$=a.createElement("span",{className:H(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(R&&P)})},a.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},R,P))}const{cancelSort:C,triggerAsc:N,triggerDesc:S}=s||{};let E=C;h===Cg?E=S:h===Nd&&(E=N);const w=dt(b)?{title:E,...b}:{title:E};p={...p,className:H(p.className,{[`${e}-column-sort`]:g}),title:R=>{const P=`${e}-column-sorters`,T=a.createElement("span",{className:`${e}-column-title`},Km(d.title,R)),M=a.createElement("div",{className:P},T,$);return b?typeof b!="boolean"&&(b==null?void 0:b.target)==="sorter-icon"?a.createElement("div",{className:H(P,`${P}-tooltip-target-sorter`)},T,a.createElement(bo,{...w},$)):a.createElement(bo,{...w},M):M},onHeaderCell:R=>{var F;const P=((F=d.onHeaderCell)==null?void 0:F.call(d,R))||{},T=P.onClick,M=P.onKeyDown;P.onClick=L=>{r({column:d,key:x,sortOrder:h,multiplePriority:Mf(d)}),T==null||T(L)},P.onKeyDown=L=>{L.keyCode===nt.ENTER&&(r({column:d,key:x,sortOrder:h,multiplePriority:Mf(d)}),M==null||M(L))};const z=oq(d.title,{}),B=z==null?void 0:z.toString();return g&&(P["aria-sort"]=g==="ascend"?"ascending":"descending"),P["aria-description"]=c==null?void 0:c.sortable,P["aria-label"]=B||"",P.className=H(P.className,`${e}-column-has-sorters`),P.tabIndex=0,d.ellipsis&&(P.title=(z??"").toString()),P}}}return"children"in p&&(p={...p,children:kM(e,p.children,n,r,o,s,i,f,c)}),p}),Zw=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},eE=e=>{const t=e.reduce((n,r)=>(r.sortOrder&&n.push(Zw(r)),n),[]);if(t.length===0&&e.length){const n=e.length-1;return{...Zw(e[n]),column:void 0,order:void 0,field:void 0,columnKey:void 0}}return t.length<=1?t[0]||{}:t},u0=(e,t,n)=>{const r=t.slice().sort((i,l)=>l.multiplePriority-i.multiplePriority),o=e.slice(),s=r.filter(({column:{sorter:i},sortOrder:l})=>Jw(i)&&l);return s.length?o.sort((i,l)=>{for(let c=0;c<s.length;c+=1){const u=s[c],{column:{sorter:d},sortOrder:m}=u,f=Jw(d);if(f&&m){const p=f(i,l,m);if(p!==0)return m===Nd?p:-p}}return 0}).map(i=>{const l=i[n];return l?{...i,[n]:u0(l,t,n)}:i}):o},pG=e=>{const{prefixCls:t,mergedColumns:n,baseColumns:r,sortDirections:o,tableLocale:s,showSorterTooltip:i,onSorterChange:l,globalLocale:c}=e,u=r??n,[d,m]=a.useState(()=>c0(u,!0)),f=(g,h)=>{const $=[];return g.forEach((C,N)=>{const S=al(N,h);if($.push(Fs(C,S)),Array.isArray(C.children)){const E=f(C.children,S);$.push.apply($,$t(E))}}),$},p=a.useMemo(()=>{let g=!0;const h=c0(u,!1);if(!h.length){const S=f(u);return d.filter(({key:E})=>S.includes(E))}const $=[];function C(S){g?$.push(S):$.push({...S,sortOrder:null})}let N=null;return h.forEach(S=>{N===null?(C(S),S.sortOrder&&(S.multiplePriority===!1?g=!1:N=!0)):(N&&S.multiplePriority!==!1||(g=!1),C(S))}),$},[u,d]),y=a.useMemo(()=>{var h,$;const g=p.map(({column:C,sortOrder:N})=>({column:C,order:N}));return{sortColumns:g,sortColumn:(h=g[0])==null?void 0:h.column,sortOrder:($=g[0])==null?void 0:$.order}},[p]),b=g=>{let h;g.multiplePriority===!1||!p.length||p[0].multiplePriority===!1?h=[g]:h=[].concat($t(p.filter(({key:$})=>$!==g.key)),[g]),m(h),l(eE(h),h)};return[g=>kM(t,g,p,b,o,s,i,void 0,c),p,y,()=>eE(p)]},gG=e=>J.useMemo(()=>typeof e=="boolean"?{spinning:e}:dt(e)?{spinning:!0,...e}:{},[e]),AM=(e,t)=>e.map(r=>{const o={...r};return o.title=Km(r.title,t),"children"in o&&(o.children=AM(o.children,t)),o}),hG=e=>[a.useCallback(n=>AM(n,e),[e])],yG=yM((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),vG=bM((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),bG=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:s,tablePaddingVertical:i,tablePaddingHorizontal:l,calc:c}=e,u=`${G(n)} ${r} ${o}`,d=(m,f,p)=>({[`&${t}-${m}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > th, > table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${G(c(f).mul(-1).equal())}
${G(c(c(p).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:{[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[`> ${t}-header${t}-sticky-holder`]:{marginTop:c(n).mul(-1).equal(),borderTop:u},[`> ${t}-content, > ${t}-header, > ${t}-body, > ${t}-summary`]:{"> table":{"> thead > tr > th, > thead > tr > td, > tbody > tr > th, > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"> thead > tr, > tbody > tr, > tfoot > tr":{[`> ${t}-cell-fix-right-first:not(${t}-cell-fix-right-last)::after`]:{borderInlineEnd:u}},"> tbody > tr > th, > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${G(c(i).mul(-1).equal())} ${G(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
> tr${t}-expanded-row,
> tr${t}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}},...d("medium",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:u,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${G(n)} 0 ${G(n)} ${s}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},xG=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...ar,wordBreak:"keep-all",[`
&${t}-cell-fix-start-shadow,
&${t}-cell-fix-end-shadow
`]:{overflow:"visible",[`${t}-cell-content`]:{...ar,display:"block"}},[`${t}-column-title`]:{...ar,wordBreak:"keep-all"}}}}},$G=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > th, &:hover > td":{background:e.colorBgContainer}}}}},SG=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:s,lineType:i,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:m,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:y,expandIconMarginTop:b,expandIconSize:x,expandIconHalfInner:v,expandIconScale:g,calc:h}=e,$=`${G(o)} ${i} ${l}`,C=h(y).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${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`]:{...ex(e),position:"relative",float:"left",width:x,height:x,color:"inherit",lineHeight:G(x),background:c,border:$,borderRadius:d,transform:`scale(${g})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:C,insetInlineStart:C,height:o},"&::after":{top:C,bottom:C,insetInlineStart:v,width:o,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:b,marginInlineEnd:s},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${G(h(m).mul(-1).equal())} ${G(h(f).mul(-1).equal())}`,padding:`${G(m)} ${G(f)}`}}}},CG=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:s,paddingXXS:i,paddingXS:l,colorText:c,lineWidth:u,lineType:d,tableBorderColor:m,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:y,borderRadius:b,motionDurationSlow:x,colorIcon:v,colorPrimary:g,tableHeaderFilterActiveBg:h,colorTextDisabled:$,tableFilterDropdownBg:C,tableFilterDropdownHeight:N,controlItemBgHover:S,controlItemBgActive:E,boxShadowSecondary:w,filterDropdownMenuBg:R,calc:P}=e,T=`${n}-dropdown`,M=`${t}-filter-dropdown`,z=`${n}-tree`,B=`${G(u)} ${d} ${m}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:P(i).mul(-1).equal(),marginInline:`${G(i)} ${G(P(y).div(2).mul(-1).equal())}`,padding:`0 ${G(i)}`,color:f,fontSize:p,borderRadius:b,cursor:"pointer",transition:`all ${x}`,"&:hover":{color:v,background:h},"&.active":{color:g}}}},{[`${n}-dropdown`]:{[M]:{...Ft(e),minWidth:o,backgroundColor:C,borderRadius:b,boxShadow:w,overflow:"hidden",[`${T}-menu`]:{maxHeight:N,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:R,"&:empty::after":{display:"block",padding:`${G(l)} 0`,color:$,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${G(l)} 0`,paddingInline:l,[z]:{padding:0},[`${z}-treenode ${z}-node-content-wrapper:hover`]:{backgroundColor:S},[`${z}-treenode-checkbox-checked ${z}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:E}}},[`${M}-search`]:{padding:l,borderBottom:B,"&-input":{input:{minWidth:s},[r]:{color:$}}},[`${M}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${G(P(l).sub(u).equal())} ${G(l)}`,overflow:"hidden",borderTop:B}}}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};function DM({colorSplit:e}){const t={boxShadow:`inset 10px 0 8px -8px ${e}`},n={boxShadow:`inset -10px 0 8px -8px ${e}`};return[t,n]}const wG=e=>{const{componentCls:t,lineWidth:n,motionDurationSlow:r,zIndexTableFixed:o,tableBg:s,calc:i}=e,l=`${t}-cell`,c=`${l}-fix`,u={position:"absolute",top:0,bottom:i(n).mul(-1).equal(),width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[d,m]=DM(e);return{[`${t}-wrapper`]:{[`${l}${c}`]:{position:"sticky"},[c]:{zIndex:`calc(var(--z-offset-reverse) + ${o})`,background:s,"&:after":u,"&-start:after":{insetInlineStart:"100%"},"&-end:after":{insetInlineEnd:"100%"},"&-start-shadow-show:after":d,"&-end-shadow-show:after":m},[`${t}-container`]:{position:"relative","&:before, &:after":{...u,zIndex:`calc(var(--columns-count) * 2 + ${o} + 1)`},"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:"none"},[`${t}-has-fix-end ${t}-container:after`]:{display:"none"},[`${t}-fix-start-shadow-show ${t}-container:before`]:d,[`${t}-fix-end-shadow-show ${t}-container:after`]:m}}},EG=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${G(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"}}}}},IG=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${G(n)} ${G(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,"&::before":{borderStartStartRadius:n},"&::after":{borderStartEndRadius:n},[`> ${t}-content`]:{borderStartStartRadius:n,borderStartEndRadius:n},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${G(n)} ${G(n)}`}}}}},PG=e=>{const{componentCls:t}=e,[n,r]=DM(e);return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":r,"&-end-shadow-show:after":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:"right"}},[`${t}-fix-start-shadow-show ${t}-container:before`]:r,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}},NG=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:s,paddingXS:i,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:m,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:y}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:y(u).add(o).add(y(s).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:y(u).add(y(i).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:y(u).add(o).add(y(s).div(4)).add(y(i).mul(2)).equal()}},[`
table tr th${t}-selection-column,
table tr td${t}-selection-column,
${t}-selection-column
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:y(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:G(y(p).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:m}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},RG=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(s,i,l,c)=>({[`${t}${t}-${s}`]:{fontSize:c,[`
${t}-title,
${t}-footer,
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${G(i)} ${G(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:G(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${G(r(i).mul(-1).equal())} ${G(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:G(r(i).mul(-1).equal()),marginInline:`${G(r(n).sub(l).equal())} ${G(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:G(r(l).div(4).equal())}}});return{[`${t}-wrapper`]:{...o("medium",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},TG=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:s}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
&${t}-cell-fix-left:hover,
&${t}-cell-fix-right:hover
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,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:s}}}},MG=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:s,tableScrollBg:i,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:d,zIndexTableFixed:m}=e,f=`${G(c)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:`calc(var(--columns-count) * 2 + ${m} + 1)`,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${G(s)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${m} + 1)`,display:"flex",alignItems:"center",background:i,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:s,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},tE=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,s=`${G(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:s}}},[`div${t}-summary`]:{boxShadow:`0 ${G(o(n).mul(-1).equal())} 0 ${r}`}}}},OG=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:s,calc:i}=e,l=`${G(r)} ${o} ${s}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
& > ${t}-row,
& > div:not(${t}-row) > ${t}-row
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background-color ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${G(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},_G=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:s,lineWidth:i,lineType:l,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:m,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:y,tableHeaderCellSplitColor:b,tableFooterTextColor:x,tableFooterBg:v,calc:g}=e,h=`${G(i)} ${l} ${c}`;return{[`${t}-wrapper`]:{clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg,...Ls(),[t]:{...Ft(e),fontSize:u,background:d,borderRadius:`${G(m)} ${G(m)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:"100%",textAlign:"start",borderRadius:`${G(m)} ${G(m)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${G(r)} ${G(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${G(r)} ${G(o)}`},[`${t}-thead`]:{"> tr > th, > tr > td":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:y,borderBottom:h,transition:`background-color ${p} 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:b,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{borderBottom:h,transition:["background-color","border-color"].map($=>`${$} ${p}`).join(", "),[`
> ${t}-wrapper:only-child,
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
`]:{[t]:{marginBlock:G(g(r).mul(-1).equal()),marginInline:`${G(g(s).sub(o).equal())}
${G(g(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:y,borderBottom:h,transition:`background-color ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${G(r)} ${G(o)}`,color:x,background:v}}}},zG=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:s,controlItemBgActive:i,controlItemBgActiveHover:l,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:m,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:y,fontSize:b,fontSizeSM:x,lineHeight:v,lineWidth:g,colorIcon:h,colorIconHover:$,opacityLoading:C,controlInteractiveSize:N}=e,S=new Gt(o).onBackground(n).toHexString(),E=new Gt(s).onBackground(n).toHexString(),w=new Gt(t).onBackground(n).toHexString(),R=new Gt(h),P=new Gt($),T=N/2-g,M=T*2+g*3;return{headerBg:w,headerColor:r,headerSortActiveBg:S,headerSortHoverBg:E,bodySortBg:w,rowHoverBg:w,rowSelectedBg:i,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:m,headerBorderRadius:f,footerBg:w,footerColor:r,cellFontSize:b,cellFontSizeMD:b,cellFontSizeSM:b,headerSplitColor:m,fixedHeaderSortActiveBg:S,headerFilterHoverBg:s,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:y,stickyScrollBarBorderRadius:100,expandIconMarginTop:(b*v-g*3)/2-Math.ceil((x*1.4-g*3)/2),headerIconColor:R.clone().setA(R.a*C).toRgbString(),headerIconHoverColor:P.clone().setA(P.a*C).toRgbString(),expandIconHalfInner:T,expandIconSize:M,expandIconScale:N/M}},jG=2,BG=Tt("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:s,headerColor:i,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:m,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:y,cellPaddingInline:b,cellPaddingBlockMD:x,cellPaddingInlineMD:v,cellPaddingBlockSM:g,cellPaddingInlineSM:h,borderColor:$,footerBg:C,footerColor:N,headerBorderRadius:S,cellFontSize:E,cellFontSizeMD:w,cellFontSizeSM:R,headerSplitColor:P,fixedHeaderSortActiveBg:T,headerFilterHoverBg:M,filterDropdownBg:z,expandIconBg:B,selectionColumnWidth:F,stickyScrollBarBg:L,calc:j}=e,O=Rt(e,{tableFontSize:E,tableBg:r,tableRadius:S,tablePaddingVertical:y,tablePaddingHorizontal:b,tablePaddingVerticalMiddle:x,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:g,tablePaddingHorizontalSmall:h,tableBorderColor:$,tableHeaderTextColor:i,tableHeaderBg:s,tableFooterTextColor:N,tableFooterBg:C,tableHeaderCellSplitColor:P,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:T,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:z,tableRowHoverBg:d,tableSelectedRowBg:m,tableSelectedRowHoverBg:f,zIndexTableFixed:jG,tableFontSizeMiddle:w,tableFontSizeSmall:R,tableSelectionColumnWidth:F,tableExpandIconBg:B,tableExpandColumnWidth:j(o).add(j(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:L,tableScrollThumbBgHover:t,tableScrollBg:n});return[_G(O),EG(O),tE(O),TG(O),CG(O),bG(O),IG(O),SG(O),tE(O),$G(O),NG(O),wG(O),MG(O),xG(O),RG(O),PG(O),OG(O)]},zG,{resetFont:!1,unitless:{expandIconScale:!0}}),nE=[],FM=a.createContext({}),LG=e=>{const{ariaProps:t,component:n="table"}=a.useContext(FM);return a.createElement(n,{...t,...e})},kG=(e,t)=>{var Cr,mr,wr;const{prefixCls:n,className:r,rootClassName:o,style:s,classNames:i,styles:l,size:c,bordered:u,dropdownPrefixCls:d,dataSource:m,pagination:f,rowSelection:p,rowKey:y,rowClassName:b,column:x,columns:v,children:g,childrenColumnName:h,onChange:$,getPopupContainer:C,loading:N,expandIcon:S,expandable:E,expandedRowRender:w,expandIconColumnIndex:R,indentSize:P,scroll:T,sortDirections:M,locale:z,showSorterTooltip:B={target:"full-header"},virtual:F}=e;yo();const L=a.useMemo(()=>v||r$(g),[v,g]),j=rq(L,x),O=a.useMemo(()=>j.some(mt=>mt.responsive),[j]),A=Mm(O),k=a.useMemo(()=>{const mt=new Set(Object.keys(A).filter(Wt=>A[Wt]));return j.filter(Wt=>!Wt.responsive||Wt.responsive.some(en=>mt.has(en)))},[j,A]),_=Dt(e,["className","style","column","columns"]),D=_.components,V=Nn(_,{aria:!0}),W=Object.keys(V).length>0,K=a.useMemo(()=>{var mt;return{ariaProps:V,component:(mt=D==null?void 0:D.header)==null?void 0:mt.table}},[V,(Cr=D==null?void 0:D.header)==null?void 0:Cr.table]),q=a.useMemo(()=>W?{...D,header:{...D==null?void 0:D.header,table:LG}}:D,[D,W]),{locale:Y=Zr,table:ee}=a.useContext(ct),{getPrefixCls:ie,direction:ae,renderEmpty:U,getPopupContainer:Q,className:Z,style:ne,classNames:oe,styles:le}=Pt("table"),re=Cn(mt=>c==="middle"?"medium":c??mt),X={...e,size:re,bordered:u},se=Mt(ne),ge=Mt(s),[de,Se]=Ot([oe,i],[le,se,l,ge],{props:X},{pagination:{_default:"root"},header:{_default:"wrapper"},body:{_default:"wrapper"}}),ue={...Y.Table,...z},[be]=Ar("global",Zr.global),Ne=m||nE,we=ie("table",n),ze=ie("dropdown",d),[,he]=Yn(),ke=a.useMemo(()=>{var mt;return dt(p)?{columnWidth:(mt=he.Table)==null?void 0:mt.selectionColumnWidth,...p}:p},[p,(mr=he.Table)==null?void 0:mr.selectionColumnWidth]),Oe=on(we),[Ce,Me]=BG(we,Oe),xe={childrenColumnName:h,expandIconColumnIndex:R,...E,expandIcon:(E==null?void 0:E.expandIcon)??((wr=ee==null?void 0:ee.expandable)==null?void 0:wr.expandIcon)},{childrenColumnName:Ee="children"}=xe,Ve=a.useMemo(()=>Ne.some(mt=>mt==null?void 0:mt[Ee])?"nest":w||E!=null&&E.expandedRowRender?"row":null,[Ee,Ne]),qe={body:a.useRef(null)},me=nq(we),Re=a.useRef(null),Te=a.useRef(null);tB(t,()=>({...Te.current,nativeElement:Re.current}));const Ue=y||(ee==null?void 0:ee.rowKey)||"key",Ge=T??(ee==null?void 0:ee.scroll),Fe=a.useMemo(()=>bt(Ue)?Ue:mt=>mt==null?void 0:mt[Ue],[Ue]),[et]=nG(Ne,Ee,Fe),ve={},je=(mt,Wt,en=!1)=>{var wt,Ye,Et,Kt;const tt={...ve,...mt};en&&((wt=ve.resetPagination)==null||wt.call(ve),(Ye=tt.pagination)!=null&&Ye.current&&(tt.pagination.current=1),f&&((Kt=f.onChange)==null||Kt.call(f,1,(Et=tt.pagination)==null?void 0:Et.pageSize))),T&&T.scrollToFirstRowOnChange!==!1&&qe.body.current&&K5(0,{getContainer:()=>qe.body.current}),$==null||$(tt.pagination,tt.filters,tt.sorter,{currentDataSource:i0(u0(Ne,tt.sorterStates,Ee),tt.filterStates,Ee),action:Wt})},ce=(mt,Wt)=>{je({sorter:mt,sorterStates:Wt},"sort",!1)},[Pe,pe,$e,_e]=pG({prefixCls:we,mergedColumns:k,baseColumns:j,onSorterChange:ce,sortDirections:M||["ascend","descend"],tableLocale:ue,showSorterTooltip:B,globalLocale:be}),Ie=a.useMemo(()=>u0(Ne,pe,Ee),[Ee,Ne,pe]);ve.sorter=_e(),ve.sorterStates=pe;const Be=(mt,Wt)=>{je({filters:mt,filterStates:Wt},"filter",!0)},[te,ye,Ae]=tG({prefixCls:we,locale:ue,dropdownPrefixCls:ze,mergedColumns:k,onFilterChange:Be,getPopupContainer:C||Q,rootClassName:H(o,Oe)}),Je=i0(Ie,ye,Ee);ve.filters=Ae,ve.filterStates=ye;const St=tq($e,Ae),[ht]=hG(St),Nt=(mt,Wt)=>{je({pagination:{...ve.pagination,current:mt,pageSize:Wt}},"paginate")},[yt,at]=oG(Je.length,Nt,f);ve.pagination=f===!1?{}:rG(yt,f),ve.resetPagination=at;const Ze=a.useMemo(()=>{if(f===!1||!yt.pageSize)return Je;const{current:mt=1,total:Wt,pageSize:en=jM}=yt;return Je.length<Wt?Je.length>en?Je.slice((mt-1)*en,mt*en):Je:Je.slice((mt-1)*en,mt*en)},[!!f,Je,yt==null?void 0:yt.current,yt==null?void 0:yt.pageSize,yt==null?void 0:yt.total]),[De,Le]=JU({prefixCls:we,data:Je,pageData:Ze,getRowKey:Fe,getRecordByKey:et,expandType:Ve,childrenColumnName:Ee,locale:ue,getPopupContainer:C||Q},ke),Ke=(mt,Wt,en)=>H({[`${we}-row-selected`]:Le.has(Fe(mt,Wt))},bt(b)?b(mt,Wt,en):b);xe.__PARENT_RENDER_ICON__=xe.expandIcon,xe.expandIcon=xe.expandIcon||S||ZU(ue),Ve==="nest"&&xe.expandIconColumnIndex===void 0?xe.expandIconColumnIndex=ke?1:0:xe.expandIconColumnIndex>0&&ke&&(xe.expandIconColumnIndex-=1),Rn(xe.indentSize)||(xe.indentSize=Rn(P)?P:15);const lt=a.useCallback(mt=>ht(De(te(Pe(mt)))),[Pe,te,De]);let _t,ft;if(f!==!1&&(yt!=null&&yt.total)){const mt=sq(yt.size,re),Wt=(Ye="end")=>a.createElement(yK,{...yt,classNames:de.pagination,styles:Se.pagination,className:H(`${we}-pagination`,`${we}-pagination-${Ye}`,yt.className),size:mt}),{placement:en,position:tt}=yt,wt=en??tt;if(Array.isArray(wt)){const[Ye,Et]=["top","bottom"].map(pr=>wt.find(Dr=>Dr.includes(pr))),Kt=wt.every(pr=>`${pr}`=="none");!Ye&&!Et&&!Kt&&(ft=Wt()),Ye&&(_t=Wt(Kw(Ye))),Et&&(ft=Wt(Kw(Et)))}else ft=Wt()}const xt=gG(N),jt=H(Me,Oe,`${we}-wrapper`,Z,{[`${we}-wrapper-rtl`]:ae==="rtl"},r,o,de.root,Ce),pt=a.useMemo(()=>xt!=null&&xt.spinning&&Ne===nE?null:typeof(z==null?void 0:z.emptyText)<"u"?z.emptyText:(U==null?void 0:U("Table"))||a.createElement(YR,{componentName:"Table"}),[xt==null?void 0:xt.spinning,Ne,z==null?void 0:z.emptyText,U]),qt=F?vG:yG,cn={},hn=a.useMemo(()=>{const{fontSize:mt,lineHeight:Wt,lineWidth:en,padding:tt,paddingXS:wt,paddingSM:Ye}=he,Et=Math.floor(mt*Wt);switch(re){case"medium":return Ye*2+Et+en;case"small":return wt*2+Et+en;default:return tt*2+Et+en}},[he,re]);return F&&(cn.listItemHeight=hn),a.createElement("div",{ref:Re,className:jt,style:Se.root},a.createElement(YT,{spinning:!1,...xt},_t,a.createElement(FM.Provider,{value:K},a.createElement(qt,{...cn,..._,components:q,scroll:Ge,classNames:de,styles:Se,ref:Te,columns:k,direction:ae,expandable:xe,prefixCls:we,className:H({[`${we}-medium`]:re==="medium",[`${we}-small`]:re==="small",[`${we}-bordered`]:u,[`${we}-empty`]:Ne.length===0},Me,Oe,Ce),data:Ze,rowKey:Fe,rowClassName:Ke,emptyText:pt,internalHooks:cu,internalRefs:qe,transformColumns:lt,getContainerWidth:me,measureRowRender:mt=>a.createElement(zx.Provider,{value:!0},a.createElement(to,{getPopupContainer:Wt=>Wt},mt))})),ft))},AG=a.forwardRef(kG),DG=(e,t)=>{const n=a.useRef(0);return n.current+=1,a.createElement(AG,{...e,ref:t,_renderTimes:n.current})},Vn=a.forwardRef(DG);Vn.SELECTION_COLUMN=Wo;Vn.EXPAND_COLUMN=Uo;Vn.SELECTION_ALL=Gv;Vn.SELECTION_INVERT=Xv;Vn.SELECTION_NONE=Yv;Vn.Column=YU;Vn.ColumnGroup=QU;Vn.Summary=iM;const FG=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:s}=e,i=s(r).sub(n).equal(),l=s(t).sub(n).equal();return{[o]:{...Ft(e),display:"inline-block",height:"auto",paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${G(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-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},"&-disabled":{cursor:"not-allowed",[`&:not(${o}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${o}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${o}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${o}-default`]:{color:e.solidTextColor}},[`${o}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${o}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${o}-solid, &${o}-filled`]:{color:e.colorTextDisabled,[`${o}-close-icon`]:{color:e.colorTextDisabled}},[`${o}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},a$=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Rt(e,{tagFontSize:o,tagLineHeight:G(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},l$=e=>{const t=GN(new df(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new Gt(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},c$=Tt("Tag",e=>{const t=a$(e);return FG(t)},l$),HM=a.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:s,children:i,icon:l,onChange:c,onClick:u,onKeyDown:d,disabled:m,...f}=e,{getPrefixCls:p,tag:y}=a.useContext(ct),b=a.useContext(cr),x=m??b,v=S=>{x||(c==null||c(!s),u==null||u(S))},g=S=>{d==null||d(S),!(S.defaultPrevented||x)&&S.key===" "&&(S.preventDefault(),c==null||c(!s))},h=p("tag",n),[$,C]=c$(h),N=H(h,`${h}-checkable`,{[`${h}-checkable-checked`]:s,[`${h}-checkable-disabled`]:x},y==null?void 0:y.className,o,$,C);return a.createElement("span",{...f,ref:t,role:"checkbox","aria-checked":s,"aria-disabled":x||void 0,tabIndex:x?-1:0,style:{...r,...y==null?void 0:y.style},className:N,onClick:v,onKeyDown:g},l,a.createElement("span",null,i))}),HG=J.forwardRef((e,t)=>{const{id:n,prefixCls:r,rootClassName:o,className:s,style:i,classNames:l,styles:c,disabled:u,options:d,value:m,defaultValue:f,onChange:p,multiple:y,...b}=e,{getPrefixCls:x,direction:v,className:g,style:h,classNames:$,styles:C}=Pt("tag"),N=x("tag",r),S=`${N}-checkable-group`,E=on(N),[w,R]=c$(N,E),P=Mt(h),T=Mt(i),[M,z]=Ot([$,l],[C,P,c,T],{props:e}),B=a.useMemo(()=>Array.isArray(d)?d.map(k=>dt(k)?k:{value:k,label:k}):[],[d]),[F,L]=nn(f,m),j=(k,_)=>{let D=null;if(y){const V=F||[];D=k?[].concat($t(V),[_.value]):V.filter(W=>W!==_.value)}else D=k?_.value:null;L(D),p==null||p(D)},O=J.useRef(null);a.useImperativeHandle(t,()=>({nativeElement:O.current}));const A=Nn(b,{aria:!0,data:!0});return J.createElement("div",{...A,className:H(S,g,o,{[`${S}-disabled`]:u,[`${S}-rtl`]:v==="rtl"},w,R,s,M.root),style:z.root,id:n,ref:O},B.map(k=>J.createElement(HM,{key:k.value,className:H(`${S}-item`,M.item,k.className),style:{...z.item,...k.style},checked:y?(F||[]).includes(k.value):F===k.value,onChange:_=>j(_,k),disabled:u},k.label)))});function VG(e,t){const{color:n,variant:r,bordered:o}=e;return a.useMemo(()=>{const s=n==null?void 0:n.endsWith("-inverse");let i;r?i=r:s?i="solid":o===!1?i="filled":i=t||"filled";let l=s?n==null?void 0:n.replace("-inverse",""):n;l===void 0&&i==="solid"&&(l="default");const c=a4(l),u=DF(l),d={};if(!c&&!u&&l)if(i==="solid")d.backgroundColor=n;else{const m=new Gt(l).toHsl();m.l=.95,d.backgroundColor=new Gt(m).toHexString(),d.color=n,i==="outlined"&&(d.borderColor=n)}return[i,l,c,u,d]},[n,r,o,t])}const WG=e=>EP(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:s})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:o,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:s,borderColor:s,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:o,color:n}}})),KG=Ks(["Tag","preset"],e=>{const t=a$(e);return WG(t)},l$);function UG(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Xu=(e,t,n)=>{const r=UG(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},qG=Ks(["Tag","status"],e=>{const t=a$(e);return[Xu(t,"success","Success"),Xu(t,"processing","Info"),Xu(t,"error","Error"),Xu(t,"warning","Warning")]},l$),GG=a.forwardRef((e,t)=>{var le;const{prefixCls:n,className:r,rootClassName:o,style:s,children:i,icon:l,color:c,variant:u,onClose:d,bordered:m,disabled:f,href:p,target:y,styles:b,classNames:x,...v}=e,{getPrefixCls:g,direction:h,className:$,variant:C,style:N,classNames:S,styles:E}=Pt("tag"),[w,R,P,T,M]=VG(e,C),z=P||T,B=a.useContext(cr),F=f??B,{tag:L}=a.useContext(ct),[j,O]=a.useState(!0),A=Dt(v,["closeIcon","closable"]),k={...e,color:R,variant:w,disabled:F},[_,D]=Ot([S,x],[E,b],{props:k}),V=a.useMemo(()=>{let re={...D.root,...N,...s};return F||(re={...M,...re}),re},[D.root,N,s,M,F]),W=g("tag",n),[K,q]=c$(W),Y=H(W,$,_.root,`${W}-${w}`,{[`${W}-${R}`]:z,[`${W}-hidden`]:!j,[`${W}-rtl`]:h==="rtl",[`${W}-disabled`]:F},r,o,K,q),ee=re=>{F||(re.stopPropagation(),d==null||d(re),!re.defaultPrevented&&O(!1))},ie=re=>{(re.key==="Enter"||re.key===" ")&&(re.preventDefault(),re.currentTarget.click())},[,ae]=NN(Ua(e),Ua(L),{closable:!1,closeIconRender:re=>{const X=a.createElement("span",{role:"button",tabIndex:F?-1:0,"aria-disabled":F||void 0,className:H(`${W}-close-icon`,_.close),onClick:ee,onKeyDown:ie,style:D.close},re);return uN(re,X,se=>({onClick:ge=>{var de;(de=se==null?void 0:se.onClick)==null||de.call(se,ge),ee(ge)},onKeyDown:ge=>{var de;(de=se==null?void 0:se.onKeyDown)==null||de.call(se,ge),ge.defaultPrevented||ie(ge)},role:"button",tabIndex:F?-1:0,"aria-disabled":F||void 0,className:H(se==null?void 0:se.className,`${W}-close-icon`,_.close),style:{...D.close,...se==null?void 0:se.style}}))}}),U=bt(v.onClick)||i&&i.type==="a",Q=Fn(l,{className:H(a.isValidElement(l)?(le=l.props)==null?void 0:le.className:void 0,_.icon),style:D.icon}),Z=Q?a.createElement(a.Fragment,null,Q,i&&a.createElement("span",{className:_.content,style:D.content},i)):i,ne=p?"a":"span",oe=a.createElement(ne,{...A,ref:t,className:Y,style:V,href:F?void 0:p,target:y,onClick:F?void 0:A.onClick,...p&&F?{"aria-disabled":!0}:{}},Z,ae,P&&a.createElement(KG,{key:"preset",prefixCls:W}),T&&a.createElement(qG,{key:"status",prefixCls:W}));return U?a.createElement(Sm,{component:"Tag"},oe):oe}),Yt=GG;Yt.CheckableTag=HM;Yt.CheckableTagGroup=HG;const XG=e=>{const t=e!=null&&e.algorithm?tf(e.algorithm):Jb,n={...Wa,...e==null?void 0:e.token};return eP(n,{override:e==null?void 0:e.token},t,$P)};function YG(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const QG=(e,t)=>{const n=t??hm(e),r=n.fontSizeSM,o=n.controlHeight-4;return{...n,...YG(t??e),...xP(r),controlHeight:o,...bP({...n,controlHeight:o})}},Vr=(e,t)=>new Gt(e).setA(t).toRgbString(),Zs=(e,t)=>new Gt(e).lighten(t).toHexString(),rE=e=>{const t=gm(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},JG=(e,t,n)=>{const r=e||"#000",o=t||"#fff";return{colorBgBase:r,colorTextBase:o,colorShadow:n||"rgba(255, 255, 255, 0.2)",colorText:Vr(o,.85),colorTextSecondary:Vr(o,.65),colorTextTertiary:Vr(o,.45),colorTextQuaternary:Vr(o,.25),colorFill:Vr(o,.18),colorFillSecondary:Vr(o,.12),colorFillTertiary:Vr(o,.08),colorFillQuaternary:Vr(o,.04),colorBgSolid:Vr(o,.95),colorBgSolidHover:Vr(o,1),colorBgSolidActive:Vr(o,.9),colorBgElevated:Zs(r,12),colorBgContainer:Zs(r,8),colorBgLayout:Zs(r,0),colorBgSpotlight:Zs(r,26),colorBgBlur:Vr(o,.04),colorBorder:Zs(r,26),colorBorderDisabled:Zs(r,26),colorBorderSecondary:Zs(r,19)}},ZG=(e,t)=>{const n=Object.keys(Qb).map(i=>{const l=gm(e[i],{theme:"dark"});return Array.from({length:10},()=>1).reduce((c,u,d)=>(c[`${i}-${d+1}`]=l[d],c[`${i}${d+1}`]=l[d],c),{})}).reduce((i,l)=>(i={...i,...l},i),{}),r=t??hm(e),o=vP(e,{generateColorPalettes:rE,generateNeutralColorPalettes:JG}),s=Oo.reduce((i,l)=>{const c=e[l];if(c){const u=rE(c);i[`${l}Hover`]=u[7],i[`${l}Active`]=u[5]}return i},{});return{...r,...n,...o,...s,colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover}};function eX(){const[e,t,n,r]=Yn();return{theme:e,token:t,hashId:n,cssVar:r}}const tX={defaultSeed:Ec.token,useToken:eX,defaultAlgorithm:hm,darkAlgorithm:ZG,compactAlgorithm:QG,getDesignToken:XG,defaultConfig:Ec,_internalContext:Zb};var VM={};Object.defineProperty(VM,"__esModule",{value:!0});var nX={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"},rX=VM.default=nX;function d0(){return d0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d0.apply(this,arguments)}const oX=(e,t)=>a.createElement(gt,d0({},e,{ref:t,icon:rX})),u$=a.forwardRef(oX);var WM={};Object.defineProperty(WM,"__esModule",{value:!0});var sX={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"},iX=WM.default=sX;function f0(){return f0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f0.apply(this,arguments)}const aX=(e,t)=>a.createElement(gt,f0({},e,{ref:t,icon:iX})),uu=a.forwardRef(aX);var KM={};Object.defineProperty(KM,"__esModule",{value:!0});var lX={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"},cX=KM.default=lX;function m0(){return m0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m0.apply(this,arguments)}const uX=(e,t)=>a.createElement(gt,m0({},e,{ref:t,icon:cX})),dX=a.forwardRef(uX),fX=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:s}=r;return{marginBottom:o,color:n,fontWeight:s,fontSize:e,lineHeight:t}},mX=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
h${r}&,
div&-h${r},
div&-h${r} > textarea,
h${r}
`]=fX(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},pX=e=>{const{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...ex(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none",[`${t}-actions`]:{pointerEvents:"auto"}}}}}},gX=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:rf[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},table:{width:"100%",textAlign:"start",borderCollapse:"separate",borderSpacing:0,marginBlock:"1em","th, td":{padding:G(e.padding),overflowWrap:"break-word",borderBottom:`${G(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:"start",position:"relative",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:e.colorSplit,transform:"translateY(-50%)",content:'""'}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),hX=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"}}}},yX=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),vX=()=>({"a&-ellipsis, span&-ellipsis":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{...ar,"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"}}),bX=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"div&, p":{marginBottom:"1em"},...mX(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...gX(e),...pX(e),[`${t}-actions`]:{display:"inline"},[`
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy
`]:{...ex(e),marginInlineStart:e.marginXXS},[`${t}-actions-start`]:{[`
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy:not(${t}-copy-icon-only)
`]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}},...hX(e),...yX(e),...vX(),"&-rtl":{direction:"rtl"}}}},xX=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),UM=Tt("Typography",bX,xX),$X=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,classNames:s,styles:i,direction:l,maxLength:c,autoSize:u=!0,value:d,onSave:m,onCancel:f,onEnd:p,component:y,enterIcon:b=a.createElement(dX,null)}=e,x=a.useRef(null),v=a.useRef(!1),g=a.useRef(null),[h,$]=a.useState(d);a.useEffect(()=>{$(d)},[d]),a.useEffect(()=>{var B;if((B=x.current)!=null&&B.resizableTextArea){const{textArea:F}=x.current.resizableTextArea;F.focus();const{length:L}=F.value;F.setSelectionRange(L,L)}},[]);const C=({target:B})=>{$(B.value.replace(/[\n\r]/g,""))},N=()=>{v.current=!0},S=()=>{v.current=!1},E=({keyCode:B})=>{v.current||(g.current=B)},w=()=>{m(h.trim())},R=({keyCode:B,ctrlKey:F,altKey:L,metaKey:j,shiftKey:O})=>{g.current!==B||v.current||F||L||j||O||(B===nt.ENTER?(w(),p==null||p()):B===nt.ESC&&f())},P=()=>{w()},[T,M]=UM(t),z=H(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${y}`]:!!y},r,s.root,T,M);return a.createElement("div",{className:z,style:{...i.root,...o}},a.createElement(HT,{ref:x,maxLength:c,value:h,onChange:C,onKeyDown:E,onKeyUp:R,onCompositionStart:N,onCompositionEnd:S,onBlur:P,"aria-label":n,rows:1,autoSize:u,className:s.textarea,style:i.textarea}),b!==null?Fn(b,{className:`${t}-edit-content-confirm`}):null)},SX=(e,t)=>{let n=!1;const r=o=>{var s,i,l;o.stopPropagation(),o.preventDefault(),(s=o.clipboardData)==null||s.clearData(),(i=o.clipboardData)==null||i.setData("text/plain",e),t&&((l=o.clipboardData)==null||l.setData("text/html",e)),n=!0};try{return document.addEventListener("copy",r,{capture:!0}),document.execCommand("copy"),n}catch{return!1}finally{document.removeEventListener("copy",r,{capture:!0})}},CX=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function wX(e,t){if(typeof e!="string")return!1;const n=(t==null?void 0:t.format)==="text/html";return!!(await CX(e,n)||SX(e,n))}const EX=({copyConfig:e,children:t})=>{const[n,r]=a.useState(!1),[o,s]=a.useState(!1),i=a.useRef(null),l=()=>{i.current&&clearTimeout(i.current)},c={};e.format&&(c.format=e.format),a.useEffect(()=>l,[]);const u=vt(async d=>{var m;d==null||d.preventDefault(),d==null||d.stopPropagation(),s(!0);try{const f=bt(e.text)?await e.text():e.text;await wX(f||QT(t,{skipEmpty:!0}).join("")||"",c),s(!1),r(!0),l(),i.current=setTimeout(()=>{r(!1)},3e3),(m=e.onCopy)==null||m.call(e,d)}catch(f){throw s(!1),f}});return{copied:n,copyLoading:o,onClick:u}},wg=(e,t)=>{const n=!!e;return a.useMemo(()=>{const r={...t,...n&&dt(e)?e:null};return[n,r]},[n,e,t])},IX=e=>{const t=a.useRef(void 0);return a.useEffect(()=>{t.current=e}),t.current},PX=(e,t,n)=>a.useMemo(()=>e===!0?{title:t??n}:a.isValidElement(e)?{title:e}:dt(e)?{title:t??n,...e}:{title:e},[e,t,n]),qM=(e,t,n,r,o)=>{const{getPrefixCls:s,direction:i,className:l,style:c,classNames:u,styles:d}=Pt("typography"),m=r??i,f=s("typography",e),p={...o,prefixCls:f,direction:m},y=a.useMemo(()=>({root:l}),[l]),b=a.useMemo(()=>({root:c}),[c]),[x,v]=Ot([y,u,t],[b,d,n],{props:p});return[x,v,f,m]},GM=a.forwardRef((e,t)=>{const{component:n="article",className:r,rootClassName:o,children:s,direction:i,style:l,classNames:c,styles:u,prefixCls:d,...m}=e,[f,p]=UM(d),y=H(d,{[`${d}-rtl`]:i==="rtl"},r,o,f,p,c==null?void 0:c.root),b={...u==null?void 0:u.root,...l};return a.createElement(n,{...m,className:y,style:b,ref:t},s)}),NX=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,direction:s,classNames:i,styles:l,...c}=e,[u,d,m,f]=qM(n,i,l,s,e);return a.createElement(GM,{ref:t,className:H(r,o),direction:f,classNames:u,styles:d,prefixCls:m,...c})});var XM={};Object.defineProperty(XM,"__esModule",{value:!0});var RX={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"},TX=XM.default=RX;function p0(){return p0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p0.apply(this,arguments)}const MX=(e,t)=>a.createElement(gt,p0({},e,{ref:t,icon:TX})),OX=a.forwardRef(MX),oE=e=>e===!1?[!1,!1]:QT(e);function Eg(e,t,n){return e===!0||e===void 0?t:e||n&&t}function _X(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 d$=e=>["string","number"].includes(typeof e),zX=e=>{const{prefixCls:t,copied:n,locale:r,iconOnly:o,tooltips:s,icon:i,tabIndex:l,onCopy:c,loading:u,className:d,style:m}=e,f=oE(s),p=oE(i),{copied:y,copy:b}=r??{},x=n?y:b,v=Eg(f[n?1:0],x),g=typeof v=="string"?v:x;return a.createElement(bo,{title:v},a.createElement("button",{type:"button",className:H(`${t}-copy`,d,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:o}),style:m,onClick:c,"aria-label":g,tabIndex:l},n?Eg(p[1],a.createElement(Nx,null),!0):Eg(p[0],u?a.createElement(ki,null):a.createElement(OX,null),!0)))},Yu=a.forwardRef(({style:e,children:t},n)=>{const r=a.useRef(null);return a.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),a.createElement("span",{"aria-hidden":!0,ref:r,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),jX=e=>e.reduce((t,n)=>t+(d$(n)?String(n).length:1),0);function sE(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const s=e[o],l=d$(s)?String(s).length:1,c=n+l;if(c>t){const u=t-n;return r.push(String(s).slice(0,u)),r}r.push(s),n=c}return e}const Ig=0,Pg=1,Ng=2,Rg=3,iE=4,Qu={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function BX(e){const{enableMeasure:t,width:n,text:r,children:o,rows:s,expanded:i,measureDeps:l,miscDeps:c,onEllipsis:u}=e,d=a.useMemo(()=>zn(r),[r]),m=a.useMemo(()=>jX(d),[r]),f=a.useMemo(()=>o(d,!1),[r].concat($t(l))),[p,y]=a.useState(null),b=a.useRef(null),x=a.useRef(null),v=a.useRef(null),g=a.useRef(null),h=a.useRef(null),[$,C]=a.useState(!1),[N,S]=a.useState(Ig),[E,w]=a.useState(0),[R,P]=a.useState(null);It(()=>{S(t&&n&&m?Pg:Ig)},[n,r,s,t,d].concat($t(l))),It(()=>{var B,F,L,j;if(N===Pg){S(Ng);const O=x.current&&getComputedStyle(x.current).whiteSpace;P(O)}else if(N===Ng){const O=!!((B=v.current)!=null&&B.isExceed());S(O?Rg:iE),y(O?[0,m]:null),C(O);const A=((F=v.current)==null?void 0:F.getHeight())||0,k=s===1?0:((L=g.current)==null?void 0:L.getHeight())||0,_=((j=h.current)==null?void 0:j.getHeight())||0,D=Math.max(A,k+_);w(D+1),u(O)}},[N]);const T=p?Math.ceil((p[0]+p[1])/2):0;It(()=>{var L;const[B,F]=p||[0,0];if(B!==F){const O=(((L=b.current)==null?void 0:L.getHeight())||0)>E;let A=T;F-B===1&&(A=O?B:F),y(O?[B,A]:[A,F])}},[p,T]);const M=a.useMemo(()=>{if(!t)return o(d,!1);if(N!==Rg||!p||p[0]!==p[1]){const B=o(d,!1);return[iE,Ig].includes(N)?B:a.createElement("span",{style:{...Qu,WebkitLineClamp:s}},B)}return o(i?d:sE(d,p[0]),$)},[i,N,p,d].concat($t(c))),z={width:n,margin:0,padding:0,whiteSpace:R==="nowrap"?"normal":"inherit"};return a.createElement(a.Fragment,null,M,N===Ng&&a.createElement(a.Fragment,null,a.createElement(Yu,{style:{...z,...Qu,WebkitLineClamp:s},ref:v},f),a.createElement(Yu,{style:{...z,...Qu,WebkitLineClamp:s-1},ref:g},f),a.createElement(Yu,{style:{...z,...Qu,WebkitLineClamp:1},ref:h},o([],!0))),N===Rg&&p&&p[0]!==p[1]&&a.createElement(Yu,{style:{...z,top:400},ref:b},o(sE(d,T),!0)),N===Pg&&a.createElement("span",{style:{whiteSpace:"inherit"},ref:x}))}const LX=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:o})=>{if(!(o!=null&&o.title)||!e)return r;const s=n&&t;return a.createElement(bo,{open:s,...o},r)};function kX({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:s,italic:i},l){let c=l;function u(d,m){m&&(c=a.createElement(d,{},c))}return u("strong",o),u("u",n),u("del",r),u("code",t),u("mark",e),u("kbd",s),u("i",i),c}const AX="...",aE=["delete","mark","code","underline","strong","keyboard","italic"],Um=a.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,classNames:s,styles:i,direction:l,type:c,disabled:u,children:d,ellipsis:m,editable:f,copyable:p,actions:y,component:b,title:x,onMouseEnter:v,onMouseLeave:g,...h}=e,[$]=Ar("Text"),C=a.useRef(null),N=a.useRef(null),[S,E,w,R]=qM(n,s,i,l,e),P=Dt(h,aE),[T,M]=wg(f),[z,B]=nn(!1,M.editing),{triggerType:F=["icon"]}=M,L=Pe=>{var pe;Pe&&((pe=M.onStart)==null||pe.call(M)),B(Pe)},j=IX(z);It(()=>{var Pe;!z&&j&&((Pe=N.current)==null||Pe.focus())},[z]);const O=Pe=>{Pe==null||Pe.preventDefault(),L(!0)},A=Pe=>{var pe;(pe=M.onChange)==null||pe.call(M,Pe),L(!1)},k=()=>{var Pe;(Pe=M.onCancel)==null||Pe.call(M),L(!1)},[_,D]=wg(p),{placement:V="end"}=y??{},{copied:W,copyLoading:K,onClick:q}=EX({copyConfig:D,children:d}),[Y,ee]=a.useState(!1),[ie,ae]=a.useState(!1),[U,Q]=a.useState(!1),[Z,ne]=a.useState(!1),[oe,le]=a.useState(!0),[re,X]=wg(m,{expandable:!1,symbol:Pe=>Pe?$==null?void 0:$.collapse:$==null?void 0:$.expand}),[se,ge]=nn(X.defaultExpanded||!1,X.expanded),de=re&&(!se||X.expandable==="collapsible"),{rows:Se=1}=X,ue=a.useMemo(()=>de&&(X.suffix!==void 0||X.onEllipsis||X.expandable||T||_),[de,X,T,_]);It(()=>{re&&!ue&&(ee(BS("webkitLineClamp")),ae(BS("textOverflow")))},[ue,re]);const[be,Ne]=a.useState(de),we=a.useMemo(()=>ue?!1:Se===1?ie:Y,[ue,Se,Y,ie]);It(()=>{Ne(we&&de)},[we,de]);const ze=PX(X.tooltip,M.text,d),he=be&&!!ze.title,ke=de&&(be?he&&Z:U),Oe=de&&Se===1&&be,Ce=de&&Se>1&&be,Me=(Pe,pe)=>{var $e;ge(pe.expanded),($e=X.onExpand)==null||$e.call(X,Pe,pe)},[xe,Ee]=a.useState(0),[Ve,qe]=a.useState(!1),[me,Re]=a.useState(!1),Te=({offsetWidth:Pe})=>{Ee(Pe)},Ue=Pe=>{var pe;Q(Pe),U!==Pe&&((pe=X.onEllipsis)==null||pe.call(X,Pe))};a.useEffect(()=>{const Pe=C.current;if(re&&he&&Pe){const pe=_X(Pe);Z!==pe&&ne(pe)}},[re,he,d,Ce,oe,xe]),a.useEffect(()=>{const Pe=C.current;if(typeof IntersectionObserver>"u"||!Pe||!he||!de)return;const pe=new IntersectionObserver(()=>{le(!!Pe.offsetParent)});return pe.observe(Pe),()=>{pe.disconnect()}},[he,de]);const Ge=a.useMemo(()=>{if(!(!re||be))return[M.text,d,x,ze.title].find(d$)},[re,be,x,ze.title,ke,M.text]);if(z)return a.createElement($X,{value:M.text??(typeof d=="string"?d:""),onSave:A,onCancel:k,onEnd:M.onEnd,prefixCls:w,className:r,style:o,direction:R,component:b,maxLength:M.maxLength,autoSize:M.autoSize,enterIcon:M.enterIcon,classNames:S,styles:E});const Fe=()=>{const{expandable:Pe,symbol:pe}=X;return Pe?a.createElement("button",{type:"button",key:"expand",className:H(`${w}-${se?"collapse":"expand"}`,S.action),style:E.action,onClick:$e=>Me($e,{expanded:!se}),"aria-label":se?$.collapse:$==null?void 0:$.expand},bt(pe)?pe(se):pe):null},et=()=>{if(!T)return;const{icon:Pe,tooltip:pe,tabIndex:$e}=M,_e=zn(pe)[0]||($==null?void 0:$.edit),Ie=typeof _e=="string"?_e:"";return F.includes("icon")?a.createElement(bo,{key:"edit",title:pe===!1?"":_e},a.createElement("button",{type:"button",ref:N,className:H(`${w}-edit`,S.action),style:E.action,onClick:O,"aria-label":Ie,tabIndex:$e},Pe||a.createElement(uu,{role:"button"}))):null},ve=()=>_?a.createElement(zX,{key:"copy",...D,prefixCls:w,copied:W,locale:$,onCopy:q,loading:K,iconOnly:!$n(d),className:S.action,style:E.action}):null,je=Pe=>{const pe=Pe&&Fe(),$e=et(),_e=ve();return!pe&&!$e&&!_e?null:a.createElement("span",{key:"operations",className:H(`${w}-actions`,S.actions,{[`${w}-actions-start`]:V==="start"}),style:E.actions,onMouseEnter:()=>qe(!0),onMouseLeave:()=>qe(!1)},pe,$e,_e)},ce=Pe=>[Pe&&!se&&a.createElement("span",{"aria-hidden":!0,key:"ellipsis"},AX),X.suffix];return a.createElement(ir,{onResize:Te,disabled:!de},Pe=>a.createElement(LX,{tooltipProps:ze,enableEllipsis:de,isEllipsis:ke,open:me&&!Ve},a.createElement(GM,{onMouseEnter:pe=>{Re(!0),v==null||v(pe)},onMouseLeave:pe=>{Re(!1),g==null||g(pe)},className:H({[`${w}-${c}`]:c,[`${w}-disabled`]:u,[`${w}-ellipsis`]:re,[`${w}-ellipsis-single-line`]:Oe,[`${w}-ellipsis-multiple-line`]:Ce,[`${w}-link`]:b==="a"},r),classNames:S,styles:E,prefixCls:w,style:{...o,WebkitLineClamp:Ce?Se:void 0},component:b,ref:Tn(Pe,C,t),direction:R,onClick:F.includes("text")?O:void 0,"aria-label":Ge==null?void 0:Ge.toString(),title:x,...P},a.createElement(BX,{enableMeasure:de&&!be,text:d,rows:Se,width:xe,onEllipsis:Ue,expanded:se,measureDeps:[V],miscDeps:[W,se,K,T,_,V,$].concat($t(aE.map(pe=>e[pe])))},(pe,$e)=>kX(e,a.createElement(a.Fragment,null,V==="start"?je($e):null,pe.length>0&&$e&&!se&&Ge?a.createElement("span",{key:"show-content","aria-hidden":!0},pe):pe,ce($e),V==="start"?null:je($e)))))))}),DX=a.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:o,navigate:s,...i}=e,l={...i,rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r};return a.createElement(Um,{...l,ref:t,ellipsis:!!n,component:"a"},o)}),FX=a.forwardRef((e,t)=>{const{children:n,...r}=e;return a.createElement(Um,{ref:t,...r,component:"div"},n)}),HX=a.forwardRef((e,t)=>{const{ellipsis:n,children:r,...o}=e,s=a.useMemo(()=>dt(n)?Dt(n,["expandable","rows"]):n,[n]);return a.createElement(Um,{ref:t,...o,ellipsis:s,component:"span"},r)}),VX=[1,2,3,4,5],WX=a.forwardRef((e,t)=>{const{level:n=1,children:r,...o}=e,s=VX.includes(n)?`h${n}`:"h1";return a.createElement(Um,{ref:t,...o,component:s},r)}),ot=NX;ot.Text=HX;ot.Link=DX;ot.Title=WX;ot.Paragraph=FX;var qm={},YM={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(YM);var f$=YM.exports,Gm={};Object.defineProperty(Gm,"__esModule",{value:!0});Gm.default=void 0;const KX={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:"页码"};Gm.default=KX;var Xm={},du={},Ym={},Qm={};Object.defineProperty(Qm,"__esModule",{value:!0});Qm.commonLocale=void 0;Qm.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};Object.defineProperty(Ym,"__esModule",{value:!0});Ym.default=void 0;var UX=Qm;const qX={...UX.commonLocale,locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1};Ym.default=qX;var fu={};Object.defineProperty(fu,"__esModule",{value:!0});fu.default=void 0;const GX={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};fu.default=GX;var QM=f$.default;Object.defineProperty(du,"__esModule",{value:!0});du.default=void 0;var XX=QM(Ym),YX=QM(fu);const JM={lang:{placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"],...XX.default},timePickerLocale:{...YX.default}};JM.lang.ok="确定";du.default=JM;var QX=f$.default;Object.defineProperty(Xm,"__esModule",{value:!0});Xm.default=void 0;var JX=QX(du);Xm.default=JX.default;var Jm=f$.default;Object.defineProperty(qm,"__esModule",{value:!0});qm.default=void 0;var ZX=Jm(Gm),eY=Jm(Xm),tY=Jm(du),nY=Jm(fu);const Pr="${label}不是一个有效的${type}",rY={locale:"zh-cn",Pagination:ZX.default,DatePicker:tY.default,TimePicker:nY.default,Calendar:eY.default,global:{placeholder:"请选择",close:"关闭",sortable:"可排序",show:"显示",hide:"隐藏"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Pr,method:Pr,array:Pr,object:Pr,number:Pr,date:Pr,boolean:Pr,integer:Pr,float:Pr,regexp:Pr,email:Pr,url:Pr,hex:Pr},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};qm.default=rY;var oY=qm;const sY=k0(oY);let m$=null;function iY(){return m$}function Tg(){m$=null}function lE(e){m$=e}function aY(e){const t=typeof window<"u"?window.__AJZ_PREVIEW__:void 0;return!(t!=null&&t.blueprint)||t.id&&t.id!==e?null:{id:String(t.id||e),blueprint:t.blueprint,rows:Array.isArray(t.rows)?t.rows:[],resource:String(t.resource||"records")}}async function lY(e){const t=aY(e);if(t)return lE(t),t;const n=await fetch(`/ai/api/v1/preview/${encodeURIComponent(e)}`),r=await n.json();if(!n.ok||!(r!=null&&r.ok))throw new Error((r==null?void 0:r.error)||`预览不存在或已过期 (${n.status})`);const o={id:String(r.id||e),blueprint:r.blueprint,rows:Array.isArray(r.rows)?r.rows:[],resource:String(r.resource||"records")};return lE(o),o}function Ju(){const t=(window.location.hash||"").replace(/^#/,"").match(/^\/?preview\/([a-zA-Z0-9_-]{6,32})\/?$/);return t?t[1]:null}const ZM=[{title:"模块",items:[{id:"读取模块",label:"读取模块"},{id:"写入模块",label:"写入模块"},{id:"发布模块",label:"发布模块"}]},{title:"数据",items:[{id:"查询数据",label:"查询数据"},{id:"新增数据",label:"新增数据"},{id:"更新数据",label:"更新数据"},{id:"删除数据",label:"删除数据"},{id:"导入数据",label:"导入数据"},{id:"导出数据",label:"导出数据"}]},{title:"其他",items:[{id:"下载文件",label:"下载文件"},{id:"上传文件",label:"上传文件"},{id:"查看审计",label:"查看审计"}]}],e6={"app.read":"读取模块","app.write":"写入模块","app.admin":"发布模块","row.create":"新增数据","row.read":"查询数据","row.update":"更新数据","row.delete":"删除数据","row.export":"导出数据","row.import":"导入数据","audit.read":"查看审计","storage.write":"上传文件","storage.read":"下载文件","agent.admin":"管理智能体","tenant.invite":"邀请成员","org.admin":"管理组织","sync.admin":"数据同步"},cY={...Object.fromEntries(ZM.flatMap(e=>e.items.map(t=>[t.id,t.label]))),管理智能体:"管理智能体",邀请成员:"邀请成员",管理组织:"管理组织",数据同步:"数据同步"};function Of(e){const t=e6[e]||e;return cY[t]||t}function Zm(e){switch(e){case"platform_admin":case"super_admin":case"超级管理员":return"超级管理员";case"owner":case"管理员":return"管理员";case"editor":case"编辑":return"编辑";case"viewer":case"只读":return"只读";case"pending":case"待加入":return"待加入";case"agent":case"智能体":return"智能体";default:return e}}function nc(e){return Zm(e)}function Nr(e){return Zm(e||"")==="超级管理员"}function zl(e){return Zm(e||"")==="管理员"}function uY(e){var r;const t=((r=e.allowedModules)!=null&&r.length?e.allowedModules:ZM.map(o=>({title:o.title,items:o.items.map(s=>({perm:s.id,desc:s.label}))}))).map(o=>({title:o.title,items:o.items||(o.perms||[]).map(s=>({perm:s,desc:Of(s)}))})),n=e.value.map(o=>e6[o]||o);return I.jsx(Vt,{direction:"vertical",size:"middle",style:{width:"100%"},children:t.map(o=>{const s=o.items.map(i=>i.perm);return I.jsxs("div",{children:[I.jsx(ot.Text,{type:"secondary",strong:!0,children:o.title}),I.jsx("div",{style:{marginTop:8},children:I.jsx(as.Group,{style:{width:"100%",display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:8},value:n.filter(i=>s.includes(i)),onChange:i=>{const l=new Set(s),c=n.filter(u=>!l.has(u));e.onChange([...c,...i])},options:o.items.map(i=>({label:I.jsxs("span",{children:[Of(i.perm),i.desc?I.jsxs(I.Fragment,{children:[I.jsx("br",{}),I.jsx(ot.Text,{type:"secondary",style:{fontSize:12},children:i.desc})]}):null]}),value:i.perm}))})})]},o.title)})})}function dY(e,t){return e==null?!0:e.includes(t)}const Xn="",Lc="/ai",p$="ajz_session";function Mg(e){if(!e)return!1;const t=Zm(e.role||"");return t==="超级管理员"||e.username==="ljk_admin"?!1:t==="待加入"||e.status==="pending"||!e.tenantId}function t6(e){if(!e||e.split(".").length<2)return"";try{const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=t+"=".repeat((4-t.length%4)%4),r=atob(n),o=Uint8Array.from(r,i=>i.charCodeAt(0)),s=JSON.parse(new TextDecoder().decode(o));return typeof(s==null?void 0:s.role)=="string"?s.role:""}catch{return""}}function Oa(e){try{localStorage.removeItem(p$)}catch{}(e==null?void 0:e.emit)!==!1&&typeof window<"u"&&window.dispatchEvent(new CustomEvent("ajz:session-expired"))}function Og(){try{const e=localStorage.getItem(p$);if(!e)return null;const t=JSON.parse(e);return!(t!=null&&t.accessToken)||typeof t.accessToken!="string"||t.accessToken.split(".").length!==3?(Oa({emit:!1}),null):t.expiresAt&&t.expiresAt*1e3<Date.now()-6e4?(Oa({emit:!1}),null):(t.role||(t.role=t6(t.accessToken)),t)}catch{return Oa({emit:!1}),null}}function n6(e){localStorage.setItem(p$,JSON.stringify(e))}function ll(e){const t=e.access_token,n={accessToken:t,agentKey:e.agent_key,tenantId:e.tenant_id||0,userId:e.user_id,username:e.username,phone:e.phone||void 0,displayName:e.display_name,role:e.role||t6(t),orgUnitId:e.org_unit_id||0,status:e.status,expiresAt:e.expires_at,tenantName:e.tenant_name||void 0};if(!n.accessToken)throw new Error("登录响应缺少 access_token");return n}function fY(e){const t=String((e==null?void 0:e.message)||e);return/failed to fetch|networkerror|load failed|network request failed/i.test(t)?new Error("无法连接网关或前端代理,请确认服务已启动后刷新页面"):e instanceof Error?e:new Error(t)}function mY(e,t){const n=String((e==null?void 0:e.message)||(e==null?void 0:e.msg)||(e==null?void 0:e.error)||"");return t===401||/invalid token|malformed token|expired|missing bearer/i.test(n)?/invalid username or password|账号已停用|login failed/i.test(n)?n||"用户名或密码错误":(Oa(),n||"登录已失效,请重新登录"):n}async function st(e,t){try{return await fetch(e,t)}catch(n){throw fY(n)}}async function it(e){const t=await e.text();if(!t)return{};try{return JSON.parse(t)}catch{throw new Error(e.ok?"响应不是 JSON":`请求失败 HTTP ${e.status}`)}}async function pY(e){const t=await st(`${Xn}/api/v1/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),n=await it(t);if(!t.ok)throw new Error(n.message||(t.status===401?"登录失败":"login failed"));return ll(n)}async function gY(e){const t=await st(`${Xn}/api/v1/auth/sms/send`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({phone:e.trim(),purpose:"login"})}),n=await it(t);return ut(t,n,"send sms failed"),n}async function hY(e,t,n){const r=await st(`${Xn}/api/v1/auth/register`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:e,password:t,display_name:n})}),o=await it(r);if(!r.ok)throw new Error(o.message||"register failed");return ll(o)}async function yY(){const e=await st(`${Lc}/api/v1/llm/providers`),t=await it(e);if(!e.ok)throw new Error(JSON.stringify(t));return t}async function vY(e,t,n,r="schema_per_app",o="deepseek",s="",i){const l=new FormData;l.append("prompt",e),l.append("storage_mode",r),l.append("llm_provider",o),s&&l.append("llm_model",s),t&&l.append("excel",t);for(const d of n||[])l.append("images",d);for(const d of i||[])l.append("layout_files",d);const c=await st(`${Lc}/api/v1/apps/generate`,{method:"POST",body:l}),u=await it(c);if(!c.ok)throw new Error(JSON.stringify(u));return u}function ut(e,t,n){if(e.ok)return;const r=mY(t,e.status)||n||`请求失败 (HTTP ${e.status})`;throw new Error(r)}async function Rd(e){const t=await st(`${Xn}/api/v1/apps`,{headers:{Authorization:`Bearer ${e.accessToken}`}}),n=await it(t);return ut(t,n,"列出模块失败"),n}async function bY(e,t,n){const r=await st(`${Xn}/api/v1/apps/${t}/draft`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.accessToken}`},body:JSON.stringify({blueprint:n})}),o=await it(r);return ut(r,o,"登记在建模块失败"),o}async function xY(e,t,n,r="auto"){const o=await st(`${Xn}/api/v1/apps/${t}/publish`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.accessToken}`},body:JSON.stringify({blueprint:n,mode:r==="merge"?"add_pages":r})}),s=await it(o);return ut(o,s,"发布失败"),s}async function cE(e,t){if(e!=null&&e.accessToken){const o=await st(`${Xn}/api/v1/apps/${t}/blueprint`,{headers:{Authorization:`Bearer ${e.accessToken}`}}),s=await it(o);return ut(o,s,"blueprint failed"),s}const n=await st(`${Xn}/api/v1/public/apps/${t}/blueprint`),r=await it(n);return ut(n,r,"blueprint failed"),r}async function ep(e,t,n,r,o=1,s=500){const i=new URLSearchParams;if(i.set("page",String(o)),i.set("page_size",String(s)),r)for(const[p,y]of Object.entries(r))y&&i.set(`filter.${p}`,y);const l=i.toString(),c=e!=null&&e.accessToken?`${Xn}/api/v1/apps/${t}/${n}?${l}`:`${Xn}/api/v1/public/apps/${t}/${n}?${l}`,u=iY();if(u&&(!n||n===u.resource||!u.resource)){let p=u.rows||[];r&&(p=p.filter(b=>Object.entries(r).every(([x,v])=>!v||String(b[x]??"")===String(v))));const y=Math.max(0,(o-1)*s);return{items:p.slice(y,y+s),total:p.length}}const d={};e!=null&&e.accessToken&&(d.Authorization=`Bearer ${e.accessToken}`);const m=await st(c,{headers:d}),f=await it(m);return ut(m,f,"list failed"),f}async function $Y(e,t,n,r){if(!(e!=null&&e.accessToken))throw new Error("预览模式为只读,写操作请先登录控制台");const o=await st(`${Xn}/api/v1/apps/${t}/${n}`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.accessToken}`},body:JSON.stringify(r)}),s=await it(o);return ut(o,s,"create failed"),s}async function SY(e,t,n,r,o){if(!(e!=null&&e.accessToken))throw new Error("预览模式为只读,写操作请先登录控制台");const s=await st(`${Xn}/api/v1/apps/${t}/${n}/${r}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.accessToken}`},body:JSON.stringify(o)}),i=await it(s);return ut(s,i,"update failed"),i}async function CY(e,t,n,r){if(!(e!=null&&e.accessToken))throw new Error("预览模式为只读,写操作请先登录控制台");const o=await st(`${Xn}/api/v1/apps/${t}/${n}/${r}`,{method:"DELETE",headers:{Authorization:`Bearer ${e.accessToken}`}});if(!o.ok&&o.status!==204){const s=await it(o).catch(()=>({}));ut(o,s,"delete failed")}}async function wY(e,t,n,r,o){const s=new URLSearchParams;r&&s.set("group_by",r),o&&s.set("sum",o);const i={};e!=null&&e.accessToken&&(i.Authorization=`Bearer ${e.accessToken}`);const l=await st(`${Xn}/api/v1/apps/${t}/${n}/aggregate?${s}`,{headers:i}),c=await it(l);return ut(l,c,"aggregate failed"),c}async function EY(e,t){const n=await st(`${Xn}/api/v1/apps/${t}/agent-capsule`,{headers:{Authorization:`Bearer ${e.accessToken}`}}),r=await it(n);return ut(n,r,"capsule failed"),r}async function IY(e,t,n,r){if(!(e!=null&&e.accessToken))throw new Error("预览模式为只读,写操作请先登录控制台");const o=new FormData;o.append("file",r);const s=await st(`${Xn}/api/v1/apps/${t}/${n}/import`,{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`},body:o}),i=await it(s);return ut(s,i,"import failed"),i}async function PY(e,t,n,r="xlsx"){if(!(e!=null&&e.accessToken))throw new Error("预览模式为只读,写操作请先登录控制台");const o=await st(`${Xn}/api/v1/apps/${t}/${n}/export?format=${r}`,{headers:{Authorization:`Bearer ${e.accessToken}`}});if(!o.ok){const c=await it(o).catch(()=>({}));ut(o,c,"export failed")}const s=await o.blob(),i=URL.createObjectURL(s),l=document.createElement("a");l.href=i,l.download=`${n}.${r==="csv"?"csv":"xlsx"}`,l.click(),URL.revokeObjectURL(i)}async function NY(e,t=1){const n=await st(`/api/v1/audit/logs?page=${t}&page_size=50`,{headers:{Authorization:`Bearer ${e.accessToken}`}}),r=await it(n);return ut(n,r,"audit failed"),r}async function RY(e){const t=await st("/api/v1/admin/agents",{headers:{Authorization:`Bearer ${e.accessToken}`}}),n=await it(t);return ut(t,n,"list agents failed"),n}async function TY(e,t){const n=await st("/api/v1/admin/agents",{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await it(n);return ut(n,r,"create agent failed"),r}async function uE(e,t,n){const r=await st(`/api/v1/admin/agents/${t}`,{method:"PUT",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(n)}),o=await it(r);return ut(r,o,"update agent failed"),o}async function MY(e,t){const n=await st(`/api/v1/admin/agents/${t}/rotate-secret`,{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`}}),r=await it(n);return ut(n,r,"rotate secret failed"),r}async function OY(e,t){const n=await st(`/api/v1/admin/agents/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${e.accessToken}`}}),r=await it(n);ut(n,r,"delete agent failed")}async function r6(e){const t=await st("/api/v1/admin/roles",{headers:{Authorization:`Bearer ${e.accessToken}`}}),n=await it(t);return ut(t,n,"list roles failed"),n}async function _Y(e,t){const n=await st("/api/v1/admin/roles",{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await it(n);return ut(n,r,"create role failed"),r}async function zY(e,t,n){const r=await st(`/api/v1/admin/roles/${t}`,{method:"PUT",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(n)}),o=await it(r);return ut(r,o,"update role failed"),o}async function jY(e,t){const n=await st(`/api/v1/admin/roles/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${e.accessToken}`}}),r=await it(n);ut(n,r,"delete role failed")}async function BY(e,t){const n=await st("/api/v1/auth/invites/accept",{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({code:t})}),r=await it(n);return ut(n,r,"accept invite failed"),ll(r)}async function LY(e,t){const n=await st("/api/v1/tenants",{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({name:t})}),r=await it(n);return ut(n,r,"create tenant failed"),ll(r)}async function kY(e){const t=await st("/api/v1/admin/invites",{headers:{Authorization:`Bearer ${e.accessToken}`}}),n=await it(t);return ut(t,n,"list invites failed"),n}async function AY(e,t){const n=await st("/api/v1/admin/invites",{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await it(n);return ut(n,r,"create invite failed"),r}async function DY(e,t){const n=await st(`/api/v1/admin/invites/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${e.accessToken}`}}),r=await it(n);ut(n,r,"revoke invite failed")}async function g$(e){const t=await st("/api/v1/admin/org-units",{headers:{Authorization:`Bearer ${e.accessToken}`}}),n=await it(t);return ut(t,n,"list org units failed"),n}async function FY(e,t){const n=await st("/api/v1/admin/org-units",{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await it(n);return ut(n,r,"create org unit failed"),r}async function HY(e,t,n){const r=await st(`/api/v1/admin/org-units/${t}`,{method:"PUT",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(n)}),o=await it(r);return ut(r,o,"update org unit failed"),o}async function VY(e,t){const n=await st(`/api/v1/admin/org-units/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${e.accessToken}`}}),r=await it(n);ut(n,r,"delete org unit failed")}async function WY(e){const t=await st("/api/v1/admin/sync/channels",{headers:{Authorization:`Bearer ${e.accessToken}`}}),n=await it(t);return ut(t,n,"list sync channels failed"),n}async function KY(e,t){const n=await st("/api/v1/admin/sync/channels",{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await it(n);return ut(n,r,"create sync channel failed"),r}async function UY(e,t,n){const r=await st(`/api/v1/admin/sync/channels/${encodeURIComponent(t)}`,{method:"PUT",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(n)}),o=await it(r);return ut(r,o,"update sync channel failed"),o}async function qY(e,t){const n=await st(`/api/v1/admin/sync/channels/${encodeURIComponent(t)}`,{method:"DELETE",headers:{Authorization:`Bearer ${e.accessToken}`}}),r=await it(n);ut(n,r,"delete sync channel failed")}async function GY(e,t){const n=await st("/api/v1/admin/sync/test",{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await it(n);return ut(n,r,"test sync failed"),r}async function XY(e,t){const n=await st(`/api/v1/admin/sync/channels/${encodeURIComponent(t)}/start`,{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`}}),r=await it(n);return ut(n,r,"start sync failed"),r}async function YY(e,t){const n=await st(`/api/v1/admin/sync/channels/${encodeURIComponent(t)}/stop`,{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`}}),r=await it(n);return ut(n,r,"stop sync failed"),r}async function QY(e,t=!0){const r=await st(`/api/v1/admin/sync/conflicts${t?"?unresolved=1":"?unresolved=0"}`,{headers:{Authorization:`Bearer ${e.accessToken}`}}),o=await it(r);return ut(r,o,"list conflicts failed"),o}async function dE(e,t,n){const r=await st(`/api/v1/admin/sync/conflicts/${encodeURIComponent(t)}/resolve`,{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({resolution:n})}),o=await it(r);return ut(r,o,"resolve conflict failed"),o}async function JY(e,t){const n=await st(`/api/v1/admin/sync/channels/${encodeURIComponent(t)}/reconcile`,{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`}}),r=await it(n);return ut(n,r,"reconcile failed"),r}async function ZY(e){const t=await st("/api/v1/platform/tenants",{headers:{Authorization:`Bearer ${e.accessToken}`}}),n=await it(t);return ut(t,n,"list tenants failed"),n}async function eQ(e){const t=await st("/api/v1/platform/perm-modules",{headers:{Authorization:`Bearer ${e.accessToken}`}}),n=await it(t);return ut(t,n,"list perm modules failed"),n}async function tQ(e,t){const n=await st(`/api/v1/platform/tenants/${t}/permissions`,{headers:{Authorization:`Bearer ${e.accessToken}`}}),r=await it(n);return ut(n,r,"get tenant perms failed"),r}async function nQ(e,t,n){const r=await st(`/api/v1/platform/tenants/${t}/permissions`,{method:"PUT",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({permissions:n})}),o=await it(r);return ut(r,o,"set tenant perms failed"),o}async function rQ(e,t,n=!1,r=""){const o=await st("/api/v1/platform/tenants",{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({name:t,slug:r||void 0,with_admin_invite:n})}),s=await it(o);return ut(o,s,"create tenant failed"),s}async function oQ(e,t,n,r=""){const o=await st(`/api/v1/platform/tenants/${t}`,{method:"PUT",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({name:n,slug:r||void 0})}),s=await it(o);return ut(o,s,"update tenant failed"),s}async function sQ(e,t){const n=await st(`/api/v1/platform/tenants/${t}/admin-invite`,{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`}}),r=await it(n);return ut(n,r,"admin invite failed"),r}async function iQ(e,t){const n=await st(`/api/v1/platform/tenants/${t}/admin-account`,{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`}}),r=await it(n);return ut(n,r,"admin account failed"),r}async function aQ(e,t){const n=await st(`/api/v1/platform/tenants/${t}/enter`,{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`}}),r=await it(n);return ut(n,r,"enter tenant failed"),ll(r)}async function lQ(e){const t=await st("/api/v1/platform/exit",{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`}}),n=await it(t);return ut(t,n,"exit tenant failed"),ll(n)}async function o6(e){const t=await st("/api/v1/admin/entitlements",{headers:{Authorization:`Bearer ${e.accessToken}`}}),n=await it(t);return ut(t,n,"get entitlements failed"),n}async function cQ(e){const t=await st("/api/v1/admin/members",{headers:{Authorization:`Bearer ${e.accessToken}`}}),n=await it(t);return ut(t,n,"list members failed"),n}async function uQ(e,t){const n=await st("/api/v1/admin/members",{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(t)}),r=await it(n);return ut(n,r,"create member failed"),r}async function dQ(e,t,n){const r=await st("/api/v1/auth/password",{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({old_password:t,new_password:n})}),o=await it(r);return ut(r,o,"change password failed"),o}async function fQ(e,t){const n=await st("/api/v1/auth/phone",{method:"PUT",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({phone:t})}),r=await it(n);return ut(n,r,"bind phone failed"),r}async function mQ(e,t,n){const r=await st(`/api/v1/admin/members/${t}`,{method:"PUT",headers:{Authorization:`Bearer ${e.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(n)}),o=await it(r);return ut(r,o,"update member failed"),o}async function pQ(e,t){const n=new FormData;n.append("file",t);const r=await st("/api/v1/storage",{method:"POST",headers:{Authorization:`Bearer ${e.accessToken}`},body:n}),o=await it(r);return ut(r,o,"upload failed"),o}var s6={};Object.defineProperty(s6,"__esModule",{value:!0});var gQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"},hQ=s6.default=gQ;function g0(){return g0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g0.apply(this,arguments)}const yQ=(e,t)=>a.createElement(gt,g0({},e,{ref:t,icon:hQ})),vQ=a.forwardRef(yQ);var i6={};Object.defineProperty(i6,"__esModule",{value:!0});var bQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"},xQ=i6.default=bQ;function h0(){return h0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h0.apply(this,arguments)}const $Q=(e,t)=>a.createElement(gt,h0({},e,{ref:t,icon:xQ})),a6=a.forwardRef($Q);var l6={};Object.defineProperty(l6,"__esModule",{value:!0});var SQ={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"},CQ=l6.default=SQ;function y0(){return y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y0.apply(this,arguments)}const wQ=(e,t)=>a.createElement(gt,y0({},e,{ref:t,icon:CQ})),EQ=a.forwardRef(wQ);var c6={};Object.defineProperty(c6,"__esModule",{value:!0});var IQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z"}}]},name:"audit",theme:"outlined"},PQ=c6.default=IQ;function v0(){return v0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v0.apply(this,arguments)}const NQ=(e,t)=>a.createElement(gt,v0({},e,{ref:t,icon:PQ})),RQ=a.forwardRef(NQ);var u6={};Object.defineProperty(u6,"__esModule",{value:!0});var TQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 00-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM512 196.7l271.1 197.2H240.9L512 196.7zM264 462h117v374H264V462zm189 0h117v374H453V462zm307 374H642V462h118v374z"}}]},name:"bank",theme:"outlined"},MQ=u6.default=TQ;function b0(){return b0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b0.apply(this,arguments)}const OQ=(e,t)=>a.createElement(gt,b0({},e,{ref:t,icon:MQ})),fE=a.forwardRef(OQ);var d6={};Object.defineProperty(d6,"__esModule",{value:!0});var _Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}},{tag:"path",attrs:{d:"M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 003 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 00-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z"}}]},name:"cloud-sync",theme:"outlined"},zQ=d6.default=_Q;function x0(){return x0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x0.apply(this,arguments)}const jQ=(e,t)=>a.createElement(gt,x0({},e,{ref:t,icon:zQ})),BQ=a.forwardRef(jQ);var f6={};Object.defineProperty(f6,"__esModule",{value:!0});var LQ={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"},kQ=f6.default=LQ;function $0(){return $0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$0.apply(this,arguments)}const AQ=(e,t)=>a.createElement(gt,$0({},e,{ref:t,icon:kQ})),_f=a.forwardRef(AQ);var m6={};Object.defineProperty(m6,"__esModule",{value:!0});var DQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 01520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 01270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 010 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z"}}]},name:"login",theme:"outlined"},FQ=m6.default=DQ;function S0(){return S0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S0.apply(this,arguments)}const HQ=(e,t)=>a.createElement(gt,S0({},e,{ref:t,icon:FQ})),VQ=a.forwardRef(HQ);var p6={};Object.defineProperty(p6,"__esModule",{value:!0});var WQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},KQ=p6.default=WQ;function C0(){return C0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C0.apply(this,arguments)}const UQ=(e,t)=>a.createElement(gt,C0({},e,{ref:t,icon:KQ})),g6=a.forwardRef(UQ);var h6={};Object.defineProperty(h6,"__esModule",{value:!0});var qQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-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-8zm0 632H120c-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-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},GQ=h6.default=qQ;function w0(){return w0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w0.apply(this,arguments)}const XQ=(e,t)=>a.createElement(gt,w0({},e,{ref:t,icon:GQ})),YQ=a.forwardRef(XQ);var y6={};Object.defineProperty(y6,"__esModule",{value:!0});var QQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-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-8zm0 632H120c-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-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},JQ=y6.default=QQ;function E0(){return E0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E0.apply(this,arguments)}const ZQ=(e,t)=>a.createElement(gt,E0({},e,{ref:t,icon:JQ})),eJ=a.forwardRef(ZQ);var v6={};Object.defineProperty(v6,"__esModule",{value:!0});var tJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},nJ=v6.default=tJ;function I0(){return I0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I0.apply(this,arguments)}const rJ=(e,t)=>a.createElement(gt,I0({},e,{ref:t,icon:nJ})),mE=a.forwardRef(rJ);var b6={};Object.defineProperty(b6,"__esModule",{value:!0});var oJ={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 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"},sJ=b6.default=oJ;function P0(){return P0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P0.apply(this,arguments)}const iJ=(e,t)=>a.createElement(gt,P0({},e,{ref:t,icon:sJ})),aJ=a.forwardRef(iJ);var x6={};Object.defineProperty(x6,"__esModule",{value:!0});var lJ={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"},cJ=x6.default=lJ;function N0(){return N0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N0.apply(this,arguments)}const uJ=(e,t)=>a.createElement(gt,N0({},e,{ref:t,icon:cJ})),dJ=a.forwardRef(uJ);var $6={};Object.defineProperty($6,"__esModule",{value:!0});var fJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},mJ=$6.default=fJ;function R0(){return R0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R0.apply(this,arguments)}const pJ=(e,t)=>a.createElement(gt,R0({},e,{ref:t,icon:mJ})),gJ=a.forwardRef(pJ);var S6={};Object.defineProperty(S6,"__esModule",{value:!0});var hJ={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"},yJ=S6.default=hJ;function T0(){return T0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T0.apply(this,arguments)}const vJ=(e,t)=>a.createElement(gt,T0({},e,{ref:t,icon:yJ})),bJ=a.forwardRef(vJ);var C6={};Object.defineProperty(C6,"__esModule",{value:!0});var xJ={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"},$J=C6.default=xJ;function M0(){return M0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M0.apply(this,arguments)}const SJ=(e,t)=>a.createElement(gt,M0({},e,{ref:t,icon:$J})),w6=a.forwardRef(SJ);var E6={};Object.defineProperty(E6,"__esModule",{value:!0});var CJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"},wJ=E6.default=CJ;function O0(){return O0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O0.apply(this,arguments)}const EJ=(e,t)=>a.createElement(gt,O0({},e,{ref:t,icon:wJ})),IJ=a.forwardRef(EJ);var I6={};Object.defineProperty(I6,"__esModule",{value:!0});var PJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"},NJ=I6.default=PJ;function _0(){return _0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_0.apply(this,arguments)}const RJ=(e,t)=>a.createElement(gt,_0({},e,{ref:t,icon:NJ})),TJ=a.forwardRef(RJ);var P6={};Object.defineProperty(P6,"__esModule",{value:!0});var MJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"},OJ=P6.default=MJ;function z0(){return z0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z0.apply(this,arguments)}const _J=(e,t)=>a.createElement(gt,z0({},e,{ref:t,icon:OJ})),zJ=a.forwardRef(_J);var N6={};Object.defineProperty(N6,"__esModule",{value:!0});var jJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},BJ=N6.default=jJ;function j0(){return j0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j0.apply(this,arguments)}const LJ=(e,t)=>a.createElement(gt,j0({},e,{ref:t,icon:BJ})),kJ=a.forwardRef(LJ);function AJ(e){const{session:t,busy:n,setBusy:r,setError:o,setInfo:s}=e,{message:i,modal:l}=Lo.useApp(),[c,u]=a.useState([]),[d,m]=a.useState([]),[f,p]=a.useState(!1),[y,b]=a.useState(!1),[x,v]=a.useState(null),[g]=We.useForm(),h=We.useWatch("role_id",g),$=a.useMemo(()=>d.find(R=>R.role_id===h),[d,h]);async function C(){p(!0);try{const[R,P]=await Promise.all([RY(t),r6(t)]);u(R.items||[]),m(P.items||[])}catch(R){const P=R.message||String(R);o(P),i.error(P)}finally{p(!1)}}a.useEffect(()=>{C()},[t.accessToken]);function N(){v(null);const R=d.find(P=>P.code==="生成发布"||P.code==="publisher")||d.find(P=>P.code==="运维"||P.code==="operator")||d[0];g.resetFields(),g.setFieldsValue({name:"",role_id:R==null?void 0:R.role_id,app_slugs:[]}),b(!0)}function S(R){v(R),g.setFieldsValue({name:R.name||"",role_id:R.role_id||void 0,app_slugs:R.app_slugs||[]}),b(!0)}async function E(R=!1){const P=await g.validateFields();r(!0);try{if(x)await uE(t,x.agent_id,{name:P.name.trim(),role_id:P.role_id,app_slugs:P.app_slugs||[],...R?{status:"active"}:{}}),i.success(R?"已保存并启用":"已保存"),s(R?`已保存并启用「${P.name.trim()}」`:`已保存「${P.name.trim()}」`);else{const T=await TY(t,{name:P.name.trim(),role_id:P.role_id,app_slugs:P.app_slugs||[]});l.success({title:"用户已创建",content:I.jsxs("div",{children:[I.jsx("p",{children:"请立即保存 client_secret只显示一次"}),I.jsx(ot.Paragraph,{copyable:!0,code:!0,children:T.client_secret})]})}),s(`已创建用户「${P.name.trim()}」`)}b(!1),await C()}catch(T){const M=T.message||String(T);o(M),i.error(M)}finally{r(!1)}}const w=R=>R==="active"?I.jsx(Yt,{color:"success",children:"active"}):R==="pending"?I.jsx(Yt,{color:"warning",children:"pending"}):I.jsx(Yt,{children:R});return I.jsxs(tr,{title:"用户管理",extra:I.jsxs(Vt,{children:[I.jsx(Xe,{icon:I.jsx(Gs,{}),onClick:C,loading:f,children:"刷新"}),I.jsx(Xe,{type:"primary",icon:I.jsx(zo,{}),onClick:N,disabled:!d.length,children:"新建用户"})]}),children:[I.jsxs(ot.Paragraph,{type:"secondary",style:{marginTop:0},children:["当前租户 #",t.tenantId,"。用户挂在本租户下;同角色跨公司靠租户隔离,不靠再拆一套角色。 角色请在「角色管理」中维护。"]}),I.jsx(Vn,{rowKey:"agent_id",loading:f||n,dataSource:c,pagination:{pageSize:10},columns:[{title:"用户名称",dataIndex:"name",render:(R,P)=>I.jsxs("div",{children:[I.jsx("strong",{children:R||"—"}),P.host_key?I.jsx("div",{children:I.jsxs(ot.Text,{type:"secondary",style:{fontSize:12},children:["host: ",P.host_key]})}):null]})},{title:"client_id",dataIndex:"client_id",render:R=>I.jsx(ot.Text,{code:!0,children:R})},{title:"状态",dataIndex:"status",width:110,render:w},{title:"角色",render:(R,P)=>P.role_name||P.role_code||"—"},{title:"可访问模块",dataIndex:"app_slugs",render:R=>(R||[]).length?I.jsx(Vt,{size:[4,4],wrap:!0,children:(R||[]).map(P=>I.jsx(Yt,{children:P},P))}):"—"},{title:"操作",width:320,render:(R,P)=>I.jsxs(Vt,{wrap:!0,children:[I.jsx(Xe,{size:"small",icon:I.jsx(uu,{}),onClick:()=>S(P),children:"编辑"}),I.jsx(Xe,{size:"small",icon:P.status==="active"?I.jsx(w6,{}):I.jsx(Nx,{}),onClick:async()=>{const T=P.status==="active"?"disabled":"active";if(T==="active"&&!P.role_id&&!(P.permissions||[]).length){i.warning("请先编辑并分配角色后再启用");return}r(!0);try{await uE(t,P.agent_id,{status:T}),i.success(`已设为 ${T}`),s(`已将「${P.name}」设为 ${T}`),await C()}catch(M){i.error(M.message||String(M)),o(M.message||String(M))}finally{r(!1)}},children:P.status==="active"?"停用":"启用"}),I.jsx(Xe,{size:"small",icon:I.jsx(_f,{}),onClick:async()=>{r(!0);try{const T=await MY(t,P.agent_id);l.success({title:"密钥已轮换",content:I.jsx(ot.Paragraph,{copyable:!0,code:!0,children:T.client_secret})}),s(`已轮换「${P.name}」的 secret`)}catch(T){i.error(T.message||String(T)),o(T.message||String(T))}finally{r(!1)}},children:"轮换密钥"}),I.jsx(lu,{title:`删除用户「${P.name}」?`,onConfirm:async()=>{r(!0);try{await OY(t,P.agent_id),i.success("已删除"),s(`已删除「${P.name}」`),await C()}catch(T){i.error(T.message||String(T)),o(T.message||String(T))}finally{r(!1)}},children:I.jsx(Xe,{size:"small",danger:!0,icon:I.jsx(u$,{}),children:"删除"})})]})}]}),I.jsx(Sn,{title:x?`编辑用户 #${x.agent_id}`:"新建用户",open:y,onCancel:()=>b(!1),confirmLoading:n,width:640,destroyOnClose:!0,footer:[I.jsx(Xe,{onClick:()=>b(!1),children:"取消"},"cancel"),x?I.jsx(Xe,{onClick:()=>E(!0),loading:n,children:"保存并启用"},"activate"):null,I.jsx(Xe,{type:"primary",onClick:()=>E(!1),loading:n,children:x?"保存修改":"创建用户"},"ok")],children:I.jsxs(We,{form:g,layout:"vertical",style:{marginTop:12},children:[I.jsx(We.Item,{label:"用户名称",name:"name",rules:[{required:!0,message:"请填写名称"}],children:I.jsx(Lt,{placeholder:"例如:产线宿主 A"})}),I.jsx(We.Item,{label:"角色",name:"role_id",rules:[{required:!0,message:"请选择角色"}],children:I.jsx(dn,{placeholder:"请选择角色",options:d.map(R=>({value:R.role_id,label:`${R.name}${R.code}`}))})}),$&&I.jsx(tr,{size:"small",title:"角色权限预览",style:{marginBottom:16},children:I.jsx(Vt,{size:[4,4],wrap:!0,children:($.permissions||[]).map(R=>I.jsx(Yt,{children:Of(R)},R))})}),I.jsx(We.Item,{label:"可访问模块(可选)",name:"app_slugs",extra:"留空=可自由发布任意自建模块,无需再逐个授权。仅当需要限制范围时再填写白名单(或 * 表示全部)。",children:I.jsx(dn,{mode:"tags",placeholder:"可选限制:输入 slug 后回车;留空表示不限制",tokenSeparators:[","],allowClear:!0})})]})})]})}function DJ(e){const{session:t,busy:n,setBusy:r,setError:o,setInfo:s}=e,{message:i}=Lo.useApp(),[l,c]=a.useState([]),[u,d]=a.useState([]),[m,f]=a.useState(!1),[p,y]=a.useState(!1),[b]=We.useForm();async function x(){f(!0);try{const[g,h]=await Promise.all([kY(t),g$(t).catch(()=>({items:[]}))]);c(g.items||[]),d(h.items||[])}catch(g){const h=g.message||String(g);o(h),i.error(h)}finally{f(!1)}}a.useEffect(()=>{x()},[t.accessToken]);async function v(){const g=await b.validateFields();r(!0);try{const h=await AY(t,{role:g.role,org_unit_id:g.org_unit_id||0,max_uses:g.max_uses,expires_in_hours:g.expires_in_hours||0});i.success(`邀请码已创建:${h.code}`),s(`邀请码 ${h.code}(角色 ${h.role}`),y(!1),await x()}catch(h){i.error(h.message||String(h)),o(h.message||String(h))}finally{r(!1)}}return I.jsxs(tr,{title:"邀请加入",extra:I.jsxs(Vt,{children:[I.jsx(Xe,{icon:I.jsx(Gs,{}),onClick:x,loading:m,children:"刷新"}),I.jsx(Xe,{type:"primary",icon:I.jsx(zo,{}),onClick:()=>{b.setFieldsValue({role:"编辑",max_uses:1,expires_in_hours:72,org_unit_id:void 0}),y(!0)},children:"生成邀请码"})]}),children:[I.jsxs(ot.Paragraph,{type:"secondary",style:{marginTop:0},children:["把邀请码发给新用户。对方注册后处于「待加入」,输入邀请码即可成为本司成员。 成员角色:",I.jsx("strong",{children:"管理员"}),"(顶级,含数据同步)、",I.jsx("strong",{children:"编辑"}),"(读写数据)、",I.jsx("strong",{children:"只读"}),"(仅查看导出)。详见 docs/角色说明.md。"]}),I.jsx(Vn,{rowKey:"invite_id",loading:m||n,dataSource:l,pagination:{pageSize:10},columns:[{title:"邀请码",dataIndex:"code",render:g=>I.jsx(ot.Text,{copyable:!0,code:!0,children:g})},{title:"加入角色",dataIndex:"role",width:100,render:g=>I.jsx(Yt,{children:nc(g)})},{title:"组织",width:140,render:(g,h)=>{if(!h.org_unit_id)return"全公司";const $=u.find(C=>C.org_unit_id===h.org_unit_id);return($==null?void 0:$.name)||`#${h.org_unit_id}`}},{title:"使用",width:100,render:(g,h)=>`${h.used_count}/${h.max_uses}`},{title:"状态",dataIndex:"status",width:110,render:g=>g==="active"?I.jsx(Yt,{color:"success",children:"有效"}):g==="revoked"?I.jsx(Yt,{children:"已撤销"}):g==="exhausted"?I.jsx(Yt,{color:"warning",children:"已用尽"}):I.jsx(Yt,{children:g})},{title:"过期",dataIndex:"expires_at",render:g=>g?new Date(g).toLocaleString():"不过期"},{title:"操作",width:120,render:(g,h)=>h.status==="active"?I.jsx(lu,{title:"撤销该邀请码?",onConfirm:async()=>{r(!0);try{await DY(t,h.invite_id),i.success("已撤销"),await x()}catch($){i.error($.message||String($))}finally{r(!1)}},children:I.jsx(Xe,{size:"small",danger:!0,icon:I.jsx(w6,{}),children:"撤销"})}):"—"}]}),I.jsx(Sn,{title:"生成邀请码",open:p,onCancel:()=>y(!1),onOk:v,confirmLoading:n,okText:"生成",destroyOnClose:!0,children:I.jsxs(We,{form:b,layout:"vertical",style:{marginTop:12},children:[I.jsx(We.Item,{label:"加入后角色",name:"role",rules:[{required:!0}],children:I.jsx(dn,{options:[{value:"编辑",label:"编辑 — 可读写业务数据,不可发布/管组织"},{value:"只读",label:"只读 — 仅查看与导出"},{value:"管理员",label:"管理员 — 公司顶级(含数据同步)"}]})}),I.jsx(We.Item,{label:"绑定组织(可选)",name:"org_unit_id",children:I.jsx(dn,{allowClear:!0,placeholder:"空=不绑组织(可见全公司数据)",options:u.map(g=>({value:g.org_unit_id,label:`${"— ".repeat(Math.max(0,g.depth-1))}${g.name}`}))})}),I.jsx(We.Item,{label:"可用次数",name:"max_uses",rules:[{required:!0}],children:I.jsx(wf,{min:1,max:1e3,style:{width:"100%"}})}),I.jsx(We.Item,{label:"有效小时数0=不过期)",name:"expires_in_hours",children:I.jsx(wf,{min:0,max:8760,style:{width:"100%"}})})]})})]})}function FJ(e){const{session:t,onOpenPublished:n,onContinueDraft:r}=e,[o,s]=a.useState([]),[i,l]=a.useState(""),[c,u]=a.useState(!1);async function d(){u(!0);try{const f=await Rd(t);s(f.items||[]),l(f.scope||"")}catch(f){JT.error(f.message||String(f))}finally{u(!1)}}a.useEffect(()=>{d()},[t.accessToken]);const m=f=>{const p=f.status_label||f.status;return f.status==="published"?I.jsx(Yt,{color:"success",children:p}):f.status==="failed"?I.jsx(Yt,{color:"error",children:p}):I.jsx(Yt,{color:"processing",children:p||"在建"})};return I.jsxs(tr,{title:"模块管理",extra:I.jsx(Xe,{icon:I.jsx(Gs,{}),onClick:d,loading:c,children:"刷新"}),children:[I.jsxs(ot.Paragraph,{type:"secondary",style:{marginTop:0},children:["管理账号(如 owner可查看本租户",I.jsx("strong",{children:"全部模块"}),",含",I.jsx("strong",{children:"在建"}),"与已发布。 智能体默认不限制模块(可自由发布自建 slug仅当配置了白名单时才受限。",i==="all"?" 当前范围:管理全部。":i==="open"?" 当前范围:智能体开放。":i==="granted"?" 当前范围:白名单。":null]}),I.jsx(Vn,{rowKey:"app_id",loading:c,dataSource:o,pagination:{pageSize:20},columns:[{title:"模块名称",dataIndex:"name"},{title:"slug",dataIndex:"slug",render:f=>I.jsx(ot.Text,{code:!0,children:f})},{title:"状态",width:110,render:(f,p)=>m(p)},{title:"页面数",dataIndex:"page_count",width:80},{title:"实体数",dataIndex:"entity_count",width:80},{title:"更新时间",dataIndex:"updated_at",width:200},{title:"操作",width:200,render:(f,p)=>I.jsx(Vt,{children:p.status==="published"?I.jsx(Xe,{type:"link",onClick:()=>n(p.slug),children:"打开"}):I.jsx(Xe,{type:"link",onClick:()=>r(p.slug),children:"继续编辑"})})}],locale:{emptyText:"暂无模块。生成蓝图后会登记为「在建」,发布成功后变为「已发布」。"}})]})}function HJ(e){const{session:t,busy:n,setBusy:r,setError:o,setInfo:s}=e,{message:i}=Lo.useApp(),[l,c]=a.useState([]),[u,d]=a.useState(5),[m,f]=a.useState(!1),[p,y]=a.useState(!1),[b,x]=a.useState(null),[v]=We.useForm();async function g(){f(!0);try{const S=await g$(t);c(S.items||[]),S.max_depth&&d(S.max_depth)}catch(S){const E=S.message||String(S);o(E),i.error(E)}finally{f(!1)}}a.useEffect(()=>{g()},[t.accessToken]);const h=a.useMemo(()=>(l||[]).filter(S=>S.depth<u).map(S=>({value:S.org_unit_id,label:`${"— ".repeat(Math.max(0,S.depth-1))}${S.name}L${S.depth}`})),[l,u]);function $(S){x(null),v.resetFields(),v.setFieldsValue({parent_id:S||void 0,name:"",code:""}),y(!0)}function C(S){x(S),v.setFieldsValue({name:S.name,code:S.code||"",parent_id:S.parent_id||void 0}),y(!0)}async function N(){const S=await v.validateFields();r(!0);try{if(b)await HY(t,b.org_unit_id,{name:S.name.trim(),code:(S.code||"").trim()}),i.success("已保存"),s(`已保存组织「${S.name.trim()}」`);else{const E=await FY(t,{parent_id:S.parent_id||0,name:S.name.trim(),code:(S.code||"").trim()});i.success(`已创建「${E.name}」`),s(`已创建组织「${E.name}」(深度 ${E.depth}/${u}`)}y(!1),await g()}catch(E){i.error(E.message||String(E)),o(E.message||String(E))}finally{r(!1)}}return I.jsxs(tr,{title:"组织管理",extra:I.jsxs(Vt,{children:[I.jsx(Xe,{icon:I.jsx(Gs,{}),onClick:g,loading:m,children:"刷新"}),I.jsx(Xe,{type:"primary",icon:I.jsx(zo,{}),onClick:()=>$(),children:"新建顶级组织"})]}),children:[I.jsxs(ot.Paragraph,{type:"secondary",style:{marginTop:0},children:["公司(租户)下可建多级组织,最多 ",u," 级。成员通过邀请码绑定组织后只能访问本组织及下级数据公司管理员owner可看全公司。"]}),I.jsx(Vn,{rowKey:"org_unit_id",loading:m||n,dataSource:l,pagination:{pageSize:20},columns:[{title:"名称",dataIndex:"name",render:(S,E)=>I.jsxs("span",{style:{paddingLeft:(E.depth-1)*16},children:[E.depth>1?"└ ":"",S]})},{title:"编码",dataIndex:"code",width:140,render:S=>S||"—"},{title:"层级",dataIndex:"depth",width:90,render:S=>I.jsxs(Yt,{children:["L",S,"/",u]})},{title:"路径",dataIndex:"path",ellipsis:!0},{title:"操作",width:260,render:(S,E)=>I.jsxs(Vt,{wrap:!0,children:[I.jsx(Xe,{size:"small",icon:I.jsx(zo,{}),disabled:E.depth>=u,onClick:()=>$(E.org_unit_id),children:"下级"}),I.jsx(Xe,{size:"small",icon:I.jsx(uu,{}),onClick:()=>C(E),children:"编辑"}),I.jsx(lu,{title:`删除「${E.name}」?需先删下级`,onConfirm:async()=>{r(!0);try{await VY(t,E.org_unit_id),i.success("已删除"),await g()}catch(w){i.error(w.message||String(w)),o(w.message||String(w))}finally{r(!1)}},children:I.jsx(Xe,{size:"small",danger:!0,icon:I.jsx(u$,{}),children:"删除"})})]})}]}),I.jsx(Sn,{title:b?`编辑组织 #${b.org_unit_id}`:"新建组织",open:p,onCancel:()=>y(!1),onOk:N,confirmLoading:n,destroyOnClose:!0,okText:"保存",children:I.jsxs(We,{form:v,layout:"vertical",style:{marginTop:12},children:[!b&&I.jsx(We.Item,{label:"上级组织",name:"parent_id",children:I.jsx(dn,{allowClear:!0,placeholder:"空=顶级组织",options:h})}),I.jsx(We.Item,{label:"名称",name:"name",rules:[{required:!0,message:"请填写名称"}],children:I.jsx(Lt,{placeholder:"如:华东事业部 / 项目一组"})}),I.jsx(We.Item,{label:"编码(可选,租户内唯一)",name:"code",children:I.jsx(Lt,{placeholder:"如 east / proj_a",disabled:!!b&&!!b.code})})]})})]})}async function zf(e,t,n,r){return Nr(t.role)?await new Promise(s=>{e.confirm({title:"超管写操作确认1/2",content:I.jsxs("div",{children:[I.jsxs("p",{children:["你正在以",I.jsx("strong",{children:"平台超级管理员"}),"身份修改某公司内部数据(不是该公司管理员账号)。"]}),I.jsxs("p",{children:["操作:",I.jsx("strong",{children:n})]}),r?I.jsx("p",{style:{color:"#666"},children:r}):null,I.jsx("p",{children:"日常应由该公司管理员处理。是否继续?"})]}),okText:"继续",cancelText:"取消",onOk:()=>s(!0),onCancel:()=>s(!1)})})?new Promise(s=>{e.confirm({title:"超管写操作确认2/2",content:I.jsxs("div",{children:[I.jsxs("p",{children:["请再次确认:将执行「",n,"」。"]}),I.jsx("p",{style:{color:"#b42318"},children:"此操作会影响该公司业务配置或成员权限,请确认无误。"})]}),okText:"确认执行",okButtonProps:{danger:!0},cancelText:"取消",onOk:()=>s(!0),onCancel:()=>s(!1)})}):!1:!0}async function VJ(e,t,n){return new Promise(r=>{e.confirm({title:"打开公司管理视图",content:I.jsxs("div",{children:[I.jsxs("p",{children:["以",I.jsx("strong",{children:"平台超级管理员"}),"身份打开「",I.jsx("strong",{children:t}),"」(#",n,")。"]}),I.jsx("p",{children:"这是你的平台管理能力,不是登录成该公司账号。写操作仍会再次确认。"})]}),okText:"打开",cancelText:"取消",onOk:()=>r(!0),onCancel:()=>r(!1)})})}function WJ(e){const{session:t,busy:n,setBusy:r,setError:o,setInfo:s}=e,{message:i,modal:l}=Lo.useApp(),[c,u]=a.useState([]),[d,m]=a.useState(!1),[f,p]=a.useState(!1),[y,b]=a.useState(null),[x,v]=a.useState([]),[g,h]=a.useState([]),[$]=We.useForm();async function C(){m(!0);try{const[w,R]=await Promise.all([r6(t),o6(t)]);u(w.items||[]),h(R.modules||[])}catch(w){const R=w.message||String(w);o(R),i.error(R)}finally{m(!1)}}a.useEffect(()=>{C()},[t.accessToken,t.tenantId]);function N(){b(null),v([]),$.resetFields(),$.setFieldsValue({permissions:[]}),p(!0)}function S(w){b(w),v([...w.permissions||[]]),$.setFieldsValue({code:w.code,name:w.name,description:w.description,permissions:w.permissions||[]}),p(!0)}async function E(){const w=await $.validateFields();if(!x.length){i.warning("请至少勾选一项权限");return}const R=y?`保存智能体角色「${w.name.trim()}」及其权限`:`创建智能体角色「${w.name.trim()}」`;if(await zf(l,t,R)){r(!0);try{y?(await zY(t,y.role_id,{name:w.name.trim(),description:(w.description||"").trim(),permissions:x}),i.success(`已保存角色「${w.name.trim()}」`),s(`已保存角色「${w.name.trim()}」`)):(await _Y(t,{code:(w.code||"").trim(),name:w.name.trim(),description:(w.description||"").trim(),permissions:x}),i.success(`已创建角色「${w.name.trim()}」`),s(`已创建角色「${w.name.trim()}」`)),p(!1),await C()}catch(T){const M=T.message||String(T);o(M),i.error(M)}finally{r(!1)}}}return I.jsxs(tr,{title:"角色管理",extra:I.jsxs(Vt,{children:[I.jsx(Xe,{icon:I.jsx(Gs,{}),onClick:C,loading:d,children:"刷新"}),I.jsx(Xe,{type:"primary",icon:I.jsx(zo,{}),onClick:N,children:"新建角色"})]}),children:[I.jsxs(ot.Paragraph,{type:"secondary",style:{marginTop:0},children:["此处配置",I.jsx("strong",{children:"智能体角色"}),"。可选权限以平台超级管理员授予本公司的额度为准,无法勾选未授权项。 默认角色:生成发布 / 只读 / 读写 / 运维。"]}),I.jsx(Vn,{rowKey:"role_id",loading:d||n,dataSource:c,pagination:{pageSize:10},columns:[{title:"名称",dataIndex:"name",width:140},{title:"编码",dataIndex:"code",width:140,render:w=>I.jsx(Yt,{children:w})},{title:"说明",dataIndex:"description",ellipsis:!0},{title:"权限",dataIndex:"permissions",render:w=>(w||[]).length?I.jsxs(Vt,{size:[4,4],wrap:!0,children:[(w||[]).slice(0,8).map(R=>I.jsx(Yt,{children:Of(R)},R)),(w||[]).length>8?I.jsxs(Yt,{children:["+",(w||[]).length-8]}):null]}):"—"},{title:"操作",width:180,render:(w,R)=>I.jsxs(Vt,{children:[I.jsx(Xe,{size:"small",icon:I.jsx(uu,{}),onClick:()=>S(R),children:"编辑"}),I.jsx(lu,{title:`删除角色「${R.name}」?`,onConfirm:async()=>{if(await zf(l,t,`删除智能体角色「${R.name}」`)){r(!0);try{await jY(t,R.role_id),i.success("已删除"),s(`已删除角色「${R.name}」`),await C()}catch(T){i.error(T.message||String(T)),o(T.message||String(T))}finally{r(!1)}}},children:I.jsx(Xe,{size:"small",danger:!0,icon:I.jsx(u$,{}),children:"删除"})})]})}]}),I.jsx(Sn,{title:y?`编辑角色 #${y.role_id}`:"新建角色",open:f,onCancel:()=>p(!1),onOk:E,confirmLoading:n,width:720,destroyOnClose:!0,okText:"保存",children:I.jsxs(We,{form:$,layout:"vertical",style:{marginTop:12},children:[I.jsx(We.Item,{label:"角色编码",name:"code",rules:y?[]:[{required:!0,message:"请填写中文编码,如 只读"}],children:I.jsx(Lt,{placeholder:"如 只读 / 读写 / 自定义运维",disabled:!!y})}),I.jsx(We.Item,{label:"角色名称",name:"name",rules:[{required:!0,message:"请填写名称"}],children:I.jsx(Lt,{placeholder:"与编码可相同,如:只读"})}),I.jsx(We.Item,{label:"说明",name:"description",children:I.jsx(Lt.TextArea,{rows:2,placeholder:"可选"})}),I.jsx(We.Item,{label:"权限分配",required:!0,extra:"仅显示本公司权限额度内的选项",children:I.jsx(uY,{value:x,onChange:v,allowedModules:g})})]})})]})}function KJ(e){const t={};for(const n of(e||"").split(",")){const[r,o]=n.split(":").map(s=>s.trim());r&&o&&(t[r]=o)}return t}function pE(e,t){return{id:t,name:e.name,direction:e.direction,conflict_policy:e.conflict_policy,poll_interval_ms:e.poll_interval_ms||500,local:{driver:e.local.driver,dsn:e.local.dsn,tables:(e.local.tables||"").split(",").map(n=>n.trim()).filter(Boolean)},remote:{driver:e.remote.driver,dsn:e.remote.dsn,tables:(e.remote.tables||"").split(",").map(n=>n.trim()).filter(Boolean)},pk_columns:KJ(e.pk_columns)}}function UJ(e){const{session:t,busy:n,setBusy:r,setError:o,setInfo:s}=e,{message:i}=Lo.useApp(),[l,c]=a.useState([]),[u,d]=a.useState([]),[m,f]=a.useState(!1),[p,y]=a.useState(!1),[b,x]=a.useState(null),[v]=We.useForm();async function g(){f(!0);try{const[S,E]=await Promise.all([WY(t),QY(t,!0)]);c(S.items||[]),d(E.items||[])}catch(S){const E=S.message||String(S);o(E),i.error(E)}finally{f(!1)}}a.useEffect(()=>{g()},[t.accessToken]);function h(){x(null),v.setFieldsValue({name:"本地 B ↔ 线上 A",direction:"bidirectional",conflict_policy:"queue",poll_interval_ms:500,local:{driver:"sqlite",dsn:"file:./data/local.db",tables:"article"},remote:{driver:"mysql",dsn:"user:pass@tcp(127.0.0.1:3306)/app?parseTime=true&charset=utf8mb4",tables:"article"},pk_columns:"article:id"}),y(!0)}function $(S){x(S),v.setFieldsValue({name:S.name,direction:S.direction,conflict_policy:S.conflict_policy,poll_interval_ms:S.poll_interval_ms,local:{driver:S.local.driver,dsn:S.local.dsn,tables:(S.local.tables||[]).join(",")},remote:{driver:S.remote.driver,dsn:S.remote.dsn,tables:(S.remote.tables||[]).join(",")},pk_columns:Object.entries(S.pk_columns||{}).map(([E,w])=>`${E}:${w}`).join(",")}),y(!0)}async function C(){const S=await v.validateFields();r(!0);try{const E=pE(S,b==null?void 0:b.id);b?await UY(t,b.id,E):await KY(t,E),y(!1),s("同步通道已保存"),await g()}catch(E){i.error(E.message||String(E))}finally{r(!1)}}async function N(){var E,w;const S=await v.validateFields();r(!0);try{const R=pE(S),P=await GY(t,{local:R.local,remote:R.remote,side:"both"}),T=(E=P.local)==null?void 0:E.ok,M=(w=P.remote)==null?void 0:w.ok;T&&M?i.success("本地与线上数据库均可连接"):i.warning(JSON.stringify(P))}catch(R){i.error(R.message||String(R))}finally{r(!1)}}return I.jsxs("div",{className:"panel",children:[I.jsx(ot.Title,{level:4,style:{marginTop:0},children:"数据同步"}),I.jsxs(ot.Paragraph,{type:"secondary",children:["仅本",I.jsx("strong",{children:"公司顶级权限(管理员)"}),"可配置;通道按公司隔离,看不到其他公司的服务器。 典型拓扑A 线上 ↔ B 本地(双向),额外源 C 写入 B 再推到 A。 防回声 + 版本幂等避免「多」;触发器与对账避免「漏」。"]}),I.jsxs(Vt,{style:{marginBottom:12},children:[I.jsx(Xe,{type:"primary",icon:I.jsx(zo,{}),onClick:h,children:"新建通道"}),I.jsx(Xe,{icon:I.jsx(Gs,{}),loading:m,onClick:()=>void g(),children:"刷新"})]}),I.jsx(Vn,{rowKey:"id",loading:m,dataSource:l,pagination:!1,columns:[{title:"名称",dataIndex:"name"},{title:"方向",dataIndex:"direction",render:S=>I.jsx(Yt,{children:S})},{title:"本地",render:(S,E)=>`${E.local.driver}`},{title:"线上",render:(S,E)=>I.jsxs("span",{children:[E.remote.driver,I.jsx("br",{}),I.jsx(ot.Text,{type:"secondary",style:{fontSize:12},children:(E.remote.dsn||"").replace(/:[^:@/]+@/,":***@")})]})},{title:"状态",render:(S,E)=>E.enabled?I.jsx(Yt,{color:"green",children:"运行中"}):I.jsx(Yt,{children:"已停止"})},{title:"统计",render:(S,E)=>{var w,R,P;return`↑${((w=E.stats)==null?void 0:w.pushed_ok)||0} ↓${((R=E.stats)==null?void 0:R.pulled_ok)||0} 冲突${((P=E.stats)==null?void 0:P.conflicts)||0}`}},{title:"操作",render:(S,E)=>I.jsxs(Vt,{wrap:!0,children:[I.jsx(Xe,{size:"small",onClick:()=>$(E),children:"配置"}),E.enabled?I.jsx(Xe,{size:"small",icon:I.jsx(aJ,{}),onClick:async()=>{await YY(t,E.id),await g()},children:"停止"}):I.jsx(Xe,{size:"small",type:"primary",icon:I.jsx(dJ,{}),onClick:async()=>{try{await XY(t,E.id),s("同步已启动"),await g()}catch(w){i.error(w.message||String(w))}},children:"启动"}),I.jsx(Xe,{size:"small",onClick:async()=>{r(!0);try{const R=((await JY(t,E.id)).reports||[]).map(P=>`${P.table}: 补推${P.patched_push} 补拉${P.patched_pull}(仅本地${(P.only_local||[]).length} 仅线上${(P.only_remote||[]).length}`);i.success(R.length?R.join(""):"对账完成,无差异"),s("对账完成"),await g()}catch(w){i.error(w.message||String(w))}finally{r(!1)}},children:"对账"}),I.jsx(Xe,{size:"small",danger:!0,onClick:async()=>{await qY(t,E.id),await g()},children:"删除"})]})}]}),I.jsx(ot.Title,{level:5,style:{marginTop:24},children:"冲突队列(未解决)"}),I.jsx(Vn,{rowKey:"id",dataSource:u,pagination:!1,columns:[{title:"通道",dataIndex:"channel_id",ellipsis:!0},{title:"表",dataIndex:"table"},{title:"主键",dataIndex:"row_pk"},{title:"来源",dataIndex:"source"},{title:"说明",dataIndex:"message",ellipsis:!0},{title:"操作",render:(S,E)=>I.jsxs(Vt,{children:[I.jsx(Xe,{size:"small",onClick:async()=>{await dE(t,E.id,"keep_target"),await g()},children:"保留目标"}),I.jsx(Xe,{size:"small",onClick:async()=>{await dE(t,E.id,"discard"),await g()},children:"丢弃"})]})}]}),I.jsx(Sn,{title:b?"编辑同步通道":"新建同步通道",open:p,onCancel:()=>y(!1),width:720,footer:I.jsxs(Vt,{children:[I.jsx(Xe,{icon:I.jsx(a6,{}),loading:n,onClick:()=>void N(),children:"测试连接"}),I.jsx(Xe,{onClick:()=>y(!1),children:"取消"}),I.jsx(Xe,{type:"primary",loading:n,onClick:()=>void C(),children:"保存"})]}),children:I.jsxs(We,{form:v,layout:"vertical",children:[I.jsx(We.Item,{name:"name",label:"名称",rules:[{required:!0}],children:I.jsx(Lt,{})}),I.jsx(We.Item,{name:"direction",label:"方向",rules:[{required:!0}],children:I.jsx(dn,{options:[{value:"local_to_remote",label:"本地 → 线上"},{value:"remote_to_local",label:"线上 → 本地"},{value:"bidirectional",label:"双向"}]})}),I.jsx(We.Item,{name:"conflict_policy",label:"冲突策略",children:I.jsx(dn,{options:[{value:"queue",label:"入冲突队列(推荐)"},{value:"lww_source",label:"源端覆盖"},{value:"lww_target",label:"保留目标"}]})}),I.jsx(We.Item,{name:"poll_interval_ms",label:"轮询间隔(ms)",children:I.jsx(wf,{min:100,max:6e4,style:{width:"100%"}})}),I.jsx(ot.Text,{strong:!0,children:"本地库"}),I.jsx(We.Item,{name:["local","driver"],label:"驱动",rules:[{required:!0}],children:I.jsx(dn,{options:[{value:"sqlite"},{value:"mysql"},{value:"postgres"}]})}),I.jsx(We.Item,{name:["local","dsn"],label:"DSN",rules:[{required:!0}],extra:"SQLite 例file:./data/local.db",children:I.jsx(Lt.TextArea,{rows:2})}),I.jsx(We.Item,{name:["local","tables"],label:"表(逗号分隔)",rules:[{required:!0}],children:I.jsx(Lt,{placeholder:"article,order"})}),I.jsx(ot.Text,{strong:!0,children:"线上库(可随时改地址)"}),I.jsx(We.Item,{name:["remote","driver"],label:"驱动",rules:[{required:!0}],children:I.jsx(dn,{options:[{value:"mysql"},{value:"postgres"},{value:"sqlite"}]})}),I.jsx(We.Item,{name:["remote","dsn"],label:"线上 DSN",rules:[{required:!0}],extra:"MySQL 例user:pass@tcp(host:3306)/dbname?parseTime=true",children:I.jsx(Lt.TextArea,{rows:2})}),I.jsx(We.Item,{name:["remote","tables"],label:"表(逗号分隔)",rules:[{required:!0}],children:I.jsx(Lt,{})}),I.jsx(We.Item,{name:"pk_columns",label:"主键映射",extra:"格式 table:pk多个用逗号。默认每表 id",children:I.jsx(Lt,{placeholder:"article:id"})})]})})]})}function qJ(e){const{session:t,busy:n,setBusy:r,setError:o,setInfo:s,onSession:i,onEnteredCompany:l}=e,{message:c,modal:u}=Lo.useApp(),d=(t.tenantId||0)>0,[m,f]=a.useState([]),[p,y]=a.useState(!1),[b,x]=a.useState(!1),[v,g]=a.useState(!1),[h,$]=a.useState(!1),[C,N]=a.useState(null),[S,E]=a.useState([]),[w,R]=a.useState(0),[P,T]=a.useState([]),[M,z]=a.useState(""),[B,F]=a.useState(null),[L]=We.useForm(),[j]=We.useForm();async function O(){y(!0);try{const k=await ZY(t);f(k.items||[])}catch(k){const _=k.message||String(k);o(_),c.error(_)}finally{y(!1)}}a.useEffect(()=>{O(),eQ(t).then(k=>{E(k.modules||[]),R((k.catalog||[]).length)}).catch(()=>{})},[t.accessToken]);async function A(k){N(k),r(!0);try{const _=await tQ(t,k.tenant_id);T(_.permissions||[]),_.total&&R(_.total),$(!0)}catch(_){c.error(_.message||String(_))}finally{r(!1)}}return I.jsxs("div",{className:"panel",children:[I.jsx(ot.Title,{level:4,style:{marginTop:0},children:"平台工作台 · 公司总览"}),I.jsxs(ot.Paragraph,{type:"secondary",children:["这是",I.jsx("strong",{children:"平台超级管理员自己的功能"}),":新建/改名公司、路径 slug、权限额度新建时同步生成该公司管理员账号随机唯一。 路径约定:基础域名下 ",I.jsxs(ot.Text,{code:!0,children:["/","{slug}","/..."]}),"(例如 www.yuxinda.com/aaa/)。点「管理该公司」打开内部视图;身份始终是超管。"]}),d&&I.jsxs(ot.Paragraph,{children:[I.jsxs(Yt,{color:"orange",children:["正在管理:",t.tenantName||`公司 #${t.tenantId}`]}),I.jsx(Xe,{size:"small",icon:I.jsx(g6,{}),style:{marginLeft:8},loading:n,onClick:async()=>{r(!0);try{const k=await lQ(t);i==null||i(k),s("已回到平台工作台"),c.success("已回到平台工作台")}catch(k){c.error(k.message||String(k))}finally{r(!1)}},children:"返回平台工作台"})]}),B&&I.jsxs(ot.Paragraph,{className:"flash ok",children:["「",B.company,"」管理员账号(请立即保存,密码仅展示一次): 用户名 ",I.jsx(ot.Text,{copyable:!0,code:!0,children:B.username})," · ","密码 ",I.jsx(ot.Text,{copyable:!0,code:!0,children:B.password})]}),M&&I.jsxs(ot.Paragraph,{className:"flash ok",children:["管理员邀请码:",I.jsx(ot.Text,{copyable:!0,code:!0,children:M}),"(可选,发给客户自行注册)"]}),I.jsxs(Vt,{style:{marginBottom:12},children:[I.jsx(Xe,{type:"primary",icon:I.jsx(zo,{}),onClick:()=>x(!0),children:"新建公司"}),I.jsx(Xe,{icon:I.jsx(Gs,{}),loading:p,onClick:()=>void O(),children:"刷新"})]}),I.jsx(Vn,{rowKey:"tenant_id",loading:p,dataSource:m,pagination:!1,columns:[{title:"ID",dataIndex:"tenant_id",width:70},{title:"公司名称",dataIndex:"name"},{title:"路径 slug",dataIndex:"slug",width:140,render:k=>k?I.jsxs(ot.Text,{code:!0,children:["/",k,"/"]}):I.jsx(Yt,{children:"未设置"})},{title:"成员",dataIndex:"user_count",width:70},{title:"模块",dataIndex:"app_count",width:70},{title:"创建时间",dataIndex:"created_at",render:k=>k?new Date(k).toLocaleString():"—"},{title:"操作",width:420,render:(k,_)=>I.jsxs(Vt,{wrap:!0,size:4,children:[I.jsx(Xe,{type:"primary",size:"small",icon:I.jsx(VQ,{}),loading:n,onClick:async()=>{if(await VJ(u,_.name,_.tenant_id)){r(!0);try{const V=await aQ(t,_.tenant_id);V.tenantName=_.name,i==null||i(V),s(`已打开「${_.name}」管理视图(身份仍是平台超管)`),c.success(`已打开「${_.name}」`),l==null||l()}catch(V){c.error(V.message||String(V))}finally{r(!1)}}},children:"管理该公司"}),I.jsx(Xe,{size:"small",icon:I.jsx(_f,{}),loading:n,onClick:async()=>{r(!0);try{const V=(await iQ(t,_.tenant_id)).admin_account;F({username:V.username,password:V.password,company:_.name}),u.info({title:`「${_.name}」管理员账号`,content:I.jsxs("div",{children:[I.jsxs("p",{children:["用户名:",I.jsx(ot.Text,{copyable:!0,code:!0,children:V.username})]}),I.jsxs("p",{children:["密码:",I.jsx(ot.Text,{copyable:!0,code:!0,children:V.password})]}),I.jsx(ot.Text,{type:"danger",children:"密码仅此一次展示;请立即保存并交给该公司管理员登录后自行改密。"})]}),okText:"已保存"}),s(`已为「${_.name}」生成管理员 ${V.username}`),await O()}catch(D){c.error(D.message||String(D))}finally{r(!1)}},children:_.user_count>0?"再发管理员账号":"生成管理员账号"}),I.jsx(Xe,{size:"small",icon:I.jsx(bJ,{}),onClick:()=>void A(_),children:"权限额度"}),I.jsx(Xe,{size:"small",icon:I.jsx(uu,{}),onClick:()=>{N(_),j.setFieldsValue({name:_.name,slug:_.slug||""}),g(!0)},children:"改名/slug"}),I.jsx(Xe,{size:"small",type:"link",loading:n,onClick:async()=>{r(!0);try{const D=await sQ(t,_.tenant_id);z(D.code),s(`已为「${_.name}」生成管理员邀请码`),c.success("邀请码已生成")}catch(D){c.error(D.message||String(D))}finally{r(!1)}},children:"邀请码"})]})}]}),I.jsx(Sn,{title:"新建公司",open:b,onCancel:()=>x(!1),onOk:async()=>{var _;const k=await L.validateFields();r(!0);try{const D=await rQ(t,k.name.trim(),!!k.with_invite,(k.slug||"").trim()),V=D.admin_account;if(!(V!=null&&V.username)||!(V!=null&&V.password)){c.error("公司已创建,但未返回管理员账号,请点「生成管理员账号」补发"),x(!1),L.resetFields(),await O();return}F({username:V.username,password:V.password,company:D.tenant.name}),u.info({title:"公司与管理员账号已就绪",content:I.jsxs("div",{children:[I.jsxs("p",{children:["公司 ",I.jsx(ot.Text,{strong:!0,children:D.tenant.name}),"(路径 ",I.jsxs(ot.Text,{code:!0,children:["/",D.tenant.slug,"/"]}),""]}),I.jsxs("p",{children:["管理员用户名:",I.jsx(ot.Text,{copyable:!0,code:!0,children:V.username})]}),I.jsxs("p",{children:["管理员密码:",I.jsx(ot.Text,{copyable:!0,code:!0,children:V.password})]}),I.jsx(ot.Text,{type:"danger",children:"创建公司即附带此账号;密码仅展示一次,请立即保存。"})]}),okText:"已保存"});const W=(_=D.admin_invite)==null?void 0:_.code;W&&z(W),c.success(`已创建「${D.tenant.name}」并生成管理员账号`),s(`已创建「${D.tenant.name}」管理员 ${V.username}`),x(!1),L.resetFields(),await O()}catch(D){c.error(D.message||String(D))}finally{r(!1)}},confirmLoading:n,children:I.jsxs(We,{form:L,layout:"vertical",initialValues:{with_invite:!1},children:[I.jsx(We.Item,{name:"name",label:"公司名称",rules:[{required:!0,message:"请填写名称"}],children:I.jsx(Lt,{placeholder:"例如:某某科技"})}),I.jsx(We.Item,{name:"slug",label:"路径 slug",extra:"访问前缀,如 aaa → www.yuxinda.com/aaa/。小写字母开头,仅 a-z/0-9/-",rules:[{required:!0,message:"请填写 slug"},{pattern:/^[a-z][a-z0-9-]{1,31}$/,message:"格式232 位,小写字母开头"}],children:I.jsx(Lt,{placeholder:"例如aaa"})}),I.jsxs(ot.Paragraph,{type:"secondary",style:{marginBottom:8},children:[I.jsx("strong",{children:"创建后立即生成"}),"该公司管理员账号(用户名随机唯一 + 初始密码),弹窗展示一次。"]}),I.jsx(We.Item,{name:"with_invite",valuePropName:"checked",children:I.jsx(as,{children:"额外生成邀请码(可选,一般不需要)"})})]})}),I.jsx(Sn,{title:"修改公司名称 / 路径",open:v,onCancel:()=>g(!1),onOk:async()=>{if(!C)return;const k=await j.validateFields();r(!0);try{await oQ(t,C.tenant_id,k.name.trim(),(k.slug||"").trim()),c.success("已保存"),g(!1),await O()}catch(_){c.error(_.message||String(_))}finally{r(!1)}},confirmLoading:n,children:I.jsxs(We,{form:j,layout:"vertical",children:[I.jsx(We.Item,{name:"name",label:"公司名称",rules:[{required:!0}],children:I.jsx(Lt,{})}),I.jsx(We.Item,{name:"slug",label:"路径 slug",extra:"修改后,对外路径变为 /{slug}/(路由层后续阶段启用)",rules:[{required:!0,message:"请填写 slug"},{pattern:/^[a-z][a-z0-9-]{1,31}$/,message:"格式232 位,小写字母开头"}],children:I.jsx(Lt,{})})]})}),I.jsxs(Sn,{title:C?`公司权限额度 · ${C.name}`:"公司权限额度",open:h,width:720,onCancel:()=>$(!1),onOk:()=>{if(!C)return;const k=async()=>{r(!0);try{const _=await nQ(t,C.tenant_id,P);T(_.permissions||[]),c.success(`已保存(${(_.permissions||[]).length}/${_.total||w}`),$(!1)}catch(_){c.error(_.message||String(_))}finally{r(!1)}};if(P.length===0){u.confirm({title:"确认清空该公司全部权限?",content:"保存后该公司将无法使用任何业务接口,直到重新授予。",onOk:()=>void k()});return}k()},confirmLoading:n,okText:"保存额度",children:[I.jsxs(Vt,{style:{marginBottom:12},children:[I.jsxs(Yt,{children:["已选 ",P.length,"/",w||"?"]}),I.jsx(Xe,{size:"small",onClick:()=>T(S.flatMap(k=>(k.items||[]).map(_=>_.perm))),children:"全选"}),I.jsx(Xe,{size:"small",onClick:()=>T([]),children:"全不选"})]}),I.jsx(Vt,{direction:"vertical",size:"middle",style:{width:"100%"},children:S.map(k=>{const _=(k.items||[]).map(D=>D.perm);return I.jsxs("div",{children:[I.jsx(ot.Text,{strong:!0,children:k.title}),I.jsx("div",{style:{marginTop:8},children:I.jsx(as.Group,{style:{width:"100%",display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",gap:8},options:(k.items||[]).map(D=>({label:I.jsxs("span",{children:[D.perm,I.jsx("br",{}),I.jsx(ot.Text,{type:"secondary",style:{fontSize:12},children:D.desc})]}),value:D.perm})),value:P.filter(D=>_.includes(D)),onChange:D=>{const V=new Set(_),W=P.filter(K=>!V.has(K));T([...W,...D])}})})]},k.title)})})]})]})}function GJ(e){const{session:t,busy:n,setBusy:r,setError:o,setInfo:s}=e,{message:i,modal:l}=Lo.useApp(),[c,u]=a.useState([]),[d,m]=a.useState([]),[f,p]=a.useState(!1),[y,b]=a.useState(!1),[x]=We.useForm();async function v(){p(!0);try{const[h,$]=await Promise.all([cQ(t),g$(t).catch(()=>({items:[]}))]);u(h.items||[]),m($.items||[])}catch(h){const $=h.message||String(h);o($),i.error($)}finally{p(!1)}}a.useEffect(()=>{v()},[t.accessToken,t.tenantId]);async function g(h,$,C){if(await zf(l,t,$,`成员:${h.display_name||h.username}#${h.user_id}`)){r(!0);try{await mQ(t,h.user_id,C),s(`${$}成功`),await v()}catch(S){i.error(S.message||String(S))}finally{r(!1)}}}return I.jsxs(tr,{title:"成员管理",extra:I.jsxs(Vt,{children:[I.jsx(Xe,{type:"primary",icon:I.jsx(zo,{}),onClick:()=>{x.setFieldsValue({role:"编辑",password:void 0,display_name:void 0,org_unit_id:void 0}),b(!0)},children:"新建成员"}),I.jsx(Xe,{icon:I.jsx(Gs,{}),onClick:()=>void v(),loading:f,children:"刷新"})]}),children:[I.jsxs(ot.Paragraph,{type:"secondary",style:{marginTop:0},children:["用户名由系统随机生成且全局唯一;初始密码可留空自动生成,登录后可自行「修改密码」。也可走「邀请加入」。",t.role==="超级管理员"||t.role==="platform_admin"?" 超管代管修改时会要求两次确认。":""]}),I.jsx(Vn,{rowKey:"user_id",loading:f||n,dataSource:c,pagination:{pageSize:10},columns:[{title:"用户名",dataIndex:"username",width:140},{title:"手机号",dataIndex:"phone",width:120,render:h=>h||I.jsx(ot.Text,{type:"secondary",children:"未绑定"})},{title:"显示名",dataIndex:"display_name",width:120},{title:"角色",dataIndex:"role",width:160,render:(h,$)=>I.jsx(dn,{size:"small",style:{width:120},value:h,disabled:$.user_id===t.userId,options:[{value:"管理员",label:"管理员"},{value:"编辑",label:"编辑"},{value:"只读",label:"只读"}],onChange:C=>void g($,`将 ${$.username} 设为${nc(C)}`,{role:C})})},{title:"组织",width:160,render:(h,$)=>I.jsx(dn,{size:"small",allowClear:!0,style:{width:140},placeholder:"全公司",value:$.org_unit_id||void 0,options:d.map(C=>({value:C.org_unit_id,label:C.name})),onChange:C=>void g($,`调整 ${$.username} 的组织`,{org_unit_id:C||0})})},{title:"状态",dataIndex:"status",width:120,render:(h,$)=>I.jsx(dn,{size:"small",style:{width:100},value:h||"active",disabled:$.user_id===t.userId,options:[{value:"active",label:"正常"},{value:"disabled",label:"停用"}],onChange:C=>void g($,`${C==="disabled"?"停用":"启用"}成员 ${$.username}`,{status:C})})},{title:"角色标签",width:90,render:(h,$)=>I.jsx(Yt,{children:nc($.role)})}]}),I.jsx(Sn,{title:"新建成员",open:y,onCancel:()=>b(!1),onOk:async()=>{const h=await x.validateFields();if(await zf(l,t,"新建成员","将随机生成唯一用户名;初始密码可稍后由本人修改")){r(!0);try{const C=await uQ(t,{password:(h.password||"").trim(),display_name:(h.display_name||"").trim(),role:h.role,org_unit_id:h.org_unit_id||0});l.info({title:"成员已创建 — 请保存账号",content:I.jsxs("div",{children:[I.jsxs("p",{children:["用户名:",I.jsx(ot.Text,{copyable:!0,code:!0,children:C.username})]}),I.jsxs("p",{children:["初始密码:",I.jsx(ot.Text,{copyable:!0,code:!0,children:C.password})]}),I.jsxs("p",{children:["角色:",nc(C.role)]}),I.jsx(ot.Text,{type:"secondary",children:"用户名随机唯一不可改;密码请交给本人后由其登录并自行修改。"})]}),okText:"已保存"}),s(`已创建成员 ${C.username}`),b(!1),x.resetFields(),await v()}catch(C){i.error(C.message||String(C))}finally{r(!1)}}},confirmLoading:n,destroyOnHidden:!0,children:I.jsxs(We,{form:x,layout:"vertical",initialValues:{role:"编辑"},children:[I.jsx(ot.Paragraph,{type:"secondary",children:"用户名由系统随机生成(全局唯一)。初始密码可指定,留空则随机生成;登录后可自行修改。"}),I.jsx(We.Item,{name:"password",label:"初始密码",extra:"留空则随机生成",children:I.jsx(Lt.Password,{placeholder:"至少 6 位,可留空"})}),I.jsx(We.Item,{name:"display_name",label:"显示名",children:I.jsx(Lt,{placeholder:"可选"})}),I.jsx(We.Item,{name:"role",label:"角色",rules:[{required:!0}],children:I.jsx(dn,{options:[{value:"管理员",label:"管理员(公司顶级)"},{value:"编辑",label:"编辑"},{value:"只读",label:"只读"}]})}),I.jsx(We.Item,{name:"org_unit_id",label:"组织",children:I.jsx(dn,{allowClear:!0,placeholder:"全公司(不限组织)",options:d.map(h=>({value:h.org_unit_id,label:h.name}))})})]})})]})}const Es=["#1d4f91","#7c3aed","#c2410c","#0f766e","#b42318","#854d0e"];function XJ({title:e,value:t}){return I.jsxs("div",{className:"kpi",children:[I.jsx("div",{className:"kpi-title",children:e}),I.jsx("div",{className:"kpi-value",children:t})]})}function gE({title:e,buckets:t}){const n=Math.max(1,...t.map(r=>r.count));return I.jsxs("div",{className:"chart-card",children:[I.jsx("h4",{children:e}),I.jsx("div",{className:"bars",children:t.map((r,o)=>I.jsxs("div",{className:"bar-row",children:[I.jsx("span",{className:"bar-label",children:r.key}),I.jsx("div",{className:"bar-track",children:I.jsx("div",{className:"bar-fill",style:{width:`${r.count/n*100}%`,background:Es[o%Es.length]}})}),I.jsx("span",{className:"bar-num",children:r.count})]},r.key))})]})}function YJ({title:e,buckets:t}){const n=t.reduce((s,i)=>s+i.count,0)||1;let r=0;const o=t.map((s,i)=>{const l=r/n*100;r+=s.count;const c=r/n*100;return`${Es[i%Es.length]} ${l}% ${c}%`});return I.jsxs("div",{className:"chart-card",children:[I.jsx("h4",{children:e}),I.jsxs("div",{className:"pie-wrap",children:[I.jsx("div",{className:"pie",style:{background:`conic-gradient(${o.join(",")})`}}),I.jsx("ul",{className:"pie-legend",children:t.map((s,i)=>I.jsxs("li",{children:[I.jsx("i",{style:{background:Es[i%Es.length]}}),s.key," · ",s.count]},s.key))})]})]})}function R6({title:e,points:t,series:n,yUnit:r=""}){if(!t.length||!n.length)return I.jsxs("div",{className:"chart-card line-chart",children:[e?I.jsx("h4",{children:e}):null,I.jsx("div",{className:"empty",children:"暂无曲线数据"})]});const o=t.flatMap(w=>n.map(R=>w.values[R.key]).filter(R=>Number.isFinite(R))),s=[...o].sort((w,R)=>w-R),i=w=>{if(!s.length)return 0;const R=Math.min(s.length-1,Math.max(0,Math.floor((s.length-1)*w)));return s[R]};let l=s.length?Math.min(0,i(.05)):0,c=s.length?Math.max(1,i(.95)):1;c-l<1&&(l=Math.min(0,...o,-1),c=Math.max(1,...o,1));const u=(c-l)*.12||1,d=l-u,m=c+u,f=920,p=280,y=48,b=16,x=20,v=36,g=f-y-b,h=p-x-v,$=w=>y+(t.length<=1?g/2:w/(t.length-1)*g),C=w=>x+(m-w)/(m-d)*h,N=n.map((w,R)=>{const P=t.map((T,M)=>{var F;const z=T.values[w.key];return Number.isFinite(z)?`${M===0||!Number.isFinite((F=t[M-1])==null?void 0:F.values[w.key])?"M":"L"}${$(M).toFixed(1)},${C(z).toFixed(1)}`:null}).filter(Boolean).join(" ");return{...w,d:P,color:Es[R%Es.length]}}),S=5,E=Array.from({length:S},(w,R)=>d+(m-d)*R/(S-1));return I.jsxs("div",{className:"chart-card line-chart",children:[I.jsxs("div",{className:"line-chart-head",children:[e?I.jsx("h4",{children:e}):null,I.jsx("ul",{className:"line-legend",children:N.map(w=>I.jsxs("li",{children:[I.jsx("i",{style:{background:w.color}}),w.label]},w.key))})]}),I.jsx("div",{className:"line-chart-scroll",children:I.jsxs("svg",{viewBox:`0 0 ${f} ${p}`,width:"100%",height:p,preserveAspectRatio:"none",role:"img",children:[E.map(w=>I.jsxs("g",{children:[I.jsx("line",{x1:y,x2:f-b,y1:C(w),y2:C(w),className:"line-grid"}),I.jsx("text",{x:y-6,y:C(w)+4,className:"line-axis",textAnchor:"end",children:w.toFixed(0)})]},w)),I.jsx("text",{x:8,y:14,className:"line-axis",children:r}),N.map(w=>I.jsx("path",{d:w.d,fill:"none",stroke:w.color,strokeWidth:2.2},w.key)),t.map((w,R)=>I.jsx("text",{x:$(R),y:p-10,className:"line-axis",textAnchor:"middle",children:R%Math.ceil(t.length/8)===0?w.x:""},`${w.x}-${R}`))]})})]})}function QJ({points:e,yUnit:t="",yAxisLabel:n="",designColor:r="#e8590c",invertY:o=!1}){if(!e.length)return I.jsx("div",{className:"chart-card line-chart",children:I.jsx("div",{className:"empty",children:"暂无曲线数据"})});const s=e.map(w=>w.value).filter(w=>Number.isFinite(w)),i=e.map(w=>w.design).filter(w=>Number.isFinite(w)),l=[...s,...i];let c=l.length?Math.min(...l):0,u=l.length?Math.max(...l):1;u-c<1e-6&&(c-=1,u+=1);const d=(u-c)*.08||1;c-=d,u+=d;const m=Math.max(920,e.length*22),f=260,p=52,y=12,b=16,x=34,v=m-p-y,g=f-b-x,h=w=>p+(e.length<=1?v/2:w/(e.length-1)*v),$=w=>o?b+(w-c)/(u-c)*g:b+(u-w)/(u-c)*g,C=6,N=Array.from({length:C},(w,R)=>c+(u-c)*R/(C-1)),S=t?String(t):"",E=e.map((w,R)=>{var M;const P=w.design;return Number.isFinite(P)?`${R===0||!Number.isFinite((M=e[R-1])==null?void 0:M.design)?"M":"L"}${h(R).toFixed(1)},${$(P).toFixed(1)}`:null}).filter(Boolean).join(" ");return I.jsx("div",{className:"chart-card line-chart section-mark-chart",children:I.jsx("div",{className:"line-chart-scroll",children:I.jsxs("svg",{viewBox:`0 0 ${m} ${f}`,width:"100%",height:f,preserveAspectRatio:"none",role:"img",children:[N.map(w=>I.jsxs("g",{children:[I.jsx("line",{x1:p,x2:m-y,y1:$(w),y2:$(w),className:"line-grid"}),I.jsxs("text",{x:p-6,y:$(w)+4,className:"line-axis",textAnchor:"end",children:[Number.isInteger(w)?String(w):w.toFixed(1),S]})]},w)),n?I.jsx("text",{x:6,y:14,className:"line-axis",children:n}):null,E?I.jsx("path",{d:E,fill:"none",stroke:r,strokeWidth:2}):null,e.map((w,R)=>{const P=w.value;if(!Number.isFinite(P))return null;const T=h(R),M=$(P),z=$(0),B=Math.min(M,z),F=Math.max(3,Math.abs(M-z));return I.jsx("rect",{x:T-3,y:B,width:6,height:F,fill:w.color||"#214080",opacity:.9},`${w.x}-${R}`)}),e.map((w,R)=>I.jsx("text",{x:h(R),y:f-8,className:"line-axis",textAnchor:"middle",children:R%Math.ceil(e.length/8)===0?w.x:""},`lb-${R}`))]})})})}function T6({title:e,items:t,variant:n="cells"}){return n==="stacked"?I.jsxs("div",{className:"chart-card status-strip status-strip-stacked",children:[e?I.jsx("h4",{children:e}):null,I.jsx("div",{className:"status-strip-row stacked-row",children:t.map((r,o)=>{if(r.stop)return I.jsx("div",{className:"status-stack stop",title:r.label,children:I.jsx("span",{className:"stack-stop",children:"停"})},`${r.label}-${o}`);const s=Math.max(0,Number(r.value)||0),i=Math.max(0,Number(r.secondary)||0),l=s+i||1;if(i<=0&&s>0)return I.jsx("div",{className:"status-stack all-grey",title:r.label,children:I.jsx("span",{className:"stack-solo",children:s})},`${r.label}-${o}`);if(s<=0&&i>0)return I.jsx("div",{className:"status-stack all-green",title:r.label,children:I.jsx("span",{className:"stack-solo",children:i})},`${r.label}-${o}`);const c=s/l*100,u=i/l*100;return I.jsxs("div",{className:"status-stack",title:r.label,children:[I.jsx("div",{className:"stack-top",style:{flex:`${Math.max(c,8)} 1 0`},children:I.jsx("span",{children:s})}),I.jsx("div",{className:"stack-bot",style:{flex:`${Math.max(u,8)} 1 0`},children:I.jsx("span",{children:i})})]},`${r.label}-${o}`)})})]}):I.jsxs("div",{className:"chart-card status-strip",children:[e?I.jsx("h4",{children:e}):null,I.jsx("div",{className:"status-strip-row",children:t.map((r,o)=>I.jsxs("div",{className:`status-cell tone-${r.tone||"ok"}`,title:r.label,children:[I.jsx("span",{className:"status-top",children:r.label}),I.jsx("span",{className:"status-val",children:r.value})]},`${r.label}-${o}`))})]})}const JJ="AJZP1",M6="application/x-ajz-machine",ZJ="aijianzhan-page-machine-v1";function eZ(e,t){const n=new Uint8Array(e.length),r=new TextEncoder().encode(t);for(let o=0;o<e.length;o++)n[o]=e[o]^r[o%r.length];return n}function tZ(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function O6(e){const t=new TextEncoder().encode(JSON.stringify(e)),n=eZ(t,ZJ);return`${JJ}.${tZ(n)}`}function nZ(e){var f,p,y,b,x,v;const{slug:t,page:n,resource:r,blueprint:o}=e,s=`/api/v1/apps/${t}`,i=`${s}/${r}`,l=(((f=o==null?void 0:o.apis)==null?void 0:f.resources)||[]).find(g=>g.entity===n.entity)||(((p=o==null?void 0:o.apis)==null?void 0:p.resources)||[]).find(g=>String(g.path||"").replace(/^\//,"")===r),c=(l==null?void 0:l.operations)||["list","get","create","update","delete","import","export"],u={};c.includes("list")&&(u.list={method:"GET",path:i}),c.includes("get")&&(u.get={method:"GET",path:`${i}/{id}`}),c.includes("create")&&(u.create={method:"POST",path:i}),c.includes("update")&&(u.update={method:"PUT",path:`${i}/{id}`}),c.includes("delete")&&(u.delete={method:"DELETE",path:`${i}/{id}`}),c.includes("import")&&(u.import={method:"POST",path:`${i}/import`}),c.includes("export")&&(u.export={method:"GET",path:`${i}/export`}),u.aggregate={method:"GET",path:`${i}/aggregate`},u.blueprint={method:"GET",path:`${s}/blueprint`};const d=((o==null?void 0:o.entities)||[]).find(g=>g.name===n.entity),m=((d==null?void 0:d.fields)||[]).filter(g=>g==null?void 0:g.name).slice(0,80).map(g=>({name:String(g.name),type:String(g.type||"string"),label:g.label?String(g.label):void 0}));return{v:1,kind:"ajz-page",slug:t,base_path:s,page:{id:n.id,type:n.type,route:n.route||"",title:n.title||""},entity:n.entity,resource:r,auth:{type:"bearer_jwt",header:"Authorization"},endpoints:u,filters:((y=n.layout)==null?void 0:y.filters)||((b=l==null?void 0:l.list)==null?void 0:b.allowed_filters)||[],fields:m,actions:((x=n.layout)==null?void 0:x.actions)||[],widgets:(((v=n.layout)==null?void 0:v.widgets)||[]).map(g=>({type:g.type,title:g.title,entity:g.entity})),notes:"list 支持 filter.<field>=value需 Authorization: Bearer <jwt>"}}function rZ(e){var n,r,o;const t=a.useMemo(()=>{try{const s=nZ(e);return O6(s)}catch{return""}},[e.slug,e.resource,(n=e.page)==null?void 0:n.id,(r=e.page)==null?void 0:r.type,(o=e.page)==null?void 0:o.entity,e.blueprint]);return t?I.jsx("div",{className:"ajz-machine-tag",hidden:!0,"aria-hidden":"true","data-ajz-machine":t,"data-ajz-mime":M6,"data-ajz-codec":"AJZP1","data-ajz-kind":"page","data-ajz-slug":e.slug,"data-ajz-page":e.page.id,"data-ajz-entity":e.page.entity,"data-ajz-resource":e.resource}):null}function _6(e){const t=a.useMemo(()=>{try{return O6({v:1,kind:"ajz-block",slug:e.slug,resource:e.resource,block_id:e.blockId,endpoint:e.endpoint||{method:"GET",path:`/api/v1/apps/${e.slug}/${e.resource}`},...e.extra||{}})}catch{return""}},[e.slug,e.resource,e.blockId,e.endpoint,e.extra]);return t?I.jsx("div",{className:"ajz-machine-tag",hidden:!0,"aria-hidden":"true","data-ajz-machine":t,"data-ajz-mime":M6,"data-ajz-codec":"AJZP1","data-ajz-kind":"block","data-ajz-block":e.blockId,"data-ajz-slug":e.slug,"data-ajz-resource":e.resource}):null}function oZ(e,t){return t==null||t===""?"—":typeof t=="number"?Number.isInteger(t)?String(t):t.toFixed(2):String(t)}function sZ(e,t){if(!t.filter_field)return!0;const n=e[t.filter_field],r=Number(n),o=t.filter_op||"gt",s=Number(t.filter_value??0);return o==="gt"?Number.isFinite(r)&&r>s:o==="gte"?Number.isFinite(r)&&r>=s:o==="lt"?Number.isFinite(r)&&r<s:o==="eq"?String(n)===String(t.filter_value??""):!0}function wl(e){const t=typeof e=="number"?e:Number(String(e??"").replace(/,/g,""));return Number.isFinite(t)?t:NaN}function iZ(e){var xe,Ee,Ve,qe;const{session:t,slug:n,resource:r,widgets:o,fieldMap:s,meta:i,setError:l}=e,[c,u]=a.useState([]),[d,m]=a.useState(0),[f,p]=a.useState(""),[y,b]=a.useState(""),[x,v]=a.useState(0),g=(i==null?void 0:i.ui)||{},h=(i==null?void 0:i.project_context)||g.project_context||"",$=g.filter_hint||"",C=g.radio_field||g.filter_radio_field||(g.section_options||g.filter_radios||g.filter_style==="section_radios"||s.section_type?"section_type":""),N=(g.filter_radios||g.section_options||(C?((xe=s[C])==null?void 0:xe.enum_values)||[]:[])).filter(me=>me&&me!=="全部"),S=g.select_field||g.filter_select_field||["worksite","site","store","warehouse","dept"].find(me=>s[me])||"",E=!!(C&&N.length>0),w=!!S;a.useEffect(()=>{(async()=>{try{const me={};if(C&&f){const Te=g.filter_value_aliases||{};me[C]=Te[f]||f}S&&y&&(me[S]=y);const Re=await ep(t,n,r,me,1,2e3);u(Re.items||[]),m(Re.total||(Re.items||[]).length)}catch(me){l(me.message||String(me))}})()},[t,n,r,C,f,S,y,l,g.filter_value_aliases]);const R=me=>{var Fe;const Re=g.table_headers||[],Te=o.find(et=>et.type==="table"),Ge=((Te==null?void 0:Te.columns)||[]).indexOf(me);return Ge>=0&&Re[Ge]?Re[0]==="序号"&&Re[Ge+1]?Re[Ge+1]:Re[Ge]:((Fe=s[me])==null?void 0:Fe.label)||me},P=o.find(me=>me.type==="line_chart"||me.type==="bar_chart"),T=o.find(me=>me.type==="status_strip"),M=o.find(me=>me.type==="table"),z=g.chart_side_label||(P==null?void 0:P.title)||"主图",B=g.strip_side_label||(T==null?void 0:T.title)||"状态",F=g.table_side_label||"明细",L=g.table_title||(M==null?void 0:M.title)||"明细表",j=g.stats_left_label||"",O=g.stats_right_label||"",A=a.useMemo(()=>{const me=(P==null?void 0:P.x_field)||(P==null?void 0:P.group_by)||Object.keys(s)[0]||"id";return[...c].sort((Re,Te)=>String(Re[me]??"").localeCompare(String(Te[me]??""),"zh"))},[c,P,s]),k=g.value_field||(P==null?void 0:P.metric)||((Ee=P==null?void 0:P.metrics)==null?void 0:Ee[0])||["value","cjl_value","cum_value","cum_settlement_mm","amount","qty"].find(me=>s[me])||"",_=g.color_field||["color","cjl_color","mark_color"].find(me=>s[me])||"",D=g.design_field||["design_value","design_settlement_mm","target","design"].find(me=>s[me])||"",V=g.category_colors||{},W=g.category_field||C||"",K=String(g.chart_style||"").toLowerCase(),q=K==="line"||K==="multi_series"||K==="line_chart",Y=K==="section_marks"||K==="colored_marks",ee=!!P&&!!k&&!!(P!=null&&P.x_field||P!=null&&P.group_by||Object.keys(s)[0]),ie=Y||!q&&ee,ae=a.useMemo(()=>{if(!ie)return[];const me=(P==null?void 0:P.x_field)||(P==null?void 0:P.group_by)||Object.keys(s)[0]||"",Re=["#1d4f91","#7c3aed","#868e96","#0f766e","#c2410c"],Te=new Map;return A.map(Ue=>{const Ge=wl(k?Ue[k]:void 0),Fe=D?wl(Ue[D]):NaN;let et=_?String(Ue[_]||"").trim():"";if(!et&&W){const ve=String(Ue[W]??"");V[ve]?et=V[ve]:ve&&(Te.has(ve)||Te.set(ve,Te.size),et=Re[Te.get(ve)%Re.length])}return et||(et=Re[0]),{x:String(Ue[me]??""),value:Number.isFinite(Ge)?Ge:0,design:Number.isFinite(Fe)?Fe:void 0,color:et}})},[ie,A,P,k,_,D,W,V,s]),U=a.useMemo(()=>{var Ge;if(!P||ie)return null;const me=P.x_field||P.group_by||"";let Re=((Ge=P.metrics)!=null&&Ge.length?P.metrics:P.metric&&P.metric!=="count"?[P.metric]:[]).filter(Boolean);if((!Re.length||!Re.some(Fe=>s[Fe]))&&(Re=Object.values(s).filter(Fe=>["int","bigint","decimal","number","float"].includes(String(Fe.type))).map(Fe=>Fe.name).filter(Fe=>!["id","tenant_id"].includes(Fe)).slice(0,4)),!me||!Re.length)return null;const Te=A.map(Fe=>{const et={};for(const ve of Re){const je=wl(Fe[ve]);Number.isFinite(je)&&(et[ve]=je)}return{x:String(Fe[me]??""),values:et}}),Ue=g.series_labels||{};return{title:P.title||"图表",points:Te,series:Re.map(Fe=>({key:Fe,label:Ue[Fe]||R(Fe)})),yUnit:P.y_unit||g.y_unit||""}},[P,A,ie,g.series_labels,g.y_unit,s]),Q=(Ve=g.legend_items)!=null&&Ve.length?g.legend_items:ie&&Object.keys(V).length?Object.entries(V).map(([me,Re])=>({label:me,color:Re})):((U==null?void 0:U.series)||[]).map((me,Re)=>({label:me.label,color:["#1d4f91","#7c3aed","#6b7280","#c2410c"][Re%4]})),Z=a.useMemo(()=>{if(!T)return[];const me=T.label_field||"",Re=T.value_field||"",Te=T.secondary_field||"";if(!me||!Re)return[];const Ue=Number(T.cycle_days)||Number(g.cycle_days)||30,Ge=T.variant==="stacked"||T.variant==="stacked_days"||!!Te;return A.map(Fe=>{const et=String(Fe[me]??"");let ve=wl(Fe[Re]),je=Te?wl(Fe[Te]):NaN;if(Number.isFinite(ve)||(ve=0),Number.isFinite(je)||(je=0),Ge&&ve+je>50&&ve+je<120){const Pe=Math.round(ve/100*Ue),pe=Math.max(0,Ue-Pe);ve=Pe,je=pe}const ce=!!Fe.stop_flag||String(Fe.status||"").includes("停")||Ge&&ve===0&&je===0;return{label:et,value:ve,secondary:Ge?je:void 0,stop:ce}})},[T,A,g.cycle_days]),ne=(T==null?void 0:T.variant)==="stacked"||(T==null?void 0:T.variant)==="stacked_days"||T!=null&&T.secondary_field?"stacked":"cells",oe=(qe=M==null?void 0:M.columns)!=null&&qe.length?M.columns:Object.keys(s).filter(me=>!["id","tenant_id"].includes(me)).slice(0,6),le=M?A.filter(me=>sZ(me,M)):[],re=a.useMemo(()=>{var Re,Te;if(!S)return[];if((Te=(Re=s[S])==null?void 0:Re.enum_values)!=null&&Te.length)return s[S].enum_values;const me=new Set;for(const Ue of c){const Ge=String(Ue[S]??"");Ge&&me.add(Ge)}return Array.from(me).sort()},[S,s,c]),X=a.useMemo(()=>{const me=(P==null?void 0:P.x_field)||(P==null?void 0:P.group_by)||"";return me&&new Set(c.map(Re=>String(Re[me]??""))).size||d},[c,d,P]),se=Number(g.chart_page_size)||28,ge=ie?ae.length:(U==null?void 0:U.points.length)||Z.length,de=Math.max(0,ge-se),Se=ae.slice(x,x+se),ue=(U==null?void 0:U.points.slice(x,x+se))||[],be=Z.slice(x,x+se),Ne=(()=>{if(h&&(j||O)&&h.includes(j||"\0"))return h;const me=[];return h&&me.push(h),j&&me.push(`${j}:${X}个`),O&&me.push(`${O}: ${d}个`),me.join(" ")||(d?`共 ${d} 条`:"")})(),we=g.select_label||(S?R(S):"")||"",ze=(P==null?void 0:P.y_unit)||g.y_unit||"",he=g.y_axis_label||ze||"",ke=!!g.invert_y,Oe=g.design_series_color||"#e8590c",Ce=g.empty_table_text||"暂无数据",Me=[C,S].filter(Boolean);return I.jsxs("div",{className:"sf-root",children:[I.jsx(_6,{slug:n,resource:r,blockId:"sf-dashboard",endpoint:{method:"GET",path:`/api/v1/apps/${n}/${r}`},extra:{page_type:"dashboard",filters:Me,list_query:"filter.<field>=value&page=1&page_size=2000"}}),I.jsxs("div",{className:"sf-filterbar",children:[I.jsx("div",{className:"sf-context",children:I.jsx("strong",{children:Ne})}),E&&I.jsx("div",{className:"sf-radios",children:["",...N].map(me=>I.jsxs("label",{className:`sf-radio ${(f||"")===me?"on":""}`,children:[I.jsx("input",{type:"radio",name:"sf-radio",checked:(f||"")===me,onChange:()=>p(me)}),me||g.radio_all_label||"全部"]},me||"all"))}),w&&I.jsxs("label",{className:"sf-select",children:[we?`${we}:`:null,I.jsxs("select",{value:y,onChange:me=>b(me.target.value),children:[I.jsx("option",{value:"",children:"--请选择--"}),re.map(me=>I.jsx("option",{value:me,children:me},me))]})]}),$?I.jsx("span",{className:"sf-hint",children:$}):null]}),Q.length>0&&P&&I.jsx("div",{className:"sf-legend",children:Q.map((me,Re)=>I.jsx("span",{className:`sf-leg-item${/曲线|折线|line/i.test(me.label)?" leg-line":""}`,style:{"--leg":me.color},children:me.label},`${me.label}-${Re}`))}),I.jsxs("div",{className:"sf-body",children:[I.jsxs("div",{className:"sf-rail",children:[P?I.jsx("div",{className:"sf-rail-seg chart",children:z}):null,T?I.jsx("div",{className:"sf-rail-seg strip",children:B}):null,M?I.jsx("div",{className:"sf-rail-seg table",children:F}):null]}),I.jsxs("div",{className:"sf-main",children:[P&&I.jsxs("div",{className:"sf-line-wrap",children:[ie?I.jsx(QJ,{points:Se.length?Se:ae,yUnit:ze,yAxisLabel:he,invertY:ke,designColor:Oe}):U?I.jsx(R6,{title:"",points:ue.length?ue:U.points,series:U.series,yUnit:U.yUnit}):I.jsx("div",{className:"empty",style:{padding:"2rem",textAlign:"center"},children:"暂无曲线数据(请检查蓝图 x_field / metrics 与已导入数据)"}),de>0&&I.jsx("input",{className:"sf-scroll",type:"range",min:0,max:de,value:x,onChange:me=>v(Number(me.target.value))})]}),T&&I.jsx("div",{className:"sf-strip-wrap",children:I.jsx(T6,{title:"",variant:ne,items:be})}),M&&I.jsxs("div",{className:"sf-table-panel",children:[I.jsx("div",{className:"sf-table-title",children:L}),I.jsx("div",{className:"table-wrap",children:I.jsxs("table",{className:"sf-table",children:[I.jsx("thead",{children:I.jsxs("tr",{children:[I.jsx("th",{children:"序号"}),oe.map(me=>I.jsx("th",{children:R(me)},me))]})}),I.jsxs("tbody",{children:[le.map((me,Re)=>I.jsxs("tr",{children:[I.jsx("td",{children:Re+1}),oe.map(Te=>I.jsx("td",{children:oZ(Te,me[Te])},Te))]},Re)),!le.length&&I.jsx("tr",{children:I.jsx("td",{colSpan:oe.length+1,className:"empty",children:Ce})})]})]})})]})]})]})]})}function z6(e){if(typeof e=="string")return e.trim();if(e&&typeof e=="object"){const t=e;for(const n of["label","title","name","text"])if(typeof t[n]=="string"&&String(t[n]).trim())return String(t[n]).trim()}return""}function aZ(e){if(!e||typeof e!="object")return"";const t=e;for(const n of["route","path","href","url"])if(typeof t[n]=="string"&&String(t[n]).trim())return String(t[n]).trim();return""}function hE(e,t=[]){return(Array.isArray(e)?e:t).map(z6).filter(Boolean)}function Zu(e,t){return e.title||e.id}function lZ(e,t){var r,o,s;const n=(((r=e==null?void 0:e.apis)==null?void 0:r.resources)||[]).find(i=>i.entity===t)||((s=(o=e==null?void 0:e.apis)==null?void 0:o.resources)==null?void 0:s[0]);return String((n==null?void 0:n.path)||`/${t}`).replace(/^\//,"")}function yE(e,t){var r;const n=((e==null?void 0:e.entities)||[]).find(o=>o.name===t)||((r=e==null?void 0:e.entities)==null?void 0:r[0]);return((n==null?void 0:n.fields)||[]).map(o=>{var s;return{name:o.name,label:o.label||o.name,type:o.type||"string",enum_values:o.enum_values||o.enumValues,widget:(s=o.ui)==null?void 0:s.widget}})}const cZ=new Set(["id","tenant_id","org_unit_id","created_by","created_at","updated_at"]),vE=/(status|type|category|state|分类|类型|状态)$/i;function jf(e){return e.type==="enum"||e.widget==="select"||e.enum_values&&e.enum_values.length>0?!0:vE.test(e.name)||vE.test(e.label)}function B0(e){return e.type==="datetime"||Bf(e)?!1:e.type==="date"||e.widget==="datepicker"?!0:/日期/.test(e.label)||/(^|_)date$/i.test(e.name)}function Bf(e){return e.type==="datetime"||e.widget==="datetime"||/(_at$|时间|datetime)/i.test(e.name)}function L0(e,t){if(!e)return"";const n=new Date(e);if(Number.isNaN(n.getTime()))return t==="date"?e.slice(0,10):e.length>=16?e.slice(0,16):e;const r=l=>String(l).padStart(2,"0"),o=n.getFullYear(),s=r(n.getMonth()+1),i=r(n.getDate());return t==="date"?`${o}-${s}-${i}`:`${o}-${s}-${i}T${r(n.getHours())}:${r(n.getMinutes())}`}function uZ(e,t){if(!e)return"";const n=new Date(e);return Number.isNaN(n.getTime())?e:n.toISOString()}function dZ(e){return/status_check|_status_check/i.test(e)?"状态值不合法:请从下拉框选择蓝图允许的枚举值。":/violates check constraint/i.test(e)||/检查约束/.test(e)?`字段值不符合约束:${e}`:/null value|非空|not-null/i.test(e)?`必填字段为空:${e}`:e}function fZ({meta:e,value:t,options:n,onChange:r}){if(jf(e)||n.length>0){const o=n.length?n:e.enum_values||[];return I.jsxs("select",{value:t,onChange:s=>r(s.target.value),children:[I.jsx("option",{value:"",children:"请选择"}),o.map(s=>I.jsx("option",{value:s,children:s},s))]})}return e.type==="boolean"||e.widget==="checkbox"?I.jsxs("select",{value:t,onChange:o=>r(o.target.value),children:[I.jsx("option",{value:"",children:"请选择"}),I.jsx("option",{value:"true",children:"是"}),I.jsx("option",{value:"false",children:"否"})]}):Bf(e)?I.jsx("input",{type:"datetime-local",value:L0(t,"datetime"),onChange:o=>r(uZ(o.target.value))}):B0(e)?I.jsx("input",{type:"date",value:L0(t,"date"),onChange:o=>r(o.target.value)}):e.type==="int"||e.type==="bigint"||e.type==="decimal"||e.widget==="number"?I.jsx("input",{type:"number",step:e.type==="decimal"?"0.01":"1",value:t,onChange:o=>r(o.target.value)}):e.type==="text"||e.widget==="textarea"?I.jsx("textarea",{rows:3,value:t,onChange:o=>r(o.target.value)}):I.jsx("input",{type:"text",value:t,onChange:o=>r(o.target.value)})}function j6(e,t){if(t==null||t==="")return"—";if(String(e).endsWith("_at")){const n=new Date(String(t));if(!Number.isNaN(n.getTime()))return n.toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}return String(t)}function mZ(e){return/在售|正常|启用|合格/.test(e)?"ok":/停售|禁用|缺货|超限|异常|逾期/.test(e)?"bad":"warn"}function pZ({session:e,blueprint:t,onBack:n}){var z,B,F,L,j,O,A,k,_,D,V,W,K,q,Y,ee,ie,ae,U,Q,Z,ne,oe,le,re,X,se,ge,de,Se;const r=(z=t==null?void 0:t.meta)==null?void 0:z.slug,o=(t==null?void 0:t.pages)||[],s=o.find(ue=>ue.type==="list")||o[0],[i,l]=a.useState((s==null?void 0:s.id)||""),[c,u]=a.useState(null),[d,m]=a.useState(""),[f,p]=a.useState(""),[y,b]=a.useState(!1),x=a.useMemo(()=>{var ue,be;if(i.startsWith("__edit__")){const Ne=i.replace("__edit__",""),we=o.find(he=>he.type==="list"&&he.entity===Ne),ze=yE(t,Ne);return{id:i,title:"编辑",route:`/${Ne}/edit`,type:"form_edit",entity:Ne,layout:{form_fields:((be=(ue=we==null?void 0:we.layout)==null?void 0:ue.columns)==null?void 0:be.filter(he=>he!=="id"))||ze.map(he=>he.name).filter(he=>he!=="id"),actions:["edit"]}}}return o.find(Ne=>Ne.id===i)||s},[i,o,s,t]),v=x?lZ(t,x.entity):"",g=a.useMemo(()=>x?yE(t,x.entity):[],[x,t]),h=a.useMemo(()=>Object.fromEntries(g.map(ue=>[ue.name,ue])),[g]),$=a.useMemo(()=>{const ue=/^(欢迎您|退出|帮助|登录|注册|返回|系统首页|修改密码)$/,be=o.filter(we=>we.type!=="form_edit"&&we.type!=="detail"&&!ue.test(String(we.title||""))),Ne=we=>we.type==="list"?0:we.type==="form_create"?1:we.type==="dashboard"?2:3;return[...be].sort((we,ze)=>Ne(we)-Ne(ze))},[o]),C=a.useMemo(()=>{var we,ze;const ue=Array.isArray((ze=(we=t==null?void 0:t.meta)==null?void 0:we.ui)==null?void 0:ze.nav_items)?t.meta.ui.nav_items:[];if(!ue.length)return[];const be=$.find(he=>he.type==="dashboard"),Ne=he=>he.replace(/\/+$/,"").toLowerCase();return ue.map(he=>{const ke=z6(he),Oe=aZ(he);if(!ke&&!Oe)return null;let Ce=(Oe?$.find(Me=>Ne(String(Me.route||""))===Ne(Oe)):void 0)||$.find(Me=>Me.title===ke||String(Me.title||"").includes(ke)||ke&&ke.includes(String(Me.title||"")));return!Ce&&be&&ke&&(be.title===ke||String(be.title||"").includes(ke))&&(Ce=be),{label:ke||(Ce==null?void 0:Ce.title)||Oe,pageId:Ce==null?void 0:Ce.id}}).filter(Boolean)},[(F=(B=t==null?void 0:t.meta)==null?void 0:B.ui)==null?void 0:F.nav_items,$]),N=a.useMemo(()=>{var ue,be;return hE((be=(ue=t==null?void 0:t.meta)==null?void 0:ue.ui)==null?void 0:be.shell_links,["欢迎您","退出","帮助"])},[(j=(L=t==null?void 0:t.meta)==null?void 0:L.ui)==null?void 0:j.shell_links]),S=((A=(O=t==null?void 0:t.meta)==null?void 0:O.ui)==null?void 0:A.platform_subtitle)||((k=t==null?void 0:t.meta)==null?void 0:k.platform_subtitle)||"",E=a.useMemo(()=>{var ue,be;return hE((be=(ue=t==null?void 0:t.meta)==null?void 0:ue.ui)==null?void 0:be.float_actions,["客服","电话","点击隐藏"])},[(D=(_=t==null?void 0:t.meta)==null?void 0:_.ui)==null?void 0:D.float_actions]),w=((V=t==null?void 0:t.meta)==null?void 0:V.ui_preset)||((K=(W=o.find(ue=>{var be;return(be=ue.layout)==null?void 0:be.preset}))==null?void 0:W.layout)==null?void 0:K.preset)||"default",R=((q=t==null?void 0:t.meta)==null?void 0:q.project_context)||"",P=ue=>{var we,ze,he;if(!ue||ue.type!=="dashboard")return!1;if(((we=ue.layout)==null?void 0:we.preset)==="screenshot_faithful"||((ze=ue.layout)==null?void 0:ze.preset)==="ops_monitor")return!0;const be=((he=ue.layout)==null?void 0:he.widgets)||[],Ne=new Set(be.map(ke=>ke.type));return(Ne.has("line_chart")||Ne.has("bar_chart"))&&(Ne.has("status_strip")||Ne.has("table"))},T=w==="screenshot_faithful"||w==="ops_monitor"||!!((ee=(Y=t==null?void 0:t.meta)==null?void 0:Y.source)!=null&&ee.screenshot_faithful)||!!((U=(ae=(ie=t==null?void 0:t.meta)==null?void 0:ie.source)==null?void 0:ae.image_refs)!=null&&U.length)||!!((ne=(Z=(Q=t==null?void 0:t.meta)==null?void 0:Q.source)==null?void 0:Z.layout_refs)!=null&&ne.length)||P(o.find(ue=>ue.type==="dashboard")),M=((le=(oe=t==null?void 0:t.meta)==null?void 0:oe.ui)==null?void 0:le.platform_title)||((re=t==null?void 0:t.meta)==null?void 0:re.platform_title)||"";return a.useEffect(()=>{if(!T)return;const ue=o.find(be=>be.type==="dashboard");ue&&(!i||i===(s==null?void 0:s.id))&&(s==null?void 0:s.type)!=="dashboard"&&l(ue.id)},[T,(X=t==null?void 0:t.meta)==null?void 0:X.slug]),I.jsxs("div",{className:`gen-app ${T?"gen-app-ops":""}`,children:[T?I.jsxs("header",{className:"sf-shell-bar",children:[I.jsxs("div",{className:"sf-shell-left",children:[M||"业务管理平台",S?I.jsx("span",{className:"sf-shell-en",children:S}):null]}),I.jsx("div",{className:"sf-shell-center",children:((se=t==null?void 0:t.meta)==null?void 0:se.name)||r}),I.jsxs("div",{className:"sf-shell-right",children:[N.map(ue=>I.jsx("span",{className:"sf-shell-link",children:ue},ue)),I.jsx("button",{type:"button",className:"sf-shell-back",onClick:n,children:"返回控制台"})]})]}):I.jsxs("header",{className:"gen-header",children:[I.jsxs("div",{children:[I.jsx("p",{className:"gen-eyebrow",children:"业务模块"}),I.jsx("h1",{className:"gen-title",children:((ge=t==null?void 0:t.meta)==null?void 0:ge.name)||r}),I.jsx("p",{className:"gen-desc",children:((de=t==null?void 0:t.meta)==null?void 0:de.description)||"由蓝图自动生成的业务页面"})]}),I.jsx("button",{type:"button",className:"btn secondary",onClick:n,children:"返回控制台"})]}),I.jsxs("nav",{className:`gen-nav ${T?"gen-nav-ops":""}`,children:[(T&&C.length>0?C:$.map(ue=>({label:Zu(ue),pageId:ue.id}))).map((ue,be)=>{const Ne=ue.pageId?(x==null?void 0:x.id)===ue.pageId&&!c:!1;return I.jsx("button",{type:"button",className:`gen-nav-item ${Ne?"active":""} ${ue.pageId?"":"is-chrome"}`,onClick:()=>{ue.pageId&&(u(null),l(ue.pageId),m(""),p(""))},children:ue.label},`${ue.label}-${be}`)}),T&&C.length>0?$.filter(ue=>ue.type==="list"||ue.type==="dashboard").filter(ue=>!C.some(be=>be.pageId===ue.id||be.label===ue.title)).map(ue=>I.jsx("button",{type:"button",className:`gen-nav-item ${(x==null?void 0:x.id)===ue.id&&!c?"active":""}`,onClick:()=>{u(null),l(ue.id),m(""),p("")},children:Zu(ue)},ue.id)):null]}),T&&R&&(x==null?void 0:x.type)!=="dashboard"&&I.jsx("div",{className:"sf-mini-context",children:R}),d&&I.jsx("p",{className:"flash err",children:d}),f&&I.jsx("p",{className:"flash ok",children:f}),x&&v&&I.jsx(rZ,{slug:r,resource:v,page:x,blueprint:t}),(x==null?void 0:x.type)==="list"&&!c&&I.jsx(gZ,{session:e,slug:r,resource:v,page:x,fieldMap:h,busy:y,setBusy:b,setError:m,setInfo:p,onCreate:()=>{const ue=o.find(be=>be.type==="form_create"&&be.entity===x.entity);ue&&l(ue.id)},onEdit:ue=>{u(ue);const be=o.find(Ne=>Ne.type==="form_edit"&&Ne.entity===x.entity);l(be?be.id:`__edit__${x.entity}`)}}),((x==null?void 0:x.type)==="form_create"||(x==null?void 0:x.type)==="form_edit")&&I.jsx(hZ,{session:e,slug:r,resource:v,page:x,title:Zu(x),fields:g,editId:x.type==="form_edit"?c:null,busy:y,setBusy:b,setError:m,setInfo:p,onDone:()=>{u(null);const ue=o.find(be=>be.type==="list"&&be.entity===x.entity);ue&&l(ue.id)}}),(x==null?void 0:x.type)==="dashboard"&&!c&&(T||P(x)?I.jsx(iZ,{session:e,slug:r,resource:v,title:Zu(x),widgets:(((Se=x.layout)==null?void 0:Se.widgets)||[]).filter(ue=>ue.type!=="kpi"),fieldMap:h,meta:(t==null?void 0:t.meta)||{},setError:m}):I.jsx(yZ,{session:e,slug:r,resource:v,page:x,fieldMap:h,setError:m})),T&&E.length>0?I.jsx("aside",{className:"sf-float-dock","aria-label":"快捷操作",children:E.map(ue=>I.jsx("button",{type:"button",tabIndex:-1,children:ue},ue))}):null]})}function gZ(e){var T,M,z,B,F,L,j;const{session:t,slug:n,resource:r,page:o,fieldMap:s,busy:i,setBusy:l,setError:c,setInfo:u,onCreate:d,onEdit:m}=e,f=(M=(T=o.layout)==null?void 0:T.columns)!=null&&M.length?o.layout.columns:Object.keys(s).filter(O=>!["id","tenant_id"].includes(O)).slice(0,8),p=a.useMemo(()=>{var O;return((O=o.layout)==null?void 0:O.filters)||[]},[(z=o.layout)==null?void 0:z.filters]),y=((B=o.layout)==null?void 0:B.actions)||["refresh"],b=((F=o.layout)==null?void 0:F.action_labels)||{},x=(O,A)=>b[O]||A,v=y.filter(O=>!["edit","delete"].includes(O)),[g,h]=a.useState({}),[$,C]=a.useState({}),[N,S]=a.useState([]),[E,w]=a.useState(0),R=a.useCallback(async()=>{var O;l(!0),c("");try{const A=await ep(t,n,r,g);S(A.items||[]),w(A.total||0);const k={};for(const _ of p){const D=s[_];if((O=D==null?void 0:D.enum_values)!=null&&O.length){k[_]=D.enum_values;continue}const V=new Set;for(const W of A.items||[]){const K=W[_];K!=null&&String(K).trim()!==""&&V.add(String(K))}k[_]=Array.from(V).sort()}C(_=>{let D=!1;const V={..._};for(const[W,K]of Object.entries(k)){const q=_[W]||[];(q.length!==K.length||q.some((Y,ee)=>Y!==K[ee]))&&(V[W]=K,D=!0)}return D?V:_})}catch(A){c(A.message||String(A))}finally{l(!1)}},[t,n,r,g,l,c,p,s]);a.useEffect(()=>{R()},[R]);async function P(O){if(confirm("确认删除该行?")){l(!0);try{await CY(t,n,r,O),u("已删除"),await R()}catch(A){c(A.message||String(A))}finally{l(!1)}}}return I.jsxs("section",{className:"panel gen-panel",children:[I.jsx(_6,{slug:n,resource:r,blockId:`list:${o.id}`,endpoint:{method:"GET",path:`/api/v1/apps/${n}/${r}`},extra:{page_type:"list",filters:p,columns:f}}),I.jsxs("div",{className:"gen-toolbar",children:[I.jsx("h2",{className:"section-title",style:{margin:0},children:o.title}),I.jsx("div",{className:"actions",style:{margin:0},children:v.map(O=>{if(O==="create")return I.jsx("button",{type:"button",className:"btn",disabled:i,onClick:d,children:x("create","新增")},O);if(O==="refresh")return I.jsx("button",{type:"button",className:"btn secondary",disabled:i,onClick:()=>void R(),children:x("refresh","刷新")},O);if(O==="import")return I.jsxs("label",{className:"file-field btn secondary",style:{margin:0,padding:"8px 12px",cursor:"pointer"},children:[x("import","导入 Excel"),I.jsx("input",{type:"file",accept:".xlsx,.xlsm,.csv",hidden:!0,onChange:async k=>{var D,V;const _=(D=k.target.files)==null?void 0:D[0];if(_){l(!0);try{const W=await IY(t,n,r,_),K=W.inserted||0,q=W.skipped||0,Y=(W.errors||[]).length;u(`导入完成:成功 ${K} 行`+(q?`,跳过 ${q}`:"")+(Y?`,错误 ${Y} 条(仅展示部分)`:"")),Y&&((V=W.errors)!=null&&V[0])&&c(String(W.errors[0])),await R()}catch(W){c(W.message||String(W))}finally{l(!1),k.target.value=""}}}})]},O);if(O==="export")return I.jsx("button",{type:"button",className:"btn secondary",disabled:i,onClick:async()=>{l(!0);try{await PY(t,n,r,"xlsx"),u("已导出 Excel")}catch(k){c(k.message||String(k))}finally{l(!1)}},children:x("export","导出 Excel")},O);if(O==="search")return I.jsx("button",{type:"button",className:"btn secondary",disabled:i,onClick:()=>void R(),children:x("search","查询")},O);const A=x(O,O.replace(/^custom_/,""));return I.jsx("button",{type:"button",className:"btn secondary",disabled:i,onClick:()=>u(`按键「${A}」已按说明展示(业务逻辑可后续绑定)`),children:A},O)})})]}),p.length>0&&(((L=o.layout)==null?void 0:L.filter_style)==="section_radios"||((j=o.layout)==null?void 0:j.filter_style)==="radios")?I.jsx("div",{className:"ops-section-radios",children:(()=>{const O=p.find(_=>{var D;return(((D=s[_])==null?void 0:D.enum_values)||[]).length>0})||p[0],A=s[O]||{label:O},k=$[O]||A.enum_values||[];return I.jsxs(I.Fragment,{children:[I.jsx("span",{className:"ops-radio-label",children:A.label||"类型"}),["",...k].map(_=>I.jsx("button",{type:"button",className:`ops-radio ${(g[O]||"")===_?"active":""}`,onClick:()=>{h(D=>({...D,[O]:_})),setTimeout(()=>void R(),0)},children:_||"全部"},_||"all")),p.filter(_=>_!==O).map(_=>{const D=s[_]||{label:_};return I.jsxs("label",{className:"ops-extra-filter",children:[D.label||_,I.jsx("input",{value:g[_]||"",placeholder:"筛选…",onChange:V=>h(W=>({...W,[_]:V.target.value}))})]},_)}),I.jsx("button",{type:"button",className:"btn secondary",disabled:i,onClick:()=>void R(),children:"应用筛选"})]})})()}):p.length>0?I.jsxs("div",{className:"row compact gen-filters",children:[p.map(O=>{const A=s[O]||{name:O,label:O,type:"string"},k=$[O]||A.enum_values||[],_=jf(A)||k.length>0;return I.jsxs("label",{children:[A.label||O,_?I.jsxs("select",{value:g[O]||"",onChange:D=>h(V=>({...V,[O]:D.target.value})),children:[I.jsx("option",{value:"",children:"全部"}),k.map(D=>I.jsx("option",{value:D,children:D},D))]}):I.jsx("input",{value:g[O]||"",placeholder:"筛选…",onChange:D=>h(V=>({...V,[O]:D.target.value}))})]},O)}),I.jsx("div",{className:"actions",style:{marginTop:0},children:I.jsx("button",{type:"button",className:"btn secondary",disabled:i,onClick:()=>void R(),children:"应用筛选"})})]}):null,I.jsxs("p",{className:"pages-line",children:["共 ",E," 条"]}),N.length===0?I.jsx("div",{className:"empty",children:"暂无数据,可点「新增」或导入 Excel"}):I.jsx("div",{className:"table-wrap",children:I.jsxs("table",{children:[I.jsx("thead",{children:I.jsxs("tr",{children:[f.map(O=>{var A;return I.jsx("th",{children:((A=s[O])==null?void 0:A.label)||O},O)}),(y.includes("edit")||y.includes("delete"))&&I.jsx("th",{children:"操作"})]})}),I.jsx("tbody",{children:N.map((O,A)=>I.jsxs("tr",{children:[f.map(k=>{const _=j6(k,O[k]);return k==="status"?I.jsx("td",{className:"cell-status",children:I.jsx("span",{className:`badge ${mZ(_)}`,children:_})},k):I.jsx("td",{className:k.endsWith("_at")?"cell-muted":void 0,children:_},k)}),(y.includes("edit")||y.includes("delete"))&&I.jsx("td",{children:I.jsxs("div",{className:"actions",style:{margin:0,gap:6},children:[y.includes("edit")&&I.jsx("button",{type:"button",className:"btn secondary",style:{padding:"6px 10px"},onClick:()=>m(String(O.id)),children:x("edit","编辑")}),y.includes("delete")&&I.jsx("button",{type:"button",className:"btn secondary",style:{padding:"6px 10px"},onClick:()=>void P(String(O.id)),children:x("delete","删除")})]})})]},String(O.id??A)))})]})})]})}function hZ(e){var C,N;const{session:t,slug:n,resource:r,page:o,title:s,fields:i,editId:l,busy:c,setBusy:u,setError:d,setInfo:m,onDone:f}=e,p=(((C=o.layout)==null?void 0:C.form_fields)||i.map(S=>S.name)).filter(S=>!cZ.has(S)),y=((N=o.layout)==null?void 0:N.action_labels)||{},b=(S,E)=>y[S]||E,[x,v]=a.useState({}),[g,h]=a.useState({});a.useEffect(()=>{const S={};for(const E of p)S[E]="";v(S),(async()=>{var w,R;const E={};for(const P of p){const T=i.find(M=>M.name===P);T&&(w=T.enum_values)!=null&&w.length&&(E[P]=T.enum_values)}try{const T=(await ep(t,n,r)).items||[];for(const M of p){const z=i.find(F=>F.name===M);if(!z||!jf(z)||(R=E[M])!=null&&R.length)continue;const B=new Set;for(const F of T){const L=F[M];L!=null&&String(L).trim()!==""&&B.add(String(L))}B.size>0&&B.size<=50&&(E[M]=Array.from(B).sort())}if(l){const M=T.find(z=>String(z.id)===l);if(M){const z={};for(const B of p){const F=i.find(j=>j.name===B),L=M[B]==null?"":String(M[B]);F&&Bf(F)?z[B]=L:F&&B0(F)?z[B]=L0(L,"date"):z[B]=L}v(z)}}}catch(P){l&&d(P.message||String(P))}h(E)})()},[l,n,r]);async function $(){u(!0),d("");try{const S={};for(const E of p){const w=i.find(P=>P.name===E),R=x[E];if((w==null?void 0:w.type)==="int"||(w==null?void 0:w.type)==="bigint"||(w==null?void 0:w.type)==="decimal"?S[E]=R===""?null:Number(R):(w==null?void 0:w.type)==="boolean"?S[E]=R==="true":w&&Bf(w)||w&&B0(w)?S[E]=R===""?null:R:S[E]=R,jf(w||{name:E,label:E,type:"string"})&&!R)throw new Error(`请选择「${(w==null?void 0:w.label)||E}」`)}l?(await SY(t,n,r,l,S),m("已更新")):(await $Y(t,n,r,S),m("已创建")),f()}catch(S){d(dZ(S.message||String(S)))}finally{u(!1)}}return I.jsxs("section",{className:"panel gen-panel",style:{maxWidth:560},children:[I.jsx("h2",{className:"section-title",children:s}),I.jsx("div",{className:"row",children:p.map(S=>{const E=i.find(R=>R.name===S)||{name:S,label:S,type:"string"},w=g[S]||E.enum_values||[];return I.jsxs("label",{children:[E.label||S,I.jsx(fZ,{meta:E,value:x[S]||"",options:w,onChange:R=>v(P=>({...P,[S]:R}))})]},S)})}),I.jsxs("div",{className:"actions",children:[I.jsx("button",{type:"button",className:"btn",disabled:c,onClick:()=>void $(),children:l?b("save","保存"):b("create","创建")}),I.jsx("button",{type:"button",className:"btn secondary",disabled:c,onClick:f,children:b("cancel","取消")})]})]})}function yZ(e){var g,h,$,C,N,S,E,w,R,P;const{session:t,slug:n,resource:r,page:o,fieldMap:s={},setError:i}=e,l=((g=o.layout)==null?void 0:g.widgets)||[],[c,u]=a.useState(null),[d,m]=a.useState([]),f=((h=l.find(T=>T.type==="bar_chart"||T.type==="pie_chart"))==null?void 0:h.group_by)||(($=l.find(T=>T.group_by))==null?void 0:$.group_by)||"",p=((C=l.find(T=>T.metric&&T.metric!=="count"))==null?void 0:C.metric)||((S=(N=l.find(T=>{var M;return(M=T.metrics)==null?void 0:M.length}))==null?void 0:N.metrics)==null?void 0:S[0])||"",y=a.useMemo(()=>JSON.stringify(l),[(E=o.layout)==null?void 0:E.widgets]);if(a.useEffect(()=>{(async()=>{try{if(f){const M=await wY(t,n,r,f,p||void 0);u(M)}if(l.some(M=>["line_chart","table","status_strip"].includes(M.type))||!f){const M=await ep(t,n,r);m(M.items||[]),f||u({total:M.total||(M.items||[]).length})}}catch(T){i(T.message||String(T))}})()},[t,n,r,f,p,i,y]),!c)return I.jsx("div",{className:"panel gen-panel",children:I.jsx("div",{className:"empty",children:"加载看板…"})});function b(T){var M;return((M=s[T])==null?void 0:M.label)||T}function x(T){const M=T.x_field||T.group_by||"",z=(T.metrics&&T.metrics.length?T.metrics:T.metric&&T.metric!=="count"?[T.metric]:[]).filter(Boolean);if(!M||!z.length||!d.length)return null;const F=[...d].sort((j,O)=>String(j[M]??"").localeCompare(String(O[M]??""),"zh")).slice(0,100).map(j=>{const O={};for(const A of z){const k=Number(j[A]);Number.isFinite(k)&&(O[A]=k)}return{x:String(j[M]??""),values:O}}),L=z.map(j=>({key:j,label:b(j)}));return I.jsx(R6,{title:T.title||"趋势图",points:F,series:L,yUnit:T.y_unit||""},`line-${T.title}-${M}`)}function v(T,M){if(!M.filter_field)return!0;const z=T[M.filter_field],B=Number(z),F=M.filter_op||"gt",L=Number(M.filter_value??0);return F==="gt"?Number.isFinite(B)&&B>L:F==="gte"?Number.isFinite(B)&&B>=L:F==="lt"?Number.isFinite(B)&&B<L:F==="eq"?String(z)===String(M.filter_value??""):!0}return I.jsxs("section",{className:`panel gen-panel ${((w=o.layout)==null?void 0:w.preset)==="ops_monitor"?"ops-dashboard":""}`,children:[I.jsx("h2",{className:"section-title",children:o.title}),((R=o.layout)==null?void 0:R.preset)==="ops_monitor"&&I.jsx("p",{className:"ops-dash-hint",children:"看板由蓝图 widgets 驱动,结构跟随需求与截图"}),I.jsx("div",{className:"kpi-grid",children:(l.filter(T=>T.type==="kpi").length?l.filter(T=>T.type==="kpi"):[{type:"kpi",title:"记录数",metric:"count"}]).map((T,M)=>I.jsx(XJ,{title:T.title||"KPI",value:T.metric==="count"||!T.metric?c.total:Number(c.sum||0).toFixed(2)},`${T.title}-${M}`))}),l.filter(T=>T.type==="line_chart").map(T=>x(T)),l.filter(T=>T.type==="status_strip").map((T,M)=>{const z=T.label_field||"",B=T.value_field||"",F=T.secondary_field||"",L=T.warn_field||"",j=Number(T.cycle_days)||30,O=T.variant==="stacked"||T.variant==="stacked_days"||!!F;if(!z||!B)return null;const A=d.slice(0,48).map(k=>{let _=Number(k[B]??0),D=F?Number(k[F]??0):0;if(O&&_+D>50&&_+D<120){const V=Math.round(_/100*j);D=Math.max(0,j-V),_=V}return{label:String(k[z]??""),value:_,secondary:O?D:void 0,tone:L&&Number(k[L]??0)>0?"warn":"ok",stop:String(k.status||"").includes("停")||O&&_===0&&D===0}});return I.jsx(T6,{title:T.title||"状态条",variant:O?"stacked":"cells",items:A},`strip-${M}`)}),l.filter(T=>T.type==="table").map((T,M)=>{var F;const z=(F=T.columns)!=null&&F.length?T.columns:Object.keys(d[0]||{}).slice(0,6),B=d.filter(L=>v(L,T)).slice(0,50);return I.jsxs("div",{className:"chart-card",children:[I.jsx("h4",{children:T.title||"明细表"}),I.jsx("div",{className:"table-wrap",children:I.jsxs("table",{children:[I.jsx("thead",{children:I.jsx("tr",{children:z.map(L=>I.jsx("th",{children:b(L)},L))})}),I.jsxs("tbody",{children:[B.map((L,j)=>I.jsx("tr",{children:z.map(O=>I.jsx("td",{children:j6(O,L[O])},O))},j)),!B.length&&I.jsx("tr",{children:I.jsx("td",{colSpan:z.length,className:"empty",children:"暂无数据"})})]})]})})]},`tbl-${M}`)}),I.jsxs("div",{className:"chart-grid",children:[l.filter(T=>T.type==="bar_chart").map((T,M)=>I.jsx(gE,{title:T.title||"分布",buckets:c.buckets||[]},`bar-${M}`)),l.filter(T=>T.type==="pie_chart").map((T,M)=>I.jsx(YJ,{title:T.title||"占比",buckets:c.buckets||[]},`pie-${M}`)),!l.some(T=>T.type==="bar_chart"||T.type==="pie_chart")&&(((P=c.buckets)==null?void 0:P.length)||0)>0&&I.jsx(gE,{title:"分布",buckets:c.buckets||[]})]})]})}async function _g(e){const t=`${Lc}/api/v1/demo/file/${e.split("/").map(encodeURIComponent).join("/")}`,n=await fetch(t);if(!n.ok)return null;const r=await n.blob(),o=e.split("/").pop()||"file";return{blob:r,name:o}}function zg(e,t,n){return new File([e],t,{type:n||e.type||"application/octet-stream"})}async function vZ(){var d,m,f,p,y,b;const e=[],t=await fetch(`${Lc}/api/v1/demo/fixtures`);if(!t.ok)throw new Error(`无法读取测试素材清单 HTTP ${t.status}`);const n=await t.json();if(!n.available)throw new Error(`测试目录不可用:${n.root||"test/"}`);const o=await(await fetch(`${Lc}/api/v1/demo/prompt`)).json(),s=String(o.prompt||"");s||e.push(n.prompt||"prompt");const i=n.data||((m=(d=n.files)==null?void 0:d.data)==null?void 0:m.path);let l=null;if(i){const x=await _g(i);x?l=zg(x.blob,x.name,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"):e.push(i)}const c=[];for(const x of n.images||((p=(f=n.files)==null?void 0:f.images)==null?void 0:p.map(v=>v.path))||[]){const v=await _g(x);v?c.push(zg(v.blob,v.name,"image/png")):e.push(x)}const u=[];for(const x of n.layouts||((b=(y=n.files)==null?void 0:y.layouts)==null?void 0:b.map(v=>v.path))||[]){const v=await _g(x);v?u.push(zg(v.blob,v.name,"text/html")):e.push(x)}return{prompt:s,slug:n.slug||"settlement_observation_system",excel:l,images:c,layouts:u,label:n.label||"演示包",missing:e}}const{Header:bZ,Sider:xZ,Content:$Z}=Ds,SZ={platform:"平台管理",generate:"生成与发布",modules:"模块管理",sync:"数据同步",agent:"智能体胶囊",roles:"角色管理",agents:"智能体账号",orgs:"组织管理",invites:"邀请加入",members:"成员管理",audit:"审计"};function CZ({session:e,entitlements:t,tab:n,onTabChange:r,onOpenApp:o,onLogout:s,onSession:i,busy:l,banner:c,children:u}){const[d,m]=a.useState(!1),[f,p]=a.useState(!1),[y,b]=a.useState(!1),[x,v]=a.useState(!1),[g,h]=a.useState(!1),[$]=We.useForm(),[C]=We.useForm(),{token:N}=tX.useToken(),{message:S}=Lo.useApp(),E=a.useMemo(()=>{const w=[],R=Nr(e.role),P=(e.tenantId||0)>0;if(R&&!P)return w.push({key:"platform",icon:I.jsx(fE,{}),label:"平台管理"}),w;if(!P)return w;R&&w.push({key:"platform",icon:I.jsx(fE,{}),label:"平台管理"});const T=z=>dY(t,z),M=zl(e.role)||R;return(T("发布模块")||T("写入模块")||T("读取模块"))&&w.push({key:"generate",icon:I.jsx(TJ,{}),label:"生成与发布"}),T("读取模块")&&w.push({key:"modules",icon:I.jsx(EQ,{}),label:"模块管理"}),M&&T("数据同步")&&w.push({key:"sync",icon:I.jsx(BQ,{}),label:"数据同步"}),T("读取模块")&&w.push({key:"agent",icon:I.jsx(a6,{}),label:"智能体胶囊"}),T("管理智能体")&&(w.push({key:"roles",icon:I.jsx(_f,{}),label:"角色管理"}),w.push({key:"agents",icon:I.jsx(gJ,{}),label:"智能体账号"})),M&&T("管理组织")&&w.push({key:"orgs",icon:I.jsx(vQ,{}),label:"组织管理"}),M&&T("邀请成员")&&(w.push({key:"invites",icon:I.jsx(zJ,{}),label:"邀请加入"}),w.push({key:"members",icon:I.jsx(IJ,{}),label:"成员管理"})),T("查看审计")&&w.push({key:"audit",icon:I.jsx(RQ,{}),label:"审计"}),w},[e,t]);return I.jsxs(Ds,{className:"console-root",style:{minHeight:"100vh"},children:[I.jsxs(xZ,{collapsible:!0,collapsed:d,trigger:null,width:232,className:"console-sider",theme:"light",children:[I.jsxs("div",{className:`console-brand ${d?"is-collapsed":""}`,children:[I.jsx("span",{className:"console-brand-mark",children:"宇"}),!d&&I.jsxs("div",{className:"console-brand-text",children:[I.jsx("strong",{children:"宇信达智建"}),I.jsx("span",{children:Nr(e.role)?"平台超管工作台":"AI 建站控制台"})]})]}),I.jsx(Fi,{mode:"inline",selectedKeys:[n],items:E,onClick:({key:w})=>r(w),style:{borderInlineEnd:0,padding:"8px 8px 24px"}})]}),I.jsxs(Ds,{children:[I.jsxs(bZ,{className:"console-header",style:{background:N.colorBgContainer},children:[I.jsxs(Vt,{size:"middle",children:[I.jsx(Xe,{type:"text",icon:d?I.jsx(eJ,{}):I.jsx(YQ,{}),onClick:()=>m(w=>!w)}),I.jsx(ot.Title,{level:4,style:{margin:0},children:SZ[n]||"控制台"})]}),I.jsxs(Vt,{size:"middle",wrap:!0,children:[I.jsxs(Vt,{size:8,children:[I.jsx(f4,{size:"small",icon:I.jsx(kJ,{}),style:{background:N.colorPrimary}}),I.jsx("span",{className:"console-user",children:e.displayName||e.username}),e.username?I.jsx(ot.Text,{type:"secondary",code:!0,style:{fontSize:12},children:e.username}):null,e.phone?I.jsx(Yt,{icon:I.jsx(mE,{}),children:e.phone}):I.jsx(Yt,{children:"未绑手机"}),I.jsx(Yt,{color:"green",children:nc(e.role||"管理员")}),Nr(e.role)&&e.tenantId>0?I.jsxs(Yt,{color:"orange",children:["管理:",e.tenantName||`公司 #${e.tenantId}`]}):e.tenantId>0?I.jsxs(Yt,{children:["公司 #",e.tenantId]}):null]}),I.jsx(Xe,{icon:I.jsx(mE,{}),onClick:()=>{C.setFieldsValue({phone:e.phone||""}),v(!0)},children:e.phone?"更换手机":"绑定手机"}),I.jsx(Xe,{icon:I.jsx(_f,{}),onClick:()=>{$.resetFields(),p(!0)},children:"修改密码"}),I.jsx(Xe,{onClick:o,disabled:l,children:"打开模块"}),I.jsx(Xe,{icon:I.jsx(g6,{}),onClick:s,children:"退出"})]})]}),I.jsxs($Z,{className:"console-content",children:[c,I.jsx("div",{className:"console-panel",children:u})]})]}),I.jsx(Sn,{title:"修改密码",open:f,onCancel:()=>p(!1),confirmLoading:y,onOk:async()=>{const w=await $.validateFields();b(!0);try{await dQ(e,w.old_password,w.new_password),S.success("密码已更新"),p(!1),$.resetFields()}catch(R){S.error(R.message||String(R))}finally{b(!1)}},destroyOnHidden:!0,children:I.jsxs(We,{form:$,layout:"vertical",children:[I.jsxs(ot.Paragraph,{type:"secondary",children:["账号 ",I.jsx(ot.Text,{code:!0,children:e.username})," 为系统分配、不可更改;仅可修改密码。 绑定手机后也可用手机号 + 密码登录。"]}),I.jsx(We.Item,{name:"old_password",label:"当前密码",rules:[{required:!0,message:"请输入当前密码"}],children:I.jsx(Lt.Password,{autoComplete:"current-password"})}),I.jsx(We.Item,{name:"new_password",label:"新密码",rules:[{required:!0,message:"请输入新密码"},{min:6,message:"至少 6 位"}],children:I.jsx(Lt.Password,{autoComplete:"new-password"})}),I.jsx(We.Item,{name:"confirm",label:"确认新密码",dependencies:["new_password"],rules:[{required:!0,message:"请再次输入"},({getFieldValue:w})=>({validator(R,P){return!P||w("new_password")===P?Promise.resolve():Promise.reject(new Error("两次输入不一致"))}})],children:I.jsx(Lt.Password,{autoComplete:"new-password"})})]})}),I.jsx(Sn,{title:e.phone?"更换手机号":"绑定手机号",open:x,onCancel:()=>v(!1),confirmLoading:g,onOk:async()=>{const w=await C.validateFields();h(!0);try{const R=await fQ(e,(w.phone||"").trim()),P={...e,phone:R.phone||void 0};n6(P),i==null||i(P),S.success(R.phone?`已绑定 ${R.phone}`:"已解除绑定"),v(!1)}catch(R){S.error(R.message||String(R))}finally{h(!1)}},destroyOnHidden:!0,children:I.jsxs(We,{form:C,layout:"vertical",children:[I.jsx(ot.Paragraph,{type:"secondary",children:"绑定后可用手机号 + 密码登录。留空并保存可解除绑定。"}),I.jsx(We.Item,{name:"phone",label:"手机号",rules:[{validator:async(w,R)=>{const P=String(R||"").trim();if(P&&!/^1[3-9]\d{9}$/.test(P)&&!/^\+?86\s*1[3-9]\d{9}$/.test(P.replace(/\s/g,"")))throw new Error("请输入 11 位大陆手机号")}}],children:I.jsx(Lt,{placeholder:"例如 13800138000",maxLength:20,allowClear:!0})})]})})]})}function h$({children:e,subtitle:t}){return I.jsxs("div",{className:"auth-shell",children:[I.jsx("div",{className:"auth-backdrop","aria-hidden":!0}),I.jsxs(tr,{className:"auth-card",bordered:!1,children:[I.jsx(ot.Title,{level:2,className:"auth-brand",children:"宇信达智建"}),I.jsx(ot.Paragraph,{type:"secondary",style:{marginTop:-8},children:t}),e]})]})}function ro(e,t){var r;const n=(r=e.current)==null?void 0:r.input;return n&&typeof n.value=="string"?n.value:t}function wZ(e){const[t,n]=a.useState("account_password"),[r,o]=a.useState(""),[s,i]=a.useState(""),[l,c]=a.useState(0),[u,d]=a.useState(!1),m=a.useRef(null),f=a.useRef(null),p=a.useRef(null),y=a.useRef(null),b=a.useRef(null);a.useEffect(()=>{if(l<=0)return;const h=window.setTimeout(()=>c($=>$-1),1e3);return()=>window.clearTimeout(h)},[l]);const x=()=>{if(t==="phone_sms"){const C=ro(y,e.username).trim(),N=ro(b,r).trim();e.onUsername(C),e.onLogin({mode:t,phone:C,sms_code:N});return}if(t==="phone_password"){const C=ro(y,e.username).trim(),N=ro(f,e.password);e.onUsername(C),e.onPassword(N),e.onLogin({mode:t,phone:C,password:N});return}const h=ro(m,e.username).trim(),$=ro(f,e.password);e.onUsername(h),e.onPassword($),e.onLogin({mode:t,username:h,password:$})},v=()=>{const h=ro(m,e.username).trim()||ro(y,e.username).trim(),$=ro(f,e.password),C=ro(p,e.displayName).trim();e.onUsername(h),e.onPassword($),e.onDisplayName(C),e.onRegister(h,$,C)};async function g(){const h=ro(y,e.username).trim();if(!/^1[3-9]\d{9}$/.test(h)){i("请先填写正确的 11 位手机号");return}d(!0),i("");try{const $=await gY(h);c($.retry_after&&$.retry_after>0?$.retry_after:60),$.debug_code?(o($.debug_code),i(`开发模式验证码:${$.debug_code}(正式环境将发短信)`)):i($.message||"验证码已发送")}catch($){i($.message||String($))}finally{d(!1)}}return I.jsxs(h$,{subtitle:"描述 + Excel/CSV/JSON → 自动建库建 API → 生成可操作的前端页面",children:[I.jsx(tV,{block:!0,style:{marginBottom:16},value:t,onChange:h=>n(h),options:[{label:"账号密码",value:"account_password"},{label:"手机密码",value:"phone_password"},{label:"短信登录",value:"phone_sms"}]}),I.jsxs(We,{layout:"vertical",requiredMark:!1,onFinish:x,children:[t==="account_password"?I.jsx(We.Item,{label:"用户名",children:I.jsx(Lt,{ref:m,size:"large",value:e.username,onChange:h=>e.onUsername(h.target.value),autoComplete:"username",placeholder:"系统分配的随机用户名",allowClear:!0})}):I.jsx(We.Item,{label:"手机号",children:I.jsx(Lt,{ref:y,size:"large",value:e.username,onChange:h=>e.onUsername(h.target.value),autoComplete:"tel",placeholder:"已绑定的 11 位手机号",allowClear:!0})}),t==="phone_sms"?I.jsx(We.Item,{label:"短信验证码",children:I.jsxs(Vt.Compact,{style:{width:"100%"},children:[I.jsx(Lt,{ref:b,size:"large",value:r,onChange:h=>o(h.target.value),placeholder:"6 位验证码",maxLength:8}),I.jsx(Xe,{size:"large",loading:u,disabled:l>0||e.busy,onClick:()=>void g(),children:l>0?`${l}s`:"获取验证码"})]})}):I.jsx(We.Item,{label:"密码",children:I.jsx(Lt.Password,{ref:f,size:"large",value:e.password,onChange:h=>e.onPassword(h.target.value),autoComplete:"current-password"})}),t==="account_password"?I.jsx(We.Item,{label:"显示名(仅注册用,登录可忽略)",children:I.jsx(Lt,{ref:p,size:"large",value:e.displayName,onChange:h=>e.onDisplayName(h.target.value)})}):null,e.error?I.jsx(Mo,{type:"error",showIcon:!0,message:e.error,style:{marginBottom:16}}):null,s?I.jsx(Mo,{type:"info",showIcon:!0,message:s,style:{marginBottom:16}}):null,e.info&&!e.info.startsWith("已填入测试默认")?I.jsx(Mo,{type:"success",showIcon:!0,message:e.info,style:{marginBottom:16}}):null,t==="account_password"?I.jsxs(Vt,{wrap:!0,style:{marginBottom:12},children:[I.jsx(Xe,{type:"link",size:"small",onClick:()=>{e.onUsername("demo"),e.onPassword("demo123"),e.onDisplayName("演示用户")},children:"填入 demo"}),I.jsx(Xe,{type:"link",size:"small",onClick:()=>{e.onUsername("ljk_admin"),e.onPassword("ljk_admin"),e.onDisplayName("平台超级管理员")},children:"填入 ljk_admin"})]}):null,I.jsxs("div",{className:"auth-actions",children:[I.jsx(Xe,{type:"primary",htmlType:"submit",size:"large",block:!0,loading:e.busy,children:"登录"}),t==="account_password"?I.jsx(Xe,{htmlType:"button",size:"large",block:!0,disabled:e.busy,onClick:v,children:"注册"}):null]}),I.jsxs(ot.Paragraph,{type:"secondary",style:{marginTop:20,marginBottom:0,fontSize:13},children:["支持三种登录:用户名+密码、手机号+密码、手机号+短信验证码。",I.jsx("br",{}),"短信登录前请先在控制台「绑定手机」。开发环境验证码会直接显示在页面上。"]})]})]})}function EZ(e){return I.jsxs(h$,{subtitle:"账号已注册,但尚未加入任何公司。未入驻前不能查看未公布数据与业务页面。",children:[I.jsxs(ot.Text,{type:"secondary",children:[e.displayLabel," · pending"]}),e.error&&I.jsx(Mo,{type:"error",showIcon:!0,message:e.error,style:{margin:"16px 0"}}),e.info&&I.jsx(Mo,{type:"success",showIcon:!0,message:e.info,style:{margin:"16px 0"}}),I.jsxs(We,{layout:"vertical",style:{marginTop:16},requiredMark:!1,children:[I.jsx(We.Item,{label:"邀请码",children:I.jsx(Lt,{size:"large",value:e.inviteCode,onChange:t=>e.onInviteCode(t.target.value),placeholder:"粘贴公司管理员发来的邀请码"})}),I.jsx(Xe,{type:"primary",size:"large",block:!0,loading:e.busy,disabled:!e.inviteCode.trim(),onClick:e.onAcceptInvite,children:"加入已有公司"}),I.jsx(H9,{children:"或"}),I.jsx(We.Item,{label:"公司名称",children:I.jsx(Lt,{size:"large",value:e.companyName,onChange:t=>e.onCompanyName(t.target.value),placeholder:"创建自己的公司(成为管理员)"})}),I.jsxs(Vt,{direction:"vertical",style:{width:"100%"},children:[I.jsx(Xe,{size:"large",block:!0,loading:e.busy,onClick:e.onCreateCompany,children:"创建公司"}),I.jsx(Xe,{size:"large",block:!0,onClick:e.onLogout,children:"退出"})]})]})]})}function IZ(e){return I.jsx(h$,{subtitle:e.message,children:e.error?I.jsx(Mo,{type:"error",showIcon:!0,message:e.error}):null})}function jg(){const t=(window.location.hash||"").replace(/^#/,"").match(/^\/?app\/([a-zA-Z][a-zA-Z0-9_]{0,63})\/?$/);return t?t[1]:null}function PZ(e){const t=`#/app/${encodeURIComponent(e)}`;window.location.hash===t?window.dispatchEvent(new Event("hashchange")):window.location.hash=t}function ed(){!window.location.hash||window.location.hash==="#/"||window.location.hash==="#"||(window.location.hash="#/")}function ia(e,t){if(e)try{const n=new DataTransfer;for(const r of t)n.items.add(r);e.files=n.files}catch{}}function NZ(){var Ie,Be;const[e,t]=a.useState("generate"),[n,r]=a.useState("console"),[o,s]=a.useState(null),[i,l]=a.useState(""),[c,u]=a.useState(""),[d,m]=a.useState("demo"),[f,p]=a.useState("demo123"),[y,b]=a.useState("演示用户"),[x,v]=a.useState(""),[g,h]=a.useState(""),[$,C]=a.useState(""),[N,S]=a.useState(null),[E,w]=a.useState([]),[R,P]=a.useState([]),T=a.useRef(null),M=a.useRef(null),z=a.useRef(null),[B,F]=a.useState("schema_per_app"),[L,j]=a.useState("deepseek"),[O,A]=a.useState("deepseek-chat"),[k,_]=a.useState([]),[D,V]=a.useState(null),[W,K]=a.useState([]),[q,Y]=a.useState(null),[ee,ie]=a.useState(null),[ae,U]=a.useState("myapp"),[Q,Z]=a.useState("__new__"),[ne,oe]=a.useState([]),[le,re]=a.useState(null),[X,se]=a.useState("records"),[ge,de]=a.useState(""),[Se,ue]=a.useState(!0),[be,Ne]=a.useState(!1),[we,ze]=a.useState(!1),[he,ke]=a.useState([]),[Oe,Ce]=a.useState(null),[Me,xe]=a.useState(!1),[Ee,Ve]=a.useState("");async function qe(te=!1){if(!Og()&&!o){te||l("请先登录后再填入测试默认");return}Ne(!0),te||l("");try{const ye=await vZ();C(ye.prompt),S(ye.excel),w(ye.images),P(ye.layouts),U(ye.slug),xe(!0),ia(T.current,ye.excel?[ye.excel]:[]),ia(M.current,ye.images),ia(z.current,ye.layouts);const Ae=[ye.excel?ye.excel.name:null,ye.images.length?`${ye.images.length} 张截图`:null,ye.layouts.length?`${ye.layouts.length} 个 HTML`:null].filter(Boolean);Ve(Ae.join(" · ")||"仅需求文本");const Je=ye.missing.length?`(缺:${ye.missing.join(", ")}`:"";u(`已填入测试默认:${ye.label}${Je}`)}catch(ye){te||l(ye.message||String(ye))}finally{Ne(!1)}}a.useEffect(()=>{const te=Og();te&&s(te);const ye=()=>{s(null),!(Ju()||jg())&&(l("登录已失效,请重新登录"),ed(),r("console"),re(null))};return window.addEventListener("ajz:session-expired",ye),yY().then(Ae=>{var ht,Nt,yt;_(Ae.providers||[]);const Je=Ae.default||"deepseek",St=(Ae.providers||[]).find(at=>at.id===Je)||((ht=Ae.providers)==null?void 0:ht[0]);St&&(j(St.id),A(St.default_model||((yt=(Nt=St.models)==null?void 0:Nt[0])==null?void 0:yt.id)||""))}).catch(()=>{}),()=>window.removeEventListener("ajz:session-expired",ye)},[]),a.useEffect(()=>{!(o!=null&&o.accessToken)||Mg(o)||Nr(o.role)&&!(o.tenantId>0)||localStorage.getItem("ajz_skip_demo_autoload")==="1"||Me||qe(!0).catch(()=>{})},[o==null?void 0:o.accessToken,o==null?void 0:o.tenantId]),a.useEffect(()=>{if(!(o!=null&&o.accessToken)||Mg(o)){oe([]),Ce(null);return}if(Nr(o.role)&&!(o.tenantId>0)){t("platform"),oe([]),Ce(null);return}Rd(o).then(te=>oe(te.items||[])).catch(()=>oe([])),o.tenantId>0?o6(o).then(te=>Ce(te.permissions||[])).catch(()=>Ce(Nr(o.role)?null:[])):Ce(null)},[o]),a.useEffect(()=>{let te=!1;async function ye(){var St,ht,Nt,yt,at,Ze;const Ae=Ju();if(Ae){te||(Ne(!0),l(""));try{const De=await lY(Ae);if(te)return;re(De.blueprint),V(De.blueprint),U(((ht=(St=De.blueprint)==null?void 0:St.meta)==null?void 0:ht.slug)||"preview"),se(De.resource||"records"),r("app")}catch(De){te||(Tg(),l(De.message||String(De)),r("console"),re(null),ed())}finally{te||Ne(!1)}return}Tg();const Je=jg();if(!Je){te||(r("console"),re(null));return}te||(Ne(!0),l(""),U(Je));try{const De=o||Og(),Le=await cE(De,Je);if(te)return;re(Le),V(Le);const Ke=((Ze=(at=(yt=(Nt=Le==null?void 0:Le.apis)==null?void 0:Nt.resources)==null?void 0:yt[0])==null?void 0:at.path)==null?void 0:Ze.replace(/^\//,""))||X;se(Ke),r("app")}catch(De){te||(l(De.message||String(De)),r("console"),re(null),ed())}finally{te||Ne(!1)}}return ye(),window.addEventListener("hashchange",ye),()=>{te=!0,window.removeEventListener("hashchange",ye)}},[o]),a.useEffect(()=>{!Me&&!N&&!E.length&&!R.length||(ia(T.current,N?[N]:[]),ia(M.current,E),ia(z.current,R))},[Me,N,E,R,e,o,n]);function me(te){s(te),n6(te)}async function Re(te){ze(!0),l(""),u("");try{const ye=te.mode==="phone_sms"?{phone:String(te.phone||"").trim(),sms_code:String(te.sms_code||"").trim()}:te.mode==="phone_password"?{phone:String(te.phone||"").trim(),password:String(te.password||"")}:{username:String(te.username||"").trim(),password:String(te.password||"")},Ae=await pY(ye);(Nr(Ae.role)||Ae.username==="ljk_admin")&&t("platform"),me(Ae),u(`已登录 ${Ae.displayName||Ae.username}${Ae.role||"用户"}`)}catch(ye){l(ye.message||String(ye))}finally{ze(!1)}}async function Te(te=d,ye=f,Ae=y){ze(!0),l(""),u("");try{const Je=await hY(String(te||"").trim(),String(ye||""),String(Ae||"").trim());me(Je),u("注册成功待加入公司pending。请输入邀请码或创建自己的公司。")}catch(Je){l(Je.message||String(Je))}finally{ze(!1)}}async function Ue(){if(o){ze(!0),l("");try{const te=await BY(o,x.trim());me(te),u(te.displayName?`已加入租户 #${te.tenantId}`:`已加入租户 #${te.tenantId}`),v("")}catch(te){l(te.message||String(te))}finally{ze(!1)}}}async function Ge(){if(o){ze(!0),l("");try{const te=await LY(o,g.trim()||y||d);me(te),u(`已创建公司(租户 #${te.tenantId}),你是管理员`),h("")}catch(te){l(te.message||String(te))}finally{ze(!1)}}}async function Fe(){var te,ye,Ae,Je,St,ht,Nt,yt,at,Ze;Ne(!0),l(""),Y(null),ie(null);try{const De=await vY($,N,E,B,L,O,R);V(De.draft),K(De.warnings||[]),Y(De.fidelity||null),ie(De.generate_log||null),(ye=(te=De.draft)==null?void 0:te.meta)!=null&&ye.slug&&U(De.draft.meta.slug);const Le=(Nt=(ht=(St=(Je=(Ae=De.draft)==null?void 0:Ae.apis)==null?void 0:Je.resources)==null?void 0:St[0])==null?void 0:ht.path)==null?void 0:Nt.replace(/^\//,"");Le&&se(Le);const Ke=De.fidelity;let lt="";Ke&&!Ke.skipped&&(lt=Ke.passed?`还原度达标 ${Ke.final_score}%(目标 ${Ke.target}%)。`:`还原度 ${Ke.final_score??"—"}%(目标 ${Ke.target}%),请查看差异后继续微调或再生成。`);const _t=(yt=De.generate_log)!=null&&yt.run_id?` run=${De.generate_log.run_id}`:"";let ft="";if(o&&((Ze=(at=De.draft)==null?void 0:at.meta)!=null&&Ze.slug))try{const xt=String(De.draft.meta.slug).trim().replace(/([a-z0-9])([A-Z])/g,"$1_$2").toLowerCase().replace(/[^a-z0-9_]+/g,"_").replace(/_+/g,"_").replace(/^_|_$/g,"").slice(0,48);if(xt){await bY(o,xt,De.draft);const jt=await Rd(o);oe(jt.items||[]),Z("__new__"),ft=`已登记为在建模块「${xt}」。`}}catch(xt){ft=`(在建登记未成功:${xt.message||xt}`}u(`草稿置信度 ${De.confidence}。${lt}${ft}确认发布后将打开模块页。${_t}`)}catch(De){l(De.message||String(De))}finally{Ne(!1)}}function et(te){U(te),PZ(te)}async function ve(){var te,ye,Ae,Je,St,ht,Nt,yt;if(!(!o||!D)){Ne(!0),l("");try{const at=JSON.parse(JSON.stringify(D)),Ze=Q!=="__new__";let De=Ze?Q:String(((te=at==null?void 0:at.meta)==null?void 0:te.slug)||"app").trim().replace(/([a-z0-9])([A-Z])/g,"$1_$2").toLowerCase().replace(/[^a-z0-9_]+/g,"_").replace(/_+/g,"_").replace(/^_|_$/g,"");Ze||((!De||!/^[a-z]/.test(De))&&(De=`app_${De||"draft"}`.replace(/_+/g,"_")),De=De.slice(0,48).replace(/_+$/g,"")||"app");const Le=Ze?ne.find(pt=>pt.slug===De):null;at.meta={...at.meta||{},slug:De,name:(Le==null?void 0:Le.name)||((ye=at.meta)==null?void 0:ye.name)||De},at.meta.name||(at.meta.name=De),at.version||(at.version="1.0"),at.storage||(at.storage={mode:"schema_per_app",engine:"postgres"}),at.security||(at.security={visibility:"private",roles:[],row_policies:[]}),at.apis&&(at.apis={...at.apis,base_path:`/api/v1/apps/${De}`});const Ke=pt=>String(pt||"").replace(/([a-z0-9])([A-Z])/g,"$1_$2").toLowerCase().replace(/[^a-z0-9_]+/g,"_").replace(/_+/g,"_").replace(/^_|_$/g,""),lt={};for(const pt of at.entities||[]){const qt=String(pt.name||"");pt.name&&(pt.name=Ke(pt.name)||"record"),pt.table&&(pt.table=Ke(pt.table)||pt.name),qt&&(lt[qt]=pt.name,lt[Ke(qt)]=pt.name);for(const cn of pt.fields||[]){cn.name&&(cn.name=Ke(String(cn.name).replace(/\./g,"_"))||"field");const hn=String(cn.type||"string").toLowerCase();["float","float64","double","number","numeric"].includes(hn)?cn.type="decimal":["integer","int32"].includes(hn)?cn.type="int":["int64","long"].includes(hn)?cn.type="bigint":hn==="bool"?cn.type="boolean":["varchar","str"].includes(hn)&&(cn.type="string")}}for(const pt of((Ae=at.apis)==null?void 0:Ae.resources)||[]){const qt=String(pt.entity||"");pt.entity=lt[qt]||lt[Ke(qt)]||Ke(qt)||pt.entity,pt.path&&(pt.path="/"+(Ke(String(pt.path).replace(/^\//,""))||"items"))}for(const pt of at.pages||[]){const qt=String(pt.entity||"");pt.entity=lt[qt]||lt[Ke(qt)]||Ke(qt)||pt.entity}const _t=((Nt=(ht=(St=(Je=at==null?void 0:at.apis)==null?void 0:Je.resources)==null?void 0:St[0])==null?void 0:ht.path)==null?void 0:Nt.replace(/^\//,""))||X;se(_t);const xt=await xY(o,De,at,Ze?"add_pages":"create");V(at),U(De);try{const pt=await Rd(o);oe(pt.items||[])}catch{}const jt=xt.publish_mode==="pages_added"||xt.publish_mode==="merged"?`已发布新页面${(yt=xt.added_pages)!=null&&yt.length?`${xt.added_pages.join(", ")}`:""}`:"已新建模块";u(`${jt} ${De} → ${xt.schema_name}。正在跳转模块页…`),et(De)}catch(at){l(at.message||String(at))}finally{Ne(!1)}}}function je(){if(!o)return;if(l(""),!ae.trim()){l("请填写已发布模块 slug");return}const te=ne.find(ye=>ye.slug===ae.trim());if(te&&te.status!=="published"){l(`模块「${ae}」状态为${te.status_label||te.status},请先发布后再打开;可在「模块管理」继续编辑`);return}u(`正在跳转模块:/#/app/${ae}`),et(ae.trim())}async function ce(){if(o){Ne(!0),l("");try{const te=await EY(o,ae);de(te.capsule),u(te.hint),t("agent")}catch(te){l(te.message||String(te))}finally{Ne(!1)}}}if(n==="app"&&le)return I.jsx(pZ,{session:o,blueprint:le,onBack:()=>{Tg(),ed()}});const Pe=async te=>{if(t(te),l(""),te==="audit"&&o)try{const ye=await NY(o);ke(ye.items||[])}catch(ye){l(ye.message||String(ye))}};if((Ju()||jg())&&!le)return I.jsx(IZ,{message:`正在打开${Ju()?"草稿预览":"模块"}…`,error:i||void 0});if(!o)return I.jsx(wZ,{username:d,password:f,displayName:y,busy:we,error:i,info:c,onUsername:m,onPassword:p,onDisplayName:b,onLogin:Re,onRegister:Te});if(Mg(o))return I.jsx(EZ,{displayLabel:o.displayName||o.username||"",inviteCode:x,companyName:g,busy:we,error:i,info:c,onInviteCode:v,onCompanyName:h,onAcceptInvite:Ue,onCreateCompany:Ge,onLogout:()=>{Oa(),s(null)}});const $e=(k.length?k:[{id:"deepseek",label:"DeepSeek",configured:!0,default_model:"",models:[]},{id:"minimax",label:"MiniMax",configured:!0,default_model:"",models:[]},{id:"heuristic",label:"本地启发式",configured:!0,default_model:"",models:[]}]).map(te=>({value:te.id,label:`${te.label}${te.configured===!1?"(未配置 Key":""}`})),_e=(((Ie=k.find(te=>te.id===L))==null?void 0:Ie.models)||[]).map(te=>({value:te.id,label:te.label}));return!_e.length&&O&&_e.push({value:O,label:O||"默认"}),I.jsxs(CZ,{session:o,entitlements:Oe,tab:e,busy:be,onTabChange:Pe,onOpenApp:je,onSession:te=>s(te),onLogout:()=>{Oa(),s(null)},banner:I.jsxs(I.Fragment,{children:[i?I.jsx(Mo,{type:"error",showIcon:!0,closable:!0,message:i,onClose:()=>l(""),style:{marginBottom:12}}):null,c?I.jsx(Mo,{type:"success",showIcon:!0,closable:!0,message:c,onClose:()=>u(""),style:{marginBottom:12}}):null]}),children:[e==="generate"&&I.jsxs(Nv,{gutter:[16,16],children:[I.jsx(si,{xs:24,lg:14,children:I.jsx(tr,{title:"需求与素材",extra:I.jsxs(Vt,{children:[I.jsx(Xe,{disabled:be,onClick:()=>qe(!1),children:"填入测试默认"}),Me&&I.jsxs(ot.Text,{type:"secondary",children:["已加载:",Ee]})]}),children:I.jsxs(We,{layout:"vertical",requiredMark:!1,children:[I.jsx(We.Item,{label:"需求描述",extra:"可写业务要求、按键,以及截图关系。上传截图后,未点名修改的部分按原图还原。",children:I.jsx(Lt.TextArea,{rows:6,placeholder:`示例:
两张截图为同一界面:一张展开监督条,一张为收起态;以展开态为准还原。
平台抬头:……
操作:新增、刷新、导入 Excel、导出 Excel`,value:$,onChange:te=>C(te.target.value)})}),I.jsx(We.Item,{label:"数据文件xlsx / csv / json",extra:N?`当前:${N.name}`:void 0,children:I.jsx("input",{ref:T,type:"file",accept:".xlsx,.xls,.csv,.json",onChange:te=>{var ye;return S(((ye=te.target.files)==null?void 0:ye[0])||null)}})}),I.jsx(We.Item,{label:"界面截图",extra:E.length?`当前:${E.map(te=>te.name).join("、")}`:"上传后自动走还原闭环",children:I.jsx("input",{ref:M,type:"file",accept:"image/*",multiple:!0,onChange:te=>w(Array.from(te.target.files||[]))})}),I.jsx(We.Item,{label:"页面源码Ctrl+S 另存为)",extra:R.length?`当前:${R.map(te=>te.name).join("、")}`:"支持 .html / .htm / .mhtml",children:I.jsx("input",{ref:z,type:"file",accept:".html,.htm,.mhtml,.mht,.xhtml,text/html,multipart/related",multiple:!0,onChange:te=>P(Array.from(te.target.files||[]))})}),I.jsxs(Nv,{gutter:12,children:[I.jsx(si,{xs:24,md:8,children:I.jsx(We.Item,{label:"大模型",children:I.jsx(dn,{value:L,options:$e,onChange:te=>{var Ae,Je;j(te);const ye=k.find(St=>St.id===te);A((ye==null?void 0:ye.default_model)||((Je=(Ae=ye==null?void 0:ye.models)==null?void 0:Ae[0])==null?void 0:Je.id)||"")}})})}),I.jsx(si,{xs:24,md:8,children:I.jsx(We.Item,{label:"模型",children:I.jsx(dn,{value:O,options:_e,onChange:A})})}),I.jsx(si,{xs:24,md:8,children:I.jsx(We.Item,{label:"存储模式",children:I.jsx(dn,{value:B,onChange:te=>F(te),options:[{value:"schema_per_app",label:"共享库 · schema"},{value:"database_per_app",label:"独立库"}]})})})]}),I.jsx(We.Item,{label:"发布目标",children:I.jsx(dn,{value:Q,onChange:te=>{Z(te),te!=="__new__"&&U(te)},options:[{value:"__new__",label:"新建模块(草稿 slug"},...ne.map(te=>({value:te.slug,label:`${te.name||te.slug}${te.slug} · ${te.status_label||te.status} · ${te.page_count} 页)`}))]})}),I.jsx(ot.Paragraph,{type:"secondary",style:{marginTop:-8},children:Q==="__new__"?"将创建新模块slug 取自蓝图 meta.slug。不同用户可访问的模块由授权决定。":"将把草稿里新生成的页面发布到该模块page id / route 不可与现有重复)。"}),I.jsx(We.Item,{label:"已发布 slug打开模块用",children:I.jsx(Lt,{value:ae,onChange:te=>U(te.target.value)})}),I.jsx(We.Item,{label:"持久化上传(对象存储)",children:I.jsx("input",{type:"file",onChange:async te=>{var Ae;const ye=(Ae=te.target.files)==null?void 0:Ae[0];if(!(!ye||!o))try{const Je=await pQ(o,ye);u(`已上传 ${Je.filename} → ${Je.url}`)}catch(Je){l(Je.message||String(Je))}}})}),I.jsxs(Vt,{wrap:!0,children:[I.jsx(Xe,{type:"primary",loading:be,onClick:Fe,children:"生成蓝图草稿"}),I.jsx(Xe,{disabled:be||!D,onClick:ve,children:Q==="__new__"?"确认发布(新建模块)":"确认发布(新页面)"}),I.jsx(Xe,{disabled:be,onClick:je,children:"打开已有模块"})]}),W.length>0&&I.jsx(Mo,{style:{marginTop:16},type:"warning",showIcon:!0,message:"生成警告",description:I.jsx("ul",{style:{margin:0,paddingLeft:18},children:W.map(te=>I.jsx("li",{children:te},te))})}),q&&!q.skipped&&I.jsx(tr,{size:"small",style:{marginTop:16},title:`还原度迭代 ${q.passed?"已达标":"未达标"} · ${q.final_score??"—"}% / 目标 ${q.target}%`,children:I.jsx("ul",{style:{margin:0,paddingLeft:18},children:(q.rounds||[]).map(te=>I.jsxs("li",{children:["第",te.round,"轮:",te.score??"—","%",te.pass?" ✓":"",(te.fails||[]).length?` · 差异:${(te.fails||[]).slice(0,5).join("")}${(te.fails||[]).length>5?"…":""}`:""]},te.round))})}),((Be=ee==null?void 0:ee.lines)==null?void 0:Be.length)>0&&I.jsxs(tr,{size:"small",style:{marginTop:16},title:`生成日志 · ${ee.run_id||"—"}`,children:[I.jsxs(ot.Paragraph,{type:"secondary",style:{marginBottom:8},children:["服务端同步写入 .runtime/logs/generate/",ee.log_file?`(本次:${String(ee.log_file).replace(/^.*[\\/]/,"")}`:""]}),I.jsx("pre",{className:"generate-log-body",children:ee.lines.map(te=>`${(te.level||"info").toUpperCase().padEnd(7)} ${te.message||""}`).join(`
`)})]})]})})}),I.jsx(si,{xs:24,lg:10,children:I.jsxs(tr,{title:"蓝图 JSON",extra:I.jsx(ot.Text,{type:"secondary",children:"可微调后发布"}),children:[I.jsx(ot.Paragraph,{type:"secondary",children:"含 entities / apis / pages。发布后 pages 会渲染成真正的业务前端。"}),I.jsx(Lt.TextArea,{className:"json-editor",rows:22,value:D?JSON.stringify(D,null,2):"",onChange:te=>{try{V(JSON.parse(te.target.value))}catch{}},placeholder:"生成后在此显示蓝图…"})]})})]}),e==="agent"&&I.jsxs(tr,{title:"智能体胶囊",children:[I.jsx(ot.Paragraph,{type:"secondary",children:"前端不展示明文 API 契约,只展示加密胶囊;智能体用 agent_key 解密后请求。"}),I.jsxs(We,{layout:"vertical",requiredMark:!1,style:{maxWidth:480},children:[I.jsx(We.Item,{label:"模块 slug",children:I.jsx(Lt,{value:ae,onChange:te=>U(te.target.value)})}),I.jsxs(Vt,{wrap:!0,children:[I.jsx(Xe,{type:"primary",loading:be,onClick:ce,children:"生成加密胶囊"}),I.jsx(Xe,{onClick:()=>ue(te=>!te),children:Se?"临时查看 agent_key":"隐藏 agent_key"})]})]}),!Se&&I.jsx("pre",{className:"mono-block",children:o.agentKey}),ge&&I.jsxs("div",{style:{marginTop:16},children:[I.jsx("pre",{className:"mono-block",children:ge}),I.jsx(Xe,{style:{marginTop:8},onClick:()=>navigator.clipboard.writeText(ge),children:"复制密文"})]})]}),e==="modules"&&o&&I.jsx(FJ,{session:o,onOpenPublished:te=>{U(te),et(te)},onContinueDraft:async te=>{Ne(!0),l("");try{const ye=await cE(o,te);V(ye),U(te),Z(te),t("generate"),u(`已加载在建模块「${te}」,可继续编辑后发布`)}catch(ye){l(ye.message||String(ye))}finally{Ne(!1)}}}),e==="sync"&&o&&(zl(o.role)||Nr(o.role)&&o.tenantId>0)&&I.jsx(UJ,{session:o,busy:be,setBusy:Ne,setError:l,setInfo:u}),e==="roles"&&o&&I.jsx(WJ,{session:o,busy:be,setBusy:Ne,setError:l,setInfo:u}),e==="agents"&&o&&I.jsx(AJ,{session:o,busy:be,setBusy:Ne,setError:l,setInfo:u}),e==="platform"&&o&&Nr(o.role)&&I.jsx(qJ,{session:o,busy:be,setBusy:Ne,setError:l,setInfo:u,onSession:me,onEnteredCompany:()=>t("members")}),e==="orgs"&&o&&(zl(o.role)||Nr(o.role)&&o.tenantId>0)&&I.jsx(HJ,{session:o,busy:be,setBusy:Ne,setError:l,setInfo:u}),e==="invites"&&o&&(zl(o.role)||Nr(o.role)&&o.tenantId>0)&&I.jsx(DJ,{session:o,busy:be,setBusy:Ne,setError:l,setInfo:u}),e==="members"&&o&&(zl(o.role)||Nr(o.role)&&o.tenantId>0)&&I.jsx(GJ,{session:o,busy:be,setBusy:Ne,setError:l,setInfo:u}),e==="audit"&&I.jsx(tr,{title:"审计",children:I.jsx(Vn,{rowKey:"id",size:"middle",pagination:{pageSize:20},dataSource:he,locale:{emptyText:"暂无审计记录"},columns:[{title:"时间",dataIndex:"created_at",width:180,render:te=>String(te)},{title:"用户",dataIndex:"user_id",width:120},{title:"动作",dataIndex:"action",width:140},{title:"详情",dataIndex:"detail",ellipsis:!0}]})})]})}Bg.createRoot(document.getElementById("root")).render(I.jsx(J.StrictMode,{children:I.jsx(to,{locale:sY,theme:{token:{colorPrimary:"#0f5c45",colorInfo:"#0f5c45",colorSuccess:"#0f5c45",colorWarning:"#c45c26",colorError:"#b42318",borderRadius:8,fontFamily:'"Manrope", "Segoe UI", sans-serif',colorBgLayout:"#eef3f0",colorBgContainer:"#ffffff",controlHeight:36},components:{Layout:{siderBg:"#ffffff",headerBg:"#ffffff",bodyBg:"#eef3f0"},Menu:{itemBorderRadius:8,itemMarginInline:8},Card:{borderRadiusLG:12}}},children:I.jsx(Lo,{children:I.jsx(NZ,{})})})}));